2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.16.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.16.0'
594 PACKAGE_STRING='gpgme 1.16.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.16.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.16.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.16.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.16.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=36
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=19
2895 LIBGPGMEPP_LT_AGE=13
2896 LIBGPGMEPP_LT_REVISION=0
2898 LIBQGPGME_LT_CURRENT=13
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
3137 MISSING="\${SHELL} '$am_aux_dir/missing'"
3139 # Use eval to expand $SHELL
3140 if eval "$MISSING --is-lightweight"; then
3141 am_missing_run="$MISSING "
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3145 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3148 if test x"${install_sh+set}" != xset; then
3151 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3153 install_sh="\${SHELL} $am_aux_dir/install-sh"
3157 # Installed binaries are usually stripped using 'strip' when the user
3158 # run "make install-strip". However 'strip' might not be the right
3159 # tool to use in cross-compilation environments, therefore Automake
3160 # will honor the 'STRIP' environment variable to overrule this program.
3161 if test "$cross_compiling" != no; then
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}strip; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_STRIP+:} false; then :
3168 $as_echo_n "(cached) " >&6
3170 if test -n "$STRIP"; then
3171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 STRIP=$ac_cv_prog_STRIP
3191 if test -n "$STRIP"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3193 $as_echo "$STRIP" >&6; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3201 if test -z "$ac_cv_prog_STRIP"; then
3203 # Extract the first word of "strip", so it can be a program name with args.
3204 set dummy strip; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3208 $as_echo_n "(cached) " >&6
3210 if test -n "$ac_ct_STRIP"; then
3211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_ac_ct_STRIP="strip"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3231 if test -n "$ac_ct_STRIP"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3233 $as_echo "$ac_ct_STRIP" >&6; }
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3239 if test "x$ac_ct_STRIP" = x; then
3242 case $cross_compiling:$ac_tool_warned in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3251 STRIP="$ac_cv_prog_STRIP"
3255 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3258 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3259 if test -z "$MKDIR_P"; then
3260 if ${ac_cv_path_mkdir+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3267 test -z "$as_dir" && as_dir=.
3268 for ac_prog in mkdir gmkdir; do
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3271 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3272 'mkdir (GNU coreutils) '* | \
3273 'mkdir (coreutils) '* | \
3274 'mkdir (fileutils) '4.1*)
3275 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3285 test -d ./--version && rmdir ./--version
3286 if test "${ac_cv_path_mkdir+set}" = set; then
3287 MKDIR_P="$ac_cv_path_mkdir -p"
3289 # As a last resort, use the slow shell script. Don't cache a
3290 # value for MKDIR_P within a source directory, because that will
3291 # break other packages using the cache if that directory is
3292 # removed, or if the value is a relative name.
3293 MKDIR_P="$ac_install_sh -d"
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3297 $as_echo "$MKDIR_P" >&6; }
3299 for ac_prog in gawk mawk nawk awk
3301 # Extract the first word of "$ac_prog", so it can be a program name with args.
3302 set dummy $ac_prog; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_AWK+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 if test -n "$AWK"; then
3309 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318 ac_cv_prog_AWK="$ac_prog"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 if test -n "$AWK"; then
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3331 $as_echo "$AWK" >&6; }
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3338 test -n "$AWK" && break
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3342 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3344 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3345 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3346 $as_echo_n "(cached) " >&6
3348 cat >conftest.make <<\_ACEOF
3351 @echo '@@@%%%=$(MAKE)=@@@%%%'
3353 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3354 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3356 eval ac_cv_prog_make_${ac_make}_set=yes;;
3358 eval ac_cv_prog_make_${ac_make}_set=no;;
3362 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 SET_MAKE="MAKE=${MAKE-make}"
3372 rm -rf .tst 2>/dev/null
3373 mkdir .tst 2>/dev/null
3374 if test -d .tst; then
3379 rmdir .tst 2>/dev/null
3381 # Check whether --enable-silent-rules was given.
3382 if test "${enable_silent_rules+set}" = set; then :
3383 enableval=$enable_silent_rules;
3386 case $enable_silent_rules in # (((
3387 yes) AM_DEFAULT_VERBOSITY=0;;
3388 no) AM_DEFAULT_VERBOSITY=1;;
3389 *) AM_DEFAULT_VERBOSITY=1;;
3391 am_make=${MAKE-make}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3393 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3394 if ${am_cv_make_support_nested_variables+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if $as_echo 'TRUE=$(BAR$(V))
3403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3404 am_cv_make_support_nested_variables=yes
3406 am_cv_make_support_nested_variables=no
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3410 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3411 if test $am_cv_make_support_nested_variables = yes; then
3413 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3415 AM_V=$AM_DEFAULT_VERBOSITY
3416 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3420 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3421 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3422 # is not polluted with repeated "-I."
3423 am__isrc=' -I$(srcdir)'
3424 # test to see if srcdir already configured
3425 if test -f $srcdir/config.status; then
3426 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3430 # test whether we have cygpath
3431 if test -z "$CYGPATH_W"; then
3432 if (cygpath --version) >/dev/null 2>/dev/null; then
3433 CYGPATH_W='cygpath -w'
3440 # Define the identity of the package.
3445 cat >>confdefs.h <<_ACEOF
3446 #define PACKAGE "$PACKAGE"
3450 cat >>confdefs.h <<_ACEOF
3451 #define VERSION "$VERSION"
3454 # Some tools Automake needs.
3456 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3459 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3462 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3465 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3468 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3470 # For better backward compatibility. To be removed once Automake 1.9.x
3471 # dies out for good. For more background, see:
3472 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3473 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3474 mkdir_p='$(MKDIR_P)'
3476 # We need awk for the "check" target (and possibly the TAP driver). The
3477 # system "awk" is bad on some platforms.
3478 # Always define AMTAR for backward compatibility. Yes, it's still used
3479 # in the wild :-( We should find a proper way to deprecate it ...
3483 # We'll loop over all known methods to create a tar archive until one works.
3484 _am_tools='gnutar pax cpio none'
3486 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3493 # POSIX will say in a future version that running "rm -f" with no argument
3494 # is OK; and we want to be able to make that assumption in our Makefile
3495 # recipes. So use an aggressive probe to check that the usage we want is
3496 # actually supported "in the wild" to an acceptable degree.
3497 # See automake bug#10828.
3498 # To make any issue more visible, cause the running configure to be aborted
3499 # by default if the 'rm' program in use doesn't match our expectations; the
3500 # user can still override this though.
3501 if rm -f && rm -fr && rm -rf; then : OK; else
3505 Your 'rm' program seems unable to run without file operands specified
3506 on the command line, even when the '-f' option is present. This is contrary
3507 to the behaviour of most rm programs out there, and not conforming with
3508 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3510 Please tell bug-automake@gnu.org about your system, including the value
3511 of your $PATH and any error possibly output before this message. This
3512 can help us improve future automake versions.
3515 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3516 echo 'Configuration will proceed anyway, since you have set the' >&2
3517 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3521 Aborting the configuration process, to ensure you take notice of the issue.
3523 You can download and install GNU coreutils to get an 'rm' implementation
3524 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3526 If you want to complete the configuration process using your problematic
3527 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3528 to "yes", and re-run configure.
3531 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3537 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3538 # Check whether --enable-maintainer-mode was given.
3539 if test "${enable_maintainer_mode+set}" = set; then :
3540 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3542 USE_MAINTAINER_MODE=no
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3546 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3547 if test $USE_MAINTAINER_MODE = yes; then
3548 MAINTAINER_MODE_TRUE=
3549 MAINTAINER_MODE_FALSE='#'
3551 MAINTAINER_MODE_TRUE='#'
3552 MAINTAINER_MODE_FALSE=
3555 MAINT=$MAINTAINER_MODE_TRUE
3558 # Make sure we can run config.sub.
3559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3560 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3563 $as_echo_n "checking build system type... " >&6; }
3564 if ${ac_cv_build+:} false; then :
3565 $as_echo_n "(cached) " >&6
3567 ac_build_alias=$build_alias
3568 test "x$ac_build_alias" = x &&
3569 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3570 test "x$ac_build_alias" = x &&
3571 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3572 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3573 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3577 $as_echo "$ac_cv_build" >&6; }
3578 case $ac_cv_build in
3580 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3583 ac_save_IFS=$IFS; IFS='-'
3589 # Remember, the first character of IFS is used to create $*,
3590 # except with old shells:
3593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3597 $as_echo_n "checking host system type... " >&6; }
3598 if ${ac_cv_host+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 if test "x$host_alias" = x; then
3602 ac_cv_host=$ac_cv_build
3604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3610 $as_echo "$ac_cv_host" >&6; }
3613 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3616 ac_save_IFS=$IFS; IFS='-'
3622 # Remember, the first character of IFS is used to create $*,
3623 # except with old shells:
3626 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3629 # Check whether --enable-silent-rules was given.
3630 if test "${enable_silent_rules+set}" = set; then :
3631 enableval=$enable_silent_rules;
3634 case $enable_silent_rules in # (((
3635 yes) AM_DEFAULT_VERBOSITY=0;;
3636 no) AM_DEFAULT_VERBOSITY=1;;
3637 *) AM_DEFAULT_VERBOSITY=1;;
3639 am_make=${MAKE-make}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3641 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3642 if ${am_cv_make_support_nested_variables+:} false; then :
3643 $as_echo_n "(cached) " >&6
3645 if $as_echo 'TRUE=$(BAR$(V))
3651 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3652 am_cv_make_support_nested_variables=yes
3654 am_cv_make_support_nested_variables=no
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3658 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3659 if test $am_cv_make_support_nested_variables = yes; then
3661 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3663 AM_V=$AM_DEFAULT_VERBOSITY
3664 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3670 # Enable GNU extensions on systems that have them.
3671 DEPDIR="${am__leading_dot}deps"
3673 ac_config_commands="$ac_config_commands depfiles"
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3676 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3677 cat > confinc.mk << 'END'
3679 @echo this is the am__doit target >confinc.out
3684 # BSD make does it like this.
3685 echo '.include "confinc.mk" # ignored' > confmf.BSD
3686 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3687 echo 'include confinc.mk # ignored' > confmf.GNU
3689 for s in GNU BSD; do
3690 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3691 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }
3695 case $?:`cat confinc.out 2>/dev/null` in #(
3696 '0:this is the am__doit target') :
3699 am__include='.include' am__quote='"' ;; #(
3701 am__include='include' am__quote='' ;;
3706 if test "$am__include" != "#"; then
3707 _am_result="yes ($s style)"
3711 rm -f confinc.* confmf.*
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3713 $as_echo "${_am_result}" >&6; }
3715 # Check whether --enable-dependency-tracking was given.
3716 if test "${enable_dependency_tracking+set}" = set; then :
3717 enableval=$enable_dependency_tracking;
3720 if test "x$enable_dependency_tracking" != xno; then
3721 am_depcomp="$ac_aux_dir/depcomp"
3725 if test "x$enable_dependency_tracking" != xno; then
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3778 if test -z "$ac_cv_prog_CC"; then
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_CC="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3816 if test "x$ac_ct_CC" = x; then
3819 case $cross_compiling:$ac_tool_warned in
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}cc; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_prog_CC+:} false; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_prog_CC="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_CC+:} false; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC="$CC" # Let the user override the test.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected=yes
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy $ac_cv_prog_CC
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3912 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog in cl.exe
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if ${ac_cv_prog_CC+:} false; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC="$CC" # Let the user override the test.
3942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir=.
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CC" && break
3972 if test -z "$CC"; then
3974 for ac_prog in cl.exe
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_prog_ac_ct_CC="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CC" && break
4016 if test "x$ac_ct_CC" = x; then
4019 case $cross_compiling:$ac_tool_warned in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error $? "no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details" "$LINENO" 5; }
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041 for ac_option in --version -v -V -qversion; do
4042 { { ac_try="$ac_compiler $ac_option >&5"
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4051 if test -s conftest.err; then
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4057 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4079 $as_echo_n "checking whether the C compiler works... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4086 for ac_file in $ac_files
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4095 if { { ac_try="$ac_link_default"
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4111 for ac_file in $ac_files ''
4113 test -f "$ac_file" || continue
4115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4118 # We found the default executable, but exeext='' is most
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4124 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4136 test "$ac_cv_exeext" = no && ac_cv_exeext=
4141 if test -z "$ac_file"; then :
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 as_fn_error 77 "C compiler cannot create executables
4150 See \`config.log' for more details" "$LINENO" 5; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4153 $as_echo "yes" >&6; }
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4156 $as_echo_n "checking for C compiler default output file name... " >&6; }
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4158 $as_echo "$ac_file" >&6; }
4159 ac_exeext=$ac_cv_exeext
4161 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4162 ac_clean_files=$ac_clean_files_save
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4164 $as_echo_n "checking for suffix of executables... " >&6; }
4165 if { { ac_try="$ac_link"
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171 $as_echo "$ac_try_echo"; } >&5
4172 (eval "$ac_link") 2>&5
4174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175 test $ac_status = 0; }; then :
4176 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4177 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4178 # work properly (i.e., refer to `conftest.exe'), while it won't with
4180 for ac_file in conftest.exe conftest conftest.*; do
4181 test -f "$ac_file" || continue
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4192 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4193 See \`config.log' for more details" "$LINENO" 5; }
4195 rm -f conftest conftest$ac_cv_exeext
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4197 $as_echo "$ac_cv_exeext" >&6; }
4199 rm -f conftest.$ac_ext
4200 EXEEXT=$ac_cv_exeext
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4208 FILE *f = fopen ("conftest.out", "w");
4209 return ferror (f) || fclose (f) != 0;
4215 ac_clean_files="$ac_clean_files conftest.out"
4216 # Check that the compiler produces executables we can run. If not, either
4217 # the compiler is broken, or we cross compile.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4219 $as_echo_n "checking whether we are cross compiling... " >&6; }
4220 if test "$cross_compiling" != yes; then
4221 { { ac_try="$ac_link"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 $as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_link") 2>&5
4230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4231 test $ac_status = 0; }
4232 if { ac_try='./conftest$ac_cv_exeext'
4233 { { case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238 $as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_try") 2>&5
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; }; then
4245 if test "$cross_compiling" = maybe; then
4248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4250 as_fn_error $? "cannot run C compiled programs.
4251 If you meant to cross compile, use \`--host'.
4252 See \`config.log' for more details" "$LINENO" 5; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4257 $as_echo "$cross_compiling" >&6; }
4259 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4260 ac_clean_files=$ac_clean_files_save
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4262 $as_echo_n "checking for suffix of object files... " >&6; }
4263 if ${ac_cv_objext+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4277 rm -f conftest.o conftest.obj
4278 if { { ac_try="$ac_compile"
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_compile") 2>&5
4287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4288 test $ac_status = 0; }; then :
4289 for ac_file in conftest.o conftest.obj conftest.*; do
4290 test -f "$ac_file" || continue;
4292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4293 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4298 $as_echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error $? "cannot compute suffix of object files: cannot compile
4304 See \`config.log' for more details" "$LINENO" 5; }
4306 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4309 $as_echo "$ac_cv_objext" >&6; }
4310 OBJEXT=$ac_cv_objext
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4313 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4314 if ${ac_cv_c_compiler_gnu+:} false; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4331 if ac_fn_c_try_compile "$LINENO"; then :
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4341 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4342 if test $ac_compiler_gnu = yes; then
4347 ac_test_CFLAGS=${CFLAGS+set}
4348 ac_save_CFLAGS=$CFLAGS
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4350 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4351 if ${ac_cv_prog_cc_g+:} false; then :
4352 $as_echo_n "(cached) " >&6
4354 ac_save_c_werror_flag=$ac_c_werror_flag
4355 ac_c_werror_flag=yes
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4369 if ac_fn_c_try_compile "$LINENO"; then :
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4384 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_c_werror_flag=$ac_save_c_werror_flag
4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h. */
4400 if ac_fn_c_try_compile "$LINENO"; then :
4403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4408 ac_c_werror_flag=$ac_save_c_werror_flag
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4411 $as_echo "$ac_cv_prog_cc_g" >&6; }
4412 if test "$ac_test_CFLAGS" = set; then
4413 CFLAGS=$ac_save_CFLAGS
4414 elif test $ac_cv_prog_cc_g = yes; then
4415 if test "$GCC" = yes; then
4421 if test "$GCC" = yes; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4428 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4429 if ${ac_cv_prog_cc_c89+:} false; then :
4430 $as_echo_n "(cached) " >&6
4432 ac_cv_prog_cc_c89=no
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4440 struct buf { int x; };
4441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4442 static char *e (p, i)
4448 static char *f (char * (*g) (char **, int), char **p, ...)
4453 s = g (p, va_arg (v,int));
4458 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4459 function prototypes and stuff, but not '\xHH' hex character constants.
4460 These don't provoke an error unfortunately, instead are silently treated
4461 as 'x'. The following induces an error, until -std is added to get
4462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4463 array size at least. It's necessary to write '\x00'==0 to get something
4464 that's true only with -std. */
4465 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4467 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4468 inside strings and character constants. */
4470 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4472 int test (int i, double x);
4473 struct s1 {int (*f) (int a);};
4474 struct s2 {int (*f) (double a);};
4475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4486 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4489 CC="$ac_save_CC $ac_arg"
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_prog_cc_c89=$ac_arg
4493 rm -f core conftest.err conftest.$ac_objext
4494 test "x$ac_cv_prog_cc_c89" != "xno" && break
4496 rm -f conftest.$ac_ext
4501 case "x$ac_cv_prog_cc_c89" in
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504 $as_echo "none needed" >&6; } ;;
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4507 $as_echo "unsupported" >&6; } ;;
4509 CC="$CC $ac_cv_prog_cc_c89"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4511 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4513 if test "x$ac_cv_prog_cc_c89" != xno; then :
4518 ac_cpp='$CPP $CPPFLAGS'
4519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4529 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4530 if ${am_cv_prog_cc_c_o+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4544 # Make sure it works both with $CC and with simple cc.
4545 # Following AC_PROG_CC_C_O, we do the test twice because some
4546 # compilers refuse to overwrite an existing .o file with -o,
4547 # though they will create one.
4548 am_cv_prog_cc_c_o=yes
4550 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4551 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); } \
4555 && test -f conftest2.$ac_objext; then
4558 am_cv_prog_cc_c_o=no
4562 rm -f core conftest*
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4566 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4567 if test "$am_cv_prog_cc_c_o" != yes; then
4568 # Losing compiler, so override with the script.
4569 # FIXME: It is wrong to rewrite CC.
4570 # But if we don't then we get into trouble of one sort or another.
4571 # A longer-term fix would be to have automake use am__CC in this case,
4572 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4573 CC="$am_aux_dir/compile $CC"
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4582 depcc="$CC" am_compiler_list=
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4585 $as_echo_n "checking dependency style of $depcc... " >&6; }
4586 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4590 # We make a subdir and do the tests there. Otherwise we can end up
4591 # making bogus files that we don't know about and never remove. For
4592 # instance it was reported that on HP-UX the gcc test will end up
4593 # making a dummy file named 'D' -- because '-MD' means "put the output
4597 # Copy depcomp to subdir because otherwise we won't find it if we're
4598 # using a relative directory.
4599 cp "$am_depcomp" conftest.dir
4601 # We will build objects and dependencies in a subdirectory because
4602 # it helps to detect inapplicable dependency modes. For instance
4603 # both Tru64's cc and ICC support -MD to output dependencies as a
4604 # side effect of compilation, but ICC will put the dependencies in
4605 # the current directory while Tru64 will put them in the object
4609 am_cv_CC_dependencies_compiler_type=none
4610 if test "$am_compiler_list" = ""; then
4611 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4614 case " $depcc " in #(
4615 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4618 for depmode in $am_compiler_list; do
4619 # Setup a source with many dependencies, because some compilers
4620 # like to wrap large dependency lists on column 80 (with \), and
4621 # we should not choose a depcomp mode which is confused by this.
4623 # We need to recreate these files for each test, as the compiler may
4624 # overwrite some of them when testing with obscure command lines.
4625 # This happens at least with the AIX C compiler.
4627 for i in 1 2 3 4 5 6; do
4628 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4629 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4630 # Solaris 10 /bin/sh.
4631 echo '/* dummy */' > sub/conftst$i.h
4633 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4635 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4636 # mode. It turns out that the SunPro C++ compiler does not properly
4637 # handle '-M -o', and we need to detect this. Also, some Intel
4638 # versions had trouble with output in subdirs.
4639 am__obj=sub/conftest.${OBJEXT-o}
4640 am__minus_obj="-o $am__obj"
4643 # This depmode causes a compiler race in universal mode.
4644 test "$am__universal" = false || continue
4647 # After this tag, mechanisms are not by side-effect, so they'll
4648 # only be used when explicitly requested.
4649 if test "x$enable_dependency_tracking" = xyes; then
4655 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4656 # This compiler won't grok '-c -o', but also, the minuso test has
4657 # not run yet. These depmodes are late enough in the game, and
4658 # so weak that their functioning should not be impacted.
4659 am__obj=conftest.${OBJEXT-o}
4664 if depmode=$depmode \
4665 source=sub/conftest.c object=$am__obj \
4666 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4667 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4668 >/dev/null 2>conftest.err &&
4669 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4670 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4671 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4672 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4673 # icc doesn't choke on unknown options, it will just issue warnings
4674 # or remarks (even with -Werror). So we grep stderr for any message
4675 # that says an option was ignored or not supported.
4676 # When given -MP, icc 7.0 and 7.1 complain thusly:
4677 # icc: Command line warning: ignoring option '-M'; no argument required
4678 # The diagnosis changed in icc 8.0:
4679 # icc: Command line remark: option '-MP' not supported
4680 if (grep 'ignoring option' conftest.err ||
4681 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4682 am_cv_CC_dependencies_compiler_type=$depmode
4691 am_cv_CC_dependencies_compiler_type=none
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4696 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4697 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4700 test "x$enable_dependency_tracking" != xno \
4701 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4703 am__fastdepCC_FALSE='#'
4705 am__fastdepCC_TRUE='#'
4706 am__fastdepCC_FALSE=
4712 ac_cpp='$CPP $CPPFLAGS'
4713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4717 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4718 # On Suns, sometimes $CPP names a directory.
4719 if test -n "$CPP" && test -d "$CPP"; then
4722 if test -z "$CPP"; then
4723 if ${ac_cv_prog_CPP+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 # Double quotes because CPP needs to be expanded
4727 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4730 for ac_c_preproc_warn_flag in '' yes
4732 # Use a header file that comes with gcc, so configuring glibc
4733 # with a fresh cross-compiler works.
4734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4735 # <limits.h> exists even on freestanding compilers.
4736 # On the NeXT, cc -E runs the code through the compiler's parser,
4737 # not just through cpp. "Syntax error" is here to catch this case.
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4741 # include <limits.h>
4743 # include <assert.h>
4747 if ac_fn_c_try_cpp "$LINENO"; then :
4750 # Broken: fails on valid input.
4753 rm -f conftest.err conftest.i conftest.$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #include <ac_nonexistent.h>
4761 if ac_fn_c_try_cpp "$LINENO"; then :
4762 # Broken: success on invalid input.
4765 # Passes both tests.
4769 rm -f conftest.err conftest.i conftest.$ac_ext
4772 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4773 rm -f conftest.i conftest.err conftest.$ac_ext
4774 if $ac_preproc_ok; then :
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4787 $as_echo "$CPP" >&6; }
4789 for ac_c_preproc_warn_flag in '' yes
4791 # Use a header file that comes with gcc, so configuring glibc
4792 # with a fresh cross-compiler works.
4793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4794 # <limits.h> exists even on freestanding compilers.
4795 # On the NeXT, cc -E runs the code through the compiler's parser,
4796 # not just through cpp. "Syntax error" is here to catch this case.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4800 # include <limits.h>
4802 # include <assert.h>
4806 if ac_fn_c_try_cpp "$LINENO"; then :
4809 # Broken: fails on valid input.
4812 rm -f conftest.err conftest.i conftest.$ac_ext
4814 # OK, works on sane cases. Now check whether nonexistent headers
4815 # can be detected and how.
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ac_nonexistent.h>
4820 if ac_fn_c_try_cpp "$LINENO"; then :
4821 # Broken: success on invalid input.
4824 # Passes both tests.
4828 rm -f conftest.err conftest.i conftest.$ac_ext
4831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4832 rm -f conftest.i conftest.err conftest.$ac_ext
4833 if $ac_preproc_ok; then :
4836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4838 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details" "$LINENO" 5; }
4843 ac_cpp='$CPP $CPPFLAGS'
4844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851 if ${ac_cv_path_GREP+:} false; then :
4852 $as_echo_n "(cached) " >&6
4854 if test -z "$GREP"; then
4855 ac_path_GREP_found=false
4856 # Loop through the user's path and test for each of PROGNAME-LIST
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 test -z "$as_dir" && as_dir=.
4862 for ac_prog in grep ggrep; do
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865 as_fn_executable_p "$ac_path_GREP" || continue
4866 # Check for GNU ac_path_GREP and select it if it is found.
4867 # Check for GNU $ac_path_GREP
4868 case `"$ac_path_GREP" --version 2>&1` in
4870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4873 $as_echo_n 0123456789 >"conftest.in"
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 $as_echo 'GREP' >> "conftest.nl"
4880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4882 as_fn_arith $ac_count + 1 && ac_count=$as_val
4883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884 # Best one so far, save it but keep looking for a better one
4885 ac_cv_path_GREP="$ac_path_GREP"
4886 ac_path_GREP_max=$ac_count
4888 # 10*(2^10) chars as input seems more than enough
4889 test $ac_count -gt 10 && break
4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 $ac_path_GREP_found && break 3
4899 if test -z "$ac_cv_path_GREP"; then
4900 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4903 ac_cv_path_GREP=$GREP
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908 $as_echo "$ac_cv_path_GREP" >&6; }
4909 GREP="$ac_cv_path_GREP"
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913 $as_echo_n "checking for egrep... " >&6; }
4914 if ${ac_cv_path_EGREP+:} false; then :
4915 $as_echo_n "(cached) " >&6
4917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918 then ac_cv_path_EGREP="$GREP -E"
4920 if test -z "$EGREP"; then
4921 ac_path_EGREP_found=false
4922 # Loop through the user's path and test for each of PROGNAME-LIST
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4927 test -z "$as_dir" && as_dir=.
4928 for ac_prog in egrep; do
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931 as_fn_executable_p "$ac_path_EGREP" || continue
4932 # Check for GNU ac_path_EGREP and select it if it is found.
4933 # Check for GNU $ac_path_EGREP
4934 case `"$ac_path_EGREP" --version 2>&1` in
4936 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4939 $as_echo_n 0123456789 >"conftest.in"
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
4945 $as_echo 'EGREP' >> "conftest.nl"
4946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948 as_fn_arith $ac_count + 1 && ac_count=$as_val
4949 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950 # Best one so far, save it but keep looking for a better one
4951 ac_cv_path_EGREP="$ac_path_EGREP"
4952 ac_path_EGREP_max=$ac_count
4954 # 10*(2^10) chars as input seems more than enough
4955 test $ac_count -gt 10 && break
4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4960 $ac_path_EGREP_found && break 3
4965 if test -z "$ac_cv_path_EGREP"; then
4966 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4969 ac_cv_path_EGREP=$EGREP
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975 $as_echo "$ac_cv_path_EGREP" >&6; }
4976 EGREP="$ac_cv_path_EGREP"
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4980 $as_echo_n "checking for ANSI C header files... " >&6; }
4981 if ${ac_cv_header_stdc+:} false; then :
4982 $as_echo_n "(cached) " >&6
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000 ac_cv_header_stdc=yes
5002 ac_cv_header_stdc=no
5004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5006 if test $ac_cv_header_stdc = yes; then
5007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5014 $EGREP "memchr" >/dev/null 2>&1; then :
5017 ac_cv_header_stdc=no
5023 if test $ac_cv_header_stdc = yes; then
5024 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "free" >/dev/null 2>&1; then :
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5042 if test "$cross_compiling" = yes; then :
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 #if ((' ' & 0x0FF) == 0x020)
5050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5053 # define ISLOWER(c) \
5054 (('a' <= (c) && (c) <= 'i') \
5055 || ('j' <= (c) && (c) <= 'r') \
5056 || ('s' <= (c) && (c) <= 'z'))
5057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5065 for (i = 0; i < 256; i++)
5066 if (XOR (islower (i), ISLOWER (i))
5067 || toupper (i) != TOUPPER (i))
5072 if ac_fn_c_try_run "$LINENO"; then :
5075 ac_cv_header_stdc=no
5077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5078 conftest.$ac_objext conftest.beam conftest.$ac_ext
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5084 $as_echo "$ac_cv_header_stdc" >&6; }
5085 if test $ac_cv_header_stdc = yes; then
5087 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5091 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093 inttypes.h stdint.h unistd.h
5095 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5098 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5099 cat >>confdefs.h <<_ACEOF
5100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5110 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5117 if test "$MINIX" = yes; then
5119 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5122 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5125 $as_echo "#define _MINIX 1" >>confdefs.h
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5131 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5132 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5138 # define __EXTENSIONS__ 1
5139 $ac_includes_default
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_safe_to_define___extensions__=yes
5151 ac_cv_safe_to_define___extensions__=no
5153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5156 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5157 test $ac_cv_safe_to_define___extensions__ = yes &&
5158 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5160 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5162 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5164 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5166 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5170 # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE
5173 if test -n "$LD_LIBRARY_PATH"; then
5174 saved_LDFLAGS="$LDFLAGS"
5175 LDADD_FOR_TESTS_KLUDGE="-Wl,--disable-new-dtags"
5176 LDFLAGS="$LDFLAGS $LDADD_FOR_TESTS_KLUDGE"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --disable-new-dtags is supported by the linker" >&5
5178 $as_echo_n "checking whether --disable-new-dtags is supported by the linker... " >&6; }
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5182 int main (void) { return 0; }
5185 if ac_fn_c_try_link "$LINENO"; then :
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (use it since LD_LIBRARY_PATH is set)" >&5
5187 $as_echo "yes (use it since LD_LIBRARY_PATH is set)" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 LDADD_FOR_TESTS_KLUDGE=""
5194 rm -f core conftest.err conftest.$ac_objext \
5195 conftest$ac_exeext conftest.$ac_ext
5196 LDFLAGS="$saved_LDFLAGS"
5205 ac_cpp='$CPP $CPPFLAGS'
5206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_prog_CC+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 if test -n "$CC"; then
5218 ac_cv_prog_CC="$CC" # Let the user override the test.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 if test -n "$CC"; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5240 $as_echo "$CC" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5248 if test -z "$ac_cv_prog_CC"; then
5250 # Extract the first word of "gcc", so it can be a program name with args.
5251 set dummy gcc; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 if test -n "$ac_ct_CC"; then
5258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267 ac_cv_prog_ac_ct_CC="gcc"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5278 if test -n "$ac_ct_CC"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5280 $as_echo "$ac_ct_CC" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5286 if test "x$ac_ct_CC" = x; then
5289 case $cross_compiling:$ac_tool_warned in
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5293 ac_tool_warned=yes ;;
5301 if test -z "$CC"; then
5302 if test -n "$ac_tool_prefix"; then
5303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5304 set dummy ${ac_tool_prefix}cc; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_prog_CC+:} false; then :
5308 $as_echo_n "(cached) " >&6
5310 if test -n "$CC"; then
5311 ac_cv_prog_CC="$CC" # Let the user override the test.
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 test -z "$as_dir" && as_dir=.
5318 for ac_exec_ext in '' $ac_executable_extensions; do
5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320 ac_cv_prog_CC="${ac_tool_prefix}cc"
5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331 if test -n "$CC"; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5333 $as_echo "$CC" >&6; }
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336 $as_echo "no" >&6; }
5342 if test -z "$CC"; then
5343 # Extract the first word of "cc", so it can be a program name with args.
5344 set dummy cc; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_CC+:} false; then :
5348 $as_echo_n "(cached) " >&6
5350 if test -n "$CC"; then
5351 ac_cv_prog_CC="$CC" # Let the user override the test.
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5362 ac_prog_rejected=yes
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5373 if test $ac_prog_rejected = yes; then
5374 # We found a bogon in the path, so make sure we never use it.
5375 set dummy $ac_cv_prog_CC
5377 if test $# != 0; then
5378 # We chose a different compiler from the bogus one.
5379 # However, it has the same basename, so the bogon will be chosen
5380 # first if we set CC to just the basename; use the full file name.
5382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5388 if test -n "$CC"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5390 $as_echo "$CC" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5398 if test -z "$CC"; then
5399 if test -n "$ac_tool_prefix"; then
5400 for ac_prog in cl.exe
5402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if ${ac_cv_prog_CC+:} false; then :
5407 $as_echo_n "(cached) " >&6
5409 if test -n "$CC"; then
5410 ac_cv_prog_CC="$CC" # Let the user override the test.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 if test -n "$CC"; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5432 $as_echo "$CC" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5439 test -n "$CC" && break
5442 if test -z "$CC"; then
5444 for ac_prog in cl.exe
5446 # Extract the first word of "$ac_prog", so it can be a program name with args.
5447 set dummy $ac_prog; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$ac_ct_CC"; then
5454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5463 ac_cv_prog_ac_ct_CC="$ac_prog"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5474 if test -n "$ac_ct_CC"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5476 $as_echo "$ac_ct_CC" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 test -n "$ac_ct_CC" && break
5486 if test "x$ac_ct_CC" = x; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned=yes ;;
5502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5504 as_fn_error $? "no acceptable C compiler found in \$PATH
5505 See \`config.log' for more details" "$LINENO" 5; }
5507 # Provide some information about the compiler.
5508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5511 for ac_option in --version -v -V -qversion; do
5512 { { ac_try="$ac_compiler $ac_option >&5"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5518 $as_echo "$ac_try_echo"; } >&5
5519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5521 if test -s conftest.err; then
5523 ... rest of stderr output deleted ...
5524 10q' conftest.err >conftest.er1
5525 cat conftest.er1 >&5
5527 rm -f conftest.er1 conftest.err
5528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5529 test $ac_status = 0; }
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5534 if ${ac_cv_c_compiler_gnu+:} false; then :
5535 $as_echo_n "(cached) " >&6
5537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h. */
5551 if ac_fn_c_try_compile "$LINENO"; then :
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5562 if test $ac_compiler_gnu = yes; then
5567 ac_test_CFLAGS=${CFLAGS+set}
5568 ac_save_CFLAGS=$CFLAGS
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5571 if ${ac_cv_prog_cc_g+:} false; then :
5572 $as_echo_n "(cached) " >&6
5574 ac_save_c_werror_flag=$ac_c_werror_flag
5575 ac_c_werror_flag=yes
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5589 if ac_fn_c_try_compile "$LINENO"; then :
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5604 if ac_fn_c_try_compile "$LINENO"; then :
5607 ac_c_werror_flag=$ac_save_c_werror_flag
5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5620 if ac_fn_c_try_compile "$LINENO"; then :
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628 ac_c_werror_flag=$ac_save_c_werror_flag
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5631 $as_echo "$ac_cv_prog_cc_g" >&6; }
5632 if test "$ac_test_CFLAGS" = set; then
5633 CFLAGS=$ac_save_CFLAGS
5634 elif test $ac_cv_prog_cc_g = yes; then
5635 if test "$GCC" = yes; then
5641 if test "$GCC" = yes; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5649 if ${ac_cv_prog_cc_c89+:} false; then :
5650 $as_echo_n "(cached) " >&6
5652 ac_cv_prog_cc_c89=no
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5660 struct buf { int x; };
5661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5662 static char *e (p, i)
5668 static char *f (char * (*g) (char **, int), char **p, ...)
5673 s = g (p, va_arg (v,int));
5678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5679 function prototypes and stuff, but not '\xHH' hex character constants.
5680 These don't provoke an error unfortunately, instead are silently treated
5681 as 'x'. The following induces an error, until -std is added to get
5682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5683 array size at least. It's necessary to write '\x00'==0 to get something
5684 that's true only with -std. */
5685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5688 inside strings and character constants. */
5690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5692 int test (int i, double x);
5693 struct s1 {int (*f) (int a);};
5694 struct s2 {int (*f) (double a);};
5695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5709 CC="$ac_save_CC $ac_arg"
5710 if ac_fn_c_try_compile "$LINENO"; then :
5711 ac_cv_prog_cc_c89=$ac_arg
5713 rm -f core conftest.err conftest.$ac_objext
5714 test "x$ac_cv_prog_cc_c89" != "xno" && break
5716 rm -f conftest.$ac_ext
5721 case "x$ac_cv_prog_cc_c89" in
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5724 $as_echo "none needed" >&6; } ;;
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5727 $as_echo "unsupported" >&6; } ;;
5729 CC="$CC $ac_cv_prog_cc_c89"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5733 if test "x$ac_cv_prog_cc_c89" != xno; then :
5738 ac_cpp='$CPP $CPPFLAGS'
5739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5749 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5750 if ${am_cv_prog_cc_c_o+:} false; then :
5751 $as_echo_n "(cached) " >&6
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5764 # Make sure it works both with $CC and with simple cc.
5765 # Following AC_PROG_CC_C_O, we do the test twice because some
5766 # compilers refuse to overwrite an existing .o file with -o,
5767 # though they will create one.
5768 am_cv_prog_cc_c_o=yes
5770 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5771 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } \
5775 && test -f conftest2.$ac_objext; then
5778 am_cv_prog_cc_c_o=no
5782 rm -f core conftest*
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5786 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5787 if test "$am_cv_prog_cc_c_o" != yes; then
5788 # Losing compiler, so override with the script.
5789 # FIXME: It is wrong to rewrite CC.
5790 # But if we don't then we get into trouble of one sort or another.
5791 # A longer-term fix would be to have automake use am__CC in this case,
5792 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5793 CC="$am_aux_dir/compile $CC"
5796 ac_cpp='$CPP $CPPFLAGS'
5797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802 depcc="$CC" am_compiler_list=
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5805 $as_echo_n "checking dependency style of $depcc... " >&6; }
5806 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5807 $as_echo_n "(cached) " >&6
5809 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5810 # We make a subdir and do the tests there. Otherwise we can end up
5811 # making bogus files that we don't know about and never remove. For
5812 # instance it was reported that on HP-UX the gcc test will end up
5813 # making a dummy file named 'D' -- because '-MD' means "put the output
5817 # Copy depcomp to subdir because otherwise we won't find it if we're
5818 # using a relative directory.
5819 cp "$am_depcomp" conftest.dir
5821 # We will build objects and dependencies in a subdirectory because
5822 # it helps to detect inapplicable dependency modes. For instance
5823 # both Tru64's cc and ICC support -MD to output dependencies as a
5824 # side effect of compilation, but ICC will put the dependencies in
5825 # the current directory while Tru64 will put them in the object
5829 am_cv_CC_dependencies_compiler_type=none
5830 if test "$am_compiler_list" = ""; then
5831 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5834 case " $depcc " in #(
5835 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5838 for depmode in $am_compiler_list; do
5839 # Setup a source with many dependencies, because some compilers
5840 # like to wrap large dependency lists on column 80 (with \), and
5841 # we should not choose a depcomp mode which is confused by this.
5843 # We need to recreate these files for each test, as the compiler may
5844 # overwrite some of them when testing with obscure command lines.
5845 # This happens at least with the AIX C compiler.
5847 for i in 1 2 3 4 5 6; do
5848 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5849 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5850 # Solaris 10 /bin/sh.
5851 echo '/* dummy */' > sub/conftst$i.h
5853 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5855 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5856 # mode. It turns out that the SunPro C++ compiler does not properly
5857 # handle '-M -o', and we need to detect this. Also, some Intel
5858 # versions had trouble with output in subdirs.
5859 am__obj=sub/conftest.${OBJEXT-o}
5860 am__minus_obj="-o $am__obj"
5863 # This depmode causes a compiler race in universal mode.
5864 test "$am__universal" = false || continue
5867 # After this tag, mechanisms are not by side-effect, so they'll
5868 # only be used when explicitly requested.
5869 if test "x$enable_dependency_tracking" = xyes; then
5875 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5876 # This compiler won't grok '-c -o', but also, the minuso test has
5877 # not run yet. These depmodes are late enough in the game, and
5878 # so weak that their functioning should not be impacted.
5879 am__obj=conftest.${OBJEXT-o}
5884 if depmode=$depmode \
5885 source=sub/conftest.c object=$am__obj \
5886 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5887 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5888 >/dev/null 2>conftest.err &&
5889 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5890 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5891 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5892 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5893 # icc doesn't choke on unknown options, it will just issue warnings
5894 # or remarks (even with -Werror). So we grep stderr for any message
5895 # that says an option was ignored or not supported.
5896 # When given -MP, icc 7.0 and 7.1 complain thusly:
5897 # icc: Command line warning: ignoring option '-M'; no argument required
5898 # The diagnosis changed in icc 8.0:
5899 # icc: Command line remark: option '-MP' not supported
5900 if (grep 'ignoring option' conftest.err ||
5901 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5902 am_cv_CC_dependencies_compiler_type=$depmode
5911 am_cv_CC_dependencies_compiler_type=none
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5916 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5917 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5920 test "x$enable_dependency_tracking" != xno \
5921 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5923 am__fastdepCC_FALSE='#'
5925 am__fastdepCC_TRUE='#'
5926 am__fastdepCC_FALSE=
5931 ac_cpp='$CPP $CPPFLAGS'
5932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5936 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5937 # On Suns, sometimes $CPP names a directory.
5938 if test -n "$CPP" && test -d "$CPP"; then
5941 if test -z "$CPP"; then
5942 if ${ac_cv_prog_CPP+:} false; then :
5943 $as_echo_n "(cached) " >&6
5945 # Double quotes because CPP needs to be expanded
5946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5949 for ac_c_preproc_warn_flag in '' yes
5951 # Use a header file that comes with gcc, so configuring glibc
5952 # with a fresh cross-compiler works.
5953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954 # <limits.h> exists even on freestanding compilers.
5955 # On the NeXT, cc -E runs the code through the compiler's parser,
5956 # not just through cpp. "Syntax error" is here to catch this case.
5957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5960 # include <limits.h>
5962 # include <assert.h>
5966 if ac_fn_c_try_cpp "$LINENO"; then :
5969 # Broken: fails on valid input.
5972 rm -f conftest.err conftest.i conftest.$ac_ext
5974 # OK, works on sane cases. Now check whether nonexistent headers
5975 # can be detected and how.
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 #include <ac_nonexistent.h>
5980 if ac_fn_c_try_cpp "$LINENO"; then :
5981 # Broken: success on invalid input.
5984 # Passes both tests.
5988 rm -f conftest.err conftest.i conftest.$ac_ext
5991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5992 rm -f conftest.i conftest.err conftest.$ac_ext
5993 if $ac_preproc_ok; then :
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6006 $as_echo "$CPP" >&6; }
6008 for ac_c_preproc_warn_flag in '' yes
6010 # Use a header file that comes with gcc, so configuring glibc
6011 # with a fresh cross-compiler works.
6012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6013 # <limits.h> exists even on freestanding compilers.
6014 # On the NeXT, cc -E runs the code through the compiler's parser,
6015 # not just through cpp. "Syntax error" is here to catch this case.
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6019 # include <limits.h>
6021 # include <assert.h>
6025 if ac_fn_c_try_cpp "$LINENO"; then :
6028 # Broken: fails on valid input.
6031 rm -f conftest.err conftest.i conftest.$ac_ext
6033 # OK, works on sane cases. Now check whether nonexistent headers
6034 # can be detected and how.
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #include <ac_nonexistent.h>
6039 if ac_fn_c_try_cpp "$LINENO"; then :
6040 # Broken: success on invalid input.
6043 # Passes both tests.
6047 rm -f conftest.err conftest.i conftest.$ac_ext
6050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6051 rm -f conftest.i conftest.err conftest.$ac_ext
6052 if $ac_preproc_ok; then :
6055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6057 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6058 See \`config.log' for more details" "$LINENO" 5; }
6062 ac_cpp='$CPP $CPPFLAGS'
6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6068 ac_cpp='$CXXCPP $CPPFLAGS'
6069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6072 if test -z "$CXX"; then
6073 if test -n "$CCC"; then
6076 if test -n "$ac_tool_prefix"; then
6077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if ${ac_cv_prog_CXX+:} false; then :
6084 $as_echo_n "(cached) " >&6
6086 if test -n "$CXX"; then
6087 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 if test -n "$CXX"; then
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6109 $as_echo "$CXX" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6116 test -n "$CXX" && break
6119 if test -z "$CXX"; then
6121 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6123 # Extract the first word of "$ac_prog", so it can be a program name with args.
6124 set dummy $ac_prog; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6128 $as_echo_n "(cached) " >&6
6130 if test -n "$ac_ct_CXX"; then
6131 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6140 ac_cv_prog_ac_ct_CXX="$ac_prog"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6151 if test -n "$ac_ct_CXX"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6153 $as_echo "$ac_ct_CXX" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6160 test -n "$ac_ct_CXX" && break
6163 if test "x$ac_ct_CXX" = x; then
6166 case $cross_compiling:$ac_tool_warned in
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170 ac_tool_warned=yes ;;
6178 # Provide some information about the compiler.
6179 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6182 for ac_option in --version -v -V -qversion; do
6183 { { ac_try="$ac_compiler $ac_option >&5"
6185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186 *) ac_try_echo=$ac_try;;
6188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6189 $as_echo "$ac_try_echo"; } >&5
6190 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6192 if test -s conftest.err; then
6194 ... rest of stderr output deleted ...
6195 10q' conftest.err >conftest.er1
6196 cat conftest.er1 >&5
6198 rm -f conftest.er1 conftest.err
6199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6200 test $ac_status = 0; }
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6204 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6205 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6222 if ac_fn_cxx_try_compile "$LINENO"; then :
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6232 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6233 if test $ac_compiler_gnu = yes; then
6238 ac_test_CXXFLAGS=${CXXFLAGS+set}
6239 ac_save_CXXFLAGS=$CXXFLAGS
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6241 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6242 if ${ac_cv_prog_cxx_g+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6246 ac_cxx_werror_flag=yes
6249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250 /* end confdefs.h. */
6260 if ac_fn_cxx_try_compile "$LINENO"; then :
6261 ac_cv_prog_cxx_g=yes
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265 /* end confdefs.h. */
6275 if ac_fn_cxx_try_compile "$LINENO"; then :
6278 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6291 if ac_fn_cxx_try_compile "$LINENO"; then :
6292 ac_cv_prog_cxx_g=yes
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6302 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6303 if test "$ac_test_CXXFLAGS" = set; then
6304 CXXFLAGS=$ac_save_CXXFLAGS
6305 elif test $ac_cv_prog_cxx_g = yes; then
6306 if test "$GXX" = yes; then
6312 if test "$GXX" = yes; then
6319 ac_cpp='$CPP $CPPFLAGS'
6320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324 depcc="$CXX" am_compiler_list=
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6327 $as_echo_n "checking dependency style of $depcc... " >&6; }
6328 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6329 $as_echo_n "(cached) " >&6
6331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6332 # We make a subdir and do the tests there. Otherwise we can end up
6333 # making bogus files that we don't know about and never remove. For
6334 # instance it was reported that on HP-UX the gcc test will end up
6335 # making a dummy file named 'D' -- because '-MD' means "put the output
6339 # Copy depcomp to subdir because otherwise we won't find it if we're
6340 # using a relative directory.
6341 cp "$am_depcomp" conftest.dir
6343 # We will build objects and dependencies in a subdirectory because
6344 # it helps to detect inapplicable dependency modes. For instance
6345 # both Tru64's cc and ICC support -MD to output dependencies as a
6346 # side effect of compilation, but ICC will put the dependencies in
6347 # the current directory while Tru64 will put them in the object
6351 am_cv_CXX_dependencies_compiler_type=none
6352 if test "$am_compiler_list" = ""; then
6353 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6356 case " $depcc " in #(
6357 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6360 for depmode in $am_compiler_list; do
6361 # Setup a source with many dependencies, because some compilers
6362 # like to wrap large dependency lists on column 80 (with \), and
6363 # we should not choose a depcomp mode which is confused by this.
6365 # We need to recreate these files for each test, as the compiler may
6366 # overwrite some of them when testing with obscure command lines.
6367 # This happens at least with the AIX C compiler.
6369 for i in 1 2 3 4 5 6; do
6370 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6371 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6372 # Solaris 10 /bin/sh.
6373 echo '/* dummy */' > sub/conftst$i.h
6375 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6377 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6378 # mode. It turns out that the SunPro C++ compiler does not properly
6379 # handle '-M -o', and we need to detect this. Also, some Intel
6380 # versions had trouble with output in subdirs.
6381 am__obj=sub/conftest.${OBJEXT-o}
6382 am__minus_obj="-o $am__obj"
6385 # This depmode causes a compiler race in universal mode.
6386 test "$am__universal" = false || continue
6389 # After this tag, mechanisms are not by side-effect, so they'll
6390 # only be used when explicitly requested.
6391 if test "x$enable_dependency_tracking" = xyes; then
6397 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6398 # This compiler won't grok '-c -o', but also, the minuso test has
6399 # not run yet. These depmodes are late enough in the game, and
6400 # so weak that their functioning should not be impacted.
6401 am__obj=conftest.${OBJEXT-o}
6406 if depmode=$depmode \
6407 source=sub/conftest.c object=$am__obj \
6408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6409 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6410 >/dev/null 2>conftest.err &&
6411 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6412 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6413 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6414 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6415 # icc doesn't choke on unknown options, it will just issue warnings
6416 # or remarks (even with -Werror). So we grep stderr for any message
6417 # that says an option was ignored or not supported.
6418 # When given -MP, icc 7.0 and 7.1 complain thusly:
6419 # icc: Command line warning: ignoring option '-M'; no argument required
6420 # The diagnosis changed in icc 8.0:
6421 # icc: Command line remark: option '-MP' not supported
6422 if (grep 'ignoring option' conftest.err ||
6423 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6424 am_cv_CXX_dependencies_compiler_type=$depmode
6433 am_cv_CXX_dependencies_compiler_type=none
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6438 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6439 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6442 test "x$enable_dependency_tracking" != xno \
6443 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6444 am__fastdepCXX_TRUE=
6445 am__fastdepCXX_FALSE='#'
6447 am__fastdepCXX_TRUE='#'
6448 am__fastdepCXX_FALSE=
6453 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
6454 for ac_prog in gitlog-to-changelog
6456 # Extract the first word of "$ac_prog", so it can be a program name with args.
6457 set dummy $ac_prog; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
6461 $as_echo_n "(cached) " >&6
6463 if test -n "$GITLOG_TO_CHANGELOG"; then
6464 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
6484 if test -n "$GITLOG_TO_CHANGELOG"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
6486 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6493 test -n "$GITLOG_TO_CHANGELOG" && break
6495 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6502 VERSION_NUMBER=0x011000
6505 # We need to compile and run a program on the build machine. A
6506 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
6507 # the AC archive is broken for autoconf 2.57. Given that there is no
6508 # newer version of that macro, we assume that it is also broken for
6509 # autoconf 2.61 and thus we use a simple but usually sufficient
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
6512 $as_echo_n "checking for cc for build... " >&6; }
6513 if test "$cross_compiling" = "yes"; then
6514 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
6516 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
6519 $as_echo "$CC_FOR_BUILD" >&6; }
6523 # Don't default to build static libs.
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6528 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6533 macro_version='2.4.2'
6534 macro_revision='1.3337'
6548 ltmain="$ac_aux_dir/ltmain.sh"
6550 # Backslashify metacharacters that are still active within
6551 # double-quoted strings.
6552 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6554 # Same as above, but do not quote variable references.
6555 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6557 # Sed substitution to delay expansion of an escaped shell variable in a
6558 # double_quote_subst'ed string.
6559 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6561 # Sed substitution to delay expansion of an escaped single quote.
6562 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6564 # Sed substitution to avoid accidental globbing in evaled expressions
6565 no_glob_subst='s/\*/\\\*/g'
6567 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6568 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6569 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6572 $as_echo_n "checking how to print strings... " >&6; }
6573 # Test print first, because it will be a builtin if present.
6574 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6575 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6577 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6580 # Use this function as a fallback that always works.
6581 func_fallback_echo ()
6583 eval 'cat <<_LTECHO_EOF
6587 ECHO='func_fallback_echo'
6590 # func_echo_all arg...
6591 # Invoke $ECHO with all args, space-separated.
6598 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6599 $as_echo "printf" >&6; } ;;
6600 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6601 $as_echo "print -r" >&6; } ;;
6602 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6603 $as_echo "cat" >&6; } ;;
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6621 if ${ac_cv_path_SED+:} false; then :
6622 $as_echo_n "(cached) " >&6
6624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6625 for ac_i in 1 2 3 4 5 6 7; do
6626 ac_script="$ac_script$as_nl$ac_script"
6628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6629 { ac_script=; unset ac_script;}
6630 if test -z "$SED"; then
6631 ac_path_SED_found=false
6632 # Loop through the user's path and test for each of PROGNAME-LIST
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_prog in sed gsed; do
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6641 as_fn_executable_p "$ac_path_SED" || continue
6642 # Check for GNU ac_path_SED and select it if it is found.
6643 # Check for GNU $ac_path_SED
6644 case `"$ac_path_SED" --version 2>&1` in
6646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6649 $as_echo_n 0123456789 >"conftest.in"
6652 cat "conftest.in" "conftest.in" >"conftest.tmp"
6653 mv "conftest.tmp" "conftest.in"
6654 cp "conftest.in" "conftest.nl"
6655 $as_echo '' >> "conftest.nl"
6656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6658 as_fn_arith $ac_count + 1 && ac_count=$as_val
6659 if test $ac_count -gt ${ac_path_SED_max-0}; then
6660 # Best one so far, save it but keep looking for a better one
6661 ac_cv_path_SED="$ac_path_SED"
6662 ac_path_SED_max=$ac_count
6664 # 10*(2^10) chars as input seems more than enough
6665 test $ac_count -gt 10 && break
6667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6670 $ac_path_SED_found && break 3
6675 if test -z "$ac_cv_path_SED"; then
6676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6684 $as_echo "$ac_cv_path_SED" >&6; }
6685 SED="$ac_cv_path_SED"
6688 test -z "$SED" && SED=sed
6689 Xsed="$SED -e 1s/^X//"
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6702 $as_echo_n "checking for fgrep... " >&6; }
6703 if ${ac_cv_path_FGREP+:} false; then :
6704 $as_echo_n "(cached) " >&6
6706 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6707 then ac_cv_path_FGREP="$GREP -F"
6709 if test -z "$FGREP"; then
6710 ac_path_FGREP_found=false
6711 # Loop through the user's path and test for each of PROGNAME-LIST
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6716 test -z "$as_dir" && as_dir=.
6717 for ac_prog in fgrep; do
6718 for ac_exec_ext in '' $ac_executable_extensions; do
6719 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6720 as_fn_executable_p "$ac_path_FGREP" || continue
6721 # Check for GNU ac_path_FGREP and select it if it is found.
6722 # Check for GNU $ac_path_FGREP
6723 case `"$ac_path_FGREP" --version 2>&1` in
6725 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6728 $as_echo_n 0123456789 >"conftest.in"
6731 cat "conftest.in" "conftest.in" >"conftest.tmp"
6732 mv "conftest.tmp" "conftest.in"
6733 cp "conftest.in" "conftest.nl"
6734 $as_echo 'FGREP' >> "conftest.nl"
6735 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6737 as_fn_arith $ac_count + 1 && ac_count=$as_val
6738 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6739 # Best one so far, save it but keep looking for a better one
6740 ac_cv_path_FGREP="$ac_path_FGREP"
6741 ac_path_FGREP_max=$ac_count
6743 # 10*(2^10) chars as input seems more than enough
6744 test $ac_count -gt 10 && break
6746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6749 $ac_path_FGREP_found && break 3
6754 if test -z "$ac_cv_path_FGREP"; then
6755 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6758 ac_cv_path_FGREP=$FGREP
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6764 $as_echo "$ac_cv_path_FGREP" >&6; }
6765 FGREP="$ac_cv_path_FGREP"
6768 test -z "$GREP" && GREP=grep
6788 # Check whether --with-gnu-ld was given.
6789 if test "${with_gnu_ld+set}" = set; then :
6790 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6796 if test "$GCC" = yes; then
6797 # Check if gcc -print-prog-name=ld gives a path.
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6799 $as_echo_n "checking for ld used by $CC... " >&6; }
6802 # gcc leaves a trailing carriage return which upsets mingw
6803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6808 # Accept absolute paths.
6810 re_direlt='/[^/][^/]*/\.\./'
6811 # Canonicalize the pathname of ld
6812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6816 test -z "$LD" && LD="$ac_prog"
6819 # If it fails, then pretend we aren't using GCC.
6823 # If it is relative, then search for the first ld in PATH.
6827 elif test "$with_gnu_ld" = yes; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6829 $as_echo_n "checking for GNU ld... " >&6; }
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6832 $as_echo_n "checking for non-GNU ld... " >&6; }
6834 if ${lt_cv_path_LD+:} false; then :
6835 $as_echo_n "(cached) " >&6
6837 if test -z "$LD"; then
6838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6839 for ac_dir in $PATH; do
6841 test -z "$ac_dir" && ac_dir=.
6842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6843 lt_cv_path_LD="$ac_dir/$ac_prog"
6844 # Check to see if the program is GNU ld. I'd rather use --version,
6845 # but apparently some variants of GNU ld only accept -v.
6846 # Break only if it was the GNU/non-GNU ld that we prefer.
6847 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6848 *GNU* | *'with BFD'*)
6849 test "$with_gnu_ld" != no && break
6852 test "$with_gnu_ld" != yes && break
6859 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6864 if test -n "$LD"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6866 $as_echo "$LD" >&6; }
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6871 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6874 if ${lt_cv_prog_gnu_ld+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6878 case `$LD -v 2>&1 </dev/null` in
6879 *GNU* | *'with BFD'*)
6880 lt_cv_prog_gnu_ld=yes
6883 lt_cv_prog_gnu_ld=no
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6889 with_gnu_ld=$lt_cv_prog_gnu_ld
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6900 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6901 if ${lt_cv_path_NM+:} false; then :
6902 $as_echo_n "(cached) " >&6
6904 if test -n "$NM"; then
6905 # Let the user override the test.
6908 lt_nm_to_check="${ac_tool_prefix}nm"
6909 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6910 lt_nm_to_check="$lt_nm_to_check nm"
6912 for lt_tmp_nm in $lt_nm_to_check; do
6913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6914 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6916 test -z "$ac_dir" && ac_dir=.
6917 tmp_nm="$ac_dir/$lt_tmp_nm"
6918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6919 # Check to see if the nm accepts a BSD-compat flag.
6920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6921 # nm: unknown option "B" ignored
6922 # Tru64's nm complains that /dev/null is an invalid object file
6923 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6924 */dev/null* | *'Invalid file or object type'*)
6925 lt_cv_path_NM="$tmp_nm -B"
6929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6931 lt_cv_path_NM="$tmp_nm -p"
6935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6936 continue # so that we can try to find one that supports BSD flags
6945 : ${lt_cv_path_NM=no}
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6949 $as_echo "$lt_cv_path_NM" >&6; }
6950 if test "$lt_cv_path_NM" != "no"; then
6953 # Didn't find any BSD compatible name lister, look for dumpbin.
6954 if test -n "$DUMPBIN"; then :
6955 # Let the user override the test.
6957 if test -n "$ac_tool_prefix"; then
6958 for ac_prog in dumpbin "link -dump"
6960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6961 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if ${ac_cv_prog_DUMPBIN+:} false; then :
6965 $as_echo_n "(cached) " >&6
6967 if test -n "$DUMPBIN"; then
6968 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 DUMPBIN=$ac_cv_prog_DUMPBIN
6988 if test -n "$DUMPBIN"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6990 $as_echo "$DUMPBIN" >&6; }
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6997 test -n "$DUMPBIN" && break
7000 if test -z "$DUMPBIN"; then
7001 ac_ct_DUMPBIN=$DUMPBIN
7002 for ac_prog in dumpbin "link -dump"
7004 # Extract the first word of "$ac_prog", so it can be a program name with args.
7005 set dummy $ac_prog; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7009 $as_echo_n "(cached) " >&6
7011 if test -n "$ac_ct_DUMPBIN"; then
7012 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir=.
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7021 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7032 if test -n "$ac_ct_DUMPBIN"; then
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7034 $as_echo "$ac_ct_DUMPBIN" >&6; }
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7041 test -n "$ac_ct_DUMPBIN" && break
7044 if test "x$ac_ct_DUMPBIN" = x; then
7047 case $cross_compiling:$ac_tool_warned in
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051 ac_tool_warned=yes ;;
7053 DUMPBIN=$ac_ct_DUMPBIN
7057 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7059 DUMPBIN="$DUMPBIN -symbols"
7067 if test "$DUMPBIN" != ":"; then
7071 test -z "$NM" && NM=nm
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7079 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7080 if ${lt_cv_nm_interface+:} false; then :
7081 $as_echo_n "(cached) " >&6
7083 lt_cv_nm_interface="BSD nm"
7084 echo "int some_variable = 0;" > conftest.$ac_ext
7085 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7086 (eval "$ac_compile" 2>conftest.err)
7087 cat conftest.err >&5
7088 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7089 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7090 cat conftest.err >&5
7091 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7092 cat conftest.out >&5
7093 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7094 lt_cv_nm_interface="MS dumpbin"
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7099 $as_echo "$lt_cv_nm_interface" >&6; }
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7102 $as_echo_n "checking whether ln -s works... " >&6; }
7104 if test "$LN_S" = "ln -s"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7106 $as_echo "yes" >&6; }
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7109 $as_echo "no, using $LN_S" >&6; }
7112 # find the maximum length of command line arguments
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7115 if ${lt_cv_sys_max_cmd_len+:} false; then :
7116 $as_echo_n "(cached) " >&6
7123 # On DJGPP, this test can blow up pretty badly due to problems in libc
7124 # (any single argument exceeding 2000 bytes causes a buffer overrun
7125 # during glob expansion). Even if it were fixed, the result of this
7126 # check would be larger than it should be.
7127 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7131 # Under GNU Hurd, this test is not required because there is
7132 # no limit to the length of command line arguments.
7133 # Libtool will interpret -1 as no limit whatsoever
7134 lt_cv_sys_max_cmd_len=-1;
7137 cygwin* | mingw* | cegcc*)
7138 # On Win9x/ME, this test blows up -- it succeeds, but takes
7139 # about 5 minutes as the teststring grows exponentially.
7140 # Worse, since 9x/ME are not pre-emptively multitasking,
7141 # you end up with a "frozen" computer, even though with patience
7142 # the test eventually succeeds (with a max line length of 256k).
7143 # Instead, let's just punt: use the minimum linelength reported by
7144 # all of the supported platforms: 8192 (on NT/2K/XP).
7145 lt_cv_sys_max_cmd_len=8192;
7149 # On MiNT this can take a long time and run out of memory.
7150 lt_cv_sys_max_cmd_len=8192;
7154 # On AmigaOS with pdksh, this test takes hours, literally.
7155 # So we just punt and use a minimum line length of 8192.
7156 lt_cv_sys_max_cmd_len=8192;
7159 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7160 # This has been around since 386BSD, at least. Likely further.
7161 if test -x /sbin/sysctl; then
7162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7163 elif test -x /usr/sbin/sysctl; then
7164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7168 # And add a safety zone
7169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7174 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7175 lt_cv_sys_max_cmd_len=196608
7179 # The test takes a long time on OS/2.
7180 lt_cv_sys_max_cmd_len=8192
7184 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7185 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7186 # nice to cause kernel panics so lets avoid the loop below.
7187 # First set a reasonable default.
7188 lt_cv_sys_max_cmd_len=16384
7190 if test -x /sbin/sysconfig; then
7191 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7192 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7197 lt_cv_sys_max_cmd_len=102400
7199 sysv5* | sco5v6* | sysv4.2uw2*)
7200 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7201 if test -n "$kargmax"; then
7202 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7204 lt_cv_sys_max_cmd_len=32768
7208 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7209 if test -n "$lt_cv_sys_max_cmd_len"; then
7210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7213 # Make teststring a little bigger before we do anything with it.
7214 # a 1K string should be a reasonable start.
7215 for i in 1 2 3 4 5 6 7 8 ; do
7216 teststring=$teststring$teststring
7218 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7219 # If test is not a shell built-in, we'll probably end up computing a
7220 # maximum length that is only half of the actual maximum length, but
7222 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
7223 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7224 test $i != 17 # 1/2 MB should be enough
7227 teststring=$teststring$teststring
7229 # Only check the string length outside the loop.
7230 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7232 # Add a significant safety factor because C++ compilers can tack on
7233 # massive amounts of additional arguments before passing them to the
7234 # linker. It appears as though 1/2 is a usable value.
7235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7242 if test -n $lt_cv_sys_max_cmd_len ; then
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7244 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7247 $as_echo "none" >&6; }
7249 max_cmd_len=$lt_cv_sys_max_cmd_len
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7261 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7262 # Try some XSI features
7265 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7267 && eval 'test $(( 1 + 1 )) -eq 2 \
7268 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7271 $as_echo "$xsi_shell" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7275 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7277 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7279 && lt_shell_append=yes
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7281 $as_echo "$lt_shell_append" >&6; }
7284 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7294 # test EBCDIC or ASCII
7295 case `echo X|tr X '\101'` in
7296 A) # ASCII based system
7297 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7298 lt_SP2NL='tr \040 \012'
7299 lt_NL2SP='tr \015\012 \040\040'
7301 *) # EBCDIC based system
7302 lt_SP2NL='tr \100 \n'
7303 lt_NL2SP='tr \r\n \100\100'
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7316 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7317 if ${lt_cv_to_host_file_cmd+:} false; then :
7318 $as_echo_n "(cached) " >&6
7323 *-*-mingw* ) # actually msys
7324 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7327 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7329 * ) # otherwise, assume *nix
7330 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7336 *-*-mingw* ) # actually msys
7337 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7340 lt_cv_to_host_file_cmd=func_convert_file_noop
7342 * ) # otherwise, assume *nix
7343 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7347 * ) # unhandled hosts (and "normal" native builds)
7348 lt_cv_to_host_file_cmd=func_convert_file_noop
7354 to_host_file_cmd=$lt_cv_to_host_file_cmd
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7356 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7363 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7364 if ${lt_cv_to_tool_file_cmd+:} false; then :
7365 $as_echo_n "(cached) " >&6
7367 #assume ordinary cross tools, or native build.
7368 lt_cv_to_tool_file_cmd=func_convert_file_noop
7372 *-*-mingw* ) # actually msys
7373 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7381 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7383 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7390 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7391 if ${lt_cv_ld_reload_flag+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 lt_cv_ld_reload_flag='-r'
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7397 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7398 reload_flag=$lt_cv_ld_reload_flag
7399 case $reload_flag in
7401 *) reload_flag=" $reload_flag" ;;
7403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7405 cygwin* | mingw* | pw32* | cegcc*)
7406 if test "$GCC" != yes; then
7411 if test "$GCC" = yes; then
7412 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7414 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7427 if test -n "$ac_tool_prefix"; then
7428 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7429 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431 $as_echo_n "checking for $ac_word... " >&6; }
7432 if ${ac_cv_prog_OBJDUMP+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 if test -n "$OBJDUMP"; then
7436 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 OBJDUMP=$ac_cv_prog_OBJDUMP
7456 if test -n "$OBJDUMP"; then
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7458 $as_echo "$OBJDUMP" >&6; }
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461 $as_echo "no" >&6; }
7466 if test -z "$ac_cv_prog_OBJDUMP"; then
7467 ac_ct_OBJDUMP=$OBJDUMP
7468 # Extract the first word of "objdump", so it can be a program name with args.
7469 set dummy objdump; ac_word=$2
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7471 $as_echo_n "checking for $ac_word... " >&6; }
7472 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 if test -n "$ac_ct_OBJDUMP"; then
7476 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 test -z "$as_dir" && as_dir=.
7483 for ac_exec_ext in '' $ac_executable_extensions; do
7484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7496 if test -n "$ac_ct_OBJDUMP"; then
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7498 $as_echo "$ac_ct_OBJDUMP" >&6; }
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501 $as_echo "no" >&6; }
7504 if test "x$ac_ct_OBJDUMP" = x; then
7507 case $cross_compiling:$ac_tool_warned in
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7511 ac_tool_warned=yes ;;
7513 OBJDUMP=$ac_ct_OBJDUMP
7516 OBJDUMP="$ac_cv_prog_OBJDUMP"
7519 test -z "$OBJDUMP" && OBJDUMP=objdump
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7527 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7528 if ${lt_cv_deplibs_check_method+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 lt_cv_file_magic_cmd='$MAGIC_CMD'
7532 lt_cv_file_magic_test_file=
7533 lt_cv_deplibs_check_method='unknown'
7534 # Need to set the preceding variable on all platforms that support
7535 # interlibrary dependencies.
7536 # 'none' -- dependencies not supported.
7537 # `unknown' -- same as none, but documents that we really don't know.
7538 # 'pass_all' -- all dependencies passed with no checks.
7539 # 'test_compile' -- check by making test program.
7540 # 'file_magic [[regex]]' -- check by looking for files in library path
7541 # which responds to the $file_magic_cmd with a given extended regex.
7542 # If you have `file' or equivalent on your system and you're not sure
7543 # whether `pass_all' will *always* work, you probably want this one.
7547 lt_cv_deplibs_check_method=pass_all
7551 lt_cv_deplibs_check_method=pass_all
7555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7556 lt_cv_file_magic_cmd='/usr/bin/file -L'
7557 lt_cv_file_magic_test_file=/shlib/libc.so
7561 # func_win32_libid is a shell function defined in ltmain.sh
7562 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7563 lt_cv_file_magic_cmd='func_win32_libid'
7567 # Base MSYS/MinGW do not provide the 'file' command needed by
7568 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7569 # unless we find 'file', for example because we are cross-compiling.
7570 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7571 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7573 lt_cv_file_magic_cmd='func_win32_libid'
7575 # Keep this pattern in sync with the one in func_win32_libid.
7576 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7577 lt_cv_file_magic_cmd='$OBJDUMP -f'
7582 # use the weaker test based on 'objdump'. See mingw*.
7583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7584 lt_cv_file_magic_cmd='$OBJDUMP -f'
7587 darwin* | rhapsody*)
7588 lt_cv_deplibs_check_method=pass_all
7591 freebsd* | dragonfly*)
7592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7595 # Not sure whether the presence of OpenBSD here was a mistake.
7596 # Let's accept both of them until this is cleared up.
7597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7598 lt_cv_file_magic_cmd=/usr/bin/file
7599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7603 lt_cv_deplibs_check_method=pass_all
7608 lt_cv_deplibs_check_method=pass_all
7612 lt_cv_deplibs_check_method=pass_all
7615 hpux10.20* | hpux11*)
7616 lt_cv_file_magic_cmd=/usr/bin/file
7619 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7620 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7623 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]'
7624 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7627 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7628 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7634 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7638 irix5* | irix6* | nonstopux*)
7640 *-32|*"-32 ") libmagic=32-bit;;
7641 *-n32|*"-n32 ") libmagic=N32;;
7642 *-64|*"-64 ") libmagic=64-bit;;
7643 *) libmagic=never-match;;
7645 lt_cv_deplibs_check_method=pass_all
7648 # This must be glibc/ELF.
7649 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7650 lt_cv_deplibs_check_method=pass_all
7653 netbsd* | netbsdelf*-gnu)
7654 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7655 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7662 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7663 lt_cv_file_magic_cmd=/usr/bin/file
7664 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7668 lt_cv_deplibs_check_method=pass_all
7672 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7679 osf3* | osf4* | osf5*)
7680 lt_cv_deplibs_check_method=pass_all
7684 lt_cv_deplibs_check_method=pass_all
7688 lt_cv_deplibs_check_method=pass_all
7691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7692 lt_cv_deplibs_check_method=pass_all
7696 case $host_vendor in
7698 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]'
7699 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7702 lt_cv_deplibs_check_method=pass_all
7705 lt_cv_file_magic_cmd='/bin/file'
7706 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7709 lt_cv_file_magic_cmd='/bin/file'
7710 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7711 lt_cv_file_magic_test_file=/lib/libc.so
7714 lt_cv_deplibs_check_method=pass_all
7717 lt_cv_deplibs_check_method=pass_all
7723 lt_cv_deplibs_check_method=pass_all
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7729 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7733 if test "$build" = "$host"; then
7736 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7739 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7745 file_magic_cmd=$lt_cv_file_magic_cmd
7746 deplibs_check_method=$lt_cv_deplibs_check_method
7747 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7770 if test -n "$ac_tool_prefix"; then
7771 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_DLLTOOL+:} false; then :
7776 $as_echo_n "(cached) " >&6
7778 if test -n "$DLLTOOL"; then
7779 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798 DLLTOOL=$ac_cv_prog_DLLTOOL
7799 if test -n "$DLLTOOL"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7801 $as_echo "$DLLTOOL" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7809 if test -z "$ac_cv_prog_DLLTOOL"; then
7810 ac_ct_DLLTOOL=$DLLTOOL
7811 # Extract the first word of "dlltool", so it can be a program name with args.
7812 set dummy dlltool; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7816 $as_echo_n "(cached) " >&6
7818 if test -n "$ac_ct_DLLTOOL"; then
7819 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7839 if test -n "$ac_ct_DLLTOOL"; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7841 $as_echo "$ac_ct_DLLTOOL" >&6; }
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7847 if test "x$ac_ct_DLLTOOL" = x; then
7850 case $cross_compiling:$ac_tool_warned in
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7856 DLLTOOL=$ac_ct_DLLTOOL
7859 DLLTOOL="$ac_cv_prog_DLLTOOL"
7862 test -z "$DLLTOOL" && DLLTOOL=dlltool
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7873 $as_echo_n "(cached) " >&6
7875 lt_cv_sharedlib_from_linklib_cmd='unknown'
7878 cygwin* | mingw* | pw32* | cegcc*)
7879 # two different shell functions defined in ltmain.sh
7880 # decide which to use based on capabilities of $DLLTOOL
7881 case `$DLLTOOL --help 2>&1` in
7882 *--identify-strict*)
7883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7886 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7891 # fallback: assume linklib IS sharedlib
7892 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7899 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7900 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7908 if test -n "$ac_tool_prefix"; then
7911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if ${ac_cv_prog_AR+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -n "$AR"; then
7919 ac_cv_prog_AR="$AR" # Let the user override the test.
7921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir=.
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 if test -n "$AR"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7941 $as_echo "$AR" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7948 test -n "$AR" && break
7951 if test -z "$AR"; then
7955 # Extract the first word of "$ac_prog", so it can be a program name with args.
7956 set dummy $ac_prog; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7960 $as_echo_n "(cached) " >&6
7962 if test -n "$ac_ct_AR"; then
7963 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_ac_ct_AR="$ac_prog"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7983 if test -n "$ac_ct_AR"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7985 $as_echo "$ac_ct_AR" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7992 test -n "$ac_ct_AR" && break
7995 if test "x$ac_ct_AR" = x; then
7998 case $cross_compiling:$ac_tool_warned in
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned=yes ;;
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8022 $as_echo_n "checking for archiver @FILE support... " >&6; }
8023 if ${lt_cv_ar_at_file+:} false; then :
8024 $as_echo_n "(cached) " >&6
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 echo conftest.$ac_objext > conftest.lst
8040 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8042 (eval $lt_ar_try) 2>&5
8044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }
8046 if test "$ac_status" -eq 0; then
8047 # Ensure the archiver fails upon bogus file names.
8048 rm -f conftest.$ac_objext libconftest.a
8049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8050 (eval $lt_ar_try) 2>&5
8052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8053 test $ac_status = 0; }
8054 if test "$ac_status" -ne 0; then
8058 rm -f conftest.* libconftest.a
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8065 $as_echo "$lt_cv_ar_at_file" >&6; }
8067 if test "x$lt_cv_ar_at_file" = xno; then
8070 archiver_list_spec=$lt_cv_ar_at_file
8079 if test -n "$ac_tool_prefix"; then
8080 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8081 set dummy ${ac_tool_prefix}strip; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_STRIP+:} false; then :
8085 $as_echo_n "(cached) " >&6
8087 if test -n "$STRIP"; then
8088 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 STRIP=$ac_cv_prog_STRIP
8108 if test -n "$STRIP"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8110 $as_echo "$STRIP" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8118 if test -z "$ac_cv_prog_STRIP"; then
8120 # Extract the first word of "strip", so it can be a program name with args.
8121 set dummy strip; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8125 $as_echo_n "(cached) " >&6
8127 if test -n "$ac_ct_STRIP"; then
8128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8137 ac_cv_prog_ac_ct_STRIP="strip"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8148 if test -n "$ac_ct_STRIP"; then
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8150 $as_echo "$ac_ct_STRIP" >&6; }
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8156 if test "x$ac_ct_STRIP" = x; then
8159 case $cross_compiling:$ac_tool_warned in
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8163 ac_tool_warned=yes ;;
8168 STRIP="$ac_cv_prog_STRIP"
8171 test -z "$STRIP" && STRIP=:
8178 if test -n "$ac_tool_prefix"; then
8179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if ${ac_cv_prog_RANLIB+:} false; then :
8184 $as_echo_n "(cached) " >&6
8186 if test -n "$RANLIB"; then
8187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8206 RANLIB=$ac_cv_prog_RANLIB
8207 if test -n "$RANLIB"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8209 $as_echo "$RANLIB" >&6; }
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8217 if test -z "$ac_cv_prog_RANLIB"; then
8218 ac_ct_RANLIB=$RANLIB
8219 # Extract the first word of "ranlib", so it can be a program name with args.
8220 set dummy ranlib; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8224 $as_echo_n "(cached) " >&6
8226 if test -n "$ac_ct_RANLIB"; then
8227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8236 ac_cv_prog_ac_ct_RANLIB="ranlib"
8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8247 if test -n "$ac_ct_RANLIB"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8249 $as_echo "$ac_ct_RANLIB" >&6; }
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252 $as_echo "no" >&6; }
8255 if test "x$ac_ct_RANLIB" = x; then
8258 case $cross_compiling:$ac_tool_warned in
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8262 ac_tool_warned=yes ;;
8264 RANLIB=$ac_ct_RANLIB
8267 RANLIB="$ac_cv_prog_RANLIB"
8270 test -z "$RANLIB" && RANLIB=:
8277 # Determine commands to create old-style static archives.
8278 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8279 old_postinstall_cmds='chmod 644 $oldlib'
8280 old_postuninstall_cmds=
8282 if test -n "$RANLIB"; then
8285 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8288 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8291 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8296 lock_old_archive_extraction=yes ;;
8298 lock_old_archive_extraction=no ;;
8339 # If no C compiler was specified, use CC.
8342 # If no C compiler flags were specified, use CFLAGS.
8343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8345 # Allow CC to be a program name with arguments.
8349 # Check for command to grab the raw symbol name followed by C symbol from nm.
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8351 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8352 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8353 $as_echo_n "(cached) " >&6
8356 # These are sane defaults that work on at least a few old systems.
8357 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8359 # Character class describing NM global symbol codes.
8360 symcode='[BCDEGRST]'
8362 # Regexp to match symbols that can be accessed directly from C.
8363 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8365 # Define system-specific variables.
8370 cygwin* | mingw* | pw32* | cegcc*)
8371 symcode='[ABCDGISTW]'
8374 if test "$host_cpu" = ia64; then
8375 symcode='[ABCDEGRST]'
8379 symcode='[BCDEGRST]'
8382 symcode='[BCDEGQRST]'
8393 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8401 # If we're using GNU nm, then use its standard symbol codes.
8402 case `$NM -V 2>&1` in
8403 *GNU* | *'with BFD'*)
8404 symcode='[ABCDGIRSTW]' ;;
8407 # Transform an extracted symbol line into a proper C declaration.
8408 # Some systems (esp. on ia64) link data and code symbols differently,
8409 # so use this general approach.
8410 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8412 # Transform an extracted symbol line into symbol name and symbol address
8413 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8414 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'"
8416 # Handle CRLF in mingw tool chain
8420 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8424 # Try without a prefix underscore, then with it.
8425 for ac_symprfx in "" "_"; do
8427 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8428 symxfrm="\\1 $ac_symprfx\\2 \\2"
8430 # Write the raw and C identifiers.
8431 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8432 # Fake it for dumpbin and say T for any non-static function
8433 # and D for any global variable.
8434 # Also find C++ and __fastcall symbols from MSVC++,
8435 # which start with @ or ?.
8436 lt_cv_sys_global_symbol_pipe="$AWK '"\
8437 " {last_section=section; section=\$ 3};"\
8438 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8439 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8440 " \$ 0!~/External *\|/{next};"\
8441 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8442 " {if(hide[section]) next};"\
8443 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8444 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8445 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8446 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8447 " ' prfx=^$ac_symprfx"
8449 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8451 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8453 # Check to see that the pipe works correctly.
8457 cat > conftest.$ac_ext <<_LT_EOF
8462 void nm_test_func(void);
8463 void nm_test_func(void){}
8467 int main(){nm_test_var='a';nm_test_func();return(0);}
8470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8471 (eval $ac_compile) 2>&5
8473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8474 test $ac_status = 0; }; then
8475 # Now try to grab the symbols.
8477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8478 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8481 test $ac_status = 0; } && test -s "$nlist"; then
8482 # Try sorting and uniquifying the output.
8483 if sort "$nlist" | uniq > "$nlist"T; then
8484 mv -f "$nlist"T "$nlist"
8489 # Make sure that we snagged all the symbols we need.
8490 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8491 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8492 cat <<_LT_EOF > conftest.$ac_ext
8493 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8494 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8495 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8496 relocations are performed -- see ld's documentation on pseudo-relocs. */
8497 # define LT_DLSYM_CONST
8498 #elif defined(__osf__)
8499 /* This system does not cope well with relocations in const data. */
8500 # define LT_DLSYM_CONST
8502 # define LT_DLSYM_CONST const
8510 # Now generate the symbol file.
8511 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8513 cat <<_LT_EOF >> conftest.$ac_ext
8515 /* The mapping between symbol names and symbols. */
8516 LT_DLSYM_CONST struct {
8520 lt__PROGRAM__LTX_preloaded_symbols[] =
8522 { "@PROGRAM@", (void *) 0 },
8524 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8525 cat <<\_LT_EOF >> conftest.$ac_ext
8529 /* This works around a problem in FreeBSD linker */
8530 #ifdef FREEBSD_WORKAROUND
8531 static const void *lt_preloaded_setup() {
8532 return lt__PROGRAM__LTX_preloaded_symbols;
8540 # Now try linking the two files.
8541 mv conftest.$ac_objext conftstm.$ac_objext
8542 lt_globsym_save_LIBS=$LIBS
8543 lt_globsym_save_CFLAGS=$CFLAGS
8544 LIBS="conftstm.$ac_objext"
8545 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8547 (eval $ac_link) 2>&5
8549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8553 LIBS=$lt_globsym_save_LIBS
8554 CFLAGS=$lt_globsym_save_CFLAGS
8556 echo "cannot find nm_test_func in $nlist" >&5
8559 echo "cannot find nm_test_var in $nlist" >&5
8562 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8565 echo "$progname: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 rm -rf conftest* conftst*
8570 # Do not use the global_symbol_pipe unless it works.
8571 if test "$pipe_works" = yes; then
8574 lt_cv_sys_global_symbol_pipe=
8580 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8581 lt_cv_sys_global_symbol_to_cdecl=
8583 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8585 $as_echo "failed" >&6; }
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8588 $as_echo "ok" >&6; }
8591 # Response file support.
8592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8593 nm_file_list_spec='@'
8594 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8595 nm_file_list_spec='@'
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8625 $as_echo_n "checking for sysroot... " >&6; }
8627 # Check whether --with-sysroot was given.
8628 if test "${with_sysroot+set}" = set; then :
8629 withval=$with_sysroot;
8636 case ${with_sysroot} in #(
8638 if test "$GCC" = yes; then
8639 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8643 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8649 $as_echo "${with_sysroot}" >&6; }
8650 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8655 $as_echo "${lt_sysroot:-no}" >&6; }
8661 # Check whether --enable-libtool-lock was given.
8662 if test "${enable_libtool_lock+set}" = set; then :
8663 enableval=$enable_libtool_lock;
8666 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8668 # Some flags need to be propagated to the compiler or linker for good
8672 # Find out which ABI we are using.
8673 echo 'int i;' > conftest.$ac_ext
8674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8675 (eval $ac_compile) 2>&5
8677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8678 test $ac_status = 0; }; then
8679 case `/usr/bin/file conftest.$ac_objext` in
8691 # Find out which ABI we are using.
8692 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8694 (eval $ac_compile) 2>&5
8696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8697 test $ac_status = 0; }; then
8698 if test "$lt_cv_prog_gnu_ld" = yes; then
8699 case `/usr/bin/file conftest.$ac_objext` in
8701 LD="${LD-ld} -melf32bsmip"
8704 LD="${LD-ld} -melf32bmipn32"
8707 LD="${LD-ld} -melf64bmip"
8711 case `/usr/bin/file conftest.$ac_objext` in
8727 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8728 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8729 # Find out which ABI we are using.
8730 echo 'int i;' > conftest.$ac_ext
8731 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8732 (eval $ac_compile) 2>&5
8734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8735 test $ac_status = 0; }; then
8736 case `/usr/bin/file conftest.o` in
8739 x86_64-*kfreebsd*-gnu)
8740 LD="${LD-ld} -m elf_i386_fbsd"
8743 LD="${LD-ld} -m elf_i386"
8746 LD="${LD-ld} -m elf32lppclinux"
8749 LD="${LD-ld} -m elf32ppclinux"
8752 LD="${LD-ld} -m elf_s390"
8755 LD="${LD-ld} -m elf32_sparc"
8761 x86_64-*kfreebsd*-gnu)
8762 LD="${LD-ld} -m elf_x86_64_fbsd"
8765 LD="${LD-ld} -m elf_x86_64"
8768 LD="${LD-ld} -m elf64lppc"
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*)
12916 version_type=none # Android doesn't support versioned libraries.
12919 library_names_spec='$libname$release$shared_ext'
12920 soname_spec='$libname$release$shared_ext'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12925 # This implies no fast_install, which is unacceptable.
12926 # Some rework will be needed to allow for fast_install
12927 # before this can be enabled.
12928 hardcode_into_libs=yes
12930 dynamic_linker='Android linker'
12931 # Don't embed -rpath directories since the linker doesn't support them.
12932 hardcode_libdir_flag_spec='-L$libdir'
12935 # This must be glibc/ELF.
12936 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12937 version_type=linux # correct to gnu/linux during the next big refactor
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12941 soname_spec='${libname}${release}${shared_ext}$major'
12942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12943 shlibpath_var=LD_LIBRARY_PATH
12944 shlibpath_overrides_runpath=no
12946 # Some binutils ld are patched to set DT_RUNPATH
12947 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12948 $as_echo_n "(cached) " >&6
12950 lt_cv_shlibpath_overrides_runpath=no
12951 save_LDFLAGS=$LDFLAGS
12952 save_libdir=$libdir
12953 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12954 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12966 if ac_fn_c_try_link "$LINENO"; then :
12967 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12968 lt_cv_shlibpath_overrides_runpath=yes
12971 rm -f core conftest.err conftest.$ac_objext \
12972 conftest$ac_exeext conftest.$ac_ext
12973 LDFLAGS=$save_LDFLAGS
12974 libdir=$save_libdir
12978 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12980 # This implies no fast_install, which is unacceptable.
12981 # Some rework will be needed to allow for fast_install
12982 # before this can be enabled.
12983 hardcode_into_libs=yes
12985 # Append ld.so.conf contents to the search path
12986 if test -f /etc/ld.so.conf; then
12987 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' ' '`
12988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12991 # We used to test for /lib/ld.so.1 and disable shared libraries on
12992 # powerpc, because MkLinux only supported shared libraries with the
12993 # GNU dynamic linker. Since this was broken with cross compilers,
12994 # most powerpc-linux boxes support dynamic linking these days and
12995 # people can always --disable-shared, the test was removed, and we
12996 # assume the GNU/Linux dynamic linker is in use.
12997 dynamic_linker='GNU/Linux ld.so'
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=no
13008 hardcode_into_libs=yes
13009 dynamic_linker='NetBSD ld.elf_so'
13016 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13019 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 shlibpath_overrides_runpath=yes
13027 hardcode_into_libs=yes
13031 version_type=linux # correct to gnu/linux during the next big refactor
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13042 soname_spec='${libname}${release}${shared_ext}$major'
13043 shlibpath_var=LD_LIBRARY_PATH
13044 shlibpath_overrides_runpath=no
13045 hardcode_into_libs=yes
13046 dynamic_linker='ldqnx.so'
13051 sys_lib_dlsearch_path_spec="/usr/lib"
13053 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13055 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13056 *) need_version=no ;;
13058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13060 shlibpath_var=LD_LIBRARY_PATH
13061 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13063 openbsd2.[89] | openbsd2.[89].*)
13064 shlibpath_overrides_runpath=no
13067 shlibpath_overrides_runpath=yes
13071 shlibpath_overrides_runpath=yes
13076 libname_spec='$name'
13079 library_names_spec='$libname${shared_ext} $libname.a'
13080 dynamic_linker='OS/2 ld.exe'
13081 shlibpath_var=LIBPATH
13084 osf3* | osf4* | osf5*)
13088 soname_spec='${libname}${release}${shared_ext}$major'
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 shlibpath_var=LD_LIBRARY_PATH
13091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13100 version_type=linux # correct to gnu/linux during the next big refactor
13103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13104 soname_spec='${libname}${release}${shared_ext}$major'
13105 shlibpath_var=LD_LIBRARY_PATH
13106 shlibpath_overrides_runpath=yes
13107 hardcode_into_libs=yes
13108 # ldd complains unless libraries are executable
13109 postinstall_cmds='chmod +x $lib'
13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13115 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=yes
13118 if test "$with_gnu_ld" = yes; then
13125 version_type=linux # correct to gnu/linux during the next big refactor
13126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13127 soname_spec='${libname}${release}${shared_ext}$major'
13128 shlibpath_var=LD_LIBRARY_PATH
13129 case $host_vendor in
13131 shlibpath_overrides_runpath=no
13133 runpath_var=LD_RUN_PATH
13141 shlibpath_overrides_runpath=no
13142 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13148 if test -d /usr/nec ;then
13149 version_type=linux # correct to gnu/linux during the next big refactor
13150 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13151 soname_spec='$libname${shared_ext}.$major'
13152 shlibpath_var=LD_LIBRARY_PATH
13156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13157 version_type=freebsd-elf
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=yes
13164 hardcode_into_libs=yes
13165 if test "$with_gnu_ld" = yes; then
13166 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13168 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13171 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13175 sys_lib_dlsearch_path_spec='/usr/lib'
13179 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13180 version_type=linux # correct to gnu/linux during the next big refactor
13183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13184 shlibpath_var=LD_LIBRARY_PATH
13185 shlibpath_overrides_runpath=no
13186 hardcode_into_libs=yes
13190 version_type=linux # correct to gnu/linux during the next big refactor
13191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13192 soname_spec='${libname}${release}${shared_ext}$major'
13193 shlibpath_var=LD_LIBRARY_PATH
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13201 $as_echo "$dynamic_linker" >&6; }
13202 test "$dynamic_linker" = no && can_build_shared=no
13204 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13205 if test "$GCC" = yes; then
13206 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13209 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13210 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13212 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13213 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13308 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13310 if test -n "$hardcode_libdir_flag_spec" ||
13311 test -n "$runpath_var" ||
13312 test "X$hardcode_automatic" = "Xyes" ; then
13314 # We can hardcode non-existent directories.
13315 if test "$hardcode_direct" != no &&
13316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13317 # have to relink, otherwise we might link with an installed library
13318 # when we should be linking with a yet-to-be-installed one
13319 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13320 test "$hardcode_minus_L" != no; then
13321 # Linking always hardcodes the temporary library directory.
13322 hardcode_action=relink
13324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13325 hardcode_action=immediate
13328 # We cannot hardcode anything, or else we can only hardcode existing
13330 hardcode_action=unsupported
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13333 $as_echo "$hardcode_action" >&6; }
13335 if test "$hardcode_action" = relink ||
13336 test "$inherit_rpath" = yes; then
13337 # Fast installation is not supported
13338 enable_fast_install=no
13339 elif test "$shlibpath_overrides_runpath" = yes ||
13340 test "$enable_shared" = no; then
13341 # Fast installation is not necessary
13342 enable_fast_install=needless
13350 if test "x$enable_dlopen" != xyes; then
13351 enable_dlopen=unknown
13352 enable_dlopen_self=unknown
13353 enable_dlopen_self_static=unknown
13360 lt_cv_dlopen="load_add_on"
13362 lt_cv_dlopen_self=yes
13365 mingw* | pw32* | cegcc*)
13366 lt_cv_dlopen="LoadLibrary"
13371 lt_cv_dlopen="dlopen"
13376 # if libdl is installed we need to link against it
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13379 if ${ac_cv_lib_dl_dlopen+:} false; then :
13380 $as_echo_n "(cached) " >&6
13382 ac_check_lib_save_LIBS=$LIBS
13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 /* end confdefs.h. */
13387 /* Override any GCC internal prototype to avoid an error.
13388 Use char because int might match the return type of a GCC
13389 builtin and then its argument prototype would still apply. */
13402 if ac_fn_c_try_link "$LINENO"; then :
13403 ac_cv_lib_dl_dlopen=yes
13405 ac_cv_lib_dl_dlopen=no
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13413 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13417 lt_cv_dlopen="dyld"
13419 lt_cv_dlopen_self=yes
13426 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13427 if test "x$ac_cv_func_shl_load" = xyes; then :
13428 lt_cv_dlopen="shl_load"
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13431 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13432 if ${ac_cv_lib_dld_shl_load+:} false; then :
13433 $as_echo_n "(cached) " >&6
13435 ac_check_lib_save_LIBS=$LIBS
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13440 /* Override any GCC internal prototype to avoid an error.
13441 Use char because int might match the return type of a GCC
13442 builtin and then its argument prototype would still apply. */
13450 return shl_load ();
13455 if ac_fn_c_try_link "$LINENO"; then :
13456 ac_cv_lib_dld_shl_load=yes
13458 ac_cv_lib_dld_shl_load=no
13460 rm -f core conftest.err conftest.$ac_objext \
13461 conftest$ac_exeext conftest.$ac_ext
13462 LIBS=$ac_check_lib_save_LIBS
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13465 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13466 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13469 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13470 if test "x$ac_cv_func_dlopen" = xyes; then :
13471 lt_cv_dlopen="dlopen"
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13474 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13475 if ${ac_cv_lib_dl_dlopen+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 ac_check_lib_save_LIBS=$LIBS
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_dl_dlopen=yes
13501 ac_cv_lib_dl_dlopen=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13508 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13509 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13510 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13513 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13514 if ${ac_cv_lib_svld_dlopen+:} false; then :
13515 $as_echo_n "(cached) " >&6
13517 ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lsvld $LIBS"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13522 /* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 ac_cv_lib_svld_dlopen=yes
13540 ac_cv_lib_svld_dlopen=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13547 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13548 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13549 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13552 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13553 if ${ac_cv_lib_dld_dld_link+:} false; then :
13554 $as_echo_n "(cached) " >&6
13556 ac_check_lib_save_LIBS=$LIBS
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13571 return dld_link ();
13576 if ac_fn_c_try_link "$LINENO"; then :
13577 ac_cv_lib_dld_dld_link=yes
13579 ac_cv_lib_dld_dld_link=no
13581 rm -f core conftest.err conftest.$ac_objext \
13582 conftest$ac_exeext conftest.$ac_ext
13583 LIBS=$ac_check_lib_save_LIBS
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13586 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13587 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13588 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13609 if test "x$lt_cv_dlopen" != xno; then
13615 case $lt_cv_dlopen in
13617 save_CPPFLAGS="$CPPFLAGS"
13618 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13620 save_LDFLAGS="$LDFLAGS"
13621 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13624 LIBS="$lt_cv_dlopen_libs $LIBS"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13627 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13628 if ${lt_cv_dlopen_self+:} false; then :
13629 $as_echo_n "(cached) " >&6
13631 if test "$cross_compiling" = yes; then :
13632 lt_cv_dlopen_self=cross
13634 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13635 lt_status=$lt_dlunknown
13636 cat > conftest.$ac_ext <<_LT_EOF
13637 #line $LINENO "configure"
13638 #include "confdefs.h"
13647 # define LT_DLGLOBAL RTLD_GLOBAL
13650 # define LT_DLGLOBAL DL_GLOBAL
13652 # define LT_DLGLOBAL 0
13656 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13657 find out it does not work in some platform. */
13658 #ifndef LT_DLLAZY_OR_NOW
13660 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13663 # define LT_DLLAZY_OR_NOW DL_LAZY
13666 # define LT_DLLAZY_OR_NOW RTLD_NOW
13669 # define LT_DLLAZY_OR_NOW DL_NOW
13671 # define LT_DLLAZY_OR_NOW 0
13678 /* When -fvisbility=hidden is used, assume the code has been annotated
13679 correspondingly for the symbols needed. */
13680 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13681 int fnord () __attribute__((visibility("default")));
13684 int fnord () { return 42; }
13687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13688 int status = $lt_dlunknown;
13692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13695 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13696 else puts (dlerror ());
13698 /* dlclose (self); */
13706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13707 (eval $ac_link) 2>&5
13709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13711 (./conftest; exit; ) >&5 2>/dev/null
13713 case x$lt_status in
13714 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13715 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13716 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13719 # compilation failed
13720 lt_cv_dlopen_self=no
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13728 $as_echo "$lt_cv_dlopen_self" >&6; }
13730 if test "x$lt_cv_dlopen_self" = xyes; then
13731 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13733 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13734 if ${lt_cv_dlopen_self_static+:} false; then :
13735 $as_echo_n "(cached) " >&6
13737 if test "$cross_compiling" = yes; then :
13738 lt_cv_dlopen_self_static=cross
13740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13741 lt_status=$lt_dlunknown
13742 cat > conftest.$ac_ext <<_LT_EOF
13743 #line $LINENO "configure"
13744 #include "confdefs.h"
13753 # define LT_DLGLOBAL RTLD_GLOBAL
13756 # define LT_DLGLOBAL DL_GLOBAL
13758 # define LT_DLGLOBAL 0
13762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13763 find out it does not work in some platform. */
13764 #ifndef LT_DLLAZY_OR_NOW
13766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13769 # define LT_DLLAZY_OR_NOW DL_LAZY
13772 # define LT_DLLAZY_OR_NOW RTLD_NOW
13775 # define LT_DLLAZY_OR_NOW DL_NOW
13777 # define LT_DLLAZY_OR_NOW 0
13784 /* When -fvisbility=hidden is used, assume the code has been annotated
13785 correspondingly for the symbols needed. */
13786 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13787 int fnord () __attribute__((visibility("default")));
13790 int fnord () { return 42; }
13793 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13794 int status = $lt_dlunknown;
13798 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13801 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13802 else puts (dlerror ());
13804 /* dlclose (self); */
13812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13813 (eval $ac_link) 2>&5
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13817 (./conftest; exit; ) >&5 2>/dev/null
13819 case x$lt_status in
13820 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13821 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13822 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13825 # compilation failed
13826 lt_cv_dlopen_self_static=no
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13834 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13837 CPPFLAGS="$save_CPPFLAGS"
13838 LDFLAGS="$save_LDFLAGS"
13843 case $lt_cv_dlopen_self in
13844 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13845 *) enable_dlopen_self=unknown ;;
13848 case $lt_cv_dlopen_self_static in
13849 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13850 *) enable_dlopen_self_static=unknown ;;
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13873 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13874 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13875 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13876 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13878 $as_echo "yes" >&6; }
13880 # FIXME - insert some real tests, host_os isn't really good enough
13883 if test -n "$STRIP" ; then
13884 striplib="$STRIP -x"
13885 old_striplib="$STRIP -S"
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13887 $as_echo "yes" >&6; }
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13890 $as_echo "no" >&6; }
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13911 # Report which library types will actually be built
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13913 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13915 $as_echo "$can_build_shared" >&6; }
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13918 $as_echo_n "checking whether to build shared libraries... " >&6; }
13919 test "$can_build_shared" = "no" && enable_shared=no
13921 # On AIX, shared libraries and static libraries use the same namespace, and
13922 # are all built from PIC.
13925 test "$enable_shared" = yes && enable_static=no
13926 if test -n "$RANLIB"; then
13927 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13928 postinstall_cmds='$RANLIB $lib'
13933 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13934 test "$enable_shared" = yes && enable_static=no
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13939 $as_echo "$enable_shared" >&6; }
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13942 $as_echo_n "checking whether to build static libraries... " >&6; }
13943 # Make sure either enable_shared or enable_static is yes.
13944 test "$enable_shared" = yes || enable_static=yes
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13946 $as_echo "$enable_static" >&6; }
13953 ac_cpp='$CPP $CPPFLAGS'
13954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13960 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13961 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13962 (test "X$CXX" != "Xg++"))) ; then
13964 ac_cpp='$CXXCPP $CPPFLAGS'
13965 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13966 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13967 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13969 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13970 if test -z "$CXXCPP"; then
13971 if ${ac_cv_prog_CXXCPP+:} false; then :
13972 $as_echo_n "(cached) " >&6
13974 # Double quotes because CXXCPP needs to be expanded
13975 for CXXCPP in "$CXX -E" "/lib/cpp"
13977 ac_preproc_ok=false
13978 for ac_cxx_preproc_warn_flag in '' yes
13980 # Use a header file that comes with gcc, so configuring glibc
13981 # with a fresh cross-compiler works.
13982 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983 # <limits.h> exists even on freestanding compilers.
13984 # On the NeXT, cc -E runs the code through the compiler's parser,
13985 # not just through cpp. "Syntax error" is here to catch this case.
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h. */
13989 # include <limits.h>
13991 # include <assert.h>
13995 if ac_fn_cxx_try_cpp "$LINENO"; then :
13998 # Broken: fails on valid input.
14001 rm -f conftest.err conftest.i conftest.$ac_ext
14003 # OK, works on sane cases. Now check whether nonexistent headers
14004 # can be detected and how.
14005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14006 /* end confdefs.h. */
14007 #include <ac_nonexistent.h>
14009 if ac_fn_cxx_try_cpp "$LINENO"; then :
14010 # Broken: success on invalid input.
14013 # Passes both tests.
14017 rm -f conftest.err conftest.i conftest.$ac_ext
14020 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14021 rm -f conftest.i conftest.err conftest.$ac_ext
14022 if $ac_preproc_ok; then :
14027 ac_cv_prog_CXXCPP=$CXXCPP
14030 CXXCPP=$ac_cv_prog_CXXCPP
14032 ac_cv_prog_CXXCPP=$CXXCPP
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14035 $as_echo "$CXXCPP" >&6; }
14036 ac_preproc_ok=false
14037 for ac_cxx_preproc_warn_flag in '' yes
14039 # Use a header file that comes with gcc, so configuring glibc
14040 # with a fresh cross-compiler works.
14041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14042 # <limits.h> exists even on freestanding compilers.
14043 # On the NeXT, cc -E runs the code through the compiler's parser,
14044 # not just through cpp. "Syntax error" is here to catch this case.
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14048 # include <limits.h>
14050 # include <assert.h>
14054 if ac_fn_cxx_try_cpp "$LINENO"; then :
14057 # Broken: fails on valid input.
14060 rm -f conftest.err conftest.i conftest.$ac_ext
14062 # OK, works on sane cases. Now check whether nonexistent headers
14063 # can be detected and how.
14064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14066 #include <ac_nonexistent.h>
14068 if ac_fn_cxx_try_cpp "$LINENO"; then :
14069 # Broken: success on invalid input.
14072 # Passes both tests.
14076 rm -f conftest.err conftest.i conftest.$ac_ext
14079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14080 rm -f conftest.i conftest.err conftest.$ac_ext
14081 if $ac_preproc_ok; then :
14084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14086 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14087 See \`config.log' for more details" "$LINENO" 5; }
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14097 _lt_caught_CXX_error=yes
14101 ac_cpp='$CXXCPP $CPPFLAGS'
14102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14106 archive_cmds_need_lc_CXX=no
14107 allow_undefined_flag_CXX=
14108 always_export_symbols_CXX=no
14109 archive_expsym_cmds_CXX=
14110 compiler_needs_object_CXX=no
14111 export_dynamic_flag_spec_CXX=
14112 hardcode_direct_CXX=no
14113 hardcode_direct_absolute_CXX=no
14114 hardcode_libdir_flag_spec_CXX=
14115 hardcode_libdir_separator_CXX=
14116 hardcode_minus_L_CXX=no
14117 hardcode_shlibpath_var_CXX=unsupported
14118 hardcode_automatic_CXX=no
14119 inherit_rpath_CXX=no
14121 module_expsym_cmds_CXX=
14122 link_all_deplibs_CXX=unknown
14123 old_archive_cmds_CXX=$old_archive_cmds
14124 reload_flag_CXX=$reload_flag
14125 reload_cmds_CXX=$reload_cmds
14126 no_undefined_flag_CXX=
14127 whole_archive_flag_spec_CXX=
14128 enable_shared_with_static_runtimes_CXX=no
14130 # Source file extension for C++ test sources.
14133 # Object file extension for compiled C++ test sources.
14137 # No sense in running all these tests if we already determined that
14138 # the CXX compiler isn't working. Some variables (like enable_shared)
14139 # are currently assumed to apply to all compilers on this platform,
14140 # and will be corrupted by setting them based on a non-working compiler.
14141 if test "$_lt_caught_CXX_error" != yes; then
14142 # Code to be used in simple compile tests
14143 lt_simple_compile_test_code="int some_variable = 0;"
14145 # Code to be used in simple link tests
14146 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14148 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14155 # If no C compiler was specified, use CC.
14158 # If no C compiler flags were specified, use CFLAGS.
14159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14161 # Allow CC to be a program name with arguments.
14165 # save warnings/boilerplate of simple test code
14166 ac_outfile=conftest.$ac_objext
14167 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14169 _lt_compiler_boilerplate=`cat conftest.err`
14172 ac_outfile=conftest.$ac_objext
14173 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14175 _lt_linker_boilerplate=`cat conftest.err`
14179 # Allow CC to be a program name with arguments.
14181 lt_save_CFLAGS=$CFLAGS
14185 lt_save_with_gnu_ld=$with_gnu_ld
14186 lt_save_path_LD=$lt_cv_path_LD
14187 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14188 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14190 $as_unset lt_cv_prog_gnu_ld
14192 if test -n "${lt_cv_path_LDCXX+set}"; then
14193 lt_cv_path_LD=$lt_cv_path_LDCXX
14195 $as_unset lt_cv_path_LD
14197 test -z "${LDCXX+set}" || LD=$LDCXX
14202 for cc_temp in $compiler""; do
14204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14210 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14213 if test -n "$compiler"; then
14214 # We don't want -fno-exception when compiling C++ code, so set the
14215 # no_builtin_flag separately
14216 if test "$GXX" = yes; then
14217 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14219 lt_prog_compiler_no_builtin_flag_CXX=
14222 if test "$GXX" = yes; then
14223 # Set up default GNU C++ configuration
14227 # Check whether --with-gnu-ld was given.
14228 if test "${with_gnu_ld+set}" = set; then :
14229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14235 if test "$GCC" = yes; then
14236 # Check if gcc -print-prog-name=ld gives a path.
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14238 $as_echo_n "checking for ld used by $CC... " >&6; }
14241 # gcc leaves a trailing carriage return which upsets mingw
14242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14247 # Accept absolute paths.
14249 re_direlt='/[^/][^/]*/\.\./'
14250 # Canonicalize the pathname of ld
14251 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14252 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14253 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14255 test -z "$LD" && LD="$ac_prog"
14258 # If it fails, then pretend we aren't using GCC.
14262 # If it is relative, then search for the first ld in PATH.
14263 with_gnu_ld=unknown
14266 elif test "$with_gnu_ld" = yes; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14268 $as_echo_n "checking for GNU ld... " >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14271 $as_echo_n "checking for non-GNU ld... " >&6; }
14273 if ${lt_cv_path_LD+:} false; then :
14274 $as_echo_n "(cached) " >&6
14276 if test -z "$LD"; then
14277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14278 for ac_dir in $PATH; do
14280 test -z "$ac_dir" && ac_dir=.
14281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14282 lt_cv_path_LD="$ac_dir/$ac_prog"
14283 # Check to see if the program is GNU ld. I'd rather use --version,
14284 # but apparently some variants of GNU ld only accept -v.
14285 # Break only if it was the GNU/non-GNU ld that we prefer.
14286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14287 *GNU* | *'with BFD'*)
14288 test "$with_gnu_ld" != no && break
14291 test "$with_gnu_ld" != yes && break
14298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14302 LD="$lt_cv_path_LD"
14303 if test -n "$LD"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14305 $as_echo "$LD" >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14308 $as_echo "no" >&6; }
14310 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14312 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14313 if ${lt_cv_prog_gnu_ld+:} false; then :
14314 $as_echo_n "(cached) " >&6
14316 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14317 case `$LD -v 2>&1 </dev/null` in
14318 *GNU* | *'with BFD'*)
14319 lt_cv_prog_gnu_ld=yes
14322 lt_cv_prog_gnu_ld=no
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14327 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14328 with_gnu_ld=$lt_cv_prog_gnu_ld
14336 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14337 # archiving commands below assume that GNU ld is being used.
14338 if test "$with_gnu_ld" = yes; then
14339 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14340 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'
14342 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14345 # If archive_cmds runs LD, not CC, wlarc should be empty
14346 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14347 # investigate it a little bit more. (MM)
14350 # ancient GNU ld didn't support --whole-archive et. al.
14351 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14352 $GREP 'no-whole-archive' > /dev/null; then
14353 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14355 whole_archive_flag_spec_CXX=
14361 # A generic and very simple default shared library creation
14362 # command for GNU C++ for the case where it uses the native
14363 # linker, instead of GNU ld. If possible, this setting should
14364 # overridden to take advantage of the native linker features on
14365 # the platform it is being used on.
14366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14369 # Commands to make compiler produce verbose output that lists
14370 # what "hidden" libraries, object files and flags are used when
14371 # linking a shared library.
14372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14380 # PORTME: fill in a description of your system's C++ link characteristics
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14382 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14386 # FIXME: insert proper C++ library support
14390 if test "$host_cpu" = ia64; then
14391 # On IA64, the linker does run time linking by default, so we don't
14392 # have to do anything special.
14393 aix_use_runtimelinking=no
14394 exp_sym_flag='-Bexport'
14397 aix_use_runtimelinking=no
14399 # Test if we are trying to use run time linking or normal
14400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14401 # need to do runtime linking.
14402 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14403 for ld_flag in $LDFLAGS; do
14406 aix_use_runtimelinking=yes
14414 exp_sym_flag='-bexport'
14415 no_entry_flag='-bnoentry'
14418 # When large executables or shared objects are built, AIX ld can
14419 # have problems creating the table of contents. If linking a library
14420 # or program results in "error TOC overflow" add -mminimal-toc to
14421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14424 archive_cmds_CXX=''
14425 hardcode_direct_CXX=yes
14426 hardcode_direct_absolute_CXX=yes
14427 hardcode_libdir_separator_CXX=':'
14428 link_all_deplibs_CXX=yes
14429 file_list_spec_CXX='${wl}-f,'
14431 if test "$GXX" = yes; then
14432 case $host_os in aix4.[012]|aix4.[012].*)
14433 # We only want to do this on AIX 4.2 and lower, the check
14434 # below for broken collect2 doesn't work under 4.3+
14435 collect2name=`${CC} -print-prog-name=collect2`
14436 if test -f "$collect2name" &&
14437 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14439 # We have reworked collect2
14442 # We have old collect2
14443 hardcode_direct_CXX=unsupported
14444 # It fails to find uninstalled libraries when the uninstalled
14445 # path is not listed in the libpath. Setting hardcode_minus_L
14446 # to unsupported forces relinking
14447 hardcode_minus_L_CXX=yes
14448 hardcode_libdir_flag_spec_CXX='-L$libdir'
14449 hardcode_libdir_separator_CXX=
14452 shared_flag='-shared'
14453 if test "$aix_use_runtimelinking" = yes; then
14454 shared_flag="$shared_flag "'${wl}-G'
14458 if test "$host_cpu" = ia64; then
14459 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14460 # chokes on -Wl,-G. The following line is correct:
14463 if test "$aix_use_runtimelinking" = yes; then
14464 shared_flag='${wl}-G'
14466 shared_flag='${wl}-bM:SRE'
14471 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14472 # It seems that -bexpall does not export symbols beginning with
14473 # underscore (_), so it is better to generate a list of symbols to
14475 always_export_symbols_CXX=yes
14476 if test "$aix_use_runtimelinking" = yes; then
14477 # Warning - without using the other runtime loading flags (-brtl),
14478 # -berok will link without error, but may produce a broken library.
14479 allow_undefined_flag_CXX='-berok'
14480 # Determine the default libpath from the value encoded in an empty
14482 if test "${lt_cv_aix_libpath+set}" = set; then
14483 aix_libpath=$lt_cv_aix_libpath
14485 if ${lt_cv_aix_libpath__CXX+:} false; then :
14486 $as_echo_n "(cached) " >&6
14488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14489 /* end confdefs.h. */
14499 if ac_fn_cxx_try_link "$LINENO"; then :
14501 lt_aix_libpath_sed='
14502 /Import File Strings/,/^$/ {
14504 s/^0 *\([^ ]*\) *$/\1/
14508 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14509 # Check for a 64-bit object if we didn't find anything.
14510 if test -z "$lt_cv_aix_libpath__CXX"; then
14511 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14514 rm -f core conftest.err conftest.$ac_objext \
14515 conftest$ac_exeext conftest.$ac_ext
14516 if test -z "$lt_cv_aix_libpath__CXX"; then
14517 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14522 aix_libpath=$lt_cv_aix_libpath__CXX
14525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14527 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"
14529 if test "$host_cpu" = ia64; then
14530 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14531 allow_undefined_flag_CXX="-z nodefs"
14532 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"
14534 # Determine the default libpath from the value encoded in an
14535 # empty executable.
14536 if test "${lt_cv_aix_libpath+set}" = set; then
14537 aix_libpath=$lt_cv_aix_libpath
14539 if ${lt_cv_aix_libpath__CXX+:} false; then :
14540 $as_echo_n "(cached) " >&6
14542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14543 /* end confdefs.h. */
14553 if ac_fn_cxx_try_link "$LINENO"; then :
14555 lt_aix_libpath_sed='
14556 /Import File Strings/,/^$/ {
14558 s/^0 *\([^ ]*\) *$/\1/
14562 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14563 # Check for a 64-bit object if we didn't find anything.
14564 if test -z "$lt_cv_aix_libpath__CXX"; then
14565 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14568 rm -f core conftest.err conftest.$ac_objext \
14569 conftest$ac_exeext conftest.$ac_ext
14570 if test -z "$lt_cv_aix_libpath__CXX"; then
14571 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14576 aix_libpath=$lt_cv_aix_libpath__CXX
14579 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14580 # Warning - without using the other run time loading flags,
14581 # -berok will link without error, but may produce a broken library.
14582 no_undefined_flag_CXX=' ${wl}-bernotok'
14583 allow_undefined_flag_CXX=' ${wl}-berok'
14584 if test "$with_gnu_ld" = yes; then
14585 # We only use this code for GNU lds that support --whole-archive.
14586 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14588 # Exported symbols can be pulled into shared objects from archives
14589 whole_archive_flag_spec_CXX='$convenience'
14591 archive_cmds_need_lc_CXX=yes
14592 # This is similar to how AIX traditionally builds its shared
14594 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'
14600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14601 allow_undefined_flag_CXX=unsupported
14602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14603 # support --undefined. This deserves some investigation. FIXME
14604 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611 case $cc_basename in
14613 # FIXME: insert proper C++ library support
14619 cygwin* | mingw* | pw32* | cegcc*)
14620 case $GXX,$cc_basename in
14623 # hardcode_libdir_flag_spec is actually meaningless, as there is
14624 # no search path for DLLs.
14625 hardcode_libdir_flag_spec_CXX=' '
14626 allow_undefined_flag_CXX=unsupported
14627 always_export_symbols_CXX=yes
14628 file_list_spec_CXX='@'
14629 # Tell ltmain to make .lib files, not .a files.
14631 # Tell ltmain to make .dll files, not .so files.
14633 # FIXME: Setting linknames here is a bad hack.
14634 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14635 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14636 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14638 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14640 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14642 # The linker will not automatically build a static lib if we build a DLL.
14643 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14644 enable_shared_with_static_runtimes_CXX=yes
14646 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14647 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14648 lt_tool_outputfile="@TOOL_OUTPUT@"~
14649 case $lt_outputfile in
14652 lt_outputfile="$lt_outputfile.exe"
14653 lt_tool_outputfile="$lt_tool_outputfile.exe"
14656 func_to_tool_file "$lt_outputfile"~
14657 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14658 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14659 $RM "$lt_outputfile.manifest";
14664 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14665 # as there is no search path for DLLs.
14666 hardcode_libdir_flag_spec_CXX='-L$libdir'
14667 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14668 allow_undefined_flag_CXX=unsupported
14669 always_export_symbols_CXX=no
14670 enable_shared_with_static_runtimes_CXX=yes
14672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14673 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'
14674 # If the export-symbols file already is a .def file (1st line
14675 # is EXPORTS), use it as is; otherwise, prepend...
14676 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14677 cp $export_symbols $output_objdir/$soname.def;
14679 echo EXPORTS > $output_objdir/$soname.def;
14680 cat $export_symbols >> $output_objdir/$soname.def;
14682 $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'
14689 darwin* | rhapsody*)
14692 archive_cmds_need_lc_CXX=no
14693 hardcode_direct_CXX=no
14694 hardcode_automatic_CXX=yes
14695 hardcode_shlibpath_var_CXX=unsupported
14696 if test "$lt_cv_ld_force_load" = "yes"; then
14697 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\"`'
14700 whole_archive_flag_spec_CXX=''
14702 link_all_deplibs_CXX=yes
14703 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14704 case $cc_basename in
14705 ifort*) _lt_dar_can_shared=yes ;;
14706 *) _lt_dar_can_shared=$GCC ;;
14708 if test "$_lt_dar_can_shared" = "yes"; then
14709 output_verbose_link_cmd=func_echo_all
14710 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}"
14711 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14712 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}"
14713 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}"
14714 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14715 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}"
14716 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}"
14726 case $cc_basename in
14728 # FIXME: insert proper C++ library support
14732 # Green Hills C++ Compiler
14733 # FIXME: insert proper C++ library support
14737 # FIXME: insert proper C++ library support
14744 # C++ shared libraries reported to be fairly broken before
14750 archive_cmds_need_lc_CXX=no
14753 freebsd* | dragonfly*)
14754 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14763 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764 link_all_deplibs_CXX=yes
14768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14769 hardcode_libdir_separator_CXX=:
14770 export_dynamic_flag_spec_CXX='${wl}-E'
14771 hardcode_direct_CXX=yes
14772 hardcode_minus_L_CXX=yes # Not in the search PATH,
14773 # but as the default
14774 # location of the library.
14776 case $cc_basename in
14778 # FIXME: insert proper C++ library support
14782 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'
14783 # Commands to make compiler produce verbose output that lists
14784 # what "hidden" libraries, object files and flags are used when
14785 # linking a shared library.
14787 # There doesn't appear to be a way to prevent this compiler from
14788 # explicitly linking system object files so we need to strip them
14789 # from the output so that they don't get included in the library
14791 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"'
14794 if test "$GXX" = yes; then
14795 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'
14797 # FIXME: insert proper C++ library support
14805 if test $with_gnu_ld = no; then
14806 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14807 hardcode_libdir_separator_CXX=:
14813 export_dynamic_flag_spec_CXX='${wl}-E'
14819 hardcode_direct_CXX=no
14820 hardcode_shlibpath_var_CXX=no
14823 hardcode_direct_CXX=yes
14824 hardcode_direct_absolute_CXX=yes
14825 hardcode_minus_L_CXX=yes # Not in the search PATH,
14826 # but as the default
14827 # location of the library.
14831 case $cc_basename in
14833 # FIXME: insert proper C++ library support
14839 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14848 # Commands to make compiler produce verbose output that lists
14849 # what "hidden" libraries, object files and flags are used when
14850 # linking a shared library.
14852 # There doesn't appear to be a way to prevent this compiler from
14853 # explicitly linking system object files so we need to strip them
14854 # from the output so that they don't get included in the library
14856 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"'
14859 if test "$GXX" = yes; then
14860 if test $with_gnu_ld = no; then
14863 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14866 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14869 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'
14874 # FIXME: insert proper C++ library support
14882 hardcode_direct_CXX=no
14883 hardcode_shlibpath_var_CXX=no
14884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec_CXX='${wl}-E'
14886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14887 # Instead, shared libraries are loaded at an image base (0x10000000 by
14888 # default) and relocated if they conflict, which is a slow very memory
14889 # consuming and fragmenting process. To avoid this, we pick a random,
14890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14892 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'
14893 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'
14896 case $cc_basename in
14899 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'
14901 # Archives containing C++ object files must be created using
14902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14903 # necessary to make sure instantiated templates are included
14905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14908 if test "$GXX" = yes; then
14909 if test "$with_gnu_ld" = no; then
14910 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'
14912 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'
14915 link_all_deplibs_CXX=yes
14918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14919 hardcode_libdir_separator_CXX=:
14920 inherit_rpath_CXX=yes
14923 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14924 case $cc_basename in
14926 # Kuck and Associates, Inc. (KAI) C++ Compiler
14928 # KCC will only create a shared library if the output file
14929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14930 # to its proper name (with version) after linking.
14931 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'
14932 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'
14933 # Commands to make compiler produce verbose output that lists
14934 # what "hidden" libraries, object files and flags are used when
14935 # linking a shared library.
14937 # There doesn't appear to be a way to prevent this compiler from
14938 # explicitly linking system object files so we need to strip them
14939 # from the output so that they don't get included in the library
14941 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"'
14943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14946 # Archives containing C++ object files must be created using
14947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14953 # version 8.0 and above of icpc choke on multiply defined symbols
14954 # if we add $predep_objects and $postdep_objects, however 7.1 and
14955 # earlier do not add the objects themselves.
14956 case `$CC -V 2>&1` in
14958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14959 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'
14961 *) # Version 8.0 or newer
14964 ia64*) tmp_idyn=' -i_dynamic';;
14966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 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'
14970 archive_cmds_need_lc_CXX=no
14971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14976 # Portland Group C++ compiler
14978 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14979 prelink_cmds_CXX='tpldir=Template.dir~
14981 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14982 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14983 old_archive_cmds_CXX='tpldir=Template.dir~
14985 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14986 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14988 archive_cmds_CXX='tpldir=Template.dir~
14990 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14991 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14992 archive_expsym_cmds_CXX='tpldir=Template.dir~
14994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14995 $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'
14997 *) # Version 6 and above use weak symbols
14998 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14999 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'
15003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15005 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'
15009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010 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'
15012 runpath_var=LD_RUN_PATH
15013 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15014 hardcode_libdir_separator_CXX=:
15016 # Commands to make compiler produce verbose output that lists
15017 # what "hidden" libraries, object files and flags are used when
15018 # linking a shared library.
15020 # There doesn't appear to be a way to prevent this compiler from
15021 # explicitly linking system object files so we need to strip them
15022 # from the output so that they don't get included in the library
15024 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'
15026 xl* | mpixl* | bgxl*)
15027 # IBM XL 8.0 on PPC, with GNU ld
15028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15030 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15031 if test "x$supports_anon_versioning" = xyes; then
15032 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15034 echo "local: *; };" >> $output_objdir/$libname.ver~
15035 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15039 case `$CC -V 2>&1 | sed 5q` in
15042 no_undefined_flag_CXX=' -zdefs'
15043 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15044 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'
15045 hardcode_libdir_flag_spec_CXX='-R$libdir'
15046 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'
15047 compiler_needs_object_CXX=yes
15049 # Not sure whether something based on
15050 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15052 output_verbose_link_cmd='func_echo_all'
15054 # Archives containing C++ object files must be created using
15055 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15056 # necessary to make sure instantiated templates are included
15058 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15066 # FIXME: insert proper C++ library support
15071 # FIXME: insert proper C++ library support
15076 case $cc_basename in
15078 # FIXME: insert proper C++ library support
15082 # FIXME: insert proper C++ library support
15089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15090 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15092 hardcode_libdir_flag_spec_CXX='-R$libdir'
15093 hardcode_direct_CXX=yes
15094 hardcode_shlibpath_var_CXX=no
15096 # Workaround some broken pre-1.5 toolchains
15097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15105 # C++ shared libraries are fairly broken
15110 if test -f /usr/libexec/ld.so; then
15111 hardcode_direct_CXX=yes
15112 hardcode_shlibpath_var_CXX=no
15113 hardcode_direct_absolute_CXX=yes
15114 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15117 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15118 export_dynamic_flag_spec_CXX='${wl}-E'
15119 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15121 output_verbose_link_cmd=func_echo_all
15127 osf3* | osf4* | osf5*)
15128 case $cc_basename in
15130 # Kuck and Associates, Inc. (KAI) C++ Compiler
15132 # KCC will only create a shared library if the output file
15133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15134 # to its proper name (with version) after linking.
15135 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'
15137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15138 hardcode_libdir_separator_CXX=:
15140 # Archives containing C++ object files must be created using
15141 # the KAI C++ compiler.
15143 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15144 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15148 # Rational C++ 2.4.1
15149 # FIXME: insert proper C++ library support
15155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15156 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'
15157 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15160 allow_undefined_flag_CXX=' -expect_unresolved \*'
15161 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'
15162 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15163 echo "-hidden">> $lib.exp~
15164 $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~
15166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15170 hardcode_libdir_separator_CXX=:
15172 # Commands to make compiler produce verbose output that lists
15173 # what "hidden" libraries, object files and flags are used when
15174 # linking a shared library.
15176 # There doesn't appear to be a way to prevent this compiler from
15177 # explicitly linking system object files so we need to strip them
15178 # from the output so that they don't get included in the library
15180 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"'
15183 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15184 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15187 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'
15190 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'
15194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15195 hardcode_libdir_separator_CXX=:
15197 # Commands to make compiler produce verbose output that lists
15198 # what "hidden" libraries, object files and flags are used when
15199 # linking a shared library.
15200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15203 # FIXME: insert proper C++ library support
15211 # FIXME: insert proper C++ library support
15216 case $cc_basename in
15219 # FIXME: insert proper C++ library support
15224 # FIXME: insert proper C++ library support
15228 # FIXME: insert proper C++ library support
15235 case $cc_basename in
15237 # Sun C++ 4.2, 5.x and Centerline C++
15238 archive_cmds_need_lc_CXX=yes
15239 no_undefined_flag_CXX=' -zdefs'
15240 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15241 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15242 $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'
15244 hardcode_libdir_flag_spec_CXX='-R$libdir'
15245 hardcode_shlibpath_var_CXX=no
15247 solaris2.[0-5] | solaris2.[0-5].*) ;;
15249 # The compiler driver will combine and reorder linker options,
15250 # but understands `-z linker_flag'.
15251 # Supported since Solaris 2.6 (maybe 2.5.1?)
15252 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15255 link_all_deplibs_CXX=yes
15257 output_verbose_link_cmd='func_echo_all'
15259 # Archives containing C++ object files must be created using
15260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15261 # necessary to make sure instantiated templates are included
15263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15266 # Green Hills C++ Compiler
15267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15269 # The C++ compiler must be used to create the archive.
15270 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15273 # GNU C++ compiler with Solaris linker
15274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15275 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15276 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15277 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15278 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15279 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15281 # Commands to make compiler produce verbose output that lists
15282 # what "hidden" libraries, object files and flags are used when
15283 # linking a shared library.
15284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15286 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15288 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15289 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15290 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15292 # Commands to make compiler produce verbose output that lists
15293 # what "hidden" libraries, object files and flags are used when
15294 # linking a shared library.
15295 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15298 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15300 solaris2.[0-5] | solaris2.[0-5].*) ;;
15302 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15311 no_undefined_flag_CXX='${wl}-z,text'
15312 archive_cmds_need_lc_CXX=no
15313 hardcode_shlibpath_var_CXX=no
15314 runpath_var='LD_RUN_PATH'
15316 case $cc_basename in
15318 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15319 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15323 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15328 sysv5* | sco3.2v5* | sco5v6*)
15329 # Note: We can NOT use -z defs as we might desire, because we do not
15330 # link with -lc, and that would cause any symbols used from libc to
15331 # always be unresolved, which means just about no library would
15332 # ever link correctly. If we're not using GNU ld we use -z text
15333 # though, which does catch some bad symbols but isn't as heavy-handed
15335 no_undefined_flag_CXX='${wl}-z,text'
15336 allow_undefined_flag_CXX='${wl}-z,nodefs'
15337 archive_cmds_need_lc_CXX=no
15338 hardcode_shlibpath_var_CXX=no
15339 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15340 hardcode_libdir_separator_CXX=':'
15341 link_all_deplibs_CXX=yes
15342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15343 runpath_var='LD_RUN_PATH'
15345 case $cc_basename in
15347 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15349 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15350 '"$old_archive_cmds_CXX"
15351 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15352 '"$reload_cmds_CXX"
15355 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15356 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15362 case $cc_basename in
15364 # NonStop-UX NCC 3.20
15365 # FIXME: insert proper C++ library support
15369 # FIXME: insert proper C++ library support
15376 # FIXME: insert proper C++ library support
15381 # FIXME: insert proper C++ library support
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15387 $as_echo "$ld_shlibs_CXX" >&6; }
15388 test "$ld_shlibs_CXX" = no && can_build_shared=no
15394 ## There is no encapsulation within the following macros, do not change
15395 ## the running order or otherwise move them around unless you know exactly
15396 ## what you are doing...
15397 # Dependencies to place before and after the object being linked:
15398 predep_objects_CXX=
15399 postdep_objects_CXX=
15402 compiler_lib_search_path_CXX=
15404 cat > conftest.$ac_ext <<_LT_EOF
15408 Foo (void) { a = 0; }
15415 _lt_libdeps_save_CFLAGS=$CFLAGS
15416 case "$CC $CFLAGS " in #(
15417 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15418 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15419 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15423 (eval $ac_compile) 2>&5
15425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15426 test $ac_status = 0; }; then
15427 # Parse the compiler output and extract the necessary
15428 # objects, libraries and library flags.
15430 # Sentinel used to keep track of whether or not we are before
15431 # the conftest object file.
15432 pre_test_object_deps_done=no
15434 for p in `eval "$output_verbose_link_cmd"`; do
15435 case ${prev}${p} in
15438 # Some compilers place space between "-{L,R}" and the path.
15439 # Remove the space.
15440 if test $p = "-L" ||
15441 test $p = "-R"; then
15446 # Expand the sysroot to ease extracting the directories later.
15447 if test -z "$prev"; then
15449 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15450 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15451 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15455 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15457 if test "$pre_test_object_deps_done" = no; then
15460 # Internal compiler library paths should come after those
15461 # provided the user. The postdeps already come after the
15462 # user supplied libs so there is no need to process them.
15463 if test -z "$compiler_lib_search_path_CXX"; then
15464 compiler_lib_search_path_CXX="${prev}${p}"
15466 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15469 # The "-l" case would never come before the object being
15470 # linked, so don't bother handling this case.
15473 if test -z "$postdeps_CXX"; then
15474 postdeps_CXX="${prev}${p}"
15476 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15482 *.lto.$objext) ;; # Ignore GCC LTO objects
15484 # This assumes that the test object file only shows up
15485 # once in the compiler output.
15486 if test "$p" = "conftest.$objext"; then
15487 pre_test_object_deps_done=yes
15491 if test "$pre_test_object_deps_done" = no; then
15492 if test -z "$predep_objects_CXX"; then
15493 predep_objects_CXX="$p"
15495 predep_objects_CXX="$predep_objects_CXX $p"
15498 if test -z "$postdep_objects_CXX"; then
15499 postdep_objects_CXX="$p"
15501 postdep_objects_CXX="$postdep_objects_CXX $p"
15506 *) ;; # Ignore the rest.
15514 echo "libtool.m4: error: problem compiling CXX test program"
15517 $RM -f confest.$objext
15518 CFLAGS=$_lt_libdeps_save_CFLAGS
15520 # PORTME: override above test on systems where it is broken
15523 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15524 # hack all around it, let's just trust "g++" to DTRT.
15525 predep_objects_CXX=
15526 postdep_objects_CXX=
15531 case `$CC -V 2>&1 | sed 5q` 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 if test "$solaris_use_stlport4" != yes; then
15546 postdeps_CXX='-library=Cstd -library=Crun'
15553 case $cc_basename in
15555 # The more standards-conforming stlport4 library is
15556 # incompatible with the Cstd library. Avoid specifying
15557 # it if it's in CXXFLAGS. Ignore libCrun as
15558 # -library=stlport4 depends on it.
15559 case " $CXX $CXXFLAGS " in
15560 *" -library=stlport4 "*)
15561 solaris_use_stlport4=yes
15565 # Adding this requires a known-good setup of shared libraries for
15566 # Sun compiler versions before 5.6, else PIC objects from an old
15567 # archive will be linked into the output, leading to subtle bugs.
15568 if test "$solaris_use_stlport4" != yes; then
15569 postdeps_CXX='-library=Cstd -library=Crun'
15577 case " $postdeps_CXX " in
15578 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15580 compiler_lib_search_dirs_CXX=
15581 if test -n "${compiler_lib_search_path_CXX}"; then
15582 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15615 lt_prog_compiler_wl_CXX=
15616 lt_prog_compiler_pic_CXX=
15617 lt_prog_compiler_static_CXX=
15620 # C++ specific cases for pic, static, wl, etc.
15621 if test "$GXX" = yes; then
15622 lt_prog_compiler_wl_CXX='-Wl,'
15623 lt_prog_compiler_static_CXX='-static'
15627 # All AIX code is PIC.
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 now supports IA64 processor
15630 lt_prog_compiler_static_CXX='-Bstatic'
15637 # see comment about AmigaOS4 .so support
15638 lt_prog_compiler_pic_CXX='-fPIC'
15641 # FIXME: we need at least 68020 code to build shared libraries, but
15642 # adding the `-m68020' flag to GCC prevents building anything better,
15644 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15649 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15650 # PIC is the default for these OSes.
15652 mingw* | cygwin* | os2* | pw32* | cegcc*)
15653 # This hack is so that the source file can tell whether it is being
15654 # built for inclusion in a dll (and should export symbols for example).
15655 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15656 # (--disable-auto-import) libraries
15657 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15659 darwin* | rhapsody*)
15660 # PIC is the default on this platform
15661 # Common symbols not allowed in MH_DYLIB files
15662 lt_prog_compiler_pic_CXX='-fno-common'
15665 # DJGPP does not support shared libraries at all
15666 lt_prog_compiler_pic_CXX=
15669 # PIC is the default for Haiku.
15670 # The "-static" flag exists, but is broken.
15671 lt_prog_compiler_static_CXX=
15674 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15675 # Instead, we relocate shared libraries at runtime.
15678 if test -d /usr/nec; then
15679 lt_prog_compiler_pic_CXX=-Kconform_pic
15683 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15684 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15685 # sets the default TLS model and affects inlining.
15690 lt_prog_compiler_pic_CXX='-fPIC'
15695 # QNX uses GNU C++, but need to define -shared option too, otherwise
15696 # it will coredump.
15697 lt_prog_compiler_pic_CXX='-fPIC -shared'
15700 lt_prog_compiler_pic_CXX='-fPIC'
15706 # All AIX code is PIC.
15707 if test "$host_cpu" = ia64; then
15708 # AIX 5 now supports IA64 processor
15709 lt_prog_compiler_static_CXX='-Bstatic'
15711 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15715 case $cc_basename in
15717 # Green Hills C++ Compiler
15718 # _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"
15722 mingw* | cygwin* | os2* | pw32* | cegcc*)
15723 # This hack is so that the source file can tell whether it is being
15724 # built for inclusion in a dll (and should export symbols for example).
15725 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15728 case $cc_basename in
15730 lt_prog_compiler_pic_CXX='-KPIC'
15733 # Green Hills C++ Compiler
15734 lt_prog_compiler_pic_CXX='-pic'
15740 freebsd* | dragonfly*)
15741 # FreeBSD uses GNU C++
15743 hpux9* | hpux10* | hpux11*)
15744 case $cc_basename in
15746 lt_prog_compiler_wl_CXX='-Wl,'
15747 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15748 if test "$host_cpu" != ia64; then
15749 lt_prog_compiler_pic_CXX='+Z'
15753 lt_prog_compiler_wl_CXX='-Wl,'
15754 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15760 lt_prog_compiler_pic_CXX='+Z'
15769 # This is c89, which is MS Visual C++ (no shared libs)
15770 # Anyone wants to do a port?
15772 irix5* | irix6* | nonstopux*)
15773 case $cc_basename in
15775 lt_prog_compiler_wl_CXX='-Wl,'
15776 lt_prog_compiler_static_CXX='-non_shared'
15777 # CC pic flag -KPIC is the default.
15783 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15784 case $cc_basename in
15787 lt_prog_compiler_wl_CXX='--backend -Wl,'
15788 lt_prog_compiler_pic_CXX='-fPIC'
15791 # old Intel C++ for x86_64 which still supported -KPIC.
15792 lt_prog_compiler_wl_CXX='-Wl,'
15793 lt_prog_compiler_pic_CXX='-KPIC'
15794 lt_prog_compiler_static_CXX='-static'
15797 # Intel C++, used to be incompatible with GCC.
15798 # ICC 10 doesn't accept -KPIC any more.
15799 lt_prog_compiler_wl_CXX='-Wl,'
15800 lt_prog_compiler_pic_CXX='-fPIC'
15801 lt_prog_compiler_static_CXX='-static'
15804 # Portland Group C++ compiler
15805 lt_prog_compiler_wl_CXX='-Wl,'
15806 lt_prog_compiler_pic_CXX='-fpic'
15807 lt_prog_compiler_static_CXX='-Bstatic'
15811 # Make sure the PIC flag is empty. It appears that all Alpha
15812 # Linux and Compaq Tru64 Unix objects are PIC.
15813 lt_prog_compiler_pic_CXX=
15814 lt_prog_compiler_static_CXX='-non_shared'
15816 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15817 # IBM XL 8.0, 9.0 on PPC and BlueGene
15818 lt_prog_compiler_wl_CXX='-Wl,'
15819 lt_prog_compiler_pic_CXX='-qpic'
15820 lt_prog_compiler_static_CXX='-qstaticlink'
15823 case `$CC -V 2>&1 | sed 5q` in
15826 lt_prog_compiler_pic_CXX='-KPIC'
15827 lt_prog_compiler_static_CXX='-Bstatic'
15828 lt_prog_compiler_wl_CXX='-Qoption ld '
15839 case $cc_basename in
15841 lt_prog_compiler_pic_CXX='-W c,exportall'
15847 netbsd* | netbsdelf*-gnu)
15850 # QNX uses GNU C++, but need to define -shared option too, otherwise
15851 # it will coredump.
15852 lt_prog_compiler_pic_CXX='-fPIC -shared'
15854 osf3* | osf4* | osf5*)
15855 case $cc_basename in
15857 lt_prog_compiler_wl_CXX='--backend -Wl,'
15860 # Rational C++ 2.4.1
15861 lt_prog_compiler_pic_CXX='-pic'
15864 # Digital/Compaq C++
15865 lt_prog_compiler_wl_CXX='-Wl,'
15866 # Make sure the PIC flag is empty. It appears that all Alpha
15867 # Linux and Compaq Tru64 Unix objects are PIC.
15868 lt_prog_compiler_pic_CXX=
15869 lt_prog_compiler_static_CXX='-non_shared'
15878 case $cc_basename in
15880 # Sun C++ 4.2, 5.x and Centerline C++
15881 lt_prog_compiler_pic_CXX='-KPIC'
15882 lt_prog_compiler_static_CXX='-Bstatic'
15883 lt_prog_compiler_wl_CXX='-Qoption ld '
15886 # Green Hills C++ Compiler
15887 lt_prog_compiler_pic_CXX='-PIC'
15894 case $cc_basename in
15897 lt_prog_compiler_pic_CXX='-pic'
15898 lt_prog_compiler_static_CXX='-Bstatic'
15902 lt_prog_compiler_pic_CXX='-pic'
15908 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15909 case $cc_basename in
15911 lt_prog_compiler_wl_CXX='-Wl,'
15912 lt_prog_compiler_pic_CXX='-KPIC'
15913 lt_prog_compiler_static_CXX='-Bstatic'
15918 case $cc_basename in
15920 # NonStop-UX NCC 3.20
15921 lt_prog_compiler_pic_CXX='-KPIC'
15930 lt_prog_compiler_can_build_shared_CXX=no
15936 # For platforms which do not support PIC, -DPIC is meaningless:
15938 lt_prog_compiler_pic_CXX=
15941 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15946 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15947 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15948 $as_echo_n "(cached) " >&6
15950 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15953 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15954 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15957 # Check to make sure the PIC flag actually works.
15959 if test -n "$lt_prog_compiler_pic_CXX"; then
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15961 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15962 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15963 $as_echo_n "(cached) " >&6
15965 lt_cv_prog_compiler_pic_works_CXX=no
15966 ac_outfile=conftest.$ac_objext
15967 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15968 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15969 # Insert the option either (1) after the last *FLAGS variable, or
15970 # (2) before a word containing "conftest.", or (3) at the end.
15971 # Note that $ac_compile itself does not contain backslashes and begins
15972 # with a dollar sign (not a hyphen), so the echo should work correctly.
15973 # The option is referenced via a variable to avoid confusing sed.
15974 lt_compile=`echo "$ac_compile" | $SED \
15975 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15976 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15977 -e 's:$: $lt_compiler_flag:'`
15978 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15979 (eval "$lt_compile" 2>conftest.err)
15981 cat conftest.err >&5
15982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 if (exit $ac_status) && test -s "$ac_outfile"; then
15984 # The compiler can only warn and ignore the option if not recognized
15985 # So say no if there are warnings other than the usual output.
15986 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15988 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15989 lt_cv_prog_compiler_pic_works_CXX=yes
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15996 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15998 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15999 case $lt_prog_compiler_pic_CXX in
16001 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16004 lt_prog_compiler_pic_CXX=
16005 lt_prog_compiler_can_build_shared_CXX=no
16015 # Check to make sure the static flag actually works.
16017 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16019 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16020 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16021 $as_echo_n "(cached) " >&6
16023 lt_cv_prog_compiler_static_works_CXX=no
16024 save_LDFLAGS="$LDFLAGS"
16025 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16026 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16027 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16028 # The linker can only warn and ignore the option if not recognized
16029 # So say no if there are warnings
16030 if test -s conftest.err; then
16031 # Append any errors to the config.log.
16032 cat conftest.err 1>&5
16033 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16034 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16035 if diff conftest.exp conftest.er2 >/dev/null; then
16036 lt_cv_prog_compiler_static_works_CXX=yes
16039 lt_cv_prog_compiler_static_works_CXX=yes
16043 LDFLAGS="$save_LDFLAGS"
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16047 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16049 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16052 lt_prog_compiler_static_CXX=
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16060 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16061 $as_echo_n "(cached) " >&6
16063 lt_cv_prog_compiler_c_o_CXX=no
16064 $RM -r conftest 2>/dev/null
16068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16070 lt_compiler_flag="-o out/conftest2.$ac_objext"
16071 # Insert the option either (1) after the last *FLAGS variable, or
16072 # (2) before a word containing "conftest.", or (3) at the end.
16073 # Note that $ac_compile itself does not contain backslashes and begins
16074 # with a dollar sign (not a hyphen), so the echo should work correctly.
16075 lt_compile=`echo "$ac_compile" | $SED \
16076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16078 -e 's:$: $lt_compiler_flag:'`
16079 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16080 (eval "$lt_compile" 2>out/conftest.err)
16082 cat out/conftest.err >&5
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16086 # The compiler can only warn and ignore the option if not recognized
16087 # So say no if there are warnings
16088 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16091 lt_cv_prog_compiler_c_o_CXX=yes
16096 # SGI C++ compiler will create directory out/ii_files/ for
16097 # template instantiation
16098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16099 $RM out/* && rmdir out
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16106 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16112 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16113 $as_echo_n "(cached) " >&6
16115 lt_cv_prog_compiler_c_o_CXX=no
16116 $RM -r conftest 2>/dev/null
16120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16122 lt_compiler_flag="-o out/conftest2.$ac_objext"
16123 # Insert the option either (1) after the last *FLAGS variable, or
16124 # (2) before a word containing "conftest.", or (3) at the end.
16125 # Note that $ac_compile itself does not contain backslashes and begins
16126 # with a dollar sign (not a hyphen), so the echo should work correctly.
16127 lt_compile=`echo "$ac_compile" | $SED \
16128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16130 -e 's:$: $lt_compiler_flag:'`
16131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16132 (eval "$lt_compile" 2>out/conftest.err)
16134 cat out/conftest.err >&5
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16138 # The compiler can only warn and ignore the option if not recognized
16139 # So say no if there are warnings
16140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16143 lt_cv_prog_compiler_c_o_CXX=yes
16148 # SGI C++ compiler will create directory out/ii_files/ for
16149 # template instantiation
16150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16151 $RM out/* && rmdir out
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16158 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16163 hard_links="nottested"
16164 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16165 # do not overwrite the value of need_locks provided by the user
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16167 $as_echo_n "checking if we can lock with hard links... " >&6; }
16170 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16172 ln conftest.a conftest.b 2>&5 || hard_links=no
16173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16175 $as_echo "$hard_links" >&6; }
16176 if test "$hard_links" = no; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16178 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16188 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16191 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16194 # If we're using GNU nm, then we don't want the "-C" option.
16195 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16196 # Also, AIX nm treats weak defined symbols like other global defined
16197 # symbols, whereas GNU nm marks them as "W".
16198 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16199 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'
16201 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'
16205 export_symbols_cmds_CXX="$ltdll_cmds"
16207 cygwin* | mingw* | cegcc*)
16208 case $cc_basename in
16210 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16213 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'
16214 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16218 linux* | k*bsd*-gnu | gnu*)
16219 link_all_deplibs_CXX=no
16222 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16227 $as_echo "$ld_shlibs_CXX" >&6; }
16228 test "$ld_shlibs_CXX" = no && can_build_shared=no
16230 with_gnu_ld_CXX=$with_gnu_ld
16238 # Do we need to explicitly link libc?
16240 case "x$archive_cmds_need_lc_CXX" in
16242 # Assume -lc should be added
16243 archive_cmds_need_lc_CXX=yes
16245 if test "$enable_shared" = yes && test "$GCC" = yes; then
16246 case $archive_cmds_CXX in
16248 # FIXME: we may have to deal with multi-command sequences.
16251 # Test whether the compiler implicitly links with -lc since on some
16252 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16253 # to ld, don't add -lc before -lgcc.
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16255 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16256 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
16257 $as_echo_n "(cached) " >&6
16260 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16263 (eval $ac_compile) 2>&5
16265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16266 test $ac_status = 0; } 2>conftest.err; then
16269 libobjs=conftest.$ac_objext
16271 wl=$lt_prog_compiler_wl_CXX
16272 pic_flag=$lt_prog_compiler_pic_CXX
16278 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16279 allow_undefined_flag_CXX=
16280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16281 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16284 test $ac_status = 0; }
16286 lt_cv_archive_cmds_need_lc_CXX=no
16288 lt_cv_archive_cmds_need_lc_CXX=yes
16290 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16292 cat conftest.err 1>&5
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16298 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16299 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16368 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16370 library_names_spec=
16371 libname_spec='lib$name'
16375 postuninstall_cmds=
16379 shlibpath_overrides_runpath=unknown
16381 dynamic_linker="$host_os ld.so"
16382 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16383 need_lib_prefix=unknown
16384 hardcode_into_libs=no
16386 # when you set need_version to no, make sure it does not cause -set_version
16387 # flags to be left without arguments
16388 need_version=unknown
16392 version_type=linux # correct to gnu/linux during the next big refactor
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16394 shlibpath_var=LIBPATH
16396 # AIX 3 has no versioning support, so we append a major version to the name.
16397 soname_spec='${libname}${release}${shared_ext}$major'
16401 version_type=linux # correct to gnu/linux during the next big refactor
16404 hardcode_into_libs=yes
16405 if test "$host_cpu" = ia64; then
16406 # AIX 5 supports IA64
16407 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16410 # With GCC up to 2.95.x, collect2 would create an import file
16411 # for dependence libraries. The import file would start with
16412 # the line `#! .'. This would cause the generated library to
16413 # depend on `.', always an invalid library. This was fixed in
16414 # development snapshots of GCC prior to 3.0.
16416 aix4 | aix4.[01] | aix4.[01].*)
16417 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16419 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16422 can_build_shared=no
16426 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16427 # soname into executable. Probably we can add versioning support to
16428 # collect2, so additional links can be useful in future.
16429 if test "$aix_use_runtimelinking" = yes; then
16430 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16431 # instead of lib<name>.a to let people know that these are not
16432 # typical AIX shared libraries.
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16435 # We preserve .a as extension for shared libraries through AIX4.2
16436 # and later when we are not doing run time linking.
16437 library_names_spec='${libname}${release}.a $libname.a'
16438 soname_spec='${libname}${release}${shared_ext}$major'
16440 shlibpath_var=LIBPATH
16447 # Since July 2007 AmigaOS4 officially supports .so libraries.
16448 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 library_names_spec='$libname.ixlibrary $libname.a'
16453 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16454 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'
16460 library_names_spec='${libname}${shared_ext}'
16461 dynamic_linker="$host_os ld.so"
16462 shlibpath_var=LIBRARY_PATH
16466 version_type=linux # correct to gnu/linux during the next big refactor
16468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16474 # the default ld.so.conf also contains /usr/contrib/lib and
16475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16476 # libtool to hard-code these into programs
16479 cygwin* | mingw* | pw32* | cegcc*)
16480 version_type=windows
16485 case $GCC,$cc_basename in
16488 library_names_spec='$libname.dll.a'
16489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16490 postinstall_cmds='base_file=`basename \${file}`~
16491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16492 dldir=$destdir/`dirname \$dlpath`~
16493 test -d \$dldir || mkdir -p \$dldir~
16494 $install_prog $dir/$dlname \$dldir/$dlname~
16495 chmod a+x \$dldir/$dlname~
16496 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16497 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16499 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16500 dlpath=$dir/\$dldll~
16502 shlibpath_overrides_runpath=yes
16506 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16507 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16511 # MinGW DLLs use traditional 'lib' prefix
16512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16515 # pw32 DLLs use 'pw' prefix rather than 'lib'
16516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16519 dynamic_linker='Win32 ld.exe'
16524 libname_spec='$name'
16525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16526 library_names_spec='${libname}.dll.lib'
16530 sys_lib_search_path_spec=
16533 for lt_path in $LIB
16536 # Let DOS variable expansion print the short 8.3 style file name.
16537 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16538 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16541 # Convert to MSYS style.
16542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16545 # Convert to unix form, then to dos form, then back to unix form
16546 # but this time dos style (no spaces!) so that the unix form looks
16547 # like /cygdrive/c/PROGRA~1:/cygdr...
16548 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16549 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16550 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16553 sys_lib_search_path_spec="$LIB"
16554 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16555 # It is most probably a Windows format PATH.
16556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16560 # FIXME: find the short name or the path components, as spaces are
16561 # common. (e.g. "Program Files" -> "PROGRA~1")
16565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16566 postinstall_cmds='base_file=`basename \${file}`~
16567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16568 dldir=$destdir/`dirname \$dlpath`~
16569 test -d \$dldir || mkdir -p \$dldir~
16570 $install_prog $dir/$dlname \$dldir/$dlname'
16571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16572 dlpath=$dir/\$dldll~
16574 shlibpath_overrides_runpath=yes
16575 dynamic_linker='Win32 link.exe'
16579 # Assume MSVC wrapper
16580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16581 dynamic_linker='Win32 ld.exe'
16584 # FIXME: first we should search . and the directory the executable is in
16588 darwin* | rhapsody*)
16589 dynamic_linker="$host_os dyld"
16590 version_type=darwin
16593 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16594 soname_spec='${libname}${release}${major}$shared_ext'
16595 shlibpath_overrides_runpath=yes
16596 shlibpath_var=DYLD_LIBRARY_PATH
16597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16603 version_type=linux # correct to gnu/linux during the next big refactor
16606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16607 soname_spec='${libname}${release}${shared_ext}$major'
16608 shlibpath_var=LD_LIBRARY_PATH
16611 freebsd* | dragonfly*)
16612 # DragonFly does not have aout. When/if they implement a new
16613 # versioning mechanism, adjust this.
16614 if test -x /usr/bin/objformat; then
16615 objformat=`/usr/bin/objformat`
16618 freebsd[23].*) objformat=aout ;;
16619 *) objformat=elf ;;
16622 version_type=freebsd-$objformat
16623 case $version_type in
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16634 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=yes
16639 freebsd3.[01]* | freebsdelf3.[01]*)
16640 shlibpath_overrides_runpath=yes
16641 hardcode_into_libs=yes
16643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16645 shlibpath_overrides_runpath=no
16646 hardcode_into_libs=yes
16648 *) # from 4.6 on, and DragonFly
16649 shlibpath_overrides_runpath=yes
16650 hardcode_into_libs=yes
16656 version_type=linux # correct to gnu/linux during the next big refactor
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 shlibpath_var=LD_LIBRARY_PATH
16662 shlibpath_overrides_runpath=no
16663 hardcode_into_libs=yes
16667 version_type=linux # correct to gnu/linux during the next big refactor
16670 dynamic_linker="$host_os runtime_loader"
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 shlibpath_var=LIBRARY_PATH
16674 shlibpath_overrides_runpath=yes
16675 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16676 hardcode_into_libs=yes
16679 hpux9* | hpux10* | hpux11*)
16680 # Give a soname corresponding to the major version so that dld.sl refuses to
16681 # link against other versions.
16688 hardcode_into_libs=yes
16689 dynamic_linker="$host_os dld.so"
16690 shlibpath_var=LD_LIBRARY_PATH
16691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 if test "X$HPUX_IA64_MODE" = X32; then
16695 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16697 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16703 hardcode_into_libs=yes
16704 dynamic_linker="$host_os dld.sl"
16705 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16710 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16714 dynamic_linker="$host_os dld.sl"
16715 shlibpath_var=SHLIB_PATH
16716 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718 soname_spec='${libname}${release}${shared_ext}$major'
16721 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16722 postinstall_cmds='chmod 555 $lib'
16723 # or fails outright, so override atomically:
16724 install_override_mode=555
16728 version_type=linux # correct to gnu/linux during the next big refactor
16731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16732 soname_spec='${libname}${release}${shared_ext}$major'
16733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 shlibpath_overrides_runpath=no
16736 hardcode_into_libs=yes
16739 irix5* | irix6* | nonstopux*)
16741 nonstopux*) version_type=nonstopux ;;
16743 if test "$lt_cv_prog_gnu_ld" = yes; then
16744 version_type=linux # correct to gnu/linux during the next big refactor
16751 soname_spec='${libname}${release}${shared_ext}$major'
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16754 irix5* | nonstopux*)
16755 libsuff= shlibsuff=
16758 case $LD in # libtool.m4 will add one of these switches to LD
16759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16760 libsuff= shlibsuff= libmagic=32-bit;;
16761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16762 libsuff=32 shlibsuff=N32 libmagic=N32;;
16763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16765 *) libsuff= shlibsuff= libmagic=never-match;;
16769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16770 shlibpath_overrides_runpath=no
16771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16773 hardcode_into_libs=yes
16776 # No shared lib support for Linux oldld, aout, or coff.
16777 linux*oldld* | linux*aout* | linux*coff*)
16782 version_type=none # Android doesn't support versioned libraries.
16785 library_names_spec='$libname$release$shared_ext'
16786 soname_spec='$libname$release$shared_ext'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=yes
16791 # This implies no fast_install, which is unacceptable.
16792 # Some rework will be needed to allow for fast_install
16793 # before this can be enabled.
16794 hardcode_into_libs=yes
16796 dynamic_linker='Android linker'
16797 # Don't embed -rpath directories since the linker doesn't support them.
16798 hardcode_libdir_flag_spec_CXX='-L$libdir'
16801 # This must be glibc/ELF.
16802 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16803 version_type=linux # correct to gnu/linux during the next big refactor
16806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16807 soname_spec='${libname}${release}${shared_ext}$major'
16808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=no
16812 # Some binutils ld are patched to set DT_RUNPATH
16813 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16814 $as_echo_n "(cached) " >&6
16816 lt_cv_shlibpath_overrides_runpath=no
16817 save_LDFLAGS=$LDFLAGS
16818 save_libdir=$libdir
16819 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16820 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16822 /* end confdefs.h. */
16832 if ac_fn_cxx_try_link "$LINENO"; then :
16833 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16834 lt_cv_shlibpath_overrides_runpath=yes
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LDFLAGS=$save_LDFLAGS
16840 libdir=$save_libdir
16844 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16846 # This implies no fast_install, which is unacceptable.
16847 # Some rework will be needed to allow for fast_install
16848 # before this can be enabled.
16849 hardcode_into_libs=yes
16851 # Append ld.so.conf contents to the search path
16852 if test -f /etc/ld.so.conf; then
16853 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' ' '`
16854 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16857 # We used to test for /lib/ld.so.1 and disable shared libraries on
16858 # powerpc, because MkLinux only supported shared libraries with the
16859 # GNU dynamic linker. Since this was broken with cross compilers,
16860 # most powerpc-linux boxes support dynamic linking these days and
16861 # people can always --disable-shared, the test was removed, and we
16862 # assume the GNU/Linux dynamic linker is in use.
16863 dynamic_linker='GNU/Linux ld.so'
16870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16871 soname_spec='${libname}${release}${shared_ext}$major'
16872 shlibpath_var=LD_LIBRARY_PATH
16873 shlibpath_overrides_runpath=no
16874 hardcode_into_libs=yes
16875 dynamic_linker='NetBSD ld.elf_so'
16882 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16885 dynamic_linker='NetBSD (a.out) ld.so'
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16888 soname_spec='${libname}${release}${shared_ext}$major'
16889 dynamic_linker='NetBSD ld.elf_so'
16891 shlibpath_var=LD_LIBRARY_PATH
16892 shlibpath_overrides_runpath=yes
16893 hardcode_into_libs=yes
16897 version_type=linux # correct to gnu/linux during the next big refactor
16898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=yes
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 shlibpath_var=LD_LIBRARY_PATH
16910 shlibpath_overrides_runpath=no
16911 hardcode_into_libs=yes
16912 dynamic_linker='ldqnx.so'
16917 sys_lib_dlsearch_path_spec="/usr/lib"
16919 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16921 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16922 *) need_version=no ;;
16924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16926 shlibpath_var=LD_LIBRARY_PATH
16927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16929 openbsd2.[89] | openbsd2.[89].*)
16930 shlibpath_overrides_runpath=no
16933 shlibpath_overrides_runpath=yes
16937 shlibpath_overrides_runpath=yes
16942 libname_spec='$name'
16945 library_names_spec='$libname${shared_ext} $libname.a'
16946 dynamic_linker='OS/2 ld.exe'
16947 shlibpath_var=LIBPATH
16950 osf3* | osf4* | osf5*)
16954 soname_spec='${libname}${release}${shared_ext}$major'
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16956 shlibpath_var=LD_LIBRARY_PATH
16957 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16958 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16966 version_type=linux # correct to gnu/linux during the next big refactor
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath=yes
16973 hardcode_into_libs=yes
16974 # ldd complains unless libraries are executable
16975 postinstall_cmds='chmod +x $lib'
16980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16981 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16982 shlibpath_var=LD_LIBRARY_PATH
16983 shlibpath_overrides_runpath=yes
16984 if test "$with_gnu_ld" = yes; then
16991 version_type=linux # correct to gnu/linux during the next big refactor
16992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993 soname_spec='${libname}${release}${shared_ext}$major'
16994 shlibpath_var=LD_LIBRARY_PATH
16995 case $host_vendor in
16997 shlibpath_overrides_runpath=no
16999 runpath_var=LD_RUN_PATH
17007 shlibpath_overrides_runpath=no
17008 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17014 if test -d /usr/nec ;then
17015 version_type=linux # correct to gnu/linux during the next big refactor
17016 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17017 soname_spec='$libname${shared_ext}.$major'
17018 shlibpath_var=LD_LIBRARY_PATH
17022 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17023 version_type=freebsd-elf
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 shlibpath_var=LD_LIBRARY_PATH
17029 shlibpath_overrides_runpath=yes
17030 hardcode_into_libs=yes
17031 if test "$with_gnu_ld" = yes; then
17032 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17034 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17037 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17041 sys_lib_dlsearch_path_spec='/usr/lib'
17045 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17046 version_type=linux # correct to gnu/linux during the next big refactor
17049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=no
17052 hardcode_into_libs=yes
17056 version_type=linux # correct to gnu/linux during the next big refactor
17057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17058 soname_spec='${libname}${release}${shared_ext}$major'
17059 shlibpath_var=LD_LIBRARY_PATH
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17067 $as_echo "$dynamic_linker" >&6; }
17068 test "$dynamic_linker" = no && can_build_shared=no
17070 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17071 if test "$GCC" = yes; then
17072 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17075 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17076 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17078 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17079 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17121 hardcode_action_CXX=
17122 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17123 test -n "$runpath_var_CXX" ||
17124 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17126 # We can hardcode non-existent directories.
17127 if test "$hardcode_direct_CXX" != no &&
17128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17129 # have to relink, otherwise we might link with an installed library
17130 # when we should be linking with a yet-to-be-installed one
17131 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17132 test "$hardcode_minus_L_CXX" != no; then
17133 # Linking always hardcodes the temporary library directory.
17134 hardcode_action_CXX=relink
17136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17137 hardcode_action_CXX=immediate
17140 # We cannot hardcode anything, or else we can only hardcode existing
17142 hardcode_action_CXX=unsupported
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17145 $as_echo "$hardcode_action_CXX" >&6; }
17147 if test "$hardcode_action_CXX" = relink ||
17148 test "$inherit_rpath_CXX" = yes; then
17149 # Fast installation is not supported
17150 enable_fast_install=no
17151 elif test "$shlibpath_overrides_runpath" = yes ||
17152 test "$enable_shared" = no; then
17153 # Fast installation is not necessary
17154 enable_fast_install=needless
17163 fi # test -n "$compiler"
17166 CFLAGS=$lt_save_CFLAGS
17170 with_gnu_ld=$lt_save_with_gnu_ld
17171 lt_cv_path_LDCXX=$lt_cv_path_LD
17172 lt_cv_path_LD=$lt_save_path_LD
17173 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17174 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17175 fi # test "$_lt_caught_CXX_error" != yes
17178 ac_cpp='$CPP $CPPFLAGS'
17179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17197 ac_config_commands="$ac_config_commands libtool"
17202 # Only expand once:
17205 if test -n "$ac_tool_prefix"; then
17206 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
17207 set dummy ${ac_tool_prefix}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_RC+:} false; then :
17211 $as_echo_n "(cached) " >&6
17213 if test -n "$RC"; then
17214 ac_cv_prog_RC="$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_RC="${ac_tool_prefix}windres"
17224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17234 if test -n "$RC"; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
17236 $as_echo "$RC" >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17239 $as_echo "no" >&6; }
17244 if test -z "$ac_cv_prog_RC"; then
17246 # Extract the first word of "windres", so it can be a program name with args.
17247 set dummy windres; ac_word=$2
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17249 $as_echo_n "checking for $ac_word... " >&6; }
17250 if ${ac_cv_prog_ac_ct_RC+:} false; then :
17251 $as_echo_n "(cached) " >&6
17253 if test -n "$ac_ct_RC"; then
17254 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
17256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17257 for as_dir in $PATH
17260 test -z "$as_dir" && as_dir=.
17261 for ac_exec_ext in '' $ac_executable_extensions; do
17262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17263 ac_cv_prog_ac_ct_RC="windres"
17264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17273 ac_ct_RC=$ac_cv_prog_ac_ct_RC
17274 if test -n "$ac_ct_RC"; then
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
17276 $as_echo "$ac_ct_RC" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17279 $as_echo "no" >&6; }
17282 if test "x$ac_ct_RC" = x; then
17285 case $cross_compiling:$ac_tool_warned in
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17289 ac_tool_warned=yes ;;
17294 RC="$ac_cv_prog_RC"
17300 # Source file extension for RC test sources.
17303 # Object file extension for compiled RC test sources.
17307 # Code to be used in simple compile tests
17308 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
17310 # Code to be used in simple link tests
17311 lt_simple_link_test_code="$lt_simple_compile_test_code"
17313 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17320 # If no C compiler was specified, use CC.
17323 # If no C compiler flags were specified, use CFLAGS.
17324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17326 # Allow CC to be a program name with arguments.
17330 # save warnings/boilerplate of simple test code
17331 ac_outfile=conftest.$ac_objext
17332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17334 _lt_compiler_boilerplate=`cat conftest.err`
17337 ac_outfile=conftest.$ac_objext
17338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17340 _lt_linker_boilerplate=`cat conftest.err`
17344 # Allow CC to be a program name with arguments.
17346 lt_save_CFLAGS=$CFLAGS
17353 for cc_temp in $compiler""; do
17355 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17356 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17361 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17363 lt_cv_prog_compiler_c_o_RC=yes
17365 if test -n "$compiler"; then
17374 ac_cpp='$CPP $CPPFLAGS'
17375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17380 CFLAGS=$lt_save_CFLAGS
17383 # For now we hardcode the use of version scripts. It would be better
17384 # to write a test for this or even implement this within libtool.
17385 have_ld_version_script=no
17388 have_ld_version_script=yes
17391 have_ld_version_script=yes
17395 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
17398 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
17403 if test "$have_ld_version_script" = "yes"; then
17404 HAVE_LD_VERSION_SCRIPT_TRUE=
17405 HAVE_LD_VERSION_SCRIPT_FALSE='#'
17407 HAVE_LD_VERSION_SCRIPT_TRUE='#'
17408 HAVE_LD_VERSION_SCRIPT_FALSE=
17416 component_system=None
17417 have_dosish_system=no
17418 have_android_system=no
17421 have_macos_system=no
17424 available_languages="cl cpp python qt"
17425 default_languages="cl cpp python qt"
17428 have_w64_system=yes
17430 *-linux-androideabi)
17431 have_android_system=yes
17434 have_macos_system=yes
17439 have_dosish_system=yes
17440 have_w32_system=yes
17441 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
17442 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
17443 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
17444 G13_DEFAULT='c:\\gnupg\\g13.exe'
17445 #component_system='COM+'
17447 # Check whether --enable-glibtest was given.
17448 if test "${enable_glibtest+set}" = set; then :
17449 enableval=$enable_glibtest;
17451 enable_glibtest=yes
17455 pkg_config_args=glib-2.0
17460 pkg_config_args="$pkg_config_args gmodule-2.0"
17463 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
17466 pkg_config_args="$pkg_config_args gobject-2.0"
17469 pkg_config_args="$pkg_config_args gthread-2.0"
17474 # Extract the first word of "pkg-config", so it can be a program name with args.
17475 set dummy pkg-config; ac_word=$2
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17477 $as_echo_n "checking for $ac_word... " >&6; }
17478 if ${ac_cv_path_PKG_CONFIG+:} false; then :
17479 $as_echo_n "(cached) " >&6
17481 case $PKG_CONFIG in
17483 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17487 for as_dir in $PATH
17490 test -z "$as_dir" && as_dir=.
17491 for ac_exec_ext in '' $ac_executable_extensions; do
17492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17493 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17501 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17505 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17506 if test -n "$PKG_CONFIG"; then
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17508 $as_echo "$PKG_CONFIG" >&6; }
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17511 $as_echo "no" >&6; }
17518 if test x$PKG_CONFIG != xno ; then
17519 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
17522 echo *** pkg-config too old; version 0.7 or better required.
17530 min_glib_version=2.0.0
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
17532 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
17534 if test x$PKG_CONFIG != xno ; then
17535 ## don't try to run the test against uninstalled libtool libs
17536 if $PKG_CONFIG --uninstalled $pkg_config_args; then
17537 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
17541 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17548 if test x"$no_glib" = x ; then
17549 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17550 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17551 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17553 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17554 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17555 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17556 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17557 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17558 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17559 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17560 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17561 if test "x$enable_glibtest" = "xyes" ; then
17562 ac_save_CFLAGS="$CFLAGS"
17563 ac_save_LIBS="$LIBS"
17564 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17565 LIBS="$GLIB_LIBS $LIBS"
17566 rm -f conf.glibtest
17567 if test "$cross_compiling" = yes; then :
17568 echo $ac_n "cross compiling; assumed OK... $ac_c"
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17575 #include <stdlib.h>
17580 int major, minor, micro;
17583 system ("touch conf.glibtest");
17585 /* HP/UX 9 (%@#!) writes to sscanf strings */
17586 tmp_version = g_strdup("$min_glib_version");
17587 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17588 printf("%s, bad version string\n", "$min_glib_version");
17592 if ((glib_major_version != $glib_config_major_version) ||
17593 (glib_minor_version != $glib_config_minor_version) ||
17594 (glib_micro_version != $glib_config_micro_version))
17596 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17597 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17598 glib_major_version, glib_minor_version, glib_micro_version);
17599 printf ("*** was found! If pkg-config was correct, then it is best\n");
17600 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17601 printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n");
17602 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17603 printf("*** required on your system.\n");
17604 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17605 printf("*** to point to the correct configuration files\n");
17607 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17608 (glib_minor_version != GLIB_MINOR_VERSION) ||
17609 (glib_micro_version != GLIB_MICRO_VERSION))
17611 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17612 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17613 printf("*** library (version %d.%d.%d)\n",
17614 glib_major_version, glib_minor_version, glib_micro_version);
17618 if ((glib_major_version > major) ||
17619 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17620 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17626 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17627 glib_major_version, glib_minor_version, glib_micro_version);
17628 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17629 major, minor, micro);
17630 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17632 printf("*** If you have already installed a sufficiently new version, this error\n");
17633 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17634 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17635 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17636 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17637 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n");
17638 printf("*** so that the correct libraries are found at run-time))\n");
17645 if ac_fn_c_try_run "$LINENO"; then :
17650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17651 conftest.$ac_objext conftest.beam conftest.$ac_ext
17654 CFLAGS="$ac_save_CFLAGS"
17655 LIBS="$ac_save_LIBS"
17658 if test "x$no_glib" = x ; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17660 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664 $as_echo "no" >&6; }
17665 if test "$PKG_CONFIG" = "no" ; then
17666 echo "*** A new enough version of pkg-config was not found."
17667 echo "*** See https://www.freedesktop.org/software/pkgconfig/"
17669 if test -f conf.glibtest ; then
17672 echo "*** Could not run GLIB test program, checking why..."
17673 ac_save_CFLAGS="$CFLAGS"
17674 ac_save_LIBS="$LIBS"
17675 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17676 LIBS="$LIBS $GLIB_LIBS"
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17686 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17691 if ac_fn_c_try_link "$LINENO"; then :
17692 echo "*** The test program compiled, but did not run. This usually means"
17693 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17694 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17695 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17696 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17697 echo "*** is required on your system"
17699 echo "*** If you have an old version installed, it is best to remove it, although"
17700 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17702 echo "*** The test program failed to compile or link. See the file config.log for the"
17703 echo "*** exact error that occurred. This usually means GLIB is incorrectly installed."
17705 rm -f core conftest.err conftest.$ac_objext \
17706 conftest$ac_exeext conftest.$ac_ext
17707 CFLAGS="$ac_save_CFLAGS"
17708 LIBS="$ac_save_LIBS"
17723 rm -f conf.glibtest
17725 # Check whether --enable-w32-glib was given.
17726 if test "${enable_w32_glib+set}" = set; then :
17727 enableval=$enable_w32_glib; build_w32_glib=$enableval
17733 # XXX: Probably use exec-prefix here?
17734 # GPG_DEFAULT='/usr/bin/gpg'
17735 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17736 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17737 # G13_DEFAULT='/usr/bin/g13'
17741 if test "$have_dosish_system" = yes; then
17743 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17746 if test "$have_dosish_system" = yes; then
17747 HAVE_DOSISH_SYSTEM_TRUE=
17748 HAVE_DOSISH_SYSTEM_FALSE='#'
17750 HAVE_DOSISH_SYSTEM_TRUE='#'
17751 HAVE_DOSISH_SYSTEM_FALSE=
17755 if test "$have_w32_system" = yes; then
17757 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17760 if test "$have_w32_system" = yes; then
17761 HAVE_W32_SYSTEM_TRUE=
17762 HAVE_W32_SYSTEM_FALSE='#'
17764 HAVE_W32_SYSTEM_TRUE='#'
17765 HAVE_W32_SYSTEM_FALSE=
17769 if test "$have_w64_system" = yes; then
17771 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17774 if test "$have_w64_system" = yes; then
17775 HAVE_W64_SYSTEM_TRUE=
17776 HAVE_W64_SYSTEM_FALSE='#'
17778 HAVE_W64_SYSTEM_TRUE='#'
17779 HAVE_W64_SYSTEM_FALSE=
17783 if test "$have_android_system" = yes; then
17785 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17788 if test "$have_android_system" = yes; then
17789 HAVE_ANDROID_SYSTEM_TRUE=
17790 HAVE_ANDROID_SYSTEM_FALSE='#'
17792 HAVE_ANDROID_SYSTEM_TRUE='#'
17793 HAVE_ANDROID_SYSTEM_FALSE=
17797 if test "$have_macos_system" = yes; then
17799 $as_echo "#define HAVE_MACOS_SYSTEM 1" >>confdefs.h
17802 if test "$have_macos_system" = yes; then
17803 HAVE_MACOS_SYSTEM_TRUE=
17804 HAVE_MACOS_SYSTEM_FALSE='#'
17806 HAVE_MACOS_SYSTEM_TRUE='#'
17807 HAVE_MACOS_SYSTEM_FALSE=
17811 if test "$build_w32_glib" = yes; then
17812 BUILD_W32_GLIB_TRUE=
17813 BUILD_W32_GLIB_FALSE='#'
17815 BUILD_W32_GLIB_TRUE='#'
17816 BUILD_W32_GLIB_FALSE=
17821 # Check whether --enable-fixed-path was given.
17822 if test "${enable_fixed_path+set}" = set; then :
17823 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17825 fixed_search_path=""
17828 if test x$fixed_search_path != x ; then
17830 cat >>confdefs.h <<_ACEOF
17831 #define FIXED_SEARCH_PATH "$fixed_search_path"
17837 # Note: You need to declare all possible languages also in
17838 # lang/Makefile.am's DIST_SUBDIRS.
17839 # Check whether --enable-languages was given.
17840 if test "${enable_languages+set}" = set; then :
17841 enableval=$enable_languages; enabled_languages=`echo $enableval | \
17842 tr ',:' ' ' | tr 'A-Z' 'a-z' | \
17845 enabled_languages="maybe"
17848 if test "x$enabled_languages" = "x" \
17849 -o "$enabled_languages" = "no"; then
17853 # If languages are explicitly set missing requirements
17854 # for the languages are treated as errors otherwise
17855 # there will be a warning.
17856 explicit_languages=1
17857 if test "x$enabled_languages" = "xmaybe"; then
17858 explicit_languages=0
17859 enabled_languages="$default_languages"
17862 for language in $enabled_languages; do
17865 list=$available_languages
17869 if test "x$name" = "x$n"; then
17874 if test "$found" = "0"; then
17875 as_fn_error $? "unsupported language binding specified" "$LINENO" 5
17881 # Enable C++ 11 if cpp language is requested
17884 list=$enabled_languages
17888 if test "x$name" = "x$n"; then
17893 if test "$found" = "1"; then
17894 ax_cxx_compile_cxx11_required=false
17896 ac_cpp='$CXXCPP $CPPFLAGS'
17897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17902 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17903 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17904 $as_echo_n "(cached) " >&6
17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17907 /* end confdefs.h. */
17910 // If the compiler admits that it is not ready for C++11, why torture it?
17911 // Hopefully, this will speed up the test.
17913 #ifndef __cplusplus
17915 #error "This is not a C++ compiler"
17917 #elif __cplusplus < 201103L
17919 #error "This is not a C++11 compiler"
17926 namespace test_static_assert
17929 template <typename T>
17932 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17937 namespace test_final_override
17942 virtual void f() {}
17945 struct Derived : public Base
17947 virtual void f() override {}
17952 namespace test_double_right_angle_brackets
17955 template < typename T >
17958 typedef check<void> single_type;
17959 typedef check<check<void>> double_type;
17960 typedef check<check<check<void>>> triple_type;
17961 typedef check<check<check<check<void>>>> quadruple_type;
17965 namespace test_decltype
17978 namespace test_type_deduction
17981 template < typename T1, typename T2 >
17984 static const bool value = false;
17987 template < typename T >
17988 struct is_same<T, T>
17990 static const bool value = true;
17993 template < typename T1, typename T2 >
17995 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18001 test(const int c, volatile int v)
18003 static_assert(is_same<int, decltype(0)>::value == true, "");
18004 static_assert(is_same<int, decltype(c)>::value == false, "");
18005 static_assert(is_same<int, decltype(v)>::value == false, "");
18008 auto sumi = ac + av + 'x';
18009 auto sumf = ac + av + 1.0;
18010 static_assert(is_same<int, decltype(ac)>::value == true, "");
18011 static_assert(is_same<int, decltype(av)>::value == true, "");
18012 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18013 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18014 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18015 return (sumf > 0.0) ? sumi : add(c, v);
18020 namespace test_noexcept
18023 int f() { return 0; }
18024 int g() noexcept { return 0; }
18026 static_assert(noexcept(f()) == false, "");
18027 static_assert(noexcept(g()) == true, "");
18031 namespace test_constexpr
18034 template < typename CharT >
18035 unsigned long constexpr
18036 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18038 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18041 template < typename CharT >
18042 unsigned long constexpr
18043 strlen_c(const CharT *const s) noexcept
18045 return strlen_c_r(s, 0UL);
18048 static_assert(strlen_c("") == 0UL, "");
18049 static_assert(strlen_c("1") == 1UL, "");
18050 static_assert(strlen_c("example") == 7UL, "");
18051 static_assert(strlen_c("another\0example") == 7UL, "");
18055 namespace test_rvalue_references
18061 static constexpr int value = N;
18064 answer<1> f(int&) { return answer<1>(); }
18065 answer<2> f(const int&) { return answer<2>(); }
18066 answer<3> f(int&&) { return answer<3>(); }
18073 static_assert(decltype(f(i))::value == 1, "");
18074 static_assert(decltype(f(c))::value == 2, "");
18075 static_assert(decltype(f(0))::value == 3, "");
18080 namespace test_uniform_initialization
18085 static const int zero {};
18086 static const int one {1};
18089 static_assert(test::zero == 0, "");
18090 static_assert(test::one == 1, "");
18094 namespace test_lambdas
18100 auto lambda1 = [](){};
18101 auto lambda2 = lambda1;
18109 auto a = [](int i, int j){ return i + j; }(1, 2);
18110 auto b = []() -> int { return '0'; }();
18111 auto c = [=](){ return a + b; }();
18112 auto d = [&](){ return c; }();
18113 auto e = [a, &b](int x) mutable {
18114 const auto identity = [](int y){ return y; };
18115 for (auto i = 0; i < a; ++i)
18117 return x + identity(a + b);
18119 return a + b + c + d + e;
18125 const auto nullary = [](){ return 0; };
18126 const auto unary = [](int x){ return x; };
18127 using nullary_t = decltype(nullary);
18128 using unary_t = decltype(unary);
18129 const auto higher1st = [](nullary_t f){ return f(); };
18130 const auto higher2nd = [unary](nullary_t f1){
18131 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18133 return higher1st(nullary) + higher2nd(nullary)(unary);
18138 namespace test_variadic_templates
18144 template <int N0, int... N1toN>
18145 struct sum<N0, N1toN...>
18147 static constexpr auto value = N0 + sum<N1toN...>::value;
18153 static constexpr auto value = 0;
18156 static_assert(sum<>::value == 0, "");
18157 static_assert(sum<1>::value == 1, "");
18158 static_assert(sum<23>::value == 23, "");
18159 static_assert(sum<1, 2>::value == 3, "");
18160 static_assert(sum<5, 5, 11>::value == 21, "");
18161 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18165 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18166 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18167 // because of this.
18168 namespace test_template_alias_sfinae
18173 template<typename T>
18174 using member = typename T::member_type;
18176 template<typename T>
18179 template<typename T>
18180 void func(member<T>*) {}
18184 void test() { func<foo>(0); }
18188 } // namespace cxx11
18190 #endif // __cplusplus >= 201103L
18195 if ac_fn_cxx_try_compile "$LINENO"; then :
18196 ax_cv_cxx_compile_cxx11=yes
18198 ax_cv_cxx_compile_cxx11=no
18200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
18203 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
18204 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
18210 if test x$ac_success = xno; then
18211 for switch in -std=c++11 -std=c++0x +std=c++11 "-h std=c++11"; do
18212 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
18214 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
18215 if eval \${$cachevar+:} false; then :
18216 $as_echo_n "(cached) " >&6
18220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221 /* end confdefs.h. */
18224 // If the compiler admits that it is not ready for C++11, why torture it?
18225 // Hopefully, this will speed up the test.
18227 #ifndef __cplusplus
18229 #error "This is not a C++ compiler"
18231 #elif __cplusplus < 201103L
18233 #error "This is not a C++11 compiler"
18240 namespace test_static_assert
18243 template <typename T>
18246 static_assert(sizeof(int) <= sizeof(T), "not big enough");
18251 namespace test_final_override
18256 virtual void f() {}
18259 struct Derived : public Base
18261 virtual void f() override {}
18266 namespace test_double_right_angle_brackets
18269 template < typename T >
18272 typedef check<void> single_type;
18273 typedef check<check<void>> double_type;
18274 typedef check<check<check<void>>> triple_type;
18275 typedef check<check<check<check<void>>>> quadruple_type;
18279 namespace test_decltype
18292 namespace test_type_deduction
18295 template < typename T1, typename T2 >
18298 static const bool value = false;
18301 template < typename T >
18302 struct is_same<T, T>
18304 static const bool value = true;
18307 template < typename T1, typename T2 >
18309 add(T1 a1, T2 a2) -> decltype(a1 + a2)
18315 test(const int c, volatile int v)
18317 static_assert(is_same<int, decltype(0)>::value == true, "");
18318 static_assert(is_same<int, decltype(c)>::value == false, "");
18319 static_assert(is_same<int, decltype(v)>::value == false, "");
18322 auto sumi = ac + av + 'x';
18323 auto sumf = ac + av + 1.0;
18324 static_assert(is_same<int, decltype(ac)>::value == true, "");
18325 static_assert(is_same<int, decltype(av)>::value == true, "");
18326 static_assert(is_same<int, decltype(sumi)>::value == true, "");
18327 static_assert(is_same<int, decltype(sumf)>::value == false, "");
18328 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18329 return (sumf > 0.0) ? sumi : add(c, v);
18334 namespace test_noexcept
18337 int f() { return 0; }
18338 int g() noexcept { return 0; }
18340 static_assert(noexcept(f()) == false, "");
18341 static_assert(noexcept(g()) == true, "");
18345 namespace test_constexpr
18348 template < typename CharT >
18349 unsigned long constexpr
18350 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18352 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18355 template < typename CharT >
18356 unsigned long constexpr
18357 strlen_c(const CharT *const s) noexcept
18359 return strlen_c_r(s, 0UL);
18362 static_assert(strlen_c("") == 0UL, "");
18363 static_assert(strlen_c("1") == 1UL, "");
18364 static_assert(strlen_c("example") == 7UL, "");
18365 static_assert(strlen_c("another\0example") == 7UL, "");
18369 namespace test_rvalue_references
18375 static constexpr int value = N;
18378 answer<1> f(int&) { return answer<1>(); }
18379 answer<2> f(const int&) { return answer<2>(); }
18380 answer<3> f(int&&) { return answer<3>(); }
18387 static_assert(decltype(f(i))::value == 1, "");
18388 static_assert(decltype(f(c))::value == 2, "");
18389 static_assert(decltype(f(0))::value == 3, "");
18394 namespace test_uniform_initialization
18399 static const int zero {};
18400 static const int one {1};
18403 static_assert(test::zero == 0, "");
18404 static_assert(test::one == 1, "");
18408 namespace test_lambdas
18414 auto lambda1 = [](){};
18415 auto lambda2 = lambda1;
18423 auto a = [](int i, int j){ return i + j; }(1, 2);
18424 auto b = []() -> int { return '0'; }();
18425 auto c = [=](){ return a + b; }();
18426 auto d = [&](){ return c; }();
18427 auto e = [a, &b](int x) mutable {
18428 const auto identity = [](int y){ return y; };
18429 for (auto i = 0; i < a; ++i)
18431 return x + identity(a + b);
18433 return a + b + c + d + e;
18439 const auto nullary = [](){ return 0; };
18440 const auto unary = [](int x){ return x; };
18441 using nullary_t = decltype(nullary);
18442 using unary_t = decltype(unary);
18443 const auto higher1st = [](nullary_t f){ return f(); };
18444 const auto higher2nd = [unary](nullary_t f1){
18445 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18447 return higher1st(nullary) + higher2nd(nullary)(unary);
18452 namespace test_variadic_templates
18458 template <int N0, int... N1toN>
18459 struct sum<N0, N1toN...>
18461 static constexpr auto value = N0 + sum<N1toN...>::value;
18467 static constexpr auto value = 0;
18470 static_assert(sum<>::value == 0, "");
18471 static_assert(sum<1>::value == 1, "");
18472 static_assert(sum<23>::value == 23, "");
18473 static_assert(sum<1, 2>::value == 3, "");
18474 static_assert(sum<5, 5, 11>::value == 21, "");
18475 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18479 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18480 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18481 // because of this.
18482 namespace test_template_alias_sfinae
18487 template<typename T>
18488 using member = typename T::member_type;
18490 template<typename T>
18493 template<typename T>
18494 void func(member<T>*) {}
18498 void test() { func<foo>(0); }
18502 } // namespace cxx11
18504 #endif // __cplusplus >= 201103L
18509 if ac_fn_cxx_try_compile "$LINENO"; then :
18514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18517 eval ac_res=\$$cachevar
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18519 $as_echo "$ac_res" >&6; }
18520 if eval test x\$$cachevar = xyes; then
18522 CXXCPP="$CXXCPP $switch"
18529 ac_cpp='$CPP $CPPFLAGS'
18530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18534 if test x$ax_cxx_compile_cxx11_required = xtrue; then
18535 if test x$ac_success = xno; then
18536 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18539 if test x$ac_success = xno; then
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18542 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
18546 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
18551 if test "$HAVE_CXX11" != "1"; then
18552 if test "$explicit_languages" = "1"; then
18555 *** A compiler with c++11 support is required for the c++ binding.
18558 enabled_languages=$(echo $enabled_languages | sed 's/cpp//')
18559 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18562 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18564 $as_echo "$as_me: WARNING:
18566 *** No c++11 support detected. C++ and Qt bindings will be disabled.
18572 # Check that if qt is enabled cpp also is enabled
18575 list=$enabled_languages
18579 if test "x$name" = "x$n"; then
18584 if test "$found" = "1"; then
18585 # We need to ensure that in the language order qt comes after cpp
18586 # so we remove qt first and explicitly add it as last list member.
18587 enabled_languages=$(echo $enabled_languages | sed 's/qt//')
18590 list=$enabled_languages
18594 if test "x$name" = "x$n"; then
18599 if test "$found" = "0"; then
18602 *** Qt language binding depends on cpp binding.
18607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18608 if test -n "$ac_tool_prefix"; then
18609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18612 $as_echo_n "checking for $ac_word... " >&6; }
18613 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18614 $as_echo_n "(cached) " >&6
18616 case $PKG_CONFIG in
18618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18640 if test -n "$PKG_CONFIG"; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18642 $as_echo "$PKG_CONFIG" >&6; }
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18650 if test -z "$ac_cv_path_PKG_CONFIG"; then
18651 ac_pt_PKG_CONFIG=$PKG_CONFIG
18652 # Extract the first word of "pkg-config", so it can be a program name with args.
18653 set dummy pkg-config; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18657 $as_echo_n "(cached) " >&6
18659 case $ac_pt_PKG_CONFIG in
18661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18668 test -z "$as_dir" && as_dir=.
18669 for ac_exec_ext in '' $ac_executable_extensions; do
18670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18683 if test -n "$ac_pt_PKG_CONFIG"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18691 if test "x$ac_pt_PKG_CONFIG" = x; then
18694 case $cross_compiling:$ac_tool_warned in
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18698 ac_tool_warned=yes ;;
18700 PKG_CONFIG=$ac_pt_PKG_CONFIG
18703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18707 if test -n "$PKG_CONFIG"; then
18708 _pkg_min_version=0.9.0
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18722 have_qt5_libs="no";
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QT" >&5
18727 $as_echo_n "checking for GPGME_QT... " >&6; }
18729 if test -n "$PKG_CONFIG"; then
18730 if test -n "$GPGME_QT_CFLAGS"; then
18731 pkg_cv_GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS"
18733 if test -n "$PKG_CONFIG" && \
18734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18735 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18738 test $ac_status = 0; }; then
18739 pkg_cv_GPGME_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core >= 5.0.0" 2>/dev/null`
18747 if test -n "$PKG_CONFIG"; then
18748 if test -n "$GPGME_QT_LIBS"; then
18749 pkg_cv_GPGME_QT_LIBS="$GPGME_QT_LIBS"
18751 if test -n "$PKG_CONFIG" && \
18752 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core >= 5.0.0\""; } >&5
18753 ($PKG_CONFIG --exists --print-errors "Qt5Core >= 5.0.0") 2>&5
18755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18756 test $ac_status = 0; }; then
18757 pkg_cv_GPGME_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core >= 5.0.0" 2>/dev/null`
18768 if test $pkg_failed = yes; then
18770 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18771 _pkg_short_errors_supported=yes
18773 _pkg_short_errors_supported=no
18775 if test $_pkg_short_errors_supported = yes; then
18776 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18778 GPGME_QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Core >= 5.0.0"`
18780 # Put the nasty error message in config.log where it belongs
18781 echo "$GPGME_QT_PKG_ERRORS" >&5
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18784 $as_echo "no" >&6; }
18786 elif test $pkg_failed = untried; then
18789 GPGME_QT_CFLAGS=$pkg_cv_GPGME_QT_CFLAGS
18790 GPGME_QT_LIBS=$pkg_cv_GPGME_QT_LIBS
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18792 $as_echo "yes" >&6; }
18793 have_qt5_libs="yes"
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPGME_QTTEST" >&5
18799 $as_echo_n "checking for GPGME_QTTEST... " >&6; }
18801 if test -n "$PKG_CONFIG"; then
18802 if test -n "$GPGME_QTTEST_CFLAGS"; then
18803 pkg_cv_GPGME_QTTEST_CFLAGS="$GPGME_QTTEST_CFLAGS"
18805 if test -n "$PKG_CONFIG" && \
18806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18807 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18810 test $ac_status = 0; }; then
18811 pkg_cv_GPGME_QTTEST_CFLAGS=`$PKG_CONFIG --cflags "Qt5Test >= 5.0.0" 2>/dev/null`
18819 if test -n "$PKG_CONFIG"; then
18820 if test -n "$GPGME_QTTEST_LIBS"; then
18821 pkg_cv_GPGME_QTTEST_LIBS="$GPGME_QTTEST_LIBS"
18823 if test -n "$PKG_CONFIG" && \
18824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Test >= 5.0.0\""; } >&5
18825 ($PKG_CONFIG --exists --print-errors "Qt5Test >= 5.0.0") 2>&5
18827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18828 test $ac_status = 0; }; then
18829 pkg_cv_GPGME_QTTEST_LIBS=`$PKG_CONFIG --libs "Qt5Test >= 5.0.0" 2>/dev/null`
18840 if test $pkg_failed = yes; then
18842 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18843 _pkg_short_errors_supported=yes
18845 _pkg_short_errors_supported=no
18847 if test $_pkg_short_errors_supported = yes; then
18848 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18850 GPGME_QTTEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "Qt5Test >= 5.0.0"`
18852 # Put the nasty error message in config.log where it belongs
18853 echo "$GPGME_QTTEST_PKG_ERRORS" >&5
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18856 $as_echo "no" >&6; }
18857 have_qt5test_libs="no"
18858 elif test $pkg_failed = untried; then
18859 have_qt5test_libs="no"
18861 GPGME_QTTEST_CFLAGS=$pkg_cv_GPGME_QTTEST_CFLAGS
18862 GPGME_QTTEST_LIBS=$pkg_cv_GPGME_QTTEST_LIBS
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864 $as_echo "yes" >&6; }
18865 have_qt5test_libs="yes"
18868 if ! test "$have_w32_system" = yes; then
18869 if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
18870 GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
18873 if test "$have_qt5_libs" = "yes"; then
18874 if test -n "$ac_tool_prefix"; then
18875 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
18876 set dummy ${ac_tool_prefix}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_MOC+:} false; then :
18880 $as_echo_n "(cached) " >&6
18882 if test -n "$MOC"; then
18883 ac_cv_prog_MOC="$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_MOC="${ac_tool_prefix}moc"
18893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18902 MOC=$ac_cv_prog_MOC
18903 if test -n "$MOC"; then
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
18905 $as_echo "$MOC" >&6; }
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18908 $as_echo "no" >&6; }
18913 if test -z "$ac_cv_prog_MOC"; then
18915 # Extract the first word of "moc", so it can be a program name with args.
18916 set dummy moc; ac_word=$2
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18918 $as_echo_n "checking for $ac_word... " >&6; }
18919 if ${ac_cv_prog_ac_ct_MOC+:} false; then :
18920 $as_echo_n "(cached) " >&6
18922 if test -n "$ac_ct_MOC"; then
18923 ac_cv_prog_ac_ct_MOC="$ac_ct_MOC" # Let the user override the test.
18925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18926 for as_dir in $PATH
18929 test -z "$as_dir" && as_dir=.
18930 for ac_exec_ext in '' $ac_executable_extensions; do
18931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18932 ac_cv_prog_ac_ct_MOC="moc"
18933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18942 ac_ct_MOC=$ac_cv_prog_ac_ct_MOC
18943 if test -n "$ac_ct_MOC"; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC" >&5
18945 $as_echo "$ac_ct_MOC" >&6; }
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18948 $as_echo "no" >&6; }
18951 if test "x$ac_ct_MOC" = x; then
18954 case $cross_compiling:$ac_tool_warned in
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18958 ac_tool_warned=yes ;;
18963 MOC="$ac_cv_prog_MOC"
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking moc version" >&5
18967 $as_echo_n "checking moc version... " >&6; }
18968 mocversion=`$MOC -v 2>&1`
18969 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
18970 if test x"$mocversiongrep" != x"$mocversion"; then
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972 $as_echo "no" >&6; }
18973 # moc was not the qt5 one, try with moc-qt5
18974 if test -n "$ac_tool_prefix"; then
18975 # Extract the first word of "${ac_tool_prefix}moc-qt5", so it can be a program name with args.
18976 set dummy ${ac_tool_prefix}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_MOC2+:} false; then :
18980 $as_echo_n "(cached) " >&6
18982 if test -n "$MOC2"; then
18983 ac_cv_prog_MOC2="$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_MOC2="${ac_tool_prefix}moc-qt5"
18993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19002 MOC2=$ac_cv_prog_MOC2
19003 if test -n "$MOC2"; then
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC2" >&5
19005 $as_echo "$MOC2" >&6; }
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19008 $as_echo "no" >&6; }
19013 if test -z "$ac_cv_prog_MOC2"; then
19015 # Extract the first word of "moc-qt5", so it can be a program name with args.
19016 set dummy moc-qt5; ac_word=$2
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19018 $as_echo_n "checking for $ac_word... " >&6; }
19019 if ${ac_cv_prog_ac_ct_MOC2+:} false; then :
19020 $as_echo_n "(cached) " >&6
19022 if test -n "$ac_ct_MOC2"; then
19023 ac_cv_prog_ac_ct_MOC2="$ac_ct_MOC2" # Let the user override the test.
19025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19026 for as_dir in $PATH
19029 test -z "$as_dir" && as_dir=.
19030 for ac_exec_ext in '' $ac_executable_extensions; do
19031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19032 ac_cv_prog_ac_ct_MOC2="moc-qt5"
19033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19042 ac_ct_MOC2=$ac_cv_prog_ac_ct_MOC2
19043 if test -n "$ac_ct_MOC2"; then
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MOC2" >&5
19045 $as_echo "$ac_ct_MOC2" >&6; }
19047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19048 $as_echo "no" >&6; }
19051 if test "x$ac_ct_MOC2" = x; then
19054 case $cross_compiling:$ac_tool_warned in
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19058 ac_tool_warned=yes ;;
19063 MOC2="$ac_cv_prog_MOC2"
19066 mocversion=`$MOC2 -v 2>&1`
19067 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc-qt5 5|moc 5"`
19068 if test x"$mocversiongrep" != x"$mocversion"; then
19069 if test -n "$ac_tool_prefix"; then
19070 # Extract the first word of "${ac_tool_prefix}qtchooser", so it can be a program name with args.
19071 set dummy ${ac_tool_prefix}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_QTCHOOSER+:} false; then :
19075 $as_echo_n "(cached) " >&6
19077 if test -n "$QTCHOOSER"; then
19078 ac_cv_prog_QTCHOOSER="$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_QTCHOOSER="${ac_tool_prefix}qtchooser"
19088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19097 QTCHOOSER=$ac_cv_prog_QTCHOOSER
19098 if test -n "$QTCHOOSER"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19100 $as_echo "$QTCHOOSER" >&6; }
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19103 $as_echo "no" >&6; }
19108 if test -z "$ac_cv_prog_QTCHOOSER"; then
19109 ac_ct_QTCHOOSER=$QTCHOOSER
19110 # Extract the first word of "qtchooser", so it can be a program name with args.
19111 set dummy qtchooser; ac_word=$2
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19113 $as_echo_n "checking for $ac_word... " >&6; }
19114 if ${ac_cv_prog_ac_ct_QTCHOOSER+:} false; then :
19115 $as_echo_n "(cached) " >&6
19117 if test -n "$ac_ct_QTCHOOSER"; then
19118 ac_cv_prog_ac_ct_QTCHOOSER="$ac_ct_QTCHOOSER" # Let the user override the test.
19120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19121 for as_dir in $PATH
19124 test -z "$as_dir" && as_dir=.
19125 for ac_exec_ext in '' $ac_executable_extensions; do
19126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19127 ac_cv_prog_ac_ct_QTCHOOSER="qtchooser"
19128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19137 ac_ct_QTCHOOSER=$ac_cv_prog_ac_ct_QTCHOOSER
19138 if test -n "$ac_ct_QTCHOOSER"; then
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QTCHOOSER" >&5
19140 $as_echo "$ac_ct_QTCHOOSER" >&6; }
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143 $as_echo "no" >&6; }
19146 if test "x$ac_ct_QTCHOOSER" = x; then
19149 case $cross_compiling:$ac_tool_warned in
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19153 ac_tool_warned=yes ;;
19155 QTCHOOSER=$ac_ct_QTCHOOSER
19158 QTCHOOSER="$ac_cv_prog_QTCHOOSER"
19161 qt5tooldir=`QT_SELECT=qt5 qtchooser -print-env | grep QTTOOLDIR | cut -d '=' -f 2 | cut -d \" -f 2`
19162 mocversion=`$qt5tooldir/moc -v 2>&1`
19163 mocversiongrep=`echo $mocversion | grep -E "Qt 5|moc 5"`
19164 if test x"$mocversiongrep" != x"$mocversion"; then
19165 # no valid moc found
19166 have_qt5_libs="no";
19168 MOC=$qt5tooldir/moc
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mocversion" >&5
19175 $as_echo "$mocversion" >&6; }
19176 OLDCPPFLAGS=$CPPFLAGS
19177 CPPFLAGS=$GPGME_QT_CFLAGS
19179 LIBS=$GPGME_QT_LIBS
19181 ac_cpp='$CXXCPP $CPPFLAGS'
19182 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19183 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19184 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a simple qt program can be built" >&5
19187 $as_echo_n "checking whether a simple qt program can be built... " >&6; }
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19191 #include <QCoreApplication>
19192 int main (int argc, char **argv) {
19193 QCoreApplication app(argc, argv);
19197 if ac_fn_cxx_try_link "$LINENO"; then :
19198 have_qt5_libs='yes'
19202 rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_qt5_libs" >&5
19205 $as_echo "$have_qt5_libs" >&6; }
19207 ac_cpp='$CPP $CPPFLAGS'
19208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19212 CPPFLAGS=$OLDCPPFLAGS
19216 if test "$have_qt5_libs" != "yes"; then
19217 if test "$explicit_languages" = "1"; then
19220 *** Qt5 (Qt5Core) is required for Qt binding.
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19225 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19227 $as_echo "$as_me: WARNING:
19229 *** Qt5 (Qt5Core) not found Qt Binding will be disabled.
19233 enabled_languages=`echo $enabled_languages qt`
19235 for ac_prog in doxygen
19237 # Extract the first word of "$ac_prog", so it can be a program name with args.
19238 set dummy $ac_prog; ac_word=$2
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19240 $as_echo_n "checking for $ac_word... " >&6; }
19241 if ${ac_cv_prog_DOXYGEN+:} false; then :
19242 $as_echo_n "(cached) " >&6
19244 if test -n "$DOXYGEN"; then
19245 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
19247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19248 for as_dir in $PATH
19251 test -z "$as_dir" && as_dir=.
19252 for ac_exec_ext in '' $ac_executable_extensions; do
19253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19254 ac_cv_prog_DOXYGEN="$ac_prog"
19255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19264 DOXYGEN=$ac_cv_prog_DOXYGEN
19265 if test -n "$DOXYGEN"; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19267 $as_echo "$DOXYGEN" >&6; }
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19274 test -n "$DOXYGEN" && break
19277 if test -z "$DOXYGEN";
19278 # This is not highlighted because it's not really important.
19279 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - Qt binding doc will not be built." >&5
19280 $as_echo "$as_me: WARNING: Doxygen not found - Qt binding doc will not be built." >&2;}
19284 # Extract the first word of "$ac_prog", so it can be a program name with args.
19285 set dummy $ac_prog; ac_word=$2
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19287 $as_echo_n "checking for $ac_word... " >&6; }
19288 if ${ac_cv_prog_GRAPHVIZ+:} false; then :
19289 $as_echo_n "(cached) " >&6
19291 if test -n "$GRAPHVIZ"; then
19292 ac_cv_prog_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test.
19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295 for as_dir in $PATH
19298 test -z "$as_dir" && as_dir=.
19299 for ac_exec_ext in '' $ac_executable_extensions; do
19300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19301 ac_cv_prog_GRAPHVIZ="$ac_prog"
19302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19311 GRAPHVIZ=$ac_cv_prog_GRAPHVIZ
19312 if test -n "$GRAPHVIZ"; then
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
19314 $as_echo "$GRAPHVIZ" >&6; }
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19317 $as_echo "no" >&6; }
19321 test -n "$GRAPHVIZ" && break
19324 if test -z "$GRAPHVIZ";
19325 then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&5
19326 $as_echo "$as_me: WARNING: Graphviz not found - Qt binding doc will not have diagrams." >&2;}
19330 if test -n "$DOXYGEN"; then
19332 HAVE_DOXYGEN_FALSE='#'
19334 HAVE_DOXYGEN_TRUE='#'
19335 HAVE_DOXYGEN_FALSE=
19338 if test -n "$GRAPHVIZ"; then
19348 list=$enabled_languages
19352 if test "x$name" = "x$n"; then
19358 if test "$found_py" = "1"; then
19360 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
19361 for ac_prog in swig swig2.0
19363 # Extract the first word of "$ac_prog", so it can be a program name with args.
19364 set dummy $ac_prog; ac_word=$2
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19366 $as_echo_n "checking for $ac_word... " >&6; }
19367 if ${ac_cv_path_SWIG+:} false; then :
19368 $as_echo_n "(cached) " >&6
19372 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
19375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in $PATH
19379 test -z "$as_dir" && as_dir=.
19380 for ac_exec_ext in '' $ac_executable_extensions; do
19381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19382 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
19383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19393 SWIG=$ac_cv_path_SWIG
19394 if test -n "$SWIG"; then
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
19396 $as_echo "$SWIG" >&6; }
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 $as_echo "no" >&6; }
19403 test -n "$SWIG" && break
19406 if test -z "$SWIG" ; then
19408 elif test -n "" ; then
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
19410 $as_echo_n "checking SWIG version... " >&6; }
19411 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'`
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
19413 $as_echo "$swig_version" >&6; }
19414 if test -n "$swig_version" ; then
19415 # Calculate the required version number components
19417 required_major=`echo $required | sed 's/[^0-9].*//'`
19418 if test -z "$required_major" ; then
19421 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19422 required_minor=`echo $required | sed 's/[^0-9].*//'`
19423 if test -z "$required_minor" ; then
19426 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
19427 required_patch=`echo $required | sed 's/[^0-9].*//'`
19428 if test -z "$required_patch" ; then
19431 # Calculate the available version number components
19432 available=$swig_version
19433 available_major=`echo $available | sed 's/[^0-9].*//'`
19434 if test -z "$available_major" ; then
19437 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19438 available_minor=`echo $available | sed 's/[^0-9].*//'`
19439 if test -z "$available_minor" ; then
19442 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
19443 available_patch=`echo $available | sed 's/[^0-9].*//'`
19444 if test -z "$available_patch" ; then
19447 # Convert the version tuple into a single number for easier comparison.
19448 # Using base 100 should be safe since SWIG internally uses BCD values
19449 # to encode its version number.
19450 required_swig_vernum=`expr $required_major \* 10000 \
19451 \+ $required_minor \* 100 \+ $required_patch`
19452 available_swig_vernum=`expr $available_major \* 10000 \
19453 \+ $available_minor \* 100 \+ $available_patch`
19455 if test $available_swig_vernum -lt $required_swig_vernum; then
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= is required. You have $swig_version." >&5
19457 $as_echo "$as_me: WARNING: SWIG version >= is required. You have $swig_version." >&2;}
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
19462 $as_echo_n "checking for SWIG library... " >&6; }
19463 SWIG_LIB=`$SWIG -swiglib`
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
19465 $as_echo "$SWIG_LIB" >&6; }
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
19470 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
19477 if test -z "$SWIG"; then
19478 if test "$explicit_languages" = "1"; then
19481 *** You need SWIG to build the Python bindings.
19484 enabled_languages=$(echo $enabled_languages | sed 's/python//')
19487 # Reset the version collecting vars.
19491 if test "$found_py" = "1" -o "$found_py3" = "1"; then
19492 # Reset everything, so that we can look for another Python.
19494 unset PYTHON_VERSION
19495 unset PYTHON_CPPFLAGS
19496 unset PYTHON_LDFLAGS
19497 unset PYTHON_SITE_PKG
19498 unset PYTHON_EXTRA_LIBS
19499 unset PYTHON_EXTRA_LDFLAGS
19500 unset ac_cv_path_PYTHON
19501 unset am_cv_pathless_PYTHON
19502 unset am_cv_python_version
19503 unset am_cv_python_platform
19504 unset am_cv_python_pythondir
19505 unset am_cv_python_pyexecdir
19512 if test -n "$PYTHON"; then
19513 # If the user set $PYTHON, use it and don't search something else.
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19515 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
19517 # split strings by '.' and convert to numeric. Append some zeros
19518 # because we need at least 4 digits for the hex conversion.
19519 # map returns an iterator in Python 3.0 and a list in 2.x
19520 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19522 # xrange is not present in Python 3.0 and range returns an iterator
19523 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19524 sys.exit(sys.hexversion < minverhex)"
19525 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19526 ($PYTHON -c "$prog") >&5 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; then :
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19531 $as_echo "yes" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534 $as_echo "no" >&6; }
19535 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19537 am_display_PYTHON=$PYTHON
19539 # Otherwise, try each interpreter until we find one that satisfies
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19542 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
19543 if ${am_cv_pathless_PYTHON+:} false; then :
19544 $as_echo_n "(cached) " >&6
19547 for am_cv_pathless_PYTHON in python2.7 none; do
19548 test "$am_cv_pathless_PYTHON" = none && break
19550 # split strings by '.' and convert to numeric. Append some zeros
19551 # because we need at least 4 digits for the hex conversion.
19552 # map returns an iterator in Python 3.0 and a list in 2.x
19553 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19555 # xrange is not present in Python 3.0 and range returns an iterator
19556 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19557 sys.exit(sys.hexversion < minverhex)"
19558 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19559 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; then :
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19568 $as_echo "$am_cv_pathless_PYTHON" >&6; }
19569 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19570 if test "$am_cv_pathless_PYTHON" = none; then
19573 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19574 set dummy $am_cv_pathless_PYTHON; ac_word=$2
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19576 $as_echo_n "checking for $ac_word... " >&6; }
19577 if ${ac_cv_path_PYTHON+:} false; then :
19578 $as_echo_n "(cached) " >&6
19582 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19586 for as_dir in $PATH
19589 test -z "$as_dir" && as_dir=.
19590 for ac_exec_ext in '' $ac_executable_extensions; do
19591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19592 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19603 PYTHON=$ac_cv_path_PYTHON
19604 if test -n "$PYTHON"; then
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19606 $as_echo "$PYTHON" >&6; }
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19609 $as_echo "no" >&6; }
19614 am_display_PYTHON=$am_cv_pathless_PYTHON
19618 if test "$PYTHON" = :; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19624 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
19625 if ${am_cv_python_version+:} false; then :
19626 $as_echo_n "(cached) " >&6
19628 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
19630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19631 $as_echo "$am_cv_python_version" >&6; }
19632 PYTHON_VERSION=$am_cv_python_version
19636 PYTHON_PREFIX='${prefix}'
19638 PYTHON_EXEC_PREFIX='${exec_prefix}'
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19643 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
19644 if ${am_cv_python_platform+:} false; then :
19645 $as_echo_n "(cached) " >&6
19647 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19650 $as_echo "$am_cv_python_platform" >&6; }
19651 PYTHON_PLATFORM=$am_cv_python_platform
19654 # Just factor out some code duplication.
19655 am_python_setup_sysconfig="\
19657 # Prefer sysconfig over distutils.sysconfig, for better compatibility
19658 # with python 3.x. See automake bug#10227.
19661 except ImportError:
19662 can_use_sysconfig = 0
19664 can_use_sysconfig = 1
19665 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19666 # <https://github.com/pypa/virtualenv/issues/118>
19668 from platform import python_implementation
19669 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19670 can_use_sysconfig = 0
19671 except ImportError:
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
19676 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
19677 if ${am_cv_python_pythondir+:} false; then :
19678 $as_echo_n "(cached) " >&6
19680 if test "x$prefix" = xNONE
19682 am_py_prefix=$ac_default_prefix
19684 am_py_prefix=$prefix
19686 am_cv_python_pythondir=`$PYTHON -c "
19687 $am_python_setup_sysconfig
19688 if can_use_sysconfig:
19689 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19691 from distutils import sysconfig
19692 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19693 sys.stdout.write(sitedir)"`
19694 case $am_cv_python_pythondir in
19696 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19697 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
19700 case $am_py_prefix in
19703 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19711 $as_echo "$am_cv_python_pythondir" >&6; }
19712 pythondir=$am_cv_python_pythondir
19716 pkgpythondir=\${pythondir}/$PACKAGE
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
19720 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
19721 if ${am_cv_python_pyexecdir+:} false; then :
19722 $as_echo_n "(cached) " >&6
19724 if test "x$exec_prefix" = xNONE
19726 am_py_exec_prefix=$am_py_prefix
19728 am_py_exec_prefix=$exec_prefix
19730 am_cv_python_pyexecdir=`$PYTHON -c "
19731 $am_python_setup_sysconfig
19732 if can_use_sysconfig:
19733 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
19735 from distutils import sysconfig
19736 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
19737 sys.stdout.write(sitedir)"`
19738 case $am_cv_python_pyexecdir in
19739 $am_py_exec_prefix*)
19740 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19741 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
19744 case $am_py_exec_prefix in
19747 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19755 $as_echo "$am_cv_python_pyexecdir" >&6; }
19756 pyexecdir=$am_cv_python_pyexecdir
19760 pkgpyexecdir=\${pyexecdir}/$PACKAGE
19766 # Allow the use of a (user set) custom python version
19770 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
19771 set dummy python$PYTHON_VERSION; ac_word=$2
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19773 $as_echo_n "checking for $ac_word... " >&6; }
19774 if ${ac_cv_path_PYTHON+:} false; then :
19775 $as_echo_n "(cached) " >&6
19779 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19783 for as_dir in $PATH
19786 test -z "$as_dir" && as_dir=.
19787 for ac_exec_ext in '' $ac_executable_extensions; do
19788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19789 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19800 PYTHON=$ac_cv_path_PYTHON
19801 if test -n "$PYTHON"; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19803 $as_echo "$PYTHON" >&6; }
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806 $as_echo "no" >&6; }
19810 if test -z "$PYTHON"; then
19811 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
19816 # Check for a version of Python >= 2.1.0
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
19819 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
19820 ac_supports_python_ver=`$PYTHON -c "import sys; \
19821 ver = sys.version.split ()[0]; \
19822 print (ver >= '2.1.0')"`
19823 if test "$ac_supports_python_ver" != "True"; then
19824 if test -z "$PYTHON_NOVERSIONCHECK"; then
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19826 $as_echo "no" >&6; }
19827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19830 This version of the AC_PYTHON_DEVEL macro
19831 doesn't work properly with versions of Python before
19832 2.1.0. You may need to re-run configure, setting the
19833 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
19834 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
19835 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
19836 to something else than an empty string.
19838 See \`config.log' for more details" "$LINENO" 5; }
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
19841 $as_echo "skip at user request" >&6; }
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19845 $as_echo "yes" >&6; }
19849 # if the macro parameter ``version'' is set, honour it
19851 if test -n ""; then
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
19853 $as_echo_n "checking for a version of Python ... " >&6; }
19854 ac_supports_python_ver=`$PYTHON -c "import sys; \
19855 ver = sys.version.split ()[0]; \
19857 if test "$ac_supports_python_ver" = "True"; then
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19859 $as_echo "yes" >&6; }
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19862 $as_echo "no" >&6; }
19863 as_fn_error $? "this package requires Python .
19864 If you have it installed, but it isn't the default Python
19865 interpreter in your system path, please pass the PYTHON_VERSION
19866 variable to configure. See \`\`configure --help'' for reference.
19873 # Check if you have distutils, else fail
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
19876 $as_echo_n "checking for the distutils Python package... " >&6; }
19877 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
19878 if test -z "$ac_distutils_result"; then
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19880 $as_echo "yes" >&6; }
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19883 $as_echo "no" >&6; }
19884 as_fn_error $? "cannot import Python module \"distutils\".
19885 Please check your Python installation. The error was:
19886 $ac_distutils_result" "$LINENO" 5
19891 # Check for Python include path
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
19894 $as_echo_n "checking for Python include path... " >&6; }
19895 if test -z "$PYTHON_CPPFLAGS"; then
19896 python_path=`$PYTHON -c "import distutils.sysconfig; \
19897 print (distutils.sysconfig.get_python_inc ());"`
19898 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
19899 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
19900 if test -n "${python_path}"; then
19901 if test "${plat_python_path}" != "${python_path}"; then
19902 python_path="-I$python_path -I$plat_python_path"
19904 python_path="-I$python_path"
19907 PYTHON_CPPFLAGS=$python_path
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
19910 $as_echo "$PYTHON_CPPFLAGS" >&6; }
19914 # Check for Python library path
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
19917 $as_echo_n "checking for Python library path... " >&6; }
19918 if test -z "$PYTHON_LDFLAGS"; then
19919 # (makes two attempts to ensure we've got a version number
19920 # from the interpreter)
19921 ac_python_version=`cat<<EOD | $PYTHON -
19923 # join all versioning strings, on some systems
19924 # major/minor numbers could be in different list elements
19925 from distutils.sysconfig import *
19926 e = get_config_var('VERSION')
19931 if test -z "$ac_python_version"; then
19932 if test -n "$PYTHON_VERSION"; then
19933 ac_python_version=$PYTHON_VERSION
19935 ac_python_version=`$PYTHON -c "import sys; \
19936 print (sys.version[:3])"`
19940 # Make the versioning information available to the compiler
19942 # JW: We don't need it and it interferes with the hack
19943 # to detect multiple Pyhton versions
19944 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
19945 # [If available, contains the Python version number currently in use.])
19947 # First, the library directory:
19948 ac_python_libdir=`cat<<EOD | $PYTHON -
19950 # There should be only one
19951 import distutils.sysconfig
19952 e = distutils.sysconfig.get_config_var('LIBDIR')
19957 # Now, for the library:
19958 ac_python_library=`cat<<EOD | $PYTHON -
19960 import distutils.sysconfig
19961 c = distutils.sysconfig.get_config_vars()
19962 if 'LDVERSION' in c:
19963 print ('python'+c['LDVERSION'])
19965 print ('python'+c['VERSION'])
19968 # This small piece shamelessly adapted from PostgreSQL python macro;
19969 # credits goes to momjian, I think. I'd like to put the right name
19970 # in the credits, if someone can point me in the right direction... ?
19972 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
19974 # use the official shared library
19975 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
19976 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
19978 # old way: use libpython from python_configdir
19979 ac_python_libdir=`$PYTHON -c \
19980 "from distutils.sysconfig import get_python_lib as f; \
19982 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
19983 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
19986 if test -z "PYTHON_LDFLAGS"; then
19988 Cannot determine location of your Python DSO. Please check it was installed with
19989 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
19994 $as_echo "$PYTHON_LDFLAGS" >&6; }
19998 # Check for site packages
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20001 $as_echo_n "checking for Python site-packages path... " >&6; }
20002 if test -z "$PYTHON_SITE_PKG"; then
20003 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20004 print (distutils.sysconfig.get_python_lib(0,0));"`
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20007 $as_echo "$PYTHON_SITE_PKG" >&6; }
20011 # libraries which must be linked in when embedding
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20014 $as_echo_n "checking python extra libraries... " >&6; }
20015 if test -z "$PYTHON_EXTRA_LIBS"; then
20016 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20017 conf = distutils.sysconfig.get_config_var; \
20018 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20021 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20025 # linking flags needed when embedding
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20028 $as_echo_n "checking python extra linking flags... " >&6; }
20029 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20030 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20031 conf = distutils.sysconfig.get_config_var; \
20032 print (conf('LINKFORSHARED'))"`
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20035 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20039 # final check to see if everything compiles alright
20041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20042 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20043 # save current global flags
20044 ac_save_LIBS="$LIBS"
20045 ac_save_CPPFLAGS="$CPPFLAGS"
20046 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20047 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20049 ac_cpp='$CPP $CPPFLAGS'
20050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20055 /* end confdefs.h. */
20057 #include <Python.h>
20067 if ac_fn_c_try_link "$LINENO"; then :
20072 rm -f core conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
20075 ac_cpp='$CPP $CPPFLAGS'
20076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20080 # turn back to default flags
20081 CPPFLAGS="$ac_save_CPPFLAGS"
20082 LIBS="$ac_save_LIBS"
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20085 $as_echo "$pythonexists" >&6; }
20087 if test ! "x$pythonexists" = "xyes"; then
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20089 Could not link test program to Python. Maybe the main Python library has been
20090 installed in some non-standard library path. If so, pass it to configure,
20091 via the LDFLAGS environment variable.
20092 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20093 ============================================================================
20094 You probably have to install the development version of the Python package
20095 for your distribution. The exact name of this package varies among them.
20096 ============================================================================
20098 $as_echo "$as_me: WARNING:
20099 Could not link test program to Python. Maybe the main Python library has been
20100 installed in some non-standard library path. If so, pass it to configure,
20101 via the LDFLAGS environment variable.
20102 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20103 ============================================================================
20104 You probably have to install the development version of the Python package
20105 for your distribution. The exact name of this package varies among them.
20106 ============================================================================
20115 if test "$PYTHON_VERSION"; then
20116 PYTHONS="$(echo $PYTHONS $PYTHON)"
20117 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20124 unset PYTHON_VERSION
20125 unset PYTHON_CPPFLAGS
20126 unset PYTHON_LDFLAGS
20127 unset PYTHON_SITE_PKG
20128 unset PYTHON_EXTRA_LIBS
20129 unset PYTHON_EXTRA_LDFLAGS
20130 unset ac_cv_path_PYTHON
20131 unset am_cv_pathless_PYTHON
20132 unset am_cv_python_version
20133 unset am_cv_python_platform
20134 unset am_cv_python_pythondir
20135 unset am_cv_python_pyexecdir
20142 if test -n "$PYTHON"; then
20143 # If the user set $PYTHON, use it and don't search something else.
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.4" >&5
20145 $as_echo_n "checking whether $PYTHON version is >= 3.4... " >&6; }
20147 # split strings by '.' and convert to numeric. Append some zeros
20148 # because we need at least 4 digits for the hex conversion.
20149 # map returns an iterator in Python 3.0 and a list in 2.x
20150 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20152 # xrange is not present in Python 3.0 and range returns an iterator
20153 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20154 sys.exit(sys.hexversion < minverhex)"
20155 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20156 ($PYTHON -c "$prog") >&5 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; then :
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20161 $as_echo "yes" >&6; }
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20164 $as_echo "no" >&6; }
20165 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20167 am_display_PYTHON=$PYTHON
20169 # Otherwise, try each interpreter until we find one that satisfies
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.4" >&5
20172 $as_echo_n "checking for a Python interpreter with version >= 3.4... " >&6; }
20173 if ${am_cv_pathless_PYTHON+:} false; then :
20174 $as_echo_n "(cached) " >&6
20177 for am_cv_pathless_PYTHON in python3.4 none; do
20178 test "$am_cv_pathless_PYTHON" = none && break
20180 # split strings by '.' and convert to numeric. Append some zeros
20181 # because we need at least 4 digits for the hex conversion.
20182 # map returns an iterator in Python 3.0 and a list in 2.x
20183 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
20185 # xrange is not present in Python 3.0 and range returns an iterator
20186 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20187 sys.exit(sys.hexversion < minverhex)"
20188 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20189 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; then :
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20198 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20199 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20200 if test "$am_cv_pathless_PYTHON" = none; then
20203 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20204 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20206 $as_echo_n "checking for $ac_word... " >&6; }
20207 if ${ac_cv_path_PYTHON+:} false; then :
20208 $as_echo_n "(cached) " >&6
20212 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20216 for as_dir in $PATH
20219 test -z "$as_dir" && as_dir=.
20220 for ac_exec_ext in '' $ac_executable_extensions; do
20221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20222 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20233 PYTHON=$ac_cv_path_PYTHON
20234 if test -n "$PYTHON"; then
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20236 $as_echo "$PYTHON" >&6; }
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20244 am_display_PYTHON=$am_cv_pathless_PYTHON
20248 if test "$PYTHON" = :; then
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20254 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20255 if ${am_cv_python_version+:} false; then :
20256 $as_echo_n "(cached) " >&6
20258 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20261 $as_echo "$am_cv_python_version" >&6; }
20262 PYTHON_VERSION=$am_cv_python_version
20266 PYTHON_PREFIX='${prefix}'
20268 PYTHON_EXEC_PREFIX='${exec_prefix}'
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20273 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20274 if ${am_cv_python_platform+:} false; then :
20275 $as_echo_n "(cached) " >&6
20277 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20280 $as_echo "$am_cv_python_platform" >&6; }
20281 PYTHON_PLATFORM=$am_cv_python_platform
20284 # Just factor out some code duplication.
20285 am_python_setup_sysconfig="\
20287 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20288 # with python 3.x. See automake bug#10227.
20291 except ImportError:
20292 can_use_sysconfig = 0
20294 can_use_sysconfig = 1
20295 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20296 # <https://github.com/pypa/virtualenv/issues/118>
20298 from platform import python_implementation
20299 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20300 can_use_sysconfig = 0
20301 except ImportError:
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20306 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20307 if ${am_cv_python_pythondir+:} false; then :
20308 $as_echo_n "(cached) " >&6
20310 if test "x$prefix" = xNONE
20312 am_py_prefix=$ac_default_prefix
20314 am_py_prefix=$prefix
20316 am_cv_python_pythondir=`$PYTHON -c "
20317 $am_python_setup_sysconfig
20318 if can_use_sysconfig:
20319 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20321 from distutils import sysconfig
20322 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20323 sys.stdout.write(sitedir)"`
20324 case $am_cv_python_pythondir in
20326 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20327 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20330 case $am_py_prefix in
20333 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20341 $as_echo "$am_cv_python_pythondir" >&6; }
20342 pythondir=$am_cv_python_pythondir
20346 pkgpythondir=\${pythondir}/$PACKAGE
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20350 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20351 if ${am_cv_python_pyexecdir+:} false; then :
20352 $as_echo_n "(cached) " >&6
20354 if test "x$exec_prefix" = xNONE
20356 am_py_exec_prefix=$am_py_prefix
20358 am_py_exec_prefix=$exec_prefix
20360 am_cv_python_pyexecdir=`$PYTHON -c "
20361 $am_python_setup_sysconfig
20362 if can_use_sysconfig:
20363 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20365 from distutils import sysconfig
20366 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20367 sys.stdout.write(sitedir)"`
20368 case $am_cv_python_pyexecdir in
20369 $am_py_exec_prefix*)
20370 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20371 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20374 case $am_py_exec_prefix in
20377 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20385 $as_echo "$am_cv_python_pyexecdir" >&6; }
20386 pyexecdir=$am_cv_python_pyexecdir
20390 pkgpyexecdir=\${pyexecdir}/$PACKAGE
20396 # Allow the use of a (user set) custom python version
20400 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
20401 set dummy python$PYTHON_VERSION; ac_word=$2
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20403 $as_echo_n "checking for $ac_word... " >&6; }
20404 if ${ac_cv_path_PYTHON+:} false; then :
20405 $as_echo_n "(cached) " >&6
20409 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20413 for as_dir in $PATH
20416 test -z "$as_dir" && as_dir=.
20417 for ac_exec_ext in '' $ac_executable_extensions; do
20418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20419 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20430 PYTHON=$ac_cv_path_PYTHON
20431 if test -n "$PYTHON"; then
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20433 $as_echo "$PYTHON" >&6; }
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20436 $as_echo "no" >&6; }
20440 if test -z "$PYTHON"; then
20441 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
20446 # Check for a version of Python >= 2.1.0
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
20449 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
20450 ac_supports_python_ver=`$PYTHON -c "import sys; \
20451 ver = sys.version.split ()[0]; \
20452 print (ver >= '2.1.0')"`
20453 if test "$ac_supports_python_ver" != "True"; then
20454 if test -z "$PYTHON_NOVERSIONCHECK"; then
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20456 $as_echo "no" >&6; }
20457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20460 This version of the AC_PYTHON_DEVEL macro
20461 doesn't work properly with versions of Python before
20462 2.1.0. You may need to re-run configure, setting the
20463 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
20464 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
20465 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
20466 to something else than an empty string.
20468 See \`config.log' for more details" "$LINENO" 5; }
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
20471 $as_echo "skip at user request" >&6; }
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475 $as_echo "yes" >&6; }
20479 # if the macro parameter ``version'' is set, honour it
20481 if test -n ""; then
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
20483 $as_echo_n "checking for a version of Python ... " >&6; }
20484 ac_supports_python_ver=`$PYTHON -c "import sys; \
20485 ver = sys.version.split ()[0]; \
20487 if test "$ac_supports_python_ver" = "True"; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20489 $as_echo "yes" >&6; }
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 $as_echo "no" >&6; }
20493 as_fn_error $? "this package requires Python .
20494 If you have it installed, but it isn't the default Python
20495 interpreter in your system path, please pass the PYTHON_VERSION
20496 variable to configure. See \`\`configure --help'' for reference.
20503 # Check if you have distutils, else fail
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
20506 $as_echo_n "checking for the distutils Python package... " >&6; }
20507 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
20508 if test -z "$ac_distutils_result"; then
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20510 $as_echo "yes" >&6; }
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513 $as_echo "no" >&6; }
20514 as_fn_error $? "cannot import Python module \"distutils\".
20515 Please check your Python installation. The error was:
20516 $ac_distutils_result" "$LINENO" 5
20521 # Check for Python include path
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
20524 $as_echo_n "checking for Python include path... " >&6; }
20525 if test -z "$PYTHON_CPPFLAGS"; then
20526 python_path=`$PYTHON -c "import distutils.sysconfig; \
20527 print (distutils.sysconfig.get_python_inc ());"`
20528 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
20529 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
20530 if test -n "${python_path}"; then
20531 if test "${plat_python_path}" != "${python_path}"; then
20532 python_path="-I$python_path -I$plat_python_path"
20534 python_path="-I$python_path"
20537 PYTHON_CPPFLAGS=$python_path
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
20540 $as_echo "$PYTHON_CPPFLAGS" >&6; }
20544 # Check for Python library path
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
20547 $as_echo_n "checking for Python library path... " >&6; }
20548 if test -z "$PYTHON_LDFLAGS"; then
20549 # (makes two attempts to ensure we've got a version number
20550 # from the interpreter)
20551 ac_python_version=`cat<<EOD | $PYTHON -
20553 # join all versioning strings, on some systems
20554 # major/minor numbers could be in different list elements
20555 from distutils.sysconfig import *
20556 e = get_config_var('VERSION')
20561 if test -z "$ac_python_version"; then
20562 if test -n "$PYTHON_VERSION"; then
20563 ac_python_version=$PYTHON_VERSION
20565 ac_python_version=`$PYTHON -c "import sys; \
20566 print (sys.version[:3])"`
20570 # Make the versioning information available to the compiler
20572 # JW: We don't need it and it interferes with the hack
20573 # to detect multiple Pyhton versions
20574 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
20575 # [If available, contains the Python version number currently in use.])
20577 # First, the library directory:
20578 ac_python_libdir=`cat<<EOD | $PYTHON -
20580 # There should be only one
20581 import distutils.sysconfig
20582 e = distutils.sysconfig.get_config_var('LIBDIR')
20587 # Now, for the library:
20588 ac_python_library=`cat<<EOD | $PYTHON -
20590 import distutils.sysconfig
20591 c = distutils.sysconfig.get_config_vars()
20592 if 'LDVERSION' in c:
20593 print ('python'+c['LDVERSION'])
20595 print ('python'+c['VERSION'])
20598 # This small piece shamelessly adapted from PostgreSQL python macro;
20599 # credits goes to momjian, I think. I'd like to put the right name
20600 # in the credits, if someone can point me in the right direction... ?
20602 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
20604 # use the official shared library
20605 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
20606 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
20608 # old way: use libpython from python_configdir
20609 ac_python_libdir=`$PYTHON -c \
20610 "from distutils.sysconfig import get_python_lib as f; \
20612 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
20613 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
20616 if test -z "PYTHON_LDFLAGS"; then
20618 Cannot determine location of your Python DSO. Please check it was installed with
20619 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20624 $as_echo "$PYTHON_LDFLAGS" >&6; }
20628 # Check for site packages
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
20631 $as_echo_n "checking for Python site-packages path... " >&6; }
20632 if test -z "$PYTHON_SITE_PKG"; then
20633 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
20634 print (distutils.sysconfig.get_python_lib(0,0));"`
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
20637 $as_echo "$PYTHON_SITE_PKG" >&6; }
20641 # libraries which must be linked in when embedding
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
20644 $as_echo_n "checking python extra libraries... " >&6; }
20645 if test -z "$PYTHON_EXTRA_LIBS"; then
20646 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
20647 conf = distutils.sysconfig.get_config_var; \
20648 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
20651 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
20655 # linking flags needed when embedding
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
20658 $as_echo_n "checking python extra linking flags... " >&6; }
20659 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
20660 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
20661 conf = distutils.sysconfig.get_config_var; \
20662 print (conf('LINKFORSHARED'))"`
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
20665 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
20669 # final check to see if everything compiles alright
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
20672 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
20673 # save current global flags
20674 ac_save_LIBS="$LIBS"
20675 ac_save_CPPFLAGS="$CPPFLAGS"
20676 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
20677 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
20679 ac_cpp='$CPP $CPPFLAGS'
20680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20687 #include <Python.h>
20697 if ac_fn_c_try_link "$LINENO"; then :
20702 rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20705 ac_cpp='$CPP $CPPFLAGS'
20706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20710 # turn back to default flags
20711 CPPFLAGS="$ac_save_CPPFLAGS"
20712 LIBS="$ac_save_LIBS"
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
20715 $as_echo "$pythonexists" >&6; }
20717 if test ! "x$pythonexists" = "xyes"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
20719 Could not link test program to Python. Maybe the main Python library has been
20720 installed in some non-standard library path. If so, pass it to configure,
20721 via the LDFLAGS environment variable.
20722 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20723 ============================================================================
20724 You probably have to install the development version of the Python package
20725 for your distribution. The exact name of this package varies among them.
20726 ============================================================================
20728 $as_echo "$as_me: WARNING:
20729 Could not link test program to Python. Maybe the main Python library has been
20730 installed in some non-standard library path. If so, pass it to configure,
20731 via the LDFLAGS environment variable.
20732 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
20733 ============================================================================
20734 You probably have to install the development version of the Python package
20735 for your distribution. The exact name of this package varies among them.
20736 ============================================================================
20745 if test "$PYTHON_VERSION"; then
20746 PYTHONS="$(echo $PYTHONS $PYTHON)"
20747 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
20754 unset PYTHON_VERSION
20755 unset PYTHON_CPPFLAGS
20756 unset PYTHON_LDFLAGS
20757 unset PYTHON_SITE_PKG
20758 unset PYTHON_EXTRA_LIBS
20759 unset PYTHON_EXTRA_LDFLAGS
20760 unset ac_cv_path_PYTHON
20761 unset am_cv_pathless_PYTHON
20762 unset am_cv_python_version
20763 unset am_cv_python_platform
20764 unset am_cv_python_pythondir
20765 unset am_cv_python_pyexecdir
20772 if test -n "$PYTHON"; then
20773 # If the user set $PYTHON, use it and don't search something else.
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.5" >&5
20775 $as_echo_n "checking whether $PYTHON version is >= 3.5... " >&6; }
20777 # split strings by '.' and convert to numeric. Append some zeros
20778 # because we need at least 4 digits for the hex conversion.
20779 # map returns an iterator in Python 3.0 and a list in 2.x
20780 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20782 # xrange is not present in Python 3.0 and range returns an iterator
20783 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20784 sys.exit(sys.hexversion < minverhex)"
20785 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20786 ($PYTHON -c "$prog") >&5 2>&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); }; then :
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20791 $as_echo "yes" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20794 $as_echo "no" >&6; }
20795 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20797 am_display_PYTHON=$PYTHON
20799 # Otherwise, try each interpreter until we find one that satisfies
20801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.5" >&5
20802 $as_echo_n "checking for a Python interpreter with version >= 3.5... " >&6; }
20803 if ${am_cv_pathless_PYTHON+:} false; then :
20804 $as_echo_n "(cached) " >&6
20807 for am_cv_pathless_PYTHON in python3.5 none; do
20808 test "$am_cv_pathless_PYTHON" = none && break
20810 # split strings by '.' and convert to numeric. Append some zeros
20811 # because we need at least 4 digits for the hex conversion.
20812 # map returns an iterator in Python 3.0 and a list in 2.x
20813 minver = list(map(int, '3.5'.split('.'))) + [0, 0, 0]
20815 # xrange is not present in Python 3.0 and range returns an iterator
20816 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20817 sys.exit(sys.hexversion < minverhex)"
20818 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20819 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; then :
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20828 $as_echo "$am_cv_pathless_PYTHON" >&6; }
20829 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20830 if test "$am_cv_pathless_PYTHON" = none; then
20833 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20834 set dummy $am_cv_pathless_PYTHON; ac_word=$2
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20836 $as_echo_n "checking for $ac_word... " >&6; }
20837 if ${ac_cv_path_PYTHON+:} false; then :
20838 $as_echo_n "(cached) " >&6
20842 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20846 for as_dir in $PATH
20849 test -z "$as_dir" && as_dir=.
20850 for ac_exec_ext in '' $ac_executable_extensions; do
20851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20852 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20863 PYTHON=$ac_cv_path_PYTHON
20864 if test -n "$PYTHON"; then
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20866 $as_echo "$PYTHON" >&6; }
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20869 $as_echo "no" >&6; }
20874 am_display_PYTHON=$am_cv_pathless_PYTHON
20878 if test "$PYTHON" = :; then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20884 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20885 if ${am_cv_python_version+:} false; then :
20886 $as_echo_n "(cached) " >&6
20888 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20891 $as_echo "$am_cv_python_version" >&6; }
20892 PYTHON_VERSION=$am_cv_python_version
20896 PYTHON_PREFIX='${prefix}'
20898 PYTHON_EXEC_PREFIX='${exec_prefix}'
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20903 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20904 if ${am_cv_python_platform+:} false; then :
20905 $as_echo_n "(cached) " >&6
20907 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20910 $as_echo "$am_cv_python_platform" >&6; }
20911 PYTHON_PLATFORM=$am_cv_python_platform
20914 # Just factor out some code duplication.
20915 am_python_setup_sysconfig="\
20917 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20918 # with python 3.x. See automake bug#10227.
20921 except ImportError:
20922 can_use_sysconfig = 0
20924 can_use_sysconfig = 1
20925 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20926 # <https://github.com/pypa/virtualenv/issues/118>
20928 from platform import python_implementation
20929 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20930 can_use_sysconfig = 0
20931 except ImportError:
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20936 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20937 if ${am_cv_python_pythondir+:} false; then :
20938 $as_echo_n "(cached) " >&6
20940 if test "x$prefix" = xNONE
20942 am_py_prefix=$ac_default_prefix
20944 am_py_prefix=$prefix
20946 am_cv_python_pythondir=`$PYTHON -c "
20947 $am_python_setup_sysconfig
20948 if can_use_sysconfig:
20949 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20951 from distutils import sysconfig
20952 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20953 sys.stdout.write(sitedir)"`
20954 case $am_cv_python_pythondir in
20956 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20957 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20960 case $am_py_prefix in
20963 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20971 $as_echo "$am_cv_python_pythondir" >&6; }
20972 pythondir=$am_cv_python_pythondir
20976 pkgpythondir=\${pythondir}/$PACKAGE
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20980 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20981 if ${am_cv_python_pyexecdir+:} false; then :
20982 $as_echo_n "(cached) " >&6
20984 if test "x$exec_prefix" = xNONE
20986 am_py_exec_prefix=$am_py_prefix
20988 am_py_exec_prefix=$exec_prefix
20990 am_cv_python_pyexecdir=`$PYTHON -c "
20991 $am_python_setup_sysconfig
20992 if can_use_sysconfig:
20993 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20995 from distutils import sysconfig
20996 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20997 sys.stdout.write(sitedir)"`
20998 case $am_cv_python_pyexecdir in
20999 $am_py_exec_prefix*)
21000 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21001 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21004 case $am_py_exec_prefix in
21007 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21015 $as_echo "$am_cv_python_pyexecdir" >&6; }
21016 pyexecdir=$am_cv_python_pyexecdir
21020 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21026 # Allow the use of a (user set) custom python version
21030 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21031 set dummy python$PYTHON_VERSION; ac_word=$2
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21033 $as_echo_n "checking for $ac_word... " >&6; }
21034 if ${ac_cv_path_PYTHON+:} false; then :
21035 $as_echo_n "(cached) " >&6
21039 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21043 for as_dir in $PATH
21046 test -z "$as_dir" && as_dir=.
21047 for ac_exec_ext in '' $ac_executable_extensions; do
21048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21049 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21060 PYTHON=$ac_cv_path_PYTHON
21061 if test -n "$PYTHON"; then
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21063 $as_echo "$PYTHON" >&6; }
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066 $as_echo "no" >&6; }
21070 if test -z "$PYTHON"; then
21071 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21076 # Check for a version of Python >= 2.1.0
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21079 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21080 ac_supports_python_ver=`$PYTHON -c "import sys; \
21081 ver = sys.version.split ()[0]; \
21082 print (ver >= '2.1.0')"`
21083 if test "$ac_supports_python_ver" != "True"; then
21084 if test -z "$PYTHON_NOVERSIONCHECK"; then
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21086 $as_echo "no" >&6; }
21087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21090 This version of the AC_PYTHON_DEVEL macro
21091 doesn't work properly with versions of Python before
21092 2.1.0. You may need to re-run configure, setting the
21093 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21094 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21095 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21096 to something else than an empty string.
21098 See \`config.log' for more details" "$LINENO" 5; }
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21101 $as_echo "skip at user request" >&6; }
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21105 $as_echo "yes" >&6; }
21109 # if the macro parameter ``version'' is set, honour it
21111 if test -n ""; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21113 $as_echo_n "checking for a version of Python ... " >&6; }
21114 ac_supports_python_ver=`$PYTHON -c "import sys; \
21115 ver = sys.version.split ()[0]; \
21117 if test "$ac_supports_python_ver" = "True"; then
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21119 $as_echo "yes" >&6; }
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21122 $as_echo "no" >&6; }
21123 as_fn_error $? "this package requires Python .
21124 If you have it installed, but it isn't the default Python
21125 interpreter in your system path, please pass the PYTHON_VERSION
21126 variable to configure. See \`\`configure --help'' for reference.
21133 # Check if you have distutils, else fail
21135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21136 $as_echo_n "checking for the distutils Python package... " >&6; }
21137 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21138 if test -z "$ac_distutils_result"; then
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21140 $as_echo "yes" >&6; }
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143 $as_echo "no" >&6; }
21144 as_fn_error $? "cannot import Python module \"distutils\".
21145 Please check your Python installation. The error was:
21146 $ac_distutils_result" "$LINENO" 5
21151 # Check for Python include path
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21154 $as_echo_n "checking for Python include path... " >&6; }
21155 if test -z "$PYTHON_CPPFLAGS"; then
21156 python_path=`$PYTHON -c "import distutils.sysconfig; \
21157 print (distutils.sysconfig.get_python_inc ());"`
21158 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21159 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21160 if test -n "${python_path}"; then
21161 if test "${plat_python_path}" != "${python_path}"; then
21162 python_path="-I$python_path -I$plat_python_path"
21164 python_path="-I$python_path"
21167 PYTHON_CPPFLAGS=$python_path
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21170 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21174 # Check for Python library path
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21177 $as_echo_n "checking for Python library path... " >&6; }
21178 if test -z "$PYTHON_LDFLAGS"; then
21179 # (makes two attempts to ensure we've got a version number
21180 # from the interpreter)
21181 ac_python_version=`cat<<EOD | $PYTHON -
21183 # join all versioning strings, on some systems
21184 # major/minor numbers could be in different list elements
21185 from distutils.sysconfig import *
21186 e = get_config_var('VERSION')
21191 if test -z "$ac_python_version"; then
21192 if test -n "$PYTHON_VERSION"; then
21193 ac_python_version=$PYTHON_VERSION
21195 ac_python_version=`$PYTHON -c "import sys; \
21196 print (sys.version[:3])"`
21200 # Make the versioning information available to the compiler
21202 # JW: We don't need it and it interferes with the hack
21203 # to detect multiple Pyhton versions
21204 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21205 # [If available, contains the Python version number currently in use.])
21207 # First, the library directory:
21208 ac_python_libdir=`cat<<EOD | $PYTHON -
21210 # There should be only one
21211 import distutils.sysconfig
21212 e = distutils.sysconfig.get_config_var('LIBDIR')
21217 # Now, for the library:
21218 ac_python_library=`cat<<EOD | $PYTHON -
21220 import distutils.sysconfig
21221 c = distutils.sysconfig.get_config_vars()
21222 if 'LDVERSION' in c:
21223 print ('python'+c['LDVERSION'])
21225 print ('python'+c['VERSION'])
21228 # This small piece shamelessly adapted from PostgreSQL python macro;
21229 # credits goes to momjian, I think. I'd like to put the right name
21230 # in the credits, if someone can point me in the right direction... ?
21232 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21234 # use the official shared library
21235 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21236 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21238 # old way: use libpython from python_configdir
21239 ac_python_libdir=`$PYTHON -c \
21240 "from distutils.sysconfig import get_python_lib as f; \
21242 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21243 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21246 if test -z "PYTHON_LDFLAGS"; then
21248 Cannot determine location of your Python DSO. Please check it was installed with
21249 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21254 $as_echo "$PYTHON_LDFLAGS" >&6; }
21258 # Check for site packages
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21261 $as_echo_n "checking for Python site-packages path... " >&6; }
21262 if test -z "$PYTHON_SITE_PKG"; then
21263 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21264 print (distutils.sysconfig.get_python_lib(0,0));"`
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21267 $as_echo "$PYTHON_SITE_PKG" >&6; }
21271 # libraries which must be linked in when embedding
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21274 $as_echo_n "checking python extra libraries... " >&6; }
21275 if test -z "$PYTHON_EXTRA_LIBS"; then
21276 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21277 conf = distutils.sysconfig.get_config_var; \
21278 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21281 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21285 # linking flags needed when embedding
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21288 $as_echo_n "checking python extra linking flags... " >&6; }
21289 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21290 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21291 conf = distutils.sysconfig.get_config_var; \
21292 print (conf('LINKFORSHARED'))"`
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21295 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21299 # final check to see if everything compiles alright
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21302 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21303 # save current global flags
21304 ac_save_LIBS="$LIBS"
21305 ac_save_CPPFLAGS="$CPPFLAGS"
21306 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21307 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21309 ac_cpp='$CPP $CPPFLAGS'
21310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21315 /* end confdefs.h. */
21317 #include <Python.h>
21327 if ac_fn_c_try_link "$LINENO"; then :
21332 rm -f core conftest.err conftest.$ac_objext \
21333 conftest$ac_exeext conftest.$ac_ext
21335 ac_cpp='$CPP $CPPFLAGS'
21336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21340 # turn back to default flags
21341 CPPFLAGS="$ac_save_CPPFLAGS"
21342 LIBS="$ac_save_LIBS"
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21345 $as_echo "$pythonexists" >&6; }
21347 if test ! "x$pythonexists" = "xyes"; then
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21349 Could not link test program to Python. Maybe the main Python library has been
21350 installed in some non-standard library path. If so, pass it to configure,
21351 via the LDFLAGS environment variable.
21352 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21353 ============================================================================
21354 You probably have to install the development version of the Python package
21355 for your distribution. The exact name of this package varies among them.
21356 ============================================================================
21358 $as_echo "$as_me: WARNING:
21359 Could not link test program to Python. Maybe the main Python library has been
21360 installed in some non-standard library path. If so, pass it to configure,
21361 via the LDFLAGS environment variable.
21362 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21363 ============================================================================
21364 You probably have to install the development version of the Python package
21365 for your distribution. The exact name of this package varies among them.
21366 ============================================================================
21375 if test "$PYTHON_VERSION"; then
21376 PYTHONS="$(echo $PYTHONS $PYTHON)"
21377 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
21384 unset PYTHON_VERSION
21385 unset PYTHON_CPPFLAGS
21386 unset PYTHON_LDFLAGS
21387 unset PYTHON_SITE_PKG
21388 unset PYTHON_EXTRA_LIBS
21389 unset PYTHON_EXTRA_LDFLAGS
21390 unset ac_cv_path_PYTHON
21391 unset am_cv_pathless_PYTHON
21392 unset am_cv_python_version
21393 unset am_cv_python_platform
21394 unset am_cv_python_pythondir
21395 unset am_cv_python_pyexecdir
21402 if test -n "$PYTHON"; then
21403 # If the user set $PYTHON, use it and don't search something else.
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.6" >&5
21405 $as_echo_n "checking whether $PYTHON version is >= 3.6... " >&6; }
21407 # split strings by '.' and convert to numeric. Append some zeros
21408 # because we need at least 4 digits for the hex conversion.
21409 # map returns an iterator in Python 3.0 and a list in 2.x
21410 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21412 # xrange is not present in Python 3.0 and range returns an iterator
21413 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21414 sys.exit(sys.hexversion < minverhex)"
21415 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21416 ($PYTHON -c "$prog") >&5 2>&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; then :
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21421 $as_echo "yes" >&6; }
21423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424 $as_echo "no" >&6; }
21425 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
21427 am_display_PYTHON=$PYTHON
21429 # Otherwise, try each interpreter until we find one that satisfies
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.6" >&5
21432 $as_echo_n "checking for a Python interpreter with version >= 3.6... " >&6; }
21433 if ${am_cv_pathless_PYTHON+:} false; then :
21434 $as_echo_n "(cached) " >&6
21437 for am_cv_pathless_PYTHON in python3.6 none; do
21438 test "$am_cv_pathless_PYTHON" = none && break
21440 # split strings by '.' and convert to numeric. Append some zeros
21441 # because we need at least 4 digits for the hex conversion.
21442 # map returns an iterator in Python 3.0 and a list in 2.x
21443 minver = list(map(int, '3.6'.split('.'))) + [0, 0, 0]
21445 # xrange is not present in Python 3.0 and range returns an iterator
21446 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
21447 sys.exit(sys.hexversion < minverhex)"
21448 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21449 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; then :
21457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
21458 $as_echo "$am_cv_pathless_PYTHON" >&6; }
21459 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21460 if test "$am_cv_pathless_PYTHON" = none; then
21463 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21464 set dummy $am_cv_pathless_PYTHON; ac_word=$2
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21466 $as_echo_n "checking for $ac_word... " >&6; }
21467 if ${ac_cv_path_PYTHON+:} false; then :
21468 $as_echo_n "(cached) " >&6
21472 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21476 for as_dir in $PATH
21479 test -z "$as_dir" && as_dir=.
21480 for ac_exec_ext in '' $ac_executable_extensions; do
21481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21482 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21493 PYTHON=$ac_cv_path_PYTHON
21494 if test -n "$PYTHON"; then
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21496 $as_echo "$PYTHON" >&6; }
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21499 $as_echo "no" >&6; }
21504 am_display_PYTHON=$am_cv_pathless_PYTHON
21508 if test "$PYTHON" = :; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
21514 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
21515 if ${am_cv_python_version+:} false; then :
21516 $as_echo_n "(cached) " >&6
21518 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
21521 $as_echo "$am_cv_python_version" >&6; }
21522 PYTHON_VERSION=$am_cv_python_version
21526 PYTHON_PREFIX='${prefix}'
21528 PYTHON_EXEC_PREFIX='${exec_prefix}'
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
21533 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
21534 if ${am_cv_python_platform+:} false; then :
21535 $as_echo_n "(cached) " >&6
21537 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
21540 $as_echo "$am_cv_python_platform" >&6; }
21541 PYTHON_PLATFORM=$am_cv_python_platform
21544 # Just factor out some code duplication.
21545 am_python_setup_sysconfig="\
21547 # Prefer sysconfig over distutils.sysconfig, for better compatibility
21548 # with python 3.x. See automake bug#10227.
21551 except ImportError:
21552 can_use_sysconfig = 0
21554 can_use_sysconfig = 1
21555 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
21556 # <https://github.com/pypa/virtualenv/issues/118>
21558 from platform import python_implementation
21559 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
21560 can_use_sysconfig = 0
21561 except ImportError:
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
21566 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
21567 if ${am_cv_python_pythondir+:} false; then :
21568 $as_echo_n "(cached) " >&6
21570 if test "x$prefix" = xNONE
21572 am_py_prefix=$ac_default_prefix
21574 am_py_prefix=$prefix
21576 am_cv_python_pythondir=`$PYTHON -c "
21577 $am_python_setup_sysconfig
21578 if can_use_sysconfig:
21579 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
21581 from distutils import sysconfig
21582 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
21583 sys.stdout.write(sitedir)"`
21584 case $am_cv_python_pythondir in
21586 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
21587 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
21590 case $am_py_prefix in
21593 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21601 $as_echo "$am_cv_python_pythondir" >&6; }
21602 pythondir=$am_cv_python_pythondir
21606 pkgpythondir=\${pythondir}/$PACKAGE
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
21610 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
21611 if ${am_cv_python_pyexecdir+:} false; then :
21612 $as_echo_n "(cached) " >&6
21614 if test "x$exec_prefix" = xNONE
21616 am_py_exec_prefix=$am_py_prefix
21618 am_py_exec_prefix=$exec_prefix
21620 am_cv_python_pyexecdir=`$PYTHON -c "
21621 $am_python_setup_sysconfig
21622 if can_use_sysconfig:
21623 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
21625 from distutils import sysconfig
21626 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
21627 sys.stdout.write(sitedir)"`
21628 case $am_cv_python_pyexecdir in
21629 $am_py_exec_prefix*)
21630 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21631 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
21634 case $am_py_exec_prefix in
21637 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21645 $as_echo "$am_cv_python_pyexecdir" >&6; }
21646 pyexecdir=$am_cv_python_pyexecdir
21650 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21656 # Allow the use of a (user set) custom python version
21660 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
21661 set dummy python$PYTHON_VERSION; ac_word=$2
21662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21663 $as_echo_n "checking for $ac_word... " >&6; }
21664 if ${ac_cv_path_PYTHON+:} false; then :
21665 $as_echo_n "(cached) " >&6
21669 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21673 for as_dir in $PATH
21676 test -z "$as_dir" && as_dir=.
21677 for ac_exec_ext in '' $ac_executable_extensions; do
21678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21679 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21690 PYTHON=$ac_cv_path_PYTHON
21691 if test -n "$PYTHON"; then
21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
21693 $as_echo "$PYTHON" >&6; }
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21696 $as_echo "no" >&6; }
21700 if test -z "$PYTHON"; then
21701 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
21706 # Check for a version of Python >= 2.1.0
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
21709 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
21710 ac_supports_python_ver=`$PYTHON -c "import sys; \
21711 ver = sys.version.split ()[0]; \
21712 print (ver >= '2.1.0')"`
21713 if test "$ac_supports_python_ver" != "True"; then
21714 if test -z "$PYTHON_NOVERSIONCHECK"; then
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21716 $as_echo "no" >&6; }
21717 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21720 This version of the AC_PYTHON_DEVEL macro
21721 doesn't work properly with versions of Python before
21722 2.1.0. You may need to re-run configure, setting the
21723 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
21724 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
21725 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
21726 to something else than an empty string.
21728 See \`config.log' for more details" "$LINENO" 5; }
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
21731 $as_echo "skip at user request" >&6; }
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21735 $as_echo "yes" >&6; }
21739 # if the macro parameter ``version'' is set, honour it
21741 if test -n ""; then
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
21743 $as_echo_n "checking for a version of Python ... " >&6; }
21744 ac_supports_python_ver=`$PYTHON -c "import sys; \
21745 ver = sys.version.split ()[0]; \
21747 if test "$ac_supports_python_ver" = "True"; then
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21749 $as_echo "yes" >&6; }
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752 $as_echo "no" >&6; }
21753 as_fn_error $? "this package requires Python .
21754 If you have it installed, but it isn't the default Python
21755 interpreter in your system path, please pass the PYTHON_VERSION
21756 variable to configure. See \`\`configure --help'' for reference.
21763 # Check if you have distutils, else fail
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
21766 $as_echo_n "checking for the distutils Python package... " >&6; }
21767 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
21768 if test -z "$ac_distutils_result"; then
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21770 $as_echo "yes" >&6; }
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21773 $as_echo "no" >&6; }
21774 as_fn_error $? "cannot import Python module \"distutils\".
21775 Please check your Python installation. The error was:
21776 $ac_distutils_result" "$LINENO" 5
21781 # Check for Python include path
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
21784 $as_echo_n "checking for Python include path... " >&6; }
21785 if test -z "$PYTHON_CPPFLAGS"; then
21786 python_path=`$PYTHON -c "import distutils.sysconfig; \
21787 print (distutils.sysconfig.get_python_inc ());"`
21788 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
21789 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
21790 if test -n "${python_path}"; then
21791 if test "${plat_python_path}" != "${python_path}"; then
21792 python_path="-I$python_path -I$plat_python_path"
21794 python_path="-I$python_path"
21797 PYTHON_CPPFLAGS=$python_path
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
21800 $as_echo "$PYTHON_CPPFLAGS" >&6; }
21804 # Check for Python library path
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
21807 $as_echo_n "checking for Python library path... " >&6; }
21808 if test -z "$PYTHON_LDFLAGS"; then
21809 # (makes two attempts to ensure we've got a version number
21810 # from the interpreter)
21811 ac_python_version=`cat<<EOD | $PYTHON -
21813 # join all versioning strings, on some systems
21814 # major/minor numbers could be in different list elements
21815 from distutils.sysconfig import *
21816 e = get_config_var('VERSION')
21821 if test -z "$ac_python_version"; then
21822 if test -n "$PYTHON_VERSION"; then
21823 ac_python_version=$PYTHON_VERSION
21825 ac_python_version=`$PYTHON -c "import sys; \
21826 print (sys.version[:3])"`
21830 # Make the versioning information available to the compiler
21832 # JW: We don't need it and it interferes with the hack
21833 # to detect multiple Pyhton versions
21834 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
21835 # [If available, contains the Python version number currently in use.])
21837 # First, the library directory:
21838 ac_python_libdir=`cat<<EOD | $PYTHON -
21840 # There should be only one
21841 import distutils.sysconfig
21842 e = distutils.sysconfig.get_config_var('LIBDIR')
21847 # Now, for the library:
21848 ac_python_library=`cat<<EOD | $PYTHON -
21850 import distutils.sysconfig
21851 c = distutils.sysconfig.get_config_vars()
21852 if 'LDVERSION' in c:
21853 print ('python'+c['LDVERSION'])
21855 print ('python'+c['VERSION'])
21858 # This small piece shamelessly adapted from PostgreSQL python macro;
21859 # credits goes to momjian, I think. I'd like to put the right name
21860 # in the credits, if someone can point me in the right direction... ?
21862 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
21864 # use the official shared library
21865 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
21866 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
21868 # old way: use libpython from python_configdir
21869 ac_python_libdir=`$PYTHON -c \
21870 "from distutils.sysconfig import get_python_lib as f; \
21872 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
21873 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
21876 if test -z "PYTHON_LDFLAGS"; then
21878 Cannot determine location of your Python DSO. Please check it was installed with
21879 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
21884 $as_echo "$PYTHON_LDFLAGS" >&6; }
21888 # Check for site packages
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
21891 $as_echo_n "checking for Python site-packages path... " >&6; }
21892 if test -z "$PYTHON_SITE_PKG"; then
21893 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
21894 print (distutils.sysconfig.get_python_lib(0,0));"`
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
21897 $as_echo "$PYTHON_SITE_PKG" >&6; }
21901 # libraries which must be linked in when embedding
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
21904 $as_echo_n "checking python extra libraries... " >&6; }
21905 if test -z "$PYTHON_EXTRA_LIBS"; then
21906 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21907 conf = distutils.sysconfig.get_config_var; \
21908 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
21911 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
21915 # linking flags needed when embedding
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
21918 $as_echo_n "checking python extra linking flags... " >&6; }
21919 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
21920 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
21921 conf = distutils.sysconfig.get_config_var; \
21922 print (conf('LINKFORSHARED'))"`
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
21925 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
21929 # final check to see if everything compiles alright
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
21932 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
21933 # save current global flags
21934 ac_save_LIBS="$LIBS"
21935 ac_save_CPPFLAGS="$CPPFLAGS"
21936 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
21937 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
21939 ac_cpp='$CPP $CPPFLAGS'
21940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21945 /* end confdefs.h. */
21947 #include <Python.h>
21957 if ac_fn_c_try_link "$LINENO"; then :
21962 rm -f core conftest.err conftest.$ac_objext \
21963 conftest$ac_exeext conftest.$ac_ext
21965 ac_cpp='$CPP $CPPFLAGS'
21966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21970 # turn back to default flags
21971 CPPFLAGS="$ac_save_CPPFLAGS"
21972 LIBS="$ac_save_LIBS"
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
21975 $as_echo "$pythonexists" >&6; }
21977 if test ! "x$pythonexists" = "xyes"; then
21978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21979 Could not link test program to Python. Maybe the main Python library has been
21980 installed in some non-standard library path. If so, pass it to configure,
21981 via the LDFLAGS environment variable.
21982 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21983 ============================================================================
21984 You probably have to install the development version of the Python package
21985 for your distribution. The exact name of this package varies among them.
21986 ============================================================================
21988 $as_echo "$as_me: WARNING:
21989 Could not link test program to Python. Maybe the main Python library has been
21990 installed in some non-standard library path. If so, pass it to configure,
21991 via the LDFLAGS environment variable.
21992 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
21993 ============================================================================
21994 You probably have to install the development version of the Python package
21995 for your distribution. The exact name of this package varies among them.
21996 ============================================================================
22005 if test "$PYTHON_VERSION"; then
22006 PYTHONS="$(echo $PYTHONS $PYTHON)"
22007 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22014 unset PYTHON_VERSION
22015 unset PYTHON_CPPFLAGS
22016 unset PYTHON_LDFLAGS
22017 unset PYTHON_SITE_PKG
22018 unset PYTHON_EXTRA_LIBS
22019 unset PYTHON_EXTRA_LDFLAGS
22020 unset ac_cv_path_PYTHON
22021 unset am_cv_pathless_PYTHON
22022 unset am_cv_python_version
22023 unset am_cv_python_platform
22024 unset am_cv_python_pythondir
22025 unset am_cv_python_pyexecdir
22032 if test -n "$PYTHON"; then
22033 # If the user set $PYTHON, use it and don't search something else.
22034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.7" >&5
22035 $as_echo_n "checking whether $PYTHON version is >= 3.7... " >&6; }
22037 # split strings by '.' and convert to numeric. Append some zeros
22038 # because we need at least 4 digits for the hex conversion.
22039 # map returns an iterator in Python 3.0 and a list in 2.x
22040 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22042 # xrange is not present in Python 3.0 and range returns an iterator
22043 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22044 sys.exit(sys.hexversion < minverhex)"
22045 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22046 ($PYTHON -c "$prog") >&5 2>&5
22048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22049 (exit $ac_status); }; then :
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22051 $as_echo "yes" >&6; }
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22054 $as_echo "no" >&6; }
22055 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22057 am_display_PYTHON=$PYTHON
22059 # Otherwise, try each interpreter until we find one that satisfies
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.7" >&5
22062 $as_echo_n "checking for a Python interpreter with version >= 3.7... " >&6; }
22063 if ${am_cv_pathless_PYTHON+:} false; then :
22064 $as_echo_n "(cached) " >&6
22067 for am_cv_pathless_PYTHON in python3.7 none; do
22068 test "$am_cv_pathless_PYTHON" = none && break
22070 # split strings by '.' and convert to numeric. Append some zeros
22071 # because we need at least 4 digits for the hex conversion.
22072 # map returns an iterator in Python 3.0 and a list in 2.x
22073 minver = list(map(int, '3.7'.split('.'))) + [0, 0, 0]
22075 # xrange is not present in Python 3.0 and range returns an iterator
22076 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22077 sys.exit(sys.hexversion < minverhex)"
22078 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22079 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; then :
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22088 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22089 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22090 if test "$am_cv_pathless_PYTHON" = none; then
22093 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22094 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22096 $as_echo_n "checking for $ac_word... " >&6; }
22097 if ${ac_cv_path_PYTHON+:} false; then :
22098 $as_echo_n "(cached) " >&6
22102 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22106 for as_dir in $PATH
22109 test -z "$as_dir" && as_dir=.
22110 for ac_exec_ext in '' $ac_executable_extensions; do
22111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22112 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22123 PYTHON=$ac_cv_path_PYTHON
22124 if test -n "$PYTHON"; then
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22126 $as_echo "$PYTHON" >&6; }
22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22129 $as_echo "no" >&6; }
22134 am_display_PYTHON=$am_cv_pathless_PYTHON
22138 if test "$PYTHON" = :; then
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22144 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22145 if ${am_cv_python_version+:} false; then :
22146 $as_echo_n "(cached) " >&6
22148 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22151 $as_echo "$am_cv_python_version" >&6; }
22152 PYTHON_VERSION=$am_cv_python_version
22156 PYTHON_PREFIX='${prefix}'
22158 PYTHON_EXEC_PREFIX='${exec_prefix}'
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22163 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22164 if ${am_cv_python_platform+:} false; then :
22165 $as_echo_n "(cached) " >&6
22167 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22170 $as_echo "$am_cv_python_platform" >&6; }
22171 PYTHON_PLATFORM=$am_cv_python_platform
22174 # Just factor out some code duplication.
22175 am_python_setup_sysconfig="\
22177 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22178 # with python 3.x. See automake bug#10227.
22181 except ImportError:
22182 can_use_sysconfig = 0
22184 can_use_sysconfig = 1
22185 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22186 # <https://github.com/pypa/virtualenv/issues/118>
22188 from platform import python_implementation
22189 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22190 can_use_sysconfig = 0
22191 except ImportError:
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22196 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22197 if ${am_cv_python_pythondir+:} false; then :
22198 $as_echo_n "(cached) " >&6
22200 if test "x$prefix" = xNONE
22202 am_py_prefix=$ac_default_prefix
22204 am_py_prefix=$prefix
22206 am_cv_python_pythondir=`$PYTHON -c "
22207 $am_python_setup_sysconfig
22208 if can_use_sysconfig:
22209 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22211 from distutils import sysconfig
22212 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22213 sys.stdout.write(sitedir)"`
22214 case $am_cv_python_pythondir in
22216 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22217 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22220 case $am_py_prefix in
22223 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22231 $as_echo "$am_cv_python_pythondir" >&6; }
22232 pythondir=$am_cv_python_pythondir
22236 pkgpythondir=\${pythondir}/$PACKAGE
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22240 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22241 if ${am_cv_python_pyexecdir+:} false; then :
22242 $as_echo_n "(cached) " >&6
22244 if test "x$exec_prefix" = xNONE
22246 am_py_exec_prefix=$am_py_prefix
22248 am_py_exec_prefix=$exec_prefix
22250 am_cv_python_pyexecdir=`$PYTHON -c "
22251 $am_python_setup_sysconfig
22252 if can_use_sysconfig:
22253 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22255 from distutils import sysconfig
22256 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22257 sys.stdout.write(sitedir)"`
22258 case $am_cv_python_pyexecdir in
22259 $am_py_exec_prefix*)
22260 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22261 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22264 case $am_py_exec_prefix in
22267 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22275 $as_echo "$am_cv_python_pyexecdir" >&6; }
22276 pyexecdir=$am_cv_python_pyexecdir
22280 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22286 # Allow the use of a (user set) custom python version
22290 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22291 set dummy python$PYTHON_VERSION; ac_word=$2
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22293 $as_echo_n "checking for $ac_word... " >&6; }
22294 if ${ac_cv_path_PYTHON+:} false; then :
22295 $as_echo_n "(cached) " >&6
22299 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22303 for as_dir in $PATH
22306 test -z "$as_dir" && as_dir=.
22307 for ac_exec_ext in '' $ac_executable_extensions; do
22308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22309 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22320 PYTHON=$ac_cv_path_PYTHON
22321 if test -n "$PYTHON"; then
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22323 $as_echo "$PYTHON" >&6; }
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22326 $as_echo "no" >&6; }
22330 if test -z "$PYTHON"; then
22331 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22336 # Check for a version of Python >= 2.1.0
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22339 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22340 ac_supports_python_ver=`$PYTHON -c "import sys; \
22341 ver = sys.version.split ()[0]; \
22342 print (ver >= '2.1.0')"`
22343 if test "$ac_supports_python_ver" != "True"; then
22344 if test -z "$PYTHON_NOVERSIONCHECK"; then
22345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22346 $as_echo "no" >&6; }
22347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22350 This version of the AC_PYTHON_DEVEL macro
22351 doesn't work properly with versions of Python before
22352 2.1.0. You may need to re-run configure, setting the
22353 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22354 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22355 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22356 to something else than an empty string.
22358 See \`config.log' for more details" "$LINENO" 5; }
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22361 $as_echo "skip at user request" >&6; }
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22365 $as_echo "yes" >&6; }
22369 # if the macro parameter ``version'' is set, honour it
22371 if test -n ""; then
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
22373 $as_echo_n "checking for a version of Python ... " >&6; }
22374 ac_supports_python_ver=`$PYTHON -c "import sys; \
22375 ver = sys.version.split ()[0]; \
22377 if test "$ac_supports_python_ver" = "True"; then
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22379 $as_echo "yes" >&6; }
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22382 $as_echo "no" >&6; }
22383 as_fn_error $? "this package requires Python .
22384 If you have it installed, but it isn't the default Python
22385 interpreter in your system path, please pass the PYTHON_VERSION
22386 variable to configure. See \`\`configure --help'' for reference.
22393 # Check if you have distutils, else fail
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
22396 $as_echo_n "checking for the distutils Python package... " >&6; }
22397 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
22398 if test -z "$ac_distutils_result"; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22400 $as_echo "yes" >&6; }
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22403 $as_echo "no" >&6; }
22404 as_fn_error $? "cannot import Python module \"distutils\".
22405 Please check your Python installation. The error was:
22406 $ac_distutils_result" "$LINENO" 5
22411 # Check for Python include path
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
22414 $as_echo_n "checking for Python include path... " >&6; }
22415 if test -z "$PYTHON_CPPFLAGS"; then
22416 python_path=`$PYTHON -c "import distutils.sysconfig; \
22417 print (distutils.sysconfig.get_python_inc ());"`
22418 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
22419 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
22420 if test -n "${python_path}"; then
22421 if test "${plat_python_path}" != "${python_path}"; then
22422 python_path="-I$python_path -I$plat_python_path"
22424 python_path="-I$python_path"
22427 PYTHON_CPPFLAGS=$python_path
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
22430 $as_echo "$PYTHON_CPPFLAGS" >&6; }
22434 # Check for Python library path
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
22437 $as_echo_n "checking for Python library path... " >&6; }
22438 if test -z "$PYTHON_LDFLAGS"; then
22439 # (makes two attempts to ensure we've got a version number
22440 # from the interpreter)
22441 ac_python_version=`cat<<EOD | $PYTHON -
22443 # join all versioning strings, on some systems
22444 # major/minor numbers could be in different list elements
22445 from distutils.sysconfig import *
22446 e = get_config_var('VERSION')
22451 if test -z "$ac_python_version"; then
22452 if test -n "$PYTHON_VERSION"; then
22453 ac_python_version=$PYTHON_VERSION
22455 ac_python_version=`$PYTHON -c "import sys; \
22456 print (sys.version[:3])"`
22460 # Make the versioning information available to the compiler
22462 # JW: We don't need it and it interferes with the hack
22463 # to detect multiple Pyhton versions
22464 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
22465 # [If available, contains the Python version number currently in use.])
22467 # First, the library directory:
22468 ac_python_libdir=`cat<<EOD | $PYTHON -
22470 # There should be only one
22471 import distutils.sysconfig
22472 e = distutils.sysconfig.get_config_var('LIBDIR')
22477 # Now, for the library:
22478 ac_python_library=`cat<<EOD | $PYTHON -
22480 import distutils.sysconfig
22481 c = distutils.sysconfig.get_config_vars()
22482 if 'LDVERSION' in c:
22483 print ('python'+c['LDVERSION'])
22485 print ('python'+c['VERSION'])
22488 # This small piece shamelessly adapted from PostgreSQL python macro;
22489 # credits goes to momjian, I think. I'd like to put the right name
22490 # in the credits, if someone can point me in the right direction... ?
22492 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
22494 # use the official shared library
22495 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
22496 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
22498 # old way: use libpython from python_configdir
22499 ac_python_libdir=`$PYTHON -c \
22500 "from distutils.sysconfig import get_python_lib as f; \
22502 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
22503 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
22506 if test -z "PYTHON_LDFLAGS"; then
22508 Cannot determine location of your Python DSO. Please check it was installed with
22509 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
22514 $as_echo "$PYTHON_LDFLAGS" >&6; }
22518 # Check for site packages
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
22521 $as_echo_n "checking for Python site-packages path... " >&6; }
22522 if test -z "$PYTHON_SITE_PKG"; then
22523 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
22524 print (distutils.sysconfig.get_python_lib(0,0));"`
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
22527 $as_echo "$PYTHON_SITE_PKG" >&6; }
22531 # libraries which must be linked in when embedding
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
22534 $as_echo_n "checking python extra libraries... " >&6; }
22535 if test -z "$PYTHON_EXTRA_LIBS"; then
22536 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
22537 conf = distutils.sysconfig.get_config_var; \
22538 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
22541 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
22545 # linking flags needed when embedding
22547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
22548 $as_echo_n "checking python extra linking flags... " >&6; }
22549 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
22550 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
22551 conf = distutils.sysconfig.get_config_var; \
22552 print (conf('LINKFORSHARED'))"`
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
22555 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
22559 # final check to see if everything compiles alright
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
22562 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
22563 # save current global flags
22564 ac_save_LIBS="$LIBS"
22565 ac_save_CPPFLAGS="$CPPFLAGS"
22566 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
22567 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
22569 ac_cpp='$CPP $CPPFLAGS'
22570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575 /* end confdefs.h. */
22577 #include <Python.h>
22587 if ac_fn_c_try_link "$LINENO"; then :
22592 rm -f core conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22595 ac_cpp='$CPP $CPPFLAGS'
22596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22600 # turn back to default flags
22601 CPPFLAGS="$ac_save_CPPFLAGS"
22602 LIBS="$ac_save_LIBS"
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
22605 $as_echo "$pythonexists" >&6; }
22607 if test ! "x$pythonexists" = "xyes"; then
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22609 Could not link test program to Python. Maybe the main Python library has been
22610 installed in some non-standard library path. If so, pass it to configure,
22611 via the LDFLAGS environment variable.
22612 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22613 ============================================================================
22614 You probably have to install the development version of the Python package
22615 for your distribution. The exact name of this package varies among them.
22616 ============================================================================
22618 $as_echo "$as_me: WARNING:
22619 Could not link test program to Python. Maybe the main Python library has been
22620 installed in some non-standard library path. If so, pass it to configure,
22621 via the LDFLAGS environment variable.
22622 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
22623 ============================================================================
22624 You probably have to install the development version of the Python package
22625 for your distribution. The exact name of this package varies among them.
22626 ============================================================================
22635 if test "$PYTHON_VERSION"; then
22636 PYTHONS="$(echo $PYTHONS $PYTHON)"
22637 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
22644 unset PYTHON_VERSION
22645 unset PYTHON_CPPFLAGS
22646 unset PYTHON_LDFLAGS
22647 unset PYTHON_SITE_PKG
22648 unset PYTHON_EXTRA_LIBS
22649 unset PYTHON_EXTRA_LDFLAGS
22650 unset ac_cv_path_PYTHON
22651 unset am_cv_pathless_PYTHON
22652 unset am_cv_python_version
22653 unset am_cv_python_platform
22654 unset am_cv_python_pythondir
22655 unset am_cv_python_pyexecdir
22662 if test -n "$PYTHON"; then
22663 # If the user set $PYTHON, use it and don't search something else.
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.8" >&5
22665 $as_echo_n "checking whether $PYTHON version is >= 3.8... " >&6; }
22667 # split strings by '.' and convert to numeric. Append some zeros
22668 # because we need at least 4 digits for the hex conversion.
22669 # map returns an iterator in Python 3.0 and a list in 2.x
22670 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22672 # xrange is not present in Python 3.0 and range returns an iterator
22673 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22674 sys.exit(sys.hexversion < minverhex)"
22675 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
22676 ($PYTHON -c "$prog") >&5 2>&5
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; then :
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22681 $as_echo "yes" >&6; }
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22685 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
22687 am_display_PYTHON=$PYTHON
22689 # Otherwise, try each interpreter until we find one that satisfies
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.8" >&5
22692 $as_echo_n "checking for a Python interpreter with version >= 3.8... " >&6; }
22693 if ${am_cv_pathless_PYTHON+:} false; then :
22694 $as_echo_n "(cached) " >&6
22697 for am_cv_pathless_PYTHON in python3.8 none; do
22698 test "$am_cv_pathless_PYTHON" = none && break
22700 # split strings by '.' and convert to numeric. Append some zeros
22701 # because we need at least 4 digits for the hex conversion.
22702 # map returns an iterator in Python 3.0 and a list in 2.x
22703 minver = list(map(int, '3.8'.split('.'))) + [0, 0, 0]
22705 # xrange is not present in Python 3.0 and range returns an iterator
22706 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
22707 sys.exit(sys.hexversion < minverhex)"
22708 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
22709 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; then :
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
22718 $as_echo "$am_cv_pathless_PYTHON" >&6; }
22719 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
22720 if test "$am_cv_pathless_PYTHON" = none; then
22723 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
22724 set dummy $am_cv_pathless_PYTHON; ac_word=$2
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22726 $as_echo_n "checking for $ac_word... " >&6; }
22727 if ${ac_cv_path_PYTHON+:} false; then :
22728 $as_echo_n "(cached) " >&6
22732 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22736 for as_dir in $PATH
22739 test -z "$as_dir" && as_dir=.
22740 for ac_exec_ext in '' $ac_executable_extensions; do
22741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22742 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22753 PYTHON=$ac_cv_path_PYTHON
22754 if test -n "$PYTHON"; then
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22756 $as_echo "$PYTHON" >&6; }
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22759 $as_echo "no" >&6; }
22764 am_display_PYTHON=$am_cv_pathless_PYTHON
22768 if test "$PYTHON" = :; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
22774 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
22775 if ${am_cv_python_version+:} false; then :
22776 $as_echo_n "(cached) " >&6
22778 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
22780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
22781 $as_echo "$am_cv_python_version" >&6; }
22782 PYTHON_VERSION=$am_cv_python_version
22786 PYTHON_PREFIX='${prefix}'
22788 PYTHON_EXEC_PREFIX='${exec_prefix}'
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
22793 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
22794 if ${am_cv_python_platform+:} false; then :
22795 $as_echo_n "(cached) " >&6
22797 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
22800 $as_echo "$am_cv_python_platform" >&6; }
22801 PYTHON_PLATFORM=$am_cv_python_platform
22804 # Just factor out some code duplication.
22805 am_python_setup_sysconfig="\
22807 # Prefer sysconfig over distutils.sysconfig, for better compatibility
22808 # with python 3.x. See automake bug#10227.
22811 except ImportError:
22812 can_use_sysconfig = 0
22814 can_use_sysconfig = 1
22815 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
22816 # <https://github.com/pypa/virtualenv/issues/118>
22818 from platform import python_implementation
22819 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
22820 can_use_sysconfig = 0
22821 except ImportError:
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
22826 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
22827 if ${am_cv_python_pythondir+:} false; then :
22828 $as_echo_n "(cached) " >&6
22830 if test "x$prefix" = xNONE
22832 am_py_prefix=$ac_default_prefix
22834 am_py_prefix=$prefix
22836 am_cv_python_pythondir=`$PYTHON -c "
22837 $am_python_setup_sysconfig
22838 if can_use_sysconfig:
22839 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
22841 from distutils import sysconfig
22842 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
22843 sys.stdout.write(sitedir)"`
22844 case $am_cv_python_pythondir in
22846 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
22847 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
22850 case $am_py_prefix in
22853 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
22861 $as_echo "$am_cv_python_pythondir" >&6; }
22862 pythondir=$am_cv_python_pythondir
22866 pkgpythondir=\${pythondir}/$PACKAGE
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
22870 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
22871 if ${am_cv_python_pyexecdir+:} false; then :
22872 $as_echo_n "(cached) " >&6
22874 if test "x$exec_prefix" = xNONE
22876 am_py_exec_prefix=$am_py_prefix
22878 am_py_exec_prefix=$exec_prefix
22880 am_cv_python_pyexecdir=`$PYTHON -c "
22881 $am_python_setup_sysconfig
22882 if can_use_sysconfig:
22883 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
22885 from distutils import sysconfig
22886 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
22887 sys.stdout.write(sitedir)"`
22888 case $am_cv_python_pyexecdir in
22889 $am_py_exec_prefix*)
22890 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
22891 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
22894 case $am_py_exec_prefix in
22897 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
22905 $as_echo "$am_cv_python_pyexecdir" >&6; }
22906 pyexecdir=$am_cv_python_pyexecdir
22910 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22916 # Allow the use of a (user set) custom python version
22920 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
22921 set dummy python$PYTHON_VERSION; ac_word=$2
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22923 $as_echo_n "checking for $ac_word... " >&6; }
22924 if ${ac_cv_path_PYTHON+:} false; then :
22925 $as_echo_n "(cached) " >&6
22929 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22933 for as_dir in $PATH
22936 test -z "$as_dir" && as_dir=.
22937 for ac_exec_ext in '' $ac_executable_extensions; do
22938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22939 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22950 PYTHON=$ac_cv_path_PYTHON
22951 if test -n "$PYTHON"; then
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22953 $as_echo "$PYTHON" >&6; }
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22960 if test -z "$PYTHON"; then
22961 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
22966 # Check for a version of Python >= 2.1.0
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
22969 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
22970 ac_supports_python_ver=`$PYTHON -c "import sys; \
22971 ver = sys.version.split ()[0]; \
22972 print (ver >= '2.1.0')"`
22973 if test "$ac_supports_python_ver" != "True"; then
22974 if test -z "$PYTHON_NOVERSIONCHECK"; then
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22976 $as_echo "no" >&6; }
22977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22980 This version of the AC_PYTHON_DEVEL macro
22981 doesn't work properly with versions of Python before
22982 2.1.0. You may need to re-run configure, setting the
22983 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
22984 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
22985 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
22986 to something else than an empty string.
22988 See \`config.log' for more details" "$LINENO" 5; }
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
22991 $as_echo "skip at user request" >&6; }
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22995 $as_echo "yes" >&6; }
22999 # if the macro parameter ``version'' is set, honour it
23001 if test -n ""; then
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23003 $as_echo_n "checking for a version of Python ... " >&6; }
23004 ac_supports_python_ver=`$PYTHON -c "import sys; \
23005 ver = sys.version.split ()[0]; \
23007 if test "$ac_supports_python_ver" = "True"; then
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23009 $as_echo "yes" >&6; }
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23012 $as_echo "no" >&6; }
23013 as_fn_error $? "this package requires Python .
23014 If you have it installed, but it isn't the default Python
23015 interpreter in your system path, please pass the PYTHON_VERSION
23016 variable to configure. See \`\`configure --help'' for reference.
23023 # Check if you have distutils, else fail
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23026 $as_echo_n "checking for the distutils Python package... " >&6; }
23027 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23028 if test -z "$ac_distutils_result"; then
23029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23030 $as_echo "yes" >&6; }
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23033 $as_echo "no" >&6; }
23034 as_fn_error $? "cannot import Python module \"distutils\".
23035 Please check your Python installation. The error was:
23036 $ac_distutils_result" "$LINENO" 5
23041 # Check for Python include path
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23044 $as_echo_n "checking for Python include path... " >&6; }
23045 if test -z "$PYTHON_CPPFLAGS"; then
23046 python_path=`$PYTHON -c "import distutils.sysconfig; \
23047 print (distutils.sysconfig.get_python_inc ());"`
23048 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23049 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23050 if test -n "${python_path}"; then
23051 if test "${plat_python_path}" != "${python_path}"; then
23052 python_path="-I$python_path -I$plat_python_path"
23054 python_path="-I$python_path"
23057 PYTHON_CPPFLAGS=$python_path
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23060 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23064 # Check for Python library path
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23067 $as_echo_n "checking for Python library path... " >&6; }
23068 if test -z "$PYTHON_LDFLAGS"; then
23069 # (makes two attempts to ensure we've got a version number
23070 # from the interpreter)
23071 ac_python_version=`cat<<EOD | $PYTHON -
23073 # join all versioning strings, on some systems
23074 # major/minor numbers could be in different list elements
23075 from distutils.sysconfig import *
23076 e = get_config_var('VERSION')
23081 if test -z "$ac_python_version"; then
23082 if test -n "$PYTHON_VERSION"; then
23083 ac_python_version=$PYTHON_VERSION
23085 ac_python_version=`$PYTHON -c "import sys; \
23086 print (sys.version[:3])"`
23090 # Make the versioning information available to the compiler
23092 # JW: We don't need it and it interferes with the hack
23093 # to detect multiple Pyhton versions
23094 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23095 # [If available, contains the Python version number currently in use.])
23097 # First, the library directory:
23098 ac_python_libdir=`cat<<EOD | $PYTHON -
23100 # There should be only one
23101 import distutils.sysconfig
23102 e = distutils.sysconfig.get_config_var('LIBDIR')
23107 # Now, for the library:
23108 ac_python_library=`cat<<EOD | $PYTHON -
23110 import distutils.sysconfig
23111 c = distutils.sysconfig.get_config_vars()
23112 if 'LDVERSION' in c:
23113 print ('python'+c['LDVERSION'])
23115 print ('python'+c['VERSION'])
23118 # This small piece shamelessly adapted from PostgreSQL python macro;
23119 # credits goes to momjian, I think. I'd like to put the right name
23120 # in the credits, if someone can point me in the right direction... ?
23122 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23124 # use the official shared library
23125 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23126 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23128 # old way: use libpython from python_configdir
23129 ac_python_libdir=`$PYTHON -c \
23130 "from distutils.sysconfig import get_python_lib as f; \
23132 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23133 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23136 if test -z "PYTHON_LDFLAGS"; then
23138 Cannot determine location of your Python DSO. Please check it was installed with
23139 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23144 $as_echo "$PYTHON_LDFLAGS" >&6; }
23148 # Check for site packages
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23151 $as_echo_n "checking for Python site-packages path... " >&6; }
23152 if test -z "$PYTHON_SITE_PKG"; then
23153 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23154 print (distutils.sysconfig.get_python_lib(0,0));"`
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23157 $as_echo "$PYTHON_SITE_PKG" >&6; }
23161 # libraries which must be linked in when embedding
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23164 $as_echo_n "checking python extra libraries... " >&6; }
23165 if test -z "$PYTHON_EXTRA_LIBS"; then
23166 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23167 conf = distutils.sysconfig.get_config_var; \
23168 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23171 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23175 # linking flags needed when embedding
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23178 $as_echo_n "checking python extra linking flags... " >&6; }
23179 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23180 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23181 conf = distutils.sysconfig.get_config_var; \
23182 print (conf('LINKFORSHARED'))"`
23184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23185 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23189 # final check to see if everything compiles alright
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23192 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23193 # save current global flags
23194 ac_save_LIBS="$LIBS"
23195 ac_save_CPPFLAGS="$CPPFLAGS"
23196 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23197 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23199 ac_cpp='$CPP $CPPFLAGS'
23200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23205 /* end confdefs.h. */
23207 #include <Python.h>
23217 if ac_fn_c_try_link "$LINENO"; then :
23222 rm -f core conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
23225 ac_cpp='$CPP $CPPFLAGS'
23226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23230 # turn back to default flags
23231 CPPFLAGS="$ac_save_CPPFLAGS"
23232 LIBS="$ac_save_LIBS"
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23235 $as_echo "$pythonexists" >&6; }
23237 if test ! "x$pythonexists" = "xyes"; then
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23239 Could not link test program to Python. Maybe the main Python library has been
23240 installed in some non-standard library path. If so, pass it to configure,
23241 via the LDFLAGS environment variable.
23242 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23243 ============================================================================
23244 You probably have to install the development version of the Python package
23245 for your distribution. The exact name of this package varies among them.
23246 ============================================================================
23248 $as_echo "$as_me: WARNING:
23249 Could not link test program to Python. Maybe the main Python library has been
23250 installed in some non-standard library path. If so, pass it to configure,
23251 via the LDFLAGS environment variable.
23252 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23253 ============================================================================
23254 You probably have to install the development version of the Python package
23255 for your distribution. The exact name of this package varies among them.
23256 ============================================================================
23265 if test "$PYTHON_VERSION"; then
23266 PYTHONS="$(echo $PYTHONS $PYTHON)"
23267 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23274 unset PYTHON_VERSION
23275 unset PYTHON_CPPFLAGS
23276 unset PYTHON_LDFLAGS
23277 unset PYTHON_SITE_PKG
23278 unset PYTHON_EXTRA_LIBS
23279 unset PYTHON_EXTRA_LDFLAGS
23280 unset ac_cv_path_PYTHON
23281 unset am_cv_pathless_PYTHON
23282 unset am_cv_python_version
23283 unset am_cv_python_platform
23284 unset am_cv_python_pythondir
23285 unset am_cv_python_pyexecdir
23292 if test -n "$PYTHON"; then
23293 # If the user set $PYTHON, use it and don't search something else.
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.9" >&5
23295 $as_echo_n "checking whether $PYTHON version is >= 3.9... " >&6; }
23297 # split strings by '.' and convert to numeric. Append some zeros
23298 # because we need at least 4 digits for the hex conversion.
23299 # map returns an iterator in Python 3.0 and a list in 2.x
23300 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23302 # xrange is not present in Python 3.0 and range returns an iterator
23303 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23304 sys.exit(sys.hexversion < minverhex)"
23305 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23306 ($PYTHON -c "$prog") >&5 2>&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; then :
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23314 $as_echo "no" >&6; }
23315 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23317 am_display_PYTHON=$PYTHON
23319 # Otherwise, try each interpreter until we find one that satisfies
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.9" >&5
23322 $as_echo_n "checking for a Python interpreter with version >= 3.9... " >&6; }
23323 if ${am_cv_pathless_PYTHON+:} false; then :
23324 $as_echo_n "(cached) " >&6
23327 for am_cv_pathless_PYTHON in python3.9 none; do
23328 test "$am_cv_pathless_PYTHON" = none && break
23330 # split strings by '.' and convert to numeric. Append some zeros
23331 # because we need at least 4 digits for the hex conversion.
23332 # map returns an iterator in Python 3.0 and a list in 2.x
23333 minver = list(map(int, '3.9'.split('.'))) + [0, 0, 0]
23335 # xrange is not present in Python 3.0 and range returns an iterator
23336 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23337 sys.exit(sys.hexversion < minverhex)"
23338 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23339 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; then :
23347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23348 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23349 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23350 if test "$am_cv_pathless_PYTHON" = none; then
23353 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23354 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23356 $as_echo_n "checking for $ac_word... " >&6; }
23357 if ${ac_cv_path_PYTHON+:} false; then :
23358 $as_echo_n "(cached) " >&6
23362 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23366 for as_dir in $PATH
23369 test -z "$as_dir" && as_dir=.
23370 for ac_exec_ext in '' $ac_executable_extensions; do
23371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23372 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23383 PYTHON=$ac_cv_path_PYTHON
23384 if test -n "$PYTHON"; then
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23386 $as_echo "$PYTHON" >&6; }
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23389 $as_echo "no" >&6; }
23394 am_display_PYTHON=$am_cv_pathless_PYTHON
23398 if test "$PYTHON" = :; then
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
23404 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
23405 if ${am_cv_python_version+:} false; then :
23406 $as_echo_n "(cached) " >&6
23408 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
23411 $as_echo "$am_cv_python_version" >&6; }
23412 PYTHON_VERSION=$am_cv_python_version
23416 PYTHON_PREFIX='${prefix}'
23418 PYTHON_EXEC_PREFIX='${exec_prefix}'
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
23423 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
23424 if ${am_cv_python_platform+:} false; then :
23425 $as_echo_n "(cached) " >&6
23427 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
23430 $as_echo "$am_cv_python_platform" >&6; }
23431 PYTHON_PLATFORM=$am_cv_python_platform
23434 # Just factor out some code duplication.
23435 am_python_setup_sysconfig="\
23437 # Prefer sysconfig over distutils.sysconfig, for better compatibility
23438 # with python 3.x. See automake bug#10227.
23441 except ImportError:
23442 can_use_sysconfig = 0
23444 can_use_sysconfig = 1
23445 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
23446 # <https://github.com/pypa/virtualenv/issues/118>
23448 from platform import python_implementation
23449 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
23450 can_use_sysconfig = 0
23451 except ImportError:
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
23456 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
23457 if ${am_cv_python_pythondir+:} false; then :
23458 $as_echo_n "(cached) " >&6
23460 if test "x$prefix" = xNONE
23462 am_py_prefix=$ac_default_prefix
23464 am_py_prefix=$prefix
23466 am_cv_python_pythondir=`$PYTHON -c "
23467 $am_python_setup_sysconfig
23468 if can_use_sysconfig:
23469 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
23471 from distutils import sysconfig
23472 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
23473 sys.stdout.write(sitedir)"`
23474 case $am_cv_python_pythondir in
23476 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
23477 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
23480 case $am_py_prefix in
23483 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
23491 $as_echo "$am_cv_python_pythondir" >&6; }
23492 pythondir=$am_cv_python_pythondir
23496 pkgpythondir=\${pythondir}/$PACKAGE
23499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
23500 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
23501 if ${am_cv_python_pyexecdir+:} false; then :
23502 $as_echo_n "(cached) " >&6
23504 if test "x$exec_prefix" = xNONE
23506 am_py_exec_prefix=$am_py_prefix
23508 am_py_exec_prefix=$exec_prefix
23510 am_cv_python_pyexecdir=`$PYTHON -c "
23511 $am_python_setup_sysconfig
23512 if can_use_sysconfig:
23513 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
23515 from distutils import sysconfig
23516 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
23517 sys.stdout.write(sitedir)"`
23518 case $am_cv_python_pyexecdir in
23519 $am_py_exec_prefix*)
23520 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
23521 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
23524 case $am_py_exec_prefix in
23527 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
23535 $as_echo "$am_cv_python_pyexecdir" >&6; }
23536 pyexecdir=$am_cv_python_pyexecdir
23540 pkgpyexecdir=\${pyexecdir}/$PACKAGE
23546 # Allow the use of a (user set) custom python version
23550 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
23551 set dummy python$PYTHON_VERSION; ac_word=$2
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23553 $as_echo_n "checking for $ac_word... " >&6; }
23554 if ${ac_cv_path_PYTHON+:} false; then :
23555 $as_echo_n "(cached) " >&6
23559 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23563 for as_dir in $PATH
23566 test -z "$as_dir" && as_dir=.
23567 for ac_exec_ext in '' $ac_executable_extensions; do
23568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23569 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
23570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23580 PYTHON=$ac_cv_path_PYTHON
23581 if test -n "$PYTHON"; then
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
23583 $as_echo "$PYTHON" >&6; }
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23586 $as_echo "no" >&6; }
23590 if test -z "$PYTHON"; then
23591 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
23596 # Check for a version of Python >= 2.1.0
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
23599 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
23600 ac_supports_python_ver=`$PYTHON -c "import sys; \
23601 ver = sys.version.split ()[0]; \
23602 print (ver >= '2.1.0')"`
23603 if test "$ac_supports_python_ver" != "True"; then
23604 if test -z "$PYTHON_NOVERSIONCHECK"; then
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23606 $as_echo "no" >&6; }
23607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23610 This version of the AC_PYTHON_DEVEL macro
23611 doesn't work properly with versions of Python before
23612 2.1.0. You may need to re-run configure, setting the
23613 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
23614 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
23615 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
23616 to something else than an empty string.
23618 See \`config.log' for more details" "$LINENO" 5; }
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
23621 $as_echo "skip at user request" >&6; }
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23625 $as_echo "yes" >&6; }
23629 # if the macro parameter ``version'' is set, honour it
23631 if test -n ""; then
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
23633 $as_echo_n "checking for a version of Python ... " >&6; }
23634 ac_supports_python_ver=`$PYTHON -c "import sys; \
23635 ver = sys.version.split ()[0]; \
23637 if test "$ac_supports_python_ver" = "True"; then
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23639 $as_echo "yes" >&6; }
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642 $as_echo "no" >&6; }
23643 as_fn_error $? "this package requires Python .
23644 If you have it installed, but it isn't the default Python
23645 interpreter in your system path, please pass the PYTHON_VERSION
23646 variable to configure. See \`\`configure --help'' for reference.
23653 # Check if you have distutils, else fail
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
23656 $as_echo_n "checking for the distutils Python package... " >&6; }
23657 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
23658 if test -z "$ac_distutils_result"; then
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23660 $as_echo "yes" >&6; }
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664 as_fn_error $? "cannot import Python module \"distutils\".
23665 Please check your Python installation. The error was:
23666 $ac_distutils_result" "$LINENO" 5
23671 # Check for Python include path
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
23674 $as_echo_n "checking for Python include path... " >&6; }
23675 if test -z "$PYTHON_CPPFLAGS"; then
23676 python_path=`$PYTHON -c "import distutils.sysconfig; \
23677 print (distutils.sysconfig.get_python_inc ());"`
23678 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
23679 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
23680 if test -n "${python_path}"; then
23681 if test "${plat_python_path}" != "${python_path}"; then
23682 python_path="-I$python_path -I$plat_python_path"
23684 python_path="-I$python_path"
23687 PYTHON_CPPFLAGS=$python_path
23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
23690 $as_echo "$PYTHON_CPPFLAGS" >&6; }
23694 # Check for Python library path
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
23697 $as_echo_n "checking for Python library path... " >&6; }
23698 if test -z "$PYTHON_LDFLAGS"; then
23699 # (makes two attempts to ensure we've got a version number
23700 # from the interpreter)
23701 ac_python_version=`cat<<EOD | $PYTHON -
23703 # join all versioning strings, on some systems
23704 # major/minor numbers could be in different list elements
23705 from distutils.sysconfig import *
23706 e = get_config_var('VERSION')
23711 if test -z "$ac_python_version"; then
23712 if test -n "$PYTHON_VERSION"; then
23713 ac_python_version=$PYTHON_VERSION
23715 ac_python_version=`$PYTHON -c "import sys; \
23716 print (sys.version[:3])"`
23720 # Make the versioning information available to the compiler
23722 # JW: We don't need it and it interferes with the hack
23723 # to detect multiple Pyhton versions
23724 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
23725 # [If available, contains the Python version number currently in use.])
23727 # First, the library directory:
23728 ac_python_libdir=`cat<<EOD | $PYTHON -
23730 # There should be only one
23731 import distutils.sysconfig
23732 e = distutils.sysconfig.get_config_var('LIBDIR')
23737 # Now, for the library:
23738 ac_python_library=`cat<<EOD | $PYTHON -
23740 import distutils.sysconfig
23741 c = distutils.sysconfig.get_config_vars()
23742 if 'LDVERSION' in c:
23743 print ('python'+c['LDVERSION'])
23745 print ('python'+c['VERSION'])
23748 # This small piece shamelessly adapted from PostgreSQL python macro;
23749 # credits goes to momjian, I think. I'd like to put the right name
23750 # in the credits, if someone can point me in the right direction... ?
23752 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
23754 # use the official shared library
23755 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
23756 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
23758 # old way: use libpython from python_configdir
23759 ac_python_libdir=`$PYTHON -c \
23760 "from distutils.sysconfig import get_python_lib as f; \
23762 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
23763 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
23766 if test -z "PYTHON_LDFLAGS"; then
23768 Cannot determine location of your Python DSO. Please check it was installed with
23769 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
23774 $as_echo "$PYTHON_LDFLAGS" >&6; }
23778 # Check for site packages
23780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
23781 $as_echo_n "checking for Python site-packages path... " >&6; }
23782 if test -z "$PYTHON_SITE_PKG"; then
23783 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
23784 print (distutils.sysconfig.get_python_lib(0,0));"`
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
23787 $as_echo "$PYTHON_SITE_PKG" >&6; }
23791 # libraries which must be linked in when embedding
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
23794 $as_echo_n "checking python extra libraries... " >&6; }
23795 if test -z "$PYTHON_EXTRA_LIBS"; then
23796 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
23797 conf = distutils.sysconfig.get_config_var; \
23798 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
23801 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
23805 # linking flags needed when embedding
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
23808 $as_echo_n "checking python extra linking flags... " >&6; }
23809 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
23810 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
23811 conf = distutils.sysconfig.get_config_var; \
23812 print (conf('LINKFORSHARED'))"`
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
23815 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
23819 # final check to see if everything compiles alright
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
23822 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
23823 # save current global flags
23824 ac_save_LIBS="$LIBS"
23825 ac_save_CPPFLAGS="$CPPFLAGS"
23826 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
23827 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
23829 ac_cpp='$CPP $CPPFLAGS'
23830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23835 /* end confdefs.h. */
23837 #include <Python.h>
23847 if ac_fn_c_try_link "$LINENO"; then :
23852 rm -f core conftest.err conftest.$ac_objext \
23853 conftest$ac_exeext conftest.$ac_ext
23855 ac_cpp='$CPP $CPPFLAGS'
23856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23860 # turn back to default flags
23861 CPPFLAGS="$ac_save_CPPFLAGS"
23862 LIBS="$ac_save_LIBS"
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
23865 $as_echo "$pythonexists" >&6; }
23867 if test ! "x$pythonexists" = "xyes"; then
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
23869 Could not link test program to Python. Maybe the main Python library has been
23870 installed in some non-standard library path. If so, pass it to configure,
23871 via the LDFLAGS environment variable.
23872 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23873 ============================================================================
23874 You probably have to install the development version of the Python package
23875 for your distribution. The exact name of this package varies among them.
23876 ============================================================================
23878 $as_echo "$as_me: WARNING:
23879 Could not link test program to Python. Maybe the main Python library has been
23880 installed in some non-standard library path. If so, pass it to configure,
23881 via the LDFLAGS environment variable.
23882 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
23883 ============================================================================
23884 You probably have to install the development version of the Python package
23885 for your distribution. The exact name of this package varies among them.
23886 ============================================================================
23895 if test "$PYTHON_VERSION"; then
23896 PYTHONS="$(echo $PYTHONS $PYTHON)"
23897 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
23904 unset PYTHON_VERSION
23905 unset PYTHON_CPPFLAGS
23906 unset PYTHON_LDFLAGS
23907 unset PYTHON_SITE_PKG
23908 unset PYTHON_EXTRA_LIBS
23909 unset PYTHON_EXTRA_LDFLAGS
23910 unset ac_cv_path_PYTHON
23911 unset am_cv_pathless_PYTHON
23912 unset am_cv_python_version
23913 unset am_cv_python_platform
23914 unset am_cv_python_pythondir
23915 unset am_cv_python_pyexecdir
23922 if test -n "$PYTHON"; then
23923 # If the user set $PYTHON, use it and don't search something else.
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= all" >&5
23925 $as_echo_n "checking whether $PYTHON version is >= all... " >&6; }
23927 # split strings by '.' and convert to numeric. Append some zeros
23928 # because we need at least 4 digits for the hex conversion.
23929 # map returns an iterator in Python 3.0 and a list in 2.x
23930 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23932 # xrange is not present in Python 3.0 and range returns an iterator
23933 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23934 sys.exit(sys.hexversion < minverhex)"
23935 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
23936 ($PYTHON -c "$prog") >&5 2>&5
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; then :
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23941 $as_echo "yes" >&6; }
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23944 $as_echo "no" >&6; }
23945 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
23947 am_display_PYTHON=$PYTHON
23949 # Otherwise, try each interpreter until we find one that satisfies
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= all" >&5
23952 $as_echo_n "checking for a Python interpreter with version >= all... " >&6; }
23953 if ${am_cv_pathless_PYTHON+:} false; then :
23954 $as_echo_n "(cached) " >&6
23957 for am_cv_pathless_PYTHON in pythonall none; do
23958 test "$am_cv_pathless_PYTHON" = none && break
23960 # split strings by '.' and convert to numeric. Append some zeros
23961 # because we need at least 4 digits for the hex conversion.
23962 # map returns an iterator in Python 3.0 and a list in 2.x
23963 minver = list(map(int, 'all'.split('.'))) + [0, 0, 0]
23965 # xrange is not present in Python 3.0 and range returns an iterator
23966 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
23967 sys.exit(sys.hexversion < minverhex)"
23968 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
23969 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }; then :
23977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
23978 $as_echo "$am_cv_pathless_PYTHON" >&6; }
23979 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
23980 if test "$am_cv_pathless_PYTHON" = none; then
23983 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
23984 set dummy $am_cv_pathless_PYTHON; ac_word=$2
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23986 $as_echo_n "checking for $ac_word... " >&6; }
23987 if ${ac_cv_path_PYTHON+:} false; then :
23988 $as_echo_n "(cached) " >&6
23992 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
23995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23996 for as_dir in $PATH
23999 test -z "$as_dir" && as_dir=.
24000 for ac_exec_ext in '' $ac_executable_extensions; do
24001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24002 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24013 PYTHON=$ac_cv_path_PYTHON
24014 if test -n "$PYTHON"; then
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24016 $as_echo "$PYTHON" >&6; }
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24024 am_display_PYTHON=$am_cv_pathless_PYTHON
24028 if test "$PYTHON" = :; then
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
24034 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
24035 if ${am_cv_python_version+:} false; then :
24036 $as_echo_n "(cached) " >&6
24038 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
24041 $as_echo "$am_cv_python_version" >&6; }
24042 PYTHON_VERSION=$am_cv_python_version
24046 PYTHON_PREFIX='${prefix}'
24048 PYTHON_EXEC_PREFIX='${exec_prefix}'
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
24053 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
24054 if ${am_cv_python_platform+:} false; then :
24055 $as_echo_n "(cached) " >&6
24057 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
24060 $as_echo "$am_cv_python_platform" >&6; }
24061 PYTHON_PLATFORM=$am_cv_python_platform
24064 # Just factor out some code duplication.
24065 am_python_setup_sysconfig="\
24067 # Prefer sysconfig over distutils.sysconfig, for better compatibility
24068 # with python 3.x. See automake bug#10227.
24071 except ImportError:
24072 can_use_sysconfig = 0
24074 can_use_sysconfig = 1
24075 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
24076 # <https://github.com/pypa/virtualenv/issues/118>
24078 from platform import python_implementation
24079 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
24080 can_use_sysconfig = 0
24081 except ImportError:
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
24086 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
24087 if ${am_cv_python_pythondir+:} false; then :
24088 $as_echo_n "(cached) " >&6
24090 if test "x$prefix" = xNONE
24092 am_py_prefix=$ac_default_prefix
24094 am_py_prefix=$prefix
24096 am_cv_python_pythondir=`$PYTHON -c "
24097 $am_python_setup_sysconfig
24098 if can_use_sysconfig:
24099 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
24101 from distutils import sysconfig
24102 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
24103 sys.stdout.write(sitedir)"`
24104 case $am_cv_python_pythondir in
24106 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
24107 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
24110 case $am_py_prefix in
24113 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
24121 $as_echo "$am_cv_python_pythondir" >&6; }
24122 pythondir=$am_cv_python_pythondir
24126 pkgpythondir=\${pythondir}/$PACKAGE
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
24130 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
24131 if ${am_cv_python_pyexecdir+:} false; then :
24132 $as_echo_n "(cached) " >&6
24134 if test "x$exec_prefix" = xNONE
24136 am_py_exec_prefix=$am_py_prefix
24138 am_py_exec_prefix=$exec_prefix
24140 am_cv_python_pyexecdir=`$PYTHON -c "
24141 $am_python_setup_sysconfig
24142 if can_use_sysconfig:
24143 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
24145 from distutils import sysconfig
24146 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
24147 sys.stdout.write(sitedir)"`
24148 case $am_cv_python_pyexecdir in
24149 $am_py_exec_prefix*)
24150 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
24151 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
24154 case $am_py_exec_prefix in
24157 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
24165 $as_echo "$am_cv_python_pyexecdir" >&6; }
24166 pyexecdir=$am_cv_python_pyexecdir
24170 pkgpyexecdir=\${pyexecdir}/$PACKAGE
24176 # Allow the use of a (user set) custom python version
24180 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
24181 set dummy python$PYTHON_VERSION; ac_word=$2
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24183 $as_echo_n "checking for $ac_word... " >&6; }
24184 if ${ac_cv_path_PYTHON+:} false; then :
24185 $as_echo_n "(cached) " >&6
24189 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
24192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24193 for as_dir in $PATH
24196 test -z "$as_dir" && as_dir=.
24197 for ac_exec_ext in '' $ac_executable_extensions; do
24198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24199 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
24200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24210 PYTHON=$ac_cv_path_PYTHON
24211 if test -n "$PYTHON"; then
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
24213 $as_echo "$PYTHON" >&6; }
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24220 if test -z "$PYTHON"; then
24221 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
24226 # Check for a version of Python >= 2.1.0
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
24229 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
24230 ac_supports_python_ver=`$PYTHON -c "import sys; \
24231 ver = sys.version.split ()[0]; \
24232 print (ver >= '2.1.0')"`
24233 if test "$ac_supports_python_ver" != "True"; then
24234 if test -z "$PYTHON_NOVERSIONCHECK"; then
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24236 $as_echo "no" >&6; }
24237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24240 This version of the AC_PYTHON_DEVEL macro
24241 doesn't work properly with versions of Python before
24242 2.1.0. You may need to re-run configure, setting the
24243 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
24244 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
24245 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
24246 to something else than an empty string.
24248 See \`config.log' for more details" "$LINENO" 5; }
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
24251 $as_echo "skip at user request" >&6; }
24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24255 $as_echo "yes" >&6; }
24259 # if the macro parameter ``version'' is set, honour it
24261 if test -n ""; then
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
24263 $as_echo_n "checking for a version of Python ... " >&6; }
24264 ac_supports_python_ver=`$PYTHON -c "import sys; \
24265 ver = sys.version.split ()[0]; \
24267 if test "$ac_supports_python_ver" = "True"; then
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24269 $as_echo "yes" >&6; }
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24272 $as_echo "no" >&6; }
24273 as_fn_error $? "this package requires Python .
24274 If you have it installed, but it isn't the default Python
24275 interpreter in your system path, please pass the PYTHON_VERSION
24276 variable to configure. See \`\`configure --help'' for reference.
24283 # Check if you have distutils, else fail
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
24286 $as_echo_n "checking for the distutils Python package... " >&6; }
24287 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
24288 if test -z "$ac_distutils_result"; then
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24290 $as_echo "yes" >&6; }
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24293 $as_echo "no" >&6; }
24294 as_fn_error $? "cannot import Python module \"distutils\".
24295 Please check your Python installation. The error was:
24296 $ac_distutils_result" "$LINENO" 5
24301 # Check for Python include path
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
24304 $as_echo_n "checking for Python include path... " >&6; }
24305 if test -z "$PYTHON_CPPFLAGS"; then
24306 python_path=`$PYTHON -c "import distutils.sysconfig; \
24307 print (distutils.sysconfig.get_python_inc ());"`
24308 plat_python_path=`$PYTHON -c "import distutils.sysconfig; \
24309 print (distutils.sysconfig.get_python_inc (plat_specific=1));"`
24310 if test -n "${python_path}"; then
24311 if test "${plat_python_path}" != "${python_path}"; then
24312 python_path="-I$python_path -I$plat_python_path"
24314 python_path="-I$python_path"
24317 PYTHON_CPPFLAGS=$python_path
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
24320 $as_echo "$PYTHON_CPPFLAGS" >&6; }
24324 # Check for Python library path
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
24327 $as_echo_n "checking for Python library path... " >&6; }
24328 if test -z "$PYTHON_LDFLAGS"; then
24329 # (makes two attempts to ensure we've got a version number
24330 # from the interpreter)
24331 ac_python_version=`cat<<EOD | $PYTHON -
24333 # join all versioning strings, on some systems
24334 # major/minor numbers could be in different list elements
24335 from distutils.sysconfig import *
24336 e = get_config_var('VERSION')
24341 if test -z "$ac_python_version"; then
24342 if test -n "$PYTHON_VERSION"; then
24343 ac_python_version=$PYTHON_VERSION
24345 ac_python_version=`$PYTHON -c "import sys; \
24346 print (sys.version[:3])"`
24350 # Make the versioning information available to the compiler
24352 # JW: We don't need it and it interferes with the hack
24353 # to detect multiple Pyhton versions
24354 #AC_DEFINE_UNQUOTED([HAVE_PYTHON], ["$ac_python_version"],
24355 # [If available, contains the Python version number currently in use.])
24357 # First, the library directory:
24358 ac_python_libdir=`cat<<EOD | $PYTHON -
24360 # There should be only one
24361 import distutils.sysconfig
24362 e = distutils.sysconfig.get_config_var('LIBDIR')
24367 # Now, for the library:
24368 ac_python_library=`cat<<EOD | $PYTHON -
24370 import distutils.sysconfig
24371 c = distutils.sysconfig.get_config_vars()
24372 if 'LDVERSION' in c:
24373 print ('python'+c['LDVERSION'])
24375 print ('python'+c['VERSION'])
24378 # This small piece shamelessly adapted from PostgreSQL python macro;
24379 # credits goes to momjian, I think. I'd like to put the right name
24380 # in the credits, if someone can point me in the right direction... ?
24382 if test -n "$ac_python_libdir" -a -n "$ac_python_library"
24384 # use the official shared library
24385 ac_python_library=`echo "$ac_python_library" | sed "s/^lib//"`
24386 PYTHON_LDFLAGS="-L$ac_python_libdir -l$ac_python_library"
24388 # old way: use libpython from python_configdir
24389 ac_python_libdir=`$PYTHON -c \
24390 "from distutils.sysconfig import get_python_lib as f; \
24392 print (os.path.join(f(plat_specific=1, standard_lib=1), 'config'));"`
24393 PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
24396 if test -z "PYTHON_LDFLAGS"; then
24398 Cannot determine location of your Python DSO. Please check it was installed with
24399 dynamic libraries enabled, or try setting PYTHON_LDFLAGS by hand.
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
24404 $as_echo "$PYTHON_LDFLAGS" >&6; }
24408 # Check for site packages
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
24411 $as_echo_n "checking for Python site-packages path... " >&6; }
24412 if test -z "$PYTHON_SITE_PKG"; then
24413 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
24414 print (distutils.sysconfig.get_python_lib(0,0));"`
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
24417 $as_echo "$PYTHON_SITE_PKG" >&6; }
24421 # libraries which must be linked in when embedding
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
24424 $as_echo_n "checking python extra libraries... " >&6; }
24425 if test -z "$PYTHON_EXTRA_LIBS"; then
24426 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
24427 conf = distutils.sysconfig.get_config_var; \
24428 print (conf('LIBS') + ' ' + conf('SYSLIBS'))"`
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
24431 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
24435 # linking flags needed when embedding
24437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
24438 $as_echo_n "checking python extra linking flags... " >&6; }
24439 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
24440 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
24441 conf = distutils.sysconfig.get_config_var; \
24442 print (conf('LINKFORSHARED'))"`
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
24445 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
24449 # final check to see if everything compiles alright
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
24452 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
24453 # save current global flags
24454 ac_save_LIBS="$LIBS"
24455 ac_save_CPPFLAGS="$CPPFLAGS"
24456 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS $PYTHON_EXTRA_LDFLAGS $PYTHON_EXTRA_LIBS"
24457 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
24459 ac_cpp='$CPP $CPPFLAGS'
24460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24465 /* end confdefs.h. */
24467 #include <Python.h>
24477 if ac_fn_c_try_link "$LINENO"; then :
24482 rm -f core conftest.err conftest.$ac_objext \
24483 conftest$ac_exeext conftest.$ac_ext
24485 ac_cpp='$CPP $CPPFLAGS'
24486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24490 # turn back to default flags
24491 CPPFLAGS="$ac_save_CPPFLAGS"
24492 LIBS="$ac_save_LIBS"
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
24495 $as_echo "$pythonexists" >&6; }
24497 if test ! "x$pythonexists" = "xyes"; then
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
24499 Could not link test program to Python. Maybe the main Python library has been
24500 installed in some non-standard library path. If so, pass it to configure,
24501 via the LDFLAGS environment variable.
24502 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24503 ============================================================================
24504 You probably have to install the development version of the Python package
24505 for your distribution. The exact name of this package varies among them.
24506 ============================================================================
24508 $as_echo "$as_me: WARNING:
24509 Could not link test program to Python. Maybe the main Python library has been
24510 installed in some non-standard library path. If so, pass it to configure,
24511 via the LDFLAGS environment variable.
24512 Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
24513 ============================================================================
24514 You probably have to install the development version of the Python package
24515 for your distribution. The exact name of this package varies among them.
24516 ============================================================================
24525 if test "$PYTHON_VERSION"; then
24526 PYTHONS="$(echo $PYTHONS $PYTHON)"
24527 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS $PYTHON_VERSION)"
24536 # Recover some values lost in the second attempt to find Python.
24537 PYTHON="$(echo $PYTHONS | cut -d ' ' -f 1)"
24538 PYTHON_VERSION="$(echo $PYTHON_VERSIONS | cut -d ' ' -f 1)"
24540 # Remove duplicates.
24541 PYTHONS="$(echo $PYTHONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24542 PYTHON_VERSIONS="$(echo $PYTHON_VERSIONS | tr '[:space:]' '\n' | sort | uniq | tr '\n' ' ' | sed -e 's/ $//')"
24544 if test "$PYTHON_VERSIONS"; then
24545 enabled_languages_v=$(echo $enabled_languages | sed -Ee "s/python[23]?/python ($PYTHON_VERSIONS)/")
24546 enabled_languages=$(echo $enabled_languages | sed -Ee "s/python[23]?/python/")
24548 if test "$explicit_languages" = "1"; then
24551 *** Please install the python development packages.
24554 enabled_languages=$(echo $enabled_languages | sed 's/python//')
24563 ENABLED_LANGUAGES=$enabled_languages
24567 # Provide information about the build.
24569 BUILD_REVISION="1021c864"
24572 cat >>confdefs.h <<_ACEOF
24573 #define BUILD_REVISION "$BUILD_REVISION"
24577 BUILD_VERSION=`echo "$PACKAGE_VERSION" | sed 's/\([0-9.]*\).*/\1./'`
24578 BUILD_VERSION="${BUILD_VERSION}4129"
24579 BUILD_FILEVERSION=`echo "${BUILD_VERSION}" | tr . ,`
24583 # Check whether --enable-build-timestamp was given.
24584 if test "${enable_build_timestamp+set}" = set; then :
24585 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
24586 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
24588 BUILD_TIMESTAMP="$enableval"
24591 BUILD_TIMESTAMP="<none>"
24596 cat >>confdefs.h <<_ACEOF
24597 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
24603 # Options to disable some regression tests
24605 run_gpgconf_test="yes"
24606 # Check whether --enable-gpgconf-test was given.
24607 if test "${enable_gpgconf_test+set}" = set; then :
24608 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
24611 if test "$run_gpgconf_test" = "yes"; then
24612 RUN_GPGCONF_TESTS_TRUE=
24613 RUN_GPGCONF_TESTS_FALSE='#'
24615 RUN_GPGCONF_TESTS_TRUE='#'
24616 RUN_GPGCONF_TESTS_FALSE=
24621 # Check whether --enable-gpg-test was given.
24622 if test "${enable_gpg_test+set}" = set; then :
24623 enableval=$enable_gpg_test; run_gpg_test=$enableval
24626 if test "$run_gpg_test" = "yes"; then
24627 RUN_GPG_TESTS_TRUE=
24628 RUN_GPG_TESTS_FALSE='#'
24630 RUN_GPG_TESTS_TRUE='#'
24631 RUN_GPG_TESTS_FALSE=
24635 run_gpgsm_test="yes"
24636 # Check whether --enable-gpgsm-test was given.
24637 if test "${enable_gpgsm_test+set}" = set; then :
24638 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
24641 if test "$run_gpgsm_test" = "yes"; then
24642 RUN_GPGSM_TESTS_TRUE=
24643 RUN_GPGSM_TESTS_FALSE='#'
24645 RUN_GPGSM_TESTS_TRUE='#'
24646 RUN_GPGSM_TESTS_FALSE=
24651 # Check whether --enable-g13-test was given.
24652 if test "${enable_g13_test+set}" = set; then :
24653 enableval=$enable_g13_test; run_g13_test=$enableval
24656 if test "$run_g13_test" = "yes"; then
24657 RUN_G13_TESTS_TRUE=
24658 RUN_G13_TESTS_FALSE='#'
24660 RUN_G13_TESTS_TRUE='#'
24661 RUN_G13_TESTS_FALSE=
24666 # Checks for header files.
24670 for ac_header in $ac_header_list
24672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24676 cat >>confdefs.h <<_ACEOF
24677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24707 $as_echo_n "checking for inline... " >&6; }
24708 if ${ac_cv_c_inline+:} false; then :
24709 $as_echo_n "(cached) " >&6
24712 for ac_kw in inline __inline__ __inline; do
24713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24714 /* end confdefs.h. */
24715 #ifndef __cplusplus
24717 static $ac_kw foo_t static_foo () {return 0; }
24718 $ac_kw foo_t foo () {return 0; }
24722 if ac_fn_c_try_compile "$LINENO"; then :
24723 ac_cv_c_inline=$ac_kw
24725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24726 test "$ac_cv_c_inline" != no && break
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24731 $as_echo "$ac_cv_c_inline" >&6; }
24733 case $ac_cv_c_inline in
24736 case $ac_cv_c_inline in
24738 *) ac_val=$ac_cv_c_inline;;
24740 cat >>confdefs.h <<_ACEOF
24741 #ifndef __cplusplus
24742 #define inline $ac_val
24748 # The cast to long int works around a bug in the HP C Compiler
24749 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24750 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24751 # This bug is HP SR number 8606223364.
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
24753 $as_echo_n "checking size of unsigned int... " >&6; }
24754 if ${ac_cv_sizeof_unsigned_int+:} false; then :
24755 $as_echo_n "(cached) " >&6
24757 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
24760 if test "$ac_cv_type_unsigned_int" = yes; then
24761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24763 as_fn_error 77 "cannot compute sizeof (unsigned int)
24764 See \`config.log' for more details" "$LINENO" 5; }
24766 ac_cv_sizeof_unsigned_int=0
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
24772 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24776 cat >>confdefs.h <<_ACEOF
24777 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24781 # Check whether --enable-largefile was given.
24782 if test "${enable_largefile+set}" = set; then :
24783 enableval=$enable_largefile;
24786 if test "$enable_largefile" != no; then
24788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
24789 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
24790 if ${ac_cv_sys_largefile_CC+:} false; then :
24791 $as_echo_n "(cached) " >&6
24793 ac_cv_sys_largefile_CC=no
24794 if test "$GCC" != yes; then
24797 # IRIX 6.2 and later do not support large files by default,
24798 # so use the C compiler's -n32 option if that helps.
24799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24800 /* end confdefs.h. */
24801 #include <sys/types.h>
24802 /* Check that off_t can represent 2**63 - 1 correctly.
24803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24804 since some C++ compilers masquerading as C compilers
24805 incorrectly reject 9223372036854775807. */
24806 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24808 && LARGE_OFF_T % 2147483647 == 1)
24818 if ac_fn_c_try_compile "$LINENO"; then :
24821 rm -f core conftest.err conftest.$ac_objext
24823 if ac_fn_c_try_compile "$LINENO"; then :
24824 ac_cv_sys_largefile_CC=' -n32'; break
24826 rm -f core conftest.err conftest.$ac_objext
24830 rm -f conftest.$ac_ext
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
24834 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
24835 if test "$ac_cv_sys_largefile_CC" != no; then
24836 CC=$CC$ac_cv_sys_largefile_CC
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24840 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
24841 if ${ac_cv_sys_file_offset_bits+:} false; then :
24842 $as_echo_n "(cached) " >&6
24845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24846 /* end confdefs.h. */
24847 #include <sys/types.h>
24848 /* Check that off_t can represent 2**63 - 1 correctly.
24849 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24850 since some C++ compilers masquerading as C compilers
24851 incorrectly reject 9223372036854775807. */
24852 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24853 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24854 && LARGE_OFF_T % 2147483647 == 1)
24864 if ac_fn_c_try_compile "$LINENO"; then :
24865 ac_cv_sys_file_offset_bits=no; break
24867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24869 /* end confdefs.h. */
24870 #define _FILE_OFFSET_BITS 64
24871 #include <sys/types.h>
24872 /* Check that off_t can represent 2**63 - 1 correctly.
24873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24874 since some C++ compilers masquerading as C compilers
24875 incorrectly reject 9223372036854775807. */
24876 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24878 && LARGE_OFF_T % 2147483647 == 1)
24888 if ac_fn_c_try_compile "$LINENO"; then :
24889 ac_cv_sys_file_offset_bits=64; break
24891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24892 ac_cv_sys_file_offset_bits=unknown
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24897 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24898 case $ac_cv_sys_file_offset_bits in #(
24901 cat >>confdefs.h <<_ACEOF
24902 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24907 if test $ac_cv_sys_file_offset_bits = unknown; then
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
24909 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
24910 if ${ac_cv_sys_large_files+:} false; then :
24911 $as_echo_n "(cached) " >&6
24914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24915 /* end confdefs.h. */
24916 #include <sys/types.h>
24917 /* Check that off_t can represent 2**63 - 1 correctly.
24918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24919 since some C++ compilers masquerading as C compilers
24920 incorrectly reject 9223372036854775807. */
24921 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24923 && LARGE_OFF_T % 2147483647 == 1)
24933 if ac_fn_c_try_compile "$LINENO"; then :
24934 ac_cv_sys_large_files=no; break
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24938 /* end confdefs.h. */
24939 #define _LARGE_FILES 1
24940 #include <sys/types.h>
24941 /* Check that off_t can represent 2**63 - 1 correctly.
24942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
24943 since some C++ compilers masquerading as C compilers
24944 incorrectly reject 9223372036854775807. */
24945 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
24946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24947 && LARGE_OFF_T % 2147483647 == 1)
24957 if ac_fn_c_try_compile "$LINENO"; then :
24958 ac_cv_sys_large_files=1; break
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961 ac_cv_sys_large_files=unknown
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24966 $as_echo "$ac_cv_sys_large_files" >&6; }
24967 case $ac_cv_sys_large_files in #(
24970 cat >>confdefs.h <<_ACEOF
24971 #define _LARGE_FILES $ac_cv_sys_large_files
24981 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24982 if test "x$ac_cv_type_off_t" = xyes; then :
24986 cat >>confdefs.h <<_ACEOF
24987 #define off_t long int
24993 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24994 if test "x$ac_cv_type_uintptr_t" = xyes; then :
24996 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24999 for ac_type in 'unsigned int' 'unsigned long int' \
25000 'unsigned long long int'; do
25001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25002 /* end confdefs.h. */
25003 $ac_includes_default
25007 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25008 test_array [0] = 0;
25009 return test_array [0];
25015 if ac_fn_c_try_compile "$LINENO"; then :
25017 cat >>confdefs.h <<_ACEOF
25018 #define uintptr_t $ac_type
25023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25024 test -z "$ac_type" && break
25030 # We require uint64_t
25031 if test "$ac_cv_header_stdint_h" != yes; then
25034 *** No stdint.h and thus no uint64_t type. Can't build this library.
25039 # A simple compile time check in gpgme.h for GNU/Linux systems that
25040 # prevents a file offset bits mismatch between gpgme and the application.
25041 NEED__FILE_OFFSET_BITS=0
25042 if test "$have_w32_system" != yes; then
25043 case "$ac_cv_sys_file_offset_bits" in
25044 "" | no | unknown) ;;
25046 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
25052 # Figure out platform dependent typedefs for gpgme.h
25053 if test "$have_w32_system" = yes; then
25054 INSERT__TYPEDEFS_FOR_GPGME_H="
25056 # include <stdint.h>
25057 typedef int64_t gpgme_off_t;
25058 typedef int64_t gpgme_ssize_t;
25060 typedef long gpgme_off_t;
25061 typedef long gpgme_ssize_t;
25062 #endif /* _WIN32 */"
25063 API__OFF_T="gpgme_off_t"
25064 API__SSIZE_T="gpgme_ssize_t"
25066 INSERT__TYPEDEFS_FOR_GPGME_H="
25067 #include <sys/types.h>
25068 typedef off_t gpgme_off_t;
25069 typedef ssize_t gpgme_ssize_t;"
25071 API__SSIZE_T="ssize_t"
25080 # Checks for compiler features.
25081 if test "$GCC" = yes; then
25082 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
25083 CFLAGS="$CFLAGS -Wno-format-y2k"
25085 # If -Wno-missing-field-initializers is supported we can expect a
25086 # a larger set of warning options.
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
25088 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
25089 _gcc_cflags_save=$CFLAGS
25090 CFLAGS="-Wno-missing-field-initializers"
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 -Wno-missing-field-initializers"
25113 CFLAGS="$CFLAGS -Wno-sign-compare"
25114 CFLAGS="$CFLAGS -Wno-format-zero-length"
25115 CFLAGS="$CFLAGS -Wno-format-truncation"
25116 CFLAGS="$CFLAGS -Wno-sizeof-pointer-div"
25118 if test "$USE_MAINTAINER_MODE" = "yes"; then
25119 if test x"$_gcc_wopt" = xyes ; then
25120 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
25121 CFLAGS="$CFLAGS -Wwrite-strings"
25122 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
25124 CFLAGS="$CFLAGS -Wformat -Wformat-security"
25125 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wno-shadow"
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
25128 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
25129 _gcc_cflags_save=$CFLAGS
25130 CFLAGS="-Wpointer-arith"
25131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25132 /* end confdefs.h. */
25142 if ac_fn_c_try_compile "$LINENO"; then :
25147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
25149 $as_echo "$_gcc_wopt" >&6; }
25150 CFLAGS=$_gcc_cflags_save;
25151 if test x"$_gcc_wopt" = xyes ; then
25152 CFLAGS="$CFLAGS -Wpointer-arith"
25155 if test "$have_w32_system" = yes; then
25156 CFLAGS="$CFLAGS -mms-bitfields"
25160 # Only used for debugging, so no serious test needed (for actual
25161 # functionality you have to test libc as well, this only tests the
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
25164 $as_echo_n "checking for __thread... " >&6; }
25165 if ${gpgme_cv_tls_works+:} false; then :
25166 $as_echo_n "(cached) " >&6
25168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25169 /* end confdefs.h. */
25179 if ac_fn_c_try_compile "$LINENO"; then :
25180 gpgme_cv_tls_works=yes
25182 gpgme_cv_tls_works=no
25184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
25187 $as_echo "$gpgme_cv_tls_works" >&6; }
25188 if test "$gpgme_cv_tls_works" = yes; then
25190 $as_echo "#define HAVE_TLS 1" >>confdefs.h
25195 # Checks for library functions.
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
25197 $as_echo "$as_me: checking for libraries" >&6;}
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
25200 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
25201 if ${ac_cv_sys_largefile_source+:} false; then :
25202 $as_echo_n "(cached) " >&6
25205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25206 /* end confdefs.h. */
25207 #include <sys/types.h> /* for off_t */
25212 int (*fp) (FILE *, off_t, int) = fseeko;
25213 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25218 if ac_fn_c_try_link "$LINENO"; then :
25219 ac_cv_sys_largefile_source=no; break
25221 rm -f core conftest.err conftest.$ac_objext \
25222 conftest$ac_exeext conftest.$ac_ext
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25225 #define _LARGEFILE_SOURCE 1
25226 #include <sys/types.h> /* for off_t */
25231 int (*fp) (FILE *, off_t, int) = fseeko;
25232 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
25237 if ac_fn_c_try_link "$LINENO"; then :
25238 ac_cv_sys_largefile_source=1; break
25240 rm -f core conftest.err conftest.$ac_objext \
25241 conftest$ac_exeext conftest.$ac_ext
25242 ac_cv_sys_largefile_source=unknown
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25247 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25248 case $ac_cv_sys_largefile_source in #(
25251 cat >>confdefs.h <<_ACEOF
25252 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25258 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
25259 # in glibc 2.1.3, but that breaks too many other things.
25260 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
25261 if test $ac_cv_sys_largefile_source != unknown; then
25263 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
25268 # Try to find a thread-safe version of ttyname().
25269 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
25270 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
25276 cat >>confdefs.h <<_ACEOF
25277 #define HAVE_DECL_TTYNAME_R $ac_have_decl
25281 for ac_header in unistd.h
25283 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
25284 if test "x$ac_cv_header_unistd_h" = xyes; then :
25285 cat >>confdefs.h <<_ACEOF
25286 #define HAVE_UNISTD_H 1
25295 if test $ac_cv_have_decl_ttyname_r = no; then
25296 HAVE_DECL_TTYNAME_R=0
25299 for ac_func in ttyname_r
25301 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
25302 if test "x$ac_cv_func_ttyname_r" = xyes; then :
25303 cat >>confdefs.h <<_ACEOF
25304 #define HAVE_TTYNAME_R 1
25310 if test $ac_cv_func_ttyname_r = no; then
25312 case " $LIBOBJS " in
25313 *" ttyname_r.$ac_objext "* ) ;;
25314 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25319 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
25324 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
25325 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
25326 $as_echo_n "(cached) " >&6
25328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329 /* end confdefs.h. */
25330 #include <stddef.h>
25331 #include <unistd.h>
25335 *ttyname_r (0, NULL, 0);
25341 if ac_fn_c_try_compile "$LINENO"; then :
25342 gnupg_cv_func_ttyname_r_posix=no
25344 gnupg_cv_func_ttyname_r_posix=yes
25346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
25350 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
25351 if test $gnupg_cv_func_ttyname_r_posix = no; then
25352 case " $LIBOBJS " in
25353 *" ttyname_r.$ac_objext "* ) ;;
25354 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25358 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25360 elif test "$have_android_system" = yes; then
25361 # Android has ttyname and ttyname_r but they are only stubs and
25362 # print an annoying warning message. Thus we need to replace
25363 # ttyname_r with our own dummy function.
25364 case " $LIBOBJS " in
25365 *" ttyname_r.$ac_objext "* ) ;;
25366 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25370 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25374 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
25378 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
25379 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
25380 $as_echo_n "(cached) " >&6
25384 # Guess no on Solaris.
25385 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25386 # Guess no on OSF/1.
25387 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
25388 # Guess yes otherwise.
25389 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
25391 if test "$cross_compiling" = yes; then :
25394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25395 /* end confdefs.h. */
25398 #include <unistd.h>
25404 char buf[31]; /* use any size < 128 here */
25406 fd = open ("/dev/tty", O_RDONLY);
25409 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
25411 else if (ttyname_r (fd, buf, 1) == 0)
25416 if ac_fn_c_try_run "$LINENO"; then :
25417 gnupg_cv_func_ttyname_r_works=yes
25420 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
25423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25424 conftest.$ac_objext conftest.beam conftest.$ac_ext
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
25430 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
25431 case "$gnupg_cv_func_ttyname_r_works" in
25433 *) case " $LIBOBJS " in
25434 *" ttyname_r.$ac_objext "* ) ;;
25435 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
25439 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
25442 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
25449 if test "$ac_cv_func_ttyname_r" != yes; then
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25452 *** ttyname() is not thread-safe and ttyname_r() does not exist
25454 $as_echo "$as_me: WARNING:
25456 *** ttyname() is not thread-safe and ttyname_r() does not exist
25460 # Try to find a thread-safe version of getenv().
25461 have_thread_safe_getenv=no
25463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
25464 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
25465 if ${ac_cv_gnu_library_2_1+:} false; then :
25466 $as_echo_n "(cached) " >&6
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25471 #include <features.h>
25472 #ifdef __GNU_LIBRARY__
25473 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
25479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25480 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
25481 ac_cv_gnu_library_2_1=yes
25483 ac_cv_gnu_library_2_1=no
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
25491 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
25493 GLIBC21="$ac_cv_gnu_library_2_1"
25496 if test $GLIBC21 = yes -o $have_w32_system = yes; then
25497 have_thread_safe_getenv=yes
25499 if test $have_thread_safe_getenv = yes; then
25501 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
25505 for ac_func in getenv_r
25507 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
25508 if test "x$ac_cv_func_getenv_r" = xyes; then :
25509 cat >>confdefs.h <<_ACEOF
25510 #define HAVE_GETENV_R 1
25516 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25519 *** getenv() is not thread-safe and getenv_r() does not exist
25521 $as_echo "$as_me: WARNING:
25523 *** getenv() is not thread-safe and getenv_r() does not exist
25527 # For converting time strings to seconds since Epoch, we need the timegm
25529 for ac_func in timegm
25531 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25532 if test "x$ac_cv_func_timegm" = xyes; then :
25533 cat >>confdefs.h <<_ACEOF
25534 #define HAVE_TIMEGM 1
25540 if test "$ac_cv_func_timegm" != yes; then
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25543 *** timegm() not available - a non-thread-safe kludge will be used
25544 *** and the TZ variable might be changed at runtime.
25546 $as_echo "$as_me: WARNING:
25548 *** timegm() not available - a non-thread-safe kludge will be used
25549 *** and the TZ variable might be changed at runtime.
25553 for ac_func in setlocale
25555 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
25556 if test "x$ac_cv_func_setlocale" = xyes; then :
25557 cat >>confdefs.h <<_ACEOF
25558 #define HAVE_SETLOCALE 1
25565 # Checking for libgpg-error.
25568 gpg_error_config_prefix=""
25570 # Check whether --with-libgpg-error-prefix was given.
25571 if test "${with_libgpg_error_prefix+set}" = set; then :
25572 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
25577 # Check whether --with-gpg-error-prefix was given.
25578 if test "${with_gpg_error_prefix+set}" = set; then :
25579 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
25583 if test x"${GPG_ERROR_CONFIG}" = x ; then
25584 if test x"${gpg_error_config_prefix}" != x ; then
25585 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
25587 case "${SYSROOT}" in
25589 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
25590 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
25597 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
25603 # Extract the first word of "gpg-error-config", so it can be a program name with args.
25604 set dummy gpg-error-config; ac_word=$2
25605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25606 $as_echo_n "checking for $ac_word... " >&6; }
25607 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
25608 $as_echo_n "(cached) " >&6
25610 case $GPG_ERROR_CONFIG in
25612 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
25615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25616 for as_dir in $PATH
25619 test -z "$as_dir" && as_dir=.
25620 for ac_exec_ext in '' $ac_executable_extensions; do
25621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25622 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25630 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
25634 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
25635 if test -n "$GPG_ERROR_CONFIG"; then
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
25637 $as_echo "$GPG_ERROR_CONFIG" >&6; }
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25640 $as_echo "no" >&6; }
25644 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
25647 # Extract the first word of "gpgrt-config", so it can be a program name with args.
25648 set dummy gpgrt-config; ac_word=$2
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25650 $as_echo_n "checking for $ac_word... " >&6; }
25651 if ${ac_cv_path_GPGRT_CONFIG+:} false; then :
25652 $as_echo_n "(cached) " >&6
25654 case $GPGRT_CONFIG in
25656 ac_cv_path_GPGRT_CONFIG="$GPGRT_CONFIG" # Let the user override the test with a path.
25659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25660 as_dummy="$prefix/bin:$PATH"
25661 for as_dir in $as_dummy
25664 test -z "$as_dir" && as_dir=.
25665 for ac_exec_ext in '' $ac_executable_extensions; do
25666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25667 ac_cv_path_GPGRT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25675 test -z "$ac_cv_path_GPGRT_CONFIG" && ac_cv_path_GPGRT_CONFIG="no"
25679 GPGRT_CONFIG=$ac_cv_path_GPGRT_CONFIG
25680 if test -n "$GPGRT_CONFIG"; then
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPGRT_CONFIG" >&5
25682 $as_echo "$GPGRT_CONFIG" >&6; }
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25685 $as_echo "no" >&6; }
25689 if test "$GPGRT_CONFIG" != "no"; then
25690 # Determine gpgrt_libdir
25692 # Get the prefix of gpgrt-config assuming it's something like:
25693 # <PREFIX>/bin/gpgrt-config
25694 gpgrt_prefix=${GPGRT_CONFIG%/*/*}
25695 possible_libdir1=${gpgrt_prefix}/lib
25696 # Determine by using system libdir-format with CC, it's like:
25697 # Normal style: /usr/lib
25698 # GNU cross style: /usr/<triplet>/lib
25699 # Debian style: /usr/lib/<multiarch-name>
25700 # Fedora/openSUSE style: /usr/lib, /usr/lib32 or /usr/lib64
25701 # It is assumed that CC is specified to the one of host on cross build.
25702 if libdir_candidates=$(${CC:-cc} -print-search-dirs | \
25703 sed -n -e "/^libraries/{s/libraries: =//;s/:/\\
25705 # From the output of -print-search-dirs, select valid pkgconfig dirs.
25706 libdir_candidates=$(for dir in $libdir_candidates; do
25707 if p=$(cd $dir 2>/dev/null && pwd); then
25708 test -d "$p/pkgconfig" && echo $p;
25712 for possible_libdir0 in $libdir_candidates; do
25713 # possible_libdir0:
25714 # Fallback candidate, the one of system-installed (by $CC)
25715 # (/usr/<triplet>/lib, /usr/lib/<multiarch-name> or /usr/lib32)
25716 # possible_libdir1:
25717 # Another candidate, user-locally-installed
25718 # (<gpgrt_prefix>/lib)
25721 # (<gpgrt_prefix>/<triplet>/lib,
25722 # <gpgrt_prefix>/lib/<multiarch-name> or <gpgrt_prefix>/lib32)
25723 if test "${possible_libdir0##*/}" = "lib"; then
25724 possible_prefix0=${possible_libdir0%/lib}
25725 possible_prefix0_triplet=${possible_prefix0##*/}
25726 if test -z "$possible_prefix0_triplet"; then
25729 possible_libdir2=${gpgrt_prefix}/$possible_prefix0_triplet/lib
25731 possible_prefix0=${possible_libdir0%%/lib*}
25732 possible_libdir2=${gpgrt_prefix}${possible_libdir0#$possible_prefix0}
25734 if test -f ${possible_libdir2}/pkgconfig/gpg-error.pc; then
25735 gpgrt_libdir=${possible_libdir2}
25736 elif test -f ${possible_libdir1}/pkgconfig/gpg-error.pc; then
25737 gpgrt_libdir=${possible_libdir1}
25738 elif test -f ${possible_libdir0}/pkgconfig/gpg-error.pc; then
25739 gpgrt_libdir=${possible_libdir0}
25741 if test -n "$gpgrt_libdir"; then break; fi
25744 # When we cannot determine system libdir-format, use this:
25745 gpgrt_libdir=${possible_libdir1}
25751 if test -n "$gpgrt_libdir"; then
25752 GPGRT_CONFIG="$GPGRT_CONFIG --libdir=$gpgrt_libdir"
25753 if $GPGRT_CONFIG gpg-error >/dev/null 2>&1; then
25754 GPG_ERROR_CONFIG="$GPGRT_CONFIG gpg-error"
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&5
25756 $as_echo "$as_me: Use gpgrt-config with $gpgrt_libdir as gpg-error-config" >&6;}
25757 gpg_error_config_version=`$GPG_ERROR_CONFIG --modversion`
25761 elif test "$GPG_ERROR_CONFIG" != "no"; then
25762 gpg_error_config_version=`$GPG_ERROR_CONFIG --version`
25764 if test "$GPG_ERROR_CONFIG" != "no"; then
25765 req_major=`echo $min_gpg_error_version | \
25766 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
25767 req_minor=`echo $min_gpg_error_version | \
25768 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
25769 major=`echo $gpg_error_config_version | \
25770 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
25771 minor=`echo $gpg_error_config_version | \
25772 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
25773 if test "$major" -gt "$req_major"; then
25776 if test "$major" -eq "$req_major"; then
25777 if test "$minor" -ge "$req_minor"; then
25783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
25784 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
25785 if test $ok = yes; then
25786 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
25787 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
25788 if test -z "$GPGRT_CONFIG"; then
25789 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --mt --cflags 2>/dev/null`
25790 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --mt --libs 2>/dev/null`
25792 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG --variable=mtcflags 2>/dev/null`
25793 GPG_ERROR_MT_CFLAGS="$GPG_ERROR_CFLAGS${GPG_ERROR_CFLAGS:+ }$GPG_ERROR_MT_CFLAGS"
25794 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG --variable=mtlibs 2>/dev/null`
25795 GPG_ERROR_MT_LIBS="$GPG_ERROR_LIBS${GPG_ERROR_LIBS:+ }$GPG_ERROR_MT_LIBS"
25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
25798 $as_echo "yes ($gpg_error_config_version)" >&6; }
25800 if test -z "$GPGRT_CONFIG"; then
25801 gpg_error_config_host=`$GPG_ERROR_CONFIG --host 2>/dev/null || echo none`
25803 gpg_error_config_host=`$GPG_ERROR_CONFIG --variable=host 2>/dev/null || echo none`
25805 if test x"$gpg_error_config_host" != xnone ; then
25806 if test x"$gpg_error_config_host" != x"$host" ; then
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
25809 *** The config script \"$GPG_ERROR_CONFIG\" was
25810 *** built for $gpg_error_config_host and thus may not match the
25811 *** used host $host.
25812 *** You may want to use the configure option --with-libgpg-error-prefix
25813 *** to specify a matching config script or use \$SYSROOT.
25815 $as_echo "$as_me: WARNING:
25817 *** The config script \"$GPG_ERROR_CONFIG\" was
25818 *** built for $gpg_error_config_host and thus may not match the
25819 *** used host $host.
25820 *** You may want to use the configure option --with-libgpg-error-prefix
25821 *** to specify a matching config script or use \$SYSROOT.
25823 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
25827 GPG_ERROR_CFLAGS=""
25829 GPG_ERROR_MT_CFLAGS=""
25830 GPG_ERROR_MT_LIBS=""
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832 $as_echo "no" >&6; }
25841 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
25844 # And for libassuan.
25848 # Check whether --with-libassuan-prefix was given.
25849 if test "${with_libassuan_prefix+set}" = set; then :
25850 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
25852 libassuan_config_prefix=""
25855 if test x$libassuan_config_prefix != x ; then
25856 if test x${LIBASSUAN_CONFIG+set} != xset ; then
25857 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
25861 use_gpgrt_config=""
25862 if test x"${LIBASSUAN_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
25863 if $GPGRT_CONFIG libassuan --exists; then
25864 LIBASSUAN_CONFIG="$GPGRT_CONFIG libassuan"
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libassuan-config" >&5
25866 $as_echo "$as_me: Use gpgrt-config as libassuan-config" >&6;}
25867 use_gpgrt_config=yes
25870 if test -z "$use_gpgrt_config"; then
25871 # Extract the first word of "libassuan-config", so it can be a program name with args.
25872 set dummy libassuan-config; ac_word=$2
25873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25874 $as_echo_n "checking for $ac_word... " >&6; }
25875 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
25876 $as_echo_n "(cached) " >&6
25878 case $LIBASSUAN_CONFIG in
25880 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
25883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25884 for as_dir in $PATH
25887 test -z "$as_dir" && as_dir=.
25888 for ac_exec_ext in '' $ac_executable_extensions; do
25889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25890 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25898 test -z "$ac_cv_path_LIBASSUAN_CONFIG" && ac_cv_path_LIBASSUAN_CONFIG="no"
25902 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
25903 if test -n "$LIBASSUAN_CONFIG"; then
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
25905 $as_echo "$LIBASSUAN_CONFIG" >&6; }
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25908 $as_echo "no" >&6; }
25914 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
25915 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
25916 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
25917 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
25919 req_libassuan_api=0
25920 min_libassuan_version="$tmp"
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
25924 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
25926 if test "$LIBASSUAN_CONFIG" != "no"; then
25927 req_major=`echo $min_libassuan_version | \
25928 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
25929 req_minor=`echo $min_libassuan_version | \
25930 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
25931 req_micro=`echo $min_libassuan_version | \
25932 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
25934 if test -z "$use_gpgrt_config"; then
25935 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
25937 libassuan_config_version=`$LIBASSUAN_CONFIG --modversion`
25939 major=`echo $libassuan_config_version | \
25940 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
25941 minor=`echo $libassuan_config_version | \
25942 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
25943 micro=`echo $libassuan_config_version | \
25944 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
25946 if test "$major" -gt "$req_major"; then
25949 if test "$major" -eq "$req_major"; then
25950 if test "$minor" -gt "$req_minor"; then
25953 if test "$minor" -eq "$req_minor"; then
25954 if test "$micro" -ge "$req_micro"; then
25963 if test $ok = yes; then
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
25965 $as_echo "yes ($libassuan_config_version)" >&6; }
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25968 $as_echo "no" >&6; }
25971 if test $ok = yes; then
25972 if test "$req_libassuan_api" -gt 0 ; then
25973 if test -z "$use_gpgrt_config"; then
25974 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
25976 tmp=`$LIBASSUAN_CONFIG --variable=api_version 2>/dev/null || echo 0`
25978 if test "$tmp" -gt 0 ; then
25979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
25980 $as_echo_n "checking LIBASSUAN API version... " >&6; }
25981 if test "$req_libassuan_api" -eq "$tmp" ; then
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
25983 $as_echo "okay" >&6; }
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
25987 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
25993 if test $ok = yes; then
25994 if test x"$host" != x ; then
25995 if test -z "$use_gpgrt_config"; then
25996 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
25998 libassuan_config_host=`$LIBASSUAN_CONFIG --variable=host 2>/dev/null || echo none`
26000 if test x"$libassuan_config_host" != xnone ; then
26001 if test x"$libassuan_config_host" != x"$host" ; then
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26004 *** The config script \"$LIBASSUAN_CONFIG\" was
26005 *** built for $libassuan_config_host and thus may not match the
26006 *** used host $host.
26007 *** You may want to use the configure option --with-libassuan-prefix
26008 *** to specify a matching config script.
26010 $as_echo "$as_me: WARNING:
26012 *** The config script \"$LIBASSUAN_CONFIG\" was
26013 *** built for $libassuan_config_host and thus may not match the
26014 *** used host $host.
26015 *** You may want to use the configure option --with-libassuan-prefix
26016 *** to specify a matching config script.
26023 if test $ok = yes; then
26024 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG --cflags`
26025 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG --libs`
26028 LIBASSUAN_CFLAGS=""
26035 if test "$have_libassuan" = "yes"; then
26037 cat >>confdefs.h <<_ACEOF
26038 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
26048 # Check for getgid etc
26049 for ac_func in getgid getegid closefrom
26051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26054 cat >>confdefs.h <<_ACEOF
26055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26063 # Replacement functions.
26064 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
26065 if test "x$ac_cv_func_stpcpy" = xyes; then :
26066 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
26069 case " $LIBOBJS " in
26070 *" stpcpy.$ac_objext "* ) ;;
26071 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
26078 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
26079 if test "x$ac_cv_func_setenv" = xyes; then :
26080 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
26083 case " $LIBOBJS " in
26084 *" setenv.$ac_objext "* ) ;;
26085 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
26093 # Assuan check for descriptor passing.
26094 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
26095 #include <stdlib.h>
26096 #include <stddef.h>
26098 #include <sys/types.h>
26099 #include <sys/socket.h>
26100 #include <sys/un.h>
26102 #include <sys/uio.h>
26104 #include <unistd.h>
26107 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
26108 supports_descriptor_passing=yes
26110 supports_descriptor_passing=no
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
26113 *** Data structure for sending ancillary data missing.
26114 *** Descriptor passing won't work.
26116 $as_echo "$as_me: WARNING:
26118 *** Data structure for sending ancillary data missing.
26119 *** Descriptor passing won't work.
26124 use_descriptor_passing=yes
26125 # Check whether --enable-fd-passing was given.
26126 if test "${enable_fd_passing+set}" = set; then :
26127 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
26131 if test "$supports_descriptor_passing" != "yes"; then
26132 use_descriptor_passing=no
26135 if test "$use_descriptor_passing" = "yes"; then
26137 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
26141 if test "$use_descriptor_passing" = "yes"; then
26142 USE_DESCRIPTOR_PASSING_TRUE=
26143 USE_DESCRIPTOR_PASSING_FALSE='#'
26145 USE_DESCRIPTOR_PASSING_TRUE='#'
26146 USE_DESCRIPTOR_PASSING_FALSE=
26152 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
26155 if test "$uiserver" != "no"; then
26157 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
26160 if test "$uiserver" != "no"; then
26161 HAVE_UISERVER_TRUE=
26162 HAVE_UISERVER_FALSE='#'
26164 HAVE_UISERVER_TRUE='#'
26165 HAVE_UISERVER_FALSE=
26170 # Option --disable-linux-getdents
26172 # By default we use SYS_getdents on Linux to optimize fd closing
26173 # before an exec. This option allows to switch this optimization off.
26174 use_linux_getdents=yes
26175 # Check whether --enable-linux-getdents was given.
26176 if test "${enable_linux_getdents+set}" = set; then :
26177 enableval=$enable_linux_getdents; use_linux_getdents=$enableval
26180 if test "$use_linux_getdents" = "yes"; then
26184 $as_echo "#define USE_LINUX_GETDENTS 1" >>confdefs.h
26192 # Add a few constants to help porting to W32
26199 # Substitution used for gpgme-config
26200 GPGME_CONFIG_LIBS="-lgpgme"
26201 GPGME_CONFIG_CFLAGS=""
26202 GPGME_CONFIG_HOST="$host"
26203 GPGME_CONFIG_AVAIL_LANG="$enabled_languages"
26210 # Frob'da Variables
26211 LTLIBOBJS=`echo "$LIBOBJS" |
26212 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
26215 # Some checks for gpgme-tool
26216 # Done at top: AC_CHECK_HEADER([argp.h])
26217 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
26219 if test "x$ac_cv_type_error_t" = xyes; then :
26221 cat >>confdefs.h <<_ACEOF
26222 #define HAVE_ERROR_T 1
26228 $as_echo "#define error_t int" >>confdefs.h
26234 # A substitution to set generated files in a Emacs buffer to read-only.
26235 emacs_local_vars_begin='Local Variables:'
26237 emacs_local_vars_read_only='buffer-read-only: t'
26239 emacs_local_vars_end='End:'
26244 if test "$have_gpg_error" = "no"; then
26246 { $as_echo "$as_me:${as_lineno-$LINENO}:
26248 *** You need libgpg-error to build this program.
26249 ** This library is for example available at
26250 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26251 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26255 *** You need libgpg-error to build this program.
26256 ** This library is for example available at
26257 *** https://www.gnupg.org/ftp/gcrypt/libgpg-error/
26258 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
26261 if test "$have_libassuan" = "no"; then
26263 { $as_echo "$as_me:${as_lineno-$LINENO}:
26265 *** You need libassuan to build this program.
26266 *** This library is for example available at
26267 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26268 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26272 *** You need libassuan to build this program.
26273 *** This library is for example available at
26274 *** https://www.gnupg.org/ftp/gcrypt/libassuan/
26275 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
26279 if test "$die" = "yes"; then
26282 *** Required libraries not found. Please consult the above messages
26283 *** and install them before running configure again.
26289 # Create config files
26291 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"
26293 ac_config_files="$ac_config_files src/gpgme-config"
26295 ac_config_files="$ac_config_files lang/cpp/Makefile lang/cpp/src/Makefile"
26297 ac_config_files="$ac_config_files lang/cpp/tests/Makefile"
26299 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig-w32.cmake.in"
26301 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfig.cmake.in"
26303 ac_config_files="$ac_config_files lang/cpp/src/GpgmeppConfigVersion.cmake"
26305 ac_config_files="$ac_config_files lang/cpp/src/gpgmepp_version.h"
26307 ac_config_files="$ac_config_files lang/qt/Makefile lang/qt/src/Makefile"
26309 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig-w32.cmake.in"
26311 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfig.cmake.in"
26313 ac_config_files="$ac_config_files lang/qt/src/QGpgmeConfigVersion.cmake"
26315 ac_config_files="$ac_config_files lang/qt/tests/Makefile"
26317 ac_config_files="$ac_config_files lang/qt/src/qgpgme_version.h"
26319 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
26321 if test -z "$HAVE_DOXYGEN_TRUE"; then :
26322 ac_config_files="$ac_config_files lang/qt/doc/Doxyfile"
26325 ac_config_files="$ac_config_files lang/js/Makefile lang/js/src/Makefile lang/js/BrowserTestExtension/Makefile lang/js/DemoExtension/Makefile"
26327 ac_config_files="$ac_config_files lang/qt/doc/Makefile"
26329 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"
26331 ac_config_files="$ac_config_files lang/python/setup.py"
26333 cat >confcache <<\_ACEOF
26334 # This file is a shell script that caches the results of configure
26335 # tests run on this system so they can be shared between configure
26336 # scripts and configure runs, see configure's option --config-cache.
26337 # It is not useful on other systems. If it contains results you don't
26338 # want to keep, you may remove or edit it.
26340 # config.status only pays attention to the cache file if you give it
26341 # the --recheck option to rerun configure.
26343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26345 # following values.
26349 # The following way of writing the cache mishandles newlines in values,
26350 # but we know of no workaround that is simple, portable, and efficient.
26351 # So, we kill variables containing newlines.
26352 # Ultrix sh set writes to stderr and can't be redirected directly,
26353 # and sets the high bit in the cache file unless we assign to the vars.
26355 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26356 eval ac_val=\$$ac_var
26360 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26361 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26364 _ | IFS | as_nl) ;; #(
26365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26366 *) { eval $ac_var=; unset $ac_var;} ;;
26372 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26373 *${as_nl}ac_space=\ *)
26374 # `set' does not quote correctly, so add quotes: double-quote
26375 # substitution turns \\\\ into \\, and sed turns \\ into \.
26378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26381 # `set' quotes correctly as required by POSIX, so do not add quotes.
26382 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26391 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26393 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26395 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26396 if test -w "$cache_file"; then
26397 if test "x$cache_file" != "x/dev/null"; then
26398 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26399 $as_echo "$as_me: updating cache $cache_file" >&6;}
26400 if test ! -f "$cache_file" || test -h "$cache_file"; then
26401 cat confcache >"$cache_file"
26403 case $cache_file in #(
26405 mv -f confcache "$cache_file"$$ &&
26406 mv -f "$cache_file"$$ "$cache_file" ;; #(
26408 mv -f confcache "$cache_file" ;;
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26414 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26420 # Let make expand exec_prefix.
26421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26423 DEFS=-DHAVE_CONFIG_H
26428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26429 # 1. Remove the extension, and $U if already installed.
26430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26431 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26433 # will be set to the directory where LIBOBJS objects are built.
26434 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26435 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26437 LIBOBJS=$ac_libobjs
26439 LTLIBOBJS=$ac_ltlibobjs
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26443 $as_echo_n "checking that generated files are newer than configure... " >&6; }
26444 if test -n "$am_sleep_pid"; then
26445 # Hide warnings about reused PIDs.
26446 wait $am_sleep_pid 2>/dev/null
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
26449 $as_echo "done" >&6; }
26450 if test -n "$EXEEXT"; then
26452 am__EXEEXT_FALSE='#'
26454 am__EXEEXT_TRUE='#'
26458 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26459 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26462 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26463 as_fn_error $? "conditional \"AMDEP\" was never defined.
26464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26466 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26467 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26470 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26471 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26474 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26475 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26478 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
26479 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
26480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26482 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
26483 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
26484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26486 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
26487 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
26488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26490 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
26491 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
26492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26494 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
26495 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
26496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26498 if test -z "${HAVE_MACOS_SYSTEM_TRUE}" && test -z "${HAVE_MACOS_SYSTEM_FALSE}"; then
26499 as_fn_error $? "conditional \"HAVE_MACOS_SYSTEM\" was never defined.
26500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26502 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
26503 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
26504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26506 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26507 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26510 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
26511 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
26512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26514 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
26515 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
26516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26518 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
26519 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
26520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26522 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
26523 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
26524 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26526 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
26527 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
26528 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26530 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
26531 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
26532 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26535 : "${CONFIG_STATUS=./config.status}"
26537 ac_clean_files_save=$ac_clean_files
26538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26540 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26542 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26544 # Generated by $as_me.
26545 # Run this file to recreate the current configuration.
26546 # Compiler output produced by configure, useful for debugging
26547 # configure, is in config.log if it exists.
26550 ac_cs_recheck=false
26553 SHELL=\${CONFIG_SHELL-$SHELL}
26556 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26557 ## -------------------- ##
26558 ## M4sh Initialization. ##
26559 ## -------------------- ##
26561 # Be more Bourne compatible
26562 DUALCASE=1; export DUALCASE # for MKS sh
26563 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26566 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26567 # is contrary to our usage. Disable this feature.
26568 alias -g '${1+"$@"}'='"$@"'
26569 setopt NO_GLOB_SUBST
26571 case `(set -o) 2>/dev/null` in #(
26583 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26584 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26585 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26586 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26587 # Prefer a ksh shell builtin over an external printf program on Solaris,
26588 # but without wasting forks for bash or zsh.
26589 if test -z "$BASH_VERSION$ZSH_VERSION" \
26590 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26591 as_echo='print -r --'
26592 as_echo_n='print -rn --'
26593 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26594 as_echo='printf %s\n'
26595 as_echo_n='printf %s'
26597 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26598 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26599 as_echo_n='/usr/ucb/echo -n'
26601 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26602 as_echo_n_body='eval
26606 expr "X$arg" : "X\\(.*\\)$as_nl";
26607 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26609 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26611 export as_echo_n_body
26612 as_echo_n='sh -c $as_echo_n_body as_echo'
26614 export as_echo_body
26615 as_echo='sh -c $as_echo_body as_echo'
26618 # The user is always right.
26619 if test "${PATH_SEPARATOR+set}" != set; then
26621 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26622 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26629 # We need space, tab and new line, in precisely that order. Quoting is
26630 # there to prevent editors from complaining about space-tab.
26631 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26632 # splitting by setting IFS to empty value.)
26635 # Find who we are. Look in the path if we contain no directory separator.
26638 *[\\/]* ) as_myself=$0 ;;
26639 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26640 for as_dir in $PATH
26643 test -z "$as_dir" && as_dir=.
26644 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26650 # We did not find ourselves, most probably we were run as `sh COMMAND'
26651 # in which case we are not to be found in the path.
26652 if test "x$as_myself" = x; then
26655 if test ! -f "$as_myself"; then
26656 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26660 # Unset variables that we do not need and which cause bugs (e.g. in
26661 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26662 # suppresses any "Segmentation fault" message there. '((' could
26663 # trigger a bug in pdksh 5.2.14.
26664 for as_var in BASH_ENV ENV MAIL MAILPATH
26665 do eval test x\${$as_var+set} = xset \
26666 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26679 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26682 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26683 # ----------------------------------------
26684 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26685 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26686 # script with STATUS, using 1 if that was 0.
26689 as_status=$1; test $as_status -eq 0 && as_status=1
26691 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26692 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26694 $as_echo "$as_me: error: $2" >&2
26695 as_fn_exit $as_status
26699 # as_fn_set_status STATUS
26700 # -----------------------
26701 # Set $? to STATUS, without forking.
26702 as_fn_set_status ()
26705 } # as_fn_set_status
26707 # as_fn_exit STATUS
26708 # -----------------
26709 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26713 as_fn_set_status $1
26719 # Portably unset VAR.
26722 { eval $1=; unset $1;}
26724 as_unset=as_fn_unset
26725 # as_fn_append VAR VALUE
26726 # ----------------------
26727 # Append the text in VALUE to the end of the definition contained in VAR. Take
26728 # advantage of any shell optimizations that allow amortized linear growth over
26729 # repeated appends, instead of the typical quadratic growth present in naive
26731 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26732 eval 'as_fn_append ()
26743 # as_fn_arith ARG...
26744 # ------------------
26745 # Perform arithmetic evaluation on the ARGs, and store the result in the
26746 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26747 # must be portable across $(()) and expr.
26748 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26749 eval 'as_fn_arith ()
26756 as_val=`expr "$@" || test $? -eq 1`
26761 if expr a : '\(a\)' >/dev/null 2>&1 &&
26762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26768 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26769 as_basename=basename
26774 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26780 as_me=`$as_basename -- "$0" ||
26781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26782 X"$0" : 'X\(//\)$' \| \
26783 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26785 sed '/^.*\/\([^/][^/]*\)\/*$/{
26799 # Avoid depending upon Character Ranges.
26800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26803 as_cr_digits='0123456789'
26804 as_cr_alnum=$as_cr_Letters$as_cr_digits
26806 ECHO_C= ECHO_N= ECHO_T=
26807 case `echo -n x` in #(((((
26809 case `echo 'xy\c'` in
26810 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26812 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26819 rm -f conf$$ conf$$.exe conf$$.file
26820 if test -d conf$$.dir; then
26821 rm -f conf$$.dir/conf$$.file
26824 mkdir conf$$.dir 2>/dev/null
26826 if (echo >conf$$.file) 2>/dev/null; then
26827 if ln -s conf$$.file conf$$ 2>/dev/null; then
26829 # ... but there are two gotchas:
26830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26832 # In both cases, we have to default to `cp -pR'.
26833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26835 elif ln conf$$.file conf$$ 2>/dev/null; then
26843 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26844 rmdir conf$$.dir 2>/dev/null
26849 # Create "$as_dir" as a directory, including parents if necessary.
26854 -*) as_dir=./$as_dir;;
26856 test -d "$as_dir" || eval $as_mkdir_p || {
26860 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26861 *) as_qdir=$as_dir;;
26863 as_dirs="'$as_qdir' $as_dirs"
26864 as_dir=`$as_dirname -- "$as_dir" ||
26865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26866 X"$as_dir" : 'X\(//\)[^/]' \| \
26867 X"$as_dir" : 'X\(//\)$' \| \
26868 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26869 $as_echo X"$as_dir" |
26870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26874 /^X\(\/\/\)[^/].*/{
26887 test -d "$as_dir" && break
26889 test -z "$as_dirs" || eval "mkdir $as_dirs"
26890 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26894 if mkdir -p . 2>/dev/null; then
26895 as_mkdir_p='mkdir -p "$as_dir"'
26897 test -d ./-p && rmdir ./-p
26902 # as_fn_executable_p FILE
26903 # -----------------------
26904 # Test if FILE is an executable regular file.
26905 as_fn_executable_p ()
26907 test -f "$1" && test -x "$1"
26908 } # as_fn_executable_p
26909 as_test_x='test -x'
26910 as_executable_p=as_fn_executable_p
26912 # Sed expression to map a string onto a valid CPP name.
26913 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26915 # Sed expression to map a string onto a valid variable name.
26916 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26920 ## ----------------------------------- ##
26921 ## Main body of $CONFIG_STATUS script. ##
26922 ## ----------------------------------- ##
26924 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26927 # Save the log message, to keep $0 and so on meaningful, and to
26928 # report actual input values of CONFIG_FILES etc. instead of their
26929 # values after options handling.
26931 This file was extended by gpgme $as_me 1.16.0, which was
26932 generated by GNU Autoconf 2.69. Invocation command line was
26934 CONFIG_FILES = $CONFIG_FILES
26935 CONFIG_HEADERS = $CONFIG_HEADERS
26936 CONFIG_LINKS = $CONFIG_LINKS
26937 CONFIG_COMMANDS = $CONFIG_COMMANDS
26940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26945 case $ac_config_files in *"
26946 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26949 case $ac_config_headers in *"
26950 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26955 # Files that config.status was made for.
26956 config_files="$ac_config_files"
26957 config_headers="$ac_config_headers"
26958 config_commands="$ac_config_commands"
26962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26964 \`$as_me' instantiates files and other configuration actions
26965 from templates according to the current configuration. Unless the files
26966 and actions are specified as TAGs, all are instantiated by default.
26968 Usage: $0 [OPTION]... [TAG]...
26970 -h, --help print this help, then exit
26971 -V, --version print version number and configuration settings, then exit
26972 --config print configuration, then exit
26973 -q, --quiet, --silent
26974 do not print progress messages
26975 -d, --debug don't remove temporary files
26976 --recheck update $as_me by reconfiguring in the same conditions
26977 --file=FILE[:TEMPLATE]
26978 instantiate the configuration file FILE
26979 --header=FILE[:TEMPLATE]
26980 instantiate the configuration header FILE
26982 Configuration files:
26985 Configuration headers:
26988 Configuration commands:
26991 Report bugs to <https://bugs.gnupg.org>."
26994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26995 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26997 gpgme config.status 1.16.0
26998 configured by $0, generated by GNU Autoconf 2.69,
26999 with options \\"\$ac_cs_config\\"
27001 Copyright (C) 2012 Free Software Foundation, Inc.
27002 This config.status script is free software; the Free Software Foundation
27003 gives unlimited permission to copy, distribute and modify it."
27010 test -n "\$AWK" || AWK=awk
27013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27014 # The default lists apply if the user does not specify any file.
27020 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27021 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27025 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27037 # Handling of the options.
27038 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27040 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27041 $as_echo "$ac_cs_version"; exit ;;
27042 --config | --confi | --conf | --con | --co | --c )
27043 $as_echo "$ac_cs_config"; exit ;;
27044 --debug | --debu | --deb | --de | --d | -d )
27046 --file | --fil | --fi | --f )
27049 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27050 '') as_fn_error $? "missing file argument" ;;
27052 as_fn_append CONFIG_FILES " '$ac_optarg'"
27053 ac_need_defaults=false;;
27054 --header | --heade | --head | --hea )
27057 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27059 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27060 ac_need_defaults=false;;
27062 # Conflict between --help and --header
27063 as_fn_error $? "ambiguous option: \`$1'
27064 Try \`$0 --help' for more information.";;
27065 --help | --hel | -h )
27066 $as_echo "$ac_cs_usage"; exit ;;
27067 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27068 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27071 # This is an error.
27072 -*) as_fn_error $? "unrecognized option: \`$1'
27073 Try \`$0 --help' for more information." ;;
27075 *) as_fn_append ac_config_targets " $1"
27076 ac_need_defaults=false ;;
27082 ac_configure_extra_args=
27084 if $ac_cs_silent; then
27086 ac_configure_extra_args="$ac_configure_extra_args --silent"
27090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27091 if \$ac_cs_recheck; then
27092 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27094 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27095 CONFIG_SHELL='$SHELL'
27096 export CONFIG_SHELL
27101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27105 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27106 ## Running $as_me. ##
27112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27116 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27119 # The HP-UX ksh and POSIX shell print the target directory to stdout
27120 # if CDPATH is set.
27121 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27123 sed_quote_subst='$sed_quote_subst'
27124 double_quote_subst='$double_quote_subst'
27125 delay_variable_subst='$delay_variable_subst'
27126 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27127 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27128 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
27129 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27130 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27131 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27132 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27133 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27134 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27135 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27136 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27137 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27138 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27139 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27140 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27141 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27142 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27143 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27144 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27145 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27146 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27147 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27148 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27149 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27150 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27151 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27152 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27153 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27154 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27155 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27156 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27157 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27158 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27159 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27160 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27161 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27162 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27163 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27164 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27165 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27166 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27167 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27168 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27169 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27170 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27171 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27172 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27173 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27174 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27175 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27176 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27177 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27178 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27179 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27180 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27181 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27182 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27183 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"`'
27184 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27185 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27186 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27187 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27188 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27189 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27190 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27191 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27192 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27193 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27194 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27195 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27196 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27197 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27198 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27199 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27200 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27201 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27202 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27203 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27204 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27205 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27206 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27207 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27208 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27209 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27210 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27211 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27212 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27213 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27214 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27215 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27216 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27217 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27218 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27219 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27220 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27221 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27222 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27223 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27224 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27225 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27226 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27227 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27228 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27229 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27230 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27231 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27232 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27233 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27234 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27235 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27236 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27237 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27238 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27239 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27240 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27241 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27242 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27243 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27244 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27245 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27246 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27247 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27248 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27249 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27250 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27251 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27252 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27253 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27254 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27255 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27256 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27257 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27258 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27259 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27260 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27261 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27262 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27263 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27264 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
27265 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27266 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
27267 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27268 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
27269 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27270 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27271 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27272 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
27273 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27274 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
27275 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27276 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
27277 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27278 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
27279 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27280 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
27281 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27282 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
27283 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27284 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
27285 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27286 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
27287 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27288 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
27289 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27290 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27291 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27292 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27293 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27294 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
27295 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27296 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
27297 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27298 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
27299 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27300 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
27301 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27302 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27303 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27304 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
27305 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27306 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
27307 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27308 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
27309 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27310 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27311 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27312 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
27313 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27314 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
27315 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27316 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
27317 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27318 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
27319 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27320 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
27321 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27322 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
27323 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27324 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
27325 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27326 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
27327 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27328 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
27329 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27330 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
27331 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27332 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
27333 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27334 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
27335 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27336 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27337 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27338 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
27339 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27340 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27341 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27342 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
27343 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27344 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
27345 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27346 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
27347 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27348 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
27349 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27350 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
27351 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27352 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
27353 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27354 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
27355 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27356 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
27357 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27358 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
27361 LTCFLAGS='$LTCFLAGS'
27362 compiler='$compiler_DEFAULT'
27364 # A function that is used when there is no print builtin or printf.
27365 func_fallback_echo ()
27367 eval 'cat <<_LTECHO_EOF
27372 # Quote evaled strings.
27389 deplibs_check_method \
27393 sharedlib_from_linklib_cmd \
27396 archiver_list_spec \
27402 lt_cv_sys_global_symbol_pipe \
27403 lt_cv_sys_global_symbol_to_cdecl \
27404 lt_cv_sys_global_symbol_to_c_name_address \
27405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27406 nm_file_list_spec \
27407 lt_prog_compiler_no_builtin_flag \
27408 lt_prog_compiler_pic \
27409 lt_prog_compiler_wl \
27410 lt_prog_compiler_static \
27411 lt_cv_prog_compiler_c_o \
27420 export_dynamic_flag_spec \
27421 whole_archive_flag_spec \
27422 compiler_needs_object \
27424 allow_undefined_flag \
27425 no_undefined_flag \
27426 hardcode_libdir_flag_spec \
27427 hardcode_libdir_separator \
27431 variables_saved_for_relink \
27433 library_names_spec \
27435 install_override_mode \
27439 compiler_lib_search_dirs \
27444 compiler_lib_search_path \
27451 lt_prog_compiler_no_builtin_flag_CXX \
27452 lt_prog_compiler_no_builtin_flag_RC \
27453 lt_prog_compiler_pic_CXX \
27454 lt_prog_compiler_pic_RC \
27455 lt_prog_compiler_wl_CXX \
27456 lt_prog_compiler_wl_RC \
27457 lt_prog_compiler_static_CXX \
27458 lt_prog_compiler_static_RC \
27459 lt_cv_prog_compiler_c_o_CXX \
27460 lt_cv_prog_compiler_c_o_RC \
27461 export_dynamic_flag_spec_CXX \
27462 export_dynamic_flag_spec_RC \
27463 whole_archive_flag_spec_CXX \
27464 whole_archive_flag_spec_RC \
27465 compiler_needs_object_CXX \
27466 compiler_needs_object_RC \
27469 allow_undefined_flag_CXX \
27470 allow_undefined_flag_RC \
27471 no_undefined_flag_CXX \
27472 no_undefined_flag_RC \
27473 hardcode_libdir_flag_spec_CXX \
27474 hardcode_libdir_flag_spec_RC \
27475 hardcode_libdir_separator_CXX \
27476 hardcode_libdir_separator_RC \
27477 exclude_expsyms_CXX \
27478 exclude_expsyms_RC \
27479 include_expsyms_CXX \
27480 include_expsyms_RC \
27481 file_list_spec_CXX \
27482 file_list_spec_RC \
27483 compiler_lib_search_dirs_CXX \
27484 compiler_lib_search_dirs_RC \
27485 predep_objects_CXX \
27486 predep_objects_RC \
27487 postdep_objects_CXX \
27488 postdep_objects_RC \
27493 compiler_lib_search_path_CXX \
27494 compiler_lib_search_path_RC; do
27495 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27496 *[\\\\\\\`\\"\\\$]*)
27497 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27500 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27505 # Double-quote double-evaled strings.
27506 for var in reload_cmds \
27507 old_postinstall_cmds \
27508 old_postuninstall_cmds \
27510 extract_expsyms_cmds \
27511 old_archive_from_new_cmds \
27512 old_archive_from_expsyms_cmds \
27514 archive_expsym_cmds \
27516 module_expsym_cmds \
27517 export_symbols_cmds \
27521 postuninstall_cmds \
27523 sys_lib_search_path_spec \
27524 sys_lib_dlsearch_path_spec \
27527 old_archive_cmds_CXX \
27528 old_archive_cmds_RC \
27529 old_archive_from_new_cmds_CXX \
27530 old_archive_from_new_cmds_RC \
27531 old_archive_from_expsyms_cmds_CXX \
27532 old_archive_from_expsyms_cmds_RC \
27535 archive_expsym_cmds_CXX \
27536 archive_expsym_cmds_RC \
27539 module_expsym_cmds_CXX \
27540 module_expsym_cmds_RC \
27541 export_symbols_cmds_CXX \
27542 export_symbols_cmds_RC \
27545 postlink_cmds_CXX \
27546 postlink_cmds_RC; do
27547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27548 *[\\\\\\\`\\"\\\$]*)
27549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27557 ac_aux_dir='$ac_aux_dir'
27558 xsi_shell='$xsi_shell'
27559 lt_shell_append='$lt_shell_append'
27561 # See if we are running on zsh, and set the options which allow our
27562 # commands through without removal of \ escapes INIT.
27563 if test -n "\${ZSH_VERSION+set}" ; then
27564 setopt NO_GLOB_SUBST
27570 TIMESTAMP='$TIMESTAMP'
27583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27585 # Handling of arguments.
27586 for ac_config_target in $ac_config_targets
27588 case $ac_config_target in
27589 "conf/config.h") CONFIG_HEADERS="$CONFIG_HEADERS conf/config.h" ;;
27590 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27591 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27592 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27593 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27594 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27595 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
27596 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
27597 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
27598 "tests/json/Makefile") CONFIG_FILES="$CONFIG_FILES tests/json/Makefile" ;;
27599 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27600 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
27601 "src/gpgme.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme.pc" ;;
27602 "src/gpgme-glib.pc") CONFIG_FILES="$CONFIG_FILES src/gpgme-glib.pc" ;;
27603 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
27604 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
27605 "lang/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/Makefile" ;;
27606 "lang/cpp/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/Makefile" ;;
27607 "lang/cpp/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cpp/tests/Makefile" ;;
27608 "lang/cpp/src/GpgmeppConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig-w32.cmake.in" ;;
27609 "lang/cpp/src/GpgmeppConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfig.cmake.in" ;;
27610 "lang/cpp/src/GpgmeppConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/GpgmeppConfigVersion.cmake" ;;
27611 "lang/cpp/src/gpgmepp_version.h") CONFIG_FILES="$CONFIG_FILES lang/cpp/src/gpgmepp_version.h" ;;
27612 "lang/qt/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/Makefile" ;;
27613 "lang/qt/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/src/Makefile" ;;
27614 "lang/qt/src/QGpgmeConfig-w32.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig-w32.cmake.in" ;;
27615 "lang/qt/src/QGpgmeConfig.cmake.in") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfig.cmake.in" ;;
27616 "lang/qt/src/QGpgmeConfigVersion.cmake") CONFIG_FILES="$CONFIG_FILES lang/qt/src/QGpgmeConfigVersion.cmake" ;;
27617 "lang/qt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/tests/Makefile" ;;
27618 "lang/qt/src/qgpgme_version.h") CONFIG_FILES="$CONFIG_FILES lang/qt/src/qgpgme_version.h" ;;
27619 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
27620 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
27621 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
27622 "lang/qt/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Doxyfile" ;;
27623 "lang/js/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/Makefile" ;;
27624 "lang/js/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/src/Makefile" ;;
27625 "lang/js/BrowserTestExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/BrowserTestExtension/Makefile" ;;
27626 "lang/js/DemoExtension/Makefile") CONFIG_FILES="$CONFIG_FILES lang/js/DemoExtension/Makefile" ;;
27627 "lang/qt/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/qt/doc/Makefile" ;;
27628 "lang/python/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/Makefile" ;;
27629 "lang/python/version.py") CONFIG_FILES="$CONFIG_FILES lang/python/version.py" ;;
27630 "lang/python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/tests/Makefile" ;;
27631 "lang/python/src/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/src/Makefile" ;;
27632 "lang/python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/examples/Makefile" ;;
27633 "lang/python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES lang/python/doc/Makefile" ;;
27634 "lang/python/setup.py") CONFIG_FILES="$CONFIG_FILES lang/python/setup.py" ;;
27636 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27641 # If the user did not use the arguments to specify the items to instantiate,
27642 # then the envvar interface is used. Set only those that are not.
27643 # We use the long form for the default assignment because of an extremely
27644 # bizarre bug on SunOS 4.1.3.
27645 if $ac_need_defaults; then
27646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27647 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27648 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27651 # Have a temporary directory for convenience. Make it in the build tree
27652 # simply because there is no reason against having it here, and in addition,
27653 # creating and moving files from /tmp can sometimes cause problems.
27654 # Hook for its removal unless debugging.
27655 # Note that there is a small window in which the directory will not be cleaned:
27656 # after its creation but before its name has been assigned to `$tmp'.
27660 trap 'exit_status=$?
27661 : "${ac_tmp:=$tmp}"
27662 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27664 trap 'as_fn_exit 1' 1 2 13 15
27666 # Create a (secure) tmp directory for tmp files.
27669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27673 tmp=./conf$$-$RANDOM
27674 (umask 077 && mkdir "$tmp")
27675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27678 # Set up the scripts for CONFIG_FILES section.
27679 # No need to generate them if there are no CONFIG_FILES.
27680 # This happens for instance with `./config.status config.h'.
27681 if test -n "$CONFIG_FILES"; then
27684 ac_cr=`echo X | tr X '\015'`
27685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27686 # But we know of no other shell where ac_cr would be empty at this
27687 # point, so we can use a bashism as a fallback.
27688 if test "x$ac_cr" = x; then
27689 eval ac_cr=\$\'\\r\'
27691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27695 ac_cs_awk_cr=$ac_cr
27698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27703 echo "cat >conf$$subs.awk <<_ACEOF" &&
27704 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27706 } >conf$$subs.sh ||
27707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27710 for ac_last_try in false false false false false :; do
27711 . ./conf$$subs.sh ||
27712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27714 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27715 if test $ac_delim_n = $ac_delim_num; then
27717 elif $ac_last_try; then
27718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27723 rm -f conf$$subs.sh
27725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27730 s/^/S["/; s/!.*/"]=/
27740 s/\(.\{148\}\)..*/\1/
27742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27754 s/\(.\{148\}\)..*/\1/
27756 s/["\\]/\\&/g; s/^/"/; s/$/"/
27760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27765 ' <conf$$subs.awk | sed '
27770 ' >>$CONFIG_STATUS || ac_write_fail=1
27771 rm -f conf$$subs.awk
27772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27775 for (key in S) S_is_set[key] = 1
27781 nfields = split(line, field, "@")
27783 len = length(field[1])
27784 for (i = 2; i < nfields; i++) {
27786 keylen = length(key)
27787 if (S_is_set[key]) {
27789 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27790 len += length(value) + length(field[++i])
27801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27803 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27807 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27812 # trailing colons and then remove the whole line if VPATH becomes empty
27813 # (actually we leave an empty line to preserve line numbers).
27814 if test "x$srcdir" = x.; then
27815 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27834 fi # test -n "$CONFIG_FILES"
27836 # Set up the scripts for CONFIG_HEADERS section.
27837 # No need to generate them if there are no CONFIG_HEADERS.
27838 # This happens for instance with `./config.status Makefile'.
27839 if test -n "$CONFIG_HEADERS"; then
27840 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27844 # Transform confdefs.h into an awk script `defines.awk', embedded as
27845 # here-document in config.status, that substitutes the proper values into
27846 # config.h.in to produce config.h.
27848 # Create a delimiter string that does not exist in confdefs.h, to ease
27849 # handling of long lines.
27851 for ac_last_try in false false :; do
27852 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27853 if test -z "$ac_tt"; then
27855 elif $ac_last_try; then
27856 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27862 # For the awk script, D is an array of macro values keyed by name,
27863 # likewise P contains macro parameters if any. Preserve backslash
27864 # newline sequences.
27866 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27868 s/.\{148\}/&'"$ac_delim"'/g
27871 s/^[ ]*#[ ]*define[ ][ ]*/ /
27878 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27880 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27884 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27885 D["\1"]=" \3\\\\\\n"\\/p
27887 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27892 s/.\{148\}/&'"$ac_delim"'/g
27897 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27900 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27902 ' <confdefs.h | sed '
27903 s/'"$ac_delim"'/"\\\
27904 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27907 for (key in D) D_is_set[key] = 1
27910 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27912 split(line, arg, " ")
27913 if (arg[1] == "#") {
27917 defundef = substr(arg[1], 2)
27920 split(mac1, mac2, "(") #)
27922 prefix = substr(line, 1, index(line, defundef) - 1)
27923 if (D_is_set[macro]) {
27924 # Preserve the white space surrounding the "#".
27925 print prefix "define", macro P[macro] D[macro]
27928 # Replace #undef with comments. This is necessary, for example,
27929 # in the case of _POSIX_SOURCE, which is predefined and required
27930 # on some systems where configure will not decide to define it.
27931 if (defundef == "undef") {
27932 print "/*", prefix defundef, macro, "*/"
27940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27941 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27942 fi # test -n "$CONFIG_HEADERS"
27945 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27950 :[FHLC]) ac_mode=$ac_tag; continue;;
27952 case $ac_mode$ac_tag in
27954 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27955 :[FH]-) ac_tag=-:-;;
27956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27973 -) ac_f="$ac_tmp/stdin";;
27974 *) # Look for the file first in the build tree, then in the source tree
27975 # (if the path is not absolute). The absolute path cannot be DOS-style,
27976 # because $ac_f cannot contain `:'.
27980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27982 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27984 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27985 as_fn_append ac_file_inputs " '$ac_f'"
27988 # Let's still pretend it is `configure' which instantiates (i.e., don't
27989 # use $as_me), people would be surprised to read:
27990 # /* config.h. Generated by config.status. */
27991 configure_input='Generated from '`
27992 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27994 if test x"$ac_file" != x-; then
27995 configure_input="$ac_file. $configure_input"
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27997 $as_echo "$as_me: creating $ac_file" >&6;}
27999 # Neutralize special characters interpreted by sed in replacement strings.
28000 case $configure_input in #(
28001 *\&* | *\|* | *\\* )
28002 ac_sed_conf_input=`$as_echo "$configure_input" |
28003 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28004 *) ac_sed_conf_input=$configure_input;;
28008 *:-:* | *:-) cat >"$ac_tmp/stdin" \
28009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28014 ac_dir=`$as_dirname -- "$ac_file" ||
28015 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28016 X"$ac_file" : 'X\(//\)[^/]' \| \
28017 X"$ac_file" : 'X\(//\)$' \| \
28018 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28019 $as_echo X"$ac_file" |
28020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28024 /^X\(\/\/\)[^/].*/{
28037 as_dir="$ac_dir"; as_fn_mkdir_p
28041 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28043 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28044 # A ".." for each directory in $ac_dir_suffix.
28045 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28046 case $ac_top_builddir_sub in
28047 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28048 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28051 ac_abs_top_builddir=$ac_pwd
28052 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28053 # for backward compatibility:
28054 ac_top_builddir=$ac_top_build_prefix
28057 .) # We are building in place.
28059 ac_top_srcdir=$ac_top_builddir_sub
28060 ac_abs_top_srcdir=$ac_pwd ;;
28061 [\\/]* | ?:[\\/]* ) # Absolute name.
28062 ac_srcdir=$srcdir$ac_dir_suffix;
28063 ac_top_srcdir=$srcdir
28064 ac_abs_top_srcdir=$srcdir ;;
28065 *) # Relative name.
28066 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28067 ac_top_srcdir=$ac_top_build_prefix$srcdir
28068 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28070 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28080 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28081 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28083 ac_MKDIR_P=$MKDIR_P
28085 [\\/$]* | ?:[\\/]* ) ;;
28086 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28091 # If the template does not know about datarootdir, expand it.
28092 # FIXME: This hack should be removed a few years after 2.60.
28093 ac_datarootdir_hack=; ac_datarootdir_seen=
28104 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28105 *datarootdir*) ac_datarootdir_seen=yes;;
28106 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28108 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28111 ac_datarootdir_hack='
28112 s&@datadir@&$datadir&g
28113 s&@docdir@&$docdir&g
28114 s&@infodir@&$infodir&g
28115 s&@localedir@&$localedir&g
28116 s&@mandir@&$mandir&g
28117 s&\\\${datarootdir}&$datarootdir&g' ;;
28121 # Neutralize VPATH when `$srcdir' = `.'.
28122 # Shell code in configure.ac might set extrasub.
28123 # FIXME: do we really want to maintain this feature?
28124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28125 ac_sed_extra="$ac_vpsub
28128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28130 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28131 s|@configure_input@|$ac_sed_conf_input|;t t
28132 s&@top_builddir@&$ac_top_builddir_sub&;t t
28133 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28134 s&@srcdir@&$ac_srcdir&;t t
28135 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28136 s&@top_srcdir@&$ac_top_srcdir&;t t
28137 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28138 s&@builddir@&$ac_builddir&;t t
28139 s&@abs_builddir@&$ac_abs_builddir&;t t
28140 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28141 s&@INSTALL@&$ac_INSTALL&;t t
28142 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28143 $ac_datarootdir_hack
28145 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28146 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
28151 "$ac_tmp/out"`; test -z "$ac_out"; } &&
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28153 which seems to be undefined. Please make sure it is defined" >&5
28154 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28155 which seems to be undefined. Please make sure it is defined" >&2;}
28157 rm -f "$ac_tmp/stdin"
28159 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28160 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28168 if test x"$ac_file" != x-; then
28170 $as_echo "/* $configure_input */" \
28171 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28172 } >"$ac_tmp/config.h" \
28173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28174 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28176 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28179 mv "$ac_tmp/config.h" "$ac_file" \
28180 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28183 $as_echo "/* $configure_input */" \
28184 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28185 || as_fn_error $? "could not create -" "$LINENO" 5
28187 # Compute "$ac_file"'s index in $config_headers.
28190 for _am_header in $config_headers :; do
28191 case $_am_header in
28192 $_am_arg | $_am_arg:* )
28195 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28198 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28199 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28200 X"$_am_arg" : 'X\(//\)[^/]' \| \
28201 X"$_am_arg" : 'X\(//\)$' \| \
28202 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28203 $as_echo X"$_am_arg" |
28204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28208 /^X\(\/\/\)[^/].*/{
28220 s/.*/./; q'`/stamp-h$_am_stamp_count
28223 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28224 $as_echo "$as_me: executing $ac_file commands" >&6;}
28229 case $ac_file$ac_mode in
28230 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28231 # Older Autoconf quotes --file arguments for eval, but not when files
28232 # are listed without --file. Let's play safe and only enable the eval
28233 # if we detect the quoting.
28234 # TODO: see whether this extra hack can be removed once we start
28235 # requiring Autoconf 2.70 or later.
28236 case $CONFIG_FILES in #(
28238 eval set x "$CONFIG_FILES" ;; #(
28240 set x $CONFIG_FILES ;; #(
28245 # Used to flag and report bootstrapping failures.
28249 # Strip MF so we end up with the name of the file.
28250 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
28251 # Check whether this is an Automake generated Makefile which includes
28252 # dependency-tracking related rules and includes.
28253 # Grep'ing the whole file directly is not great: AIX grep has a line
28254 # limit of 2048, but all sed's we know have understand at least 4000.
28255 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28257 am_dirpart=`$as_dirname -- "$am_mf" ||
28258 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259 X"$am_mf" : 'X\(//\)[^/]' \| \
28260 X"$am_mf" : 'X\(//\)$' \| \
28261 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28262 $as_echo X"$am_mf" |
28263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28267 /^X\(\/\/\)[^/].*/{
28280 am_filepart=`$as_basename -- "$am_mf" ||
28281 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28282 X"$am_mf" : 'X\(//\)$' \| \
28283 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28284 $as_echo X/"$am_mf" |
28285 sed '/^.*\/\([^/][^/]*\)\/*$/{
28298 { echo "$as_me:$LINENO: cd "$am_dirpart" \
28299 && sed -e '/# am--include-marker/d' "$am_filepart" \
28300 | $MAKE -f - am--depfiles" >&5
28301 (cd "$am_dirpart" \
28302 && sed -e '/# am--include-marker/d' "$am_filepart" \
28303 | $MAKE -f - am--depfiles) >&5 2>&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } || am_rc=$?
28308 if test $am_rc -ne 0; then
28309 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28311 as_fn_error $? "Something went wrong bootstrapping makefile fragments
28312 for automatic dependency tracking. If GNU make was not used, consider
28313 re-running the configure script with MAKE=\"gmake\" (or whatever is
28314 necessary). You can also try re-running configure with the
28315 '--disable-dependency-tracking' option to at least be able to build
28316 the package (albeit without support for automatic dependency tracking).
28317 See \`config.log' for more details" "$LINENO" 5; }
28319 { am_dirpart=; unset am_dirpart;}
28320 { am_filepart=; unset am_filepart;}
28321 { am_mf=; unset am_mf;}
28322 { am_rc=; unset am_rc;}
28323 rm -f conftest-deps.mk
28328 # See if we are running on zsh, and set the options which allow our
28329 # commands through without removal of \ escapes.
28330 if test -n "${ZSH_VERSION+set}" ; then
28331 setopt NO_GLOB_SUBST
28334 cfgfile="${ofile}T"
28335 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28338 cat <<_LT_EOF >> "$cfgfile"
28341 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28342 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28343 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28346 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28347 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
28349 # Written by Gordon Matzigkeit, 1996
28351 # This file is part of GNU Libtool.
28353 # GNU Libtool is free software; you can redistribute it and/or
28354 # modify it under the terms of the GNU General Public License as
28355 # published by the Free Software Foundation; either version 2 of
28356 # the License, or (at your option) any later version.
28358 # As a special exception to the GNU General Public License,
28359 # if you distribute this file as part of a program or library that
28360 # is built using GNU Libtool, you may include this file under the
28361 # same distribution terms that you use for the rest of that program.
28363 # GNU Libtool is distributed in the hope that it will be useful,
28364 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28366 # GNU General Public License for more details.
28368 # You should have received a copy of the GNU General Public License
28369 # along with GNU Libtool; see the file COPYING. If not, a copy
28370 # can be downloaded from https://www.gnu.org/licenses/gpl.html, or
28371 # obtained by writing to the Free Software Foundation, Inc.,
28372 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28375 # The names of the tagged configurations supported by this script.
28376 available_tags="CXX RC "
28378 # ### BEGIN LIBTOOL CONFIG
28380 # Which release of libtool.m4 was used?
28381 macro_version=$macro_version
28382 macro_revision=$macro_revision
28384 # Assembler program.
28387 # DLL creation program.
28388 DLLTOOL=$lt_DLLTOOL
28390 # Object dumper program.
28391 OBJDUMP=$lt_OBJDUMP
28393 # Whether or not to build static libraries.
28394 build_old_libs=$enable_static
28396 # Whether or not to build shared libraries.
28397 build_libtool_libs=$enable_shared
28399 # What type of objects to build.
28402 # Whether or not to optimize for fast installation.
28403 fast_install=$enable_fast_install
28405 # Shell to use when invoking shell scripts.
28408 # An echo program that protects backslashes.
28411 # The PATH separator for the build system.
28412 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28415 host_alias=$host_alias
28419 # The build system.
28420 build_alias=$build_alias
28424 # A sed program that does not truncate output.
28427 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28428 Xsed="\$SED -e 1s/^X//"
28430 # A grep program that handles long lines.
28436 # A literal string matcher.
28439 # A BSD- or MS-compatible name lister.
28442 # Whether we need soft or hard links.
28445 # What is the maximum length of a command?
28446 max_cmd_len=$max_cmd_len
28448 # Object file suffix (normally "o").
28451 # Executable file suffix (normally "").
28454 # whether the shell understands "unset".
28457 # turn spaces into newlines.
28460 # turn newlines into spaces.
28463 # convert \$build file names to \$host format.
28464 to_host_file_cmd=$lt_cv_to_host_file_cmd
28466 # convert \$build files to toolchain format.
28467 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28469 # Method to check whether dependent libraries are shared objects.
28470 deplibs_check_method=$lt_deplibs_check_method
28472 # Command to use when deplibs_check_method = "file_magic".
28473 file_magic_cmd=$lt_file_magic_cmd
28475 # How to find potential files when deplibs_check_method = "file_magic".
28476 file_magic_glob=$lt_file_magic_glob
28478 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28479 want_nocaseglob=$lt_want_nocaseglob
28481 # Command to associate shared and link libraries.
28482 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28487 # Flags to create an archive.
28488 AR_FLAGS=$lt_AR_FLAGS
28490 # How to feed a file listing to the archiver.
28491 archiver_list_spec=$lt_archiver_list_spec
28493 # A symbol stripping program.
28496 # Commands used to install an old-style archive.
28498 old_postinstall_cmds=$lt_old_postinstall_cmds
28499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28501 # Whether to use a lock for old archive extraction.
28502 lock_old_archive_extraction=$lock_old_archive_extraction
28507 # LTCC compiler flags.
28508 LTCFLAGS=$lt_CFLAGS
28510 # Take the output of nm and produce a listing of raw symbols and C names.
28511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28513 # Transform the output of nm in a proper C declaration.
28514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28516 # Transform the output of nm in a C name address pair.
28517 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28519 # Transform the output of nm in a C name address pair when lib prefix is needed.
28520 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28522 # Specify filename containing input files for \$NM.
28523 nm_file_list_spec=$lt_nm_file_list_spec
28525 # The root where to search for dependent libraries,and in which our libraries should be installed.
28526 lt_sysroot=$lt_sysroot
28528 # The name of the directory that contains temporary libtool files.
28531 # Used to examine libraries when file_magic_cmd begins with "file".
28532 MAGIC_CMD=$MAGIC_CMD
28534 # Must we lock files when doing compilation?
28535 need_locks=$lt_need_locks
28538 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28540 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28541 DSYMUTIL=$lt_DSYMUTIL
28543 # Tool to change global to local symbols on Mac OS X.
28546 # Tool to manipulate fat objects and archives on Mac OS X.
28549 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28552 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28553 OTOOL64=$lt_OTOOL64
28555 # Old archive suffix (normally "a").
28558 # Shared library suffix (normally ".so").
28559 shrext_cmds=$lt_shrext_cmds
28561 # The commands to extract the exported symbol list from a shared archive.
28562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28564 # Variables whose values should be saved in libtool wrapper scripts and
28565 # restored at link time.
28566 variables_saved_for_relink=$lt_variables_saved_for_relink
28568 # Do we need the "lib" prefix for modules?
28569 need_lib_prefix=$need_lib_prefix
28571 # Do we need a version for libraries?
28572 need_version=$need_version
28574 # Library versioning type.
28575 version_type=$version_type
28577 # Shared library runtime path variable.
28578 runpath_var=$runpath_var
28580 # Shared library path variable.
28581 shlibpath_var=$shlibpath_var
28583 # Is shlibpath searched before the hard-coded library search path?
28584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28586 # Format of library name prefix.
28587 libname_spec=$lt_libname_spec
28589 # List of archive names. First name is the real one, the rest are links.
28590 # The last name is the one that the linker finds with -lNAME
28591 library_names_spec=$lt_library_names_spec
28593 # The coded name of the library, if different from the real name.
28594 soname_spec=$lt_soname_spec
28596 # Permission mode override for installation of shared libraries.
28597 install_override_mode=$lt_install_override_mode
28599 # Command to use after installation of a shared archive.
28600 postinstall_cmds=$lt_postinstall_cmds
28602 # Command to use after uninstallation of a shared archive.
28603 postuninstall_cmds=$lt_postuninstall_cmds
28605 # Commands used to finish a libtool library installation in a directory.
28606 finish_cmds=$lt_finish_cmds
28608 # As "finish_cmds", except a single script fragment to be evaled but
28610 finish_eval=$lt_finish_eval
28612 # Whether we should hardcode library paths into libraries.
28613 hardcode_into_libs=$hardcode_into_libs
28615 # Compile-time system search path for libraries.
28616 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28618 # Run-time system search path for libraries.
28619 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28621 # Whether dlopen is supported.
28622 dlopen_support=$enable_dlopen
28624 # Whether dlopen of programs is supported.
28625 dlopen_self=$enable_dlopen_self
28627 # Whether dlopen of statically linked programs is supported.
28628 dlopen_self_static=$enable_dlopen_self_static
28630 # Commands to strip libraries.
28631 old_striplib=$lt_old_striplib
28632 striplib=$lt_striplib
28635 # The linker used to build libraries.
28638 # How to create reloadable object files.
28639 reload_flag=$lt_reload_flag
28640 reload_cmds=$lt_reload_cmds
28642 # Commands used to build an old-style archive.
28643 old_archive_cmds=$lt_old_archive_cmds
28645 # A language specific compiler.
28648 # Is the compiler the GNU compiler?
28651 # Compiler flag to turn off builtin functions.
28652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28654 # Additional compiler flags for building library objects.
28655 pic_flag=$lt_lt_prog_compiler_pic
28657 # How to pass a linker flag through the compiler.
28658 wl=$lt_lt_prog_compiler_wl
28660 # Compiler flag to prevent dynamic linking.
28661 link_static_flag=$lt_lt_prog_compiler_static
28663 # Does compiler simultaneously support -c and -o options?
28664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28666 # Whether or not to add -lc for building shared libraries.
28667 build_libtool_need_lc=$archive_cmds_need_lc
28669 # Whether or not to disallow shared libs when runtime libs are static.
28670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28672 # Compiler flag to allow reflexive dlopens.
28673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28675 # Compiler flag to generate shared objects directly from archives.
28676 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28678 # Whether the compiler copes with passing no objects directly.
28679 compiler_needs_object=$lt_compiler_needs_object
28681 # Create an old-style archive from a shared archive.
28682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28684 # Create a temporary old-style archive to link instead of a shared archive.
28685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28687 # Commands used to build a shared archive.
28688 archive_cmds=$lt_archive_cmds
28689 archive_expsym_cmds=$lt_archive_expsym_cmds
28691 # Commands used to build a loadable module if different from building
28692 # a shared archive.
28693 module_cmds=$lt_module_cmds
28694 module_expsym_cmds=$lt_module_expsym_cmds
28696 # Whether we are building with GNU ld or not.
28697 with_gnu_ld=$lt_with_gnu_ld
28699 # Flag that allows shared libraries with undefined symbols to be built.
28700 allow_undefined_flag=$lt_allow_undefined_flag
28702 # Flag that enforces no undefined symbols.
28703 no_undefined_flag=$lt_no_undefined_flag
28705 # Flag to hardcode \$libdir into a binary during linking.
28706 # This must work even if \$libdir does not exist
28707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28709 # Whether we need a single "-rpath" flag with a separated argument.
28710 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28712 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28713 # DIR into the resulting binary.
28714 hardcode_direct=$hardcode_direct
28716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28717 # DIR into the resulting binary and the resulting library dependency is
28718 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28719 # library is relocated.
28720 hardcode_direct_absolute=$hardcode_direct_absolute
28722 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28723 # into the resulting binary.
28724 hardcode_minus_L=$hardcode_minus_L
28726 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28727 # into the resulting binary.
28728 hardcode_shlibpath_var=$hardcode_shlibpath_var
28730 # Set to "yes" if building a shared library automatically hardcodes DIR
28731 # into the library and all subsequent libraries and executables linked
28733 hardcode_automatic=$hardcode_automatic
28735 # Set to yes if linker adds runtime paths of dependent libraries
28736 # to runtime path list.
28737 inherit_rpath=$inherit_rpath
28739 # Whether libtool must link a program against all its dependency libraries.
28740 link_all_deplibs=$link_all_deplibs
28742 # Set to "yes" if exported symbols are required.
28743 always_export_symbols=$always_export_symbols
28745 # The commands to list exported symbols.
28746 export_symbols_cmds=$lt_export_symbols_cmds
28748 # Symbols that should not be listed in the preloaded symbols.
28749 exclude_expsyms=$lt_exclude_expsyms
28751 # Symbols that must always be exported.
28752 include_expsyms=$lt_include_expsyms
28754 # Commands necessary for linking programs (against libraries) with templates.
28755 prelink_cmds=$lt_prelink_cmds
28757 # Commands necessary for finishing linking programs.
28758 postlink_cmds=$lt_postlink_cmds
28760 # Specify filename containing input files.
28761 file_list_spec=$lt_file_list_spec
28763 # How to hardcode a shared library path into an executable.
28764 hardcode_action=$hardcode_action
28766 # The directories searched by this compiler when creating a shared library.
28767 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28769 # Dependencies to place before and after the objects being linked to
28770 # create a shared library.
28771 predep_objects=$lt_predep_objects
28772 postdep_objects=$lt_postdep_objects
28773 predeps=$lt_predeps
28774 postdeps=$lt_postdeps
28776 # The library search path used internally by the compiler when linking
28777 # a shared library.
28778 compiler_lib_search_path=$lt_compiler_lib_search_path
28780 # ### END LIBTOOL CONFIG
28786 cat <<\_LT_EOF >> "$cfgfile"
28787 # AIX sometimes has problems with the GCC collect2 program. For some
28788 # reason, if we set the COLLECT_NAMES environment variable, the problems
28789 # vanish in a puff of smoke.
28790 if test "X${COLLECT_NAMES+set}" != Xset; then
28792 export COLLECT_NAMES
28799 ltmain="$ac_aux_dir/ltmain.sh"
28802 # We use sed instead of cat because bash on DJGPP gets confused if
28803 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28804 # text mode, it properly converts lines to CR/LF. This bash problem
28805 # is reportedly fixed, but why not run on old versions too?
28806 sed '$q' "$ltmain" >> "$cfgfile" \
28807 || (rm -f "$cfgfile"; exit 1)
28809 if test x"$xsi_shell" = xyes; then
28810 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28814 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28815 \ * ) func_dirname_result="${3}" ;;\
28817 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28818 && mv -f "$cfgfile.tmp" "$cfgfile" \
28819 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28820 test 0 -eq $? || _lt_function_replace_fail=:
28823 sed -e '/^func_basename ()$/,/^} # func_basename /c\
28826 \ func_basename_result="${1##*/}"\
28827 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28828 && mv -f "$cfgfile.tmp" "$cfgfile" \
28829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28830 test 0 -eq $? || _lt_function_replace_fail=:
28833 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28834 func_dirname_and_basename ()\
28837 \ */*) func_dirname_result="${1%/*}${2}" ;;\
28838 \ * ) func_dirname_result="${3}" ;;\
28840 \ func_basename_result="${1##*/}"\
28841 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28842 && mv -f "$cfgfile.tmp" "$cfgfile" \
28843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28844 test 0 -eq $? || _lt_function_replace_fail=:
28847 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28850 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28851 \ # positional parameters, so assign one to ordinary parameter first.\
28852 \ func_stripname_result=${3}\
28853 \ func_stripname_result=${func_stripname_result#"${1}"}\
28854 \ func_stripname_result=${func_stripname_result%"${2}"}\
28855 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28856 && mv -f "$cfgfile.tmp" "$cfgfile" \
28857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28858 test 0 -eq $? || _lt_function_replace_fail=:
28861 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28862 func_split_long_opt ()\
28864 \ func_split_long_opt_name=${1%%=*}\
28865 \ func_split_long_opt_arg=${1#*=}\
28866 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28867 && mv -f "$cfgfile.tmp" "$cfgfile" \
28868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28869 test 0 -eq $? || _lt_function_replace_fail=:
28872 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28873 func_split_short_opt ()\
28875 \ func_split_short_opt_arg=${1#??}\
28876 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28877 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28878 && mv -f "$cfgfile.tmp" "$cfgfile" \
28879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28880 test 0 -eq $? || _lt_function_replace_fail=:
28883 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28887 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28888 \ *) func_lo2o_result=${1} ;;\
28890 } # Extended-shell func_lo2o 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_xform ()$/,/^} # func_xform /c\
28899 func_xform_result=${1%.*}.lo\
28900 } # Extended-shell func_xform 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=:
28906 sed -e '/^func_arith ()$/,/^} # func_arith /c\
28909 func_arith_result=$(( $* ))\
28910 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28911 && mv -f "$cfgfile.tmp" "$cfgfile" \
28912 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28913 test 0 -eq $? || _lt_function_replace_fail=:
28916 sed -e '/^func_len ()$/,/^} # func_len /c\
28919 func_len_result=${#1}\
28920 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28921 && mv -f "$cfgfile.tmp" "$cfgfile" \
28922 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28923 test 0 -eq $? || _lt_function_replace_fail=:
28927 if test x"$lt_shell_append" = xyes; then
28928 sed -e '/^func_append ()$/,/^} # func_append /c\
28931 eval "${1}+=\\${2}"\
28932 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28933 && mv -f "$cfgfile.tmp" "$cfgfile" \
28934 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28935 test 0 -eq $? || _lt_function_replace_fail=:
28938 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28939 func_append_quoted ()\
28941 \ func_quote_for_eval "${2}"\
28942 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28943 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28944 && mv -f "$cfgfile.tmp" "$cfgfile" \
28945 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28946 test 0 -eq $? || _lt_function_replace_fail=:
28949 # Save a `func_append' function call where possible by direct use of '+='
28950 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28951 && mv -f "$cfgfile.tmp" "$cfgfile" \
28952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28953 test 0 -eq $? || _lt_function_replace_fail=:
28955 # Save a `func_append' function call even when '+=' is not available
28956 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28957 && mv -f "$cfgfile.tmp" "$cfgfile" \
28958 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28959 test 0 -eq $? || _lt_function_replace_fail=:
28962 if test x"$_lt_function_replace_fail" = x":"; then
28963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28964 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28968 mv -f "$cfgfile" "$ofile" ||
28969 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28973 cat <<_LT_EOF >> "$ofile"
28975 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28977 # The linker used to build libraries.
28980 # How to create reloadable object files.
28981 reload_flag=$lt_reload_flag_CXX
28982 reload_cmds=$lt_reload_cmds_CXX
28984 # Commands used to build an old-style archive.
28985 old_archive_cmds=$lt_old_archive_cmds_CXX
28987 # A language specific compiler.
28988 CC=$lt_compiler_CXX
28990 # Is the compiler the GNU compiler?
28993 # Compiler flag to turn off builtin functions.
28994 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28996 # Additional compiler flags for building library objects.
28997 pic_flag=$lt_lt_prog_compiler_pic_CXX
28999 # How to pass a linker flag through the compiler.
29000 wl=$lt_lt_prog_compiler_wl_CXX
29002 # Compiler flag to prevent dynamic linking.
29003 link_static_flag=$lt_lt_prog_compiler_static_CXX
29005 # Does compiler simultaneously support -c and -o options?
29006 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29008 # Whether or not to add -lc for building shared libraries.
29009 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29011 # Whether or not to disallow shared libs when runtime libs are static.
29012 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29014 # Compiler flag to allow reflexive dlopens.
29015 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29017 # Compiler flag to generate shared objects directly from archives.
29018 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29020 # Whether the compiler copes with passing no objects directly.
29021 compiler_needs_object=$lt_compiler_needs_object_CXX
29023 # Create an old-style archive from a shared archive.
29024 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29026 # Create a temporary old-style archive to link instead of a shared archive.
29027 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29029 # Commands used to build a shared archive.
29030 archive_cmds=$lt_archive_cmds_CXX
29031 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29033 # Commands used to build a loadable module if different from building
29034 # a shared archive.
29035 module_cmds=$lt_module_cmds_CXX
29036 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29038 # Whether we are building with GNU ld or not.
29039 with_gnu_ld=$lt_with_gnu_ld_CXX
29041 # Flag that allows shared libraries with undefined symbols to be built.
29042 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29044 # Flag that enforces no undefined symbols.
29045 no_undefined_flag=$lt_no_undefined_flag_CXX
29047 # Flag to hardcode \$libdir into a binary during linking.
29048 # This must work even if \$libdir does not exist
29049 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29051 # Whether we need a single "-rpath" flag with a separated argument.
29052 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29055 # DIR into the resulting binary.
29056 hardcode_direct=$hardcode_direct_CXX
29058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29059 # DIR into the resulting binary and the resulting library dependency is
29060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29061 # library is relocated.
29062 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29065 # into the resulting binary.
29066 hardcode_minus_L=$hardcode_minus_L_CXX
29068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29069 # into the resulting binary.
29070 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29072 # Set to "yes" if building a shared library automatically hardcodes DIR
29073 # into the library and all subsequent libraries and executables linked
29075 hardcode_automatic=$hardcode_automatic_CXX
29077 # Set to yes if linker adds runtime paths of dependent libraries
29078 # to runtime path list.
29079 inherit_rpath=$inherit_rpath_CXX
29081 # Whether libtool must link a program against all its dependency libraries.
29082 link_all_deplibs=$link_all_deplibs_CXX
29084 # Set to "yes" if exported symbols are required.
29085 always_export_symbols=$always_export_symbols_CXX
29087 # The commands to list exported symbols.
29088 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29090 # Symbols that should not be listed in the preloaded symbols.
29091 exclude_expsyms=$lt_exclude_expsyms_CXX
29093 # Symbols that must always be exported.
29094 include_expsyms=$lt_include_expsyms_CXX
29096 # Commands necessary for linking programs (against libraries) with templates.
29097 prelink_cmds=$lt_prelink_cmds_CXX
29099 # Commands necessary for finishing linking programs.
29100 postlink_cmds=$lt_postlink_cmds_CXX
29102 # Specify filename containing input files.
29103 file_list_spec=$lt_file_list_spec_CXX
29105 # How to hardcode a shared library path into an executable.
29106 hardcode_action=$hardcode_action_CXX
29108 # The directories searched by this compiler when creating a shared library.
29109 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29111 # Dependencies to place before and after the objects being linked to
29112 # create a shared library.
29113 predep_objects=$lt_predep_objects_CXX
29114 postdep_objects=$lt_postdep_objects_CXX
29115 predeps=$lt_predeps_CXX
29116 postdeps=$lt_postdeps_CXX
29118 # The library search path used internally by the compiler when linking
29119 # a shared library.
29120 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29122 # ### END LIBTOOL TAG CONFIG: CXX
29126 cat <<_LT_EOF >> "$ofile"
29128 # ### BEGIN LIBTOOL TAG CONFIG: RC
29130 # The linker used to build libraries.
29133 # How to create reloadable object files.
29134 reload_flag=$lt_reload_flag_RC
29135 reload_cmds=$lt_reload_cmds_RC
29137 # Commands used to build an old-style archive.
29138 old_archive_cmds=$lt_old_archive_cmds_RC
29140 # A language specific compiler.
29143 # Is the compiler the GNU compiler?
29146 # Compiler flag to turn off builtin functions.
29147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
29149 # Additional compiler flags for building library objects.
29150 pic_flag=$lt_lt_prog_compiler_pic_RC
29152 # How to pass a linker flag through the compiler.
29153 wl=$lt_lt_prog_compiler_wl_RC
29155 # Compiler flag to prevent dynamic linking.
29156 link_static_flag=$lt_lt_prog_compiler_static_RC
29158 # Does compiler simultaneously support -c and -o options?
29159 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
29161 # Whether or not to add -lc for building shared libraries.
29162 build_libtool_need_lc=$archive_cmds_need_lc_RC
29164 # Whether or not to disallow shared libs when runtime libs are static.
29165 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
29167 # Compiler flag to allow reflexive dlopens.
29168 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
29170 # Compiler flag to generate shared objects directly from archives.
29171 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
29173 # Whether the compiler copes with passing no objects directly.
29174 compiler_needs_object=$lt_compiler_needs_object_RC
29176 # Create an old-style archive from a shared archive.
29177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
29179 # Create a temporary old-style archive to link instead of a shared archive.
29180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
29182 # Commands used to build a shared archive.
29183 archive_cmds=$lt_archive_cmds_RC
29184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
29186 # Commands used to build a loadable module if different from building
29187 # a shared archive.
29188 module_cmds=$lt_module_cmds_RC
29189 module_expsym_cmds=$lt_module_expsym_cmds_RC
29191 # Whether we are building with GNU ld or not.
29192 with_gnu_ld=$lt_with_gnu_ld_RC
29194 # Flag that allows shared libraries with undefined symbols to be built.
29195 allow_undefined_flag=$lt_allow_undefined_flag_RC
29197 # Flag that enforces no undefined symbols.
29198 no_undefined_flag=$lt_no_undefined_flag_RC
29200 # Flag to hardcode \$libdir into a binary during linking.
29201 # This must work even if \$libdir does not exist
29202 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
29204 # Whether we need a single "-rpath" flag with a separated argument.
29205 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
29207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29208 # DIR into the resulting binary.
29209 hardcode_direct=$hardcode_direct_RC
29211 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29212 # DIR into the resulting binary and the resulting library dependency is
29213 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29214 # library is relocated.
29215 hardcode_direct_absolute=$hardcode_direct_absolute_RC
29217 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29218 # into the resulting binary.
29219 hardcode_minus_L=$hardcode_minus_L_RC
29221 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29222 # into the resulting binary.
29223 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
29225 # Set to "yes" if building a shared library automatically hardcodes DIR
29226 # into the library and all subsequent libraries and executables linked
29228 hardcode_automatic=$hardcode_automatic_RC
29230 # Set to yes if linker adds runtime paths of dependent libraries
29231 # to runtime path list.
29232 inherit_rpath=$inherit_rpath_RC
29234 # Whether libtool must link a program against all its dependency libraries.
29235 link_all_deplibs=$link_all_deplibs_RC
29237 # Set to "yes" if exported symbols are required.
29238 always_export_symbols=$always_export_symbols_RC
29240 # The commands to list exported symbols.
29241 export_symbols_cmds=$lt_export_symbols_cmds_RC
29243 # Symbols that should not be listed in the preloaded symbols.
29244 exclude_expsyms=$lt_exclude_expsyms_RC
29246 # Symbols that must always be exported.
29247 include_expsyms=$lt_include_expsyms_RC
29249 # Commands necessary for linking programs (against libraries) with templates.
29250 prelink_cmds=$lt_prelink_cmds_RC
29252 # Commands necessary for finishing linking programs.
29253 postlink_cmds=$lt_postlink_cmds_RC
29255 # Specify filename containing input files.
29256 file_list_spec=$lt_file_list_spec_RC
29258 # How to hardcode a shared library path into an executable.
29259 hardcode_action=$hardcode_action_RC
29261 # The directories searched by this compiler when creating a shared library.
29262 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
29264 # Dependencies to place before and after the objects being linked to
29265 # create a shared library.
29266 predep_objects=$lt_predep_objects_RC
29267 postdep_objects=$lt_postdep_objects_RC
29268 predeps=$lt_predeps_RC
29269 postdeps=$lt_postdeps_RC
29271 # The library search path used internally by the compiler when linking
29272 # a shared library.
29273 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
29275 # ### END LIBTOOL TAG CONFIG: RC
29279 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
29280 "lang/python/setup.py":F) chmod a+x lang/python/setup.py ;;
29288 ac_clean_files=$ac_clean_files_save
29290 test $ac_write_fail = 0 ||
29291 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29294 # configure is writing to config.log, and then calls config.status.
29295 # config.status does its own redirection, appending to config.log.
29296 # Unfortunately, on DOS this fails, as config.log is still kept open
29297 # by configure, so config.status won't be able to write to it; its
29298 # output is simply discarded. So we exec the FD to /dev/null,
29299 # effectively closing config.log, so it can be properly (re)opened and
29300 # appended to by config.status. When coming back to configure, we
29301 # need to make the FD available again.
29302 if test "$no_create" != yes; then
29304 ac_config_status_args=
29305 test "$silent" = yes &&
29306 ac_config_status_args="$ac_config_status_args --quiet"
29308 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29310 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29311 # would make configure fail if this is the last instruction.
29312 $ac_cs_success || as_fn_exit 1
29314 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29316 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29321 GPGME v${VERSION} has been configured as follows:
29323 Revision: 1021c864 (4129)
29326 UI Server: $uiserver
29327 FD Passing: $use_descriptor_passing
29329 Language bindings: ${enabled_languages_v:-$enabled_languages}
29331 if test "x${gpg_config_script_warn}" != x; then
29333 Mismatches between the target platform and the to
29334 be used libraries have been been detected for:
29335 ${gpg_config_script_warn}
29336 Please check above for warning messages.