2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gpgme 1.5.3.
5 # Report bugs to <http://bugs.gnupg.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugs.gnupg.org about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
592 PACKAGE_TARNAME='gpgme'
593 PACKAGE_VERSION='1.5.3'
594 PACKAGE_STRING='gpgme 1.5.3'
595 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
598 ac_unique_file="src/gpgme.h.in"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
636 ac_subst_vars='am__EXEEXT_FALSE
639 emacs_local_vars_read_only
640 emacs_local_vars_begin
645 GPGME_CONFIG_API_VERSION
648 USE_DESCRIPTOR_PASSING_FALSE
649 USE_DESCRIPTOR_PASSING_TRUE
662 INSERT__TYPEDEFS_FOR_GPGME_H
663 NEED__FILE_OFFSET_BITS
666 RUN_GPGSM_TESTS_FALSE
670 RUN_GPGCONF_TESTS_FALSE
671 RUN_GPGCONF_TESTS_TRUE
681 HAVE_ANDROID_SYSTEM_FALSE
682 HAVE_ANDROID_SYSTEM_TRUE
683 HAVE_W32CE_SYSTEM_FALSE
684 HAVE_W32CE_SYSTEM_TRUE
685 HAVE_W64_SYSTEM_FALSE
687 HAVE_W32_SYSTEM_FALSE
689 HAVE_DOSISH_SYSTEM_FALSE
690 HAVE_DOSISH_SYSTEM_TRUE
699 HAVE_LD_VERSION_SCRIPT_FALSE
700 HAVE_LD_VERSION_SCRIPT_TRUE
768 MAINTAINER_MODE_FALSE
778 INSTALL_STRIP_PROGRAM
820 program_transform_name
833 enable_option_checking
834 enable_maintainer_mode
836 enable_dependency_tracking
853 with_libgpg_error_prefix
854 with_gpg_error_prefix
855 with_libassuan_prefix
858 ac_precious_vars='build_alias
874 # Initialize some variables set by options.
876 ac_init_version=false
877 ac_unrecognized_opts=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
888 program_transform_name=s,x,x,
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
934 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939 # Accept the important Cygnus configure options, so we can diagnose typos.
941 case $ac_dashdash$ac_option in
945 -bindir | --bindir | --bindi | --bind | --bin | --bi)
947 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950 -build | --build | --buil | --bui | --bu)
951 ac_prev=build_alias ;;
952 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953 build_alias=$ac_optarg ;;
955 -cache-file | --cache-file | --cache-fil | --cache-fi \
956 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957 ac_prev=cache_file ;;
958 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960 cache_file=$ac_optarg ;;
963 cache_file=config.cache ;;
965 -datadir | --datadir | --datadi | --datad)
967 -datadir=* | --datadir=* | --datadi=* | --datad=*)
968 datadir=$ac_optarg ;;
970 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971 | --dataroo | --dataro | --datar)
972 ac_prev=datarootdir ;;
973 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975 datarootdir=$ac_optarg ;;
977 -disable-* | --disable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error $? "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
991 eval enable_$ac_useropt=no ;;
993 -docdir | --docdir | --docdi | --doc | --do)
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 as_fn_error $? "invalid feature name: $ac_useropt"
1008 ac_useropt_orig=$ac_useropt
1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_$ac_useropt"
1014 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015 ac_unrecognized_sep=', ';;
1017 eval enable_$ac_useropt=\$ac_optarg ;;
1019 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021 | --exec | --exe | --ex)
1022 ac_prev=exec_prefix ;;
1023 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025 | --exec=* | --exe=* | --ex=*)
1026 exec_prefix=$ac_optarg ;;
1028 -gas | --gas | --ga | --g)
1029 # Obsolete; use --with-gas.
1032 -help | --help | --hel | --he | -h)
1033 ac_init_help=long ;;
1034 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035 ac_init_help=recursive ;;
1036 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037 ac_init_help=short ;;
1039 -host | --host | --hos | --ho)
1040 ac_prev=host_alias ;;
1041 -host=* | --host=* | --hos=* | --ho=*)
1042 host_alias=$ac_optarg ;;
1044 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 htmldir=$ac_optarg ;;
1050 -includedir | --includedir | --includedi | --included | --include \
1051 | --includ | --inclu | --incl | --inc)
1052 ac_prev=includedir ;;
1053 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054 | --includ=* | --inclu=* | --incl=* | --inc=*)
1055 includedir=$ac_optarg ;;
1057 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060 infodir=$ac_optarg ;;
1062 -libdir | --libdir | --libdi | --libd)
1064 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065 libdir=$ac_optarg ;;
1067 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068 | --libexe | --libex | --libe)
1069 ac_prev=libexecdir ;;
1070 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071 | --libexe=* | --libex=* | --libe=*)
1072 libexecdir=$ac_optarg ;;
1074 -localedir | --localedir | --localedi | --localed | --locale)
1075 ac_prev=localedir ;;
1076 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077 localedir=$ac_optarg ;;
1079 -localstatedir | --localstatedir | --localstatedi | --localstated \
1080 | --localstate | --localstat | --localsta | --localst | --locals)
1081 ac_prev=localstatedir ;;
1082 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084 localstatedir=$ac_optarg ;;
1086 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089 mandir=$ac_optarg ;;
1091 -nfp | --nfp | --nf)
1092 # Obsolete; use --without-fp.
1095 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096 | --no-cr | --no-c | -n)
1099 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1103 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105 | --oldin | --oldi | --old | --ol | --o)
1106 ac_prev=oldincludedir ;;
1107 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110 oldincludedir=$ac_optarg ;;
1112 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115 prefix=$ac_optarg ;;
1117 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118 | --program-pre | --program-pr | --program-p)
1119 ac_prev=program_prefix ;;
1120 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122 program_prefix=$ac_optarg ;;
1124 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125 | --program-suf | --program-su | --program-s)
1126 ac_prev=program_suffix ;;
1127 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129 program_suffix=$ac_optarg ;;
1131 -program-transform-name | --program-transform-name \
1132 | --program-transform-nam | --program-transform-na \
1133 | --program-transform-n | --program-transform- \
1134 | --program-transform | --program-transfor \
1135 | --program-transfo | --program-transf \
1136 | --program-trans | --program-tran \
1137 | --progr-tra | --program-tr | --program-t)
1138 ac_prev=program_transform_name ;;
1139 -program-transform-name=* | --program-transform-name=* \
1140 | --program-transform-nam=* | --program-transform-na=* \
1141 | --program-transform-n=* | --program-transform-=* \
1142 | --program-transform=* | --program-transfor=* \
1143 | --program-transfo=* | --program-transf=* \
1144 | --program-trans=* | --program-tran=* \
1145 | --progr-tra=* | --program-tr=* | --program-t=*)
1146 program_transform_name=$ac_optarg ;;
1148 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151 pdfdir=$ac_optarg ;;
1153 -psdir | --psdir | --psdi | --psd | --ps)
1155 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1158 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159 | -silent | --silent | --silen | --sile | --sil)
1162 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 sbindir=$ac_optarg ;;
1168 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170 | --sharedst | --shareds | --shared | --share | --shar \
1172 ac_prev=sharedstatedir ;;
1173 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 sharedstatedir=$ac_optarg ;;
1179 -site | --site | --sit)
1181 -site=* | --site=* | --sit=*)
1184 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187 srcdir=$ac_optarg ;;
1189 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190 | --syscon | --sysco | --sysc | --sys | --sy)
1191 ac_prev=sysconfdir ;;
1192 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194 sysconfdir=$ac_optarg ;;
1196 -target | --target | --targe | --targ | --tar | --ta | --t)
1197 ac_prev=target_alias ;;
1198 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199 target_alias=$ac_optarg ;;
1201 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 -version | --version | --versio | --versi | --vers | -V)
1205 ac_init_version=: ;;
1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209 # Reject names that are not valid shell variable names.
1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211 as_fn_error $? "invalid package name: $ac_useropt"
1212 ac_useropt_orig=$ac_useropt
1213 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214 case $ac_user_opts in
1218 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219 ac_unrecognized_sep=', ';;
1221 eval with_$ac_useropt=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1237 eval with_$ac_useropt=no ;;
1240 # Obsolete; use --with-x.
1243 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244 | --x-incl | --x-inc | --x-in | --x-i)
1245 ac_prev=x_includes ;;
1246 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248 x_includes=$ac_optarg ;;
1250 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252 ac_prev=x_libraries ;;
1253 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255 x_libraries=$ac_optarg ;;
1257 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1262 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263 # Reject names that are not valid shell variable names.
1264 case $ac_envvar in #(
1265 '' | [0-9]* | *[!_$as_cr_alnum]* )
1266 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 eval $ac_envvar=\$ac_optarg
1269 export $ac_envvar ;;
1272 # FIXME: should be removed in autoconf 3.0.
1273 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282 if test -n "$ac_prev"; then
1283 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284 as_fn_error $? "missing argument to $ac_option"
1287 if test -n "$ac_unrecognized_opts"; then
1288 case $enable_option_checking in
1290 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 # Check all directory arguments for consistency.
1296 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
1301 eval ac_val=\$$ac_var
1302 # Remove trailing slashes.
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1308 # Be sure to have absolute directory names.
1310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 elif test "x$build_alias" != "x$host_alias"; then
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335 test "$silent" = yes && exec 6>/dev/null
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341 as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343 as_fn_error $? "pwd does not report name of working directory"
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 for ac_var in $ac_precious_vars; do
1399 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_env_${ac_var}_value=\$${ac_var}
1401 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406 # Report the --help message.
1408 if test "$ac_init_help" = "long"; then
1409 # Omit some internal or obsolete options to make the list less imposing.
1410 # This message is too long to be a string in the A/UX 3.1 sh.
1412 \`configure' configures gpgme 1.5.3 to adapt to many kinds of systems.
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE. See below for descriptions of some of the useful variables.
1419 Defaults for the options are specified in brackets.
1422 -h, --help display this help and exit
1423 --help=short display options specific to this package
1424 --help=recursive display the short help of all the included packages
1425 -V, --version display version information and exit
1426 -q, --quiet, --silent do not print \`checking ...' messages
1427 --cache-file=FILE cache test results in FILE [disabled]
1428 -C, --config-cache alias for \`--cache-file=config.cache'
1429 -n, --no-create do not create output files
1430 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432 Installation directories:
1433 --prefix=PREFIX install architecture-independent files in PREFIX
1434 [$ac_default_prefix]
1435 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1443 For better control, use the options below.
1445 Fine tuning of the installation directories:
1446 --bindir=DIR user executables [EPREFIX/bin]
1447 --sbindir=DIR system admin executables [EPREFIX/sbin]
1448 --libexecdir=DIR program executables [EPREFIX/libexec]
1449 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1450 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1451 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1452 --libdir=DIR object code libraries [EPREFIX/lib]
1453 --includedir=DIR C header files [PREFIX/include]
1454 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1455 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1456 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1457 --infodir=DIR info documentation [DATAROOTDIR/info]
1458 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1459 --mandir=DIR man documentation [DATAROOTDIR/man]
1460 --docdir=DIR documentation root [DATAROOTDIR/doc/gpgme]
1461 --htmldir=DIR html documentation [DOCDIR]
1462 --dvidir=DIR dvi documentation [DOCDIR]
1463 --pdfdir=DIR pdf documentation [DOCDIR]
1464 --psdir=DIR ps documentation [DOCDIR]
1470 --program-prefix=PREFIX prepend PREFIX to installed program names
1471 --program-suffix=SUFFIX append SUFFIX to installed program names
1472 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of gpgme 1.5.3:";;
1487 --disable-option-checking ignore unrecognized --enable/--with options
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1490 --enable-maintainer-mode enable make rules and dependencies not useful
1491 (and sometimes confusing) to the casual installer
1492 --enable-silent-rules less verbose build output (undo: `make V=1')
1493 --disable-silent-rules verbose build output (undo: `make V=0')
1494 --disable-dependency-tracking speeds up one-time build
1495 --enable-dependency-tracking do not reject slow dependency extractors
1496 --enable-static[=PKGS] build static libraries [default=no]
1497 --enable-shared[=PKGS] build shared libraries [default=yes]
1498 --enable-fast-install[=PKGS]
1499 optimize for fast installation [default=yes]
1500 --disable-libtool-lock avoid locking (might break parallel builds)
1501 --disable-glibtest do not try to compile and run a test GLIB program
1502 --enable-w32-glib build GPGME Glib for W32
1503 --enable-w32-qt build GPGME Qt for W32
1504 --enable-fixed-path=PATH
1505 locate binaries only via this PATH
1506 --disable-gpgconf-test disable GPGCONF regression test
1507 --disable-gpg-test disable GPG regression test
1508 --disable-gpgsm-test disable GPGSM regression test
1509 --disable-g13-test disable G13 regression test
1510 --disable-largefile omit support for large files
1511 --disable-fd-passing do not use FD passing
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1518 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1519 --with-sysroot=DIR Search for dependent libraries within DIR
1520 (or the compiler's sysroot if not specified).
1521 --with-libgpg-error-prefix=PFX
1522 prefix where GPG Error is installed (optional)
1524 --with-libassuan-prefix=PFX
1525 prefix where LIBASSUAN is installed (optional)
1527 Some influential environment variables:
1528 SYSROOT locate config scripts also below that directory
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1537 CXX C++ compiler command
1538 CXXFLAGS C++ compiler flags
1539 CXXCPP C++ preprocessor
1541 Use these variables to override the choices made by `configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1544 Report bugs to <http://bugs.gnupg.org>.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1607 gpgme configure 1.5.3
1608 generated by GNU Autoconf 2.69
1610 Copyright (C) 2012 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err; then
1638 grep -v '^ *+' conftest.err >conftest.er1
1639 cat conftest.er1 >&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_cpp LINENO
1660 # ----------------------
1661 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 if { { ac_try="$ac_cpp conftest.$ac_ext"
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } > conftest.i && {
1681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1697 # -------------------------------------------------------
1698 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1699 # the include files in INCLUDES and setting the cache variable VAR
1701 ac_fn_c_check_header_mongrel ()
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 if eval \${$3+:} false; then :
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1712 $as_echo "$ac_res" >&6; }
1714 # Is the header compilable?
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1716 $as_echo_n "checking $2 usability... " >&6; }
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1723 ac_header_compiler=yes
1725 ac_header_compiler=no
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1729 $as_echo "$ac_header_compiler" >&6; }
1731 # Is the header present?
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1733 $as_echo_n "checking $2 presence... " >&6; }
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1738 if ac_fn_c_try_cpp "$LINENO"; then :
1739 ac_header_preproc=yes
1741 ac_header_preproc=no
1743 rm -f conftest.err conftest.i conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1745 $as_echo "$ac_header_preproc" >&6; }
1747 # So? What about this header?
1748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1751 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1753 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1757 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1759 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1761 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1763 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1765 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 ( $as_echo "## ------------------------------------ ##
1767 ## Report this to http://bugs.gnupg.org ##
1768 ## ------------------------------------ ##"
1769 ) | sed "s/^/$as_me: WARNING: /" >&2
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1777 eval "$3=\$ac_header_compiler"
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 } # ac_fn_c_check_header_mongrel
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=$ac_status
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1846 if ac_fn_c_try_compile "$LINENO"; then :
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_header_compile
1860 # ac_fn_cxx_try_compile LINENO
1861 # ----------------------------
1862 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_cxx_try_compile ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext
1867 if { { ac_try="$ac_compile"
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_compile") 2>conftest.err
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_cxx_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest.$ac_objext; then :
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_cxx_try_compile
1898 # ac_fn_c_try_link LINENO
1899 # -----------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 test -x conftest$ac_exeext
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1934 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936 # interfere with the next link command; also delete a directory that is
1937 # left behind by Apple's compiler. We do this before executing the actions.
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_c_try_link
1944 # ac_fn_c_check_func LINENO FUNC VAR
1945 # ----------------------------------
1946 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1947 ac_fn_c_check_func ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951 $as_echo_n "checking for $2... " >&6; }
1952 if eval \${$3+:} false; then :
1953 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1959 #define $2 innocuous_$2
1961 /* System header to define __stub macros and hopefully few prototypes,
1962 which can conflict with char $2 (); below.
1963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1964 <limits.h> exists even on freestanding compilers. */
1967 # include <limits.h>
1969 # include <assert.h>
1974 /* Override any GCC internal prototype to avoid an error.
1975 Use char because int might match the return type of a GCC
1976 builtin and then its argument prototype would still apply. */
1981 /* The GNU C library defines this for functions which it implements
1982 to always fail with ENOSYS. Some functions are actually named
1983 something starting with __ and the normal name is an alias. */
1984 #if defined __stub_$2 || defined __stub___$2
1996 if ac_fn_c_try_link "$LINENO"; then :
2001 rm -f core conftest.err conftest.$ac_objext \
2002 conftest$ac_exeext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_func
2011 # ac_fn_cxx_try_cpp LINENO
2012 # ------------------------
2013 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_cpp ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if { { ac_try="$ac_cpp conftest.$ac_ext"
2019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2020 *) ac_try_echo=$ac_try;;
2022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2023 $as_echo "$ac_try_echo"; } >&5
2024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2026 if test -s conftest.err; then
2027 grep -v '^ *+' conftest.err >conftest.er1
2028 cat conftest.er1 >&5
2029 mv -f conftest.er1 conftest.err
2031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032 test $ac_status = 0; } > conftest.i && {
2033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2034 test ! -s conftest.err
2038 $as_echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 as_fn_set_status $ac_retval
2046 } # ac_fn_cxx_try_cpp
2048 # ac_fn_cxx_try_link LINENO
2049 # -------------------------
2050 # Try to link conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_cxx_try_link ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext conftest$ac_exeext
2055 if { { ac_try="$ac_link"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_link") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_cxx_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest$ac_exeext && {
2074 test "$cross_compiling" = yes ||
2075 test -x conftest$ac_exeext
2079 $as_echo "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2084 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2085 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2086 # interfere with the next link command; also delete a directory that is
2087 # left behind by Apple's compiler. We do this before executing the actions.
2088 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2092 } # ac_fn_cxx_try_link
2094 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2095 # --------------------------------------------
2096 # Tries to find the compile-time value of EXPR in a program that includes
2097 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2099 ac_fn_c_compute_int ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if test "$cross_compiling" = yes; then
2103 # Depending upon the size, compute the lo and hi bounds.
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2110 static int test_array [1 - 2 * !(($2) >= 0)];
2112 return test_array [0];
2118 if ac_fn_c_try_compile "$LINENO"; then :
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2129 return test_array [0];
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_hi=$ac_mid; break
2138 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2139 if test $ac_lo -le $ac_mid; then
2143 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) < 0)];
2156 return test_array [0];
2162 if ac_fn_c_try_compile "$LINENO"; then :
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2173 return test_array [0];
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_lo=$ac_mid; break
2182 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2183 if test $ac_mid -le $ac_hi; then
2187 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 # Binary search between lo and hi bounds.
2198 while test "x$ac_lo" != "x$ac_hi"; do
2199 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208 return test_array [0];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2217 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2229 static long int longval () { return $2; }
2230 static unsigned long int ulongval () { return $2; }
2237 FILE *f = fopen ("conftest.val", "w");
2242 long int i = longval ();
2245 fprintf (f, "%ld", i);
2249 unsigned long int i = ulongval ();
2252 fprintf (f, "%lu", i);
2254 /* Do not output a trailing newline, as this causes \r\n confusion
2255 on some platforms. */
2256 return ferror (f) || fclose (f) != 0;
2262 if ac_fn_c_try_run "$LINENO"; then :
2263 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268 conftest.$ac_objext conftest.beam conftest.$ac_ext
2272 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273 as_fn_set_status $ac_retval
2275 } # ac_fn_c_compute_int
2277 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2278 # -------------------------------------------
2279 # Tests whether TYPE exists after having included INCLUDES, setting cache
2280 # variable VAR accordingly.
2281 ac_fn_c_check_type ()
2283 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2285 $as_echo_n "checking for $2... " >&6; }
2286 if eval \${$3+:} false; then :
2287 $as_echo_n "(cached) " >&6
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2315 if ac_fn_c_try_compile "$LINENO"; then :
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2326 $as_echo "$ac_res" >&6; }
2327 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329 } # ac_fn_c_check_type
2331 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2332 # ---------------------------------------------
2333 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2335 ac_fn_c_check_decl ()
2337 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338 as_decl_name=`echo $2|sed 's/ *(.*//'`
2339 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2341 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2342 if eval \${$3+:} false; then :
2343 $as_echo_n "(cached) " >&6
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2351 #ifndef $as_decl_name
2353 (void) $as_decl_use;
2355 (void) $as_decl_name;
2363 if ac_fn_c_try_compile "$LINENO"; then :
2368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2375 } # ac_fn_c_check_decl
2377 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2378 # ----------------------------------------------------
2379 # Tries to find if the field MEMBER exists in type AGGR, after including
2380 # INCLUDES, setting cache variable VAR accordingly.
2381 ac_fn_c_check_member ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2385 $as_echo_n "checking for $2.$3... " >&6; }
2386 if eval \${$4+:} false; then :
2387 $as_echo_n "(cached) " >&6
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2402 if ac_fn_c_try_compile "$LINENO"; then :
2405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h. */
2412 if (sizeof ac_aggr.$3)
2418 if ac_fn_c_try_compile "$LINENO"; then :
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2432 } # ac_fn_c_check_member
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2437 It was created by gpgme $as_me 1.5.3, which was
2438 generated by GNU Autoconf 2.69. Invocation command line was
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2498 ac_must_keep_next=false
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 -* ) ac_must_keep_next=true ;;
2530 as_fn_append ac_configure_args " '$ac_arg'"
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2552 # The following way of writing the cache mishandles newlines in values,
2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555 eval ac_val=\$$ac_var
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2588 for ac_var in $ac_subst_vars
2590 eval ac_val=\$$ac_var
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2594 $as_echo "$ac_var='\''$ac_val'\''"
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2603 for ac_var in $ac_subst_files
2605 eval ac_val=\$$ac_var
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2609 $as_echo "$ac_var='\''$ac_val'\''"
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2638 $as_echo "/* confdefs.h */" > confdefs.h
2640 # Predefined preprocessor variables.
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2717 as_fn_append ac_header_list " locale.h"
2718 as_fn_append ac_header_list " sys/select.h"
2719 as_fn_append ac_header_list " sys/uio.h"
2720 as_fn_append ac_header_list " argp.h"
2721 as_fn_append ac_header_list " unistd.h"
2722 as_fn_append ac_header_list " sys/time.h"
2723 as_fn_append ac_header_list " sys/types.h"
2724 as_fn_append ac_header_list " sys/stat.h"
2725 # Check that the precious variables saved in the cache have kept the same
2727 ac_cache_corrupted=false
2728 for ac_var in $ac_precious_vars; do
2729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2730 eval ac_new_set=\$ac_env_${ac_var}_set
2731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2732 eval ac_new_val=\$ac_env_${ac_var}_value
2733 case $ac_old_set,$ac_new_set in
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2736 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2737 ac_cache_corrupted=: ;;
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2740 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2741 ac_cache_corrupted=: ;;
2744 if test "x$ac_old_val" != "x$ac_new_val"; then
2745 # differences in whitespace do not lead to failure.
2746 ac_old_val_w=`echo x $ac_old_val`
2747 ac_new_val_w=`echo x $ac_new_val`
2748 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2750 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2751 ac_cache_corrupted=:
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2754 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2755 eval $ac_var=\$ac_old_val
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2758 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2760 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2763 # Pass precious variables to config.status.
2764 if test "$ac_new_set" = set; then
2766 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2767 *) ac_arg=$ac_var=$ac_new_val ;;
2769 case " $ac_configure_args " in
2770 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2771 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2775 if $ac_cache_corrupted; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2779 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2780 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2782 ## -------------------- ##
2783 ## Main body of script. ##
2784 ## -------------------- ##
2787 ac_cpp='$CPP $CPPFLAGS'
2788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794 # LT Version numbers, remember to change them just *before* a release.
2795 # (Code changed: REVISION++)
2796 # (Interfaces added/removed/changed: CURRENT++, REVISION=0)
2797 # (Interfaces added: AGE++)
2798 # (Interfaces removed/changed: AGE=0)
2800 LIBGPGME_LT_CURRENT=24
2801 # Subtract 2 from this value if you want to make the LFS transition an
2802 # ABI break. [Note to self: Remove this comment with the next regular break.]
2804 LIBGPGME_LT_REVISION=2
2806 # If the API is changed in an incompatible way: increment the next counter.
2807 GPGME_CONFIG_API_VERSION=1
2808 ##############################################
2810 NEED_GPG_ERROR_VERSION=1.11
2811 NEED_LIBASSUAN_API=2
2812 NEED_LIBASSUAN_VERSION=2.0.2
2815 PACKAGE=$PACKAGE_NAME
2816 VERSION=$PACKAGE_VERSION
2819 for ac_dir in build-aux "$srcdir"/build-aux; do
2820 if test -f "$ac_dir/install-sh"; then
2822 ac_install_sh="$ac_aux_dir/install-sh -c"
2824 elif test -f "$ac_dir/install.sh"; then
2826 ac_install_sh="$ac_aux_dir/install.sh -c"
2828 elif test -f "$ac_dir/shtool"; then
2830 ac_install_sh="$ac_aux_dir/shtool install -c"
2834 if test -z "$ac_aux_dir"; then
2835 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2838 # These three variables are undocumented and unsupported,
2839 # and are intended to be withdrawn in a future Autoconf release.
2840 # They can cause serious problems if a builder's source tree is in a directory
2841 # whose full name contains unusual characters.
2842 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2843 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2844 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2849 ac_config_headers="$ac_config_headers config.h"
2851 # Note: For automake 1.13 add the option
2853 am__api_version='1.11'
2855 # Find a good install program. We prefer a C program (faster),
2856 # so one script is as good as another. But avoid the broken or
2857 # incompatible versions:
2858 # SysV /etc/install, /usr/sbin/install
2859 # SunOS /usr/etc/install
2860 # IRIX /sbin/install
2862 # AmigaOS /C/install, which installs bootblocks on floppy discs
2863 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2864 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2865 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2866 # OS/2's system install, which has a completely different semantic
2867 # ./install, which can be erroneously created by make from ./install.sh.
2868 # Reject install programs that cannot install multiple files.
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2870 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2871 if test -z "$INSTALL"; then
2872 if ${ac_cv_path_install+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir=.
2880 # Account for people who put trailing slashes in PATH elements.
2881 case $as_dir/ in #((
2882 ./ | .// | /[cC]/* | \
2883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2884 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2887 # OSF1 and SCO ODT 3.0 have their own names for install.
2888 # Don't use installbsd from OSF since it installs stuff as root
2890 for ac_prog in ginstall scoinst install; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2893 if test $ac_prog = install &&
2894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2895 # AIX install. It has an incompatible calling convention.
2897 elif test $ac_prog = install &&
2898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2899 # program-specific install script used by HP pwplus--don't use.
2902 rm -rf conftest.one conftest.two conftest.dir
2903 echo one > conftest.one
2904 echo two > conftest.two
2906 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2907 test -s conftest.one && test -s conftest.two &&
2908 test -s conftest.dir/conftest.one &&
2909 test -s conftest.dir/conftest.two
2911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2924 rm -rf conftest.one conftest.two conftest.dir
2927 if test "${ac_cv_path_install+set}" = set; then
2928 INSTALL=$ac_cv_path_install
2930 # As a last resort, use the slow shell script. Don't cache a
2931 # value for INSTALL within a source directory, because that will
2932 # break other packages using the cache if that directory is
2933 # removed, or if the value is a relative name.
2934 INSTALL=$ac_install_sh
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2938 $as_echo "$INSTALL" >&6; }
2940 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2941 # It thinks the first close brace ends the variable substitution.
2942 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2944 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2946 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2949 $as_echo_n "checking whether build environment is sane... " >&6; }
2952 echo timestamp > conftest.file
2953 # Reject unsafe characters in $srcdir or the absolute working directory
2954 # name. Accept space and tab only in the latter.
2958 *[\\\"\#\$\&\'\`$am_lf]*)
2959 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2962 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2963 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2966 # Do `set' in a subshell so we don't clobber the current shell's
2967 # arguments. Must try -L first in case configure is actually a
2968 # symlink; some systems play weird games with the mod time of symlinks
2969 # (eg FreeBSD returns the mod time of the symlink's containing
2972 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2973 if test "$*" = "X"; then
2975 set X `ls -t "$srcdir/configure" conftest.file`
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2989 test "$2" = conftest.file
2995 as_fn_error $? "newly created file is older than distributed files!
2996 Check your system clock" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2999 $as_echo "yes" >&6; }
3000 test "$program_prefix" != NONE &&
3001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3002 # Use a double $ so make ignores it.
3003 test "$program_suffix" != NONE &&
3004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3005 # Double any \ or $.
3006 # By default was `s,x,x', remove it if useless.
3007 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3010 # expand $ac_aux_dir to an absolute path
3011 am_aux_dir=`cd $ac_aux_dir && pwd`
3013 if test x"${MISSING+set}" != xset; then
3016 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3018 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3021 # Use eval to expand $SHELL
3022 if eval "$MISSING --run true"; then
3023 am_missing_run="$MISSING --run "
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3027 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3030 if test x"${install_sh}" != xset; then
3033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3035 install_sh="\${SHELL} $am_aux_dir/install-sh"
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'. However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_STRIP+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$STRIP"; then
3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$ac_cv_prog_STRIP"; then
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_ac_ct_STRIP="strip"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3121 if test "x$ac_ct_STRIP" = x; then
3124 case $cross_compiling:$ac_tool_warned in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3133 STRIP="$ac_cv_prog_STRIP"
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3140 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3141 if test -z "$MKDIR_P"; then
3142 if ${ac_cv_path_mkdir+:} false; then :
3143 $as_echo_n "(cached) " >&6
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149 test -z "$as_dir" && as_dir=.
3150 for ac_prog in mkdir gmkdir; do
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3153 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3154 'mkdir (GNU coreutils) '* | \
3155 'mkdir (coreutils) '* | \
3156 'mkdir (fileutils) '4.1*)
3157 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3167 test -d ./--version && rmdir ./--version
3168 if test "${ac_cv_path_mkdir+set}" = set; then
3169 MKDIR_P="$ac_cv_path_mkdir -p"
3171 # As a last resort, use the slow shell script. Don't cache a
3172 # value for MKDIR_P within a source directory, because that will
3173 # break other packages using the cache if that directory is
3174 # removed, or if the value is a relative name.
3175 MKDIR_P="$ac_install_sh -d"
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3179 $as_echo "$MKDIR_P" >&6; }
3183 [\\/$]* | ?:[\\/]*) ;;
3184 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3187 for ac_prog in gawk mawk nawk awk
3189 # Extract the first word of "$ac_prog", so it can be a program name with args.
3190 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_AWK+:} false; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$AWK"; then
3197 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206 ac_cv_prog_AWK="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 if test -n "$AWK"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3219 $as_echo "$AWK" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3226 test -n "$AWK" && break
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3230 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3232 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3233 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3234 $as_echo_n "(cached) " >&6
3236 cat >conftest.make <<\_ACEOF
3239 @echo '@@@%%%=$(MAKE)=@@@%%%'
3241 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3242 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3244 eval ac_cv_prog_make_${ac_make}_set=yes;;
3246 eval ac_cv_prog_make_${ac_make}_set=no;;
3250 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 SET_MAKE="MAKE=${MAKE-make}"
3260 rm -rf .tst 2>/dev/null
3261 mkdir .tst 2>/dev/null
3262 if test -d .tst; then
3267 rmdir .tst 2>/dev/null
3269 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3270 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3271 # is not polluted with repeated "-I."
3272 am__isrc=' -I$(srcdir)'
3273 # test to see if srcdir already configured
3274 if test -f $srcdir/config.status; then
3275 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3279 # test whether we have cygpath
3280 if test -z "$CYGPATH_W"; then
3281 if (cygpath --version) >/dev/null 2>/dev/null; then
3282 CYGPATH_W='cygpath -w'
3289 # Define the identity of the package.
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE "$PACKAGE"
3299 cat >>confdefs.h <<_ACEOF
3300 #define VERSION "$VERSION"
3303 # Some tools Automake needs.
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319 # We need awk for the "check" target. The system "awk" is bad on
3321 # Always define AMTAR for backward compatibility. Yes, it's still used
3322 # in the wild :-( We should find a proper way to deprecate it ...
3325 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3333 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3334 # Check whether --enable-maintainer-mode was given.
3335 if test "${enable_maintainer_mode+set}" = set; then :
3336 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3338 USE_MAINTAINER_MODE=no
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3342 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3343 if test $USE_MAINTAINER_MODE = yes; then
3344 MAINTAINER_MODE_TRUE=
3345 MAINTAINER_MODE_FALSE='#'
3347 MAINTAINER_MODE_TRUE='#'
3348 MAINTAINER_MODE_FALSE=
3351 MAINT=$MAINTAINER_MODE_TRUE
3354 # Make sure we can run config.sub.
3355 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3356 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3359 $as_echo_n "checking build system type... " >&6; }
3360 if ${ac_cv_build+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 ac_build_alias=$build_alias
3364 test "x$ac_build_alias" = x &&
3365 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3366 test "x$ac_build_alias" = x &&
3367 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3368 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3369 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3373 $as_echo "$ac_cv_build" >&6; }
3374 case $ac_cv_build in
3376 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3379 ac_save_IFS=$IFS; IFS='-'
3385 # Remember, the first character of IFS is used to create $*,
3386 # except with old shells:
3389 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3393 $as_echo_n "checking host system type... " >&6; }
3394 if ${ac_cv_host+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test "x$host_alias" = x; then
3398 ac_cv_host=$ac_cv_build
3400 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3401 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3406 $as_echo "$ac_cv_host" >&6; }
3409 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3412 ac_save_IFS=$IFS; IFS='-'
3418 # Remember, the first character of IFS is used to create $*,
3419 # except with old shells:
3422 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3425 # Check whether --enable-silent-rules was given.
3426 if test "${enable_silent_rules+set}" = set; then :
3427 enableval=$enable_silent_rules;
3430 case $enable_silent_rules in
3431 yes) AM_DEFAULT_VERBOSITY=0;;
3432 no) AM_DEFAULT_VERBOSITY=1;;
3433 *) AM_DEFAULT_VERBOSITY=1;;
3435 am_make=${MAKE-make}
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3437 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3438 if ${am_cv_make_support_nested_variables+:} false; then :
3439 $as_echo_n "(cached) " >&6
3441 if $as_echo 'TRUE=$(BAR$(V))
3447 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3448 am_cv_make_support_nested_variables=yes
3450 am_cv_make_support_nested_variables=no
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3454 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3455 if test $am_cv_make_support_nested_variables = yes; then
3457 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3459 AM_V=$AM_DEFAULT_VERBOSITY
3460 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3466 # Enable GNU extensions on systems that have them.
3467 DEPDIR="${am__leading_dot}deps"
3469 ac_config_commands="$ac_config_commands depfiles"
3472 am_make=${MAKE-make}
3473 cat > confinc << 'END'
3475 @echo this is the am__doit target
3478 # If we don't find an include directive, just comment out the code.
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3480 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3484 # First try GNU make style include.
3485 echo "include confinc" > confmf
3486 # Ignore all kinds of additional output from `make'.
3487 case `$am_make -s -f confmf 2> /dev/null` in #(
3488 *the\ am__doit\ target*)
3494 # Now try BSD make style include.
3495 if test "$am__include" = "#"; then
3496 echo '.include "confinc"' > confmf
3497 case `$am_make -s -f confmf 2> /dev/null` in #(
3498 *the\ am__doit\ target*)
3499 am__include=.include
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3508 $as_echo "$_am_result" >&6; }
3509 rm -f confinc confmf
3511 # Check whether --enable-dependency-tracking was given.
3512 if test "${enable_dependency_tracking+set}" = set; then :
3513 enableval=$enable_dependency_tracking;
3516 if test "x$enable_dependency_tracking" != xno; then
3517 am_depcomp="$ac_aux_dir/depcomp"
3521 if test "x$enable_dependency_tracking" != xno; then
3531 ac_cpp='$CPP $CPPFLAGS'
3532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 if test -n "$ac_tool_prefix"; then
3536 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3574 if test -z "$ac_cv_prog_CC"; then
3576 # Extract the first word of "gcc", so it can be a program name with args.
3577 set dummy gcc; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 if test -n "$ac_ct_CC"; then
3584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CC="gcc"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3604 if test -n "$ac_ct_CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3606 $as_echo "$ac_ct_CC" >&6; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3612 if test "x$ac_ct_CC" = x; then
3615 case $cross_compiling:$ac_tool_warned in
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3619 ac_tool_warned=yes ;;
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3630 set dummy ${ac_tool_prefix}cc; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3636 if test -n "$CC"; then
3637 ac_cv_prog_CC="$CC" # Let the user override the test.
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_CC="${ac_tool_prefix}cc"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 if test -n "$CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3659 $as_echo "$CC" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3668 if test -z "$CC"; then
3669 # Extract the first word of "cc", so it can be a program name with args.
3670 set dummy cc; ac_word=$2
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3672 $as_echo_n "checking for $ac_word... " >&6; }
3673 if ${ac_cv_prog_CC+:} false; then :
3674 $as_echo_n "(cached) " >&6
3676 if test -n "$CC"; then
3677 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3688 ac_prog_rejected=yes
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 if test $ac_prog_rejected = yes; then
3700 # We found a bogon in the path, so make sure we never use it.
3701 set dummy $ac_cv_prog_CC
3703 if test $# != 0; then
3704 # We chose a different compiler from the bogus one.
3705 # However, it has the same basename, so the bogon will be chosen
3706 # first if we set CC to just the basename; use the full file name.
3708 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3714 if test -n "$CC"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3716 $as_echo "$CC" >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3719 $as_echo "no" >&6; }
3724 if test -z "$CC"; then
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog in cl.exe
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733 $as_echo_n "(cached) " >&6
3735 if test -n "$CC"; then
3736 ac_cv_prog_CC="$CC" # Let the user override the test.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 if test -n "$CC"; then
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3758 $as_echo "$CC" >&6; }
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3761 $as_echo "no" >&6; }
3765 test -n "$CC" && break
3768 if test -z "$CC"; then
3770 for ac_prog in cl.exe
3772 # Extract the first word of "$ac_prog", so it can be a program name with args.
3773 set dummy $ac_prog; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 if test -n "$ac_ct_CC"; then
3780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_ac_ct_CC="$ac_prog"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3800 if test -n "$ac_ct_CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3802 $as_echo "$ac_ct_CC" >&6; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3809 test -n "$ac_ct_CC" && break
3812 if test "x$ac_ct_CC" = x; then
3815 case $cross_compiling:$ac_tool_warned in
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3819 ac_tool_warned=yes ;;
3828 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "no acceptable C compiler found in \$PATH
3831 See \`config.log' for more details" "$LINENO" 5; }
3833 # Provide some information about the compiler.
3834 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 for ac_option in --version -v -V -qversion; do
3838 { { ac_try="$ac_compiler $ac_option >&5"
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3844 $as_echo "$ac_try_echo"; } >&5
3845 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3847 if test -s conftest.err; then
3849 ... rest of stderr output deleted ...
3850 10q' conftest.err >conftest.er1
3851 cat conftest.er1 >&5
3853 rm -f conftest.er1 conftest.err
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3875 $as_echo_n "checking whether the C compiler works... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882 for ac_file in $ac_files
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 if { { ac_try="$ac_link_default"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3907 for ac_file in $ac_files ''
3909 test -f "$ac_file" || continue
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3914 # We found the default executable, but exeext='' is most
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937 if test -z "$ac_file"; then :
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 as_fn_error 77 "C compiler cannot create executables
3946 See \`config.log' for more details" "$LINENO" 5; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3949 $as_echo "yes" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3952 $as_echo_n "checking for C compiler default output file name... " >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3954 $as_echo "$ac_file" >&6; }
3955 ac_exeext=$ac_cv_exeext
3957 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3958 ac_clean_files=$ac_clean_files_save
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3960 $as_echo_n "checking for suffix of executables... " >&6; }
3961 if { { ac_try="$ac_link"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_link") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3973 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3974 # work properly (i.e., refer to `conftest.exe'), while it won't with
3976 for ac_file in conftest.exe conftest conftest.*; do
3977 test -f "$ac_file" || continue
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3989 See \`config.log' for more details" "$LINENO" 5; }
3991 rm -f conftest conftest$ac_cv_exeext
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3993 $as_echo "$ac_cv_exeext" >&6; }
3995 rm -f conftest.$ac_ext
3996 EXEEXT=$ac_cv_exeext
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4004 FILE *f = fopen ("conftest.out", "w");
4005 return ferror (f) || fclose (f) != 0;
4011 ac_clean_files="$ac_clean_files conftest.out"
4012 # Check that the compiler produces executables we can run. If not, either
4013 # the compiler is broken, or we cross compile.
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4015 $as_echo_n "checking whether we are cross compiling... " >&6; }
4016 if test "$cross_compiling" != yes; then
4017 { { ac_try="$ac_link"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4023 $as_echo "$ac_try_echo"; } >&5
4024 (eval "$ac_link") 2>&5
4026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4027 test $ac_status = 0; }
4028 if { ac_try='./conftest$ac_cv_exeext'
4029 { { case "(($ac_try" in
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4034 $as_echo "$ac_try_echo"; } >&5
4035 (eval "$ac_try") 2>&5
4037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }; }; then
4041 if test "$cross_compiling" = maybe; then
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error $? "cannot run C compiled programs.
4047 If you meant to cross compile, use \`--host'.
4048 See \`config.log' for more details" "$LINENO" 5; }
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4053 $as_echo "$cross_compiling" >&6; }
4055 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4056 ac_clean_files=$ac_clean_files_save
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4058 $as_echo_n "checking for suffix of object files... " >&6; }
4059 if ${ac_cv_objext+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 rm -f conftest.o conftest.obj
4074 if { { ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compile") 2>&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; then :
4085 for ac_file in conftest.o conftest.obj conftest.*; do
4086 test -f "$ac_file" || continue;
4088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4089 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 $as_echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "cannot compute suffix of object files: cannot compile
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4105 $as_echo "$ac_cv_objext" >&6; }
4106 OBJEXT=$ac_cv_objext
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4109 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4110 if ${ac_cv_c_compiler_gnu+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4127 if ac_fn_c_try_compile "$LINENO"; then :
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4137 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4138 if test $ac_compiler_gnu = yes; then
4143 ac_test_CFLAGS=${CFLAGS+set}
4144 ac_save_CFLAGS=$CFLAGS
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4146 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4147 if ${ac_cv_prog_cc_g+:} false; then :
4148 $as_echo_n "(cached) " >&6
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"; then :
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_c_werror_flag=$ac_save_c_werror_flag
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186 /* end confdefs.h. */
4196 if ac_fn_c_try_compile "$LINENO"; then :
4199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207 $as_echo "$ac_cv_prog_cc_g" >&6; }
4208 if test "$ac_test_CFLAGS" = set; then
4209 CFLAGS=$ac_save_CFLAGS
4210 elif test $ac_cv_prog_cc_g = yes; then
4211 if test "$GCC" = yes; then
4217 if test "$GCC" = yes; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4224 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4225 if ${ac_cv_prog_cc_c89+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 ac_cv_prog_cc_c89=no
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4236 struct buf { int x; };
4237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4238 static char *e (p, i)
4244 static char *f (char * (*g) (char **, int), char **p, ...)
4249 s = g (p, va_arg (v,int));
4254 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4255 function prototypes and stuff, but not '\xHH' hex character constants.
4256 These don't provoke an error unfortunately, instead are silently treated
4257 as 'x'. The following induces an error, until -std is added to get
4258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4259 array size at least. It's necessary to write '\x00'==0 to get something
4260 that's true only with -std. */
4261 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4263 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4264 inside strings and character constants. */
4266 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4268 int test (int i, double x);
4269 struct s1 {int (*f) (int a);};
4270 struct s2 {int (*f) (double a);};
4271 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4277 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_prog_cc_c89=$ac_arg
4289 rm -f core conftest.err conftest.$ac_objext
4290 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 rm -f conftest.$ac_ext
4297 case "x$ac_cv_prog_cc_c89" in
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4300 $as_echo "none needed" >&6; } ;;
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4303 $as_echo "unsupported" >&6; } ;;
4305 CC="$CC $ac_cv_prog_cc_c89"
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4307 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4309 if test "x$ac_cv_prog_cc_c89" != xno; then :
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 depcc="$CC" am_compiler_list=
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4322 $as_echo_n "checking dependency style of $depcc... " >&6; }
4323 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4324 $as_echo_n "(cached) " >&6
4326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4327 # We make a subdir and do the tests there. Otherwise we can end up
4328 # making bogus files that we don't know about and never remove. For
4329 # instance it was reported that on HP-UX the gcc test will end up
4330 # making a dummy file named `D' -- because `-MD' means `put the output
4334 # Copy depcomp to subdir because otherwise we won't find it if we're
4335 # using a relative directory.
4336 cp "$am_depcomp" conftest.dir
4338 # We will build objects and dependencies in a subdirectory because
4339 # it helps to detect inapplicable dependency modes. For instance
4340 # both Tru64's cc and ICC support -MD to output dependencies as a
4341 # side effect of compilation, but ICC will put the dependencies in
4342 # the current directory while Tru64 will put them in the object
4346 am_cv_CC_dependencies_compiler_type=none
4347 if test "$am_compiler_list" = ""; then
4348 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4351 case " $depcc " in #(
4352 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4355 for depmode in $am_compiler_list; do
4356 # Setup a source with many dependencies, because some compilers
4357 # like to wrap large dependency lists on column 80 (with \), and
4358 # we should not choose a depcomp mode which is confused by this.
4360 # We need to recreate these files for each test, as the compiler may
4361 # overwrite some of them when testing with obscure command lines.
4362 # This happens at least with the AIX C compiler.
4364 for i in 1 2 3 4 5 6; do
4365 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4366 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4367 # Solaris 8's {/usr,}/bin/sh.
4368 touch sub/conftst$i.h
4370 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4373 # mode. It turns out that the SunPro C++ compiler does not properly
4374 # handle `-M -o', and we need to detect this. Also, some Intel
4375 # versions had trouble with output in subdirs
4376 am__obj=sub/conftest.${OBJEXT-o}
4377 am__minus_obj="-o $am__obj"
4380 # This depmode causes a compiler race in universal mode.
4381 test "$am__universal" = false || continue
4384 # after this tag, mechanisms are not by side-effect, so they'll
4385 # only be used when explicitly requested
4386 if test "x$enable_dependency_tracking" = xyes; then
4392 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4393 # This compiler won't grok `-c -o', but also, the minuso test has
4394 # not run yet. These depmodes are late enough in the game, and
4395 # so weak that their functioning should not be impacted.
4396 am__obj=conftest.${OBJEXT-o}
4401 if depmode=$depmode \
4402 source=sub/conftest.c object=$am__obj \
4403 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4404 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4405 >/dev/null 2>conftest.err &&
4406 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4407 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4408 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4409 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4410 # icc doesn't choke on unknown options, it will just issue warnings
4411 # or remarks (even with -Werror). So we grep stderr for any message
4412 # that says an option was ignored or not supported.
4413 # When given -MP, icc 7.0 and 7.1 complain thusly:
4414 # icc: Command line warning: ignoring option '-M'; no argument required
4415 # The diagnosis changed in icc 8.0:
4416 # icc: Command line remark: option '-MP' not supported
4417 if (grep 'ignoring option' conftest.err ||
4418 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4419 am_cv_CC_dependencies_compiler_type=$depmode
4428 am_cv_CC_dependencies_compiler_type=none
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4433 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4434 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4437 test "x$enable_dependency_tracking" != xno \
4438 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4440 am__fastdepCC_FALSE='#'
4442 am__fastdepCC_TRUE='#'
4443 am__fastdepCC_FALSE=
4449 ac_cpp='$CPP $CPPFLAGS'
4450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4454 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4455 # On Suns, sometimes $CPP names a directory.
4456 if test -n "$CPP" && test -d "$CPP"; then
4459 if test -z "$CPP"; then
4460 if ${ac_cv_prog_CPP+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 # Double quotes because CPP needs to be expanded
4464 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4467 for ac_c_preproc_warn_flag in '' yes
4469 # Use a header file that comes with gcc, so configuring glibc
4470 # with a fresh cross-compiler works.
4471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4472 # <limits.h> exists even on freestanding compilers.
4473 # On the NeXT, cc -E runs the code through the compiler's parser,
4474 # not just through cpp. "Syntax error" is here to catch this case.
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 # include <limits.h>
4480 # include <assert.h>
4484 if ac_fn_c_try_cpp "$LINENO"; then :
4487 # Broken: fails on valid input.
4490 rm -f conftest.err conftest.i conftest.$ac_ext
4492 # OK, works on sane cases. Now check whether nonexistent headers
4493 # can be detected and how.
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496 #include <ac_nonexistent.h>
4498 if ac_fn_c_try_cpp "$LINENO"; then :
4499 # Broken: success on invalid input.
4502 # Passes both tests.
4506 rm -f conftest.err conftest.i conftest.$ac_ext
4509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4510 rm -f conftest.i conftest.err conftest.$ac_ext
4511 if $ac_preproc_ok; then :
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4524 $as_echo "$CPP" >&6; }
4526 for ac_c_preproc_warn_flag in '' yes
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 # include <limits.h>
4539 # include <assert.h>
4543 if ac_fn_c_try_cpp "$LINENO"; then :
4546 # Broken: fails on valid input.
4549 rm -f conftest.err conftest.i conftest.$ac_ext
4551 # OK, works on sane cases. Now check whether nonexistent headers
4552 # can be detected and how.
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if ac_fn_c_try_cpp "$LINENO"; then :
4558 # Broken: success on invalid input.
4561 # Passes both tests.
4565 rm -f conftest.err conftest.i conftest.$ac_ext
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.i conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then :
4573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4575 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4576 See \`config.log' for more details" "$LINENO" 5; }
4580 ac_cpp='$CPP $CPPFLAGS'
4581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4587 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4588 if ${ac_cv_path_GREP+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 if test -z "$GREP"; then
4592 ac_path_GREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in grep ggrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4602 as_fn_executable_p "$ac_path_GREP" || continue
4603 # Check for GNU ac_path_GREP and select it if it is found.
4604 # Check for GNU $ac_path_GREP
4605 case `"$ac_path_GREP" --version 2>&1` in
4607 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4610 $as_echo_n 0123456789 >"conftest.in"
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'GREP' >> "conftest.nl"
4617 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_GREP="$ac_path_GREP"
4623 ac_path_GREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4631 $ac_path_GREP_found && break 3
4636 if test -z "$ac_cv_path_GREP"; then
4637 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4640 ac_cv_path_GREP=$GREP
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4645 $as_echo "$ac_cv_path_GREP" >&6; }
4646 GREP="$ac_cv_path_GREP"
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4650 $as_echo_n "checking for egrep... " >&6; }
4651 if ${ac_cv_path_EGREP+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4655 then ac_cv_path_EGREP="$GREP -E"
4657 if test -z "$EGREP"; then
4658 ac_path_EGREP_found=false
4659 # Loop through the user's path and test for each of PROGNAME-LIST
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 test -z "$as_dir" && as_dir=.
4665 for ac_prog in egrep; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4668 as_fn_executable_p "$ac_path_EGREP" || continue
4669 # Check for GNU ac_path_EGREP and select it if it is found.
4670 # Check for GNU $ac_path_EGREP
4671 case `"$ac_path_EGREP" --version 2>&1` in
4673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4676 $as_echo_n 0123456789 >"conftest.in"
4679 cat "conftest.in" "conftest.in" >"conftest.tmp"
4680 mv "conftest.tmp" "conftest.in"
4681 cp "conftest.in" "conftest.nl"
4682 $as_echo 'EGREP' >> "conftest.nl"
4683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685 as_fn_arith $ac_count + 1 && ac_count=$as_val
4686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4687 # Best one so far, save it but keep looking for a better one
4688 ac_cv_path_EGREP="$ac_path_EGREP"
4689 ac_path_EGREP_max=$ac_count
4691 # 10*(2^10) chars as input seems more than enough
4692 test $ac_count -gt 10 && break
4694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 $ac_path_EGREP_found && break 3
4702 if test -z "$ac_cv_path_EGREP"; then
4703 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706 ac_cv_path_EGREP=$EGREP
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4712 $as_echo "$ac_cv_path_EGREP" >&6; }
4713 EGREP="$ac_cv_path_EGREP"
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4717 $as_echo_n "checking for ANSI C header files... " >&6; }
4718 if ${ac_cv_header_stdc+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_header_stdc=yes
4739 ac_cv_header_stdc=no
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 if test $ac_cv_header_stdc = yes; then
4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "memchr" >/dev/null 2>&1; then :
4754 ac_cv_header_stdc=no
4760 if test $ac_cv_header_stdc = yes; then
4761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "free" >/dev/null 2>&1; then :
4771 ac_cv_header_stdc=no
4777 if test $ac_cv_header_stdc = yes; then
4778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4779 if test "$cross_compiling" = yes; then :
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4786 #if ((' ' & 0x0FF) == 0x020)
4787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4790 # define ISLOWER(c) \
4791 (('a' <= (c) && (c) <= 'i') \
4792 || ('j' <= (c) && (c) <= 'r') \
4793 || ('s' <= (c) && (c) <= 'z'))
4794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4802 for (i = 0; i < 256; i++)
4803 if (XOR (islower (i), ISLOWER (i))
4804 || toupper (i) != TOUPPER (i))
4809 if ac_fn_c_try_run "$LINENO"; then :
4812 ac_cv_header_stdc=no
4814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4815 conftest.$ac_objext conftest.beam conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4821 $as_echo "$ac_cv_header_stdc" >&6; }
4822 if test $ac_cv_header_stdc = yes; then
4824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4830 inttypes.h stdint.h unistd.h
4832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4836 cat >>confdefs.h <<_ACEOF
4837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4846 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4854 if test "$MINIX" = yes; then
4856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4862 $as_echo "#define _MINIX 1" >>confdefs.h
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4869 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4875 # define __EXTENSIONS__ 1
4876 $ac_includes_default
4885 if ac_fn_c_try_compile "$LINENO"; then :
4886 ac_cv_safe_to_define___extensions__=yes
4888 ac_cv_safe_to_define___extensions__=no
4890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4894 test $ac_cv_safe_to_define___extensions__ = yes &&
4895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if ${ac_cv_prog_CC+:} false; then :
4921 $as_echo_n "(cached) " >&6
4923 if test -n "$CC"; then
4924 ac_cv_prog_CC="$CC" # Let the user override the test.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 if test -n "$CC"; then
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4946 $as_echo "$CC" >&6; }
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4954 if test -z "$ac_cv_prog_CC"; then
4956 # Extract the first word of "gcc", so it can be a program name with args.
4957 set dummy gcc; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4959 $as_echo_n "checking for $ac_word... " >&6; }
4960 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -n "$ac_ct_CC"; then
4964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_CC="gcc"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4984 if test -n "$ac_ct_CC"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4986 $as_echo "$ac_ct_CC" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 $as_echo "no" >&6; }
4992 if test "x$ac_ct_CC" = x; then
4995 case $cross_compiling:$ac_tool_warned in
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4999 ac_tool_warned=yes ;;
5007 if test -z "$CC"; then
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5010 set dummy ${ac_tool_prefix}cc; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_prog_CC+:} false; then :
5014 $as_echo_n "(cached) " >&6
5016 if test -n "$CC"; then
5017 ac_cv_prog_CC="$CC" # Let the user override the test.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_prog_CC="${ac_tool_prefix}cc"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 if test -n "$CC"; then
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5039 $as_echo "$CC" >&6; }
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042 $as_echo "no" >&6; }
5048 if test -z "$CC"; then
5049 # Extract the first word of "cc", so it can be a program name with args.
5050 set dummy cc; ac_word=$2
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 $as_echo_n "checking for $ac_word... " >&6; }
5053 if ${ac_cv_prog_CC+:} false; then :
5054 $as_echo_n "(cached) " >&6
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5068 ac_prog_rejected=yes
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 if test $ac_prog_rejected = yes; then
5080 # We found a bogon in the path, so make sure we never use it.
5081 set dummy $ac_cv_prog_CC
5083 if test $# != 0; then
5084 # We chose a different compiler from the bogus one.
5085 # However, it has the same basename, so the bogon will be chosen
5086 # first if we set CC to just the basename; use the full file name.
5088 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5094 if test -n "$CC"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5096 $as_echo "$CC" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5104 if test -z "$CC"; then
5105 if test -n "$ac_tool_prefix"; then
5106 for ac_prog in cl.exe
5108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_CC+:} false; then :
5113 $as_echo_n "(cached) " >&6
5115 if test -n "$CC"; then
5116 ac_cv_prog_CC="$CC" # Let the user override the test.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 if test -n "$CC"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5138 $as_echo "$CC" >&6; }
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5145 test -n "$CC" && break
5148 if test -z "$CC"; then
5150 for ac_prog in cl.exe
5152 # Extract the first word of "$ac_prog", so it can be a program name with args.
5153 set dummy $ac_prog; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -n "$ac_ct_CC"; then
5160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_ac_ct_CC="$ac_prog"
5170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5180 if test -n "$ac_ct_CC"; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5182 $as_echo "$ac_ct_CC" >&6; }
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185 $as_echo "no" >&6; }
5189 test -n "$ac_ct_CC" && break
5192 if test "x$ac_ct_CC" = x; then
5195 case $cross_compiling:$ac_tool_warned in
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5208 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5210 as_fn_error $? "no acceptable C compiler found in \$PATH
5211 See \`config.log' for more details" "$LINENO" 5; }
5213 # Provide some information about the compiler.
5214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5217 for ac_option in --version -v -V -qversion; do
5218 { { ac_try="$ac_compiler $ac_option >&5"
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 $as_echo "$ac_try_echo"; } >&5
5225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5227 if test -s conftest.err; then
5229 ... rest of stderr output deleted ...
5230 10q' conftest.err >conftest.er1
5231 cat conftest.er1 >&5
5233 rm -f conftest.er1 conftest.err
5234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235 test $ac_status = 0; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5239 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5240 if ${ac_cv_c_compiler_gnu+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5257 if ac_fn_c_try_compile "$LINENO"; then :
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5267 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5268 if test $ac_compiler_gnu = yes; then
5273 ac_test_CFLAGS=${CFLAGS+set}
5274 ac_save_CFLAGS=$CFLAGS
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5276 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5277 if ${ac_cv_prog_cc_g+:} false; then :
5278 $as_echo_n "(cached) " >&6
5280 ac_save_c_werror_flag=$ac_c_werror_flag
5281 ac_c_werror_flag=yes
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5295 if ac_fn_c_try_compile "$LINENO"; then :
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5310 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_c_werror_flag=$ac_save_c_werror_flag
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5326 if ac_fn_c_try_compile "$LINENO"; then :
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_c_werror_flag=$ac_save_c_werror_flag
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5337 $as_echo "$ac_cv_prog_cc_g" >&6; }
5338 if test "$ac_test_CFLAGS" = set; then
5339 CFLAGS=$ac_save_CFLAGS
5340 elif test $ac_cv_prog_cc_g = yes; then
5341 if test "$GCC" = yes; then
5347 if test "$GCC" = yes; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5354 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5355 if ${ac_cv_prog_cc_c89+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 ac_cv_prog_cc_c89=no
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5365 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5366 struct buf { int x; };
5367 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5368 static char *e (p, i)
5374 static char *f (char * (*g) (char **, int), char **p, ...)
5379 s = g (p, va_arg (v,int));
5384 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5385 function prototypes and stuff, but not '\xHH' hex character constants.
5386 These don't provoke an error unfortunately, instead are silently treated
5387 as 'x'. The following induces an error, until -std is added to get
5388 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5389 array size at least. It's necessary to write '\x00'==0 to get something
5390 that's true only with -std. */
5391 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5393 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5394 inside strings and character constants. */
5396 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5398 int test (int i, double x);
5399 struct s1 {int (*f) (int a);};
5400 struct s2 {int (*f) (double a);};
5401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5412 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5413 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5415 CC="$ac_save_CC $ac_arg"
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_prog_cc_c89=$ac_arg
5419 rm -f core conftest.err conftest.$ac_objext
5420 test "x$ac_cv_prog_cc_c89" != "xno" && break
5422 rm -f conftest.$ac_ext
5427 case "x$ac_cv_prog_cc_c89" in
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430 $as_echo "none needed" >&6; } ;;
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5433 $as_echo "unsupported" >&6; } ;;
5435 CC="$CC $ac_cv_prog_cc_c89"
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5437 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5439 if test "x$ac_cv_prog_cc_c89" != xno; then :
5444 ac_cpp='$CPP $CPPFLAGS'
5445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5449 depcc="$CC" am_compiler_list=
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5452 $as_echo_n "checking dependency style of $depcc... " >&6; }
5453 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5454 $as_echo_n "(cached) " >&6
5456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5457 # We make a subdir and do the tests there. Otherwise we can end up
5458 # making bogus files that we don't know about and never remove. For
5459 # instance it was reported that on HP-UX the gcc test will end up
5460 # making a dummy file named `D' -- because `-MD' means `put the output
5464 # Copy depcomp to subdir because otherwise we won't find it if we're
5465 # using a relative directory.
5466 cp "$am_depcomp" conftest.dir
5468 # We will build objects and dependencies in a subdirectory because
5469 # it helps to detect inapplicable dependency modes. For instance
5470 # both Tru64's cc and ICC support -MD to output dependencies as a
5471 # side effect of compilation, but ICC will put the dependencies in
5472 # the current directory while Tru64 will put them in the object
5476 am_cv_CC_dependencies_compiler_type=none
5477 if test "$am_compiler_list" = ""; then
5478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5481 case " $depcc " in #(
5482 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5485 for depmode in $am_compiler_list; do
5486 # Setup a source with many dependencies, because some compilers
5487 # like to wrap large dependency lists on column 80 (with \), and
5488 # we should not choose a depcomp mode which is confused by this.
5490 # We need to recreate these files for each test, as the compiler may
5491 # overwrite some of them when testing with obscure command lines.
5492 # This happens at least with the AIX C compiler.
5494 for i in 1 2 3 4 5 6; do
5495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5496 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5497 # Solaris 8's {/usr,}/bin/sh.
5498 touch sub/conftst$i.h
5500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5502 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5503 # mode. It turns out that the SunPro C++ compiler does not properly
5504 # handle `-M -o', and we need to detect this. Also, some Intel
5505 # versions had trouble with output in subdirs
5506 am__obj=sub/conftest.${OBJEXT-o}
5507 am__minus_obj="-o $am__obj"
5510 # This depmode causes a compiler race in universal mode.
5511 test "$am__universal" = false || continue
5514 # after this tag, mechanisms are not by side-effect, so they'll
5515 # only be used when explicitly requested
5516 if test "x$enable_dependency_tracking" = xyes; then
5522 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5523 # This compiler won't grok `-c -o', but also, the minuso test has
5524 # not run yet. These depmodes are late enough in the game, and
5525 # so weak that their functioning should not be impacted.
5526 am__obj=conftest.${OBJEXT-o}
5531 if depmode=$depmode \
5532 source=sub/conftest.c object=$am__obj \
5533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5535 >/dev/null 2>conftest.err &&
5536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5540 # icc doesn't choke on unknown options, it will just issue warnings
5541 # or remarks (even with -Werror). So we grep stderr for any message
5542 # that says an option was ignored or not supported.
5543 # When given -MP, icc 7.0 and 7.1 complain thusly:
5544 # icc: Command line warning: ignoring option '-M'; no argument required
5545 # The diagnosis changed in icc 8.0:
5546 # icc: Command line remark: option '-MP' not supported
5547 if (grep 'ignoring option' conftest.err ||
5548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5549 am_cv_CC_dependencies_compiler_type=$depmode
5558 am_cv_CC_dependencies_compiler_type=none
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5567 test "x$enable_dependency_tracking" != xno \
5568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5570 am__fastdepCC_FALSE='#'
5572 am__fastdepCC_TRUE='#'
5573 am__fastdepCC_FALSE=
5578 ac_cpp='$CXXCPP $CPPFLAGS'
5579 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5582 if test -z "$CXX"; then
5583 if test -n "$CCC"; then
5586 if test -n "$ac_tool_prefix"; then
5587 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5592 $as_echo_n "checking for $ac_word... " >&6; }
5593 if ${ac_cv_prog_CXX+:} false; then :
5594 $as_echo_n "(cached) " >&6
5596 if test -n "$CXX"; then
5597 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 test -z "$as_dir" && as_dir=.
5604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 if test -n "$CXX"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5619 $as_echo "$CXX" >&6; }
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5622 $as_echo "no" >&6; }
5626 test -n "$CXX" && break
5629 if test -z "$CXX"; then
5631 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5633 # Extract the first word of "$ac_prog", so it can be a program name with args.
5634 set dummy $ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5638 $as_echo_n "(cached) " >&6
5640 if test -n "$ac_ct_CXX"; then
5641 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_ac_ct_CXX="$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5661 if test -n "$ac_ct_CXX"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5663 $as_echo "$ac_ct_CXX" >&6; }
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5670 test -n "$ac_ct_CXX" && break
5673 if test "x$ac_ct_CXX" = x; then
5676 case $cross_compiling:$ac_tool_warned in
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5680 ac_tool_warned=yes ;;
5688 # Provide some information about the compiler.
5689 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5692 for ac_option in --version -v -V -qversion; do
5693 { { ac_try="$ac_compiler $ac_option >&5"
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5699 $as_echo "$ac_try_echo"; } >&5
5700 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5702 if test -s conftest.err; then
5704 ... rest of stderr output deleted ...
5705 10q' conftest.err >conftest.er1
5706 cat conftest.er1 >&5
5708 rm -f conftest.er1 conftest.err
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5714 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5715 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5716 $as_echo_n "(cached) " >&6
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5732 if ac_fn_cxx_try_compile "$LINENO"; then :
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5742 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5743 if test $ac_compiler_gnu = yes; then
5748 ac_test_CXXFLAGS=${CXXFLAGS+set}
5749 ac_save_CXXFLAGS=$CXXFLAGS
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5751 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5752 if ${ac_cv_prog_cxx_g+:} false; then :
5753 $as_echo_n "(cached) " >&6
5755 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5756 ac_cxx_werror_flag=yes
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5770 if ac_fn_cxx_try_compile "$LINENO"; then :
5771 ac_cv_prog_cxx_g=yes
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5785 if ac_fn_cxx_try_compile "$LINENO"; then :
5788 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5801 if ac_fn_cxx_try_compile "$LINENO"; then :
5802 ac_cv_prog_cxx_g=yes
5804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5812 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5813 if test "$ac_test_CXXFLAGS" = set; then
5814 CXXFLAGS=$ac_save_CXXFLAGS
5815 elif test $ac_cv_prog_cxx_g = yes; then
5816 if test "$GXX" = yes; then
5822 if test "$GXX" = yes; then
5829 ac_cpp='$CPP $CPPFLAGS'
5830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5834 depcc="$CXX" am_compiler_list=
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5837 $as_echo_n "checking dependency style of $depcc... " >&6; }
5838 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5842 # We make a subdir and do the tests there. Otherwise we can end up
5843 # making bogus files that we don't know about and never remove. For
5844 # instance it was reported that on HP-UX the gcc test will end up
5845 # making a dummy file named `D' -- because `-MD' means `put the output
5849 # Copy depcomp to subdir because otherwise we won't find it if we're
5850 # using a relative directory.
5851 cp "$am_depcomp" conftest.dir
5853 # We will build objects and dependencies in a subdirectory because
5854 # it helps to detect inapplicable dependency modes. For instance
5855 # both Tru64's cc and ICC support -MD to output dependencies as a
5856 # side effect of compilation, but ICC will put the dependencies in
5857 # the current directory while Tru64 will put them in the object
5861 am_cv_CXX_dependencies_compiler_type=none
5862 if test "$am_compiler_list" = ""; then
5863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5866 case " $depcc " in #(
5867 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5870 for depmode in $am_compiler_list; do
5871 # Setup a source with many dependencies, because some compilers
5872 # like to wrap large dependency lists on column 80 (with \), and
5873 # we should not choose a depcomp mode which is confused by this.
5875 # We need to recreate these files for each test, as the compiler may
5876 # overwrite some of them when testing with obscure command lines.
5877 # This happens at least with the AIX C compiler.
5879 for i in 1 2 3 4 5 6; do
5880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5882 # Solaris 8's {/usr,}/bin/sh.
5883 touch sub/conftst$i.h
5885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5888 # mode. It turns out that the SunPro C++ compiler does not properly
5889 # handle `-M -o', and we need to detect this. Also, some Intel
5890 # versions had trouble with output in subdirs
5891 am__obj=sub/conftest.${OBJEXT-o}
5892 am__minus_obj="-o $am__obj"
5895 # This depmode causes a compiler race in universal mode.
5896 test "$am__universal" = false || continue
5899 # after this tag, mechanisms are not by side-effect, so they'll
5900 # only be used when explicitly requested
5901 if test "x$enable_dependency_tracking" = xyes; then
5907 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5908 # This compiler won't grok `-c -o', but also, the minuso test has
5909 # not run yet. These depmodes are late enough in the game, and
5910 # so weak that their functioning should not be impacted.
5911 am__obj=conftest.${OBJEXT-o}
5916 if depmode=$depmode \
5917 source=sub/conftest.c object=$am__obj \
5918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5920 >/dev/null 2>conftest.err &&
5921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5925 # icc doesn't choke on unknown options, it will just issue warnings
5926 # or remarks (even with -Werror). So we grep stderr for any message
5927 # that says an option was ignored or not supported.
5928 # When given -MP, icc 7.0 and 7.1 complain thusly:
5929 # icc: Command line warning: ignoring option '-M'; no argument required
5930 # The diagnosis changed in icc 8.0:
5931 # icc: Command line remark: option '-MP' not supported
5932 if (grep 'ignoring option' conftest.err ||
5933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5934 am_cv_CXX_dependencies_compiler_type=$depmode
5943 am_cv_CXX_dependencies_compiler_type=none
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5948 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5949 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5952 test "x$enable_dependency_tracking" != xno \
5953 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5954 am__fastdepCXX_TRUE=
5955 am__fastdepCXX_FALSE='#'
5957 am__fastdepCXX_TRUE='#'
5958 am__fastdepCXX_FALSE=
5963 # Note: A suitable gitlog-to-changelog script can be found in GnuPG master.
5964 for ac_prog in gitlog-to-changelog
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if ${ac_cv_prog_GITLOG_TO_CHANGELOG+:} false; then :
5971 $as_echo_n "(cached) " >&6
5973 if test -n "$GITLOG_TO_CHANGELOG"; then
5974 ac_cv_prog_GITLOG_TO_CHANGELOG="$GITLOG_TO_CHANGELOG" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983 ac_cv_prog_GITLOG_TO_CHANGELOG="$ac_prog"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 GITLOG_TO_CHANGELOG=$ac_cv_prog_GITLOG_TO_CHANGELOG
5994 if test -n "$GITLOG_TO_CHANGELOG"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GITLOG_TO_CHANGELOG" >&5
5996 $as_echo "$GITLOG_TO_CHANGELOG" >&6; }
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6003 test -n "$GITLOG_TO_CHANGELOG" && break
6005 test -n "$GITLOG_TO_CHANGELOG" || GITLOG_TO_CHANGELOG="gitlog-to-changelog"
6015 cat >>confdefs.h <<_ACEOF
6016 #define PACKAGE "$PACKAGE"
6020 cat >>confdefs.h <<_ACEOF
6021 #define VERSION "$VERSION"
6024 VERSION_NUMBER=0x010503
6027 # Don't default to build static libs.
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6032 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6037 macro_version='2.4.2'
6038 macro_revision='1.3337'
6052 ltmain="$ac_aux_dir/ltmain.sh"
6054 # Backslashify metacharacters that are still active within
6055 # double-quoted strings.
6056 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6058 # Same as above, but do not quote variable references.
6059 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6061 # Sed substitution to delay expansion of an escaped shell variable in a
6062 # double_quote_subst'ed string.
6063 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6065 # Sed substitution to delay expansion of an escaped single quote.
6066 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6068 # Sed substitution to avoid accidental globbing in evaled expressions
6069 no_glob_subst='s/\*/\\\*/g'
6071 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6072 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6076 $as_echo_n "checking how to print strings... " >&6; }
6077 # Test print first, because it will be a builtin if present.
6078 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6079 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6081 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6084 # Use this function as a fallback that always works.
6085 func_fallback_echo ()
6087 eval 'cat <<_LTECHO_EOF
6091 ECHO='func_fallback_echo'
6094 # func_echo_all arg...
6095 # Invoke $ECHO with all args, space-separated.
6102 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6103 $as_echo "printf" >&6; } ;;
6104 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6105 $as_echo "print -r" >&6; } ;;
6106 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6107 $as_echo "cat" >&6; } ;;
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6124 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6125 if ${ac_cv_path_SED+:} false; then :
6126 $as_echo_n "(cached) " >&6
6128 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6129 for ac_i in 1 2 3 4 5 6 7; do
6130 ac_script="$ac_script$as_nl$ac_script"
6132 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6133 { ac_script=; unset ac_script;}
6134 if test -z "$SED"; then
6135 ac_path_SED_found=false
6136 # Loop through the user's path and test for each of PROGNAME-LIST
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in sed gsed; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6145 as_fn_executable_p "$ac_path_SED" || continue
6146 # Check for GNU ac_path_SED and select it if it is found.
6147 # Check for GNU $ac_path_SED
6148 case `"$ac_path_SED" --version 2>&1` in
6150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6153 $as_echo_n 0123456789 >"conftest.in"
6156 cat "conftest.in" "conftest.in" >"conftest.tmp"
6157 mv "conftest.tmp" "conftest.in"
6158 cp "conftest.in" "conftest.nl"
6159 $as_echo '' >> "conftest.nl"
6160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6162 as_fn_arith $ac_count + 1 && ac_count=$as_val
6163 if test $ac_count -gt ${ac_path_SED_max-0}; then
6164 # Best one so far, save it but keep looking for a better one
6165 ac_cv_path_SED="$ac_path_SED"
6166 ac_path_SED_max=$ac_count
6168 # 10*(2^10) chars as input seems more than enough
6169 test $ac_count -gt 10 && break
6171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6174 $ac_path_SED_found && break 3
6179 if test -z "$ac_cv_path_SED"; then
6180 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6188 $as_echo "$ac_cv_path_SED" >&6; }
6189 SED="$ac_cv_path_SED"
6192 test -z "$SED" && SED=sed
6193 Xsed="$SED -e 1s/^X//"
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6206 $as_echo_n "checking for fgrep... " >&6; }
6207 if ${ac_cv_path_FGREP+:} false; then :
6208 $as_echo_n "(cached) " >&6
6210 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6211 then ac_cv_path_FGREP="$GREP -F"
6213 if test -z "$FGREP"; then
6214 ac_path_FGREP_found=false
6215 # Loop through the user's path and test for each of PROGNAME-LIST
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6220 test -z "$as_dir" && as_dir=.
6221 for ac_prog in fgrep; do
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6224 as_fn_executable_p "$ac_path_FGREP" || continue
6225 # Check for GNU ac_path_FGREP and select it if it is found.
6226 # Check for GNU $ac_path_FGREP
6227 case `"$ac_path_FGREP" --version 2>&1` in
6229 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6232 $as_echo_n 0123456789 >"conftest.in"
6235 cat "conftest.in" "conftest.in" >"conftest.tmp"
6236 mv "conftest.tmp" "conftest.in"
6237 cp "conftest.in" "conftest.nl"
6238 $as_echo 'FGREP' >> "conftest.nl"
6239 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6241 as_fn_arith $ac_count + 1 && ac_count=$as_val
6242 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6243 # Best one so far, save it but keep looking for a better one
6244 ac_cv_path_FGREP="$ac_path_FGREP"
6245 ac_path_FGREP_max=$ac_count
6247 # 10*(2^10) chars as input seems more than enough
6248 test $ac_count -gt 10 && break
6250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6253 $ac_path_FGREP_found && break 3
6258 if test -z "$ac_cv_path_FGREP"; then
6259 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6262 ac_cv_path_FGREP=$FGREP
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6268 $as_echo "$ac_cv_path_FGREP" >&6; }
6269 FGREP="$ac_cv_path_FGREP"
6272 test -z "$GREP" && GREP=grep
6292 # Check whether --with-gnu-ld was given.
6293 if test "${with_gnu_ld+set}" = set; then :
6294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6300 if test "$GCC" = yes; then
6301 # Check if gcc -print-prog-name=ld gives a path.
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6303 $as_echo_n "checking for ld used by $CC... " >&6; }
6306 # gcc leaves a trailing carriage return which upsets mingw
6307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6312 # Accept absolute paths.
6314 re_direlt='/[^/][^/]*/\.\./'
6315 # Canonicalize the pathname of ld
6316 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6317 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6318 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6320 test -z "$LD" && LD="$ac_prog"
6323 # If it fails, then pretend we aren't using GCC.
6327 # If it is relative, then search for the first ld in PATH.
6331 elif test "$with_gnu_ld" = yes; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6333 $as_echo_n "checking for GNU ld... " >&6; }
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6336 $as_echo_n "checking for non-GNU ld... " >&6; }
6338 if ${lt_cv_path_LD+:} false; then :
6339 $as_echo_n "(cached) " >&6
6341 if test -z "$LD"; then
6342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6343 for ac_dir in $PATH; do
6345 test -z "$ac_dir" && ac_dir=.
6346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6347 lt_cv_path_LD="$ac_dir/$ac_prog"
6348 # Check to see if the program is GNU ld. I'd rather use --version,
6349 # but apparently some variants of GNU ld only accept -v.
6350 # Break only if it was the GNU/non-GNU ld that we prefer.
6351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6352 *GNU* | *'with BFD'*)
6353 test "$with_gnu_ld" != no && break
6356 test "$with_gnu_ld" != yes && break
6363 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6368 if test -n "$LD"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6370 $as_echo "$LD" >&6; }
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6375 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6377 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6378 if ${lt_cv_prog_gnu_ld+:} false; then :
6379 $as_echo_n "(cached) " >&6
6381 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6382 case `$LD -v 2>&1 </dev/null` in
6383 *GNU* | *'with BFD'*)
6384 lt_cv_prog_gnu_ld=yes
6387 lt_cv_prog_gnu_ld=no
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6392 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6393 with_gnu_ld=$lt_cv_prog_gnu_ld
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6404 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6405 if ${lt_cv_path_NM+:} false; then :
6406 $as_echo_n "(cached) " >&6
6408 if test -n "$NM"; then
6409 # Let the user override the test.
6412 lt_nm_to_check="${ac_tool_prefix}nm"
6413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6414 lt_nm_to_check="$lt_nm_to_check nm"
6416 for lt_tmp_nm in $lt_nm_to_check; do
6417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6420 test -z "$ac_dir" && ac_dir=.
6421 tmp_nm="$ac_dir/$lt_tmp_nm"
6422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6423 # Check to see if the nm accepts a BSD-compat flag.
6424 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6425 # nm: unknown option "B" ignored
6426 # Tru64's nm complains that /dev/null is an invalid object file
6427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6428 */dev/null* | *'Invalid file or object type'*)
6429 lt_cv_path_NM="$tmp_nm -B"
6433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6435 lt_cv_path_NM="$tmp_nm -p"
6439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6440 continue # so that we can try to find one that supports BSD flags
6449 : ${lt_cv_path_NM=no}
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6453 $as_echo "$lt_cv_path_NM" >&6; }
6454 if test "$lt_cv_path_NM" != "no"; then
6457 # Didn't find any BSD compatible name lister, look for dumpbin.
6458 if test -n "$DUMPBIN"; then :
6459 # Let the user override the test.
6461 if test -n "$ac_tool_prefix"; then
6462 for ac_prog in dumpbin "link -dump"
6464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if ${ac_cv_prog_DUMPBIN+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$DUMPBIN"; then
6472 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 DUMPBIN=$ac_cv_prog_DUMPBIN
6492 if test -n "$DUMPBIN"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6494 $as_echo "$DUMPBIN" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6501 test -n "$DUMPBIN" && break
6504 if test -z "$DUMPBIN"; then
6505 ac_ct_DUMPBIN=$DUMPBIN
6506 for ac_prog in dumpbin "link -dump"
6508 # Extract the first word of "$ac_prog", so it can be a program name with args.
6509 set dummy $ac_prog; ac_word=$2
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511 $as_echo_n "checking for $ac_word... " >&6; }
6512 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6513 $as_echo_n "(cached) " >&6
6515 if test -n "$ac_ct_DUMPBIN"; then
6516 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6536 if test -n "$ac_ct_DUMPBIN"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6538 $as_echo "$ac_ct_DUMPBIN" >&6; }
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6545 test -n "$ac_ct_DUMPBIN" && break
6548 if test "x$ac_ct_DUMPBIN" = x; then
6551 case $cross_compiling:$ac_tool_warned in
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555 ac_tool_warned=yes ;;
6557 DUMPBIN=$ac_ct_DUMPBIN
6561 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6563 DUMPBIN="$DUMPBIN -symbols"
6571 if test "$DUMPBIN" != ":"; then
6575 test -z "$NM" && NM=nm
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6583 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6584 if ${lt_cv_nm_interface+:} false; then :
6585 $as_echo_n "(cached) " >&6
6587 lt_cv_nm_interface="BSD nm"
6588 echo "int some_variable = 0;" > conftest.$ac_ext
6589 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6590 (eval "$ac_compile" 2>conftest.err)
6591 cat conftest.err >&5
6592 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6594 cat conftest.err >&5
6595 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6596 cat conftest.out >&5
6597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6598 lt_cv_nm_interface="MS dumpbin"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6603 $as_echo "$lt_cv_nm_interface" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6606 $as_echo_n "checking whether ln -s works... " >&6; }
6608 if test "$LN_S" = "ln -s"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6610 $as_echo "yes" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6613 $as_echo "no, using $LN_S" >&6; }
6616 # find the maximum length of command line arguments
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6618 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6619 if ${lt_cv_sys_max_cmd_len+:} false; then :
6620 $as_echo_n "(cached) " >&6
6627 # On DJGPP, this test can blow up pretty badly due to problems in libc
6628 # (any single argument exceeding 2000 bytes causes a buffer overrun
6629 # during glob expansion). Even if it were fixed, the result of this
6630 # check would be larger than it should be.
6631 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6635 # Under GNU Hurd, this test is not required because there is
6636 # no limit to the length of command line arguments.
6637 # Libtool will interpret -1 as no limit whatsoever
6638 lt_cv_sys_max_cmd_len=-1;
6641 cygwin* | mingw* | cegcc*)
6642 # On Win9x/ME, this test blows up -- it succeeds, but takes
6643 # about 5 minutes as the teststring grows exponentially.
6644 # Worse, since 9x/ME are not pre-emptively multitasking,
6645 # you end up with a "frozen" computer, even though with patience
6646 # the test eventually succeeds (with a max line length of 256k).
6647 # Instead, let's just punt: use the minimum linelength reported by
6648 # all of the supported platforms: 8192 (on NT/2K/XP).
6649 lt_cv_sys_max_cmd_len=8192;
6653 # On MiNT this can take a long time and run out of memory.
6654 lt_cv_sys_max_cmd_len=8192;
6658 # On AmigaOS with pdksh, this test takes hours, literally.
6659 # So we just punt and use a minimum line length of 8192.
6660 lt_cv_sys_max_cmd_len=8192;
6663 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6664 # This has been around since 386BSD, at least. Likely further.
6665 if test -x /sbin/sysctl; then
6666 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6667 elif test -x /usr/sbin/sysctl; then
6668 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6670 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6672 # And add a safety zone
6673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6678 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6679 lt_cv_sys_max_cmd_len=196608
6683 # The test takes a long time on OS/2.
6684 lt_cv_sys_max_cmd_len=8192
6688 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6689 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6690 # nice to cause kernel panics so lets avoid the loop below.
6691 # First set a reasonable default.
6692 lt_cv_sys_max_cmd_len=16384
6694 if test -x /sbin/sysconfig; then
6695 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6696 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6701 lt_cv_sys_max_cmd_len=102400
6703 sysv5* | sco5v6* | sysv4.2uw2*)
6704 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6705 if test -n "$kargmax"; then
6706 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6708 lt_cv_sys_max_cmd_len=32768
6712 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6713 if test -n "$lt_cv_sys_max_cmd_len"; then
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6717 # Make teststring a little bigger before we do anything with it.
6718 # a 1K string should be a reasonable start.
6719 for i in 1 2 3 4 5 6 7 8 ; do
6720 teststring=$teststring$teststring
6722 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6723 # If test is not a shell built-in, we'll probably end up computing a
6724 # maximum length that is only half of the actual maximum length, but
6726 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6727 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6728 test $i != 17 # 1/2 MB should be enough
6731 teststring=$teststring$teststring
6733 # Only check the string length outside the loop.
6734 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6736 # Add a significant safety factor because C++ compilers can tack on
6737 # massive amounts of additional arguments before passing them to the
6738 # linker. It appears as though 1/2 is a usable value.
6739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6746 if test -n $lt_cv_sys_max_cmd_len ; then
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6748 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6751 $as_echo "none" >&6; }
6753 max_cmd_len=$lt_cv_sys_max_cmd_len
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6765 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6766 # Try some XSI features
6769 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6771 && eval 'test $(( 1 + 1 )) -eq 2 \
6772 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6775 $as_echo "$xsi_shell" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6779 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6781 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6783 && lt_shell_append=yes
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6785 $as_echo "$lt_shell_append" >&6; }
6788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6798 # test EBCDIC or ASCII
6799 case `echo X|tr X '\101'` in
6800 A) # ASCII based system
6801 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6802 lt_SP2NL='tr \040 \012'
6803 lt_NL2SP='tr \015\012 \040\040'
6805 *) # EBCDIC based system
6806 lt_SP2NL='tr \100 \n'
6807 lt_NL2SP='tr \r\n \100\100'
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6820 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6821 if ${lt_cv_to_host_file_cmd+:} false; then :
6822 $as_echo_n "(cached) " >&6
6827 *-*-mingw* ) # actually msys
6828 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6831 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6833 * ) # otherwise, assume *nix
6834 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6840 *-*-mingw* ) # actually msys
6841 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6844 lt_cv_to_host_file_cmd=func_convert_file_noop
6846 * ) # otherwise, assume *nix
6847 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6851 * ) # unhandled hosts (and "normal" native builds)
6852 lt_cv_to_host_file_cmd=func_convert_file_noop
6858 to_host_file_cmd=$lt_cv_to_host_file_cmd
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6860 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6867 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6868 if ${lt_cv_to_tool_file_cmd+:} false; then :
6869 $as_echo_n "(cached) " >&6
6871 #assume ordinary cross tools, or native build.
6872 lt_cv_to_tool_file_cmd=func_convert_file_noop
6876 *-*-mingw* ) # actually msys
6877 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6885 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6887 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6894 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6895 if ${lt_cv_ld_reload_flag+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 lt_cv_ld_reload_flag='-r'
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6901 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6902 reload_flag=$lt_cv_ld_reload_flag
6903 case $reload_flag in
6905 *) reload_flag=" $reload_flag" ;;
6907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6909 cygwin* | mingw* | pw32* | cegcc*)
6910 if test "$GCC" != yes; then
6915 if test "$GCC" = yes; then
6916 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6918 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_OBJDUMP+:} false; then :
6937 $as_echo_n "(cached) " >&6
6939 if test -n "$OBJDUMP"; then
6940 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 OBJDUMP=$ac_cv_prog_OBJDUMP
6960 if test -n "$OBJDUMP"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6962 $as_echo "$OBJDUMP" >&6; }
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6970 if test -z "$ac_cv_prog_OBJDUMP"; then
6971 ac_ct_OBJDUMP=$OBJDUMP
6972 # Extract the first word of "objdump", so it can be a program name with args.
6973 set dummy objdump; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6977 $as_echo_n "(cached) " >&6
6979 if test -n "$ac_ct_OBJDUMP"; then
6980 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7000 if test -n "$ac_ct_OBJDUMP"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7002 $as_echo "$ac_ct_OBJDUMP" >&6; }
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7008 if test "x$ac_ct_OBJDUMP" = x; then
7011 case $cross_compiling:$ac_tool_warned in
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7017 OBJDUMP=$ac_ct_OBJDUMP
7020 OBJDUMP="$ac_cv_prog_OBJDUMP"
7023 test -z "$OBJDUMP" && OBJDUMP=objdump
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7031 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7032 if ${lt_cv_deplibs_check_method+:} false; then :
7033 $as_echo_n "(cached) " >&6
7035 lt_cv_file_magic_cmd='$MAGIC_CMD'
7036 lt_cv_file_magic_test_file=
7037 lt_cv_deplibs_check_method='unknown'
7038 # Need to set the preceding variable on all platforms that support
7039 # interlibrary dependencies.
7040 # 'none' -- dependencies not supported.
7041 # `unknown' -- same as none, but documents that we really don't know.
7042 # 'pass_all' -- all dependencies passed with no checks.
7043 # 'test_compile' -- check by making test program.
7044 # 'file_magic [[regex]]' -- check by looking for files in library path
7045 # which responds to the $file_magic_cmd with a given extended regex.
7046 # If you have `file' or equivalent on your system and you're not sure
7047 # whether `pass_all' will *always* work, you probably want this one.
7051 lt_cv_deplibs_check_method=pass_all
7055 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7060 lt_cv_file_magic_cmd='/usr/bin/file -L'
7061 lt_cv_file_magic_test_file=/shlib/libc.so
7065 # func_win32_libid is a shell function defined in ltmain.sh
7066 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7067 lt_cv_file_magic_cmd='func_win32_libid'
7071 # Base MSYS/MinGW do not provide the 'file' command needed by
7072 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7073 # unless we find 'file', for example because we are cross-compiling.
7074 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7075 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7076 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7077 lt_cv_file_magic_cmd='func_win32_libid'
7079 # Keep this pattern in sync with the one in func_win32_libid.
7080 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7081 lt_cv_file_magic_cmd='$OBJDUMP -f'
7086 # use the weaker test based on 'objdump'. See mingw*.
7087 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7088 lt_cv_file_magic_cmd='$OBJDUMP -f'
7091 darwin* | rhapsody*)
7092 lt_cv_deplibs_check_method=pass_all
7095 freebsd* | dragonfly*)
7096 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7099 # Not sure whether the presence of OpenBSD here was a mistake.
7100 # Let's accept both of them until this is cleared up.
7101 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7102 lt_cv_file_magic_cmd=/usr/bin/file
7103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7107 lt_cv_deplibs_check_method=pass_all
7112 lt_cv_deplibs_check_method=pass_all
7116 lt_cv_deplibs_check_method=pass_all
7119 hpux10.20* | hpux11*)
7120 lt_cv_file_magic_cmd=/usr/bin/file
7123 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7124 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7127 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]'
7128 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7132 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7138 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7139 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7142 irix5* | irix6* | nonstopux*)
7144 *-32|*"-32 ") libmagic=32-bit;;
7145 *-n32|*"-n32 ") libmagic=N32;;
7146 *-64|*"-64 ") libmagic=64-bit;;
7147 *) libmagic=never-match;;
7149 lt_cv_deplibs_check_method=pass_all
7152 # This must be glibc/ELF.
7153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7154 lt_cv_deplibs_check_method=pass_all
7157 netbsd* | netbsdelf*-gnu)
7158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7166 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7167 lt_cv_file_magic_cmd=/usr/bin/file
7168 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7172 lt_cv_deplibs_check_method=pass_all
7176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7183 osf3* | osf4* | osf5*)
7184 lt_cv_deplibs_check_method=pass_all
7188 lt_cv_deplibs_check_method=pass_all
7192 lt_cv_deplibs_check_method=pass_all
7195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7196 lt_cv_deplibs_check_method=pass_all
7200 case $host_vendor in
7202 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]'
7203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7206 lt_cv_deplibs_check_method=pass_all
7209 lt_cv_file_magic_cmd='/bin/file'
7210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7213 lt_cv_file_magic_cmd='/bin/file'
7214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7215 lt_cv_file_magic_test_file=/lib/libc.so
7218 lt_cv_deplibs_check_method=pass_all
7221 lt_cv_deplibs_check_method=pass_all
7227 lt_cv_deplibs_check_method=pass_all
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7233 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7237 if test "$build" = "$host"; then
7240 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7243 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7249 file_magic_cmd=$lt_cv_file_magic_cmd
7250 deplibs_check_method=$lt_cv_deplibs_check_method
7251 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7274 if test -n "$ac_tool_prefix"; then
7275 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7276 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if ${ac_cv_prog_DLLTOOL+:} false; then :
7280 $as_echo_n "(cached) " >&6
7282 if test -n "$DLLTOOL"; then
7283 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir=.
7290 for ac_exec_ext in '' $ac_executable_extensions; do
7291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 DLLTOOL=$ac_cv_prog_DLLTOOL
7303 if test -n "$DLLTOOL"; then
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7305 $as_echo "$DLLTOOL" >&6; }
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7313 if test -z "$ac_cv_prog_DLLTOOL"; then
7314 ac_ct_DLLTOOL=$DLLTOOL
7315 # Extract the first word of "dlltool", so it can be a program name with args.
7316 set dummy dlltool; ac_word=$2
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318 $as_echo_n "checking for $ac_word... " >&6; }
7319 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7320 $as_echo_n "(cached) " >&6
7322 if test -n "$ac_ct_DLLTOOL"; then
7323 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 test -z "$as_dir" && as_dir=.
7330 for ac_exec_ext in '' $ac_executable_extensions; do
7331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7332 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7342 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7343 if test -n "$ac_ct_DLLTOOL"; then
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7345 $as_echo "$ac_ct_DLLTOOL" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }
7351 if test "x$ac_ct_DLLTOOL" = x; then
7354 case $cross_compiling:$ac_tool_warned in
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358 ac_tool_warned=yes ;;
7360 DLLTOOL=$ac_ct_DLLTOOL
7363 DLLTOOL="$ac_cv_prog_DLLTOOL"
7366 test -z "$DLLTOOL" && DLLTOOL=dlltool
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7375 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7376 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7377 $as_echo_n "(cached) " >&6
7379 lt_cv_sharedlib_from_linklib_cmd='unknown'
7382 cygwin* | mingw* | pw32* | cegcc*)
7383 # two different shell functions defined in ltmain.sh
7384 # decide which to use based on capabilities of $DLLTOOL
7385 case `$DLLTOOL --help 2>&1` in
7386 *--identify-strict*)
7387 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7395 # fallback: assume linklib IS sharedlib
7396 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7402 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7403 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7404 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7412 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7418 $as_echo_n "checking for $ac_word... " >&6; }
7419 if ${ac_cv_prog_AR+:} false; then :
7420 $as_echo_n "(cached) " >&6
7422 if test -n "$AR"; then
7423 ac_cv_prog_AR="$AR" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 if test -n "$AR"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7445 $as_echo "$AR" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7448 $as_echo "no" >&6; }
7452 test -n "$AR" && break
7455 if test -z "$AR"; then
7459 # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7464 $as_echo_n "(cached) " >&6
7466 if test -n "$ac_ct_AR"; then
7467 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7476 ac_cv_prog_ac_ct_AR="$ac_prog"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7487 if test -n "$ac_ct_AR"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7489 $as_echo "$ac_ct_AR" >&6; }
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7496 test -n "$ac_ct_AR" && break
7499 if test "x$ac_ct_AR" = x; then
7502 case $cross_compiling:$ac_tool_warned in
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7506 ac_tool_warned=yes ;;
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7526 $as_echo_n "checking for archiver @FILE support... " >&6; }
7527 if ${lt_cv_ar_at_file+:} false; then :
7528 $as_echo_n "(cached) " >&6
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 echo conftest.$ac_objext > conftest.lst
7544 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7546 (eval $lt_ar_try) 2>&5
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }
7550 if test "$ac_status" -eq 0; then
7551 # Ensure the archiver fails upon bogus file names.
7552 rm -f conftest.$ac_objext libconftest.a
7553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7554 (eval $lt_ar_try) 2>&5
7556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7557 test $ac_status = 0; }
7558 if test "$ac_status" -ne 0; then
7562 rm -f conftest.* libconftest.a
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7569 $as_echo "$lt_cv_ar_at_file" >&6; }
7571 if test "x$lt_cv_ar_at_file" = xno; then
7574 archiver_list_spec=$lt_cv_ar_at_file
7583 if test -n "$ac_tool_prefix"; then
7584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7585 set dummy ${ac_tool_prefix}strip; ac_word=$2
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if ${ac_cv_prog_STRIP+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$STRIP"; then
7592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 STRIP=$ac_cv_prog_STRIP
7612 if test -n "$STRIP"; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7614 $as_echo "$STRIP" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7622 if test -z "$ac_cv_prog_STRIP"; then
7624 # Extract the first word of "strip", so it can be a program name with args.
7625 set dummy strip; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 if test -n "$ac_ct_STRIP"; then
7632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641 ac_cv_prog_ac_ct_STRIP="strip"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7652 if test -n "$ac_ct_STRIP"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7654 $as_echo "$ac_ct_STRIP" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7660 if test "x$ac_ct_STRIP" = x; then
7663 case $cross_compiling:$ac_tool_warned in
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667 ac_tool_warned=yes ;;
7672 STRIP="$ac_cv_prog_STRIP"
7675 test -z "$STRIP" && STRIP=:
7682 if test -n "$ac_tool_prefix"; then
7683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7686 $as_echo_n "checking for $ac_word... " >&6; }
7687 if ${ac_cv_prog_RANLIB+:} false; then :
7688 $as_echo_n "(cached) " >&6
7690 if test -n "$RANLIB"; then
7691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 test -z "$as_dir" && as_dir=.
7698 for ac_exec_ext in '' $ac_executable_extensions; do
7699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 RANLIB=$ac_cv_prog_RANLIB
7711 if test -n "$RANLIB"; then
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7713 $as_echo "$RANLIB" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7721 if test -z "$ac_cv_prog_RANLIB"; then
7722 ac_ct_RANLIB=$RANLIB
7723 # Extract the first word of "ranlib", so it can be a program name with args.
7724 set dummy ranlib; ac_word=$2
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7726 $as_echo_n "checking for $ac_word... " >&6; }
7727 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7728 $as_echo_n "(cached) " >&6
7730 if test -n "$ac_ct_RANLIB"; then
7731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740 ac_cv_prog_ac_ct_RANLIB="ranlib"
7741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7751 if test -n "$ac_ct_RANLIB"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7753 $as_echo "$ac_ct_RANLIB" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7756 $as_echo "no" >&6; }
7759 if test "x$ac_ct_RANLIB" = x; then
7762 case $cross_compiling:$ac_tool_warned in
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7766 ac_tool_warned=yes ;;
7768 RANLIB=$ac_ct_RANLIB
7771 RANLIB="$ac_cv_prog_RANLIB"
7774 test -z "$RANLIB" && RANLIB=:
7781 # Determine commands to create old-style static archives.
7782 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7783 old_postinstall_cmds='chmod 644 $oldlib'
7784 old_postuninstall_cmds=
7786 if test -n "$RANLIB"; then
7789 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7792 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7795 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7800 lock_old_archive_extraction=yes ;;
7802 lock_old_archive_extraction=no ;;
7843 # If no C compiler was specified, use CC.
7846 # If no C compiler flags were specified, use CFLAGS.
7847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7849 # Allow CC to be a program name with arguments.
7853 # Check for command to grab the raw symbol name followed by C symbol from nm.
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7855 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7856 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7857 $as_echo_n "(cached) " >&6
7860 # These are sane defaults that work on at least a few old systems.
7861 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7863 # Character class describing NM global symbol codes.
7864 symcode='[BCDEGRST]'
7866 # Regexp to match symbols that can be accessed directly from C.
7867 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7869 # Define system-specific variables.
7874 cygwin* | mingw* | pw32* | cegcc*)
7875 symcode='[ABCDGISTW]'
7878 if test "$host_cpu" = ia64; then
7879 symcode='[ABCDEGRST]'
7883 symcode='[BCDEGRST]'
7886 symcode='[BCDEGQRST]'
7897 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7905 # If we're using GNU nm, then use its standard symbol codes.
7906 case `$NM -V 2>&1` in
7907 *GNU* | *'with BFD'*)
7908 symcode='[ABCDGIRSTW]' ;;
7911 # Transform an extracted symbol line into a proper C declaration.
7912 # Some systems (esp. on ia64) link data and code symbols differently,
7913 # so use this general approach.
7914 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7916 # Transform an extracted symbol line into symbol name and symbol address
7917 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7918 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'"
7920 # Handle CRLF in mingw tool chain
7924 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7928 # Try without a prefix underscore, then with it.
7929 for ac_symprfx in "" "_"; do
7931 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7932 symxfrm="\\1 $ac_symprfx\\2 \\2"
7934 # Write the raw and C identifiers.
7935 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7936 # Fake it for dumpbin and say T for any non-static function
7937 # and D for any global variable.
7938 # Also find C++ and __fastcall symbols from MSVC++,
7939 # which start with @ or ?.
7940 lt_cv_sys_global_symbol_pipe="$AWK '"\
7941 " {last_section=section; section=\$ 3};"\
7942 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7943 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7944 " \$ 0!~/External *\|/{next};"\
7945 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7946 " {if(hide[section]) next};"\
7947 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7948 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7949 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7950 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7951 " ' prfx=^$ac_symprfx"
7953 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7955 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7957 # Check to see that the pipe works correctly.
7961 cat > conftest.$ac_ext <<_LT_EOF
7966 void nm_test_func(void);
7967 void nm_test_func(void){}
7971 int main(){nm_test_var='a';nm_test_func();return(0);}
7974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7975 (eval $ac_compile) 2>&5
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 # Now try to grab the symbols.
7981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7982 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985 test $ac_status = 0; } && test -s "$nlist"; then
7986 # Try sorting and uniquifying the output.
7987 if sort "$nlist" | uniq > "$nlist"T; then
7988 mv -f "$nlist"T "$nlist"
7993 # Make sure that we snagged all the symbols we need.
7994 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7995 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7996 cat <<_LT_EOF > conftest.$ac_ext
7997 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7998 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7999 /* DATA imports from DLLs on WIN32 con't be const, because runtime
8000 relocations are performed -- see ld's documentation on pseudo-relocs. */
8001 # define LT_DLSYM_CONST
8002 #elif defined(__osf__)
8003 /* This system does not cope well with relocations in const data. */
8004 # define LT_DLSYM_CONST
8006 # define LT_DLSYM_CONST const
8014 # Now generate the symbol file.
8015 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8017 cat <<_LT_EOF >> conftest.$ac_ext
8019 /* The mapping between symbol names and symbols. */
8020 LT_DLSYM_CONST struct {
8024 lt__PROGRAM__LTX_preloaded_symbols[] =
8026 { "@PROGRAM@", (void *) 0 },
8028 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8029 cat <<\_LT_EOF >> conftest.$ac_ext
8033 /* This works around a problem in FreeBSD linker */
8034 #ifdef FREEBSD_WORKAROUND
8035 static const void *lt_preloaded_setup() {
8036 return lt__PROGRAM__LTX_preloaded_symbols;
8044 # Now try linking the two files.
8045 mv conftest.$ac_objext conftstm.$ac_objext
8046 lt_globsym_save_LIBS=$LIBS
8047 lt_globsym_save_CFLAGS=$CFLAGS
8048 LIBS="conftstm.$ac_objext"
8049 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8051 (eval $ac_link) 2>&5
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8057 LIBS=$lt_globsym_save_LIBS
8058 CFLAGS=$lt_globsym_save_CFLAGS
8060 echo "cannot find nm_test_func in $nlist" >&5
8063 echo "cannot find nm_test_var in $nlist" >&5
8066 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8069 echo "$progname: failed program was:" >&5
8070 cat conftest.$ac_ext >&5
8072 rm -rf conftest* conftst*
8074 # Do not use the global_symbol_pipe unless it works.
8075 if test "$pipe_works" = yes; then
8078 lt_cv_sys_global_symbol_pipe=
8084 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8085 lt_cv_sys_global_symbol_to_cdecl=
8087 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8089 $as_echo "failed" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8092 $as_echo "ok" >&6; }
8095 # Response file support.
8096 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8097 nm_file_list_spec='@'
8098 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8099 nm_file_list_spec='@'
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8129 $as_echo_n "checking for sysroot... " >&6; }
8131 # Check whether --with-sysroot was given.
8132 if test "${with_sysroot+set}" = set; then :
8133 withval=$with_sysroot;
8140 case ${with_sysroot} in #(
8142 if test "$GCC" = yes; then
8143 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8147 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8153 $as_echo "${with_sysroot}" >&6; }
8154 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8159 $as_echo "${lt_sysroot:-no}" >&6; }
8165 # Check whether --enable-libtool-lock was given.
8166 if test "${enable_libtool_lock+set}" = set; then :
8167 enableval=$enable_libtool_lock;
8170 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8172 # Some flags need to be propagated to the compiler or linker for good
8176 # Find out which ABI we are using.
8177 echo 'int i;' > conftest.$ac_ext
8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8179 (eval $ac_compile) 2>&5
8181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8182 test $ac_status = 0; }; then
8183 case `/usr/bin/file conftest.$ac_objext` in
8195 # Find out which ABI we are using.
8196 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8198 (eval $ac_compile) 2>&5
8200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8201 test $ac_status = 0; }; then
8202 if test "$lt_cv_prog_gnu_ld" = yes; then
8203 case `/usr/bin/file conftest.$ac_objext` in
8205 LD="${LD-ld} -melf32bsmip"
8208 LD="${LD-ld} -melf32bmipn32"
8211 LD="${LD-ld} -melf64bmip"
8215 case `/usr/bin/file conftest.$ac_objext` in
8231 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8232 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8233 # Find out which ABI we are using.
8234 echo 'int i;' > conftest.$ac_ext
8235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8236 (eval $ac_compile) 2>&5
8238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8239 test $ac_status = 0; }; then
8240 case `/usr/bin/file conftest.o` in
8243 x86_64-*kfreebsd*-gnu)
8244 LD="${LD-ld} -m elf_i386_fbsd"
8247 LD="${LD-ld} -m elf_i386"
8249 ppc64-*linux*|powerpc64-*linux*)
8250 LD="${LD-ld} -m elf32ppclinux"
8253 LD="${LD-ld} -m elf_s390"
8256 LD="${LD-ld} -m elf32_sparc"
8262 x86_64-*kfreebsd*-gnu)
8263 LD="${LD-ld} -m elf_x86_64_fbsd"
8266 LD="${LD-ld} -m elf_x86_64"
8268 ppc*-*linux*|powerpc*-*linux*)
8269 LD="${LD-ld} -m elf64ppc"
8271 s390*-*linux*|s390*-*tpf*)
8272 LD="${LD-ld} -m elf64_s390"
8275 LD="${LD-ld} -m elf64_sparc"
8285 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8286 SAVE_CFLAGS="$CFLAGS"
8287 CFLAGS="$CFLAGS -belf"
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8290 if ${lt_cv_cc_needs_belf+:} false; then :
8291 $as_echo_n "(cached) " >&6
8294 ac_cpp='$CPP $CPPFLAGS'
8295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300 /* end confdefs.h. */
8310 if ac_fn_c_try_link "$LINENO"; then :
8311 lt_cv_cc_needs_belf=yes
8313 lt_cv_cc_needs_belf=no
8315 rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
8318 ac_cpp='$CPP $CPPFLAGS'
8319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8328 CFLAGS="$SAVE_CFLAGS"
8332 # Find out which ABI we are using.
8333 echo 'int i;' > conftest.$ac_ext
8334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8335 (eval $ac_compile) 2>&5
8337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8338 test $ac_status = 0; }; then
8339 case `/usr/bin/file conftest.o` in
8341 case $lt_cv_prog_gnu_ld in
8345 LD="${LD-ld} -m elf_x86_64"
8348 LD="${LD-ld} -m elf64_sparc"
8351 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8352 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8357 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8369 need_locks="$enable_libtool_lock"
8371 if test -n "$ac_tool_prefix"; then
8372 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8373 set dummy ${ac_tool_prefix}mt; ac_word=$2
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375 $as_echo_n "checking for $ac_word... " >&6; }
8376 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8377 $as_echo_n "(cached) " >&6
8379 if test -n "$MANIFEST_TOOL"; then
8380 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8400 if test -n "$MANIFEST_TOOL"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8402 $as_echo "$MANIFEST_TOOL" >&6; }
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405 $as_echo "no" >&6; }
8410 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8411 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8412 # Extract the first word of "mt", so it can be a program name with args.
8413 set dummy mt; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8417 $as_echo_n "(cached) " >&6
8419 if test -n "$ac_ct_MANIFEST_TOOL"; then
8420 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8429 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8440 if test -n "$ac_ct_MANIFEST_TOOL"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8442 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8448 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8451 case $cross_compiling:$ac_tool_warned in
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8455 ac_tool_warned=yes ;;
8457 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8460 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8463 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8465 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8466 if ${lt_cv_path_mainfest_tool+:} false; then :
8467 $as_echo_n "(cached) " >&6
8469 lt_cv_path_mainfest_tool=no
8470 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8471 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8472 cat conftest.err >&5
8473 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8474 lt_cv_path_mainfest_tool=yes
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8479 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8480 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8490 rhapsody* | darwin*)
8491 if test -n "$ac_tool_prefix"; then
8492 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8493 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8497 $as_echo_n "(cached) " >&6
8499 if test -n "$DSYMUTIL"; then
8500 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8509 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8520 if test -n "$DSYMUTIL"; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8522 $as_echo "$DSYMUTIL" >&6; }
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8530 if test -z "$ac_cv_prog_DSYMUTIL"; then
8531 ac_ct_DSYMUTIL=$DSYMUTIL
8532 # Extract the first word of "dsymutil", so it can be a program name with args.
8533 set dummy dsymutil; ac_word=$2
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8535 $as_echo_n "checking for $ac_word... " >&6; }
8536 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8537 $as_echo_n "(cached) " >&6
8539 if test -n "$ac_ct_DSYMUTIL"; then
8540 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8549 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8560 if test -n "$ac_ct_DSYMUTIL"; then
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8562 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8565 $as_echo "no" >&6; }
8568 if test "x$ac_ct_DSYMUTIL" = x; then
8571 case $cross_compiling:$ac_tool_warned in
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8575 ac_tool_warned=yes ;;
8577 DSYMUTIL=$ac_ct_DSYMUTIL
8580 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8583 if test -n "$ac_tool_prefix"; then
8584 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8585 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8587 $as_echo_n "checking for $ac_word... " >&6; }
8588 if ${ac_cv_prog_NMEDIT+:} false; then :
8589 $as_echo_n "(cached) " >&6
8591 if test -n "$NMEDIT"; then
8592 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 test -z "$as_dir" && as_dir=.
8599 for ac_exec_ext in '' $ac_executable_extensions; do
8600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8601 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8611 NMEDIT=$ac_cv_prog_NMEDIT
8612 if test -n "$NMEDIT"; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8614 $as_echo "$NMEDIT" >&6; }
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617 $as_echo "no" >&6; }
8622 if test -z "$ac_cv_prog_NMEDIT"; then
8623 ac_ct_NMEDIT=$NMEDIT
8624 # Extract the first word of "nmedit", so it can be a program name with args.
8625 set dummy nmedit; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8629 $as_echo_n "(cached) " >&6
8631 if test -n "$ac_ct_NMEDIT"; then
8632 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8641 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8652 if test -n "$ac_ct_NMEDIT"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8654 $as_echo "$ac_ct_NMEDIT" >&6; }
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657 $as_echo "no" >&6; }
8660 if test "x$ac_ct_NMEDIT" = x; then
8663 case $cross_compiling:$ac_tool_warned in
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8667 ac_tool_warned=yes ;;
8669 NMEDIT=$ac_ct_NMEDIT
8672 NMEDIT="$ac_cv_prog_NMEDIT"
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_prog_LIPO+:} false; then :
8681 $as_echo_n "(cached) " >&6
8683 if test -n "$LIPO"; then
8684 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8693 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 LIPO=$ac_cv_prog_LIPO
8704 if test -n "$LIPO"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8706 $as_echo "$LIPO" >&6; }
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 if test -z "$ac_cv_prog_LIPO"; then
8716 # Extract the first word of "lipo", so it can be a program name with args.
8717 set dummy lipo; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$ac_ct_LIPO"; then
8724 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_ac_ct_LIPO="lipo"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8744 if test -n "$ac_ct_LIPO"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8746 $as_echo "$ac_ct_LIPO" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8752 if test "x$ac_ct_LIPO" = x; then
8755 case $cross_compiling:$ac_tool_warned in
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8764 LIPO="$ac_cv_prog_LIPO"
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}otool; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if ${ac_cv_prog_OTOOL+:} false; then :
8773 $as_echo_n "(cached) " >&6
8775 if test -n "$OTOOL"; then
8776 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8785 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8795 OTOOL=$ac_cv_prog_OTOOL
8796 if test -n "$OTOOL"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8798 $as_echo "$OTOOL" >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8806 if test -z "$ac_cv_prog_OTOOL"; then
8808 # Extract the first word of "otool", so it can be a program name with args.
8809 set dummy otool; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8813 $as_echo_n "(cached) " >&6
8815 if test -n "$ac_ct_OTOOL"; then
8816 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8825 ac_cv_prog_ac_ct_OTOOL="otool"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8835 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8836 if test -n "$ac_ct_OTOOL"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8838 $as_echo "$ac_ct_OTOOL" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8844 if test "x$ac_ct_OTOOL" = x; then
8847 case $cross_compiling:$ac_tool_warned in
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8856 OTOOL="$ac_cv_prog_OTOOL"
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_prog_OTOOL64+:} false; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$OTOOL64"; then
8868 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 OTOOL64=$ac_cv_prog_OTOOL64
8888 if test -n "$OTOOL64"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8890 $as_echo "$OTOOL64" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8898 if test -z "$ac_cv_prog_OTOOL64"; then
8899 ac_ct_OTOOL64=$OTOOL64
8900 # Extract the first word of "otool64", so it can be a program name with args.
8901 set dummy otool64; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8905 $as_echo_n "(cached) " >&6
8907 if test -n "$ac_ct_OTOOL64"; then
8908 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_ac_ct_OTOOL64="otool64"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8928 if test -n "$ac_ct_OTOOL64"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8930 $as_echo "$ac_ct_OTOOL64" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8936 if test "x$ac_ct_OTOOL64" = x; then
8939 case $cross_compiling:$ac_tool_warned in
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned=yes ;;
8945 OTOOL64=$ac_ct_OTOOL64
8948 OTOOL64="$ac_cv_prog_OTOOL64"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8978 $as_echo_n "checking for -single_module linker flag... " >&6; }
8979 if ${lt_cv_apple_cc_single_mod+:} false; then :
8980 $as_echo_n "(cached) " >&6
8982 lt_cv_apple_cc_single_mod=no
8983 if test -z "${LT_MULTI_MODULE}"; then
8984 # By default we will add the -single_module flag. You can override
8985 # by either setting the environment variable LT_MULTI_MODULE
8986 # non-empty at configure time, or by adding -multi_module to the
8988 rm -rf libconftest.dylib*
8989 echo "int foo(void){return 1;}" > conftest.c
8990 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8991 -dynamiclib -Wl,-single_module conftest.c" >&5
8992 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8993 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8995 # If there is a non-empty error log, and "single_module"
8996 # appears in it, assume the flag caused a linker warning
8997 if test -s conftest.err && $GREP single_module conftest.err; then
8998 cat conftest.err >&5
8999 # Otherwise, if the output was created with a 0 exit code from
9000 # the compiler, it worked.
9001 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
9002 lt_cv_apple_cc_single_mod=yes
9004 cat conftest.err >&5
9006 rm -rf libconftest.dylib*
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9011 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9014 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9015 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9016 $as_echo_n "(cached) " >&6
9018 lt_cv_ld_exported_symbols_list=no
9019 save_LDFLAGS=$LDFLAGS
9020 echo "_main" > conftest.sym
9021 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9023 /* end confdefs.h. */
9033 if ac_fn_c_try_link "$LINENO"; then :
9034 lt_cv_ld_exported_symbols_list=yes
9036 lt_cv_ld_exported_symbols_list=no
9038 rm -f core conftest.err conftest.$ac_objext \
9039 conftest$ac_exeext conftest.$ac_ext
9040 LDFLAGS="$save_LDFLAGS"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9044 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9047 $as_echo_n "checking for -force_load linker flag... " >&6; }
9048 if ${lt_cv_ld_force_load+:} false; then :
9049 $as_echo_n "(cached) " >&6
9051 lt_cv_ld_force_load=no
9052 cat > conftest.c << _LT_EOF
9053 int forced_loaded() { return 2;}
9055 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9056 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9057 echo "$AR cru libconftest.a conftest.o" >&5
9058 $AR cru libconftest.a conftest.o 2>&5
9059 echo "$RANLIB libconftest.a" >&5
9060 $RANLIB libconftest.a 2>&5
9061 cat > conftest.c << _LT_EOF
9062 int main() { return 0;}
9064 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9065 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9067 if test -s conftest.err && $GREP force_load conftest.err; then
9068 cat conftest.err >&5
9069 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9070 lt_cv_ld_force_load=yes
9072 cat conftest.err >&5
9074 rm -f conftest.err libconftest.a conftest conftest.c
9075 rm -rf conftest.dSYM
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9079 $as_echo "$lt_cv_ld_force_load" >&6; }
9081 rhapsody* | darwin1.[012])
9082 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9084 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9085 darwin*) # darwin 5.x on
9086 # if running on 10.5 or later, the deployment target defaults
9087 # to the OS version, if on x86, and 10.4, the deployment
9088 # target defaults to 10.4. Don't you love it?
9089 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9090 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9091 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9093 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9095 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9099 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9100 _lt_dar_single_mod='$single_module'
9102 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9103 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9105 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9107 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9108 _lt_dsymutil='~$DSYMUTIL $lib || :'
9115 for ac_header in dlfcn.h
9117 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9119 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define HAVE_DLFCN_H 1
9131 func_stripname_cnf ()
9134 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9135 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9137 } # func_stripname_cnf
9144 enable_win32_dll=yes
9147 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
9148 if test -n "$ac_tool_prefix"; then
9149 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
9150 set dummy ${ac_tool_prefix}as; ac_word=$2
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152 $as_echo_n "checking for $ac_word... " >&6; }
9153 if ${ac_cv_prog_AS+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 if test -n "$AS"; then
9157 ac_cv_prog_AS="$AS" # Let the user override the test.
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9166 ac_cv_prog_AS="${ac_tool_prefix}as"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 if test -n "$AS"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9179 $as_echo "$AS" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test -z "$ac_cv_prog_AS"; then
9189 # Extract the first word of "as", so it can be a program name with args.
9190 set dummy as; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if ${ac_cv_prog_ac_ct_AS+:} false; then :
9194 $as_echo_n "(cached) " >&6
9196 if test -n "$ac_ct_AS"; then
9197 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 test -z "$as_dir" && as_dir=.
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9206 ac_cv_prog_ac_ct_AS="as"
9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 ac_ct_AS=$ac_cv_prog_ac_ct_AS
9217 if test -n "$ac_ct_AS"; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9219 $as_echo "$ac_ct_AS" >&6; }
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222 $as_echo "no" >&6; }
9225 if test "x$ac_ct_AS" = x; then
9228 case $cross_compiling:$ac_tool_warned in
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9232 ac_tool_warned=yes ;;
9240 if test -n "$ac_tool_prefix"; then
9241 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9242 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_DLLTOOL+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 if test -n "$DLLTOOL"; then
9249 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255 test -z "$as_dir" && as_dir=.
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9258 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9268 DLLTOOL=$ac_cv_prog_DLLTOOL
9269 if test -n "$DLLTOOL"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9271 $as_echo "$DLLTOOL" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9279 if test -z "$ac_cv_prog_DLLTOOL"; then
9280 ac_ct_DLLTOOL=$DLLTOOL
9281 # Extract the first word of "dlltool", so it can be a program name with args.
9282 set dummy dlltool; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9286 $as_echo_n "(cached) " >&6
9288 if test -n "$ac_ct_DLLTOOL"; then
9289 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9309 if test -n "$ac_ct_DLLTOOL"; then
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9311 $as_echo "$ac_ct_DLLTOOL" >&6; }
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314 $as_echo "no" >&6; }
9317 if test "x$ac_ct_DLLTOOL" = x; then
9320 case $cross_compiling:$ac_tool_warned in
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9324 ac_tool_warned=yes ;;
9326 DLLTOOL=$ac_ct_DLLTOOL
9329 DLLTOOL="$ac_cv_prog_DLLTOOL"
9332 if test -n "$ac_tool_prefix"; then
9333 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9334 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336 $as_echo_n "checking for $ac_word... " >&6; }
9337 if ${ac_cv_prog_OBJDUMP+:} false; then :
9338 $as_echo_n "(cached) " >&6
9340 if test -n "$OBJDUMP"; then
9341 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 test -z "$as_dir" && as_dir=.
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9350 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 OBJDUMP=$ac_cv_prog_OBJDUMP
9361 if test -n "$OBJDUMP"; then
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9363 $as_echo "$OBJDUMP" >&6; }
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366 $as_echo "no" >&6; }
9371 if test -z "$ac_cv_prog_OBJDUMP"; then
9372 ac_ct_OBJDUMP=$OBJDUMP
9373 # Extract the first word of "objdump", so it can be a program name with args.
9374 set dummy objdump; ac_word=$2
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9376 $as_echo_n "checking for $ac_word... " >&6; }
9377 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9378 $as_echo_n "(cached) " >&6
9380 if test -n "$ac_ct_OBJDUMP"; then
9381 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9387 test -z "$as_dir" && as_dir=.
9388 for ac_exec_ext in '' $ac_executable_extensions; do
9389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9390 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9400 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9401 if test -n "$ac_ct_OBJDUMP"; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9403 $as_echo "$ac_ct_OBJDUMP" >&6; }
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406 $as_echo "no" >&6; }
9409 if test "x$ac_ct_OBJDUMP" = x; then
9412 case $cross_compiling:$ac_tool_warned in
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9416 ac_tool_warned=yes ;;
9418 OBJDUMP=$ac_ct_OBJDUMP
9421 OBJDUMP="$ac_cv_prog_OBJDUMP"
9427 test -z "$AS" && AS=as
9433 test -z "$DLLTOOL" && DLLTOOL=dlltool
9439 test -z "$OBJDUMP" && OBJDUMP=objdump
9444 # Check whether --enable-static was given.
9445 if test "${enable_static+set}" = set; then :
9446 enableval=$enable_static; p=${PACKAGE-default}
9448 yes) enable_static=yes ;;
9449 no) enable_static=no ;;
9452 # Look at the argument we got. We use all the common list separators.
9453 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9454 for pkg in $enableval; do
9456 if test "X$pkg" = "X$p"; then
9480 # Check whether --enable-shared was given.
9481 if test "${enable_shared+set}" = set; then :
9482 enableval=$enable_shared; p=${PACKAGE-default}
9484 yes) enable_shared=yes ;;
9485 no) enable_shared=no ;;
9488 # Look at the argument we got. We use all the common list separators.
9489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9490 for pkg in $enableval; do
9492 if test "X$pkg" = "X$p"; then
9513 # Check whether --with-pic was given.
9514 if test "${with_pic+set}" = set; then :
9515 withval=$with_pic; lt_p=${PACKAGE-default}
9517 yes|no) pic_mode=$withval ;;
9520 # Look at the argument we got. We use all the common list separators.
9521 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9522 for lt_pkg in $withval; do
9524 if test "X$lt_pkg" = "X$lt_p"; then
9536 test -z "$pic_mode" && pic_mode=default
9544 # Check whether --enable-fast-install was given.
9545 if test "${enable_fast_install+set}" = set; then :
9546 enableval=$enable_fast_install; p=${PACKAGE-default}
9548 yes) enable_fast_install=yes ;;
9549 no) enable_fast_install=no ;;
9551 enable_fast_install=no
9552 # Look at the argument we got. We use all the common list separators.
9553 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9554 for pkg in $enableval; do
9556 if test "X$pkg" = "X$p"; then
9557 enable_fast_install=yes
9564 enable_fast_install=yes
9577 # This can be used to rebuild libtool when needed
9578 LIBTOOL_DEPS="$ltmain"
9580 # Always use our own libtool.
9581 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9612 test -z "$LN_S" && LN_S="ln -s"
9627 if test -n "${ZSH_VERSION+set}" ; then
9628 setopt NO_GLOB_SUBST
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9632 $as_echo_n "checking for objdir... " >&6; }
9633 if ${lt_cv_objdir+:} false; then :
9634 $as_echo_n "(cached) " >&6
9636 rm -f .libs 2>/dev/null
9637 mkdir .libs 2>/dev/null
9638 if test -d .libs; then
9641 # MS-DOS does not allow filenames that begin with a dot.
9644 rmdir .libs 2>/dev/null
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9647 $as_echo "$lt_cv_objdir" >&6; }
9648 objdir=$lt_cv_objdir
9654 cat >>confdefs.h <<_ACEOF
9655 #define LT_OBJDIR "$lt_cv_objdir/"
9663 # AIX sometimes has problems with the GCC collect2 program. For some
9664 # reason, if we set the COLLECT_NAMES environment variable, the problems
9665 # vanish in a puff of smoke.
9666 if test "X${COLLECT_NAMES+set}" != Xset; then
9668 export COLLECT_NAMES
9675 can_build_shared=yes
9677 # All known linkers require a `.a' archive for static linking (except MSVC,
9678 # which needs '.lib').
9681 with_gnu_ld="$lt_cv_prog_gnu_ld"
9684 old_CFLAGS="$CFLAGS"
9686 # Set sane defaults for various variables
9687 test -z "$CC" && CC=cc
9688 test -z "$LTCC" && LTCC=$CC
9689 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9690 test -z "$LD" && LD=ld
9691 test -z "$ac_objext" && ac_objext=o
9693 for cc_temp in $compiler""; do
9695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9701 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9704 # Only perform the check for file, if the check method requires it
9705 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9706 case $deplibs_check_method in
9708 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9710 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9711 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9712 $as_echo_n "(cached) " >&6
9716 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9719 lt_save_MAGIC_CMD="$MAGIC_CMD"
9720 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9721 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9722 for ac_dir in $ac_dummy; do
9724 test -z "$ac_dir" && ac_dir=.
9725 if test -f $ac_dir/${ac_tool_prefix}file; then
9726 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9727 if test -n "$file_magic_test_file"; then
9728 case $deplibs_check_method in
9730 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9731 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9732 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9733 $EGREP "$file_magic_regex" > /dev/null; then
9738 *** Warning: the command libtool uses to detect shared libraries,
9739 *** $file_magic_cmd, produces output that libtool cannot recognize.
9740 *** The result is that libtool may fail to recognize shared libraries
9741 *** as such. This will affect the creation of libtool libraries that
9742 *** depend on shared libraries, but programs linked with such libtool
9743 *** libraries will work regardless of this problem. Nevertheless, you
9744 *** may want to report the problem to your system manager and/or to
9745 *** bug-libtool@gnu.org
9755 MAGIC_CMD="$lt_save_MAGIC_CMD"
9760 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9761 if test -n "$MAGIC_CMD"; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9763 $as_echo "$MAGIC_CMD" >&6; }
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9766 $as_echo "no" >&6; }
9773 if test -z "$lt_cv_path_MAGIC_CMD"; then
9774 if test -n "$ac_tool_prefix"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9776 $as_echo_n "checking for file... " >&6; }
9777 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9778 $as_echo_n "(cached) " >&6
9782 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9785 lt_save_MAGIC_CMD="$MAGIC_CMD"
9786 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9787 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9788 for ac_dir in $ac_dummy; do
9790 test -z "$ac_dir" && ac_dir=.
9791 if test -f $ac_dir/file; then
9792 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9793 if test -n "$file_magic_test_file"; then
9794 case $deplibs_check_method in
9796 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9799 $EGREP "$file_magic_regex" > /dev/null; then
9804 *** Warning: the command libtool uses to detect shared libraries,
9805 *** $file_magic_cmd, produces output that libtool cannot recognize.
9806 *** The result is that libtool may fail to recognize shared libraries
9807 *** as such. This will affect the creation of libtool libraries that
9808 *** depend on shared libraries, but programs linked with such libtool
9809 *** libraries will work regardless of this problem. Nevertheless, you
9810 *** may want to report the problem to your system manager and/or to
9811 *** bug-libtool@gnu.org
9821 MAGIC_CMD="$lt_save_MAGIC_CMD"
9826 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9827 if test -n "$MAGIC_CMD"; then
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9829 $as_echo "$MAGIC_CMD" >&6; }
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9832 $as_echo "no" >&6; }
9845 # Use C for the default configuration in the libtool script
9849 ac_cpp='$CPP $CPPFLAGS'
9850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9855 # Source file extension for C test sources.
9858 # Object file extension for compiled C test sources.
9862 # Code to be used in simple compile tests
9863 lt_simple_compile_test_code="int some_variable = 0;"
9865 # Code to be used in simple link tests
9866 lt_simple_link_test_code='int main(){return(0);}'
9874 # If no C compiler was specified, use CC.
9877 # If no C compiler flags were specified, use CFLAGS.
9878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9880 # Allow CC to be a program name with arguments.
9883 # Save the default compiler, since it gets overwritten when the other
9884 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9885 compiler_DEFAULT=$CC
9887 # save warnings/boilerplate of simple test code
9888 ac_outfile=conftest.$ac_objext
9889 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9891 _lt_compiler_boilerplate=`cat conftest.err`
9894 ac_outfile=conftest.$ac_objext
9895 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9897 _lt_linker_boilerplate=`cat conftest.err`
9902 ## There is no encapsulation within the following macros, do not change
9903 ## the running order or otherwise move them around unless you know exactly
9904 ## what you are doing...
9905 if test -n "$compiler"; then
9907 lt_prog_compiler_no_builtin_flag=
9909 if test "$GCC" = yes; then
9910 case $cc_basename in
9912 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9914 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9918 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9919 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9920 $as_echo_n "(cached) " >&6
9922 lt_cv_prog_compiler_rtti_exceptions=no
9923 ac_outfile=conftest.$ac_objext
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9925 lt_compiler_flag="-fno-rtti -fno-exceptions"
9926 # Insert the option either (1) after the last *FLAGS variable, or
9927 # (2) before a word containing "conftest.", or (3) at the end.
9928 # Note that $ac_compile itself does not contain backslashes and begins
9929 # with a dollar sign (not a hyphen), so the echo should work correctly.
9930 # The option is referenced via a variable to avoid confusing sed.
9931 lt_compile=`echo "$ac_compile" | $SED \
9932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934 -e 's:$: $lt_compiler_flag:'`
9935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9936 (eval "$lt_compile" 2>conftest.err)
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 if (exit $ac_status) && test -s "$ac_outfile"; then
9941 # The compiler can only warn and ignore the option if not recognized
9942 # So say no if there are warnings other than the usual output.
9943 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9945 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9946 lt_cv_prog_compiler_rtti_exceptions=yes
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9953 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9955 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9956 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9968 lt_prog_compiler_wl=
9969 lt_prog_compiler_pic=
9970 lt_prog_compiler_static=
9973 if test "$GCC" = yes; then
9974 lt_prog_compiler_wl='-Wl,'
9975 lt_prog_compiler_static='-static'
9979 # All AIX code is PIC.
9980 if test "$host_cpu" = ia64; then
9981 # AIX 5 now supports IA64 processor
9982 lt_prog_compiler_static='-Bstatic'
9989 # see comment about AmigaOS4 .so support
9990 lt_prog_compiler_pic='-fPIC'
9993 # FIXME: we need at least 68020 code to build shared libraries, but
9994 # adding the `-m68020' flag to GCC prevents building anything better,
9996 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10001 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10002 # PIC is the default for these OSes.
10005 mingw* | cygwin* | pw32* | os2* | cegcc*)
10006 # This hack is so that the source file can tell whether it is being
10007 # built for inclusion in a dll (and should export symbols for example).
10008 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10009 # (--disable-auto-import) libraries
10010 lt_prog_compiler_pic='-DDLL_EXPORT'
10013 darwin* | rhapsody*)
10014 # PIC is the default on this platform
10015 # Common symbols not allowed in MH_DYLIB files
10016 lt_prog_compiler_pic='-fno-common'
10020 # PIC is the default for Haiku.
10021 # The "-static" flag exists, but is broken.
10022 lt_prog_compiler_static=
10026 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10027 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10028 # sets the default TLS model and affects inlining.
10034 lt_prog_compiler_pic='-fPIC'
10040 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10041 # Instead, we relocate shared libraries at runtime.
10045 # Just because we use GCC doesn't mean we suddenly get shared libraries
10046 # on systems that don't support them.
10047 lt_prog_compiler_can_build_shared=no
10052 # QNX uses GNU C++, but need to define -shared option too, otherwise
10053 # it will coredump.
10054 lt_prog_compiler_pic='-fPIC -shared'
10058 if test -d /usr/nec; then
10059 lt_prog_compiler_pic=-Kconform_pic
10064 lt_prog_compiler_pic='-fPIC'
10068 case $cc_basename in
10069 nvcc*) # Cuda Compiler Driver 2.2
10070 lt_prog_compiler_wl='-Xlinker '
10071 if test -n "$lt_prog_compiler_pic"; then
10072 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10077 # PORTME Check for flag to pass linker flags through the system compiler.
10080 lt_prog_compiler_wl='-Wl,'
10081 if test "$host_cpu" = ia64; then
10082 # AIX 5 now supports IA64 processor
10083 lt_prog_compiler_static='-Bstatic'
10085 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10089 mingw* | cygwin* | pw32* | os2* | cegcc*)
10090 # This hack is so that the source file can tell whether it is being
10091 # built for inclusion in a dll (and should export symbols for example).
10092 lt_prog_compiler_pic='-DDLL_EXPORT'
10095 hpux9* | hpux10* | hpux11*)
10096 lt_prog_compiler_wl='-Wl,'
10097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10098 # not for PA HP-UX.
10104 lt_prog_compiler_pic='+Z'
10107 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10108 lt_prog_compiler_static='${wl}-a ${wl}archive'
10111 irix5* | irix6* | nonstopux*)
10112 lt_prog_compiler_wl='-Wl,'
10113 # PIC (with -KPIC) is the default.
10114 lt_prog_compiler_static='-non_shared'
10117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10118 case $cc_basename in
10119 # old Intel for x86_64 which still supported -KPIC.
10121 lt_prog_compiler_wl='-Wl,'
10122 lt_prog_compiler_pic='-KPIC'
10123 lt_prog_compiler_static='-static'
10125 # icc used to be incompatible with GCC.
10126 # ICC 10 doesn't accept -KPIC any more.
10128 lt_prog_compiler_wl='-Wl,'
10129 lt_prog_compiler_pic='-fPIC'
10130 lt_prog_compiler_static='-static'
10132 # Lahey Fortran 8.1.
10134 lt_prog_compiler_wl='-Wl,'
10135 lt_prog_compiler_pic='--shared'
10136 lt_prog_compiler_static='--static'
10139 # NAG Fortran compiler
10140 lt_prog_compiler_wl='-Wl,-Wl,,'
10141 lt_prog_compiler_pic='-PIC'
10142 lt_prog_compiler_static='-Bstatic'
10144 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10145 # Portland Group compilers (*not* the Pentium gcc compiler,
10146 # which looks to be a dead project)
10147 lt_prog_compiler_wl='-Wl,'
10148 lt_prog_compiler_pic='-fpic'
10149 lt_prog_compiler_static='-Bstatic'
10152 lt_prog_compiler_wl='-Wl,'
10153 # All Alpha code is PIC.
10154 lt_prog_compiler_static='-non_shared'
10156 xl* | bgxl* | bgf* | mpixl*)
10157 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10158 lt_prog_compiler_wl='-Wl,'
10159 lt_prog_compiler_pic='-qpic'
10160 lt_prog_compiler_static='-qstaticlink'
10163 case `$CC -V 2>&1 | sed 5q` in
10164 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10165 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10166 lt_prog_compiler_pic='-KPIC'
10167 lt_prog_compiler_static='-Bstatic'
10168 lt_prog_compiler_wl=''
10170 *Sun\ F* | *Sun*Fortran*)
10171 lt_prog_compiler_pic='-KPIC'
10172 lt_prog_compiler_static='-Bstatic'
10173 lt_prog_compiler_wl='-Qoption ld '
10177 lt_prog_compiler_pic='-KPIC'
10178 lt_prog_compiler_static='-Bstatic'
10179 lt_prog_compiler_wl='-Wl,'
10181 *Intel*\ [CF]*Compiler*)
10182 lt_prog_compiler_wl='-Wl,'
10183 lt_prog_compiler_pic='-fPIC'
10184 lt_prog_compiler_static='-static'
10187 lt_prog_compiler_wl='-Wl,'
10188 lt_prog_compiler_pic='-fpic'
10189 lt_prog_compiler_static='-Bstatic'
10197 lt_prog_compiler_pic='-KPIC'
10198 lt_prog_compiler_static='-Bstatic'
10202 # QNX uses GNU C++, but need to define -shared option too, otherwise
10203 # it will coredump.
10204 lt_prog_compiler_pic='-fPIC -shared'
10207 osf3* | osf4* | osf5*)
10208 lt_prog_compiler_wl='-Wl,'
10209 # All OSF/1 code is PIC.
10210 lt_prog_compiler_static='-non_shared'
10214 lt_prog_compiler_static='-non_shared'
10218 lt_prog_compiler_pic='-KPIC'
10219 lt_prog_compiler_static='-Bstatic'
10220 case $cc_basename in
10221 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10222 lt_prog_compiler_wl='-Qoption ld ';;
10224 lt_prog_compiler_wl='-Wl,';;
10229 lt_prog_compiler_wl='-Qoption ld '
10230 lt_prog_compiler_pic='-PIC'
10231 lt_prog_compiler_static='-Bstatic'
10234 sysv4 | sysv4.2uw2* | sysv4.3*)
10235 lt_prog_compiler_wl='-Wl,'
10236 lt_prog_compiler_pic='-KPIC'
10237 lt_prog_compiler_static='-Bstatic'
10241 if test -d /usr/nec ;then
10242 lt_prog_compiler_pic='-Kconform_pic'
10243 lt_prog_compiler_static='-Bstatic'
10247 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10248 lt_prog_compiler_wl='-Wl,'
10249 lt_prog_compiler_pic='-KPIC'
10250 lt_prog_compiler_static='-Bstatic'
10254 lt_prog_compiler_wl='-Wl,'
10255 lt_prog_compiler_can_build_shared=no
10259 lt_prog_compiler_pic='-pic'
10260 lt_prog_compiler_static='-Bstatic'
10264 lt_prog_compiler_can_build_shared=no
10270 # For platforms which do not support PIC, -DPIC is meaningless:
10272 lt_prog_compiler_pic=
10275 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10280 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10281 if ${lt_cv_prog_compiler_pic+:} false; then :
10282 $as_echo_n "(cached) " >&6
10284 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10287 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10288 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10291 # Check to make sure the PIC flag actually works.
10293 if test -n "$lt_prog_compiler_pic"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10296 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10297 $as_echo_n "(cached) " >&6
10299 lt_cv_prog_compiler_pic_works=no
10300 ac_outfile=conftest.$ac_objext
10301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10302 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10303 # Insert the option either (1) after the last *FLAGS variable, or
10304 # (2) before a word containing "conftest.", or (3) at the end.
10305 # Note that $ac_compile itself does not contain backslashes and begins
10306 # with a dollar sign (not a hyphen), so the echo should work correctly.
10307 # The option is referenced via a variable to avoid confusing sed.
10308 lt_compile=`echo "$ac_compile" | $SED \
10309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10311 -e 's:$: $lt_compiler_flag:'`
10312 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10313 (eval "$lt_compile" 2>conftest.err)
10315 cat conftest.err >&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 if (exit $ac_status) && test -s "$ac_outfile"; then
10318 # The compiler can only warn and ignore the option if not recognized
10319 # So say no if there are warnings other than the usual output.
10320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10323 lt_cv_prog_compiler_pic_works=yes
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10330 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10332 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10333 case $lt_prog_compiler_pic in
10335 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10338 lt_prog_compiler_pic=
10339 lt_prog_compiler_can_build_shared=no
10355 # Check to make sure the static flag actually works.
10357 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10359 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10360 if ${lt_cv_prog_compiler_static_works+:} false; then :
10361 $as_echo_n "(cached) " >&6
10363 lt_cv_prog_compiler_static_works=no
10364 save_LDFLAGS="$LDFLAGS"
10365 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10366 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10367 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10368 # The linker can only warn and ignore the option if not recognized
10369 # So say no if there are warnings
10370 if test -s conftest.err; then
10371 # Append any errors to the config.log.
10372 cat conftest.err 1>&5
10373 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10374 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10375 if diff conftest.exp conftest.er2 >/dev/null; then
10376 lt_cv_prog_compiler_static_works=yes
10379 lt_cv_prog_compiler_static_works=yes
10383 LDFLAGS="$save_LDFLAGS"
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10387 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10389 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10392 lt_prog_compiler_static=
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10403 if ${lt_cv_prog_compiler_c_o+:} false; then :
10404 $as_echo_n "(cached) " >&6
10406 lt_cv_prog_compiler_c_o=no
10407 $RM -r conftest 2>/dev/null
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10413 lt_compiler_flag="-o out/conftest2.$ac_objext"
10414 # Insert the option either (1) after the last *FLAGS variable, or
10415 # (2) before a word containing "conftest.", or (3) at the end.
10416 # Note that $ac_compile itself does not contain backslashes and begins
10417 # with a dollar sign (not a hyphen), so the echo should work correctly.
10418 lt_compile=`echo "$ac_compile" | $SED \
10419 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10420 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10421 -e 's:$: $lt_compiler_flag:'`
10422 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10423 (eval "$lt_compile" 2>out/conftest.err)
10425 cat out/conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10429 # The compiler can only warn and ignore the option if not recognized
10430 # So say no if there are warnings
10431 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10432 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10433 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10434 lt_cv_prog_compiler_c_o=yes
10439 # SGI C++ compiler will create directory out/ii_files/ for
10440 # template instantiation
10441 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10442 $RM out/* && rmdir out
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10449 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10457 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10458 if ${lt_cv_prog_compiler_c_o+:} false; then :
10459 $as_echo_n "(cached) " >&6
10461 lt_cv_prog_compiler_c_o=no
10462 $RM -r conftest 2>/dev/null
10466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10468 lt_compiler_flag="-o out/conftest2.$ac_objext"
10469 # Insert the option either (1) after the last *FLAGS variable, or
10470 # (2) before a word containing "conftest.", or (3) at the end.
10471 # Note that $ac_compile itself does not contain backslashes and begins
10472 # with a dollar sign (not a hyphen), so the echo should work correctly.
10473 lt_compile=`echo "$ac_compile" | $SED \
10474 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10475 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10476 -e 's:$: $lt_compiler_flag:'`
10477 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10478 (eval "$lt_compile" 2>out/conftest.err)
10480 cat out/conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10484 # The compiler can only warn and ignore the option if not recognized
10485 # So say no if there are warnings
10486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10487 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10488 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10489 lt_cv_prog_compiler_c_o=yes
10494 # SGI C++ compiler will create directory out/ii_files/ for
10495 # template instantiation
10496 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10497 $RM out/* && rmdir out
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10504 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10509 hard_links="nottested"
10510 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10511 # do not overwrite the value of need_locks provided by the user
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10513 $as_echo_n "checking if we can lock with hard links... " >&6; }
10516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10518 ln conftest.a conftest.b 2>&5 || hard_links=no
10519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10521 $as_echo "$hard_links" >&6; }
10522 if test "$hard_links" = no; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10524 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10537 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10540 allow_undefined_flag=
10541 always_export_symbols=no
10543 archive_expsym_cmds=
10544 compiler_needs_object=no
10545 enable_shared_with_static_runtimes=no
10546 export_dynamic_flag_spec=
10547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10548 hardcode_automatic=no
10550 hardcode_direct_absolute=no
10551 hardcode_libdir_flag_spec=
10552 hardcode_libdir_separator=
10553 hardcode_minus_L=no
10554 hardcode_shlibpath_var=unsupported
10556 link_all_deplibs=unknown
10558 module_expsym_cmds=
10559 old_archive_from_new_cmds=
10560 old_archive_from_expsyms_cmds=
10561 thread_safe_flag_spec=
10562 whole_archive_flag_spec=
10563 # include_expsyms should be a list of space-separated symbols to be *always*
10564 # included in the symbol list
10566 # exclude_expsyms can be an extended regexp of symbols to exclude
10567 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10568 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10569 # as well as any symbol that contains `d'.
10570 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10571 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10572 # platforms (ab)use it in PIC code, but their linkers get confused if
10573 # the symbol is explicitly referenced. Since portable code cannot
10574 # rely on this symbol name, it's probably fine to never include it in
10575 # preloaded symbol tables.
10576 # Exclude shared library initialization/finalization symbols.
10577 extract_expsyms_cmds=
10580 cygwin* | mingw* | pw32* | cegcc*)
10581 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10582 # When not using gcc, we currently assume that we are using
10583 # Microsoft Visual C++.
10584 if test "$GCC" != yes; then
10589 # we just hope/assume this is gcc and not c89 (= MSVC++)
10595 linux* | k*bsd*-gnu | gnu*)
10596 link_all_deplibs=no
10602 # On some targets, GNU ld is compatible enough with the native linker
10603 # that we're better off using the native interface for both.
10604 lt_use_gnu_ld_interface=no
10605 if test "$with_gnu_ld" = yes; then
10608 # The AIX port of GNU ld has always aspired to compatibility
10609 # with the native linker. However, as the warning in the GNU ld
10610 # block says, versions before 2.19.5* couldn't really create working
10611 # shared libraries, regardless of the interface used.
10612 case `$LD -v 2>&1` in
10613 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10614 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10615 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10617 lt_use_gnu_ld_interface=yes
10622 lt_use_gnu_ld_interface=yes
10627 if test "$lt_use_gnu_ld_interface" = yes; then
10628 # If archive_cmds runs LD, not CC, wlarc should be empty
10631 # Set some defaults for GNU ld with shared library support. These
10632 # are reset later if shared libraries are not supported. Putting them
10633 # here allows them to be overridden if necessary.
10634 runpath_var=LD_RUN_PATH
10635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636 export_dynamic_flag_spec='${wl}--export-dynamic'
10637 # ancient GNU ld didn't support --whole-archive et. al.
10638 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10639 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10641 whole_archive_flag_spec=
10643 supports_anon_versioning=no
10644 case `$LD -v 2>&1` in
10645 *GNU\ gold*) supports_anon_versioning=yes ;;
10646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10649 *\ 2.11.*) ;; # other 2.11 versions
10650 *) supports_anon_versioning=yes ;;
10653 # See if GNU ld supports shared libraries.
10656 # On AIX/PPC, the GNU linker is very broken
10657 if test "$host_cpu" != ia64; then
10661 *** Warning: the GNU linker, at least up to release 2.19, is reported
10662 *** to be unable to reliably create shared libraries on AIX.
10663 *** Therefore, libtool is disabling shared libraries support. If you
10664 *** really care for shared libraries, you may want to install binutils
10665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10666 *** You will then need to restart the configuration process.
10675 # see comment about AmigaOS4 .so support
10676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10677 archive_expsym_cmds=''
10680 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)'
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_minus_L=yes
10688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10689 allow_undefined_flag=unsupported
10690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10691 # support --undefined. This deserves some investigation. FIXME
10692 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698 cygwin* | mingw* | pw32* | cegcc*)
10699 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10700 # as there is no search path for DLLs.
10701 hardcode_libdir_flag_spec='-L$libdir'
10702 export_dynamic_flag_spec='${wl}--export-all-symbols'
10703 allow_undefined_flag=unsupported
10704 always_export_symbols=no
10705 enable_shared_with_static_runtimes=yes
10706 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'
10707 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10709 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10711 # If the export-symbols file already is a .def file (1st line
10712 # is EXPORTS), use it as is; otherwise, prepend...
10713 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10714 cp $export_symbols $output_objdir/$soname.def;
10716 echo EXPORTS > $output_objdir/$soname.def;
10717 cat $export_symbols >> $output_objdir/$soname.def;
10719 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10727 link_all_deplibs=yes
10732 hardcode_shlibpath_var=no
10733 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10734 export_dynamic_flag_spec='${wl}-E'
10735 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10736 # Instead, shared libraries are loaded at an image base (0x10000000 by
10737 # default) and relocated if they conflict, which is a slow very memory
10738 # consuming and fragmenting process. To avoid this, we pick a random,
10739 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10740 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10741 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10742 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'
10745 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10747 if test "$host_os" = linux-dietlibc; then
10748 case $cc_basename in
10749 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10752 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10753 && test "$tmp_diet" = no
10755 tmp_addflag=' $pic_flag'
10756 tmp_sharedflag='-shared'
10757 case $cc_basename,$host_cpu in
10758 pgcc*) # Portland Group C compiler
10759 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'
10760 tmp_addflag=' $pic_flag'
10762 pgf77* | pgf90* | pgf95* | pgfortran*)
10763 # Portland Group f77 and f90 compilers
10764 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'
10765 tmp_addflag=' $pic_flag -Mnomain' ;;
10766 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10767 tmp_addflag=' -i_dynamic' ;;
10768 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10769 tmp_addflag=' -i_dynamic -nofor_main' ;;
10770 ifc* | ifort*) # Intel Fortran compiler
10771 tmp_addflag=' -nofor_main' ;;
10772 lf95*) # Lahey Fortran 8.1
10773 whole_archive_flag_spec=
10774 tmp_sharedflag='--shared' ;;
10775 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10776 tmp_sharedflag='-qmkshrobj'
10778 nvcc*) # Cuda Compiler Driver 2.2
10779 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'
10780 compiler_needs_object=yes
10783 case `$CC -V 2>&1 | sed 5q` in
10784 *Sun\ C*) # Sun C 5.9
10785 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'
10786 compiler_needs_object=yes
10787 tmp_sharedflag='-G' ;;
10788 *Sun\ F*) # Sun Fortran 8.3
10789 tmp_sharedflag='-G' ;;
10791 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10793 if test "x$supports_anon_versioning" = xyes; then
10794 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10796 echo "local: *; };" >> $output_objdir/$libname.ver~
10797 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10800 case $cc_basename in
10801 xlf* | bgf* | bgxlf* | mpixlf*)
10802 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10803 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10806 if test "x$supports_anon_versioning" = xyes; then
10807 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10809 echo "local: *; };" >> $output_objdir/$libname.ver~
10810 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10819 netbsd* | netbsdelf*-gnu)
10820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10821 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10824 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10825 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10830 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10835 *** create shared libraries on Solaris systems. Therefore, libtool
10836 *** is disabling shared libraries support. We urge you to upgrade GNU
10837 *** binutils to release 2.9.1 or newer. Another option is to modify
10838 *** your PATH or compiler configuration so that the native linker is
10839 *** used, and then restart.
10842 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10843 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10851 case `$LD -v 2>&1` in
10852 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10857 *** reliably create shared libraries on SCO systems. Therefore, libtool
10858 *** is disabling shared libraries support. We urge you to upgrade GNU
10859 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10860 *** your PATH or compiler configuration so that the native linker is
10861 *** used, and then restart.
10866 # For security reasons, it is highly recommended that you always
10867 # use absolute paths for naming shared libraries, and exclude the
10868 # DT_RUNPATH tag from executables and libraries. But doing so
10869 # requires that you compile everything twice, which is a pain.
10870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10872 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10873 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10882 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_direct=yes
10885 hardcode_shlibpath_var=no
10889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10891 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10898 if test "$ld_shlibs" = no; then
10900 hardcode_libdir_flag_spec=
10901 export_dynamic_flag_spec=
10902 whole_archive_flag_spec=
10905 # PORTME fill in a description of your system's linker (not GNU ld)
10908 allow_undefined_flag=unsupported
10909 always_export_symbols=yes
10910 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'
10911 # Note: this linker hardcodes the directories in LIBPATH if there
10912 # are no directories specified by -L.
10913 hardcode_minus_L=yes
10914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10915 # Neither direct hardcoding nor static linking is supported with a
10917 hardcode_direct=unsupported
10922 if test "$host_cpu" = ia64; then
10923 # On IA64, the linker does run time linking by default, so we don't
10924 # have to do anything special.
10925 aix_use_runtimelinking=no
10926 exp_sym_flag='-Bexport'
10929 # If we're using GNU nm, then we don't want the "-C" option.
10930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10931 # Also, AIX nm treats weak defined symbols like other global
10932 # defined symbols, whereas GNU nm marks them as "W".
10933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10934 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'
10936 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'
10938 aix_use_runtimelinking=no
10940 # Test if we are trying to use run time linking or normal
10941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10942 # need to do runtime linking.
10943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10944 for ld_flag in $LDFLAGS; do
10945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10946 aix_use_runtimelinking=yes
10953 exp_sym_flag='-bexport'
10954 no_entry_flag='-bnoentry'
10957 # When large executables or shared objects are built, AIX ld can
10958 # have problems creating the table of contents. If linking a library
10959 # or program results in "error TOC overflow" add -mminimal-toc to
10960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10964 hardcode_direct=yes
10965 hardcode_direct_absolute=yes
10966 hardcode_libdir_separator=':'
10967 link_all_deplibs=yes
10968 file_list_spec='${wl}-f,'
10970 if test "$GCC" = yes; then
10971 case $host_os in aix4.[012]|aix4.[012].*)
10972 # We only want to do this on AIX 4.2 and lower, the check
10973 # below for broken collect2 doesn't work under 4.3+
10974 collect2name=`${CC} -print-prog-name=collect2`
10975 if test -f "$collect2name" &&
10976 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10978 # We have reworked collect2
10981 # We have old collect2
10982 hardcode_direct=unsupported
10983 # It fails to find uninstalled libraries when the uninstalled
10984 # path is not listed in the libpath. Setting hardcode_minus_L
10985 # to unsupported forces relinking
10986 hardcode_minus_L=yes
10987 hardcode_libdir_flag_spec='-L$libdir'
10988 hardcode_libdir_separator=
10992 shared_flag='-shared'
10993 if test "$aix_use_runtimelinking" = yes; then
10994 shared_flag="$shared_flag "'${wl}-G'
10996 link_all_deplibs=no
10999 if test "$host_cpu" = ia64; then
11000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11001 # chokes on -Wl,-G. The following line is correct:
11004 if test "$aix_use_runtimelinking" = yes; then
11005 shared_flag='${wl}-G'
11007 shared_flag='${wl}-bM:SRE'
11012 export_dynamic_flag_spec='${wl}-bexpall'
11013 # It seems that -bexpall does not export symbols beginning with
11014 # underscore (_), so it is better to generate a list of symbols to export.
11015 always_export_symbols=yes
11016 if test "$aix_use_runtimelinking" = yes; then
11017 # Warning - without using the other runtime loading flags (-brtl),
11018 # -berok will link without error, but may produce a broken library.
11019 allow_undefined_flag='-berok'
11020 # Determine the default libpath from the value encoded in an
11021 # empty executable.
11022 if test "${lt_cv_aix_libpath+set}" = set; then
11023 aix_libpath=$lt_cv_aix_libpath
11025 if ${lt_cv_aix_libpath_+:} false; then :
11026 $as_echo_n "(cached) " >&6
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11039 if ac_fn_c_try_link "$LINENO"; then :
11041 lt_aix_libpath_sed='
11042 /Import File Strings/,/^$/ {
11044 s/^0 *\([^ ]*\) *$/\1/
11048 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11049 # Check for a 64-bit object if we didn't find anything.
11050 if test -z "$lt_cv_aix_libpath_"; then
11051 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 if test -z "$lt_cv_aix_libpath_"; then
11057 lt_cv_aix_libpath_="/usr/lib:/lib"
11062 aix_libpath=$lt_cv_aix_libpath_
11065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11066 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"
11068 if test "$host_cpu" = ia64; then
11069 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11070 allow_undefined_flag="-z nodefs"
11071 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"
11073 # Determine the default libpath from the value encoded in an
11074 # empty executable.
11075 if test "${lt_cv_aix_libpath+set}" = set; then
11076 aix_libpath=$lt_cv_aix_libpath
11078 if ${lt_cv_aix_libpath_+:} false; then :
11079 $as_echo_n "(cached) " >&6
11081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h. */
11092 if ac_fn_c_try_link "$LINENO"; then :
11094 lt_aix_libpath_sed='
11095 /Import File Strings/,/^$/ {
11097 s/^0 *\([^ ]*\) *$/\1/
11101 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11102 # Check for a 64-bit object if we didn't find anything.
11103 if test -z "$lt_cv_aix_libpath_"; then
11104 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 if test -z "$lt_cv_aix_libpath_"; then
11110 lt_cv_aix_libpath_="/usr/lib:/lib"
11115 aix_libpath=$lt_cv_aix_libpath_
11118 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11119 # Warning - without using the other run time loading flags,
11120 # -berok will link without error, but may produce a broken library.
11121 no_undefined_flag=' ${wl}-bernotok'
11122 allow_undefined_flag=' ${wl}-berok'
11123 if test "$with_gnu_ld" = yes; then
11124 # We only use this code for GNU lds that support --whole-archive.
11125 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11127 # Exported symbols can be pulled into shared objects from archives
11128 whole_archive_flag_spec='$convenience'
11130 archive_cmds_need_lc=yes
11131 # This is similar to how AIX traditionally builds its shared libraries.
11132 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'
11140 # see comment about AmigaOS4 .so support
11141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11142 archive_expsym_cmds=''
11145 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)'
11146 hardcode_libdir_flag_spec='-L$libdir'
11147 hardcode_minus_L=yes
11153 export_dynamic_flag_spec=-rdynamic
11156 cygwin* | mingw* | pw32* | cegcc*)
11157 # When not using gcc, we currently assume that we are using
11158 # Microsoft Visual C++.
11159 # hardcode_libdir_flag_spec is actually meaningless, as there is
11160 # no search path for DLLs.
11161 case $cc_basename in
11164 hardcode_libdir_flag_spec=' '
11165 allow_undefined_flag=unsupported
11166 always_export_symbols=yes
11168 # Tell ltmain to make .lib files, not .a files.
11170 # Tell ltmain to make .dll files, not .so files.
11172 # FIXME: Setting linknames here is a bad hack.
11173 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11174 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
11175 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11177 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11179 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11181 # The linker will not automatically build a static lib if we build a DLL.
11182 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11183 enable_shared_with_static_runtimes=yes
11184 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11185 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11187 old_postinstall_cmds='chmod 644 $oldlib'
11188 postlink_cmds='lt_outputfile="@OUTPUT@"~
11189 lt_tool_outputfile="@TOOL_OUTPUT@"~
11190 case $lt_outputfile in
11193 lt_outputfile="$lt_outputfile.exe"
11194 lt_tool_outputfile="$lt_tool_outputfile.exe"
11197 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11198 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11199 $RM "$lt_outputfile.manifest";
11203 # Assume MSVC wrapper
11204 hardcode_libdir_flag_spec=' '
11205 allow_undefined_flag=unsupported
11206 # Tell ltmain to make .lib files, not .a files.
11208 # Tell ltmain to make .dll files, not .so files.
11210 # FIXME: Setting linknames here is a bad hack.
11211 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11212 # The linker will automatically build a .lib file if we build a DLL.
11213 old_archive_from_new_cmds='true'
11214 # FIXME: Should let the user specify the lib program.
11215 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11216 enable_shared_with_static_runtimes=yes
11221 darwin* | rhapsody*)
11224 archive_cmds_need_lc=no
11226 hardcode_automatic=yes
11227 hardcode_shlibpath_var=unsupported
11228 if test "$lt_cv_ld_force_load" = "yes"; then
11229 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\"`'
11232 whole_archive_flag_spec=''
11234 link_all_deplibs=yes
11235 allow_undefined_flag="$_lt_dar_allow_undefined"
11236 case $cc_basename in
11237 ifort*) _lt_dar_can_shared=yes ;;
11238 *) _lt_dar_can_shared=$GCC ;;
11240 if test "$_lt_dar_can_shared" = "yes"; then
11241 output_verbose_link_cmd=func_echo_all
11242 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11243 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11244 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}"
11245 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}"
11254 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255 hardcode_libdir_flag_spec='-L$libdir'
11256 hardcode_shlibpath_var=no
11259 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11260 # support. Future versions do this automatically, but an explicit c++rt0.o
11261 # does not break anything, and helps significantly (at the cost of a little
11264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11265 hardcode_libdir_flag_spec='-R$libdir'
11266 hardcode_direct=yes
11267 hardcode_shlibpath_var=no
11270 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11272 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11273 hardcode_direct=yes
11274 hardcode_minus_L=yes
11275 hardcode_shlibpath_var=no
11278 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11279 freebsd* | dragonfly*)
11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11281 hardcode_libdir_flag_spec='-R$libdir'
11282 hardcode_direct=yes
11283 hardcode_shlibpath_var=no
11287 if test "$GCC" = yes; then
11288 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'
11290 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'
11292 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11293 hardcode_libdir_separator=:
11294 hardcode_direct=yes
11296 # hardcode_minus_L: Not really in the search PATH,
11297 # but as the default location of the library.
11298 hardcode_minus_L=yes
11299 export_dynamic_flag_spec='${wl}-E'
11303 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11304 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11306 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11308 if test "$with_gnu_ld" = no; then
11309 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11310 hardcode_libdir_separator=:
11311 hardcode_direct=yes
11312 hardcode_direct_absolute=yes
11313 export_dynamic_flag_spec='${wl}-E'
11314 # hardcode_minus_L: Not really in the search PATH,
11315 # but as the default location of the library.
11316 hardcode_minus_L=yes
11321 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11324 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11336 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11339 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11343 # Older versions of the 11.00 compiler do not understand -b yet
11344 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11346 $as_echo_n "checking if $CC understands -b... " >&6; }
11347 if ${lt_cv_prog_compiler__b+:} false; then :
11348 $as_echo_n "(cached) " >&6
11350 lt_cv_prog_compiler__b=no
11351 save_LDFLAGS="$LDFLAGS"
11352 LDFLAGS="$LDFLAGS -b"
11353 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11355 # The linker can only warn and ignore the option if not recognized
11356 # So say no if there are warnings
11357 if test -s conftest.err; then
11358 # Append any errors to the config.log.
11359 cat conftest.err 1>&5
11360 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11362 if diff conftest.exp conftest.er2 >/dev/null; then
11363 lt_cv_prog_compiler__b=yes
11366 lt_cv_prog_compiler__b=yes
11370 LDFLAGS="$save_LDFLAGS"
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11374 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11376 if test x"$lt_cv_prog_compiler__b" = xyes; then
11377 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11385 if test "$with_gnu_ld" = no; then
11386 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11387 hardcode_libdir_separator=:
11392 hardcode_shlibpath_var=no
11395 hardcode_direct=yes
11396 hardcode_direct_absolute=yes
11397 export_dynamic_flag_spec='${wl}-E'
11399 # hardcode_minus_L: Not really in the search PATH,
11400 # but as the default location of the library.
11401 hardcode_minus_L=yes
11407 irix5* | irix6* | nonstopux*)
11408 if test "$GCC" = yes; then
11409 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'
11410 # Try to use the -exported_symbol ld option, if it does not
11411 # work, assume that -exports_file does not work either and
11412 # implicitly export all symbols.
11413 # This should be the same for all languages, so no per-tag cache variable.
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11415 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11416 if ${lt_cv_irix_exported_symbol+:} false; then :
11417 $as_echo_n "(cached) " >&6
11419 save_LDFLAGS="$LDFLAGS"
11420 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423 int foo (void) { return 0; }
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 lt_cv_irix_exported_symbol=yes
11428 lt_cv_irix_exported_symbol=no
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LDFLAGS="$save_LDFLAGS"
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11435 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11436 if test "$lt_cv_irix_exported_symbol" = yes; then
11437 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'
11440 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'
11441 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'
11443 archive_cmds_need_lc='no'
11444 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11445 hardcode_libdir_separator=:
11447 link_all_deplibs=yes
11450 netbsd* | netbsdelf*-gnu)
11451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11454 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11456 hardcode_libdir_flag_spec='-R$libdir'
11457 hardcode_direct=yes
11458 hardcode_shlibpath_var=no
11462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11463 hardcode_direct=yes
11464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11465 hardcode_libdir_separator=:
11466 hardcode_shlibpath_var=no
11473 if test -f /usr/libexec/ld.so; then
11474 hardcode_direct=yes
11475 hardcode_shlibpath_var=no
11476 hardcode_direct_absolute=yes
11477 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11478 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11479 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11480 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11481 export_dynamic_flag_spec='${wl}-E'
11484 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11485 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11486 hardcode_libdir_flag_spec='-R$libdir'
11489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11490 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11500 hardcode_libdir_flag_spec='-L$libdir'
11501 hardcode_minus_L=yes
11502 allow_undefined_flag=unsupported
11503 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'
11504 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11508 if test "$GCC" = yes; then
11509 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11510 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'
11512 allow_undefined_flag=' -expect_unresolved \*'
11513 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'
11515 archive_cmds_need_lc='no'
11516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11517 hardcode_libdir_separator=:
11520 osf4* | osf5*) # as osf3* with the addition of -msym flag
11521 if test "$GCC" = yes; then
11522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11523 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'
11524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11526 allow_undefined_flag=' -expect_unresolved \*'
11527 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'
11528 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~
11529 $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'
11531 # Both c and cxx compiler support -rpath directly
11532 hardcode_libdir_flag_spec='-rpath $libdir'
11534 archive_cmds_need_lc='no'
11535 hardcode_libdir_separator=:
11539 no_undefined_flag=' -z defs'
11540 if test "$GCC" = yes; then
11542 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11544 $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'
11546 case `$CC -V 2>&1` in
11549 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11551 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11555 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11557 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11561 hardcode_libdir_flag_spec='-R$libdir'
11562 hardcode_shlibpath_var=no
11564 solaris2.[0-5] | solaris2.[0-5].*) ;;
11566 # The compiler driver will combine and reorder linker options,
11567 # but understands `-z linker_flag'. GCC discards it without `$wl',
11568 # but is careful enough not to reorder.
11569 # Supported since Solaris 2.6 (maybe 2.5.1?)
11570 if test "$GCC" = yes; then
11571 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11573 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11577 link_all_deplibs=yes
11581 if test "x$host_vendor" = xsequent; then
11582 # Use $CC to link under sequent, because it throws in some extra .o
11583 # files that make .init and .fini sections work.
11584 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11586 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11588 hardcode_libdir_flag_spec='-L$libdir'
11589 hardcode_direct=yes
11590 hardcode_minus_L=yes
11591 hardcode_shlibpath_var=no
11595 case $host_vendor in
11597 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11598 hardcode_direct=yes # is this really true???
11601 ## LD is ld it makes a PLAMLIB
11602 ## CC just makes a GrossModule.
11603 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11604 reload_cmds='$CC -r -o $output$reload_objs'
11608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11609 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11612 runpath_var='LD_RUN_PATH'
11613 hardcode_shlibpath_var=no
11617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11618 hardcode_shlibpath_var=no
11619 export_dynamic_flag_spec='-Bexport'
11623 if test -d /usr/nec; then
11624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11625 hardcode_shlibpath_var=no
11626 runpath_var=LD_RUN_PATH
11627 hardcode_runpath_var=yes
11632 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11633 no_undefined_flag='${wl}-z,text'
11634 archive_cmds_need_lc=no
11635 hardcode_shlibpath_var=no
11636 runpath_var='LD_RUN_PATH'
11638 if test "$GCC" = yes; then
11639 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11640 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11642 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 sysv5* | sco3.2v5* | sco5v6*)
11648 # Note: We can NOT use -z defs as we might desire, because we do not
11649 # link with -lc, and that would cause any symbols used from libc to
11650 # always be unresolved, which means just about no library would
11651 # ever link correctly. If we're not using GNU ld we use -z text
11652 # though, which does catch some bad symbols but isn't as heavy-handed
11654 no_undefined_flag='${wl}-z,text'
11655 allow_undefined_flag='${wl}-z,nodefs'
11656 archive_cmds_need_lc=no
11657 hardcode_shlibpath_var=no
11658 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11659 hardcode_libdir_separator=':'
11660 link_all_deplibs=yes
11661 export_dynamic_flag_spec='${wl}-Bexport'
11662 runpath_var='LD_RUN_PATH'
11664 if test "$GCC" = yes; then
11665 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11668 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11669 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11675 hardcode_libdir_flag_spec='-L$libdir'
11676 hardcode_shlibpath_var=no
11684 if test x$host_vendor = xsni; then
11686 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11687 export_dynamic_flag_spec='${wl}-Blargedynsym'
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11694 $as_echo "$ld_shlibs" >&6; }
11695 test "$ld_shlibs" = no && can_build_shared=no
11697 with_gnu_ld=$with_gnu_ld
11714 # Do we need to explicitly link libc?
11716 case "x$archive_cmds_need_lc" in
11718 # Assume -lc should be added
11719 archive_cmds_need_lc=yes
11721 if test "$enable_shared" = yes && test "$GCC" = yes; then
11722 case $archive_cmds in
11724 # FIXME: we may have to deal with multi-command sequences.
11727 # Test whether the compiler implicitly links with -lc since on some
11728 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11729 # to ld, don't add -lc before -lgcc.
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11732 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11733 $as_echo_n "(cached) " >&6
11736 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11739 (eval $ac_compile) 2>&5
11741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11742 test $ac_status = 0; } 2>conftest.err; then
11745 libobjs=conftest.$ac_objext
11747 wl=$lt_prog_compiler_wl
11748 pic_flag=$lt_prog_compiler_pic
11754 lt_save_allow_undefined_flag=$allow_undefined_flag
11755 allow_undefined_flag=
11756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11757 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11760 test $ac_status = 0; }
11762 lt_cv_archive_cmds_need_lc=no
11764 lt_cv_archive_cmds_need_lc=yes
11766 allow_undefined_flag=$lt_save_allow_undefined_flag
11768 cat conftest.err 1>&5
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11774 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11775 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11934 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11936 if test "$GCC" = yes; then
11938 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11939 *) lt_awk_arg="/^libraries:/" ;;
11942 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11943 *) lt_sed_strip_eq="s,=/,/,g" ;;
11945 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11946 case $lt_search_path_spec in
11948 # if the path contains ";" then we assume it to be the separator
11949 # otherwise default to the standard path separator (i.e. ":") - it is
11950 # assumed that no part of a normal pathname contains ";" but that should
11951 # okay in the real world where ";" in dirpaths is itself problematic.
11952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11958 # Ok, now we have the path, separated by spaces, we can step through it
11959 # and add multilib dir if necessary.
11960 lt_tmp_lt_search_path_spec=
11961 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11962 for lt_sys_path in $lt_search_path_spec; do
11963 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11966 test -d "$lt_sys_path" && \
11967 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11970 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11971 BEGIN {RS=" "; FS="/|\n";} {
11974 for (lt_i = NF; lt_i > 0; lt_i--) {
11975 if ($lt_i != "" && $lt_i != ".") {
11976 if ($lt_i == "..") {
11979 if (lt_count == 0) {
11980 lt_foo="/" $lt_i lt_foo;
11987 if (lt_foo != "") { lt_freq[lt_foo]++; }
11988 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11990 # AWK program above erroneously prepends '/' to C:/dos/paths
11993 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11994 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11996 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12000 library_names_spec=
12001 libname_spec='lib$name'
12005 postuninstall_cmds=
12009 shlibpath_overrides_runpath=unknown
12011 dynamic_linker="$host_os ld.so"
12012 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12013 need_lib_prefix=unknown
12014 hardcode_into_libs=no
12016 # when you set need_version to no, make sure it does not cause -set_version
12017 # flags to be left without arguments
12018 need_version=unknown
12022 version_type=linux # correct to gnu/linux during the next big refactor
12023 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12024 shlibpath_var=LIBPATH
12026 # AIX 3 has no versioning support, so we append a major version to the name.
12027 soname_spec='${libname}${release}${shared_ext}$major'
12031 version_type=linux # correct to gnu/linux during the next big refactor
12034 hardcode_into_libs=yes
12035 if test "$host_cpu" = ia64; then
12036 # AIX 5 supports IA64
12037 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12038 shlibpath_var=LD_LIBRARY_PATH
12040 # With GCC up to 2.95.x, collect2 would create an import file
12041 # for dependence libraries. The import file would start with
12042 # the line `#! .'. This would cause the generated library to
12043 # depend on `.', always an invalid library. This was fixed in
12044 # development snapshots of GCC prior to 3.0.
12046 aix4 | aix4.[01] | aix4.[01].*)
12047 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12049 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12052 can_build_shared=no
12056 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12057 # soname into executable. Probably we can add versioning support to
12058 # collect2, so additional links can be useful in future.
12059 if test "$aix_use_runtimelinking" = yes; then
12060 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12061 # instead of lib<name>.a to let people know that these are not
12062 # typical AIX shared libraries.
12063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12065 # We preserve .a as extension for shared libraries through AIX4.2
12066 # and later when we are not doing run time linking.
12067 library_names_spec='${libname}${release}.a $libname.a'
12068 soname_spec='${libname}${release}${shared_ext}$major'
12070 shlibpath_var=LIBPATH
12077 # Since July 2007 AmigaOS4 officially supports .so libraries.
12078 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12082 library_names_spec='$libname.ixlibrary $libname.a'
12083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12084 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'
12090 library_names_spec='${libname}${shared_ext}'
12091 dynamic_linker="$host_os ld.so"
12092 shlibpath_var=LIBRARY_PATH
12096 version_type=linux # correct to gnu/linux during the next big refactor
12098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12099 soname_spec='${libname}${release}${shared_ext}$major'
12100 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12103 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12104 # the default ld.so.conf also contains /usr/contrib/lib and
12105 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12106 # libtool to hard-code these into programs
12109 cygwin* | mingw* | pw32* | cegcc*)
12110 version_type=windows
12115 case $GCC,$cc_basename in
12118 library_names_spec='$libname.dll.a'
12119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12120 postinstall_cmds='base_file=`basename \${file}`~
12121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12122 dldir=$destdir/`dirname \$dlpath`~
12123 test -d \$dldir || mkdir -p \$dldir~
12124 $install_prog $dir/$dlname \$dldir/$dlname~
12125 chmod a+x \$dldir/$dlname~
12126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12130 dlpath=$dir/\$dldll~
12132 shlibpath_overrides_runpath=yes
12136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12139 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12142 # MinGW DLLs use traditional 'lib' prefix
12143 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12146 # pw32 DLLs use 'pw' prefix rather than 'lib'
12147 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12150 dynamic_linker='Win32 ld.exe'
12155 libname_spec='$name'
12156 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12157 library_names_spec='${libname}.dll.lib'
12161 sys_lib_search_path_spec=
12164 for lt_path in $LIB
12167 # Let DOS variable expansion print the short 8.3 style file name.
12168 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12169 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12172 # Convert to MSYS style.
12173 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12176 # Convert to unix form, then to dos form, then back to unix form
12177 # but this time dos style (no spaces!) so that the unix form looks
12178 # like /cygdrive/c/PROGRA~1:/cygdr...
12179 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12180 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12181 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12184 sys_lib_search_path_spec="$LIB"
12185 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12186 # It is most probably a Windows format PATH.
12187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12191 # FIXME: find the short name or the path components, as spaces are
12192 # common. (e.g. "Program Files" -> "PROGRA~1")
12196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12197 postinstall_cmds='base_file=`basename \${file}`~
12198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12199 dldir=$destdir/`dirname \$dlpath`~
12200 test -d \$dldir || mkdir -p \$dldir~
12201 $install_prog $dir/$dlname \$dldir/$dlname'
12202 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12203 dlpath=$dir/\$dldll~
12205 shlibpath_overrides_runpath=yes
12206 dynamic_linker='Win32 link.exe'
12210 # Assume MSVC wrapper
12211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12212 dynamic_linker='Win32 ld.exe'
12215 # FIXME: first we should search . and the directory the executable is in
12219 darwin* | rhapsody*)
12220 dynamic_linker="$host_os dyld"
12221 version_type=darwin
12224 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12225 soname_spec='${libname}${release}${major}$shared_ext'
12226 shlibpath_overrides_runpath=yes
12227 shlibpath_var=DYLD_LIBRARY_PATH
12228 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12230 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12231 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12235 version_type=linux # correct to gnu/linux during the next big refactor
12238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12239 soname_spec='${libname}${release}${shared_ext}$major'
12240 shlibpath_var=LD_LIBRARY_PATH
12243 freebsd* | dragonfly*)
12244 # DragonFly does not have aout. When/if they implement a new
12245 # versioning mechanism, adjust this.
12246 if test -x /usr/bin/objformat; then
12247 objformat=`/usr/bin/objformat`
12250 freebsd[23].*) objformat=aout ;;
12251 *) objformat=elf ;;
12254 version_type=freebsd-$objformat
12255 case $version_type in
12257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12266 shlibpath_var=LD_LIBRARY_PATH
12269 shlibpath_overrides_runpath=yes
12271 freebsd3.[01]* | freebsdelf3.[01]*)
12272 shlibpath_overrides_runpath=yes
12273 hardcode_into_libs=yes
12275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12277 shlibpath_overrides_runpath=no
12278 hardcode_into_libs=yes
12280 *) # from 4.6 on, and DragonFly
12281 shlibpath_overrides_runpath=yes
12282 hardcode_into_libs=yes
12288 version_type=linux # correct to gnu/linux during the next big refactor
12291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12292 soname_spec='${libname}${release}${shared_ext}$major'
12293 shlibpath_var=LD_LIBRARY_PATH
12294 shlibpath_overrides_runpath=no
12295 hardcode_into_libs=yes
12299 version_type=linux # correct to gnu/linux during the next big refactor
12302 dynamic_linker="$host_os runtime_loader"
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12304 soname_spec='${libname}${release}${shared_ext}$major'
12305 shlibpath_var=LIBRARY_PATH
12306 shlibpath_overrides_runpath=yes
12307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12308 hardcode_into_libs=yes
12311 hpux9* | hpux10* | hpux11*)
12312 # Give a soname corresponding to the major version so that dld.sl refuses to
12313 # link against other versions.
12320 hardcode_into_libs=yes
12321 dynamic_linker="$host_os dld.so"
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325 soname_spec='${libname}${release}${shared_ext}$major'
12326 if test "X$HPUX_IA64_MODE" = X32; then
12327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12335 hardcode_into_libs=yes
12336 dynamic_linker="$host_os dld.sl"
12337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 soname_spec='${libname}${release}${shared_ext}$major'
12341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12346 dynamic_linker="$host_os dld.sl"
12347 shlibpath_var=SHLIB_PATH
12348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12350 soname_spec='${libname}${release}${shared_ext}$major'
12353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12354 postinstall_cmds='chmod 555 $lib'
12355 # or fails outright, so override atomically:
12356 install_override_mode=555
12360 version_type=linux # correct to gnu/linux during the next big refactor
12363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12364 soname_spec='${libname}${release}${shared_ext}$major'
12365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12366 shlibpath_var=LD_LIBRARY_PATH
12367 shlibpath_overrides_runpath=no
12368 hardcode_into_libs=yes
12371 irix5* | irix6* | nonstopux*)
12373 nonstopux*) version_type=nonstopux ;;
12375 if test "$lt_cv_prog_gnu_ld" = yes; then
12376 version_type=linux # correct to gnu/linux during the next big refactor
12383 soname_spec='${libname}${release}${shared_ext}$major'
12384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12386 irix5* | nonstopux*)
12387 libsuff= shlibsuff=
12390 case $LD in # libtool.m4 will add one of these switches to LD
12391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12392 libsuff= shlibsuff= libmagic=32-bit;;
12393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12394 libsuff=32 shlibsuff=N32 libmagic=N32;;
12395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12397 *) libsuff= shlibsuff= libmagic=never-match;;
12401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12402 shlibpath_overrides_runpath=no
12403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12405 hardcode_into_libs=yes
12408 # No shared lib support for Linux oldld, aout, or coff.
12409 linux*oldld* | linux*aout* | linux*coff*)
12413 # This must be glibc/ELF.
12414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12415 version_type=linux # correct to gnu/linux during the next big refactor
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419 soname_spec='${libname}${release}${shared_ext}$major'
12420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12421 shlibpath_var=LD_LIBRARY_PATH
12422 shlibpath_overrides_runpath=no
12424 # Some binutils ld are patched to set DT_RUNPATH
12425 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12426 $as_echo_n "(cached) " >&6
12428 lt_cv_shlibpath_overrides_runpath=no
12429 save_LDFLAGS=$LDFLAGS
12430 save_libdir=$libdir
12431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12444 if ac_fn_c_try_link "$LINENO"; then :
12445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12446 lt_cv_shlibpath_overrides_runpath=yes
12449 rm -f core conftest.err conftest.$ac_objext \
12450 conftest$ac_exeext conftest.$ac_ext
12451 LDFLAGS=$save_LDFLAGS
12452 libdir=$save_libdir
12456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12458 # This implies no fast_install, which is unacceptable.
12459 # Some rework will be needed to allow for fast_install
12460 # before this can be enabled.
12461 hardcode_into_libs=yes
12463 # Append ld.so.conf contents to the search path
12464 if test -f /etc/ld.so.conf; then
12465 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' ' '`
12466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12469 # We used to test for /lib/ld.so.1 and disable shared libraries on
12470 # powerpc, because MkLinux only supported shared libraries with the
12471 # GNU dynamic linker. Since this was broken with cross compilers,
12472 # most powerpc-linux boxes support dynamic linking these days and
12473 # people can always --disable-shared, the test was removed, and we
12474 # assume the GNU/Linux dynamic linker is in use.
12475 dynamic_linker='GNU/Linux ld.so'
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 shlibpath_overrides_runpath=no
12486 hardcode_into_libs=yes
12487 dynamic_linker='NetBSD ld.elf_so'
12494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12497 dynamic_linker='NetBSD (a.out) ld.so'
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12500 soname_spec='${libname}${release}${shared_ext}$major'
12501 dynamic_linker='NetBSD ld.elf_so'
12503 shlibpath_var=LD_LIBRARY_PATH
12504 shlibpath_overrides_runpath=yes
12505 hardcode_into_libs=yes
12509 version_type=linux # correct to gnu/linux during the next big refactor
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 shlibpath_overrides_runpath=yes
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12520 soname_spec='${libname}${release}${shared_ext}$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 shlibpath_overrides_runpath=no
12523 hardcode_into_libs=yes
12524 dynamic_linker='ldqnx.so'
12529 sys_lib_dlsearch_path_spec="/usr/lib"
12531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12534 *) need_version=no ;;
12536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12541 openbsd2.[89] | openbsd2.[89].*)
12542 shlibpath_overrides_runpath=no
12545 shlibpath_overrides_runpath=yes
12549 shlibpath_overrides_runpath=yes
12554 libname_spec='$name'
12557 library_names_spec='$libname${shared_ext} $libname.a'
12558 dynamic_linker='OS/2 ld.exe'
12559 shlibpath_var=LIBPATH
12562 osf3* | osf4* | osf5*)
12566 soname_spec='${libname}${release}${shared_ext}$major'
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568 shlibpath_var=LD_LIBRARY_PATH
12569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12578 version_type=linux # correct to gnu/linux during the next big refactor
12581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12582 soname_spec='${libname}${release}${shared_ext}$major'
12583 shlibpath_var=LD_LIBRARY_PATH
12584 shlibpath_overrides_runpath=yes
12585 hardcode_into_libs=yes
12586 # ldd complains unless libraries are executable
12587 postinstall_cmds='chmod +x $lib'
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12594 shlibpath_var=LD_LIBRARY_PATH
12595 shlibpath_overrides_runpath=yes
12596 if test "$with_gnu_ld" = yes; then
12603 version_type=linux # correct to gnu/linux during the next big refactor
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12605 soname_spec='${libname}${release}${shared_ext}$major'
12606 shlibpath_var=LD_LIBRARY_PATH
12607 case $host_vendor in
12609 shlibpath_overrides_runpath=no
12611 runpath_var=LD_RUN_PATH
12619 shlibpath_overrides_runpath=no
12620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12626 if test -d /usr/nec ;then
12627 version_type=linux # correct to gnu/linux during the next big refactor
12628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12629 soname_spec='$libname${shared_ext}.$major'
12630 shlibpath_var=LD_LIBRARY_PATH
12634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12635 version_type=freebsd-elf
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=yes
12642 hardcode_into_libs=yes
12643 if test "$with_gnu_ld" = yes; then
12644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12653 sys_lib_dlsearch_path_spec='/usr/lib'
12657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12658 version_type=linux # correct to gnu/linux during the next big refactor
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 shlibpath_overrides_runpath=no
12664 hardcode_into_libs=yes
12668 version_type=linux # correct to gnu/linux during the next big refactor
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12670 soname_spec='${libname}${release}${shared_ext}$major'
12671 shlibpath_var=LD_LIBRARY_PATH
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12679 $as_echo "$dynamic_linker" >&6; }
12680 test "$dynamic_linker" = no && can_build_shared=no
12682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12683 if test "$GCC" = yes; then
12684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12688 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12691 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12788 if test -n "$hardcode_libdir_flag_spec" ||
12789 test -n "$runpath_var" ||
12790 test "X$hardcode_automatic" = "Xyes" ; then
12792 # We can hardcode non-existent directories.
12793 if test "$hardcode_direct" != no &&
12794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12795 # have to relink, otherwise we might link with an installed library
12796 # when we should be linking with a yet-to-be-installed one
12797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12798 test "$hardcode_minus_L" != no; then
12799 # Linking always hardcodes the temporary library directory.
12800 hardcode_action=relink
12802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12803 hardcode_action=immediate
12806 # We cannot hardcode anything, or else we can only hardcode existing
12808 hardcode_action=unsupported
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12811 $as_echo "$hardcode_action" >&6; }
12813 if test "$hardcode_action" = relink ||
12814 test "$inherit_rpath" = yes; then
12815 # Fast installation is not supported
12816 enable_fast_install=no
12817 elif test "$shlibpath_overrides_runpath" = yes ||
12818 test "$enable_shared" = no; then
12819 # Fast installation is not necessary
12820 enable_fast_install=needless
12828 if test "x$enable_dlopen" != xyes; then
12829 enable_dlopen=unknown
12830 enable_dlopen_self=unknown
12831 enable_dlopen_self_static=unknown
12838 lt_cv_dlopen="load_add_on"
12840 lt_cv_dlopen_self=yes
12843 mingw* | pw32* | cegcc*)
12844 lt_cv_dlopen="LoadLibrary"
12849 lt_cv_dlopen="dlopen"
12854 # if libdl is installed we need to link against it
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12857 if ${ac_cv_lib_dl_dlopen+:} false; then :
12858 $as_echo_n "(cached) " >&6
12860 ac_check_lib_save_LIBS=$LIBS
12862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12865 /* Override any GCC internal prototype to avoid an error.
12866 Use char because int might match the return type of a GCC
12867 builtin and then its argument prototype would still apply. */
12880 if ac_fn_c_try_link "$LINENO"; then :
12881 ac_cv_lib_dl_dlopen=yes
12883 ac_cv_lib_dl_dlopen=no
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12887 LIBS=$ac_check_lib_save_LIBS
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12890 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12891 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12892 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12895 lt_cv_dlopen="dyld"
12897 lt_cv_dlopen_self=yes
12904 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12905 if test "x$ac_cv_func_shl_load" = xyes; then :
12906 lt_cv_dlopen="shl_load"
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12910 if ${ac_cv_lib_dld_shl_load+:} false; then :
12911 $as_echo_n "(cached) " >&6
12913 ac_check_lib_save_LIBS=$LIBS
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12918 /* Override any GCC internal prototype to avoid an error.
12919 Use char because int might match the return type of a GCC
12920 builtin and then its argument prototype would still apply. */
12928 return shl_load ();
12933 if ac_fn_c_try_link "$LINENO"; then :
12934 ac_cv_lib_dld_shl_load=yes
12936 ac_cv_lib_dld_shl_load=no
12938 rm -f core conftest.err conftest.$ac_objext \
12939 conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12945 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12947 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12948 if test "x$ac_cv_func_dlopen" = xyes; then :
12949 lt_cv_dlopen="dlopen"
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12953 if ${ac_cv_lib_dl_dlopen+:} false; then :
12954 $as_echo_n "(cached) " >&6
12956 ac_check_lib_save_LIBS=$LIBS
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12976 if ac_fn_c_try_link "$LINENO"; then :
12977 ac_cv_lib_dl_dlopen=yes
12979 ac_cv_lib_dl_dlopen=no
12981 rm -f core conftest.err conftest.$ac_objext \
12982 conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12988 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12992 if ${ac_cv_lib_svld_dlopen+:} false; then :
12993 $as_echo_n "(cached) " >&6
12995 ac_check_lib_save_LIBS=$LIBS
12996 LIBS="-lsvld $LIBS"
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h. */
13000 /* Override any GCC internal prototype to avoid an error.
13001 Use char because int might match the return type of a GCC
13002 builtin and then its argument prototype would still apply. */
13015 if ac_fn_c_try_link "$LINENO"; then :
13016 ac_cv_lib_svld_dlopen=yes
13018 ac_cv_lib_svld_dlopen=no
13020 rm -f core conftest.err conftest.$ac_objext \
13021 conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13031 if ${ac_cv_lib_dld_dld_link+:} false; then :
13032 $as_echo_n "(cached) " >&6
13034 ac_check_lib_save_LIBS=$LIBS
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13039 /* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13049 return dld_link ();
13054 if ac_fn_c_try_link "$LINENO"; then :
13055 ac_cv_lib_dld_dld_link=yes
13057 ac_cv_lib_dld_dld_link=no
13059 rm -f core conftest.err conftest.$ac_objext \
13060 conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13066 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13087 if test "x$lt_cv_dlopen" != xno; then
13093 case $lt_cv_dlopen in
13095 save_CPPFLAGS="$CPPFLAGS"
13096 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13098 save_LDFLAGS="$LDFLAGS"
13099 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13102 LIBS="$lt_cv_dlopen_libs $LIBS"
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13106 if ${lt_cv_dlopen_self+:} false; then :
13107 $as_echo_n "(cached) " >&6
13109 if test "$cross_compiling" = yes; then :
13110 lt_cv_dlopen_self=cross
13112 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13113 lt_status=$lt_dlunknown
13114 cat > conftest.$ac_ext <<_LT_EOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13125 # define LT_DLGLOBAL RTLD_GLOBAL
13128 # define LT_DLGLOBAL DL_GLOBAL
13130 # define LT_DLGLOBAL 0
13134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13135 find out it does not work in some platform. */
13136 #ifndef LT_DLLAZY_OR_NOW
13138 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13141 # define LT_DLLAZY_OR_NOW DL_LAZY
13144 # define LT_DLLAZY_OR_NOW RTLD_NOW
13147 # define LT_DLLAZY_OR_NOW DL_NOW
13149 # define LT_DLLAZY_OR_NOW 0
13156 /* When -fvisbility=hidden is used, assume the code has been annotated
13157 correspondingly for the symbols needed. */
13158 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13159 int fnord () __attribute__((visibility("default")));
13162 int fnord () { return 42; }
13165 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13166 int status = $lt_dlunknown;
13170 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13173 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13174 else puts (dlerror ());
13176 /* dlclose (self); */
13184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13185 (eval $ac_link) 2>&5
13187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13189 (./conftest; exit; ) >&5 2>/dev/null
13191 case x$lt_status in
13192 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197 # compilation failed
13198 lt_cv_dlopen_self=no
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13206 $as_echo "$lt_cv_dlopen_self" >&6; }
13208 if test "x$lt_cv_dlopen_self" = xyes; then
13209 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13212 if ${lt_cv_dlopen_self_static+:} false; then :
13213 $as_echo_n "(cached) " >&6
13215 if test "$cross_compiling" = yes; then :
13216 lt_cv_dlopen_self_static=cross
13218 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219 lt_status=$lt_dlunknown
13220 cat > conftest.$ac_ext <<_LT_EOF
13221 #line $LINENO "configure"
13222 #include "confdefs.h"
13231 # define LT_DLGLOBAL RTLD_GLOBAL
13234 # define LT_DLGLOBAL DL_GLOBAL
13236 # define LT_DLGLOBAL 0
13240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241 find out it does not work in some platform. */
13242 #ifndef LT_DLLAZY_OR_NOW
13244 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13247 # define LT_DLLAZY_OR_NOW DL_LAZY
13250 # define LT_DLLAZY_OR_NOW RTLD_NOW
13253 # define LT_DLLAZY_OR_NOW DL_NOW
13255 # define LT_DLLAZY_OR_NOW 0
13262 /* When -fvisbility=hidden is used, assume the code has been annotated
13263 correspondingly for the symbols needed. */
13264 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13265 int fnord () __attribute__((visibility("default")));
13268 int fnord () { return 42; }
13271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13272 int status = $lt_dlunknown;
13276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13279 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13280 else puts (dlerror ());
13282 /* dlclose (self); */
13290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13291 (eval $ac_link) 2>&5
13293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13295 (./conftest; exit; ) >&5 2>/dev/null
13297 case x$lt_status in
13298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13300 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13303 # compilation failed
13304 lt_cv_dlopen_self_static=no
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13315 CPPFLAGS="$save_CPPFLAGS"
13316 LDFLAGS="$save_LDFLAGS"
13321 case $lt_cv_dlopen_self in
13322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13323 *) enable_dlopen_self=unknown ;;
13326 case $lt_cv_dlopen_self_static in
13327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13328 *) enable_dlopen_self_static=unknown ;;
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13353 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13354 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13358 # FIXME - insert some real tests, host_os isn't really good enough
13361 if test -n "$STRIP" ; then
13362 striplib="$STRIP -x"
13363 old_striplib="$STRIP -S"
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13389 # Report which library types will actually be built
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13393 $as_echo "$can_build_shared" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13396 $as_echo_n "checking whether to build shared libraries... " >&6; }
13397 test "$can_build_shared" = "no" && enable_shared=no
13399 # On AIX, shared libraries and static libraries use the same namespace, and
13400 # are all built from PIC.
13403 test "$enable_shared" = yes && enable_static=no
13404 if test -n "$RANLIB"; then
13405 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13406 postinstall_cmds='$RANLIB $lib'
13411 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13412 test "$enable_shared" = yes && enable_static=no
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13417 $as_echo "$enable_shared" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13420 $as_echo_n "checking whether to build static libraries... " >&6; }
13421 # Make sure either enable_shared or enable_static is yes.
13422 test "$enable_shared" = yes || enable_static=yes
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13424 $as_echo "$enable_static" >&6; }
13431 ac_cpp='$CPP $CPPFLAGS'
13432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13438 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13439 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13440 (test "X$CXX" != "Xg++"))) ; then
13442 ac_cpp='$CXXCPP $CPPFLAGS'
13443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13447 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13448 if test -z "$CXXCPP"; then
13449 if ${ac_cv_prog_CXXCPP+:} false; then :
13450 $as_echo_n "(cached) " >&6
13452 # Double quotes because CXXCPP needs to be expanded
13453 for CXXCPP in "$CXX -E" "/lib/cpp"
13455 ac_preproc_ok=false
13456 for ac_cxx_preproc_warn_flag in '' yes
13458 # Use a header file that comes with gcc, so configuring glibc
13459 # with a fresh cross-compiler works.
13460 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13461 # <limits.h> exists even on freestanding compilers.
13462 # On the NeXT, cc -E runs the code through the compiler's parser,
13463 # not just through cpp. "Syntax error" is here to catch this case.
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h. */
13467 # include <limits.h>
13469 # include <assert.h>
13473 if ac_fn_cxx_try_cpp "$LINENO"; then :
13476 # Broken: fails on valid input.
13479 rm -f conftest.err conftest.i conftest.$ac_ext
13481 # OK, works on sane cases. Now check whether nonexistent headers
13482 # can be detected and how.
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 #include <ac_nonexistent.h>
13487 if ac_fn_cxx_try_cpp "$LINENO"; then :
13488 # Broken: success on invalid input.
13491 # Passes both tests.
13495 rm -f conftest.err conftest.i conftest.$ac_ext
13498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13499 rm -f conftest.i conftest.err conftest.$ac_ext
13500 if $ac_preproc_ok; then :
13505 ac_cv_prog_CXXCPP=$CXXCPP
13508 CXXCPP=$ac_cv_prog_CXXCPP
13510 ac_cv_prog_CXXCPP=$CXXCPP
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13513 $as_echo "$CXXCPP" >&6; }
13514 ac_preproc_ok=false
13515 for ac_cxx_preproc_warn_flag in '' yes
13517 # Use a header file that comes with gcc, so configuring glibc
13518 # with a fresh cross-compiler works.
13519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13520 # <limits.h> exists even on freestanding compilers.
13521 # On the NeXT, cc -E runs the code through the compiler's parser,
13522 # not just through cpp. "Syntax error" is here to catch this case.
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 # include <limits.h>
13528 # include <assert.h>
13532 if ac_fn_cxx_try_cpp "$LINENO"; then :
13535 # Broken: fails on valid input.
13538 rm -f conftest.err conftest.i conftest.$ac_ext
13540 # OK, works on sane cases. Now check whether nonexistent headers
13541 # can be detected and how.
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <ac_nonexistent.h>
13546 if ac_fn_cxx_try_cpp "$LINENO"; then :
13547 # Broken: success on invalid input.
13550 # Passes both tests.
13554 rm -f conftest.err conftest.i conftest.$ac_ext
13557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13558 rm -f conftest.i conftest.err conftest.$ac_ext
13559 if $ac_preproc_ok; then :
13562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13564 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13565 See \`config.log' for more details" "$LINENO" 5; }
13569 ac_cpp='$CPP $CPPFLAGS'
13570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13575 _lt_caught_CXX_error=yes
13579 ac_cpp='$CXXCPP $CPPFLAGS'
13580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13584 archive_cmds_need_lc_CXX=no
13585 allow_undefined_flag_CXX=
13586 always_export_symbols_CXX=no
13587 archive_expsym_cmds_CXX=
13588 compiler_needs_object_CXX=no
13589 export_dynamic_flag_spec_CXX=
13590 hardcode_direct_CXX=no
13591 hardcode_direct_absolute_CXX=no
13592 hardcode_libdir_flag_spec_CXX=
13593 hardcode_libdir_separator_CXX=
13594 hardcode_minus_L_CXX=no
13595 hardcode_shlibpath_var_CXX=unsupported
13596 hardcode_automatic_CXX=no
13597 inherit_rpath_CXX=no
13599 module_expsym_cmds_CXX=
13600 link_all_deplibs_CXX=unknown
13601 old_archive_cmds_CXX=$old_archive_cmds
13602 reload_flag_CXX=$reload_flag
13603 reload_cmds_CXX=$reload_cmds
13604 no_undefined_flag_CXX=
13605 whole_archive_flag_spec_CXX=
13606 enable_shared_with_static_runtimes_CXX=no
13608 # Source file extension for C++ test sources.
13611 # Object file extension for compiled C++ test sources.
13615 # No sense in running all these tests if we already determined that
13616 # the CXX compiler isn't working. Some variables (like enable_shared)
13617 # are currently assumed to apply to all compilers on this platform,
13618 # and will be corrupted by setting them based on a non-working compiler.
13619 if test "$_lt_caught_CXX_error" != yes; then
13620 # Code to be used in simple compile tests
13621 lt_simple_compile_test_code="int some_variable = 0;"
13623 # Code to be used in simple link tests
13624 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13626 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13633 # If no C compiler was specified, use CC.
13636 # If no C compiler flags were specified, use CFLAGS.
13637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13639 # Allow CC to be a program name with arguments.
13643 # save warnings/boilerplate of simple test code
13644 ac_outfile=conftest.$ac_objext
13645 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13646 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13647 _lt_compiler_boilerplate=`cat conftest.err`
13650 ac_outfile=conftest.$ac_objext
13651 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13652 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13653 _lt_linker_boilerplate=`cat conftest.err`
13657 # Allow CC to be a program name with arguments.
13659 lt_save_CFLAGS=$CFLAGS
13663 lt_save_with_gnu_ld=$with_gnu_ld
13664 lt_save_path_LD=$lt_cv_path_LD
13665 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13666 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13668 $as_unset lt_cv_prog_gnu_ld
13670 if test -n "${lt_cv_path_LDCXX+set}"; then
13671 lt_cv_path_LD=$lt_cv_path_LDCXX
13673 $as_unset lt_cv_path_LD
13675 test -z "${LDCXX+set}" || LD=$LDCXX
13680 for cc_temp in $compiler""; do
13682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13688 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13691 if test -n "$compiler"; then
13692 # We don't want -fno-exception when compiling C++ code, so set the
13693 # no_builtin_flag separately
13694 if test "$GXX" = yes; then
13695 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13697 lt_prog_compiler_no_builtin_flag_CXX=
13700 if test "$GXX" = yes; then
13701 # Set up default GNU C++ configuration
13705 # Check whether --with-gnu-ld was given.
13706 if test "${with_gnu_ld+set}" = set; then :
13707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13713 if test "$GCC" = yes; then
13714 # Check if gcc -print-prog-name=ld gives a path.
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13716 $as_echo_n "checking for ld used by $CC... " >&6; }
13719 # gcc leaves a trailing carriage return which upsets mingw
13720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13725 # Accept absolute paths.
13727 re_direlt='/[^/][^/]*/\.\./'
13728 # Canonicalize the pathname of ld
13729 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13730 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13731 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13733 test -z "$LD" && LD="$ac_prog"
13736 # If it fails, then pretend we aren't using GCC.
13740 # If it is relative, then search for the first ld in PATH.
13741 with_gnu_ld=unknown
13744 elif test "$with_gnu_ld" = yes; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13746 $as_echo_n "checking for GNU ld... " >&6; }
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13749 $as_echo_n "checking for non-GNU ld... " >&6; }
13751 if ${lt_cv_path_LD+:} false; then :
13752 $as_echo_n "(cached) " >&6
13754 if test -z "$LD"; then
13755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13756 for ac_dir in $PATH; do
13758 test -z "$ac_dir" && ac_dir=.
13759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13760 lt_cv_path_LD="$ac_dir/$ac_prog"
13761 # Check to see if the program is GNU ld. I'd rather use --version,
13762 # but apparently some variants of GNU ld only accept -v.
13763 # Break only if it was the GNU/non-GNU ld that we prefer.
13764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13765 *GNU* | *'with BFD'*)
13766 test "$with_gnu_ld" != no && break
13769 test "$with_gnu_ld" != yes && break
13776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13780 LD="$lt_cv_path_LD"
13781 if test -n "$LD"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13783 $as_echo "$LD" >&6; }
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786 $as_echo "no" >&6; }
13788 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13790 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13791 if ${lt_cv_prog_gnu_ld+:} false; then :
13792 $as_echo_n "(cached) " >&6
13794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13795 case `$LD -v 2>&1 </dev/null` in
13796 *GNU* | *'with BFD'*)
13797 lt_cv_prog_gnu_ld=yes
13800 lt_cv_prog_gnu_ld=no
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13805 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13806 with_gnu_ld=$lt_cv_prog_gnu_ld
13814 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13815 # archiving commands below assume that GNU ld is being used.
13816 if test "$with_gnu_ld" = yes; then
13817 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818 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'
13820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13823 # If archive_cmds runs LD, not CC, wlarc should be empty
13824 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13825 # investigate it a little bit more. (MM)
13828 # ancient GNU ld didn't support --whole-archive et. al.
13829 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13830 $GREP 'no-whole-archive' > /dev/null; then
13831 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13833 whole_archive_flag_spec_CXX=
13839 # A generic and very simple default shared library creation
13840 # command for GNU C++ for the case where it uses the native
13841 # linker, instead of GNU ld. If possible, this setting should
13842 # overridden to take advantage of the native linker features on
13843 # the platform it is being used on.
13844 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13847 # Commands to make compiler produce verbose output that lists
13848 # what "hidden" libraries, object files and flags are used when
13849 # linking a shared library.
13850 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13858 # PORTME: fill in a description of your system's C++ link characteristics
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13860 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13864 # FIXME: insert proper C++ library support
13868 if test "$host_cpu" = ia64; then
13869 # On IA64, the linker does run time linking by default, so we don't
13870 # have to do anything special.
13871 aix_use_runtimelinking=no
13872 exp_sym_flag='-Bexport'
13875 aix_use_runtimelinking=no
13877 # Test if we are trying to use run time linking or normal
13878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13879 # need to do runtime linking.
13880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13881 for ld_flag in $LDFLAGS; do
13884 aix_use_runtimelinking=yes
13892 exp_sym_flag='-bexport'
13893 no_entry_flag='-bnoentry'
13896 # When large executables or shared objects are built, AIX ld can
13897 # have problems creating the table of contents. If linking a library
13898 # or program results in "error TOC overflow" add -mminimal-toc to
13899 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13900 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13902 archive_cmds_CXX=''
13903 hardcode_direct_CXX=yes
13904 hardcode_direct_absolute_CXX=yes
13905 hardcode_libdir_separator_CXX=':'
13906 link_all_deplibs_CXX=yes
13907 file_list_spec_CXX='${wl}-f,'
13909 if test "$GXX" = yes; then
13910 case $host_os in aix4.[012]|aix4.[012].*)
13911 # We only want to do this on AIX 4.2 and lower, the check
13912 # below for broken collect2 doesn't work under 4.3+
13913 collect2name=`${CC} -print-prog-name=collect2`
13914 if test -f "$collect2name" &&
13915 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13917 # We have reworked collect2
13920 # We have old collect2
13921 hardcode_direct_CXX=unsupported
13922 # It fails to find uninstalled libraries when the uninstalled
13923 # path is not listed in the libpath. Setting hardcode_minus_L
13924 # to unsupported forces relinking
13925 hardcode_minus_L_CXX=yes
13926 hardcode_libdir_flag_spec_CXX='-L$libdir'
13927 hardcode_libdir_separator_CXX=
13930 shared_flag='-shared'
13931 if test "$aix_use_runtimelinking" = yes; then
13932 shared_flag="$shared_flag "'${wl}-G'
13936 if test "$host_cpu" = ia64; then
13937 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13938 # chokes on -Wl,-G. The following line is correct:
13941 if test "$aix_use_runtimelinking" = yes; then
13942 shared_flag='${wl}-G'
13944 shared_flag='${wl}-bM:SRE'
13949 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13950 # It seems that -bexpall does not export symbols beginning with
13951 # underscore (_), so it is better to generate a list of symbols to
13953 always_export_symbols_CXX=yes
13954 if test "$aix_use_runtimelinking" = yes; then
13955 # Warning - without using the other runtime loading flags (-brtl),
13956 # -berok will link without error, but may produce a broken library.
13957 allow_undefined_flag_CXX='-berok'
13958 # Determine the default libpath from the value encoded in an empty
13960 if test "${lt_cv_aix_libpath+set}" = set; then
13961 aix_libpath=$lt_cv_aix_libpath
13963 if ${lt_cv_aix_libpath__CXX+:} false; then :
13964 $as_echo_n "(cached) " >&6
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h. */
13977 if ac_fn_cxx_try_link "$LINENO"; then :
13979 lt_aix_libpath_sed='
13980 /Import File Strings/,/^$/ {
13982 s/^0 *\([^ ]*\) *$/\1/
13986 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13987 # Check for a 64-bit object if we didn't find anything.
13988 if test -z "$lt_cv_aix_libpath__CXX"; then
13989 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13992 rm -f core conftest.err conftest.$ac_objext \
13993 conftest$ac_exeext conftest.$ac_ext
13994 if test -z "$lt_cv_aix_libpath__CXX"; then
13995 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14000 aix_libpath=$lt_cv_aix_libpath__CXX
14003 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14005 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"
14007 if test "$host_cpu" = ia64; then
14008 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14009 allow_undefined_flag_CXX="-z nodefs"
14010 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"
14012 # Determine the default libpath from the value encoded in an
14013 # empty executable.
14014 if test "${lt_cv_aix_libpath+set}" = set; then
14015 aix_libpath=$lt_cv_aix_libpath
14017 if ${lt_cv_aix_libpath__CXX+:} false; then :
14018 $as_echo_n "(cached) " >&6
14020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14021 /* end confdefs.h. */
14031 if ac_fn_cxx_try_link "$LINENO"; then :
14033 lt_aix_libpath_sed='
14034 /Import File Strings/,/^$/ {
14036 s/^0 *\([^ ]*\) *$/\1/
14040 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14041 # Check for a 64-bit object if we didn't find anything.
14042 if test -z "$lt_cv_aix_libpath__CXX"; then
14043 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14046 rm -f core conftest.err conftest.$ac_objext \
14047 conftest$ac_exeext conftest.$ac_ext
14048 if test -z "$lt_cv_aix_libpath__CXX"; then
14049 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
14054 aix_libpath=$lt_cv_aix_libpath__CXX
14057 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14058 # Warning - without using the other run time loading flags,
14059 # -berok will link without error, but may produce a broken library.
14060 no_undefined_flag_CXX=' ${wl}-bernotok'
14061 allow_undefined_flag_CXX=' ${wl}-berok'
14062 if test "$with_gnu_ld" = yes; then
14063 # We only use this code for GNU lds that support --whole-archive.
14064 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14066 # Exported symbols can be pulled into shared objects from archives
14067 whole_archive_flag_spec_CXX='$convenience'
14069 archive_cmds_need_lc_CXX=yes
14070 # This is similar to how AIX traditionally builds its shared
14072 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'
14078 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14079 allow_undefined_flag_CXX=unsupported
14080 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14081 # support --undefined. This deserves some investigation. FIXME
14082 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14089 case $cc_basename in
14091 # FIXME: insert proper C++ library support
14097 cygwin* | mingw* | pw32* | cegcc*)
14098 case $GXX,$cc_basename in
14101 # hardcode_libdir_flag_spec is actually meaningless, as there is
14102 # no search path for DLLs.
14103 hardcode_libdir_flag_spec_CXX=' '
14104 allow_undefined_flag_CXX=unsupported
14105 always_export_symbols_CXX=yes
14106 file_list_spec_CXX='@'
14107 # Tell ltmain to make .lib files, not .a files.
14109 # Tell ltmain to make .dll files, not .so files.
14111 # FIXME: Setting linknames here is a bad hack.
14112 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14113 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14114 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14116 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14118 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14120 # The linker will not automatically build a static lib if we build a DLL.
14121 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14122 enable_shared_with_static_runtimes_CXX=yes
14124 old_postinstall_cmds_CXX='chmod 644 $oldlib'
14125 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14126 lt_tool_outputfile="@TOOL_OUTPUT@"~
14127 case $lt_outputfile in
14130 lt_outputfile="$lt_outputfile.exe"
14131 lt_tool_outputfile="$lt_tool_outputfile.exe"
14134 func_to_tool_file "$lt_outputfile"~
14135 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14136 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14137 $RM "$lt_outputfile.manifest";
14142 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14143 # as there is no search path for DLLs.
14144 hardcode_libdir_flag_spec_CXX='-L$libdir'
14145 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14146 allow_undefined_flag_CXX=unsupported
14147 always_export_symbols_CXX=no
14148 enable_shared_with_static_runtimes_CXX=yes
14150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14151 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'
14152 # If the export-symbols file already is a .def file (1st line
14153 # is EXPORTS), use it as is; otherwise, prepend...
14154 archive_expsym_cmds_CXX='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
14155 cp $export_symbols $output_objdir/$soname.def;
14157 echo EXPORTS > $output_objdir/$soname.def;
14158 cat $export_symbols >> $output_objdir/$soname.def;
14160 $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'
14167 darwin* | rhapsody*)
14170 archive_cmds_need_lc_CXX=no
14171 hardcode_direct_CXX=no
14172 hardcode_automatic_CXX=yes
14173 hardcode_shlibpath_var_CXX=unsupported
14174 if test "$lt_cv_ld_force_load" = "yes"; then
14175 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\"`'
14178 whole_archive_flag_spec_CXX=''
14180 link_all_deplibs_CXX=yes
14181 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14182 case $cc_basename in
14183 ifort*) _lt_dar_can_shared=yes ;;
14184 *) _lt_dar_can_shared=$GCC ;;
14186 if test "$_lt_dar_can_shared" = "yes"; then
14187 output_verbose_link_cmd=func_echo_all
14188 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}"
14189 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14190 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}"
14191 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}"
14192 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14193 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}"
14194 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}"
14204 case $cc_basename in
14206 # FIXME: insert proper C++ library support
14210 # Green Hills C++ Compiler
14211 # FIXME: insert proper C++ library support
14215 # FIXME: insert proper C++ library support
14222 # C++ shared libraries reported to be fairly broken before
14228 archive_cmds_need_lc_CXX=no
14231 freebsd* | dragonfly*)
14232 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14241 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242 link_all_deplibs_CXX=yes
14246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14247 hardcode_libdir_separator_CXX=:
14248 export_dynamic_flag_spec_CXX='${wl}-E'
14249 hardcode_direct_CXX=yes
14250 hardcode_minus_L_CXX=yes # Not in the search PATH,
14251 # but as the default
14252 # location of the library.
14254 case $cc_basename in
14256 # FIXME: insert proper C++ library support
14260 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'
14261 # Commands to make compiler produce verbose output that lists
14262 # what "hidden" libraries, object files and flags are used when
14263 # linking a shared library.
14265 # There doesn't appear to be a way to prevent this compiler from
14266 # explicitly linking system object files so we need to strip them
14267 # from the output so that they don't get included in the library
14269 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"'
14272 if test "$GXX" = yes; then
14273 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'
14275 # FIXME: insert proper C++ library support
14283 if test $with_gnu_ld = no; then
14284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14285 hardcode_libdir_separator_CXX=:
14291 export_dynamic_flag_spec_CXX='${wl}-E'
14297 hardcode_direct_CXX=no
14298 hardcode_shlibpath_var_CXX=no
14301 hardcode_direct_CXX=yes
14302 hardcode_direct_absolute_CXX=yes
14303 hardcode_minus_L_CXX=yes # Not in the search PATH,
14304 # but as the default
14305 # location of the library.
14309 case $cc_basename in
14311 # FIXME: insert proper C++ library support
14317 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14326 # Commands to make compiler produce verbose output that lists
14327 # what "hidden" libraries, object files and flags are used when
14328 # linking a shared library.
14330 # There doesn't appear to be a way to prevent this compiler from
14331 # explicitly linking system object files so we need to strip them
14332 # from the output so that they don't get included in the library
14334 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"'
14337 if test "$GXX" = yes; then
14338 if test $with_gnu_ld = no; then
14341 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14344 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14347 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'
14352 # FIXME: insert proper C++ library support
14360 hardcode_direct_CXX=no
14361 hardcode_shlibpath_var_CXX=no
14362 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14363 export_dynamic_flag_spec_CXX='${wl}-E'
14364 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14365 # Instead, shared libraries are loaded at an image base (0x10000000 by
14366 # default) and relocated if they conflict, which is a slow very memory
14367 # consuming and fragmenting process. To avoid this, we pick a random,
14368 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14369 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14370 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'
14371 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'
14374 case $cc_basename in
14377 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'
14379 # Archives containing C++ object files must be created using
14380 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14381 # necessary to make sure instantiated templates are included
14383 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14386 if test "$GXX" = yes; then
14387 if test "$with_gnu_ld" = no; then
14388 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'
14390 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'
14393 link_all_deplibs_CXX=yes
14396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14397 hardcode_libdir_separator_CXX=:
14398 inherit_rpath_CXX=yes
14401 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14402 case $cc_basename in
14404 # Kuck and Associates, Inc. (KAI) C++ Compiler
14406 # KCC will only create a shared library if the output file
14407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14408 # to its proper name (with version) after linking.
14409 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'
14410 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'
14411 # Commands to make compiler produce verbose output that lists
14412 # what "hidden" libraries, object files and flags are used when
14413 # linking a shared library.
14415 # There doesn't appear to be a way to prevent this compiler from
14416 # explicitly linking system object files so we need to strip them
14417 # from the output so that they don't get included in the library
14419 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"'
14421 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14424 # Archives containing C++ object files must be created using
14425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14431 # version 8.0 and above of icpc choke on multiply defined symbols
14432 # if we add $predep_objects and $postdep_objects, however 7.1 and
14433 # earlier do not add the objects themselves.
14434 case `$CC -V 2>&1` in
14436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14437 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'
14439 *) # Version 8.0 or newer
14442 ia64*) tmp_idyn=' -i_dynamic';;
14444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14445 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'
14448 archive_cmds_need_lc_CXX=no
14449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14454 # Portland Group C++ compiler
14456 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14457 prelink_cmds_CXX='tpldir=Template.dir~
14459 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14460 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14461 old_archive_cmds_CXX='tpldir=Template.dir~
14463 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14464 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14466 archive_cmds_CXX='tpldir=Template.dir~
14468 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14469 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14470 archive_expsym_cmds_CXX='tpldir=Template.dir~
14472 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14473 $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'
14475 *) # Version 6 and above use weak symbols
14476 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14477 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'
14481 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14482 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14483 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'
14487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14488 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'
14490 runpath_var=LD_RUN_PATH
14491 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14492 hardcode_libdir_separator_CXX=:
14494 # Commands to make compiler produce verbose output that lists
14495 # what "hidden" libraries, object files and flags are used when
14496 # linking a shared library.
14498 # There doesn't appear to be a way to prevent this compiler from
14499 # explicitly linking system object files so we need to strip them
14500 # from the output so that they don't get included in the library
14502 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'
14504 xl* | mpixl* | bgxl*)
14505 # IBM XL 8.0 on PPC, with GNU ld
14506 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14507 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14508 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14509 if test "x$supports_anon_versioning" = xyes; then
14510 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14511 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14512 echo "local: *; };" >> $output_objdir/$libname.ver~
14513 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14517 case `$CC -V 2>&1 | sed 5q` in
14520 no_undefined_flag_CXX=' -zdefs'
14521 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14522 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'
14523 hardcode_libdir_flag_spec_CXX='-R$libdir'
14524 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'
14525 compiler_needs_object_CXX=yes
14527 # Not sure whether something based on
14528 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14530 output_verbose_link_cmd='func_echo_all'
14532 # Archives containing C++ object files must be created using
14533 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14534 # necessary to make sure instantiated templates are included
14536 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14544 # FIXME: insert proper C++ library support
14549 # FIXME: insert proper C++ library support
14554 case $cc_basename in
14556 # FIXME: insert proper C++ library support
14560 # FIXME: insert proper C++ library support
14567 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14568 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14570 hardcode_libdir_flag_spec_CXX='-R$libdir'
14571 hardcode_direct_CXX=yes
14572 hardcode_shlibpath_var_CXX=no
14574 # Workaround some broken pre-1.5 toolchains
14575 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14583 # C++ shared libraries are fairly broken
14588 if test -f /usr/libexec/ld.so; then
14589 hardcode_direct_CXX=yes
14590 hardcode_shlibpath_var_CXX=no
14591 hardcode_direct_absolute_CXX=yes
14592 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14593 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14595 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14596 export_dynamic_flag_spec_CXX='${wl}-E'
14597 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14599 output_verbose_link_cmd=func_echo_all
14605 osf3* | osf4* | osf5*)
14606 case $cc_basename in
14608 # Kuck and Associates, Inc. (KAI) C++ Compiler
14610 # KCC will only create a shared library if the output file
14611 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14612 # to its proper name (with version) after linking.
14613 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'
14615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616 hardcode_libdir_separator_CXX=:
14618 # Archives containing C++ object files must be created using
14619 # the KAI C++ compiler.
14621 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14622 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14626 # Rational C++ 2.4.1
14627 # FIXME: insert proper C++ library support
14633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14634 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'
14635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14638 allow_undefined_flag_CXX=' -expect_unresolved \*'
14639 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'
14640 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14641 echo "-hidden">> $lib.exp~
14642 $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~
14644 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14648 hardcode_libdir_separator_CXX=:
14650 # Commands to make compiler produce verbose output that lists
14651 # what "hidden" libraries, object files and flags are used when
14652 # linking a shared library.
14654 # There doesn't appear to be a way to prevent this compiler from
14655 # explicitly linking system object files so we need to strip them
14656 # from the output so that they don't get included in the library
14658 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"'
14661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14665 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'
14668 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'
14672 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14673 hardcode_libdir_separator_CXX=:
14675 # Commands to make compiler produce verbose output that lists
14676 # what "hidden" libraries, object files and flags are used when
14677 # linking a shared library.
14678 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14681 # FIXME: insert proper C++ library support
14689 # FIXME: insert proper C++ library support
14694 case $cc_basename in
14697 # FIXME: insert proper C++ library support
14702 # FIXME: insert proper C++ library support
14706 # FIXME: insert proper C++ library support
14713 case $cc_basename in
14715 # Sun C++ 4.2, 5.x and Centerline C++
14716 archive_cmds_need_lc_CXX=yes
14717 no_undefined_flag_CXX=' -zdefs'
14718 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14719 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14720 $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'
14722 hardcode_libdir_flag_spec_CXX='-R$libdir'
14723 hardcode_shlibpath_var_CXX=no
14725 solaris2.[0-5] | solaris2.[0-5].*) ;;
14727 # The compiler driver will combine and reorder linker options,
14728 # but understands `-z linker_flag'.
14729 # Supported since Solaris 2.6 (maybe 2.5.1?)
14730 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14733 link_all_deplibs_CXX=yes
14735 output_verbose_link_cmd='func_echo_all'
14737 # Archives containing C++ object files must be created using
14738 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14739 # necessary to make sure instantiated templates are included
14741 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14744 # Green Hills C++ Compiler
14745 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14747 # The C++ compiler must be used to create the archive.
14748 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14751 # GNU C++ compiler with Solaris linker
14752 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14753 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14754 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14755 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14757 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14759 # Commands to make compiler produce verbose output that lists
14760 # what "hidden" libraries, object files and flags are used when
14761 # linking a shared library.
14762 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14764 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14766 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14767 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14768 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14770 # Commands to make compiler produce verbose output that lists
14771 # what "hidden" libraries, object files and flags are used when
14772 # linking a shared library.
14773 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14776 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14778 solaris2.[0-5] | solaris2.[0-5].*) ;;
14780 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14788 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14789 no_undefined_flag_CXX='${wl}-z,text'
14790 archive_cmds_need_lc_CXX=no
14791 hardcode_shlibpath_var_CXX=no
14792 runpath_var='LD_RUN_PATH'
14794 case $cc_basename in
14796 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14797 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14800 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14801 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 sysv5* | sco3.2v5* | sco5v6*)
14807 # Note: We can NOT use -z defs as we might desire, because we do not
14808 # link with -lc, and that would cause any symbols used from libc to
14809 # always be unresolved, which means just about no library would
14810 # ever link correctly. If we're not using GNU ld we use -z text
14811 # though, which does catch some bad symbols but isn't as heavy-handed
14813 no_undefined_flag_CXX='${wl}-z,text'
14814 allow_undefined_flag_CXX='${wl}-z,nodefs'
14815 archive_cmds_need_lc_CXX=no
14816 hardcode_shlibpath_var_CXX=no
14817 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14818 hardcode_libdir_separator_CXX=':'
14819 link_all_deplibs_CXX=yes
14820 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14821 runpath_var='LD_RUN_PATH'
14823 case $cc_basename in
14825 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14828 '"$old_archive_cmds_CXX"
14829 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14830 '"$reload_cmds_CXX"
14833 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14834 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14840 case $cc_basename in
14842 # NonStop-UX NCC 3.20
14843 # FIXME: insert proper C++ library support
14847 # FIXME: insert proper C++ library support
14854 # FIXME: insert proper C++ library support
14859 # FIXME: insert proper C++ library support
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14865 $as_echo "$ld_shlibs_CXX" >&6; }
14866 test "$ld_shlibs_CXX" = no && can_build_shared=no
14872 ## There is no encapsulation within the following macros, do not change
14873 ## the running order or otherwise move them around unless you know exactly
14874 ## what you are doing...
14875 # Dependencies to place before and after the object being linked:
14876 predep_objects_CXX=
14877 postdep_objects_CXX=
14880 compiler_lib_search_path_CXX=
14882 cat > conftest.$ac_ext <<_LT_EOF
14886 Foo (void) { a = 0; }
14893 _lt_libdeps_save_CFLAGS=$CFLAGS
14894 case "$CC $CFLAGS " in #(
14895 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14896 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14897 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14901 (eval $ac_compile) 2>&5
14903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14904 test $ac_status = 0; }; then
14905 # Parse the compiler output and extract the necessary
14906 # objects, libraries and library flags.
14908 # Sentinel used to keep track of whether or not we are before
14909 # the conftest object file.
14910 pre_test_object_deps_done=no
14912 for p in `eval "$output_verbose_link_cmd"`; do
14913 case ${prev}${p} in
14916 # Some compilers place space between "-{L,R}" and the path.
14917 # Remove the space.
14918 if test $p = "-L" ||
14919 test $p = "-R"; then
14924 # Expand the sysroot to ease extracting the directories later.
14925 if test -z "$prev"; then
14927 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14928 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14929 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14933 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14935 if test "$pre_test_object_deps_done" = no; then
14938 # Internal compiler library paths should come after those
14939 # provided the user. The postdeps already come after the
14940 # user supplied libs so there is no need to process them.
14941 if test -z "$compiler_lib_search_path_CXX"; then
14942 compiler_lib_search_path_CXX="${prev}${p}"
14944 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14947 # The "-l" case would never come before the object being
14948 # linked, so don't bother handling this case.
14951 if test -z "$postdeps_CXX"; then
14952 postdeps_CXX="${prev}${p}"
14954 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14960 *.lto.$objext) ;; # Ignore GCC LTO objects
14962 # This assumes that the test object file only shows up
14963 # once in the compiler output.
14964 if test "$p" = "conftest.$objext"; then
14965 pre_test_object_deps_done=yes
14969 if test "$pre_test_object_deps_done" = no; then
14970 if test -z "$predep_objects_CXX"; then
14971 predep_objects_CXX="$p"
14973 predep_objects_CXX="$predep_objects_CXX $p"
14976 if test -z "$postdep_objects_CXX"; then
14977 postdep_objects_CXX="$p"
14979 postdep_objects_CXX="$postdep_objects_CXX $p"
14984 *) ;; # Ignore the rest.
14992 echo "libtool.m4: error: problem compiling CXX test program"
14995 $RM -f confest.$objext
14996 CFLAGS=$_lt_libdeps_save_CFLAGS
14998 # PORTME: override above test on systems where it is broken
15001 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15002 # hack all around it, let's just trust "g++" to DTRT.
15003 predep_objects_CXX=
15004 postdep_objects_CXX=
15009 case `$CC -V 2>&1 | sed 5q` in
15013 # The more standards-conforming stlport4 library is
15014 # incompatible with the Cstd library. Avoid specifying
15015 # it if it's in CXXFLAGS. Ignore libCrun as
15016 # -library=stlport4 depends on it.
15017 case " $CXX $CXXFLAGS " in
15018 *" -library=stlport4 "*)
15019 solaris_use_stlport4=yes
15023 if test "$solaris_use_stlport4" != yes; then
15024 postdeps_CXX='-library=Cstd -library=Crun'
15031 case $cc_basename in
15033 # The more standards-conforming stlport4 library is
15034 # incompatible with the Cstd library. Avoid specifying
15035 # it if it's in CXXFLAGS. Ignore libCrun as
15036 # -library=stlport4 depends on it.
15037 case " $CXX $CXXFLAGS " in
15038 *" -library=stlport4 "*)
15039 solaris_use_stlport4=yes
15043 # Adding this requires a known-good setup of shared libraries for
15044 # Sun compiler versions before 5.6, else PIC objects from an old
15045 # archive will be linked into the output, leading to subtle bugs.
15046 if test "$solaris_use_stlport4" != yes; then
15047 postdeps_CXX='-library=Cstd -library=Crun'
15055 case " $postdeps_CXX " in
15056 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15058 compiler_lib_search_dirs_CXX=
15059 if test -n "${compiler_lib_search_path_CXX}"; then
15060 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15093 lt_prog_compiler_wl_CXX=
15094 lt_prog_compiler_pic_CXX=
15095 lt_prog_compiler_static_CXX=
15098 # C++ specific cases for pic, static, wl, etc.
15099 if test "$GXX" = yes; then
15100 lt_prog_compiler_wl_CXX='-Wl,'
15101 lt_prog_compiler_static_CXX='-static'
15105 # All AIX code is PIC.
15106 if test "$host_cpu" = ia64; then
15107 # AIX 5 now supports IA64 processor
15108 lt_prog_compiler_static_CXX='-Bstatic'
15115 # see comment about AmigaOS4 .so support
15116 lt_prog_compiler_pic_CXX='-fPIC'
15119 # FIXME: we need at least 68020 code to build shared libraries, but
15120 # adding the `-m68020' flag to GCC prevents building anything better,
15122 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15127 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15128 # PIC is the default for these OSes.
15130 mingw* | cygwin* | os2* | pw32* | cegcc*)
15131 # This hack is so that the source file can tell whether it is being
15132 # built for inclusion in a dll (and should export symbols for example).
15133 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15134 # (--disable-auto-import) libraries
15135 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15137 darwin* | rhapsody*)
15138 # PIC is the default on this platform
15139 # Common symbols not allowed in MH_DYLIB files
15140 lt_prog_compiler_pic_CXX='-fno-common'
15143 # DJGPP does not support shared libraries at all
15144 lt_prog_compiler_pic_CXX=
15147 # PIC is the default for Haiku.
15148 # The "-static" flag exists, but is broken.
15149 lt_prog_compiler_static_CXX=
15152 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15153 # Instead, we relocate shared libraries at runtime.
15156 if test -d /usr/nec; then
15157 lt_prog_compiler_pic_CXX=-Kconform_pic
15161 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15162 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15163 # sets the default TLS model and affects inlining.
15168 lt_prog_compiler_pic_CXX='-fPIC'
15173 # QNX uses GNU C++, but need to define -shared option too, otherwise
15174 # it will coredump.
15175 lt_prog_compiler_pic_CXX='-fPIC -shared'
15178 lt_prog_compiler_pic_CXX='-fPIC'
15184 # All AIX code is PIC.
15185 if test "$host_cpu" = ia64; then
15186 # AIX 5 now supports IA64 processor
15187 lt_prog_compiler_static_CXX='-Bstatic'
15189 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15193 case $cc_basename in
15195 # Green Hills C++ Compiler
15196 # _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"
15200 mingw* | cygwin* | os2* | pw32* | cegcc*)
15201 # This hack is so that the source file can tell whether it is being
15202 # built for inclusion in a dll (and should export symbols for example).
15203 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15206 case $cc_basename in
15208 lt_prog_compiler_pic_CXX='-KPIC'
15211 # Green Hills C++ Compiler
15212 lt_prog_compiler_pic_CXX='-pic'
15218 freebsd* | dragonfly*)
15219 # FreeBSD uses GNU C++
15221 hpux9* | hpux10* | hpux11*)
15222 case $cc_basename in
15224 lt_prog_compiler_wl_CXX='-Wl,'
15225 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15226 if test "$host_cpu" != ia64; then
15227 lt_prog_compiler_pic_CXX='+Z'
15231 lt_prog_compiler_wl_CXX='-Wl,'
15232 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15238 lt_prog_compiler_pic_CXX='+Z'
15247 # This is c89, which is MS Visual C++ (no shared libs)
15248 # Anyone wants to do a port?
15250 irix5* | irix6* | nonstopux*)
15251 case $cc_basename in
15253 lt_prog_compiler_wl_CXX='-Wl,'
15254 lt_prog_compiler_static_CXX='-non_shared'
15255 # CC pic flag -KPIC is the default.
15261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15262 case $cc_basename in
15265 lt_prog_compiler_wl_CXX='--backend -Wl,'
15266 lt_prog_compiler_pic_CXX='-fPIC'
15269 # old Intel C++ for x86_64 which still supported -KPIC.
15270 lt_prog_compiler_wl_CXX='-Wl,'
15271 lt_prog_compiler_pic_CXX='-KPIC'
15272 lt_prog_compiler_static_CXX='-static'
15275 # Intel C++, used to be incompatible with GCC.
15276 # ICC 10 doesn't accept -KPIC any more.
15277 lt_prog_compiler_wl_CXX='-Wl,'
15278 lt_prog_compiler_pic_CXX='-fPIC'
15279 lt_prog_compiler_static_CXX='-static'
15282 # Portland Group C++ compiler
15283 lt_prog_compiler_wl_CXX='-Wl,'
15284 lt_prog_compiler_pic_CXX='-fpic'
15285 lt_prog_compiler_static_CXX='-Bstatic'
15289 # Make sure the PIC flag is empty. It appears that all Alpha
15290 # Linux and Compaq Tru64 Unix objects are PIC.
15291 lt_prog_compiler_pic_CXX=
15292 lt_prog_compiler_static_CXX='-non_shared'
15294 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15295 # IBM XL 8.0, 9.0 on PPC and BlueGene
15296 lt_prog_compiler_wl_CXX='-Wl,'
15297 lt_prog_compiler_pic_CXX='-qpic'
15298 lt_prog_compiler_static_CXX='-qstaticlink'
15301 case `$CC -V 2>&1 | sed 5q` in
15304 lt_prog_compiler_pic_CXX='-KPIC'
15305 lt_prog_compiler_static_CXX='-Bstatic'
15306 lt_prog_compiler_wl_CXX='-Qoption ld '
15317 case $cc_basename in
15319 lt_prog_compiler_pic_CXX='-W c,exportall'
15325 netbsd* | netbsdelf*-gnu)
15328 # QNX uses GNU C++, but need to define -shared option too, otherwise
15329 # it will coredump.
15330 lt_prog_compiler_pic_CXX='-fPIC -shared'
15332 osf3* | osf4* | osf5*)
15333 case $cc_basename in
15335 lt_prog_compiler_wl_CXX='--backend -Wl,'
15338 # Rational C++ 2.4.1
15339 lt_prog_compiler_pic_CXX='-pic'
15342 # Digital/Compaq C++
15343 lt_prog_compiler_wl_CXX='-Wl,'
15344 # Make sure the PIC flag is empty. It appears that all Alpha
15345 # Linux and Compaq Tru64 Unix objects are PIC.
15346 lt_prog_compiler_pic_CXX=
15347 lt_prog_compiler_static_CXX='-non_shared'
15356 case $cc_basename in
15358 # Sun C++ 4.2, 5.x and Centerline C++
15359 lt_prog_compiler_pic_CXX='-KPIC'
15360 lt_prog_compiler_static_CXX='-Bstatic'
15361 lt_prog_compiler_wl_CXX='-Qoption ld '
15364 # Green Hills C++ Compiler
15365 lt_prog_compiler_pic_CXX='-PIC'
15372 case $cc_basename in
15375 lt_prog_compiler_pic_CXX='-pic'
15376 lt_prog_compiler_static_CXX='-Bstatic'
15380 lt_prog_compiler_pic_CXX='-pic'
15386 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15387 case $cc_basename in
15389 lt_prog_compiler_wl_CXX='-Wl,'
15390 lt_prog_compiler_pic_CXX='-KPIC'
15391 lt_prog_compiler_static_CXX='-Bstatic'
15396 case $cc_basename in
15398 # NonStop-UX NCC 3.20
15399 lt_prog_compiler_pic_CXX='-KPIC'
15408 lt_prog_compiler_can_build_shared_CXX=no
15414 # For platforms which do not support PIC, -DPIC is meaningless:
15416 lt_prog_compiler_pic_CXX=
15419 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15424 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15425 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15426 $as_echo_n "(cached) " >&6
15428 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15431 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15432 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15435 # Check to make sure the PIC flag actually works.
15437 if test -n "$lt_prog_compiler_pic_CXX"; then
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15439 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15440 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15441 $as_echo_n "(cached) " >&6
15443 lt_cv_prog_compiler_pic_works_CXX=no
15444 ac_outfile=conftest.$ac_objext
15445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15447 # Insert the option either (1) after the last *FLAGS variable, or
15448 # (2) before a word containing "conftest.", or (3) at the end.
15449 # Note that $ac_compile itself does not contain backslashes and begins
15450 # with a dollar sign (not a hyphen), so the echo should work correctly.
15451 # The option is referenced via a variable to avoid confusing sed.
15452 lt_compile=`echo "$ac_compile" | $SED \
15453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15455 -e 's:$: $lt_compiler_flag:'`
15456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15457 (eval "$lt_compile" 2>conftest.err)
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 if (exit $ac_status) && test -s "$ac_outfile"; then
15462 # The compiler can only warn and ignore the option if not recognized
15463 # So say no if there are warnings other than the usual output.
15464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15467 lt_cv_prog_compiler_pic_works_CXX=yes
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15474 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15476 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15477 case $lt_prog_compiler_pic_CXX in
15479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15482 lt_prog_compiler_pic_CXX=
15483 lt_prog_compiler_can_build_shared_CXX=no
15493 # Check to make sure the static flag actually works.
15495 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15497 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15498 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15499 $as_echo_n "(cached) " >&6
15501 lt_cv_prog_compiler_static_works_CXX=no
15502 save_LDFLAGS="$LDFLAGS"
15503 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15504 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15505 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15506 # The linker can only warn and ignore the option if not recognized
15507 # So say no if there are warnings
15508 if test -s conftest.err; then
15509 # Append any errors to the config.log.
15510 cat conftest.err 1>&5
15511 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15513 if diff conftest.exp conftest.er2 >/dev/null; then
15514 lt_cv_prog_compiler_static_works_CXX=yes
15517 lt_cv_prog_compiler_static_works_CXX=yes
15521 LDFLAGS="$save_LDFLAGS"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15525 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15527 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15530 lt_prog_compiler_static_CXX=
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15537 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15538 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15539 $as_echo_n "(cached) " >&6
15541 lt_cv_prog_compiler_c_o_CXX=no
15542 $RM -r conftest 2>/dev/null
15546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15548 lt_compiler_flag="-o out/conftest2.$ac_objext"
15549 # Insert the option either (1) after the last *FLAGS variable, or
15550 # (2) before a word containing "conftest.", or (3) at the end.
15551 # Note that $ac_compile itself does not contain backslashes and begins
15552 # with a dollar sign (not a hyphen), so the echo should work correctly.
15553 lt_compile=`echo "$ac_compile" | $SED \
15554 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15555 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15556 -e 's:$: $lt_compiler_flag:'`
15557 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15558 (eval "$lt_compile" 2>out/conftest.err)
15560 cat out/conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15564 # The compiler can only warn and ignore the option if not recognized
15565 # So say no if there are warnings
15566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15567 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15568 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15569 lt_cv_prog_compiler_c_o_CXX=yes
15574 # SGI C++ compiler will create directory out/ii_files/ for
15575 # template instantiation
15576 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15577 $RM out/* && rmdir out
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15584 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15589 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15590 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15591 $as_echo_n "(cached) " >&6
15593 lt_cv_prog_compiler_c_o_CXX=no
15594 $RM -r conftest 2>/dev/null
15598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15600 lt_compiler_flag="-o out/conftest2.$ac_objext"
15601 # Insert the option either (1) after the last *FLAGS variable, or
15602 # (2) before a word containing "conftest.", or (3) at the end.
15603 # Note that $ac_compile itself does not contain backslashes and begins
15604 # with a dollar sign (not a hyphen), so the echo should work correctly.
15605 lt_compile=`echo "$ac_compile" | $SED \
15606 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15607 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15608 -e 's:$: $lt_compiler_flag:'`
15609 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15610 (eval "$lt_compile" 2>out/conftest.err)
15612 cat out/conftest.err >&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15616 # The compiler can only warn and ignore the option if not recognized
15617 # So say no if there are warnings
15618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15619 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15620 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15621 lt_cv_prog_compiler_c_o_CXX=yes
15626 # SGI C++ compiler will create directory out/ii_files/ for
15627 # template instantiation
15628 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15629 $RM out/* && rmdir out
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15636 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15641 hard_links="nottested"
15642 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15643 # do not overwrite the value of need_locks provided by the user
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15645 $as_echo_n "checking if we can lock with hard links... " >&6; }
15648 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15650 ln conftest.a conftest.b 2>&5 || hard_links=no
15651 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15653 $as_echo "$hard_links" >&6; }
15654 if test "$hard_links" = no; then
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15656 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15666 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15668 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15669 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15672 # If we're using GNU nm, then we don't want the "-C" option.
15673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15674 # Also, AIX nm treats weak defined symbols like other global defined
15675 # symbols, whereas GNU nm marks them as "W".
15676 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15677 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'
15679 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'
15683 export_symbols_cmds_CXX="$ltdll_cmds"
15685 cygwin* | mingw* | cegcc*)
15686 case $cc_basename in
15688 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15691 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'
15692 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15696 linux* | k*bsd*-gnu | gnu*)
15697 link_all_deplibs_CXX=no
15700 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15705 $as_echo "$ld_shlibs_CXX" >&6; }
15706 test "$ld_shlibs_CXX" = no && can_build_shared=no
15708 with_gnu_ld_CXX=$with_gnu_ld
15716 # Do we need to explicitly link libc?
15718 case "x$archive_cmds_need_lc_CXX" in
15720 # Assume -lc should be added
15721 archive_cmds_need_lc_CXX=yes
15723 if test "$enable_shared" = yes && test "$GCC" = yes; then
15724 case $archive_cmds_CXX in
15726 # FIXME: we may have to deal with multi-command sequences.
15729 # Test whether the compiler implicitly links with -lc since on some
15730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15731 # to ld, don't add -lc before -lgcc.
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15734 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15735 $as_echo_n "(cached) " >&6
15738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15741 (eval $ac_compile) 2>&5
15743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15744 test $ac_status = 0; } 2>conftest.err; then
15747 libobjs=conftest.$ac_objext
15749 wl=$lt_prog_compiler_wl_CXX
15750 pic_flag=$lt_prog_compiler_pic_CXX
15756 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15757 allow_undefined_flag_CXX=
15758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15759 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762 test $ac_status = 0; }
15764 lt_cv_archive_cmds_need_lc_CXX=no
15766 lt_cv_archive_cmds_need_lc_CXX=yes
15768 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15770 cat conftest.err 1>&5
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15776 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15777 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15846 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15848 library_names_spec=
15849 libname_spec='lib$name'
15853 postuninstall_cmds=
15857 shlibpath_overrides_runpath=unknown
15859 dynamic_linker="$host_os ld.so"
15860 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15861 need_lib_prefix=unknown
15862 hardcode_into_libs=no
15864 # when you set need_version to no, make sure it does not cause -set_version
15865 # flags to be left without arguments
15866 need_version=unknown
15870 version_type=linux # correct to gnu/linux during the next big refactor
15871 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15872 shlibpath_var=LIBPATH
15874 # AIX 3 has no versioning support, so we append a major version to the name.
15875 soname_spec='${libname}${release}${shared_ext}$major'
15879 version_type=linux # correct to gnu/linux during the next big refactor
15882 hardcode_into_libs=yes
15883 if test "$host_cpu" = ia64; then
15884 # AIX 5 supports IA64
15885 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15886 shlibpath_var=LD_LIBRARY_PATH
15888 # With GCC up to 2.95.x, collect2 would create an import file
15889 # for dependence libraries. The import file would start with
15890 # the line `#! .'. This would cause the generated library to
15891 # depend on `.', always an invalid library. This was fixed in
15892 # development snapshots of GCC prior to 3.0.
15894 aix4 | aix4.[01] | aix4.[01].*)
15895 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15897 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15900 can_build_shared=no
15904 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15905 # soname into executable. Probably we can add versioning support to
15906 # collect2, so additional links can be useful in future.
15907 if test "$aix_use_runtimelinking" = yes; then
15908 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15909 # instead of lib<name>.a to let people know that these are not
15910 # typical AIX shared libraries.
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913 # We preserve .a as extension for shared libraries through AIX4.2
15914 # and later when we are not doing run time linking.
15915 library_names_spec='${libname}${release}.a $libname.a'
15916 soname_spec='${libname}${release}${shared_ext}$major'
15918 shlibpath_var=LIBPATH
15925 # Since July 2007 AmigaOS4 officially supports .so libraries.
15926 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930 library_names_spec='$libname.ixlibrary $libname.a'
15931 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15932 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'
15938 library_names_spec='${libname}${shared_ext}'
15939 dynamic_linker="$host_os ld.so"
15940 shlibpath_var=LIBRARY_PATH
15944 version_type=linux # correct to gnu/linux during the next big refactor
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15951 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15952 # the default ld.so.conf also contains /usr/contrib/lib and
15953 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15954 # libtool to hard-code these into programs
15957 cygwin* | mingw* | pw32* | cegcc*)
15958 version_type=windows
15963 case $GCC,$cc_basename in
15966 library_names_spec='$libname.dll.a'
15967 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15968 postinstall_cmds='base_file=`basename \${file}`~
15969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15970 dldir=$destdir/`dirname \$dlpath`~
15971 test -d \$dldir || mkdir -p \$dldir~
15972 $install_prog $dir/$dlname \$dldir/$dlname~
15973 chmod a+x \$dldir/$dlname~
15974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15978 dlpath=$dir/\$dldll~
15980 shlibpath_overrides_runpath=yes
15984 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15989 # MinGW DLLs use traditional 'lib' prefix
15990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15993 # pw32 DLLs use 'pw' prefix rather than 'lib'
15994 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15997 dynamic_linker='Win32 ld.exe'
16002 libname_spec='$name'
16003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004 library_names_spec='${libname}.dll.lib'
16008 sys_lib_search_path_spec=
16011 for lt_path in $LIB
16014 # Let DOS variable expansion print the short 8.3 style file name.
16015 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16016 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16019 # Convert to MSYS style.
16020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16023 # Convert to unix form, then to dos form, then back to unix form
16024 # but this time dos style (no spaces!) so that the unix form looks
16025 # like /cygdrive/c/PROGRA~1:/cygdr...
16026 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16027 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16028 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16031 sys_lib_search_path_spec="$LIB"
16032 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16033 # It is most probably a Windows format PATH.
16034 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16036 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16038 # FIXME: find the short name or the path components, as spaces are
16039 # common. (e.g. "Program Files" -> "PROGRA~1")
16043 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16044 postinstall_cmds='base_file=`basename \${file}`~
16045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16046 dldir=$destdir/`dirname \$dlpath`~
16047 test -d \$dldir || mkdir -p \$dldir~
16048 $install_prog $dir/$dlname \$dldir/$dlname'
16049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16050 dlpath=$dir/\$dldll~
16052 shlibpath_overrides_runpath=yes
16053 dynamic_linker='Win32 link.exe'
16057 # Assume MSVC wrapper
16058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16059 dynamic_linker='Win32 ld.exe'
16062 # FIXME: first we should search . and the directory the executable is in
16066 darwin* | rhapsody*)
16067 dynamic_linker="$host_os dyld"
16068 version_type=darwin
16071 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16072 soname_spec='${libname}${release}${major}$shared_ext'
16073 shlibpath_overrides_runpath=yes
16074 shlibpath_var=DYLD_LIBRARY_PATH
16075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16081 version_type=linux # correct to gnu/linux during the next big refactor
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
16089 freebsd* | dragonfly*)
16090 # DragonFly does not have aout. When/if they implement a new
16091 # versioning mechanism, adjust this.
16092 if test -x /usr/bin/objformat; then
16093 objformat=`/usr/bin/objformat`
16096 freebsd[23].*) objformat=aout ;;
16097 *) objformat=elf ;;
16100 version_type=freebsd-$objformat
16101 case $version_type in
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16112 shlibpath_var=LD_LIBRARY_PATH
16115 shlibpath_overrides_runpath=yes
16117 freebsd3.[01]* | freebsdelf3.[01]*)
16118 shlibpath_overrides_runpath=yes
16119 hardcode_into_libs=yes
16121 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16122 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16123 shlibpath_overrides_runpath=no
16124 hardcode_into_libs=yes
16126 *) # from 4.6 on, and DragonFly
16127 shlibpath_overrides_runpath=yes
16128 hardcode_into_libs=yes
16134 version_type=linux # correct to gnu/linux during the next big refactor
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16145 version_type=linux # correct to gnu/linux during the next big refactor
16148 dynamic_linker="$host_os runtime_loader"
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 shlibpath_var=LIBRARY_PATH
16152 shlibpath_overrides_runpath=yes
16153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16154 hardcode_into_libs=yes
16157 hpux9* | hpux10* | hpux11*)
16158 # Give a soname corresponding to the major version so that dld.sl refuses to
16159 # link against other versions.
16166 hardcode_into_libs=yes
16167 dynamic_linker="$host_os dld.so"
16168 shlibpath_var=LD_LIBRARY_PATH
16169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 if test "X$HPUX_IA64_MODE" = X32; then
16173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16181 hardcode_into_libs=yes
16182 dynamic_linker="$host_os dld.sl"
16183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186 soname_spec='${libname}${release}${shared_ext}$major'
16187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16192 dynamic_linker="$host_os dld.sl"
16193 shlibpath_var=SHLIB_PATH
16194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196 soname_spec='${libname}${release}${shared_ext}$major'
16199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16200 postinstall_cmds='chmod 555 $lib'
16201 # or fails outright, so override atomically:
16202 install_override_mode=555
16206 version_type=linux # correct to gnu/linux during the next big refactor
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16217 irix5* | irix6* | nonstopux*)
16219 nonstopux*) version_type=nonstopux ;;
16221 if test "$lt_cv_prog_gnu_ld" = yes; then
16222 version_type=linux # correct to gnu/linux during the next big refactor
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16232 irix5* | nonstopux*)
16233 libsuff= shlibsuff=
16236 case $LD in # libtool.m4 will add one of these switches to LD
16237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16238 libsuff= shlibsuff= libmagic=32-bit;;
16239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16240 libsuff=32 shlibsuff=N32 libmagic=N32;;
16241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16243 *) libsuff= shlibsuff= libmagic=never-match;;
16247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16248 shlibpath_overrides_runpath=no
16249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16251 hardcode_into_libs=yes
16254 # No shared lib support for Linux oldld, aout, or coff.
16255 linux*oldld* | linux*aout* | linux*coff*)
16259 # This must be glibc/ELF.
16260 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16261 version_type=linux # correct to gnu/linux during the next big refactor
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
16266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=no
16270 # Some binutils ld are patched to set DT_RUNPATH
16271 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16272 $as_echo_n "(cached) " >&6
16274 lt_cv_shlibpath_overrides_runpath=no
16275 save_LDFLAGS=$LDFLAGS
16276 save_libdir=$libdir
16277 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16278 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16290 if ac_fn_cxx_try_link "$LINENO"; then :
16291 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16292 lt_cv_shlibpath_overrides_runpath=yes
16295 rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297 LDFLAGS=$save_LDFLAGS
16298 libdir=$save_libdir
16302 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16304 # This implies no fast_install, which is unacceptable.
16305 # Some rework will be needed to allow for fast_install
16306 # before this can be enabled.
16307 hardcode_into_libs=yes
16309 # Append ld.so.conf contents to the search path
16310 if test -f /etc/ld.so.conf; then
16311 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' ' '`
16312 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16315 # We used to test for /lib/ld.so.1 and disable shared libraries on
16316 # powerpc, because MkLinux only supported shared libraries with the
16317 # GNU dynamic linker. Since this was broken with cross compilers,
16318 # most powerpc-linux boxes support dynamic linking these days and
16319 # people can always --disable-shared, the test was removed, and we
16320 # assume the GNU/Linux dynamic linker is in use.
16321 dynamic_linker='GNU/Linux ld.so'
16328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16329 soname_spec='${libname}${release}${shared_ext}$major'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 shlibpath_overrides_runpath=no
16332 hardcode_into_libs=yes
16333 dynamic_linker='NetBSD ld.elf_so'
16340 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16343 dynamic_linker='NetBSD (a.out) ld.so'
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16346 soname_spec='${libname}${release}${shared_ext}$major'
16347 dynamic_linker='NetBSD ld.elf_so'
16349 shlibpath_var=LD_LIBRARY_PATH
16350 shlibpath_overrides_runpath=yes
16351 hardcode_into_libs=yes
16355 version_type=linux # correct to gnu/linux during the next big refactor
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 shlibpath_overrides_runpath=yes
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 soname_spec='${libname}${release}${shared_ext}$major'
16367 shlibpath_var=LD_LIBRARY_PATH
16368 shlibpath_overrides_runpath=no
16369 hardcode_into_libs=yes
16370 dynamic_linker='ldqnx.so'
16375 sys_lib_dlsearch_path_spec="/usr/lib"
16377 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16379 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16380 *) need_version=no ;;
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16387 openbsd2.[89] | openbsd2.[89].*)
16388 shlibpath_overrides_runpath=no
16391 shlibpath_overrides_runpath=yes
16395 shlibpath_overrides_runpath=yes
16400 libname_spec='$name'
16403 library_names_spec='$libname${shared_ext} $libname.a'
16404 dynamic_linker='OS/2 ld.exe'
16405 shlibpath_var=LIBPATH
16408 osf3* | osf4* | osf5*)
16412 soname_spec='${libname}${release}${shared_ext}$major'
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16416 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16424 version_type=linux # correct to gnu/linux during the next big refactor
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 soname_spec='${libname}${release}${shared_ext}$major'
16429 shlibpath_var=LD_LIBRARY_PATH
16430 shlibpath_overrides_runpath=yes
16431 hardcode_into_libs=yes
16432 # ldd complains unless libraries are executable
16433 postinstall_cmds='chmod +x $lib'
16438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16439 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16440 shlibpath_var=LD_LIBRARY_PATH
16441 shlibpath_overrides_runpath=yes
16442 if test "$with_gnu_ld" = yes; then
16449 version_type=linux # correct to gnu/linux during the next big refactor
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 case $host_vendor in
16455 shlibpath_overrides_runpath=no
16457 runpath_var=LD_RUN_PATH
16465 shlibpath_overrides_runpath=no
16466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16472 if test -d /usr/nec ;then
16473 version_type=linux # correct to gnu/linux during the next big refactor
16474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16475 soname_spec='$libname${shared_ext}.$major'
16476 shlibpath_var=LD_LIBRARY_PATH
16480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16481 version_type=freebsd-elf
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 shlibpath_overrides_runpath=yes
16488 hardcode_into_libs=yes
16489 if test "$with_gnu_ld" = yes; then
16490 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16499 sys_lib_dlsearch_path_spec='/usr/lib'
16503 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16504 version_type=linux # correct to gnu/linux during the next big refactor
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=no
16510 hardcode_into_libs=yes
16514 version_type=linux # correct to gnu/linux during the next big refactor
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16525 $as_echo "$dynamic_linker" >&6; }
16526 test "$dynamic_linker" = no && can_build_shared=no
16528 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16529 if test "$GCC" = yes; then
16530 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16533 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16534 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16536 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16537 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16579 hardcode_action_CXX=
16580 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16581 test -n "$runpath_var_CXX" ||
16582 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16584 # We can hardcode non-existent directories.
16585 if test "$hardcode_direct_CXX" != no &&
16586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16587 # have to relink, otherwise we might link with an installed library
16588 # when we should be linking with a yet-to-be-installed one
16589 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16590 test "$hardcode_minus_L_CXX" != no; then
16591 # Linking always hardcodes the temporary library directory.
16592 hardcode_action_CXX=relink
16594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16595 hardcode_action_CXX=immediate
16598 # We cannot hardcode anything, or else we can only hardcode existing
16600 hardcode_action_CXX=unsupported
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16603 $as_echo "$hardcode_action_CXX" >&6; }
16605 if test "$hardcode_action_CXX" = relink ||
16606 test "$inherit_rpath_CXX" = yes; then
16607 # Fast installation is not supported
16608 enable_fast_install=no
16609 elif test "$shlibpath_overrides_runpath" = yes ||
16610 test "$enable_shared" = no; then
16611 # Fast installation is not necessary
16612 enable_fast_install=needless
16621 fi # test -n "$compiler"
16624 CFLAGS=$lt_save_CFLAGS
16628 with_gnu_ld=$lt_save_with_gnu_ld
16629 lt_cv_path_LDCXX=$lt_cv_path_LD
16630 lt_cv_path_LD=$lt_save_path_LD
16631 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16632 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16633 fi # test "$_lt_caught_CXX_error" != yes
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16655 ac_config_commands="$ac_config_commands libtool"
16660 # Only expand once:
16663 if test -n "$ac_tool_prefix"; then
16664 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16665 set dummy ${ac_tool_prefix}windres; ac_word=$2
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16667 $as_echo_n "checking for $ac_word... " >&6; }
16668 if ${ac_cv_prog_RC+:} false; then :
16669 $as_echo_n "(cached) " >&6
16671 if test -n "$RC"; then
16672 ac_cv_prog_RC="$RC" # Let the user override the test.
16674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16675 for as_dir in $PATH
16678 test -z "$as_dir" && as_dir=.
16679 for ac_exec_ext in '' $ac_executable_extensions; do
16680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16681 ac_cv_prog_RC="${ac_tool_prefix}windres"
16682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16692 if test -n "$RC"; then
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16694 $as_echo "$RC" >&6; }
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16702 if test -z "$ac_cv_prog_RC"; then
16704 # Extract the first word of "windres", so it can be a program name with args.
16705 set dummy windres; ac_word=$2
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16707 $as_echo_n "checking for $ac_word... " >&6; }
16708 if ${ac_cv_prog_ac_ct_RC+:} false; then :
16709 $as_echo_n "(cached) " >&6
16711 if test -n "$ac_ct_RC"; then
16712 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16715 for as_dir in $PATH
16718 test -z "$as_dir" && as_dir=.
16719 for ac_exec_ext in '' $ac_executable_extensions; do
16720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16721 ac_cv_prog_ac_ct_RC="windres"
16722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16731 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16732 if test -n "$ac_ct_RC"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16734 $as_echo "$ac_ct_RC" >&6; }
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16737 $as_echo "no" >&6; }
16740 if test "x$ac_ct_RC" = x; then
16743 case $cross_compiling:$ac_tool_warned in
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16747 ac_tool_warned=yes ;;
16752 RC="$ac_cv_prog_RC"
16758 # Source file extension for RC test sources.
16761 # Object file extension for compiled RC test sources.
16765 # Code to be used in simple compile tests
16766 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16768 # Code to be used in simple link tests
16769 lt_simple_link_test_code="$lt_simple_compile_test_code"
16771 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16778 # If no C compiler was specified, use CC.
16781 # If no C compiler flags were specified, use CFLAGS.
16782 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16784 # Allow CC to be a program name with arguments.
16788 # save warnings/boilerplate of simple test code
16789 ac_outfile=conftest.$ac_objext
16790 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16791 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16792 _lt_compiler_boilerplate=`cat conftest.err`
16795 ac_outfile=conftest.$ac_objext
16796 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16797 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16798 _lt_linker_boilerplate=`cat conftest.err`
16802 # Allow CC to be a program name with arguments.
16804 lt_save_CFLAGS=$CFLAGS
16811 for cc_temp in $compiler""; do
16813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16819 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16821 lt_cv_prog_compiler_c_o_RC=yes
16823 if test -n "$compiler"; then
16832 ac_cpp='$CPP $CPPFLAGS'
16833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16838 CFLAGS=$lt_save_CFLAGS
16841 # For now we hardcode the use of version scripts. It would be better
16842 # to write a test for this or even implement this within libtool.
16843 have_ld_version_script=no
16846 have_ld_version_script=yes
16849 have_ld_version_script=yes
16853 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
16858 if test "$have_ld_version_script" = "yes"; then
16859 HAVE_LD_VERSION_SCRIPT_TRUE=
16860 HAVE_LD_VERSION_SCRIPT_FALSE='#'
16862 HAVE_LD_VERSION_SCRIPT_TRUE='#'
16863 HAVE_LD_VERSION_SCRIPT_FALSE=
16871 component_system=None
16872 have_dosish_system=no
16873 have_android_system=no
16880 have_w64_system=yes
16883 have_w32ce_system=yes
16885 *-linux-androideabi)
16886 have_android_system=yes
16890 *-mingw32ce*|*-mingw32*)
16891 have_dosish_system=yes
16892 have_w32_system=yes
16893 GPG_DEFAULT='c:\\gnupg\\gpg.exe'
16894 GPGSM_DEFAULT='c:\\gnupg\\gpgsm.exe'
16895 GPGCONF_DEFAULT='c:\\gnupg\\gpgconf.exe'
16896 G13_DEFAULT='c:\\gnupg\\g13.exe'
16897 #component_system='COM+'
16899 # Check whether --enable-glibtest was given.
16900 if test "${enable_glibtest+set}" = set; then :
16901 enableval=$enable_glibtest;
16903 enable_glibtest=yes
16907 pkg_config_args=glib-2.0
16912 pkg_config_args="$pkg_config_args gmodule-2.0"
16915 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
16918 pkg_config_args="$pkg_config_args gobject-2.0"
16921 pkg_config_args="$pkg_config_args gthread-2.0"
16926 # Extract the first word of "pkg-config", so it can be a program name with args.
16927 set dummy pkg-config; ac_word=$2
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16929 $as_echo_n "checking for $ac_word... " >&6; }
16930 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16931 $as_echo_n "(cached) " >&6
16933 case $PKG_CONFIG in
16935 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16939 for as_dir in $PATH
16942 test -z "$as_dir" && as_dir=.
16943 for ac_exec_ext in '' $ac_executable_extensions; do
16944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16945 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16958 if test -n "$PKG_CONFIG"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16960 $as_echo "$PKG_CONFIG" >&6; }
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16963 $as_echo "no" >&6; }
16970 if test x$PKG_CONFIG != xno ; then
16971 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
16974 echo *** pkg-config too old; version 0.7 or better required.
16982 min_glib_version=2.0.0
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
16984 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
16986 if test x$PKG_CONFIG != xno ; then
16987 ## don't try to run the test against uninstalled libtool libs
16988 if $PKG_CONFIG --uninstalled $pkg_config_args; then
16989 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
16993 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
17000 if test x"$no_glib" = x ; then
17001 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
17002 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
17003 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
17005 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
17006 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
17007 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
17008 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
17009 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
17010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
17011 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
17012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
17013 if test "x$enable_glibtest" = "xyes" ; then
17014 ac_save_CFLAGS="$CFLAGS"
17015 ac_save_LIBS="$LIBS"
17016 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17017 LIBS="$GLIB_LIBS $LIBS"
17018 rm -f conf.glibtest
17019 if test "$cross_compiling" = yes; then :
17020 echo $ac_n "cross compiling; assumed OK... $ac_c"
17022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17023 /* end confdefs.h. */
17027 #include <stdlib.h>
17032 int major, minor, micro;
17035 system ("touch conf.glibtest");
17037 /* HP/UX 9 (%@#!) writes to sscanf strings */
17038 tmp_version = g_strdup("$min_glib_version");
17039 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
17040 printf("%s, bad version string\n", "$min_glib_version");
17044 if ((glib_major_version != $glib_config_major_version) ||
17045 (glib_minor_version != $glib_config_minor_version) ||
17046 (glib_micro_version != $glib_config_micro_version))
17048 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
17049 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
17050 glib_major_version, glib_minor_version, glib_micro_version);
17051 printf ("*** was found! If pkg-config was correct, then it is best\n");
17052 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
17053 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
17054 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
17055 printf("*** required on your system.\n");
17056 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
17057 printf("*** to point to the correct configuration files\n");
17059 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
17060 (glib_minor_version != GLIB_MINOR_VERSION) ||
17061 (glib_micro_version != GLIB_MICRO_VERSION))
17063 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
17064 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
17065 printf("*** library (version %d.%d.%d)\n",
17066 glib_major_version, glib_minor_version, glib_micro_version);
17070 if ((glib_major_version > major) ||
17071 ((glib_major_version == major) && (glib_minor_version > minor)) ||
17072 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
17078 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
17079 glib_major_version, glib_minor_version, glib_micro_version);
17080 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
17081 major, minor, micro);
17082 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
17084 printf("*** If you have already installed a sufficiently new version, this error\n");
17085 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
17086 printf("*** being found. The easiest way to fix this is to remove the old version\n");
17087 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
17088 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
17089 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
17090 printf("*** so that the correct libraries are found at run-time))\n");
17097 if ac_fn_c_try_run "$LINENO"; then :
17102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17103 conftest.$ac_objext conftest.beam conftest.$ac_ext
17106 CFLAGS="$ac_save_CFLAGS"
17107 LIBS="$ac_save_LIBS"
17110 if test "x$no_glib" = x ; then
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
17112 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17116 $as_echo "no" >&6; }
17117 if test "$PKG_CONFIG" = "no" ; then
17118 echo "*** A new enough version of pkg-config was not found."
17119 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
17121 if test -f conf.glibtest ; then
17124 echo "*** Could not run GLIB test program, checking why..."
17125 ac_save_CFLAGS="$CFLAGS"
17126 ac_save_LIBS="$LIBS"
17127 CFLAGS="$CFLAGS $GLIB_CFLAGS"
17128 LIBS="$LIBS $GLIB_LIBS"
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17138 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
17143 if ac_fn_c_try_link "$LINENO"; then :
17144 echo "*** The test program compiled, but did not run. This usually means"
17145 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
17146 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
17147 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
17148 echo "*** to the installed location Also, make sure you have run ldconfig if that"
17149 echo "*** is required on your system"
17151 echo "*** If you have an old version installed, it is best to remove it, although"
17152 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
17154 echo "*** The test program failed to compile or link. See the file config.log for the"
17155 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159 CFLAGS="$ac_save_CFLAGS"
17160 LIBS="$ac_save_LIBS"
17175 rm -f conf.glibtest
17177 # Check whether --enable-w32-glib was given.
17178 if test "${enable_w32_glib+set}" = set; then :
17179 enableval=$enable_w32_glib; build_w32_glib=$enableval
17183 # Check disabled, because the qt-dev packages in gpg4win do
17184 # not provide any support for cross compilation.
17185 # PKG_CHECK_MODULES(QT4_CORE, QtCore)
17187 # Use it like this:
17188 # ./configure --enable-w32-qt QT4_CORE_CFLAGS="..." QT4_CORE_LIBS="..."
17191 # Check whether --enable-w32-qt was given.
17192 if test "${enable_w32_qt+set}" = set; then :
17193 enableval=$enable_w32_qt; build_w32_qt=$enableval
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17199 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17200 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17201 $as_echo_n "(cached) " >&6
17203 ac_check_lib_save_LIBS=$LIBS
17204 LIBS="-lpthread $LIBS"
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17214 char pthread_create ();
17218 return pthread_create ();
17223 if ac_fn_c_try_link "$LINENO"; then :
17224 ac_cv_lib_pthread_pthread_create=yes
17226 ac_cv_lib_pthread_pthread_create=no
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17233 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17234 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17238 if test "$have_pthread" = yes; then
17240 $as_echo "#define HAVE_PTHREAD /**/" >>confdefs.h
17244 # XXX: Probably use exec-prefix here?
17245 # GPG_DEFAULT='/usr/bin/gpg'
17246 # GPGSM_DEFAULT='/usr/bin/gpgsm'
17247 # GPGCONF_DEFAULT='/usr/bin/gpgconf'
17248 # G13_DEFAULT='/usr/bin/g13'
17252 if test "$have_dosish_system" = yes; then
17254 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
17257 if test "$have_dosish_system" = yes; then
17258 HAVE_DOSISH_SYSTEM_TRUE=
17259 HAVE_DOSISH_SYSTEM_FALSE='#'
17261 HAVE_DOSISH_SYSTEM_TRUE='#'
17262 HAVE_DOSISH_SYSTEM_FALSE=
17266 if test "$have_w32_system" = yes; then
17268 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
17271 if test "$have_w32_system" = yes; then
17272 HAVE_W32_SYSTEM_TRUE=
17273 HAVE_W32_SYSTEM_FALSE='#'
17275 HAVE_W32_SYSTEM_TRUE='#'
17276 HAVE_W32_SYSTEM_FALSE=
17280 if test "$have_w64_system" = yes; then
17282 $as_echo "#define HAVE_W64_SYSTEM 1" >>confdefs.h
17285 if test "$have_w64_system" = yes; then
17286 HAVE_W64_SYSTEM_TRUE=
17287 HAVE_W64_SYSTEM_FALSE='#'
17289 HAVE_W64_SYSTEM_TRUE='#'
17290 HAVE_W64_SYSTEM_FALSE=
17294 if test "$have_w32ce_system" = yes; then
17296 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
17299 if test "$have_w32ce_system" = yes; then
17300 HAVE_W32CE_SYSTEM_TRUE=
17301 HAVE_W32CE_SYSTEM_FALSE='#'
17303 HAVE_W32CE_SYSTEM_TRUE='#'
17304 HAVE_W32CE_SYSTEM_FALSE=
17308 if test "$have_android_system" = yes; then
17310 $as_echo "#define HAVE_ANDROID_SYSTEM 1" >>confdefs.h
17313 if test "$have_android_system" = yes; then
17314 HAVE_ANDROID_SYSTEM_TRUE=
17315 HAVE_ANDROID_SYSTEM_FALSE='#'
17317 HAVE_ANDROID_SYSTEM_TRUE='#'
17318 HAVE_ANDROID_SYSTEM_FALSE=
17322 if test "$build_w32_glib" = yes; then
17323 BUILD_W32_GLIB_TRUE=
17324 BUILD_W32_GLIB_FALSE='#'
17326 BUILD_W32_GLIB_TRUE='#'
17327 BUILD_W32_GLIB_FALSE=
17330 if test "$build_w32_qt" = yes; then
17332 BUILD_W32_QT_FALSE='#'
17334 BUILD_W32_QT_TRUE='#'
17335 BUILD_W32_QT_FALSE=
17339 if test "$have_pthread" = "yes"; then
17341 HAVE_PTHREAD_FALSE='#'
17343 HAVE_PTHREAD_TRUE='#'
17344 HAVE_PTHREAD_FALSE=
17349 # Check whether --enable-fixed-path was given.
17350 if test "${enable_fixed_path+set}" = set; then :
17351 enableval=$enable_fixed_path; fixed_search_path="$enableval"
17353 fixed_search_path=""
17356 if test x$fixed_search_path != x ; then
17358 cat >>confdefs.h <<_ACEOF
17359 #define FIXED_SEARCH_PATH "$fixed_search_path"
17366 # Provide information about the build.
17368 BUILD_REVISION="37d927a"
17371 cat >>confdefs.h <<_ACEOF
17372 #define BUILD_REVISION "$BUILD_REVISION"
17376 BUILD_FILEVERSION=`echo "$PACKAGE_VERSION"|sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
17377 BUILD_FILEVERSION="${BUILD_FILEVERSION}14297"
17380 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
17383 cat >>confdefs.h <<_ACEOF
17384 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
17389 # Options to disable some regression tests
17391 run_gpgconf_test="yes"
17392 # Check whether --enable-gpgconf-test was given.
17393 if test "${enable_gpgconf_test+set}" = set; then :
17394 enableval=$enable_gpgconf_test; run_gpgconf_test=$enableval
17397 if test "$run_gpgconf_test" = "yes"; then
17398 RUN_GPGCONF_TESTS_TRUE=
17399 RUN_GPGCONF_TESTS_FALSE='#'
17401 RUN_GPGCONF_TESTS_TRUE='#'
17402 RUN_GPGCONF_TESTS_FALSE=
17407 # Check whether --enable-gpg-test was given.
17408 if test "${enable_gpg_test+set}" = set; then :
17409 enableval=$enable_gpg_test; run_gpg_test=$enableval
17412 if test "$run_gpg_test" = "yes"; then
17413 RUN_GPG_TESTS_TRUE=
17414 RUN_GPG_TESTS_FALSE='#'
17416 RUN_GPG_TESTS_TRUE='#'
17417 RUN_GPG_TESTS_FALSE=
17421 run_gpgsm_test="yes"
17422 # Check whether --enable-gpgsm-test was given.
17423 if test "${enable_gpgsm_test+set}" = set; then :
17424 enableval=$enable_gpgsm_test; run_gpgsm_test=$enableval
17427 if test "$run_gpgsm_test" = "yes"; then
17428 RUN_GPGSM_TESTS_TRUE=
17429 RUN_GPGSM_TESTS_FALSE='#'
17431 RUN_GPGSM_TESTS_TRUE='#'
17432 RUN_GPGSM_TESTS_FALSE=
17437 # Check whether --enable-g13-test was given.
17438 if test "${enable_g13_test+set}" = set; then :
17439 enableval=$enable_g13_test; run_g13_test=$enableval
17442 if test "$run_g13_test" = "yes"; then
17443 RUN_G13_TESTS_TRUE=
17444 RUN_G13_TESTS_FALSE='#'
17446 RUN_G13_TESTS_TRUE='#'
17447 RUN_G13_TESTS_FALSE=
17452 # Checks for header files.
17456 for ac_header in $ac_header_list
17458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
17461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17462 cat >>confdefs.h <<_ACEOF
17463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17491 $as_echo_n "checking for inline... " >&6; }
17492 if ${ac_cv_c_inline+:} false; then :
17493 $as_echo_n "(cached) " >&6
17496 for ac_kw in inline __inline__ __inline; do
17497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17498 /* end confdefs.h. */
17499 #ifndef __cplusplus
17501 static $ac_kw foo_t static_foo () {return 0; }
17502 $ac_kw foo_t foo () {return 0; }
17506 if ac_fn_c_try_compile "$LINENO"; then :
17507 ac_cv_c_inline=$ac_kw
17509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17510 test "$ac_cv_c_inline" != no && break
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17515 $as_echo "$ac_cv_c_inline" >&6; }
17517 case $ac_cv_c_inline in
17520 case $ac_cv_c_inline in
17522 *) ac_val=$ac_cv_c_inline;;
17524 cat >>confdefs.h <<_ACEOF
17525 #ifndef __cplusplus
17526 #define inline $ac_val
17532 # The cast to long int works around a bug in the HP C Compiler
17533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17535 # This bug is HP SR number 8606223364.
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
17537 $as_echo_n "checking size of unsigned int... " >&6; }
17538 if ${ac_cv_sizeof_unsigned_int+:} false; then :
17539 $as_echo_n "(cached) " >&6
17541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
17544 if test "$ac_cv_type_unsigned_int" = yes; then
17545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17547 as_fn_error 77 "cannot compute sizeof (unsigned int)
17548 See \`config.log' for more details" "$LINENO" 5; }
17550 ac_cv_sizeof_unsigned_int=0
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
17556 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
17560 cat >>confdefs.h <<_ACEOF
17561 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
17565 # Check whether --enable-largefile was given.
17566 if test "${enable_largefile+set}" = set; then :
17567 enableval=$enable_largefile;
17570 if test "$enable_largefile" != no; then
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17573 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17574 if ${ac_cv_sys_largefile_CC+:} false; then :
17575 $as_echo_n "(cached) " >&6
17577 ac_cv_sys_largefile_CC=no
17578 if test "$GCC" != yes; then
17581 # IRIX 6.2 and later do not support large files by default,
17582 # so use the C compiler's -n32 option if that helps.
17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17584 /* end confdefs.h. */
17585 #include <sys/types.h>
17586 /* Check that off_t can represent 2**63 - 1 correctly.
17587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17588 since some C++ compilers masquerading as C compilers
17589 incorrectly reject 9223372036854775807. */
17590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17592 && LARGE_OFF_T % 2147483647 == 1)
17602 if ac_fn_c_try_compile "$LINENO"; then :
17605 rm -f core conftest.err conftest.$ac_objext
17607 if ac_fn_c_try_compile "$LINENO"; then :
17608 ac_cv_sys_largefile_CC=' -n32'; break
17610 rm -f core conftest.err conftest.$ac_objext
17614 rm -f conftest.$ac_ext
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17618 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
17619 if test "$ac_cv_sys_largefile_CC" != no; then
17620 CC=$CC$ac_cv_sys_largefile_CC
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17624 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17625 if ${ac_cv_sys_file_offset_bits+:} false; then :
17626 $as_echo_n "(cached) " >&6
17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17630 /* end confdefs.h. */
17631 #include <sys/types.h>
17632 /* Check that off_t can represent 2**63 - 1 correctly.
17633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17634 since some C++ compilers masquerading as C compilers
17635 incorrectly reject 9223372036854775807. */
17636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17638 && LARGE_OFF_T % 2147483647 == 1)
17648 if ac_fn_c_try_compile "$LINENO"; then :
17649 ac_cv_sys_file_offset_bits=no; break
17651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654 #define _FILE_OFFSET_BITS 64
17655 #include <sys/types.h>
17656 /* Check that off_t can represent 2**63 - 1 correctly.
17657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17658 since some C++ compilers masquerading as C compilers
17659 incorrectly reject 9223372036854775807. */
17660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17662 && LARGE_OFF_T % 2147483647 == 1)
17672 if ac_fn_c_try_compile "$LINENO"; then :
17673 ac_cv_sys_file_offset_bits=64; break
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 ac_cv_sys_file_offset_bits=unknown
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17681 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17682 case $ac_cv_sys_file_offset_bits in #(
17685 cat >>confdefs.h <<_ACEOF
17686 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17691 if test $ac_cv_sys_file_offset_bits = unknown; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17693 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17694 if ${ac_cv_sys_large_files+:} false; then :
17695 $as_echo_n "(cached) " >&6
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17700 #include <sys/types.h>
17701 /* Check that off_t can represent 2**63 - 1 correctly.
17702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17703 since some C++ compilers masquerading as C compilers
17704 incorrectly reject 9223372036854775807. */
17705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17707 && LARGE_OFF_T % 2147483647 == 1)
17717 if ac_fn_c_try_compile "$LINENO"; then :
17718 ac_cv_sys_large_files=no; break
17720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722 /* end confdefs.h. */
17723 #define _LARGE_FILES 1
17724 #include <sys/types.h>
17725 /* Check that off_t can represent 2**63 - 1 correctly.
17726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17727 since some C++ compilers masquerading as C compilers
17728 incorrectly reject 9223372036854775807. */
17729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17731 && LARGE_OFF_T % 2147483647 == 1)
17741 if ac_fn_c_try_compile "$LINENO"; then :
17742 ac_cv_sys_large_files=1; break
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 ac_cv_sys_large_files=unknown
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17750 $as_echo "$ac_cv_sys_large_files" >&6; }
17751 case $ac_cv_sys_large_files in #(
17754 cat >>confdefs.h <<_ACEOF
17755 #define _LARGE_FILES $ac_cv_sys_large_files
17765 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17766 if test "x$ac_cv_type_off_t" = xyes; then :
17770 cat >>confdefs.h <<_ACEOF
17771 #define off_t long int
17777 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
17778 if test "x$ac_cv_type_uintptr_t" = xyes; then :
17780 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
17783 for ac_type in 'unsigned int' 'unsigned long int' \
17784 'unsigned long long int'; do
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17787 $ac_includes_default
17791 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17792 test_array [0] = 0;
17793 return test_array [0];
17799 if ac_fn_c_try_compile "$LINENO"; then :
17801 cat >>confdefs.h <<_ACEOF
17802 #define uintptr_t $ac_type
17807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 test -z "$ac_type" && break
17814 # A simple compile time check in gpgme.h for GNU/Linux systems that
17815 # prevents a file offset bits mismatch between gpgme and the application.
17816 NEED__FILE_OFFSET_BITS=0
17817 if test "$have_w32_system" != yes; then
17818 case "$ac_cv_sys_file_offset_bits" in
17819 "" | no | unknown) ;;
17821 NEED__FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits
17827 # Figure out platform dependent typedefs for gpgme.h
17828 if test "$have_w32_system" = yes; then
17829 INSERT__TYPEDEFS_FOR_GPGME_H="
17831 # include <stdint.h>
17832 typedef int64_t gpgme_off_t;
17833 typedef int64_t gpgme_ssize_t;
17835 typedef long gpgme_off_t;
17836 typedef long gpgme_ssize_t;
17837 #endif /* _WIN32 */"
17838 API__OFF_T="gpgme_off_t"
17839 API__SSIZE_T="gpgme_ssize_t"
17841 INSERT__TYPEDEFS_FOR_GPGME_H="
17842 #include <sys/types.h>
17843 typedef off_t gpgme_off_t;
17844 typedef ssize_t gpgme_ssize_t;"
17846 API__SSIZE_T="ssize_t"
17855 # Checks for compiler features.
17856 if test "$GCC" = yes; then
17857 CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
17858 if test "$have_w32_system" = yes; then
17859 CFLAGS="$CFLAGS -mms-bitfields"
17863 # Only used for debugging, so no serious test needed (for actual
17864 # functionality you have to test libc as well, this only tests the
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
17867 $as_echo_n "checking for __thread... " >&6; }
17868 if ${gpgme_cv_tls_works+:} false; then :
17869 $as_echo_n "(cached) " >&6
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17882 if ac_fn_c_try_compile "$LINENO"; then :
17883 gpgme_cv_tls_works=yes
17885 gpgme_cv_tls_works=no
17887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpgme_cv_tls_works" >&5
17890 $as_echo "$gpgme_cv_tls_works" >&6; }
17891 if test "$gpgme_cv_tls_works" = yes; then
17893 $as_echo "#define HAVE_TLS 1" >>confdefs.h
17898 # Checks for library functions.
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries" >&5
17900 $as_echo "$as_me: checking for libraries" >&6;}
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17903 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
17904 if ${ac_cv_sys_largefile_source+:} false; then :
17905 $as_echo_n "(cached) " >&6
17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17909 /* end confdefs.h. */
17910 #include <sys/types.h> /* for off_t */
17915 int (*fp) (FILE *, off_t, int) = fseeko;
17916 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17921 if ac_fn_c_try_link "$LINENO"; then :
17922 ac_cv_sys_largefile_source=no; break
17924 rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 #define _LARGEFILE_SOURCE 1
17929 #include <sys/types.h> /* for off_t */
17934 int (*fp) (FILE *, off_t, int) = fseeko;
17935 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17940 if ac_fn_c_try_link "$LINENO"; then :
17941 ac_cv_sys_largefile_source=1; break
17943 rm -f core conftest.err conftest.$ac_objext \
17944 conftest$ac_exeext conftest.$ac_ext
17945 ac_cv_sys_largefile_source=unknown
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
17950 $as_echo "$ac_cv_sys_largefile_source" >&6; }
17951 case $ac_cv_sys_largefile_source in #(
17954 cat >>confdefs.h <<_ACEOF
17955 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17961 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17962 # in glibc 2.1.3, but that breaks too many other things.
17963 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17964 if test $ac_cv_sys_largefile_source != unknown; then
17966 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
17971 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
17972 if test "x$ac_cv_func_vasprintf" = xyes; then :
17973 $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
17976 case " $LIBOBJS " in
17977 *" vasprintf.$ac_objext "* ) ;;
17978 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
17985 if test "$ac_cv_func_vasprintf" != yes; then
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists must be copied by value" >&5
17987 $as_echo_n "checking whether va_lists must be copied by value... " >&6; }
17988 if ${gnupg_cv_must_copy_va_byval+:} false; then :
17989 $as_echo_n "(cached) " >&6
17992 if test "$cross_compiling" = yes; then
17993 gnupg_cv_must_copy_va_byval=no
17995 gnupg_cv_must_copy_va_byval=no
17996 if test "$cross_compiling" = yes; then :
17997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17998 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17999 as_fn_error $? "cannot run test program while cross compiling
18000 See \`config.log' for more details" "$LINENO" 5; }
18002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18003 /* end confdefs.h. */
18005 #include <stdarg.h>
18006 void f (int i, ...)
18008 va_list args1, args2;
18009 va_start (args1, i);
18011 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
18024 if ac_fn_c_try_run "$LINENO"; then :
18025 gnupg_cv_must_copy_va_byval=yes
18027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18028 conftest.$ac_objext conftest.beam conftest.$ac_ext
18035 if test "$gnupg_cv_must_copy_va_byval" = yes; then
18037 $as_echo "#define MUST_COPY_VA_BYVAL 1" >>confdefs.h
18040 if test "$cross_compiling" = yes; then
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $gnupg_cv_must_copy_va_byval" >&5
18042 $as_echo "assuming $gnupg_cv_must_copy_va_byval" >&6; }
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_must_copy_va_byval" >&5
18045 $as_echo "$gnupg_cv_must_copy_va_byval" >&6; }
18050 # Try to find a thread-safe version of ttyname().
18051 ac_fn_c_check_decl "$LINENO" "ttyname_r" "ac_cv_have_decl_ttyname_r" "$ac_includes_default"
18052 if test "x$ac_cv_have_decl_ttyname_r" = xyes; then :
18058 cat >>confdefs.h <<_ACEOF
18059 #define HAVE_DECL_TTYNAME_R $ac_have_decl
18063 for ac_header in unistd.h
18065 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
18066 if test "x$ac_cv_header_unistd_h" = xyes; then :
18067 cat >>confdefs.h <<_ACEOF
18068 #define HAVE_UNISTD_H 1
18077 if test $ac_cv_have_decl_ttyname_r = no; then
18078 HAVE_DECL_TTYNAME_R=0
18081 for ac_func in ttyname_r
18083 ac_fn_c_check_func "$LINENO" "ttyname_r" "ac_cv_func_ttyname_r"
18084 if test "x$ac_cv_func_ttyname_r" = xyes; then :
18085 cat >>confdefs.h <<_ACEOF
18086 #define HAVE_TTYNAME_R 1
18092 if test $ac_cv_func_ttyname_r = no; then
18094 case " $LIBOBJS " in
18095 *" ttyname_r.$ac_objext "* ) ;;
18096 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18101 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r is compatible with its POSIX signature" >&5
18106 $as_echo_n "checking whether ttyname_r is compatible with its POSIX signature... " >&6; }
18107 if ${gnupg_cv_func_ttyname_r_posix+:} false; then :
18108 $as_echo_n "(cached) " >&6
18110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18111 /* end confdefs.h. */
18112 #include <stddef.h>
18113 #include <unistd.h>
18117 *ttyname_r (0, NULL, 0);
18123 if ac_fn_c_try_compile "$LINENO"; then :
18124 gnupg_cv_func_ttyname_r_posix=no
18126 gnupg_cv_func_ttyname_r_posix=yes
18128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_posix" >&5
18132 $as_echo "$gnupg_cv_func_ttyname_r_posix" >&6; }
18133 if test $gnupg_cv_func_ttyname_r_posix = no; then
18134 case " $LIBOBJS " in
18135 *" ttyname_r.$ac_objext "* ) ;;
18136 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18140 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18142 elif test "$have_android_system" = yes; then
18143 # Android has ttyname and ttyname_r but they are only stubs and
18144 # print an annoying warning message. Thus we need to replace
18145 # ttyname_r with our own dummy function.
18146 case " $LIBOBJS " in
18147 *" ttyname_r.$ac_objext "* ) ;;
18148 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18152 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18156 $as_echo "#define HAVE_POSIXDECL_TTYNAME_R 1" >>confdefs.h
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ttyname_r works with small buffers" >&5
18160 $as_echo_n "checking whether ttyname_r works with small buffers... " >&6; }
18161 if ${gnupg_cv_func_ttyname_r_works+:} false; then :
18162 $as_echo_n "(cached) " >&6
18166 # Guess no on Solaris.
18167 solaris*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18168 # Guess no on OSF/1.
18169 osf*) gnupg_cv_func_ttyname_r_works="guessing no" ;;
18170 # Guess yes otherwise.
18171 *) gnupg_cv_func_ttyname_r_works="guessing yes" ;;
18173 if test "$cross_compiling" = yes; then :
18176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18177 /* end confdefs.h. */
18180 #include <unistd.h>
18186 char buf[31]; /* use any size < 128 here */
18188 fd = open ("/dev/tty", O_RDONLY);
18191 else if (ttyname_r (fd, buf, sizeof (buf)) != 0)
18193 else if (ttyname_r (fd, buf, 1) == 0)
18198 if ac_fn_c_try_run "$LINENO"; then :
18199 gnupg_cv_func_ttyname_r_works=yes
18202 17 | 18) gnupg_cv_func_ttyname_r_works=no ;;
18205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18206 conftest.$ac_objext conftest.beam conftest.$ac_ext
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_func_ttyname_r_works" >&5
18212 $as_echo "$gnupg_cv_func_ttyname_r_works" >&6; }
18213 case "$gnupg_cv_func_ttyname_r_works" in
18215 *) case " $LIBOBJS " in
18216 *" ttyname_r.$ac_objext "* ) ;;
18217 *) LIBOBJS="$LIBOBJS ttyname_r.$ac_objext"
18221 $as_echo "#define REPLACE_TTYNAME_R 1" >>confdefs.h
18224 $as_echo "#define HAVE_BROKEN_TTYNAME_R 1" >>confdefs.h
18231 if test "$ac_cv_func_ttyname_r" != yes; then
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18234 *** ttyname() is not thread-safe and ttyname_r() does not exist
18236 $as_echo "$as_me: WARNING:
18238 *** ttyname() is not thread-safe and ttyname_r() does not exist
18242 # Try to find a thread-safe version of getenv().
18243 have_thread_safe_getenv=no
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18246 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18247 if ${ac_cv_gnu_library_2_1+:} false; then :
18248 $as_echo_n "(cached) " >&6
18250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h. */
18253 #include <features.h>
18254 #ifdef __GNU_LIBRARY__
18255 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18262 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18263 ac_cv_gnu_library_2_1=yes
18265 ac_cv_gnu_library_2_1=no
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18273 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18275 GLIBC21="$ac_cv_gnu_library_2_1"
18278 if test $GLIBC21 = yes; then
18279 have_thread_safe_getenv=yes
18281 if test $have_thread_safe_getenv = yes; then
18283 $as_echo "#define HAVE_THREAD_SAFE_GETENV 1" >>confdefs.h
18287 for ac_func in getenv_r
18289 ac_fn_c_check_func "$LINENO" "getenv_r" "ac_cv_func_getenv_r"
18290 if test "x$ac_cv_func_getenv_r" = xyes; then :
18291 cat >>confdefs.h <<_ACEOF
18292 #define HAVE_GETENV_R 1
18298 if test $have_getenv_r = no && test $have_thread_safe_getenv = no; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18301 *** getenv() is not thread-safe and getenv_r() does not exist
18303 $as_echo "$as_me: WARNING:
18305 *** getenv() is not thread-safe and getenv_r() does not exist
18309 # For converting time strings to seconds since Epoch, we need the timegm
18311 for ac_func in timegm
18313 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
18314 if test "x$ac_cv_func_timegm" = xyes; then :
18315 cat >>confdefs.h <<_ACEOF
18316 #define HAVE_TIMEGM 1
18322 if test "$ac_cv_func_timegm" != yes; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18325 *** timegm() not available - a non-thread-safe kludge will be used
18326 *** and the TZ variable might be changed at runtime.
18328 $as_echo "$as_me: WARNING:
18330 *** timegm() not available - a non-thread-safe kludge will be used
18331 *** and the TZ variable might be changed at runtime.
18335 for ac_func in setlocale
18337 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
18338 if test "x$ac_cv_func_setlocale" = xyes; then :
18339 cat >>confdefs.h <<_ACEOF
18340 #define HAVE_SETLOCALE 1
18347 # Checking for libgpg-error.
18350 gpg_error_config_prefix=""
18352 # Check whether --with-libgpg-error-prefix was given.
18353 if test "${with_libgpg_error_prefix+set}" = set; then :
18354 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
18359 # Check whether --with-gpg-error-prefix was given.
18360 if test "${with_gpg_error_prefix+set}" = set; then :
18361 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
18365 if test x"${GPG_ERROR_CONFIG}" = x ; then
18366 if test x"${gpg_error_config_prefix}" != x ; then
18367 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
18369 case "${SYSROOT}" in
18371 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
18372 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
18379 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
18385 # Extract the first word of "gpg-error-config", so it can be a program name with args.
18386 set dummy gpg-error-config; ac_word=$2
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18388 $as_echo_n "checking for $ac_word... " >&6; }
18389 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
18390 $as_echo_n "(cached) " >&6
18392 case $GPG_ERROR_CONFIG in
18394 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
18397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18401 test -z "$as_dir" && as_dir=.
18402 for ac_exec_ext in '' $ac_executable_extensions; do
18403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18404 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18412 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
18416 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
18417 if test -n "$GPG_ERROR_CONFIG"; then
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
18419 $as_echo "$GPG_ERROR_CONFIG" >&6; }
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422 $as_echo "no" >&6; }
18426 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
18428 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
18430 if test "$GPG_ERROR_CONFIG" != "no" \
18431 && test -f "$GPG_ERROR_CONFIG" ; then
18432 req_major=`echo $min_gpg_error_version | \
18433 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
18434 req_minor=`echo $min_gpg_error_version | \
18435 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
18436 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
18437 major=`echo $gpg_error_config_version | \
18438 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
18439 minor=`echo $gpg_error_config_version | \
18440 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
18441 if test "$major" -gt "$req_major"; then
18444 if test "$major" -eq "$req_major"; then
18445 if test "$minor" -ge "$req_minor"; then
18451 if test $ok = yes; then
18452 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
18453 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
18454 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
18455 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
18457 $as_echo "yes ($gpg_error_config_version)" >&6; }
18459 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
18460 if test x"$gpg_error_config_host" != xnone ; then
18461 if test x"$gpg_error_config_host" != x"$host" ; then
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18464 *** The config script $GPG_ERROR_CONFIG was
18465 *** built for $gpg_error_config_host and thus may not match the
18466 *** used host $host.
18467 *** You may want to use the configure option --with-gpg-error-prefix
18468 *** to specify a matching config script or use \$SYSROOT.
18470 $as_echo "$as_me: WARNING:
18472 *** The config script $GPG_ERROR_CONFIG was
18473 *** built for $gpg_error_config_host and thus may not match the
18474 *** used host $host.
18475 *** You may want to use the configure option --with-gpg-error-prefix
18476 *** to specify a matching config script or use \$SYSROOT.
18478 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
18482 GPG_ERROR_CFLAGS=""
18484 GPG_ERROR_MT_CFLAGS=""
18485 GPG_ERROR_MT_LIBS=""
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18487 $as_echo "no" >&6; }
18496 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GPGME" >>confdefs.h
18499 # And for libassuan.
18503 # Check whether --with-libassuan-prefix was given.
18504 if test "${with_libassuan_prefix+set}" = set; then :
18505 withval=$with_libassuan_prefix; libassuan_config_prefix="$withval"
18507 libassuan_config_prefix=""
18510 if test x$libassuan_config_prefix != x ; then
18511 libassuan_config_args="$libassuan_config_args --prefix=$libassuan_config_prefix"
18512 if test x${LIBASSUAN_CONFIG+set} != xset ; then
18513 LIBASSUAN_CONFIG=$libassuan_config_prefix/bin/libassuan-config
18517 if test -n "$ac_tool_prefix"; then
18518 # Extract the first word of "${ac_tool_prefix}libassuan-config", so it can be a program name with args.
18519 set dummy ${ac_tool_prefix}libassuan-config; ac_word=$2
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18521 $as_echo_n "checking for $ac_word... " >&6; }
18522 if ${ac_cv_path_LIBASSUAN_CONFIG+:} false; then :
18523 $as_echo_n "(cached) " >&6
18525 case $LIBASSUAN_CONFIG in
18527 ac_cv_path_LIBASSUAN_CONFIG="$LIBASSUAN_CONFIG" # Let the user override the test with a path.
18530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18531 for as_dir in $PATH
18534 test -z "$as_dir" && as_dir=.
18535 for ac_exec_ext in '' $ac_executable_extensions; do
18536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18537 ac_cv_path_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18548 LIBASSUAN_CONFIG=$ac_cv_path_LIBASSUAN_CONFIG
18549 if test -n "$LIBASSUAN_CONFIG"; then
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBASSUAN_CONFIG" >&5
18551 $as_echo "$LIBASSUAN_CONFIG" >&6; }
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18559 if test -z "$ac_cv_path_LIBASSUAN_CONFIG"; then
18560 ac_pt_LIBASSUAN_CONFIG=$LIBASSUAN_CONFIG
18561 # Extract the first word of "libassuan-config", so it can be a program name with args.
18562 set dummy libassuan-config; ac_word=$2
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18564 $as_echo_n "checking for $ac_word... " >&6; }
18565 if ${ac_cv_path_ac_pt_LIBASSUAN_CONFIG+:} false; then :
18566 $as_echo_n "(cached) " >&6
18568 case $ac_pt_LIBASSUAN_CONFIG in
18570 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$ac_pt_LIBASSUAN_CONFIG" # Let the user override the test with a path.
18573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18574 for as_dir in $PATH
18577 test -z "$as_dir" && as_dir=.
18578 for ac_exec_ext in '' $ac_executable_extensions; do
18579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18580 ac_cv_path_ac_pt_LIBASSUAN_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18591 ac_pt_LIBASSUAN_CONFIG=$ac_cv_path_ac_pt_LIBASSUAN_CONFIG
18592 if test -n "$ac_pt_LIBASSUAN_CONFIG"; then
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBASSUAN_CONFIG" >&5
18594 $as_echo "$ac_pt_LIBASSUAN_CONFIG" >&6; }
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597 $as_echo "no" >&6; }
18600 if test "x$ac_pt_LIBASSUAN_CONFIG" = x; then
18601 LIBASSUAN_CONFIG="no"
18603 case $cross_compiling:$ac_tool_warned in
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18607 ac_tool_warned=yes ;;
18609 LIBASSUAN_CONFIG=$ac_pt_LIBASSUAN_CONFIG
18612 LIBASSUAN_CONFIG="$ac_cv_path_LIBASSUAN_CONFIG"
18616 tmp="$NEED_LIBASSUAN_API:$NEED_LIBASSUAN_VERSION"
18617 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
18618 req_libassuan_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
18619 min_libassuan_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
18621 req_libassuan_api=0
18622 min_libassuan_version="$tmp"
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBASSUAN - version >= $min_libassuan_version" >&5
18626 $as_echo_n "checking for LIBASSUAN - version >= $min_libassuan_version... " >&6; }
18628 if test "$LIBASSUAN_CONFIG" != "no" \
18629 && test -f "$LIBASSUAN_CONFIG" ; then
18630 req_major=`echo $min_libassuan_version | \
18631 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
18632 req_minor=`echo $min_libassuan_version | \
18633 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
18634 req_micro=`echo $min_libassuan_version | \
18635 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
18637 libassuan_config_version=`$LIBASSUAN_CONFIG --version`
18638 major=`echo $libassuan_config_version | \
18639 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
18640 minor=`echo $libassuan_config_version | \
18641 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
18642 micro=`echo $libassuan_config_version | \
18643 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
18645 if test "$major" -gt "$req_major"; then
18648 if test "$major" -eq "$req_major"; then
18649 if test "$minor" -gt "$req_minor"; then
18652 if test "$minor" -eq "$req_minor"; then
18653 if test "$micro" -ge "$req_micro"; then
18662 if test $ok = yes; then
18663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libassuan_config_version)" >&5
18664 $as_echo "yes ($libassuan_config_version)" >&6; }
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18667 $as_echo "no" >&6; }
18670 if test $ok = yes; then
18671 if test "$req_libassuan_api" -gt 0 ; then
18672 tmp=`$LIBASSUAN_CONFIG --api-version 2>/dev/null || echo 0`
18673 if test "$tmp" -gt 0 ; then
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBASSUAN API version" >&5
18675 $as_echo_n "checking LIBASSUAN API version... " >&6; }
18676 if test "$req_libassuan_api" -eq "$tmp" ; then
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
18678 $as_echo "okay" >&6; }
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libassuan_api got=$tmp." >&5
18682 $as_echo "does not match. want=$req_libassuan_api got=$tmp." >&6; }
18688 if test $ok = yes; then
18689 if test x"$host" != x ; then
18690 libassuan_config_host=`$LIBASSUAN_CONFIG --host 2>/dev/null || echo none`
18691 if test x"$libassuan_config_host" != xnone ; then
18692 if test x"$libassuan_config_host" != x"$host" ; then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18695 *** The config script $LIBASSUAN_CONFIG was
18696 *** built for $libassuan_config_host and thus may not match the
18697 *** used host $host.
18698 *** You may want to use the configure option --with-libassuan-prefix
18699 *** to specify a matching config script.
18701 $as_echo "$as_me: WARNING:
18703 *** The config script $LIBASSUAN_CONFIG was
18704 *** built for $libassuan_config_host and thus may not match the
18705 *** used host $host.
18706 *** You may want to use the configure option --with-libassuan-prefix
18707 *** to specify a matching config script.
18714 if test $ok = yes; then
18715 LIBASSUAN_CFLAGS=`$LIBASSUAN_CONFIG $libassuan_config_args --cflags`
18716 LIBASSUAN_LIBS=`$LIBASSUAN_CONFIG $libassuan_config_args --libs`
18719 LIBASSUAN_CFLAGS=""
18726 if test "$have_libassuan" = "yes"; then
18728 cat >>confdefs.h <<_ACEOF
18729 #define GPGME_LIBASSUAN_VERSION "$libassuan_version"
18739 # Check for funopen
18740 for ac_func in funopen
18742 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18743 if test "x$ac_cv_func_funopen" = xyes; then :
18744 cat >>confdefs.h <<_ACEOF
18745 #define HAVE_FUNOPEN 1
18751 if test $ac_cv_func_funopen != yes; then
18752 # No funopen but we can implement that in terms of fopencookie.
18753 for ac_func in fopencookie
18755 ac_fn_c_check_func "$LINENO" "fopencookie" "ac_cv_func_fopencookie"
18756 if test "x$ac_cv_func_fopencookie" = xyes; then :
18757 cat >>confdefs.h <<_ACEOF
18758 #define HAVE_FOPENCOOKIE 1
18764 if test $ac_cv_func_fopencookie = yes; then
18765 ac_fn_c_check_func "$LINENO" "funopen" "ac_cv_func_funopen"
18766 if test "x$ac_cv_func_funopen" = xyes; then :
18767 $as_echo "#define HAVE_FUNOPEN 1" >>confdefs.h
18770 case " $LIBOBJS " in
18771 *" funopen.$ac_objext "* ) ;;
18772 *) LIBOBJS="$LIBOBJS funopen.$ac_objext"
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18782 *** No implementation of fopencookie or funopen available
18784 $as_echo "$as_me: WARNING:
18786 *** No implementation of fopencookie or funopen available
18791 # Check for getgid etc
18792 for ac_func in getgid getegid
18794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18795 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18796 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18797 cat >>confdefs.h <<_ACEOF
18798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18806 # Replacement functions.
18807 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
18808 if test "x$ac_cv_func_stpcpy" = xyes; then :
18809 $as_echo "#define HAVE_STPCPY 1" >>confdefs.h
18812 case " $LIBOBJS " in
18813 *" stpcpy.$ac_objext "* ) ;;
18814 *) LIBOBJS="$LIBOBJS stpcpy.$ac_objext"
18821 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
18822 if test "x$ac_cv_func_setenv" = xyes; then :
18823 $as_echo "#define HAVE_SETENV 1" >>confdefs.h
18826 case " $LIBOBJS " in
18827 *" setenv.$ac_objext "* ) ;;
18828 *) LIBOBJS="$LIBOBJS setenv.$ac_objext"
18836 # Assuan check for descriptor passing.
18837 ac_fn_c_check_member "$LINENO" "struct cmsghdr" "cmsg_len" "ac_cv_member_struct_cmsghdr_cmsg_len" "
18838 #include <stdlib.h>
18839 #include <stddef.h>
18841 #include <sys/types.h>
18842 #include <sys/socket.h>
18843 #include <sys/un.h>
18845 #include <sys/uio.h>
18847 #include <unistd.h>
18850 if test "x$ac_cv_member_struct_cmsghdr_cmsg_len" = xyes; then :
18851 supports_descriptor_passing=yes
18853 supports_descriptor_passing=no
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
18856 *** Data structure for sending ancillary data missing.
18857 *** Descriptor passing won't work.
18859 $as_echo "$as_me: WARNING:
18861 *** Data structure for sending ancillary data missing.
18862 *** Descriptor passing won't work.
18870 use_descriptor_passing=no
18873 use_descriptor_passing=yes
18876 # Check whether --enable-fd-passing was given.
18877 if test "${enable_fd_passing+set}" = set; then :
18878 enableval=$enable_fd_passing; use_descriptor_passing=$enableval
18882 if test "$supports_descriptor_passing" != "yes"; then
18883 use_descriptor_passing=no
18886 if test "$use_descriptor_passing" = "yes"; then
18888 $as_echo "#define USE_DESCRIPTOR_PASSING 1" >>confdefs.h
18892 if test "$use_descriptor_passing" = "yes"; then
18893 USE_DESCRIPTOR_PASSING_TRUE=
18894 USE_DESCRIPTOR_PASSING_FALSE='#'
18896 USE_DESCRIPTOR_PASSING_TRUE='#'
18897 USE_DESCRIPTOR_PASSING_FALSE=
18903 if test "$use_descriptor_passing" = "yes" && test "$have_libassuan" = "yes"; then
18906 if test "$uiserver" != "no"; then
18908 $as_echo "#define ENABLE_UISERVER 1" >>confdefs.h
18911 if test "$uiserver" != "no"; then
18912 HAVE_UISERVER_TRUE=
18913 HAVE_UISERVER_FALSE='#'
18915 HAVE_UISERVER_TRUE='#'
18916 HAVE_UISERVER_FALSE=
18921 # Add a few constants to help porting to W32
18927 # Substitution used for gpgme-config
18928 GPGME_CONFIG_LIBS="-lgpgme"
18929 GPGME_CONFIG_CFLAGS=""
18930 GPGME_CONFIG_HOST="$host"
18936 # Frob'da Variables
18937 LTLIBOBJS=`echo "$LIBOBJS" |
18938 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
18941 # Some checks for gpgme-tool
18942 # Done at top: AC_CHECK_HEADER([argp.h])
18943 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#include <errno.h>
18945 if test "x$ac_cv_type_error_t" = xyes; then :
18947 cat >>confdefs.h <<_ACEOF
18948 #define HAVE_ERROR_T 1
18954 $as_echo "#define error_t int" >>confdefs.h
18960 # A substitution to set generated files in a Emacs buffer to read-only.
18961 emacs_local_vars_begin='Local Variables:'
18963 emacs_local_vars_read_only='buffer-read-only: t'
18965 emacs_local_vars_end='End:'
18971 if test "$have_gpg_error" = "no"; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}:
18975 *** You need libgpg-error to build this program.
18976 ** This library is for example available at
18977 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
18978 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
18982 *** You need libgpg-error to build this program.
18983 ** This library is for example available at
18984 *** ftp://ftp.gnupg.org/gcrypt/libgpg-error
18985 *** (at least version $NEED_GPG_ERROR_VERSION is required.)
18988 if test "$have_libassuan" = "no"; then
18990 { $as_echo "$as_me:${as_lineno-$LINENO}:
18992 *** You need libassuan to build this program.
18993 *** This library is for example available at
18994 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
18995 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
18999 *** You need libassuan to build this program.
19000 *** This library is for example available at
19001 *** ftp://ftp.gnupg.org/gcrypt/libassuan/
19002 *** (at least version $NEED_LIBASSUAN_VERSION (API $NEED_LIBASSUAN_API) is required).
19006 if test "$die" = "yes"; then
19009 *** Required libraries not found. Please consult the above messages
19010 *** and install them before running configure again.
19016 # Create config files
19018 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/gpg/Makefile tests/gpgsm/Makefile tests/opassuan/Makefile doc/Makefile src/versioninfo.rc src/gpgme.h"
19020 ac_config_files="$ac_config_files src/gpgme-config"
19022 ac_config_files="$ac_config_files lang/Makefile lang/cl/Makefile lang/cl/gpgme.asd"
19024 cat >confcache <<\_ACEOF
19025 # This file is a shell script that caches the results of configure
19026 # tests run on this system so they can be shared between configure
19027 # scripts and configure runs, see configure's option --config-cache.
19028 # It is not useful on other systems. If it contains results you don't
19029 # want to keep, you may remove or edit it.
19031 # config.status only pays attention to the cache file if you give it
19032 # the --recheck option to rerun configure.
19034 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19035 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19036 # following values.
19040 # The following way of writing the cache mishandles newlines in values,
19041 # but we know of no workaround that is simple, portable, and efficient.
19042 # So, we kill variables containing newlines.
19043 # Ultrix sh set writes to stderr and can't be redirected directly,
19044 # and sets the high bit in the cache file unless we assign to the vars.
19046 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19047 eval ac_val=\$$ac_var
19051 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19052 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19055 _ | IFS | as_nl) ;; #(
19056 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19057 *) { eval $ac_var=; unset $ac_var;} ;;
19063 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19064 *${as_nl}ac_space=\ *)
19065 # `set' does not quote correctly, so add quotes: double-quote
19066 # substitution turns \\\\ into \\, and sed turns \\ into \.
19069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19072 # `set' quotes correctly as required by POSIX, so do not add quotes.
19073 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19082 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19084 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19086 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19087 if test -w "$cache_file"; then
19088 if test "x$cache_file" != "x/dev/null"; then
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19090 $as_echo "$as_me: updating cache $cache_file" >&6;}
19091 if test ! -f "$cache_file" || test -h "$cache_file"; then
19092 cat confcache >"$cache_file"
19094 case $cache_file in #(
19096 mv -f confcache "$cache_file"$$ &&
19097 mv -f "$cache_file"$$ "$cache_file" ;; #(
19099 mv -f confcache "$cache_file" ;;
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19105 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19110 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19111 # Let make expand exec_prefix.
19112 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19114 DEFS=-DHAVE_CONFIG_H
19119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19120 # 1. Remove the extension, and $U if already installed.
19121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19122 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19124 # will be set to the directory where LIBOBJS objects are built.
19125 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19126 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19128 LIBOBJS=$ac_libobjs
19130 LTLIBOBJS=$ac_ltlibobjs
19133 if test -n "$EXEEXT"; then
19135 am__EXEEXT_FALSE='#'
19137 am__EXEEXT_TRUE='#'
19141 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19142 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19145 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19146 as_fn_error $? "conditional \"AMDEP\" was never defined.
19147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19149 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19150 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19153 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19154 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19157 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19158 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19161 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19162 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19165 if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
19166 as_fn_error $? "conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
19167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19169 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19170 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19173 if test -z "${HAVE_W64_SYSTEM_TRUE}" && test -z "${HAVE_W64_SYSTEM_FALSE}"; then
19174 as_fn_error $? "conditional \"HAVE_W64_SYSTEM\" was never defined.
19175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19177 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19178 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19181 if test -z "${HAVE_ANDROID_SYSTEM_TRUE}" && test -z "${HAVE_ANDROID_SYSTEM_FALSE}"; then
19182 as_fn_error $? "conditional \"HAVE_ANDROID_SYSTEM\" was never defined.
19183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19185 if test -z "${BUILD_W32_GLIB_TRUE}" && test -z "${BUILD_W32_GLIB_FALSE}"; then
19186 as_fn_error $? "conditional \"BUILD_W32_GLIB\" was never defined.
19187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19189 if test -z "${BUILD_W32_QT_TRUE}" && test -z "${BUILD_W32_QT_FALSE}"; then
19190 as_fn_error $? "conditional \"BUILD_W32_QT\" was never defined.
19191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19193 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
19194 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
19195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19197 if test -z "${RUN_GPGCONF_TESTS_TRUE}" && test -z "${RUN_GPGCONF_TESTS_FALSE}"; then
19198 as_fn_error $? "conditional \"RUN_GPGCONF_TESTS\" was never defined.
19199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19201 if test -z "${RUN_GPG_TESTS_TRUE}" && test -z "${RUN_GPG_TESTS_FALSE}"; then
19202 as_fn_error $? "conditional \"RUN_GPG_TESTS\" was never defined.
19203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19205 if test -z "${RUN_GPGSM_TESTS_TRUE}" && test -z "${RUN_GPGSM_TESTS_FALSE}"; then
19206 as_fn_error $? "conditional \"RUN_GPGSM_TESTS\" was never defined.
19207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19209 if test -z "${RUN_G13_TESTS_TRUE}" && test -z "${RUN_G13_TESTS_FALSE}"; then
19210 as_fn_error $? "conditional \"RUN_G13_TESTS\" was never defined.
19211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19213 if test -z "${USE_DESCRIPTOR_PASSING_TRUE}" && test -z "${USE_DESCRIPTOR_PASSING_FALSE}"; then
19214 as_fn_error $? "conditional \"USE_DESCRIPTOR_PASSING\" was never defined.
19215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19217 if test -z "${HAVE_UISERVER_TRUE}" && test -z "${HAVE_UISERVER_FALSE}"; then
19218 as_fn_error $? "conditional \"HAVE_UISERVER\" was never defined.
19219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19222 : "${CONFIG_STATUS=./config.status}"
19224 ac_clean_files_save=$ac_clean_files
19225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19231 # Generated by $as_me.
19232 # Run this file to recreate the current configuration.
19233 # Compiler output produced by configure, useful for debugging
19234 # configure, is in config.log if it exists.
19237 ac_cs_recheck=false
19240 SHELL=\${CONFIG_SHELL-$SHELL}
19243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19244 ## -------------------- ##
19245 ## M4sh Initialization. ##
19246 ## -------------------- ##
19248 # Be more Bourne compatible
19249 DUALCASE=1; export DUALCASE # for MKS sh
19250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19254 # is contrary to our usage. Disable this feature.
19255 alias -g '${1+"$@"}'='"$@"'
19256 setopt NO_GLOB_SUBST
19258 case `(set -o) 2>/dev/null` in #(
19270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19274 # Prefer a ksh shell builtin over an external printf program on Solaris,
19275 # but without wasting forks for bash or zsh.
19276 if test -z "$BASH_VERSION$ZSH_VERSION" \
19277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19278 as_echo='print -r --'
19279 as_echo_n='print -rn --'
19280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19281 as_echo='printf %s\n'
19282 as_echo_n='printf %s'
19284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19285 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19286 as_echo_n='/usr/ucb/echo -n'
19288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19289 as_echo_n_body='eval
19293 expr "X$arg" : "X\\(.*\\)$as_nl";
19294 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19296 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19298 export as_echo_n_body
19299 as_echo_n='sh -c $as_echo_n_body as_echo'
19301 export as_echo_body
19302 as_echo='sh -c $as_echo_body as_echo'
19305 # The user is always right.
19306 if test "${PATH_SEPARATOR+set}" != set; then
19308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19309 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19316 # We need space, tab and new line, in precisely that order. Quoting is
19317 # there to prevent editors from complaining about space-tab.
19318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19319 # splitting by setting IFS to empty value.)
19322 # Find who we are. Look in the path if we contain no directory separator.
19325 *[\\/]* ) as_myself=$0 ;;
19326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19327 for as_dir in $PATH
19330 test -z "$as_dir" && as_dir=.
19331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19337 # We did not find ourselves, most probably we were run as `sh COMMAND'
19338 # in which case we are not to be found in the path.
19339 if test "x$as_myself" = x; then
19342 if test ! -f "$as_myself"; then
19343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19347 # Unset variables that we do not need and which cause bugs (e.g. in
19348 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19349 # suppresses any "Segmentation fault" message there. '((' could
19350 # trigger a bug in pdksh 5.2.14.
19351 for as_var in BASH_ENV ENV MAIL MAILPATH
19352 do eval test x\${$as_var+set} = xset \
19353 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19366 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19370 # ----------------------------------------
19371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19373 # script with STATUS, using 1 if that was 0.
19376 as_status=$1; test $as_status -eq 0 && as_status=1
19378 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19381 $as_echo "$as_me: error: $2" >&2
19382 as_fn_exit $as_status
19386 # as_fn_set_status STATUS
19387 # -----------------------
19388 # Set $? to STATUS, without forking.
19389 as_fn_set_status ()
19392 } # as_fn_set_status
19394 # as_fn_exit STATUS
19395 # -----------------
19396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19400 as_fn_set_status $1
19406 # Portably unset VAR.
19409 { eval $1=; unset $1;}
19411 as_unset=as_fn_unset
19412 # as_fn_append VAR VALUE
19413 # ----------------------
19414 # Append the text in VALUE to the end of the definition contained in VAR. Take
19415 # advantage of any shell optimizations that allow amortized linear growth over
19416 # repeated appends, instead of the typical quadratic growth present in naive
19418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19419 eval 'as_fn_append ()
19430 # as_fn_arith ARG...
19431 # ------------------
19432 # Perform arithmetic evaluation on the ARGs, and store the result in the
19433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19434 # must be portable across $(()) and expr.
19435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19436 eval 'as_fn_arith ()
19443 as_val=`expr "$@" || test $? -eq 1`
19448 if expr a : '\(a\)' >/dev/null 2>&1 &&
19449 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19455 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19456 as_basename=basename
19461 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19467 as_me=`$as_basename -- "$0" ||
19468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19469 X"$0" : 'X\(//\)$' \| \
19470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19472 sed '/^.*\/\([^/][^/]*\)\/*$/{
19486 # Avoid depending upon Character Ranges.
19487 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19488 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19489 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19490 as_cr_digits='0123456789'
19491 as_cr_alnum=$as_cr_Letters$as_cr_digits
19493 ECHO_C= ECHO_N= ECHO_T=
19494 case `echo -n x` in #(((((
19496 case `echo 'xy\c'` in
19497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19499 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19506 rm -f conf$$ conf$$.exe conf$$.file
19507 if test -d conf$$.dir; then
19508 rm -f conf$$.dir/conf$$.file
19511 mkdir conf$$.dir 2>/dev/null
19513 if (echo >conf$$.file) 2>/dev/null; then
19514 if ln -s conf$$.file conf$$ 2>/dev/null; then
19516 # ... but there are two gotchas:
19517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19519 # In both cases, we have to default to `cp -pR'.
19520 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19522 elif ln conf$$.file conf$$ 2>/dev/null; then
19530 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19531 rmdir conf$$.dir 2>/dev/null
19536 # Create "$as_dir" as a directory, including parents if necessary.
19541 -*) as_dir=./$as_dir;;
19543 test -d "$as_dir" || eval $as_mkdir_p || {
19547 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19548 *) as_qdir=$as_dir;;
19550 as_dirs="'$as_qdir' $as_dirs"
19551 as_dir=`$as_dirname -- "$as_dir" ||
19552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19553 X"$as_dir" : 'X\(//\)[^/]' \| \
19554 X"$as_dir" : 'X\(//\)$' \| \
19555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19556 $as_echo X"$as_dir" |
19557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19561 /^X\(\/\/\)[^/].*/{
19574 test -d "$as_dir" && break
19576 test -z "$as_dirs" || eval "mkdir $as_dirs"
19577 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19581 if mkdir -p . 2>/dev/null; then
19582 as_mkdir_p='mkdir -p "$as_dir"'
19584 test -d ./-p && rmdir ./-p
19589 # as_fn_executable_p FILE
19590 # -----------------------
19591 # Test if FILE is an executable regular file.
19592 as_fn_executable_p ()
19594 test -f "$1" && test -x "$1"
19595 } # as_fn_executable_p
19596 as_test_x='test -x'
19597 as_executable_p=as_fn_executable_p
19599 # Sed expression to map a string onto a valid CPP name.
19600 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19602 # Sed expression to map a string onto a valid variable name.
19603 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19607 ## ----------------------------------- ##
19608 ## Main body of $CONFIG_STATUS script. ##
19609 ## ----------------------------------- ##
19611 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19614 # Save the log message, to keep $0 and so on meaningful, and to
19615 # report actual input values of CONFIG_FILES etc. instead of their
19616 # values after options handling.
19618 This file was extended by gpgme $as_me 1.5.3, which was
19619 generated by GNU Autoconf 2.69. Invocation command line was
19621 CONFIG_FILES = $CONFIG_FILES
19622 CONFIG_HEADERS = $CONFIG_HEADERS
19623 CONFIG_LINKS = $CONFIG_LINKS
19624 CONFIG_COMMANDS = $CONFIG_COMMANDS
19627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19632 case $ac_config_files in *"
19633 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19636 case $ac_config_headers in *"
19637 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19642 # Files that config.status was made for.
19643 config_files="$ac_config_files"
19644 config_headers="$ac_config_headers"
19645 config_commands="$ac_config_commands"
19649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19651 \`$as_me' instantiates files and other configuration actions
19652 from templates according to the current configuration. Unless the files
19653 and actions are specified as TAGs, all are instantiated by default.
19655 Usage: $0 [OPTION]... [TAG]...
19657 -h, --help print this help, then exit
19658 -V, --version print version number and configuration settings, then exit
19659 --config print configuration, then exit
19660 -q, --quiet, --silent
19661 do not print progress messages
19662 -d, --debug don't remove temporary files
19663 --recheck update $as_me by reconfiguring in the same conditions
19664 --file=FILE[:TEMPLATE]
19665 instantiate the configuration file FILE
19666 --header=FILE[:TEMPLATE]
19667 instantiate the configuration header FILE
19669 Configuration files:
19672 Configuration headers:
19675 Configuration commands:
19678 Report bugs to <http://bugs.gnupg.org>."
19681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19684 gpgme config.status 1.5.3
19685 configured by $0, generated by GNU Autoconf 2.69,
19686 with options \\"\$ac_cs_config\\"
19688 Copyright (C) 2012 Free Software Foundation, Inc.
19689 This config.status script is free software; the Free Software Foundation
19690 gives unlimited permission to copy, distribute and modify it."
19697 test -n "\$AWK" || AWK=awk
19700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19701 # The default lists apply if the user does not specify any file.
19707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19724 # Handling of the options.
19725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19728 $as_echo "$ac_cs_version"; exit ;;
19729 --config | --confi | --conf | --con | --co | --c )
19730 $as_echo "$ac_cs_config"; exit ;;
19731 --debug | --debu | --deb | --de | --d | -d )
19733 --file | --fil | --fi | --f )
19736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19737 '') as_fn_error $? "missing file argument" ;;
19739 as_fn_append CONFIG_FILES " '$ac_optarg'"
19740 ac_need_defaults=false;;
19741 --header | --heade | --head | --hea )
19744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19746 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19747 ac_need_defaults=false;;
19749 # Conflict between --help and --header
19750 as_fn_error $? "ambiguous option: \`$1'
19751 Try \`$0 --help' for more information.";;
19752 --help | --hel | -h )
19753 $as_echo "$ac_cs_usage"; exit ;;
19754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19755 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19758 # This is an error.
19759 -*) as_fn_error $? "unrecognized option: \`$1'
19760 Try \`$0 --help' for more information." ;;
19762 *) as_fn_append ac_config_targets " $1"
19763 ac_need_defaults=false ;;
19769 ac_configure_extra_args=
19771 if $ac_cs_silent; then
19773 ac_configure_extra_args="$ac_configure_extra_args --silent"
19777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19778 if \$ac_cs_recheck; then
19779 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19782 CONFIG_SHELL='$SHELL'
19783 export CONFIG_SHELL
19788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19793 ## Running $as_me. ##
19799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19806 # The HP-UX ksh and POSIX shell print the target directory to stdout
19807 # if CDPATH is set.
19808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19810 sed_quote_subst='$sed_quote_subst'
19811 double_quote_subst='$double_quote_subst'
19812 delay_variable_subst='$delay_variable_subst'
19813 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19814 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19815 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19816 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19817 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19818 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19819 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19820 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19821 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19822 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19823 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19824 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19825 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19826 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19827 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19828 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19829 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19830 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19831 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19832 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19833 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19834 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19835 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19836 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19837 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19838 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19839 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19840 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19841 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19842 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19843 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19844 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19845 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19846 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19847 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19848 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19849 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19850 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19851 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19852 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19869 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19870 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"`'
19871 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19872 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19873 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19874 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19875 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19876 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19877 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19878 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19879 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19880 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19881 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19882 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19883 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19884 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19885 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19886 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19887 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19888 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19889 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19890 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19891 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19892 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19893 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19894 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19895 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19896 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19897 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19898 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19899 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19900 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19901 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19902 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19903 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19904 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19905 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19906 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19907 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19908 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19909 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19910 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19911 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19912 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19913 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19914 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19915 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19916 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19917 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19918 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19919 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19920 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19921 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19922 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19923 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19924 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19925 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19926 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19927 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19928 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19929 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19930 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19931 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19932 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19933 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19934 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19935 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19936 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19937 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19938 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19939 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19940 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19941 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19942 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19943 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19944 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19945 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19946 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19947 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19948 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19949 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19950 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19951 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19952 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19953 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19954 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19955 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19956 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19957 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19958 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19959 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19960 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19961 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19962 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19963 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19964 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19965 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19966 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19967 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19968 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19969 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19970 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19971 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19972 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19973 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19974 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19975 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19976 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19977 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19978 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19979 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19980 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19981 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19982 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19983 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19984 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19985 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19986 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19987 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19988 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19989 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19990 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19991 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19992 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19993 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19994 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19995 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19996 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19997 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19998 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19999 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
20000 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20001 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
20002 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20003 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
20004 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20005 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
20006 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20007 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
20008 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20009 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
20010 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20011 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
20012 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20013 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
20014 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20015 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
20016 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20017 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
20018 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20019 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
20020 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20021 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
20022 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20023 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20024 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20025 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
20026 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20027 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20028 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20029 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
20030 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20031 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
20032 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20033 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
20034 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20035 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
20036 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20037 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
20038 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20039 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
20040 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20041 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
20042 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20043 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
20044 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20045 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
20048 LTCFLAGS='$LTCFLAGS'
20049 compiler='$compiler_DEFAULT'
20051 # A function that is used when there is no print builtin or printf.
20052 func_fallback_echo ()
20054 eval 'cat <<_LTECHO_EOF
20059 # Quote evaled strings.
20076 deplibs_check_method \
20080 sharedlib_from_linklib_cmd \
20083 archiver_list_spec \
20089 lt_cv_sys_global_symbol_pipe \
20090 lt_cv_sys_global_symbol_to_cdecl \
20091 lt_cv_sys_global_symbol_to_c_name_address \
20092 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20093 nm_file_list_spec \
20094 lt_prog_compiler_no_builtin_flag \
20095 lt_prog_compiler_pic \
20096 lt_prog_compiler_wl \
20097 lt_prog_compiler_static \
20098 lt_cv_prog_compiler_c_o \
20107 export_dynamic_flag_spec \
20108 whole_archive_flag_spec \
20109 compiler_needs_object \
20111 allow_undefined_flag \
20112 no_undefined_flag \
20113 hardcode_libdir_flag_spec \
20114 hardcode_libdir_separator \
20118 variables_saved_for_relink \
20120 library_names_spec \
20122 install_override_mode \
20126 compiler_lib_search_dirs \
20131 compiler_lib_search_path \
20138 lt_prog_compiler_no_builtin_flag_CXX \
20139 lt_prog_compiler_no_builtin_flag_RC \
20140 lt_prog_compiler_pic_CXX \
20141 lt_prog_compiler_pic_RC \
20142 lt_prog_compiler_wl_CXX \
20143 lt_prog_compiler_wl_RC \
20144 lt_prog_compiler_static_CXX \
20145 lt_prog_compiler_static_RC \
20146 lt_cv_prog_compiler_c_o_CXX \
20147 lt_cv_prog_compiler_c_o_RC \
20148 export_dynamic_flag_spec_CXX \
20149 export_dynamic_flag_spec_RC \
20150 whole_archive_flag_spec_CXX \
20151 whole_archive_flag_spec_RC \
20152 compiler_needs_object_CXX \
20153 compiler_needs_object_RC \
20156 allow_undefined_flag_CXX \
20157 allow_undefined_flag_RC \
20158 no_undefined_flag_CXX \
20159 no_undefined_flag_RC \
20160 hardcode_libdir_flag_spec_CXX \
20161 hardcode_libdir_flag_spec_RC \
20162 hardcode_libdir_separator_CXX \
20163 hardcode_libdir_separator_RC \
20164 exclude_expsyms_CXX \
20165 exclude_expsyms_RC \
20166 include_expsyms_CXX \
20167 include_expsyms_RC \
20168 file_list_spec_CXX \
20169 file_list_spec_RC \
20170 compiler_lib_search_dirs_CXX \
20171 compiler_lib_search_dirs_RC \
20172 predep_objects_CXX \
20173 predep_objects_RC \
20174 postdep_objects_CXX \
20175 postdep_objects_RC \
20180 compiler_lib_search_path_CXX \
20181 compiler_lib_search_path_RC; do
20182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20183 *[\\\\\\\`\\"\\\$]*)
20184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20192 # Double-quote double-evaled strings.
20193 for var in reload_cmds \
20194 old_postinstall_cmds \
20195 old_postuninstall_cmds \
20197 extract_expsyms_cmds \
20198 old_archive_from_new_cmds \
20199 old_archive_from_expsyms_cmds \
20201 archive_expsym_cmds \
20203 module_expsym_cmds \
20204 export_symbols_cmds \
20208 postuninstall_cmds \
20210 sys_lib_search_path_spec \
20211 sys_lib_dlsearch_path_spec \
20214 old_archive_cmds_CXX \
20215 old_archive_cmds_RC \
20216 old_archive_from_new_cmds_CXX \
20217 old_archive_from_new_cmds_RC \
20218 old_archive_from_expsyms_cmds_CXX \
20219 old_archive_from_expsyms_cmds_RC \
20222 archive_expsym_cmds_CXX \
20223 archive_expsym_cmds_RC \
20226 module_expsym_cmds_CXX \
20227 module_expsym_cmds_RC \
20228 export_symbols_cmds_CXX \
20229 export_symbols_cmds_RC \
20232 postlink_cmds_CXX \
20233 postlink_cmds_RC; do
20234 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20235 *[\\\\\\\`\\"\\\$]*)
20236 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20239 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20244 ac_aux_dir='$ac_aux_dir'
20245 xsi_shell='$xsi_shell'
20246 lt_shell_append='$lt_shell_append'
20248 # See if we are running on zsh, and set the options which allow our
20249 # commands through without removal of \ escapes INIT.
20250 if test -n "\${ZSH_VERSION+set}" ; then
20251 setopt NO_GLOB_SUBST
20257 TIMESTAMP='$TIMESTAMP'
20270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20272 # Handling of arguments.
20273 for ac_config_target in $ac_config_targets
20275 case $ac_config_target in
20276 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20277 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20278 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20280 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20281 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20282 "tests/gpg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpg/Makefile" ;;
20283 "tests/gpgsm/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gpgsm/Makefile" ;;
20284 "tests/opassuan/Makefile") CONFIG_FILES="$CONFIG_FILES tests/opassuan/Makefile" ;;
20285 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20286 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20287 "src/gpgme.h") CONFIG_FILES="$CONFIG_FILES src/gpgme.h" ;;
20288 "src/gpgme-config") CONFIG_FILES="$CONFIG_FILES src/gpgme-config" ;;
20289 "lang/Makefile") CONFIG_FILES="$CONFIG_FILES lang/Makefile" ;;
20290 "lang/cl/Makefile") CONFIG_FILES="$CONFIG_FILES lang/cl/Makefile" ;;
20291 "lang/cl/gpgme.asd") CONFIG_FILES="$CONFIG_FILES lang/cl/gpgme.asd" ;;
20293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20298 # If the user did not use the arguments to specify the items to instantiate,
20299 # then the envvar interface is used. Set only those that are not.
20300 # We use the long form for the default assignment because of an extremely
20301 # bizarre bug on SunOS 4.1.3.
20302 if $ac_need_defaults; then
20303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20308 # Have a temporary directory for convenience. Make it in the build tree
20309 # simply because there is no reason against having it here, and in addition,
20310 # creating and moving files from /tmp can sometimes cause problems.
20311 # Hook for its removal unless debugging.
20312 # Note that there is a small window in which the directory will not be cleaned:
20313 # after its creation but before its name has been assigned to `$tmp'.
20317 trap 'exit_status=$?
20318 : "${ac_tmp:=$tmp}"
20319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20321 trap 'as_fn_exit 1' 1 2 13 15
20323 # Create a (secure) tmp directory for tmp files.
20326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20330 tmp=./conf$$-$RANDOM
20331 (umask 077 && mkdir "$tmp")
20332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20335 # Set up the scripts for CONFIG_FILES section.
20336 # No need to generate them if there are no CONFIG_FILES.
20337 # This happens for instance with `./config.status config.h'.
20338 if test -n "$CONFIG_FILES"; then
20341 ac_cr=`echo X | tr X '\015'`
20342 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20343 # But we know of no other shell where ac_cr would be empty at this
20344 # point, so we can use a bashism as a fallback.
20345 if test "x$ac_cr" = x; then
20346 eval ac_cr=\$\'\\r\'
20348 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20349 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20352 ac_cs_awk_cr=$ac_cr
20355 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20360 echo "cat >conf$$subs.awk <<_ACEOF" &&
20361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20363 } >conf$$subs.sh ||
20364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20365 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20367 for ac_last_try in false false false false false :; do
20368 . ./conf$$subs.sh ||
20369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20372 if test $ac_delim_n = $ac_delim_num; then
20374 elif $ac_last_try; then
20375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20380 rm -f conf$$subs.sh
20382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20383 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20387 s/^/S["/; s/!.*/"]=/
20397 s/\(.\{148\}\)..*/\1/
20399 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20411 s/\(.\{148\}\)..*/\1/
20413 s/["\\]/\\&/g; s/^/"/; s/$/"/
20417 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20422 ' <conf$$subs.awk | sed '
20427 ' >>$CONFIG_STATUS || ac_write_fail=1
20428 rm -f conf$$subs.awk
20429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20431 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20432 for (key in S) S_is_set[key] = 1
20438 nfields = split(line, field, "@")
20440 len = length(field[1])
20441 for (i = 2; i < nfields; i++) {
20443 keylen = length(key)
20444 if (S_is_set[key]) {
20446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20447 len += length(value) + length(field[++i])
20458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20459 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20463 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20467 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20468 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20469 # trailing colons and then remove the whole line if VPATH becomes empty
20470 # (actually we leave an empty line to preserve line numbers).
20471 if test "x$srcdir" = x.; then
20472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20491 fi # test -n "$CONFIG_FILES"
20493 # Set up the scripts for CONFIG_HEADERS section.
20494 # No need to generate them if there are no CONFIG_HEADERS.
20495 # This happens for instance with `./config.status Makefile'.
20496 if test -n "$CONFIG_HEADERS"; then
20497 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20501 # Transform confdefs.h into an awk script `defines.awk', embedded as
20502 # here-document in config.status, that substitutes the proper values into
20503 # config.h.in to produce config.h.
20505 # Create a delimiter string that does not exist in confdefs.h, to ease
20506 # handling of long lines.
20508 for ac_last_try in false false :; do
20509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20510 if test -z "$ac_tt"; then
20512 elif $ac_last_try; then
20513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20519 # For the awk script, D is an array of macro values keyed by name,
20520 # likewise P contains macro parameters if any. Preserve backslash
20521 # newline sequences.
20523 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20525 s/.\{148\}/&'"$ac_delim"'/g
20528 s/^[ ]*#[ ]*define[ ][ ]*/ /
20535 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20541 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20542 D["\1"]=" \3\\\\\\n"\\/p
20544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20549 s/.\{148\}/&'"$ac_delim"'/g
20554 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20557 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20559 ' <confdefs.h | sed '
20560 s/'"$ac_delim"'/"\\\
20561 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20564 for (key in D) D_is_set[key] = 1
20567 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20569 split(line, arg, " ")
20570 if (arg[1] == "#") {
20574 defundef = substr(arg[1], 2)
20577 split(mac1, mac2, "(") #)
20579 prefix = substr(line, 1, index(line, defundef) - 1)
20580 if (D_is_set[macro]) {
20581 # Preserve the white space surrounding the "#".
20582 print prefix "define", macro P[macro] D[macro]
20585 # Replace #undef with comments. This is necessary, for example,
20586 # in the case of _POSIX_SOURCE, which is predefined and required
20587 # on some systems where configure will not decide to define it.
20588 if (defundef == "undef") {
20589 print "/*", prefix defundef, macro, "*/"
20597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20599 fi # test -n "$CONFIG_HEADERS"
20602 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20607 :[FHLC]) ac_mode=$ac_tag; continue;;
20609 case $ac_mode$ac_tag in
20611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20612 :[FH]-) ac_tag=-:-;;
20613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20630 -) ac_f="$ac_tmp/stdin";;
20631 *) # Look for the file first in the build tree, then in the source tree
20632 # (if the path is not absolute). The absolute path cannot be DOS-style,
20633 # because $ac_f cannot contain `:'.
20637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20642 as_fn_append ac_file_inputs " '$ac_f'"
20645 # Let's still pretend it is `configure' which instantiates (i.e., don't
20646 # use $as_me), people would be surprised to read:
20647 # /* config.h. Generated by config.status. */
20648 configure_input='Generated from '`
20649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20651 if test x"$ac_file" != x-; then
20652 configure_input="$ac_file. $configure_input"
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20654 $as_echo "$as_me: creating $ac_file" >&6;}
20656 # Neutralize special characters interpreted by sed in replacement strings.
20657 case $configure_input in #(
20658 *\&* | *\|* | *\\* )
20659 ac_sed_conf_input=`$as_echo "$configure_input" |
20660 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20661 *) ac_sed_conf_input=$configure_input;;
20665 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20671 ac_dir=`$as_dirname -- "$ac_file" ||
20672 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20673 X"$ac_file" : 'X\(//\)[^/]' \| \
20674 X"$ac_file" : 'X\(//\)$' \| \
20675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20676 $as_echo X"$ac_file" |
20677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20681 /^X\(\/\/\)[^/].*/{
20694 as_dir="$ac_dir"; as_fn_mkdir_p
20698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20701 # A ".." for each directory in $ac_dir_suffix.
20702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20703 case $ac_top_builddir_sub in
20704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20708 ac_abs_top_builddir=$ac_pwd
20709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20710 # for backward compatibility:
20711 ac_top_builddir=$ac_top_build_prefix
20714 .) # We are building in place.
20716 ac_top_srcdir=$ac_top_builddir_sub
20717 ac_abs_top_srcdir=$ac_pwd ;;
20718 [\\/]* | ?:[\\/]* ) # Absolute name.
20719 ac_srcdir=$srcdir$ac_dir_suffix;
20720 ac_top_srcdir=$srcdir
20721 ac_abs_top_srcdir=$srcdir ;;
20722 *) # Relative name.
20723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20724 ac_top_srcdir=$ac_top_build_prefix$srcdir
20725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20738 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20740 ac_MKDIR_P=$MKDIR_P
20742 [\\/$]* | ?:[\\/]* ) ;;
20743 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20748 # If the template does not know about datarootdir, expand it.
20749 # FIXME: This hack should be removed a few years after 2.60.
20750 ac_datarootdir_hack=; ac_datarootdir_seen=
20761 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20762 *datarootdir*) ac_datarootdir_seen=yes;;
20763 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20765 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20768 ac_datarootdir_hack='
20769 s&@datadir@&$datadir&g
20770 s&@docdir@&$docdir&g
20771 s&@infodir@&$infodir&g
20772 s&@localedir@&$localedir&g
20773 s&@mandir@&$mandir&g
20774 s&\\\${datarootdir}&$datarootdir&g' ;;
20778 # Neutralize VPATH when `$srcdir' = `.'.
20779 # Shell code in configure.ac might set extrasub.
20780 # FIXME: do we really want to maintain this feature?
20781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20782 ac_sed_extra="$ac_vpsub
20785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20788 s|@configure_input@|$ac_sed_conf_input|;t t
20789 s&@top_builddir@&$ac_top_builddir_sub&;t t
20790 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20791 s&@srcdir@&$ac_srcdir&;t t
20792 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20793 s&@top_srcdir@&$ac_top_srcdir&;t t
20794 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20795 s&@builddir@&$ac_builddir&;t t
20796 s&@abs_builddir@&$ac_abs_builddir&;t t
20797 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20798 s&@INSTALL@&$ac_INSTALL&;t t
20799 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20800 $ac_datarootdir_hack
20802 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20803 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20805 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20806 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20808 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20810 which seems to be undefined. Please make sure it is defined" >&5
20811 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20812 which seems to be undefined. Please make sure it is defined" >&2;}
20814 rm -f "$ac_tmp/stdin"
20816 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20817 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20825 if test x"$ac_file" != x-; then
20827 $as_echo "/* $configure_input */" \
20828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20829 } >"$ac_tmp/config.h" \
20830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20831 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20833 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20836 mv "$ac_tmp/config.h" "$ac_file" \
20837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20840 $as_echo "/* $configure_input */" \
20841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20842 || as_fn_error $? "could not create -" "$LINENO" 5
20844 # Compute "$ac_file"'s index in $config_headers.
20847 for _am_header in $config_headers :; do
20848 case $_am_header in
20849 $_am_arg | $_am_arg:* )
20852 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20855 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20856 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20857 X"$_am_arg" : 'X\(//\)[^/]' \| \
20858 X"$_am_arg" : 'X\(//\)$' \| \
20859 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20860 $as_echo X"$_am_arg" |
20861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20865 /^X\(\/\/\)[^/].*/{
20877 s/.*/./; q'`/stamp-h$_am_stamp_count
20880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20881 $as_echo "$as_me: executing $ac_file commands" >&6;}
20886 case $ac_file$ac_mode in
20887 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20888 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20889 # are listed without --file. Let's play safe and only enable the eval
20890 # if we detect the quoting.
20891 case $CONFIG_FILES in
20892 *\'*) eval set x "$CONFIG_FILES" ;;
20893 *) set x $CONFIG_FILES ;;
20898 # Strip MF so we end up with the name of the file.
20899 mf=`echo "$mf" | sed -e 's/:.*$//'`
20900 # Check whether this is an Automake generated Makefile or not.
20901 # We used to match only the files named `Makefile.in', but
20902 # some people rename them; so instead we look at the file content.
20903 # Grep'ing the first line is not enough: some people post-process
20904 # each Makefile.in and add a new line on top of each file to say so.
20905 # Grep'ing the whole file is not good either: AIX grep has a line
20906 # limit of 2048, but all sed's we know have understand at least 4000.
20907 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20908 dirpart=`$as_dirname -- "$mf" ||
20909 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20910 X"$mf" : 'X\(//\)[^/]' \| \
20911 X"$mf" : 'X\(//\)$' \| \
20912 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20918 /^X\(\/\/\)[^/].*/{
20934 # Extract the definition of DEPDIR, am__include, and am__quote
20935 # from the Makefile without running `make'.
20936 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20937 test -z "$DEPDIR" && continue
20938 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20939 test -z "am__include" && continue
20940 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20941 # When using ansi2knr, U may be empty or an underscore; expand it
20942 U=`sed -n 's/^U = //p' < "$mf"`
20943 # Find all dependency output files, they are included files with
20944 # $(DEPDIR) in their names. We invoke sed twice because it is the
20945 # simplest approach to changing $(DEPDIR) to its actual value in the
20947 for file in `sed -n "
20948 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20949 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20950 # Make sure the directory exists.
20951 test -f "$dirpart/$file" && continue
20952 fdir=`$as_dirname -- "$file" ||
20953 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20954 X"$file" : 'X\(//\)[^/]' \| \
20955 X"$file" : 'X\(//\)$' \| \
20956 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20957 $as_echo X"$file" |
20958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20962 /^X\(\/\/\)[^/].*/{
20975 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20976 # echo "creating $dirpart/$file"
20977 echo '# dummy' > "$dirpart/$file"
20984 # See if we are running on zsh, and set the options which allow our
20985 # commands through without removal of \ escapes.
20986 if test -n "${ZSH_VERSION+set}" ; then
20987 setopt NO_GLOB_SUBST
20990 cfgfile="${ofile}T"
20991 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20994 cat <<_LT_EOF >> "$cfgfile"
20997 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20998 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20999 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21000 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21002 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21003 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21005 # Written by Gordon Matzigkeit, 1996
21007 # This file is part of GNU Libtool.
21009 # GNU Libtool is free software; you can redistribute it and/or
21010 # modify it under the terms of the GNU General Public License as
21011 # published by the Free Software Foundation; either version 2 of
21012 # the License, or (at your option) any later version.
21014 # As a special exception to the GNU General Public License,
21015 # if you distribute this file as part of a program or library that
21016 # is built using GNU Libtool, you may include this file under the
21017 # same distribution terms that you use for the rest of that program.
21019 # GNU Libtool is distributed in the hope that it will be useful,
21020 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21022 # GNU General Public License for more details.
21024 # You should have received a copy of the GNU General Public License
21025 # along with GNU Libtool; see the file COPYING. If not, a copy
21026 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21027 # obtained by writing to the Free Software Foundation, Inc.,
21028 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21031 # The names of the tagged configurations supported by this script.
21032 available_tags="CXX RC "
21034 # ### BEGIN LIBTOOL CONFIG
21036 # Which release of libtool.m4 was used?
21037 macro_version=$macro_version
21038 macro_revision=$macro_revision
21040 # Assembler program.
21043 # DLL creation program.
21044 DLLTOOL=$lt_DLLTOOL
21046 # Object dumper program.
21047 OBJDUMP=$lt_OBJDUMP
21049 # Whether or not to build static libraries.
21050 build_old_libs=$enable_static
21052 # Whether or not to build shared libraries.
21053 build_libtool_libs=$enable_shared
21055 # What type of objects to build.
21058 # Whether or not to optimize for fast installation.
21059 fast_install=$enable_fast_install
21061 # Shell to use when invoking shell scripts.
21064 # An echo program that protects backslashes.
21067 # The PATH separator for the build system.
21068 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21071 host_alias=$host_alias
21075 # The build system.
21076 build_alias=$build_alias
21080 # A sed program that does not truncate output.
21083 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21084 Xsed="\$SED -e 1s/^X//"
21086 # A grep program that handles long lines.
21092 # A literal string matcher.
21095 # A BSD- or MS-compatible name lister.
21098 # Whether we need soft or hard links.
21101 # What is the maximum length of a command?
21102 max_cmd_len=$max_cmd_len
21104 # Object file suffix (normally "o").
21107 # Executable file suffix (normally "").
21110 # whether the shell understands "unset".
21113 # turn spaces into newlines.
21116 # turn newlines into spaces.
21119 # convert \$build file names to \$host format.
21120 to_host_file_cmd=$lt_cv_to_host_file_cmd
21122 # convert \$build files to toolchain format.
21123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21125 # Method to check whether dependent libraries are shared objects.
21126 deplibs_check_method=$lt_deplibs_check_method
21128 # Command to use when deplibs_check_method = "file_magic".
21129 file_magic_cmd=$lt_file_magic_cmd
21131 # How to find potential files when deplibs_check_method = "file_magic".
21132 file_magic_glob=$lt_file_magic_glob
21134 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21135 want_nocaseglob=$lt_want_nocaseglob
21137 # Command to associate shared and link libraries.
21138 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21143 # Flags to create an archive.
21144 AR_FLAGS=$lt_AR_FLAGS
21146 # How to feed a file listing to the archiver.
21147 archiver_list_spec=$lt_archiver_list_spec
21149 # A symbol stripping program.
21152 # Commands used to install an old-style archive.
21154 old_postinstall_cmds=$lt_old_postinstall_cmds
21155 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21157 # Whether to use a lock for old archive extraction.
21158 lock_old_archive_extraction=$lock_old_archive_extraction
21163 # LTCC compiler flags.
21164 LTCFLAGS=$lt_CFLAGS
21166 # Take the output of nm and produce a listing of raw symbols and C names.
21167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21169 # Transform the output of nm in a proper C declaration.
21170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21172 # Transform the output of nm in a C name address pair.
21173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21175 # Transform the output of nm in a C name address pair when lib prefix is needed.
21176 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21178 # Specify filename containing input files for \$NM.
21179 nm_file_list_spec=$lt_nm_file_list_spec
21181 # The root where to search for dependent libraries,and in which our libraries should be installed.
21182 lt_sysroot=$lt_sysroot
21184 # The name of the directory that contains temporary libtool files.
21187 # Used to examine libraries when file_magic_cmd begins with "file".
21188 MAGIC_CMD=$MAGIC_CMD
21190 # Must we lock files when doing compilation?
21191 need_locks=$lt_need_locks
21194 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21196 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21197 DSYMUTIL=$lt_DSYMUTIL
21199 # Tool to change global to local symbols on Mac OS X.
21202 # Tool to manipulate fat objects and archives on Mac OS X.
21205 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21208 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21209 OTOOL64=$lt_OTOOL64
21211 # Old archive suffix (normally "a").
21214 # Shared library suffix (normally ".so").
21215 shrext_cmds=$lt_shrext_cmds
21217 # The commands to extract the exported symbol list from a shared archive.
21218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21220 # Variables whose values should be saved in libtool wrapper scripts and
21221 # restored at link time.
21222 variables_saved_for_relink=$lt_variables_saved_for_relink
21224 # Do we need the "lib" prefix for modules?
21225 need_lib_prefix=$need_lib_prefix
21227 # Do we need a version for libraries?
21228 need_version=$need_version
21230 # Library versioning type.
21231 version_type=$version_type
21233 # Shared library runtime path variable.
21234 runpath_var=$runpath_var
21236 # Shared library path variable.
21237 shlibpath_var=$shlibpath_var
21239 # Is shlibpath searched before the hard-coded library search path?
21240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21242 # Format of library name prefix.
21243 libname_spec=$lt_libname_spec
21245 # List of archive names. First name is the real one, the rest are links.
21246 # The last name is the one that the linker finds with -lNAME
21247 library_names_spec=$lt_library_names_spec
21249 # The coded name of the library, if different from the real name.
21250 soname_spec=$lt_soname_spec
21252 # Permission mode override for installation of shared libraries.
21253 install_override_mode=$lt_install_override_mode
21255 # Command to use after installation of a shared archive.
21256 postinstall_cmds=$lt_postinstall_cmds
21258 # Command to use after uninstallation of a shared archive.
21259 postuninstall_cmds=$lt_postuninstall_cmds
21261 # Commands used to finish a libtool library installation in a directory.
21262 finish_cmds=$lt_finish_cmds
21264 # As "finish_cmds", except a single script fragment to be evaled but
21266 finish_eval=$lt_finish_eval
21268 # Whether we should hardcode library paths into libraries.
21269 hardcode_into_libs=$hardcode_into_libs
21271 # Compile-time system search path for libraries.
21272 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21274 # Run-time system search path for libraries.
21275 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21277 # Whether dlopen is supported.
21278 dlopen_support=$enable_dlopen
21280 # Whether dlopen of programs is supported.
21281 dlopen_self=$enable_dlopen_self
21283 # Whether dlopen of statically linked programs is supported.
21284 dlopen_self_static=$enable_dlopen_self_static
21286 # Commands to strip libraries.
21287 old_striplib=$lt_old_striplib
21288 striplib=$lt_striplib
21291 # The linker used to build libraries.
21294 # How to create reloadable object files.
21295 reload_flag=$lt_reload_flag
21296 reload_cmds=$lt_reload_cmds
21298 # Commands used to build an old-style archive.
21299 old_archive_cmds=$lt_old_archive_cmds
21301 # A language specific compiler.
21304 # Is the compiler the GNU compiler?
21307 # Compiler flag to turn off builtin functions.
21308 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21310 # Additional compiler flags for building library objects.
21311 pic_flag=$lt_lt_prog_compiler_pic
21313 # How to pass a linker flag through the compiler.
21314 wl=$lt_lt_prog_compiler_wl
21316 # Compiler flag to prevent dynamic linking.
21317 link_static_flag=$lt_lt_prog_compiler_static
21319 # Does compiler simultaneously support -c and -o options?
21320 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21322 # Whether or not to add -lc for building shared libraries.
21323 build_libtool_need_lc=$archive_cmds_need_lc
21325 # Whether or not to disallow shared libs when runtime libs are static.
21326 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21328 # Compiler flag to allow reflexive dlopens.
21329 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21331 # Compiler flag to generate shared objects directly from archives.
21332 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21334 # Whether the compiler copes with passing no objects directly.
21335 compiler_needs_object=$lt_compiler_needs_object
21337 # Create an old-style archive from a shared archive.
21338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21340 # Create a temporary old-style archive to link instead of a shared archive.
21341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21343 # Commands used to build a shared archive.
21344 archive_cmds=$lt_archive_cmds
21345 archive_expsym_cmds=$lt_archive_expsym_cmds
21347 # Commands used to build a loadable module if different from building
21348 # a shared archive.
21349 module_cmds=$lt_module_cmds
21350 module_expsym_cmds=$lt_module_expsym_cmds
21352 # Whether we are building with GNU ld or not.
21353 with_gnu_ld=$lt_with_gnu_ld
21355 # Flag that allows shared libraries with undefined symbols to be built.
21356 allow_undefined_flag=$lt_allow_undefined_flag
21358 # Flag that enforces no undefined symbols.
21359 no_undefined_flag=$lt_no_undefined_flag
21361 # Flag to hardcode \$libdir into a binary during linking.
21362 # This must work even if \$libdir does not exist
21363 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21365 # Whether we need a single "-rpath" flag with a separated argument.
21366 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21369 # DIR into the resulting binary.
21370 hardcode_direct=$hardcode_direct
21372 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21373 # DIR into the resulting binary and the resulting library dependency is
21374 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21375 # library is relocated.
21376 hardcode_direct_absolute=$hardcode_direct_absolute
21378 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21379 # into the resulting binary.
21380 hardcode_minus_L=$hardcode_minus_L
21382 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21383 # into the resulting binary.
21384 hardcode_shlibpath_var=$hardcode_shlibpath_var
21386 # Set to "yes" if building a shared library automatically hardcodes DIR
21387 # into the library and all subsequent libraries and executables linked
21389 hardcode_automatic=$hardcode_automatic
21391 # Set to yes if linker adds runtime paths of dependent libraries
21392 # to runtime path list.
21393 inherit_rpath=$inherit_rpath
21395 # Whether libtool must link a program against all its dependency libraries.
21396 link_all_deplibs=$link_all_deplibs
21398 # Set to "yes" if exported symbols are required.
21399 always_export_symbols=$always_export_symbols
21401 # The commands to list exported symbols.
21402 export_symbols_cmds=$lt_export_symbols_cmds
21404 # Symbols that should not be listed in the preloaded symbols.
21405 exclude_expsyms=$lt_exclude_expsyms
21407 # Symbols that must always be exported.
21408 include_expsyms=$lt_include_expsyms
21410 # Commands necessary for linking programs (against libraries) with templates.
21411 prelink_cmds=$lt_prelink_cmds
21413 # Commands necessary for finishing linking programs.
21414 postlink_cmds=$lt_postlink_cmds
21416 # Specify filename containing input files.
21417 file_list_spec=$lt_file_list_spec
21419 # How to hardcode a shared library path into an executable.
21420 hardcode_action=$hardcode_action
21422 # The directories searched by this compiler when creating a shared library.
21423 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21425 # Dependencies to place before and after the objects being linked to
21426 # create a shared library.
21427 predep_objects=$lt_predep_objects
21428 postdep_objects=$lt_postdep_objects
21429 predeps=$lt_predeps
21430 postdeps=$lt_postdeps
21432 # The library search path used internally by the compiler when linking
21433 # a shared library.
21434 compiler_lib_search_path=$lt_compiler_lib_search_path
21436 # ### END LIBTOOL CONFIG
21442 cat <<\_LT_EOF >> "$cfgfile"
21443 # AIX sometimes has problems with the GCC collect2 program. For some
21444 # reason, if we set the COLLECT_NAMES environment variable, the problems
21445 # vanish in a puff of smoke.
21446 if test "X${COLLECT_NAMES+set}" != Xset; then
21448 export COLLECT_NAMES
21455 ltmain="$ac_aux_dir/ltmain.sh"
21458 # We use sed instead of cat because bash on DJGPP gets confused if
21459 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21460 # text mode, it properly converts lines to CR/LF. This bash problem
21461 # is reportedly fixed, but why not run on old versions too?
21462 sed '$q' "$ltmain" >> "$cfgfile" \
21463 || (rm -f "$cfgfile"; exit 1)
21465 if test x"$xsi_shell" = xyes; then
21466 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21470 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21471 \ * ) func_dirname_result="${3}" ;;\
21473 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21474 && mv -f "$cfgfile.tmp" "$cfgfile" \
21475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21476 test 0 -eq $? || _lt_function_replace_fail=:
21479 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21482 \ func_basename_result="${1##*/}"\
21483 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21484 && mv -f "$cfgfile.tmp" "$cfgfile" \
21485 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21486 test 0 -eq $? || _lt_function_replace_fail=:
21489 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21490 func_dirname_and_basename ()\
21493 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21494 \ * ) func_dirname_result="${3}" ;;\
21496 \ func_basename_result="${1##*/}"\
21497 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21498 && mv -f "$cfgfile.tmp" "$cfgfile" \
21499 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21500 test 0 -eq $? || _lt_function_replace_fail=:
21503 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21506 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21507 \ # positional parameters, so assign one to ordinary parameter first.\
21508 \ func_stripname_result=${3}\
21509 \ func_stripname_result=${func_stripname_result#"${1}"}\
21510 \ func_stripname_result=${func_stripname_result%"${2}"}\
21511 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21512 && mv -f "$cfgfile.tmp" "$cfgfile" \
21513 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21514 test 0 -eq $? || _lt_function_replace_fail=:
21517 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21518 func_split_long_opt ()\
21520 \ func_split_long_opt_name=${1%%=*}\
21521 \ func_split_long_opt_arg=${1#*=}\
21522 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21523 && mv -f "$cfgfile.tmp" "$cfgfile" \
21524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21525 test 0 -eq $? || _lt_function_replace_fail=:
21528 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21529 func_split_short_opt ()\
21531 \ func_split_short_opt_arg=${1#??}\
21532 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21533 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21534 && mv -f "$cfgfile.tmp" "$cfgfile" \
21535 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21536 test 0 -eq $? || _lt_function_replace_fail=:
21539 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21543 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21544 \ *) func_lo2o_result=${1} ;;\
21546 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21547 && mv -f "$cfgfile.tmp" "$cfgfile" \
21548 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21549 test 0 -eq $? || _lt_function_replace_fail=:
21552 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21555 func_xform_result=${1%.*}.lo\
21556 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21557 && mv -f "$cfgfile.tmp" "$cfgfile" \
21558 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21559 test 0 -eq $? || _lt_function_replace_fail=:
21562 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21565 func_arith_result=$(( $* ))\
21566 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21567 && mv -f "$cfgfile.tmp" "$cfgfile" \
21568 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21569 test 0 -eq $? || _lt_function_replace_fail=:
21572 sed -e '/^func_len ()$/,/^} # func_len /c\
21575 func_len_result=${#1}\
21576 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21577 && mv -f "$cfgfile.tmp" "$cfgfile" \
21578 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21579 test 0 -eq $? || _lt_function_replace_fail=:
21583 if test x"$lt_shell_append" = xyes; then
21584 sed -e '/^func_append ()$/,/^} # func_append /c\
21587 eval "${1}+=\\${2}"\
21588 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21589 && mv -f "$cfgfile.tmp" "$cfgfile" \
21590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21591 test 0 -eq $? || _lt_function_replace_fail=:
21594 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21595 func_append_quoted ()\
21597 \ func_quote_for_eval "${2}"\
21598 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21599 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21600 && mv -f "$cfgfile.tmp" "$cfgfile" \
21601 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21602 test 0 -eq $? || _lt_function_replace_fail=:
21605 # Save a `func_append' function call where possible by direct use of '+='
21606 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21607 && mv -f "$cfgfile.tmp" "$cfgfile" \
21608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21609 test 0 -eq $? || _lt_function_replace_fail=:
21611 # Save a `func_append' function call even when '+=' is not available
21612 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21613 && mv -f "$cfgfile.tmp" "$cfgfile" \
21614 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21615 test 0 -eq $? || _lt_function_replace_fail=:
21618 if test x"$_lt_function_replace_fail" = x":"; then
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21620 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21624 mv -f "$cfgfile" "$ofile" ||
21625 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21629 cat <<_LT_EOF >> "$ofile"
21631 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21633 # The linker used to build libraries.
21636 # How to create reloadable object files.
21637 reload_flag=$lt_reload_flag_CXX
21638 reload_cmds=$lt_reload_cmds_CXX
21640 # Commands used to build an old-style archive.
21641 old_archive_cmds=$lt_old_archive_cmds_CXX
21643 # A language specific compiler.
21644 CC=$lt_compiler_CXX
21646 # Is the compiler the GNU compiler?
21649 # Compiler flag to turn off builtin functions.
21650 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21652 # Additional compiler flags for building library objects.
21653 pic_flag=$lt_lt_prog_compiler_pic_CXX
21655 # How to pass a linker flag through the compiler.
21656 wl=$lt_lt_prog_compiler_wl_CXX
21658 # Compiler flag to prevent dynamic linking.
21659 link_static_flag=$lt_lt_prog_compiler_static_CXX
21661 # Does compiler simultaneously support -c and -o options?
21662 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21664 # Whether or not to add -lc for building shared libraries.
21665 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21667 # Whether or not to disallow shared libs when runtime libs are static.
21668 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21670 # Compiler flag to allow reflexive dlopens.
21671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21673 # Compiler flag to generate shared objects directly from archives.
21674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21676 # Whether the compiler copes with passing no objects directly.
21677 compiler_needs_object=$lt_compiler_needs_object_CXX
21679 # Create an old-style archive from a shared archive.
21680 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21682 # Create a temporary old-style archive to link instead of a shared archive.
21683 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21685 # Commands used to build a shared archive.
21686 archive_cmds=$lt_archive_cmds_CXX
21687 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21689 # Commands used to build a loadable module if different from building
21690 # a shared archive.
21691 module_cmds=$lt_module_cmds_CXX
21692 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21694 # Whether we are building with GNU ld or not.
21695 with_gnu_ld=$lt_with_gnu_ld_CXX
21697 # Flag that allows shared libraries with undefined symbols to be built.
21698 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21700 # Flag that enforces no undefined symbols.
21701 no_undefined_flag=$lt_no_undefined_flag_CXX
21703 # Flag to hardcode \$libdir into a binary during linking.
21704 # This must work even if \$libdir does not exist
21705 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21707 # Whether we need a single "-rpath" flag with a separated argument.
21708 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21710 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21711 # DIR into the resulting binary.
21712 hardcode_direct=$hardcode_direct_CXX
21714 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21715 # DIR into the resulting binary and the resulting library dependency is
21716 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21717 # library is relocated.
21718 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21720 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21721 # into the resulting binary.
21722 hardcode_minus_L=$hardcode_minus_L_CXX
21724 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21725 # into the resulting binary.
21726 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21728 # Set to "yes" if building a shared library automatically hardcodes DIR
21729 # into the library and all subsequent libraries and executables linked
21731 hardcode_automatic=$hardcode_automatic_CXX
21733 # Set to yes if linker adds runtime paths of dependent libraries
21734 # to runtime path list.
21735 inherit_rpath=$inherit_rpath_CXX
21737 # Whether libtool must link a program against all its dependency libraries.
21738 link_all_deplibs=$link_all_deplibs_CXX
21740 # Set to "yes" if exported symbols are required.
21741 always_export_symbols=$always_export_symbols_CXX
21743 # The commands to list exported symbols.
21744 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21746 # Symbols that should not be listed in the preloaded symbols.
21747 exclude_expsyms=$lt_exclude_expsyms_CXX
21749 # Symbols that must always be exported.
21750 include_expsyms=$lt_include_expsyms_CXX
21752 # Commands necessary for linking programs (against libraries) with templates.
21753 prelink_cmds=$lt_prelink_cmds_CXX
21755 # Commands necessary for finishing linking programs.
21756 postlink_cmds=$lt_postlink_cmds_CXX
21758 # Specify filename containing input files.
21759 file_list_spec=$lt_file_list_spec_CXX
21761 # How to hardcode a shared library path into an executable.
21762 hardcode_action=$hardcode_action_CXX
21764 # The directories searched by this compiler when creating a shared library.
21765 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21767 # Dependencies to place before and after the objects being linked to
21768 # create a shared library.
21769 predep_objects=$lt_predep_objects_CXX
21770 postdep_objects=$lt_postdep_objects_CXX
21771 predeps=$lt_predeps_CXX
21772 postdeps=$lt_postdeps_CXX
21774 # The library search path used internally by the compiler when linking
21775 # a shared library.
21776 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21778 # ### END LIBTOOL TAG CONFIG: CXX
21782 cat <<_LT_EOF >> "$ofile"
21784 # ### BEGIN LIBTOOL TAG CONFIG: RC
21786 # The linker used to build libraries.
21789 # How to create reloadable object files.
21790 reload_flag=$lt_reload_flag_RC
21791 reload_cmds=$lt_reload_cmds_RC
21793 # Commands used to build an old-style archive.
21794 old_archive_cmds=$lt_old_archive_cmds_RC
21796 # A language specific compiler.
21799 # Is the compiler the GNU compiler?
21802 # Compiler flag to turn off builtin functions.
21803 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21805 # Additional compiler flags for building library objects.
21806 pic_flag=$lt_lt_prog_compiler_pic_RC
21808 # How to pass a linker flag through the compiler.
21809 wl=$lt_lt_prog_compiler_wl_RC
21811 # Compiler flag to prevent dynamic linking.
21812 link_static_flag=$lt_lt_prog_compiler_static_RC
21814 # Does compiler simultaneously support -c and -o options?
21815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21817 # Whether or not to add -lc for building shared libraries.
21818 build_libtool_need_lc=$archive_cmds_need_lc_RC
21820 # Whether or not to disallow shared libs when runtime libs are static.
21821 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21823 # Compiler flag to allow reflexive dlopens.
21824 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21826 # Compiler flag to generate shared objects directly from archives.
21827 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21829 # Whether the compiler copes with passing no objects directly.
21830 compiler_needs_object=$lt_compiler_needs_object_RC
21832 # Create an old-style archive from a shared archive.
21833 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21835 # Create a temporary old-style archive to link instead of a shared archive.
21836 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21838 # Commands used to build a shared archive.
21839 archive_cmds=$lt_archive_cmds_RC
21840 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21842 # Commands used to build a loadable module if different from building
21843 # a shared archive.
21844 module_cmds=$lt_module_cmds_RC
21845 module_expsym_cmds=$lt_module_expsym_cmds_RC
21847 # Whether we are building with GNU ld or not.
21848 with_gnu_ld=$lt_with_gnu_ld_RC
21850 # Flag that allows shared libraries with undefined symbols to be built.
21851 allow_undefined_flag=$lt_allow_undefined_flag_RC
21853 # Flag that enforces no undefined symbols.
21854 no_undefined_flag=$lt_no_undefined_flag_RC
21856 # Flag to hardcode \$libdir into a binary during linking.
21857 # This must work even if \$libdir does not exist
21858 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21860 # Whether we need a single "-rpath" flag with a separated argument.
21861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21864 # DIR into the resulting binary.
21865 hardcode_direct=$hardcode_direct_RC
21867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21868 # DIR into the resulting binary and the resulting library dependency is
21869 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21870 # library is relocated.
21871 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21873 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21874 # into the resulting binary.
21875 hardcode_minus_L=$hardcode_minus_L_RC
21877 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21878 # into the resulting binary.
21879 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21881 # Set to "yes" if building a shared library automatically hardcodes DIR
21882 # into the library and all subsequent libraries and executables linked
21884 hardcode_automatic=$hardcode_automatic_RC
21886 # Set to yes if linker adds runtime paths of dependent libraries
21887 # to runtime path list.
21888 inherit_rpath=$inherit_rpath_RC
21890 # Whether libtool must link a program against all its dependency libraries.
21891 link_all_deplibs=$link_all_deplibs_RC
21893 # Set to "yes" if exported symbols are required.
21894 always_export_symbols=$always_export_symbols_RC
21896 # The commands to list exported symbols.
21897 export_symbols_cmds=$lt_export_symbols_cmds_RC
21899 # Symbols that should not be listed in the preloaded symbols.
21900 exclude_expsyms=$lt_exclude_expsyms_RC
21902 # Symbols that must always be exported.
21903 include_expsyms=$lt_include_expsyms_RC
21905 # Commands necessary for linking programs (against libraries) with templates.
21906 prelink_cmds=$lt_prelink_cmds_RC
21908 # Commands necessary for finishing linking programs.
21909 postlink_cmds=$lt_postlink_cmds_RC
21911 # Specify filename containing input files.
21912 file_list_spec=$lt_file_list_spec_RC
21914 # How to hardcode a shared library path into an executable.
21915 hardcode_action=$hardcode_action_RC
21917 # The directories searched by this compiler when creating a shared library.
21918 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
21920 # Dependencies to place before and after the objects being linked to
21921 # create a shared library.
21922 predep_objects=$lt_predep_objects_RC
21923 postdep_objects=$lt_postdep_objects_RC
21924 predeps=$lt_predeps_RC
21925 postdeps=$lt_postdeps_RC
21927 # The library search path used internally by the compiler when linking
21928 # a shared library.
21929 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21931 # ### END LIBTOOL TAG CONFIG: RC
21935 "src/gpgme-config":F) chmod +x src/gpgme-config ;;
21943 ac_clean_files=$ac_clean_files_save
21945 test $ac_write_fail = 0 ||
21946 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21949 # configure is writing to config.log, and then calls config.status.
21950 # config.status does its own redirection, appending to config.log.
21951 # Unfortunately, on DOS this fails, as config.log is still kept open
21952 # by configure, so config.status won't be able to write to it; its
21953 # output is simply discarded. So we exec the FD to /dev/null,
21954 # effectively closing config.log, so it can be properly (re)opened and
21955 # appended to by config.status. When coming back to configure, we
21956 # need to make the FD available again.
21957 if test "$no_create" != yes; then
21959 ac_config_status_args=
21960 test "$silent" = yes &&
21961 ac_config_status_args="$ac_config_status_args --quiet"
21963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21966 # would make configure fail if this is the last instruction.
21967 $ac_cs_success || as_fn_exit 1
21969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21971 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21976 GPGME v${VERSION} has been configured as follows:
21978 Revision: 37d927a (14297)
21981 UI Server: $uiserver
21982 FD Passing: $use_descriptor_passing
21983 GPGME Pthread: $have_pthread
21985 if test "x${gpg_config_script_warn}" != x; then
21987 Mismatches between the target platform and the to
21988 be used libraries have been been detected for:
21989 ${gpg_config_script_warn}
21990 Please check above for warning messages.