2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for libgcrypt 1.8.3.
6 # Report bugs to <http://bugs.gnupg.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 as_echo_n='sh -c $as_echo_n_body as_echo'
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
92 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 *v*x* | *x*v* ) as_opts=-vx ;;
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
172 case \`(set -o) 2>/dev/null\` in #(
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
249 if test "x$CONFIG_SHELL" != x; then :
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259 *v*x* | *x*v* ) as_opts=-vx ;;
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: http://bugs.gnupg.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Create "$as_dir" as a directory, including parents if necessary.
331 -*) as_dir=./$as_dir;;
333 test -d "$as_dir" || eval $as_mkdir_p || {
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364 test -d "$as_dir" && break
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410 as_val=`expr "$@" || test $? -eq 1`
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
422 as_status=$1; test $as_status -eq 0 && as_status=1
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
508 # Exit status is that of the last command.
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541 elif ln conf$$.file conf$$ 2>/dev/null; then
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
555 test -d ./-p && rmdir ./-p
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 ac_default_prefix=/usr/local
584 ac_config_libobj_dir=.
591 # Identity of this package.
592 PACKAGE_NAME='libgcrypt'
593 PACKAGE_TARNAME='libgcrypt'
594 PACKAGE_VERSION='1.8.3'
595 PACKAGE_STRING='libgcrypt 1.8.3'
596 PACKAGE_BUGREPORT='http://bugs.gnupg.org'
599 ac_unique_file="src/libgcrypt.vers"
600 ac_config_libobj_dir=compat
601 # Factoring default headers for most tests.
602 ac_includes_default="\
604 #ifdef HAVE_SYS_TYPES_H
605 # include <sys/types.h>
607 #ifdef HAVE_SYS_STAT_H
608 # include <sys/stat.h>
614 # ifdef HAVE_STDLIB_H
619 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
624 #ifdef HAVE_STRINGS_H
625 # include <strings.h>
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
637 ac_subst_vars='am__EXEEXT_FALSE
647 LIBGCRYPT_PUBKEY_CIPHERS
652 GCRYPT_PUBKEY_CIPHERS
654 LIBGCRYPT_THREAD_MODULES
655 LIBGCRYPT_CONFIG_HOST
656 LIBGCRYPT_CONFIG_CFLAGS
657 LIBGCRYPT_CONFIG_LIBS
658 LIBGCRYPT_CONFIG_API_VERSION
660 CROSS_COMPILING_FALSE
664 MPI_MOD_C_UDIV_QRNND_FALSE
665 MPI_MOD_C_UDIV_QRNND_TRUE
668 MPI_MOD_C_MPIH_RSHIFT_FALSE
669 MPI_MOD_C_MPIH_RSHIFT_TRUE
670 MPI_MOD_C_MPIH_LSHIFT_FALSE
671 MPI_MOD_C_MPIH_LSHIFT_TRUE
672 MPI_MOD_C_MPIH_MUL3_FALSE
673 MPI_MOD_C_MPIH_MUL3_TRUE
674 MPI_MOD_C_MPIH_MUL2_FALSE
675 MPI_MOD_C_MPIH_MUL2_TRUE
676 MPI_MOD_C_MPIH_MUL1_FALSE
677 MPI_MOD_C_MPIH_MUL1_TRUE
678 MPI_MOD_C_MPIH_SUB1_FALSE
679 MPI_MOD_C_MPIH_SUB1_TRUE
680 MPI_MOD_C_MPIH_ADD1_FALSE
681 MPI_MOD_C_MPIH_ADD1_TRUE
682 MPI_MOD_ASM_UDIV_QRNND_FALSE
683 MPI_MOD_ASM_UDIV_QRNND_TRUE
684 MPI_MOD_ASM_UDIV_FALSE
685 MPI_MOD_ASM_UDIV_TRUE
686 MPI_MOD_ASM_MPIH_RSHIFT_FALSE
687 MPI_MOD_ASM_MPIH_RSHIFT_TRUE
688 MPI_MOD_ASM_MPIH_LSHIFT_FALSE
689 MPI_MOD_ASM_MPIH_LSHIFT_TRUE
690 MPI_MOD_ASM_MPIH_MUL3_FALSE
691 MPI_MOD_ASM_MPIH_MUL3_TRUE
692 MPI_MOD_ASM_MPIH_MUL2_FALSE
693 MPI_MOD_ASM_MPIH_MUL2_TRUE
694 MPI_MOD_ASM_MPIH_MUL1_FALSE
695 MPI_MOD_ASM_MPIH_MUL1_TRUE
696 MPI_MOD_ASM_MPIH_SUB1_FALSE
697 MPI_MOD_ASM_MPIH_SUB1_TRUE
698 MPI_MOD_ASM_MPIH_ADD1_FALSE
699 MPI_MOD_ASM_MPIH_ADD1_TRUE
712 HAVE_LD_VERSION_SCRIPT_FALSE
713 HAVE_LD_VERSION_SCRIPT_TRUE
714 ENABLE_O_FLAG_MUNGING_FALSE
715 ENABLE_O_FLAG_MUNGING_TRUE
717 USE_RANDOM_DAEMON_FALSE
718 USE_RANDOM_DAEMON_TRUE
720 emacs_local_vars_read_only
721 emacs_local_vars_begin
722 HAVE_W32CE_SYSTEM_FALSE
723 HAVE_W32CE_SYSTEM_TRUE
724 HAVE_W32_SYSTEM_FALSE
750 am__fastdepCCAS_FALSE
774 LIBGCRYPT_LT_REVISION
779 MAINTAINER_MODE_FALSE
801 INSTALL_STRIP_PROGRAM
843 program_transform_name
856 enable_option_checking
858 enable_maintainer_mode
859 enable_dependency_tracking
869 enable_pubkey_ciphers
878 enable_large_data_tests
880 enable_hmac_binary_check
882 enable_padlock_support
884 enable_pclmul_support
890 enable_arm_crypto_support
891 enable_O_flag_munging
892 enable_amd64_as_feature_detection
893 enable_ld_version_script
894 with_libgpg_error_prefix
895 with_gpg_error_prefix
901 enable_build_timestamp
903 ac_precious_vars='build_alias
918 # Initialize some variables set by options.
920 ac_init_version=false
921 ac_unrecognized_opts=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name=s,x,x,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir='${exec_prefix}/bin'
947 sbindir='${exec_prefix}/sbin'
948 libexecdir='${exec_prefix}/libexec'
949 datarootdir='${prefix}/share'
950 datadir='${datarootdir}'
951 sysconfdir='${prefix}/etc'
952 sharedstatedir='${prefix}/com'
953 localstatedir='${prefix}/var'
954 includedir='${prefix}/include'
955 oldincludedir='/usr/include'
956 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir='${datarootdir}/info'
962 libdir='${exec_prefix}/lib'
963 localedir='${datarootdir}/locale'
964 mandir='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\$ac_option
978 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir | --bindir | --bindi | --bind | --bin | --bi)
991 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
994 -build | --build | --buil | --bui | --bu)
995 ac_prev=build_alias ;;
996 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997 build_alias=$ac_optarg ;;
999 -cache-file | --cache-file | --cache-fil | --cache-fi \
1000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001 ac_prev=cache_file ;;
1002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004 cache_file=$ac_optarg ;;
1006 --config-cache | -C)
1007 cache_file=config.cache ;;
1009 -datadir | --datadir | --datadi | --datad)
1011 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012 datadir=$ac_optarg ;;
1014 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015 | --dataroo | --dataro | --datar)
1016 ac_prev=datarootdir ;;
1017 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019 datarootdir=$ac_optarg ;;
1021 -disable-* | --disable-*)
1022 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025 as_fn_error $? "invalid feature name: $ac_useropt"
1026 ac_useropt_orig=$ac_useropt
1027 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_$ac_useropt"
1032 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep=', ';;
1035 eval enable_$ac_useropt=no ;;
1037 -docdir | --docdir | --docdi | --doc | --do)
1039 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040 docdir=$ac_optarg ;;
1042 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1044 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045 dvidir=$ac_optarg ;;
1047 -enable-* | --enable-*)
1048 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051 as_fn_error $? "invalid feature name: $ac_useropt"
1052 ac_useropt_orig=$ac_useropt
1053 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_$ac_useropt"
1058 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep=', ';;
1061 eval enable_$ac_useropt=\$ac_optarg ;;
1063 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065 | --exec | --exe | --ex)
1066 ac_prev=exec_prefix ;;
1067 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069 | --exec=* | --exe=* | --ex=*)
1070 exec_prefix=$ac_optarg ;;
1072 -gas | --gas | --ga | --g)
1073 # Obsolete; use --with-gas.
1076 -help | --help | --hel | --he | -h)
1077 ac_init_help=long ;;
1078 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079 ac_init_help=recursive ;;
1080 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081 ac_init_help=short ;;
1083 -host | --host | --hos | --ho)
1084 ac_prev=host_alias ;;
1085 -host=* | --host=* | --hos=* | --ho=*)
1086 host_alias=$ac_optarg ;;
1088 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1090 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1092 htmldir=$ac_optarg ;;
1094 -includedir | --includedir | --includedi | --included | --include \
1095 | --includ | --inclu | --incl | --inc)
1096 ac_prev=includedir ;;
1097 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098 | --includ=* | --inclu=* | --incl=* | --inc=*)
1099 includedir=$ac_optarg ;;
1101 -infodir | --infodir | --infodi | --infod | --info | --inf)
1103 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104 infodir=$ac_optarg ;;
1106 -libdir | --libdir | --libdi | --libd)
1108 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109 libdir=$ac_optarg ;;
1111 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112 | --libexe | --libex | --libe)
1113 ac_prev=libexecdir ;;
1114 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115 | --libexe=* | --libex=* | --libe=*)
1116 libexecdir=$ac_optarg ;;
1118 -localedir | --localedir | --localedi | --localed | --locale)
1119 ac_prev=localedir ;;
1120 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121 localedir=$ac_optarg ;;
1123 -localstatedir | --localstatedir | --localstatedi | --localstated \
1124 | --localstate | --localstat | --localsta | --localst | --locals)
1125 ac_prev=localstatedir ;;
1126 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128 localstatedir=$ac_optarg ;;
1130 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1132 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133 mandir=$ac_optarg ;;
1135 -nfp | --nfp | --nf)
1136 # Obsolete; use --without-fp.
1139 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140 | --no-cr | --no-c | -n)
1143 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149 | --oldin | --oldi | --old | --ol | --o)
1150 ac_prev=oldincludedir ;;
1151 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154 oldincludedir=$ac_optarg ;;
1156 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1158 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159 prefix=$ac_optarg ;;
1161 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162 | --program-pre | --program-pr | --program-p)
1163 ac_prev=program_prefix ;;
1164 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166 program_prefix=$ac_optarg ;;
1168 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169 | --program-suf | --program-su | --program-s)
1170 ac_prev=program_suffix ;;
1171 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173 program_suffix=$ac_optarg ;;
1175 -program-transform-name | --program-transform-name \
1176 | --program-transform-nam | --program-transform-na \
1177 | --program-transform-n | --program-transform- \
1178 | --program-transform | --program-transfor \
1179 | --program-transfo | --program-transf \
1180 | --program-trans | --program-tran \
1181 | --progr-tra | --program-tr | --program-t)
1182 ac_prev=program_transform_name ;;
1183 -program-transform-name=* | --program-transform-name=* \
1184 | --program-transform-nam=* | --program-transform-na=* \
1185 | --program-transform-n=* | --program-transform-=* \
1186 | --program-transform=* | --program-transfor=* \
1187 | --program-transfo=* | --program-transf=* \
1188 | --program-trans=* | --program-tran=* \
1189 | --progr-tra=* | --program-tr=* | --program-t=*)
1190 program_transform_name=$ac_optarg ;;
1192 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1194 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195 pdfdir=$ac_optarg ;;
1197 -psdir | --psdir | --psdi | --psd | --ps)
1199 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203 | -silent | --silent | --silen | --sile | --sil)
1206 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 sbindir=$ac_optarg ;;
1212 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214 | --sharedst | --shareds | --shared | --share | --shar \
1216 ac_prev=sharedstatedir ;;
1217 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 sharedstatedir=$ac_optarg ;;
1223 -site | --site | --sit)
1225 -site=* | --site=* | --sit=*)
1228 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231 srcdir=$ac_optarg ;;
1233 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234 | --syscon | --sysco | --sysc | --sys | --sy)
1235 ac_prev=sysconfdir ;;
1236 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238 sysconfdir=$ac_optarg ;;
1240 -target | --target | --targe | --targ | --tar | --ta | --t)
1241 ac_prev=target_alias ;;
1242 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243 target_alias=$ac_optarg ;;
1245 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 -version | --version | --versio | --versi | --vers | -V)
1249 ac_init_version=: ;;
1252 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255 as_fn_error $? "invalid package name: $ac_useropt"
1256 ac_useropt_orig=$ac_useropt
1257 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep=', ';;
1265 eval with_$ac_useropt=\$ac_optarg ;;
1267 -without-* | --without-*)
1268 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271 as_fn_error $? "invalid package name: $ac_useropt"
1272 ac_useropt_orig=$ac_useropt
1273 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep=', ';;
1281 eval with_$ac_useropt=no ;;
1284 # Obsolete; use --with-x.
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1301 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' | [0-9]* | *[!_$as_cr_alnum]* )
1310 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1312 eval $ac_envvar=\$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $? "missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1334 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 # Check all directory arguments for consistency.
1340 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val=\$$ac_var
1346 # Remove trailing slashes.
1349 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\$ac_val;;
1352 # Be sure to have absolute directory names.
1354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1357 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379 test "$silent" = yes && exec 6>/dev/null
1382 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di=`ls -di .` &&
1384 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $? "working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $? "pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1426 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var in $ac_precious_vars; do
1443 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_${ac_var}_value=\$${ac_var}
1445 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures libgcrypt 1.8.3 to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcrypt]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of libgcrypt 1.8.3:";;
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-silent-rules less verbose build output (undo: "make V=1")
1535 --disable-silent-rules verbose build output (undo: "make V=0")
1536 --enable-maintainer-mode
1537 enable make rules and dependencies not useful (and
1538 sometimes confusing) to the casual installer
1539 --enable-dependency-tracking
1540 do not reject slow dependency extractors
1541 --disable-dependency-tracking
1542 speeds up one-time build
1543 --enable-static[=PKGS] build static libraries [default=no]
1544 --enable-shared[=PKGS] build shared libraries [default=yes]
1545 --enable-fast-install[=PKGS]
1546 optimize for fast installation [default=yes]
1547 --disable-libtool-lock avoid locking (might break parallel builds)
1548 --disable-endian-check disable the endian check and trust the OS provided
1550 --enable-ciphers=ciphers
1551 select the symmetric ciphers to include
1552 --enable-pubkey-ciphers=ciphers
1553 select the public-key ciphers to include
1554 --enable-digests=digests
1555 select the message digests to include
1556 --enable-kfds=kdfs select the KDFs to include
1557 --enable-random=name select which random number generator to use
1558 --disable-dev-random disable the use of dev random
1559 --enable-random-daemon Build and support the experimental gcryptrnd
1560 --disable-asm Disable MPI assembler modules
1561 --enable-m-guard Enable memory guard facility
1562 --enable-large-data-tests
1563 Enable the real long ruinning large data tests
1564 --enable-hmac-binary-check
1565 Enable library integrity check
1566 --disable-jent-support Disable support for the Jitter entropy collector
1567 --disable-padlock-support
1568 Disable support for the PadLock Engine of VIA
1570 --disable-aesni-support Disable support for the Intel AES-NI instructions
1571 --disable-pclmul-support
1572 Disable support for the Intel PCLMUL instructions
1573 --disable-sse41-support Disable support for the Intel SSE4.1 instructions
1574 --disable-drng-support Disable support for the Intel DRNG (RDRAND
1576 --disable-avx-support Disable support for the Intel AVX instructions
1577 --disable-avx2-support Disable support for the Intel AVX2 instructions
1578 --disable-neon-support Disable support for the ARM NEON instructions
1579 --disable-arm-crypto-support
1580 Disable support for the ARMv8 Crypto Extension
1582 --disable-O-flag-munging
1583 Disable modification of the cc -O flag
1584 --disable-amd64-as-feature-detection
1585 Disable the auto-detection of AMD64 as(1) features
1586 --enable-ld-version-script
1587 enable/disable use of linker version script.
1588 (default is system dependent)
1589 --enable-mpi-path=EXTRA_PATH
1590 prepend EXTRA_PATH to list of CPU specific
1592 --disable-optimization disable compiler optimization
1593 --disable-noexecstack disable non executable stack support
1594 --disable-doc do not build the documentation
1595 --enable-build-timestamp
1596 set an explicit build timestamp for reproducibility.
1597 (default is the current time in ISO-8601 format)
1600 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1601 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1602 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1604 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1605 --with-sysroot=DIR Search for dependent libraries within DIR
1606 (or the compiler's sysroot if not specified).
1607 --with-egd-socket=NAME Use NAME for the EGD socket)
1608 --with-capabilities Use linux capabilities [default=no]
1609 --with-libgpg-error-prefix=PFX
1610 prefix where GPG Error is installed (optional)
1612 --with-pth-prefix=PFX prefix where GNU Pth is installed (optional)
1614 Some influential environment variables:
1615 SYSROOT locate config scripts also below that directory
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1624 CCAS assembler compiler command (defaults to CC)
1625 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1627 build system C compiler
1629 Use these variables to override the choices made by `configure' or to help
1630 it to find libraries and programs with nonstandard names/locations.
1632 Report bugs to <http://bugs.gnupg.org>.
1637 if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1649 # A ".." for each directory in $ac_dir_suffix.
1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 ac_abs_top_builddir=$ac_pwd
1657 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658 # for backward compatibility:
1659 ac_top_builddir=$ac_top_build_prefix
1662 .) # We are building in place.
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
1667 ac_srcdir=$srcdir$ac_dir_suffix;
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1684 $SHELL "$ac_srcdir/configure" --help=recursive
1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 cd "$ac_pwd" || { ac_status=$?; break; }
1692 test -n "$ac_init_help" && exit $ac_status
1693 if $ac_init_version; then
1695 libgcrypt configure 1.8.3
1696 generated by GNU Autoconf 2.69
1698 Copyright (C) 2012 Free Software Foundation, Inc.
1699 This configure script is free software; the Free Software Foundation
1700 gives unlimited permission to copy, distribute and modify it.
1705 ## ------------------------ ##
1706 ## Autoconf initialization. ##
1707 ## ------------------------ ##
1709 # ac_fn_c_try_compile LINENO
1710 # --------------------------
1711 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_compile ()
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_compile
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 test -x conftest$ac_exeext
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_link
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1835 ac_fn_c_check_header_mongrel ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1859 ac_header_compiler=no
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1875 ac_header_preproc=no
1877 rm -f conftest.err conftest.i conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 ( $as_echo "## ------------------------------------ ##
1901 ## Report this to http://bugs.gnupg.org ##
1902 ## ------------------------------------ ##"
1903 ) | sed "s/^/$as_me: WARNING: /" >&2
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909 $as_echo_n "(cached) " >&6
1911 eval "$3=\$ac_header_compiler"
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_check_header_mongrel
1921 # ac_fn_c_try_run LINENO
1922 # ----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1924 # that executables *can* be run.
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { { ac_try="$ac_link"
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>&5
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1939 { { case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_try") 2>&5
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; }; }; then :
1951 $as_echo "$as_me: program exited with status $ac_status" >&5
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=$ac_status
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1963 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1964 # -------------------------------------------------------
1965 # Tests whether HEADER exists and can be compiled using the include files in
1966 # INCLUDES, setting the cache variable VAR accordingly.
1967 ac_fn_c_check_header_compile ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if eval \${$3+:} false; then :
1973 $as_echo_n "(cached) " >&6
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1980 if ac_fn_c_try_compile "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992 } # ac_fn_c_check_header_compile
1994 # ac_fn_c_check_func LINENO FUNC VAR
1995 # ----------------------------------
1996 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1997 ac_fn_c_check_func ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2007 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2009 #define $2 innocuous_$2
2011 /* System header to define __stub macros and hopefully few prototypes,
2012 which can conflict with char $2 (); below.
2013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2014 <limits.h> exists even on freestanding compilers. */
2017 # include <limits.h>
2019 # include <assert.h>
2024 /* Override any GCC internal prototype to avoid an error.
2025 Use char because int might match the return type of a GCC
2026 builtin and then its argument prototype would still apply. */
2031 /* The GNU C library defines this for functions which it implements
2032 to always fail with ENOSYS. Some functions are actually named
2033 something starting with __ and the normal name is an alias. */
2034 #if defined __stub_$2 || defined __stub___$2
2046 if ac_fn_c_try_link "$LINENO"; then :
2051 rm -f core conftest.err conftest.$ac_objext \
2052 conftest$ac_exeext conftest.$ac_ext
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059 } # ac_fn_c_check_func
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2066 ac_fn_c_compute_int ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if test "$cross_compiling" = yes; then
2070 # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2079 return test_array [0];
2085 if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 return test_array [0];
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_hi=$ac_mid; break
2105 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile "$LINENO"; then :
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_lo=$ac_mid; break
2149 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2150 if test $ac_mid -le $ac_hi; then
2154 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 # Binary search between lo and hi bounds.
2165 while test "x$ac_lo" != "x$ac_hi"; do
2166 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2184 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2204 FILE *f = fopen ("conftest.val", "w");
2209 long int i = longval ();
2212 fprintf (f, "%ld", i);
2216 unsigned long int i = ulongval ();
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2229 if ac_fn_c_try_run "$LINENO"; then :
2230 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2235 conftest.$ac_objext conftest.beam conftest.$ac_ext
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status $ac_retval
2242 } # ac_fn_c_compute_int
2244 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2245 # -------------------------------------------
2246 # Tests whether TYPE exists after having included INCLUDES, setting cache
2247 # variable VAR accordingly.
2248 ac_fn_c_check_type ()
2250 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if eval \${$3+:} false; then :
2254 $as_echo_n "(cached) " >&6
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2269 if ac_fn_c_try_compile "$LINENO"; then :
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2282 if ac_fn_c_try_compile "$LINENO"; then :
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 } # ac_fn_c_check_type
2298 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2299 # ---------------------------------------------
2300 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2302 ac_fn_c_check_decl ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 as_decl_name=`echo $2|sed 's/ *(.*//'`
2306 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2308 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2309 if eval \${$3+:} false; then :
2310 $as_echo_n "(cached) " >&6
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2318 #ifndef $as_decl_name
2320 (void) $as_decl_use;
2322 (void) $as_decl_name;
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 } # ac_fn_c_check_decl
2343 cat >config.log <<_ACEOF
2344 This file contains any messages produced by compilers while
2345 running configure, to aid debugging if configure makes a mistake.
2347 It was created by libgcrypt $as_me 1.8.3, which was
2348 generated by GNU Autoconf 2.69. Invocation command line was
2360 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2361 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2362 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2363 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2364 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2366 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2367 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2369 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2370 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2371 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2372 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2373 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2374 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2375 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 $as_echo "PATH: $as_dir"
2400 # Keep a trace of the command line.
2401 # Strip out --no-create and --no-recursion so they do not pile up.
2402 # Strip out --silent because we don't want to record it for future runs.
2403 # Also quote any args containing shell meta-characters.
2404 # Make two passes to allow for proper duplicate-argument suppression.
2408 ac_must_keep_next=false
2414 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2415 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2416 | -silent | --silent | --silen | --sile | --sil)
2419 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2422 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 as_fn_append ac_configure_args1 " '$ac_arg'"
2425 if test $ac_must_keep_next = true; then
2426 ac_must_keep_next=false # Got value, back to normal.
2429 *=* | --config-cache | -C | -disable-* | --disable-* \
2430 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2431 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2432 | -with-* | --with-* | -without-* | --without-* | --x)
2433 case "$ac_configure_args0 " in
2434 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2437 -* ) ac_must_keep_next=true ;;
2440 as_fn_append ac_configure_args " '$ac_arg'"
2445 { ac_configure_args0=; unset ac_configure_args0;}
2446 { ac_configure_args1=; unset ac_configure_args1;}
2448 # When interrupted or exit'd, cleanup temporary files, and complete
2449 # config.log. We remove comments because anyway the quotes in there
2450 # would cause problems or look ugly.
2451 # WARNING: Use '\'' to represent an apostrophe within the trap.
2452 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2453 trap 'exit_status=$?
2454 # Save into config.log some information that might help in debugging.
2458 $as_echo "## ---------------- ##
2459 ## Cache variables. ##
2460 ## ---------------- ##"
2462 # The following way of writing the cache mishandles newlines in values,
2464 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2465 eval ac_val=\$$ac_var
2469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2473 _ | IFS | as_nl) ;; #(
2474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2475 *) { eval $ac_var=; unset $ac_var;} ;;
2480 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2481 *${as_nl}ac_space=\ *)
2483 "s/'\''/'\''\\\\'\'''\''/g;
2484 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 $as_echo "## ----------------- ##
2495 ## Output variables. ##
2496 ## ----------------- ##"
2498 for ac_var in $ac_subst_vars
2500 eval ac_val=\$$ac_var
2502 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 $as_echo "$ac_var='\''$ac_val'\''"
2508 if test -n "$ac_subst_files"; then
2509 $as_echo "## ------------------- ##
2510 ## File substitutions. ##
2511 ## ------------------- ##"
2513 for ac_var in $ac_subst_files
2515 eval ac_val=\$$ac_var
2517 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 $as_echo "$ac_var='\''$ac_val'\''"
2524 if test -s confdefs.h; then
2525 $as_echo "## ----------- ##
2532 test "$ac_signal" != 0 &&
2533 $as_echo "$as_me: caught signal $ac_signal"
2534 $as_echo "$as_me: exit $exit_status"
2536 rm -f core *.core core.conftest.* &&
2537 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2540 for ac_signal in 1 2 13 15; do
2541 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2545 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2546 rm -f -r conftest* confdefs.h
2548 $as_echo "/* confdefs.h */" > confdefs.h
2550 # Predefined preprocessor variables.
2552 cat >>confdefs.h <<_ACEOF
2553 #define PACKAGE_NAME "$PACKAGE_NAME"
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_STRING "$PACKAGE_STRING"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_URL "$PACKAGE_URL"
2577 # Let the site file select an alternate cache file if it wants to.
2578 # Prefer an explicitly selected file to automatically selected ones.
2581 if test -n "$CONFIG_SITE"; then
2582 # We do not want a PATH search for config.site.
2583 case $CONFIG_SITE in #((
2584 -*) ac_site_file1=./$CONFIG_SITE;;
2585 */*) ac_site_file1=$CONFIG_SITE;;
2586 *) ac_site_file1=./$CONFIG_SITE;;
2588 elif test "x$prefix" != xNONE; then
2589 ac_site_file1=$prefix/share/config.site
2590 ac_site_file2=$prefix/etc/config.site
2592 ac_site_file1=$ac_default_prefix/share/config.site
2593 ac_site_file2=$ac_default_prefix/etc/config.site
2595 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2597 test "x$ac_site_file" = xNONE && continue
2598 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2600 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2601 sed 's/^/| /' "$ac_site_file" >&5
2603 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2605 as_fn_error $? "failed to load site script $ac_site_file
2606 See \`config.log' for more details" "$LINENO" 5; }
2610 if test -r "$cache_file"; then
2611 # Some versions of bash will fail to source /dev/null (special files
2612 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2613 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2615 $as_echo "$as_me: loading cache $cache_file" >&6;}
2617 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2618 *) . "./$cache_file";;
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2623 $as_echo "$as_me: creating cache $cache_file" >&6;}
2627 # Check that the precious variables saved in the cache have kept the same
2629 ac_cache_corrupted=false
2630 for ac_var in $ac_precious_vars; do
2631 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2632 eval ac_new_set=\$ac_env_${ac_var}_set
2633 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2634 eval ac_new_val=\$ac_env_${ac_var}_value
2635 case $ac_old_set,$ac_new_set in
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2638 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2639 ac_cache_corrupted=: ;;
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2642 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2643 ac_cache_corrupted=: ;;
2646 if test "x$ac_old_val" != "x$ac_new_val"; then
2647 # differences in whitespace do not lead to failure.
2648 ac_old_val_w=`echo x $ac_old_val`
2649 ac_new_val_w=`echo x $ac_new_val`
2650 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2652 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2653 ac_cache_corrupted=:
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2656 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2657 eval $ac_var=\$ac_old_val
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2660 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2662 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2665 # Pass precious variables to config.status.
2666 if test "$ac_new_set" = set; then
2668 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 *) ac_arg=$ac_var=$ac_new_val ;;
2671 case " $ac_configure_args " in
2672 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2673 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2677 if $ac_cache_corrupted; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2681 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2682 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2684 ## -------------------- ##
2685 ## Main body of script. ##
2686 ## -------------------- ##
2689 ac_cpp='$CPP $CPPFLAGS'
2690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696 # LT Version numbers, remember to change them just *before* a release.
2697 # (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
2698 # (Interfaces added: CURRENT++, AGE++, REVISION=0)
2699 # (No interfaces changed: REVISION++)
2700 LIBGCRYPT_LT_CURRENT=22
2702 LIBGCRYPT_LT_REVISION=3
2705 # If the API is changed in an incompatible way: increment the next counter.
2707 # 1.6: ABI and API change but the change is to most users irrelevant
2708 # and thus the API version number has not been incremented.
2709 LIBGCRYPT_CONFIG_API_VERSION=1
2711 # If you change the required gpg-error version, please remove
2712 # unnecessary error code defines in src/gcrypt-int.h.
2713 NEED_GPG_ERROR_VERSION=1.25
2715 PACKAGE=$PACKAGE_NAME
2716 VERSION=$PACKAGE_VERSION
2719 for ac_dir in build-aux "$srcdir"/build-aux; do
2720 if test -f "$ac_dir/install-sh"; then
2722 ac_install_sh="$ac_aux_dir/install-sh -c"
2724 elif test -f "$ac_dir/install.sh"; then
2726 ac_install_sh="$ac_aux_dir/install.sh -c"
2728 elif test -f "$ac_dir/shtool"; then
2730 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 if test -z "$ac_aux_dir"; then
2735 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2738 # These three variables are undocumented and unsupported,
2739 # and are intended to be withdrawn in a future Autoconf release.
2740 # They can cause serious problems if a builder's source tree is in a directory
2741 # whose full name contains unusual characters.
2742 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2743 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2744 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2748 am__api_version='1.14'
2750 # Find a good install program. We prefer a C program (faster),
2751 # so one script is as good as another. But avoid the broken or
2752 # incompatible versions:
2753 # SysV /etc/install, /usr/sbin/install
2754 # SunOS /usr/etc/install
2755 # IRIX /sbin/install
2757 # AmigaOS /C/install, which installs bootblocks on floppy discs
2758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2761 # OS/2's system install, which has a completely different semantic
2762 # ./install, which can be erroneously created by make from ./install.sh.
2763 # Reject install programs that cannot install multiple files.
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2765 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2766 if test -z "$INSTALL"; then
2767 if ${ac_cv_path_install+:} false; then :
2768 $as_echo_n "(cached) " >&6
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir=.
2775 # Account for people who put trailing slashes in PATH elements.
2776 case $as_dir/ in #((
2777 ./ | .// | /[cC]/* | \
2778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2779 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2782 # OSF1 and SCO ODT 3.0 have their own names for install.
2783 # Don't use installbsd from OSF since it installs stuff as root
2785 for ac_prog in ginstall scoinst install; do
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2788 if test $ac_prog = install &&
2789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2790 # AIX install. It has an incompatible calling convention.
2792 elif test $ac_prog = install &&
2793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2794 # program-specific install script used by HP pwplus--don't use.
2797 rm -rf conftest.one conftest.two conftest.dir
2798 echo one > conftest.one
2799 echo two > conftest.two
2801 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2802 test -s conftest.one && test -s conftest.two &&
2803 test -s conftest.dir/conftest.one &&
2804 test -s conftest.dir/conftest.two
2806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2819 rm -rf conftest.one conftest.two conftest.dir
2822 if test "${ac_cv_path_install+set}" = set; then
2823 INSTALL=$ac_cv_path_install
2825 # As a last resort, use the slow shell script. Don't cache a
2826 # value for INSTALL within a source directory, because that will
2827 # break other packages using the cache if that directory is
2828 # removed, or if the value is a relative name.
2829 INSTALL=$ac_install_sh
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2833 $as_echo "$INSTALL" >&6; }
2835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2836 # It thinks the first close brace ends the variable substitution.
2837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2841 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2844 $as_echo_n "checking whether build environment is sane... " >&6; }
2845 # Reject unsafe characters in $srcdir or the absolute working directory
2846 # name. Accept space and tab only in the latter.
2850 *[\\\"\#\$\&\'\`$am_lf]*)
2851 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2854 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2855 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2858 # Do 'set' in a subshell so we don't clobber the current shell's
2859 # arguments. Must try -L first in case configure is actually a
2860 # symlink; some systems play weird games with the mod time of symlinks
2861 # (eg FreeBSD returns the mod time of the symlink's containing
2865 for am_try in 1 2; do
2866 echo "timestamp, slept: $am_has_slept" > conftest.file
2867 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2868 if test "$*" = "X"; then
2870 set X `ls -t "$srcdir/configure" conftest.file`
2872 if test "$*" != "X $srcdir/configure conftest.file" \
2873 && test "$*" != "X conftest.file $srcdir/configure"; then
2875 # If neither matched, then we have a broken ls. This can happen
2876 # if, for instance, CONFIG_SHELL is bash and it inherits a
2877 # broken ls alias from the environment. This has actually
2878 # happened. Such a system could not be considered "sane".
2879 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2880 alias in your environment" "$LINENO" 5
2882 if test "$2" = conftest.file || test $am_try -eq 2; then
2889 test "$2" = conftest.file
2895 as_fn_error $? "newly created file is older than distributed files!
2896 Check your system clock" "$LINENO" 5
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 # If we didn't sleep, we still need to ensure time stamps of config.status and
2901 # generated files are strictly newer.
2903 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2910 test "$program_prefix" != NONE &&
2911 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2912 # Use a double $ so make ignores it.
2913 test "$program_suffix" != NONE &&
2914 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2915 # Double any \ or $.
2916 # By default was `s,x,x', remove it if useless.
2917 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2918 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2920 # Expand $ac_aux_dir to an absolute path.
2921 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2923 if test x"${MISSING+set}" != xset; then
2926 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2928 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2931 # Use eval to expand $SHELL
2932 if eval "$MISSING --is-lightweight"; then
2933 am_missing_run="$MISSING "
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2937 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2940 if test x"${install_sh}" != xset; then
2943 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2945 install_sh="\${SHELL} $am_aux_dir/install-sh"
2949 # Installed binaries are usually stripped using 'strip' when the user
2950 # run "make install-strip". However 'strip' might not be the right
2951 # tool to use in cross-compilation environments, therefore Automake
2952 # will honor the 'STRIP' environment variable to overrule this program.
2953 if test "$cross_compiling" != no; then
2954 if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}strip; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if ${ac_cv_prog_STRIP+:} false; then :
2960 $as_echo_n "(cached) " >&6
2962 if test -n "$STRIP"; then
2963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2972 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 STRIP=$ac_cv_prog_STRIP
2983 if test -n "$STRIP"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2985 $as_echo "$STRIP" >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2993 if test -z "$ac_cv_prog_STRIP"; then
2995 # Extract the first word of "strip", so it can be a program name with args.
2996 set dummy strip; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_STRIP"; then
3003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_STRIP="strip"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3023 if test -n "$ac_ct_STRIP"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3025 $as_echo "$ac_ct_STRIP" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3031 if test "x$ac_ct_STRIP" = x; then
3034 case $cross_compiling:$ac_tool_warned in
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3043 STRIP="$ac_cv_prog_STRIP"
3047 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3050 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3051 if test -z "$MKDIR_P"; then
3052 if ${ac_cv_path_mkdir+:} false; then :
3053 $as_echo_n "(cached) " >&6
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3059 test -z "$as_dir" && as_dir=.
3060 for ac_prog in mkdir gmkdir; do
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3063 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3064 'mkdir (GNU coreutils) '* | \
3065 'mkdir (coreutils) '* | \
3066 'mkdir (fileutils) '4.1*)
3067 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3077 test -d ./--version && rmdir ./--version
3078 if test "${ac_cv_path_mkdir+set}" = set; then
3079 MKDIR_P="$ac_cv_path_mkdir -p"
3081 # As a last resort, use the slow shell script. Don't cache a
3082 # value for MKDIR_P within a source directory, because that will
3083 # break other packages using the cache if that directory is
3084 # removed, or if the value is a relative name.
3085 MKDIR_P="$ac_install_sh -d"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3089 $as_echo "$MKDIR_P" >&6; }
3091 for ac_prog in gawk mawk nawk awk
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_AWK+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$AWK"; then
3101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_AWK="$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$AWK"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3123 $as_echo "$AWK" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$AWK" && break
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3134 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3137 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 cat >conftest.make <<\_ACEOF
3143 @echo '@@@%%%=$(MAKE)=@@@%%%'
3145 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3146 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148 eval ac_cv_prog_make_${ac_make}_set=yes;;
3150 eval ac_cv_prog_make_${ac_make}_set=no;;
3154 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3156 $as_echo "yes" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 SET_MAKE="MAKE=${MAKE-make}"
3164 rm -rf .tst 2>/dev/null
3165 mkdir .tst 2>/dev/null
3166 if test -d .tst; then
3171 rmdir .tst 2>/dev/null
3173 # Check whether --enable-silent-rules was given.
3174 if test "${enable_silent_rules+set}" = set; then :
3175 enableval=$enable_silent_rules;
3178 case $enable_silent_rules in # (((
3179 yes) AM_DEFAULT_VERBOSITY=0;;
3180 no) AM_DEFAULT_VERBOSITY=1;;
3181 *) AM_DEFAULT_VERBOSITY=1;;
3183 am_make=${MAKE-make}
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3185 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3186 if ${am_cv_make_support_nested_variables+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 if $as_echo 'TRUE=$(BAR$(V))
3195 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3196 am_cv_make_support_nested_variables=yes
3198 am_cv_make_support_nested_variables=no
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3202 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3203 if test $am_cv_make_support_nested_variables = yes; then
3205 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3207 AM_V=$AM_DEFAULT_VERBOSITY
3208 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3212 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3213 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3214 # is not polluted with repeated "-I."
3215 am__isrc=' -I$(srcdir)'
3216 # test to see if srcdir already configured
3217 if test -f $srcdir/config.status; then
3218 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3222 # test whether we have cygpath
3223 if test -z "$CYGPATH_W"; then
3224 if (cygpath --version) >/dev/null 2>/dev/null; then
3225 CYGPATH_W='cygpath -w'
3232 # Define the identity of the package.
3237 cat >>confdefs.h <<_ACEOF
3238 #define PACKAGE "$PACKAGE"
3242 cat >>confdefs.h <<_ACEOF
3243 #define VERSION "$VERSION"
3246 # Some tools Automake needs.
3248 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3251 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3254 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3257 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3260 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3262 # For better backward compatibility. To be removed once Automake 1.9.x
3263 # dies out for good. For more background, see:
3264 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3265 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3266 mkdir_p='$(MKDIR_P)'
3268 # We need awk for the "check" target. The system "awk" is bad on
3270 # Always define AMTAR for backward compatibility. Yes, it's still used
3271 # in the wild :-( We should find a proper way to deprecate it ...
3275 # We'll loop over all known methods to create a tar archive until one works.
3276 _am_tools='gnutar pax cpio none'
3278 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3285 # POSIX will say in a future version that running "rm -f" with no argument
3286 # is OK; and we want to be able to make that assumption in our Makefile
3287 # recipes. So use an aggressive probe to check that the usage we want is
3288 # actually supported "in the wild" to an acceptable degree.
3289 # See automake bug#10828.
3290 # To make any issue more visible, cause the running configure to be aborted
3291 # by default if the 'rm' program in use doesn't match our expectations; the
3292 # user can still override this though.
3293 if rm -f && rm -fr && rm -rf; then : OK; else
3297 Your 'rm' program seems unable to run without file operands specified
3298 on the command line, even when the '-f' option is present. This is contrary
3299 to the behaviour of most rm programs out there, and not conforming with
3300 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3302 Please tell bug-automake@gnu.org about your system, including the value
3303 of your $PATH and any error possibly output before this message. This
3304 can help us improve future automake versions.
3307 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3308 echo 'Configuration will proceed anyway, since you have set the' >&2
3309 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3313 Aborting the configuration process, to ensure you take notice of the issue.
3315 You can download and install GNU coreutils to get an 'rm' implementation
3316 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3318 If you want to complete the configuration process using your problematic
3319 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3320 to "yes", and re-run configure.
3323 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3327 ac_config_headers="$ac_config_headers config.h"
3331 # Make sure we can run config.sub.
3332 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3333 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3336 $as_echo_n "checking build system type... " >&6; }
3337 if ${ac_cv_build+:} false; then :
3338 $as_echo_n "(cached) " >&6
3340 ac_build_alias=$build_alias
3341 test "x$ac_build_alias" = x &&
3342 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3343 test "x$ac_build_alias" = x &&
3344 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3350 $as_echo "$ac_cv_build" >&6; }
3351 case $ac_cv_build in
3353 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3356 ac_save_IFS=$IFS; IFS='-'
3362 # Remember, the first character of IFS is used to create $*,
3363 # except with old shells:
3366 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3370 $as_echo_n "checking host system type... " >&6; }
3371 if ${ac_cv_host+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test "x$host_alias" = x; then
3375 ac_cv_host=$ac_cv_build
3377 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3383 $as_echo "$ac_cv_host" >&6; }
3386 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3389 ac_save_IFS=$IFS; IFS='-'
3395 # Remember, the first character of IFS is used to create $*,
3396 # except with old shells:
3399 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3404 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3405 # Check whether --enable-maintainer-mode was given.
3406 if test "${enable_maintainer_mode+set}" = set; then :
3407 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3409 USE_MAINTAINER_MODE=no
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3413 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3414 if test $USE_MAINTAINER_MODE = yes; then
3415 MAINTAINER_MODE_TRUE=
3416 MAINTAINER_MODE_FALSE='#'
3418 MAINTAINER_MODE_TRUE='#'
3419 MAINTAINER_MODE_FALSE=
3422 MAINT=$MAINTAINER_MODE_TRUE
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
3480 cat >>confdefs.h <<_ACEOF
3481 #define PACKAGE "$PACKAGE"
3485 cat >>confdefs.h <<_ACEOF
3486 #define VERSION "$VERSION"
3489 VERSION_NUMBER=0x010803
3493 ######################
3494 ## Basic checks. ### (we need some results later on (e.g. $GCC)
3495 ######################
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3498 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3500 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3501 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 cat >conftest.make <<\_ACEOF
3507 @echo '@@@%%%=$(MAKE)=@@@%%%'
3509 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3512 eval ac_cv_prog_make_${ac_make}_set=yes;;
3514 eval ac_cv_prog_make_${ac_make}_set=no;;
3518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3520 $as_echo "yes" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 SET_MAKE="MAKE=${MAKE-make}"
3528 missing_dir=`cd $ac_aux_dir && pwd`
3530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
3533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
3539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3541 # AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 if test -n "$ac_tool_prefix"; then
3548 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3549 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if ${ac_cv_prog_CC+:} false; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$CC"; then
3556 ac_cv_prog_CC="$CC" # Let the user override the test.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 $as_echo "$CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3586 if test -z "$ac_cv_prog_CC"; then
3588 # Extract the first word of "gcc", so it can be a program name with args.
3589 set dummy gcc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$ac_ct_CC"; then
3596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_prog_ac_ct_CC="gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3616 if test -n "$ac_ct_CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3618 $as_echo "$ac_ct_CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3624 if test "x$ac_ct_CC" = x; then
3627 case $cross_compiling:$ac_tool_warned in
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3631 ac_tool_warned=yes ;;
3639 if test -z "$CC"; then
3640 if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3642 set dummy ${ac_tool_prefix}cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if ${ac_cv_prog_CC+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3658 ac_cv_prog_CC="${ac_tool_prefix}cc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671 $as_echo "$CC" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3680 if test -z "$CC"; then
3681 # Extract the first word of "cc", so it can be a program name with args.
3682 set dummy cc; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_CC+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC="$CC" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3700 ac_prog_rejected=yes
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 if test $ac_prog_rejected = yes; then
3712 # We found a bogon in the path, so make sure we never use it.
3713 set dummy $ac_cv_prog_CC
3715 if test $# != 0; then
3716 # We chose a different compiler from the bogus one.
3717 # However, it has the same basename, so the bogon will be chosen
3718 # first if we set CC to just the basename; use the full file name.
3720 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3736 if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 for ac_prog in cl.exe
3740 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3741 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if ${ac_cv_prog_CC+:} false; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3777 test -n "$CC" && break
3780 if test -z "$CC"; then
3782 for ac_prog in cl.exe
3784 # Extract the first word of "$ac_prog", so it can be a program name with args.
3785 set dummy $ac_prog; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$ac_ct_CC"; then
3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_ac_ct_CC="$ac_prog"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3812 if test -n "$ac_ct_CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3814 $as_echo "$ac_ct_CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3821 test -n "$ac_ct_CC" && break
3824 if test "x$ac_ct_CC" = x; then
3827 case $cross_compiling:$ac_tool_warned in
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3831 ac_tool_warned=yes ;;
3840 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "no acceptable C compiler found in \$PATH
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 # Provide some information about the compiler.
3846 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3849 for ac_option in --version -v -V -qversion; do
3850 { { ac_try="$ac_compiler $ac_option >&5"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3859 if test -s conftest.err; then
3861 ... rest of stderr output deleted ...
3862 10q' conftest.err >conftest.er1
3863 cat conftest.er1 >&5
3865 rm -f conftest.er1 conftest.err
3866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3867 test $ac_status = 0; }
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3881 ac_clean_files_save=$ac_clean_files
3882 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3883 # Try to create an executable without -o first, disregard a.out.
3884 # It will help us diagnose broken compilers, and finding out an intuition
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3887 $as_echo_n "checking whether the C compiler works... " >&6; }
3888 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3890 # The possible output files:
3891 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3894 for ac_file in $ac_files
3897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3898 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3903 if { { ac_try="$ac_link_default"
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_link_default") 2>&5
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3915 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3916 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3917 # so that the user can short-circuit this test for compilers unknown to
3919 for ac_file in $ac_files ''
3921 test -f "$ac_file" || continue
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3926 # We found the default executable, but exeext='' is most
3930 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3932 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3934 # We set ac_cv_exeext here because the later test for it is not
3935 # safe: cross compilers may not add the suffix if given an `-o'
3936 # argument, so we may need to know it at that point already.
3937 # Even if this section looks crufty: it has the advantage of
3944 test "$ac_cv_exeext" = no && ac_cv_exeext=
3949 if test -z "$ac_file"; then :
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 $as_echo "no" >&6; }
3952 $as_echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error 77 "C compiler cannot create executables
3958 See \`config.log' for more details" "$LINENO" 5; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3961 $as_echo "yes" >&6; }
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3964 $as_echo_n "checking for C compiler default output file name... " >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3966 $as_echo "$ac_file" >&6; }
3967 ac_exeext=$ac_cv_exeext
3969 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3970 ac_clean_files=$ac_clean_files_save
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3972 $as_echo_n "checking for suffix of executables... " >&6; }
3973 if { { ac_try="$ac_link"
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3979 $as_echo "$ac_try_echo"; } >&5
3980 (eval "$ac_link") 2>&5
3982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3983 test $ac_status = 0; }; then :
3984 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3985 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3986 # work properly (i.e., refer to `conftest.exe'), while it won't with
3988 for ac_file in conftest.exe conftest conftest.*; do
3989 test -f "$ac_file" || continue
3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3992 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4001 See \`config.log' for more details" "$LINENO" 5; }
4003 rm -f conftest conftest$ac_cv_exeext
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4005 $as_echo "$ac_cv_exeext" >&6; }
4007 rm -f conftest.$ac_ext
4008 EXEEXT=$ac_cv_exeext
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4016 FILE *f = fopen ("conftest.out", "w");
4017 return ferror (f) || fclose (f) != 0;
4023 ac_clean_files="$ac_clean_files conftest.out"
4024 # Check that the compiler produces executables we can run. If not, either
4025 # the compiler is broken, or we cross compile.
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4027 $as_echo_n "checking whether we are cross compiling... " >&6; }
4028 if test "$cross_compiling" != yes; then
4029 { { ac_try="$ac_link"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040 if { ac_try='./conftest$ac_cv_exeext'
4041 { { case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_try") 2>&5
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; }; then
4053 if test "$cross_compiling" = maybe; then
4056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4058 as_fn_error $? "cannot run C compiled programs.
4059 If you meant to cross compile, use \`--host'.
4060 See \`config.log' for more details" "$LINENO" 5; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4065 $as_echo "$cross_compiling" >&6; }
4067 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4068 ac_clean_files=$ac_clean_files_save
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4070 $as_echo_n "checking for suffix of object files... " >&6; }
4071 if ${ac_cv_objext+:} false; then :
4072 $as_echo_n "(cached) " >&6
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 rm -f conftest.o conftest.obj
4086 if { { ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4092 $as_echo "$ac_try_echo"; } >&5
4093 (eval "$ac_compile") 2>&5
4095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4096 test $ac_status = 0; }; then :
4097 for ac_file in conftest.o conftest.obj conftest.*; do
4098 test -f "$ac_file" || continue;
4100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4101 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4106 $as_echo "$as_me: failed program was:" >&5
4107 sed 's/^/| /' conftest.$ac_ext >&5
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111 as_fn_error $? "cannot compute suffix of object files: cannot compile
4112 See \`config.log' for more details" "$LINENO" 5; }
4114 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4117 $as_echo "$ac_cv_objext" >&6; }
4118 OBJEXT=$ac_cv_objext
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4121 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4122 if ${ac_cv_c_compiler_gnu+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4139 if ac_fn_c_try_compile "$LINENO"; then :
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4149 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4150 if test $ac_compiler_gnu = yes; then
4155 ac_test_CFLAGS=${CFLAGS+set}
4156 ac_save_CFLAGS=$CFLAGS
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4158 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4159 if ${ac_cv_prog_cc_g+:} false; then :
4160 $as_echo_n "(cached) " >&6
4162 ac_save_c_werror_flag=$ac_c_werror_flag
4163 ac_c_werror_flag=yes
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4177 if ac_fn_c_try_compile "$LINENO"; then :
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4192 if ac_fn_c_try_compile "$LINENO"; then :
4195 ac_c_werror_flag=$ac_save_c_werror_flag
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4208 if ac_fn_c_try_compile "$LINENO"; then :
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_c_werror_flag=$ac_save_c_werror_flag
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4219 $as_echo "$ac_cv_prog_cc_g" >&6; }
4220 if test "$ac_test_CFLAGS" = set; then
4221 CFLAGS=$ac_save_CFLAGS
4222 elif test $ac_cv_prog_cc_g = yes; then
4223 if test "$GCC" = yes; then
4229 if test "$GCC" = yes; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4236 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4237 if ${ac_cv_prog_cc_c89+:} false; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_cv_prog_cc_c89=no
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4247 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4248 struct buf { int x; };
4249 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4250 static char *e (p, i)
4256 static char *f (char * (*g) (char **, int), char **p, ...)
4261 s = g (p, va_arg (v,int));
4266 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4267 function prototypes and stuff, but not '\xHH' hex character constants.
4268 These don't provoke an error unfortunately, instead are silently treated
4269 as 'x'. The following induces an error, until -std is added to get
4270 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4271 array size at least. It's necessary to write '\x00'==0 to get something
4272 that's true only with -std. */
4273 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4275 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4276 inside strings and character constants. */
4278 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4280 int test (int i, double x);
4281 struct s1 {int (*f) (int a);};
4282 struct s2 {int (*f) (double a);};
4283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4294 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4295 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 CC="$ac_save_CC $ac_arg"
4298 if ac_fn_c_try_compile "$LINENO"; then :
4299 ac_cv_prog_cc_c89=$ac_arg
4301 rm -f core conftest.err conftest.$ac_objext
4302 test "x$ac_cv_prog_cc_c89" != "xno" && break
4304 rm -f conftest.$ac_ext
4309 case "x$ac_cv_prog_cc_c89" in
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4312 $as_echo "none needed" >&6; } ;;
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4315 $as_echo "unsupported" >&6; } ;;
4317 CC="$CC $ac_cv_prog_cc_c89"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4319 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4321 if test "x$ac_cv_prog_cc_c89" != xno; then :
4326 ac_cpp='$CPP $CPPFLAGS'
4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4338 if ${am_cv_prog_cc_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4352 # Make sure it works both with $CC and with simple cc.
4353 # Following AC_PROG_CC_C_O, we do the test twice because some
4354 # compilers refuse to overwrite an existing .o file with -o,
4355 # though they will create one.
4356 am_cv_prog_cc_c_o=yes
4358 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4359 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); } \
4363 && test -f conftest2.$ac_objext; then
4366 am_cv_prog_cc_c_o=no
4370 rm -f core conftest*
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4374 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4375 if test "$am_cv_prog_cc_c_o" != yes; then
4376 # Losing compiler, so override with the script.
4377 # FIXME: It is wrong to rewrite CC.
4378 # But if we don't then we get into trouble of one sort or another.
4379 # A longer-term fix would be to have automake use am__CC in this case,
4380 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4381 CC="$am_aux_dir/compile $CC"
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389 DEPDIR="${am__leading_dot}deps"
4391 ac_config_commands="$ac_config_commands depfiles"
4394 am_make=${MAKE-make}
4395 cat > confinc << 'END'
4397 @echo this is the am__doit target
4400 # If we don't find an include directive, just comment out the code.
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4402 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4406 # First try GNU make style include.
4407 echo "include confinc" > confmf
4408 # Ignore all kinds of additional output from 'make'.
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4416 # Now try BSD make style include.
4417 if test "$am__include" = "#"; then
4418 echo '.include "confinc"' > confmf
4419 case `$am_make -s -f confmf 2> /dev/null` in #(
4420 *the\ am__doit\ target*)
4421 am__include=.include
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4430 $as_echo "$_am_result" >&6; }
4431 rm -f confinc confmf
4433 # Check whether --enable-dependency-tracking was given.
4434 if test "${enable_dependency_tracking+set}" = set; then :
4435 enableval=$enable_dependency_tracking;
4438 if test "x$enable_dependency_tracking" != xno; then
4439 am_depcomp="$ac_aux_dir/depcomp"
4443 if test "x$enable_dependency_tracking" != xno; then
4453 depcc="$CC" am_compiler_list=
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4456 $as_echo_n "checking dependency style of $depcc... " >&6; }
4457 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4461 # We make a subdir and do the tests there. Otherwise we can end up
4462 # making bogus files that we don't know about and never remove. For
4463 # instance it was reported that on HP-UX the gcc test will end up
4464 # making a dummy file named 'D' -- because '-MD' means "put the output
4468 # Copy depcomp to subdir because otherwise we won't find it if we're
4469 # using a relative directory.
4470 cp "$am_depcomp" conftest.dir
4472 # We will build objects and dependencies in a subdirectory because
4473 # it helps to detect inapplicable dependency modes. For instance
4474 # both Tru64's cc and ICC support -MD to output dependencies as a
4475 # side effect of compilation, but ICC will put the dependencies in
4476 # the current directory while Tru64 will put them in the object
4480 am_cv_CC_dependencies_compiler_type=none
4481 if test "$am_compiler_list" = ""; then
4482 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4485 case " $depcc " in #(
4486 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4489 for depmode in $am_compiler_list; do
4490 # Setup a source with many dependencies, because some compilers
4491 # like to wrap large dependency lists on column 80 (with \), and
4492 # we should not choose a depcomp mode which is confused by this.
4494 # We need to recreate these files for each test, as the compiler may
4495 # overwrite some of them when testing with obscure command lines.
4496 # This happens at least with the AIX C compiler.
4498 for i in 1 2 3 4 5 6; do
4499 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4500 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4501 # Solaris 10 /bin/sh.
4502 echo '/* dummy */' > sub/conftst$i.h
4504 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4506 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4507 # mode. It turns out that the SunPro C++ compiler does not properly
4508 # handle '-M -o', and we need to detect this. Also, some Intel
4509 # versions had trouble with output in subdirs.
4510 am__obj=sub/conftest.${OBJEXT-o}
4511 am__minus_obj="-o $am__obj"
4514 # This depmode causes a compiler race in universal mode.
4515 test "$am__universal" = false || continue
4518 # After this tag, mechanisms are not by side-effect, so they'll
4519 # only be used when explicitly requested.
4520 if test "x$enable_dependency_tracking" = xyes; then
4526 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4527 # This compiler won't grok '-c -o', but also, the minuso test has
4528 # not run yet. These depmodes are late enough in the game, and
4529 # so weak that their functioning should not be impacted.
4530 am__obj=conftest.${OBJEXT-o}
4535 if depmode=$depmode \
4536 source=sub/conftest.c object=$am__obj \
4537 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4538 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4539 >/dev/null 2>conftest.err &&
4540 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4541 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4542 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4543 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4544 # icc doesn't choke on unknown options, it will just issue warnings
4545 # or remarks (even with -Werror). So we grep stderr for any message
4546 # that says an option was ignored or not supported.
4547 # When given -MP, icc 7.0 and 7.1 complain thusly:
4548 # icc: Command line warning: ignoring option '-M'; no argument required
4549 # The diagnosis changed in icc 8.0:
4550 # icc: Command line remark: option '-MP' not supported
4551 if (grep 'ignoring option' conftest.err ||
4552 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4553 am_cv_CC_dependencies_compiler_type=$depmode
4562 am_cv_CC_dependencies_compiler_type=none
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4567 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4568 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4571 test "x$enable_dependency_tracking" != xno \
4572 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4574 am__fastdepCC_FALSE='#'
4576 am__fastdepCC_TRUE='#'
4577 am__fastdepCC_FALSE=
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4587 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4588 # On Suns, sometimes $CPP names a directory.
4589 if test -n "$CPP" && test -d "$CPP"; then
4592 if test -z "$CPP"; then
4593 if ${ac_cv_prog_CPP+:} false; then :
4594 $as_echo_n "(cached) " >&6
4596 # Double quotes because CPP needs to be expanded
4597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4600 for ac_c_preproc_warn_flag in '' yes
4602 # Use a header file that comes with gcc, so configuring glibc
4603 # with a fresh cross-compiler works.
4604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4605 # <limits.h> exists even on freestanding compilers.
4606 # On the NeXT, cc -E runs the code through the compiler's parser,
4607 # not just through cpp. "Syntax error" is here to catch this case.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609 /* end confdefs.h. */
4611 # include <limits.h>
4613 # include <assert.h>
4617 if ac_fn_c_try_cpp "$LINENO"; then :
4620 # Broken: fails on valid input.
4623 rm -f conftest.err conftest.i conftest.$ac_ext
4625 # OK, works on sane cases. Now check whether nonexistent headers
4626 # can be detected and how.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4629 #include <ac_nonexistent.h>
4631 if ac_fn_c_try_cpp "$LINENO"; then :
4632 # Broken: success on invalid input.
4635 # Passes both tests.
4639 rm -f conftest.err conftest.i conftest.$ac_ext
4642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4643 rm -f conftest.i conftest.err conftest.$ac_ext
4644 if $ac_preproc_ok; then :
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4657 $as_echo "$CPP" >&6; }
4659 for ac_c_preproc_warn_flag in '' yes
4661 # Use a header file that comes with gcc, so configuring glibc
4662 # with a fresh cross-compiler works.
4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 # <limits.h> exists even on freestanding compilers.
4665 # On the NeXT, cc -E runs the code through the compiler's parser,
4666 # not just through cpp. "Syntax error" is here to catch this case.
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4670 # include <limits.h>
4672 # include <assert.h>
4676 if ac_fn_c_try_cpp "$LINENO"; then :
4679 # Broken: fails on valid input.
4682 rm -f conftest.err conftest.i conftest.$ac_ext
4684 # OK, works on sane cases. Now check whether nonexistent headers
4685 # can be detected and how.
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 #include <ac_nonexistent.h>
4690 if ac_fn_c_try_cpp "$LINENO"; then :
4691 # Broken: success on invalid input.
4694 # Passes both tests.
4698 rm -f conftest.err conftest.i conftest.$ac_ext
4701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4702 rm -f conftest.i conftest.err conftest.$ac_ext
4703 if $ac_preproc_ok; then :
4706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4708 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4709 See \`config.log' for more details" "$LINENO" 5; }
4713 ac_cpp='$CPP $CPPFLAGS'
4714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4719 # By default we simply use the C compiler to build assembly code.
4721 test "${CCAS+set}" = set || CCAS=$CC
4722 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4726 depcc="$CCAS" am_compiler_list=
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4729 $as_echo_n "checking dependency style of $depcc... " >&6; }
4730 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4731 $as_echo_n "(cached) " >&6
4733 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4734 # We make a subdir and do the tests there. Otherwise we can end up
4735 # making bogus files that we don't know about and never remove. For
4736 # instance it was reported that on HP-UX the gcc test will end up
4737 # making a dummy file named 'D' -- because '-MD' means "put the output
4741 # Copy depcomp to subdir because otherwise we won't find it if we're
4742 # using a relative directory.
4743 cp "$am_depcomp" conftest.dir
4745 # We will build objects and dependencies in a subdirectory because
4746 # it helps to detect inapplicable dependency modes. For instance
4747 # both Tru64's cc and ICC support -MD to output dependencies as a
4748 # side effect of compilation, but ICC will put the dependencies in
4749 # the current directory while Tru64 will put them in the object
4753 am_cv_CCAS_dependencies_compiler_type=none
4754 if test "$am_compiler_list" = ""; then
4755 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4760 for depmode in $am_compiler_list; do
4761 # Setup a source with many dependencies, because some compilers
4762 # like to wrap large dependency lists on column 80 (with \), and
4763 # we should not choose a depcomp mode which is confused by this.
4765 # We need to recreate these files for each test, as the compiler may
4766 # overwrite some of them when testing with obscure command lines.
4767 # This happens at least with the AIX C compiler.
4769 for i in 1 2 3 4 5 6; do
4770 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4771 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4772 # Solaris 10 /bin/sh.
4773 echo '/* dummy */' > sub/conftst$i.h
4775 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4777 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4778 # mode. It turns out that the SunPro C++ compiler does not properly
4779 # handle '-M -o', and we need to detect this. Also, some Intel
4780 # versions had trouble with output in subdirs.
4781 am__obj=sub/conftest.${OBJEXT-o}
4782 am__minus_obj="-o $am__obj"
4785 # This depmode causes a compiler race in universal mode.
4786 test "$am__universal" = false || continue
4789 # After this tag, mechanisms are not by side-effect, so they'll
4790 # only be used when explicitly requested.
4791 if test "x$enable_dependency_tracking" = xyes; then
4797 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4798 # This compiler won't grok '-c -o', but also, the minuso test has
4799 # not run yet. These depmodes are late enough in the game, and
4800 # so weak that their functioning should not be impacted.
4801 am__obj=conftest.${OBJEXT-o}
4806 if depmode=$depmode \
4807 source=sub/conftest.c object=$am__obj \
4808 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4809 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4810 >/dev/null 2>conftest.err &&
4811 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4812 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4813 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4814 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4815 # icc doesn't choke on unknown options, it will just issue warnings
4816 # or remarks (even with -Werror). So we grep stderr for any message
4817 # that says an option was ignored or not supported.
4818 # When given -MP, icc 7.0 and 7.1 complain thusly:
4819 # icc: Command line warning: ignoring option '-M'; no argument required
4820 # The diagnosis changed in icc 8.0:
4821 # icc: Command line remark: option '-MP' not supported
4822 if (grep 'ignoring option' conftest.err ||
4823 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4824 am_cv_CCAS_dependencies_compiler_type=$depmode
4833 am_cv_CCAS_dependencies_compiler_type=none
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4838 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4839 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4842 test "x$enable_dependency_tracking" != xno \
4843 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4844 am__fastdepCCAS_TRUE=
4845 am__fastdepCCAS_FALSE='#'
4847 am__fastdepCCAS_TRUE='#'
4848 am__fastdepCCAS_FALSE=
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4854 $as_echo_n "checking for library containing strerror... " >&6; }
4855 if ${ac_cv_search_strerror+:} false; then :
4856 $as_echo_n "(cached) " >&6
4858 ac_func_search_save_LIBS=$LIBS
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4862 /* Override any GCC internal prototype to avoid an error.
4863 Use char because int might match the return type of a GCC
4864 builtin and then its argument prototype would still apply. */
4877 for ac_lib in '' cposix; do
4878 if test -z "$ac_lib"; then
4879 ac_res="none required"
4882 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4884 if ac_fn_c_try_link "$LINENO"; then :
4885 ac_cv_search_strerror=$ac_res
4887 rm -f core conftest.err conftest.$ac_objext \
4889 if ${ac_cv_search_strerror+:} false; then :
4893 if ${ac_cv_search_strerror+:} false; then :
4896 ac_cv_search_strerror=no
4899 LIBS=$ac_func_search_save_LIBS
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4902 $as_echo "$ac_cv_search_strerror" >&6; }
4903 ac_res=$ac_cv_search_strerror
4904 if test "$ac_res" != no; then :
4905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4910 for ac_prog in gawk mawk nawk awk
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913 set dummy $ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 $as_echo_n "checking for $ac_word... " >&6; }
4916 if ${ac_cv_prog_AWK+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -n "$AWK"; then
4920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_AWK="$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 if test -n "$AWK"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4942 $as_echo "$AWK" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 $as_echo "no" >&6; }
4949 test -n "$AWK" && break
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4955 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4956 if ${ac_cv_path_GREP+:} false; then :
4957 $as_echo_n "(cached) " >&6
4959 if test -z "$GREP"; then
4960 ac_path_GREP_found=false
4961 # Loop through the user's path and test for each of PROGNAME-LIST
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4966 test -z "$as_dir" && as_dir=.
4967 for ac_prog in grep ggrep; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4970 as_fn_executable_p "$ac_path_GREP" || continue
4971 # Check for GNU ac_path_GREP and select it if it is found.
4972 # Check for GNU $ac_path_GREP
4973 case `"$ac_path_GREP" --version 2>&1` in
4975 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4978 $as_echo_n 0123456789 >"conftest.in"
4981 cat "conftest.in" "conftest.in" >"conftest.tmp"
4982 mv "conftest.tmp" "conftest.in"
4983 cp "conftest.in" "conftest.nl"
4984 $as_echo 'GREP' >> "conftest.nl"
4985 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4986 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4987 as_fn_arith $ac_count + 1 && ac_count=$as_val
4988 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4989 # Best one so far, save it but keep looking for a better one
4990 ac_cv_path_GREP="$ac_path_GREP"
4991 ac_path_GREP_max=$ac_count
4993 # 10*(2^10) chars as input seems more than enough
4994 test $ac_count -gt 10 && break
4996 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4999 $ac_path_GREP_found && break 3
5004 if test -z "$ac_cv_path_GREP"; then
5005 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5008 ac_cv_path_GREP=$GREP
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5013 $as_echo "$ac_cv_path_GREP" >&6; }
5014 GREP="$ac_cv_path_GREP"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5018 $as_echo_n "checking for egrep... " >&6; }
5019 if ${ac_cv_path_EGREP+:} false; then :
5020 $as_echo_n "(cached) " >&6
5022 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5023 then ac_cv_path_EGREP="$GREP -E"
5025 if test -z "$EGREP"; then
5026 ac_path_EGREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in egrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5036 as_fn_executable_p "$ac_path_EGREP" || continue
5037 # Check for GNU ac_path_EGREP and select it if it is found.
5038 # Check for GNU $ac_path_EGREP
5039 case `"$ac_path_EGREP" --version 2>&1` in
5041 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5044 $as_echo_n 0123456789 >"conftest.in"
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'EGREP' >> "conftest.nl"
5051 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_EGREP="$ac_path_EGREP"
5057 ac_path_EGREP_max=$ac_count
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5065 $ac_path_EGREP_found && break 3
5070 if test -z "$ac_cv_path_EGREP"; then
5071 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5074 ac_cv_path_EGREP=$EGREP
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5080 $as_echo "$ac_cv_path_EGREP" >&6; }
5081 EGREP="$ac_cv_path_EGREP"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5085 $as_echo_n "checking for ANSI C header files... " >&6; }
5086 if ${ac_cv_header_stdc+:} false; then :
5087 $as_echo_n "(cached) " >&6
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090 /* end confdefs.h. */
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_header_stdc=yes
5107 ac_cv_header_stdc=no
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 if test $ac_cv_header_stdc = yes; then
5112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5119 $EGREP "memchr" >/dev/null 2>&1; then :
5122 ac_cv_header_stdc=no
5128 if test $ac_cv_header_stdc = yes; then
5129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5136 $EGREP "free" >/dev/null 2>&1; then :
5139 ac_cv_header_stdc=no
5145 if test $ac_cv_header_stdc = yes; then
5146 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5147 if test "$cross_compiling" = yes; then :
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 # define ISLOWER(c) \
5159 (('a' <= (c) && (c) <= 'i') \
5160 || ('j' <= (c) && (c) <= 'r') \
5161 || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5170 for (i = 0; i < 256; i++)
5171 if (XOR (islower (i), ISLOWER (i))
5172 || toupper (i) != TOUPPER (i))
5177 if ac_fn_c_try_run "$LINENO"; then :
5180 ac_cv_header_stdc=no
5182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5183 conftest.$ac_objext conftest.beam conftest.$ac_ext
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5189 $as_echo "$ac_cv_header_stdc" >&6; }
5190 if test $ac_cv_header_stdc = yes; then
5192 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5196 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5197 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5198 inttypes.h stdint.h unistd.h
5200 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5201 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5204 cat >>confdefs.h <<_ACEOF
5205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5214 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5215 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5222 if test "$MINIX" = yes; then
5224 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5227 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5230 $as_echo "#define _MINIX 1" >>confdefs.h
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5236 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5237 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5238 $as_echo_n "(cached) " >&6
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5243 # define __EXTENSIONS__ 1
5244 $ac_includes_default
5253 if ac_fn_c_try_compile "$LINENO"; then :
5254 ac_cv_safe_to_define___extensions__=yes
5256 ac_cv_safe_to_define___extensions__=no
5258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5261 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5262 test $ac_cv_safe_to_define___extensions__ = yes &&
5263 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5265 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5267 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5269 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5271 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5276 # We need to compile and run a program on the build machine. A
5277 # comment in libgpg-error says that the AC_PROG_CC_FOR_BUILD macro in
5278 # the AC archive is broken for autoconf 2.57. Given that there is no
5279 # newer version of that macro, we assume that it is also broken for
5280 # autoconf 2.61 and thus we use a simple but usually sufficient
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc for build" >&5
5283 $as_echo_n "checking for cc for build... " >&6; }
5284 if test "$cross_compiling" = "yes"; then
5285 CC_FOR_BUILD="${CC_FOR_BUILD-cc}"
5287 CC_FOR_BUILD="${CC_FOR_BUILD-$CC}"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5290 $as_echo "$CC_FOR_BUILD" >&6; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5298 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5303 macro_version='2.4.2'
5304 macro_revision='1.3337'
5318 ltmain="$ac_aux_dir/ltmain.sh"
5320 # Backslashify metacharacters that are still active within
5321 # double-quoted strings.
5322 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5324 # Same as above, but do not quote variable references.
5325 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5327 # Sed substitution to delay expansion of an escaped shell variable in a
5328 # double_quote_subst'ed string.
5329 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5331 # Sed substitution to delay expansion of an escaped single quote.
5332 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5334 # Sed substitution to avoid accidental globbing in evaled expressions
5335 no_glob_subst='s/\*/\\\*/g'
5337 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5338 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5339 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5342 $as_echo_n "checking how to print strings... " >&6; }
5343 # Test print first, because it will be a builtin if present.
5344 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5345 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5347 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5350 # Use this function as a fallback that always works.
5351 func_fallback_echo ()
5353 eval 'cat <<_LTECHO_EOF
5357 ECHO='func_fallback_echo'
5360 # func_echo_all arg...
5361 # Invoke $ECHO with all args, space-separated.
5368 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5369 $as_echo "printf" >&6; } ;;
5370 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5371 $as_echo "print -r" >&6; } ;;
5372 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5373 $as_echo "cat" >&6; } ;;
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5390 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5391 if ${ac_cv_path_SED+:} false; then :
5392 $as_echo_n "(cached) " >&6
5394 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5395 for ac_i in 1 2 3 4 5 6 7; do
5396 ac_script="$ac_script$as_nl$ac_script"
5398 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5399 { ac_script=; unset ac_script;}
5400 if test -z "$SED"; then
5401 ac_path_SED_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_prog in sed gsed; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_SED" || continue
5412 # Check for GNU ac_path_SED and select it if it is found.
5413 # Check for GNU $ac_path_SED
5414 case `"$ac_path_SED" --version 2>&1` in
5416 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5419 $as_echo_n 0123456789 >"conftest.in"
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo '' >> "conftest.nl"
5426 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_SED_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_SED="$ac_path_SED"
5432 ac_path_SED_max=$ac_count
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5440 $ac_path_SED_found && break 3
5445 if test -z "$ac_cv_path_SED"; then
5446 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5454 $as_echo "$ac_cv_path_SED" >&6; }
5455 SED="$ac_cv_path_SED"
5458 test -z "$SED" && SED=sed
5459 Xsed="$SED -e 1s/^X//"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5472 $as_echo_n "checking for fgrep... " >&6; }
5473 if ${ac_cv_path_FGREP+:} false; then :
5474 $as_echo_n "(cached) " >&6
5476 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5477 then ac_cv_path_FGREP="$GREP -F"
5479 if test -z "$FGREP"; then
5480 ac_path_FGREP_found=false
5481 # Loop through the user's path and test for each of PROGNAME-LIST
5482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5486 test -z "$as_dir" && as_dir=.
5487 for ac_prog in fgrep; do
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5490 as_fn_executable_p "$ac_path_FGREP" || continue
5491 # Check for GNU ac_path_FGREP and select it if it is found.
5492 # Check for GNU $ac_path_FGREP
5493 case `"$ac_path_FGREP" --version 2>&1` in
5495 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5498 $as_echo_n 0123456789 >"conftest.in"
5501 cat "conftest.in" "conftest.in" >"conftest.tmp"
5502 mv "conftest.tmp" "conftest.in"
5503 cp "conftest.in" "conftest.nl"
5504 $as_echo 'FGREP' >> "conftest.nl"
5505 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5507 as_fn_arith $ac_count + 1 && ac_count=$as_val
5508 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5509 # Best one so far, save it but keep looking for a better one
5510 ac_cv_path_FGREP="$ac_path_FGREP"
5511 ac_path_FGREP_max=$ac_count
5513 # 10*(2^10) chars as input seems more than enough
5514 test $ac_count -gt 10 && break
5516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5519 $ac_path_FGREP_found && break 3
5524 if test -z "$ac_cv_path_FGREP"; then
5525 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5528 ac_cv_path_FGREP=$FGREP
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5534 $as_echo "$ac_cv_path_FGREP" >&6; }
5535 FGREP="$ac_cv_path_FGREP"
5538 test -z "$GREP" && GREP=grep
5558 # Check whether --with-gnu-ld was given.
5559 if test "${with_gnu_ld+set}" = set; then :
5560 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5566 if test "$GCC" = yes; then
5567 # Check if gcc -print-prog-name=ld gives a path.
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5569 $as_echo_n "checking for ld used by $CC... " >&6; }
5572 # gcc leaves a trailing carriage return which upsets mingw
5573 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5575 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5578 # Accept absolute paths.
5580 re_direlt='/[^/][^/]*/\.\./'
5581 # Canonicalize the pathname of ld
5582 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5583 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5584 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5586 test -z "$LD" && LD="$ac_prog"
5589 # If it fails, then pretend we aren't using GCC.
5593 # If it is relative, then search for the first ld in PATH.
5597 elif test "$with_gnu_ld" = yes; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5599 $as_echo_n "checking for GNU ld... " >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5602 $as_echo_n "checking for non-GNU ld... " >&6; }
5604 if ${lt_cv_path_LD+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 if test -z "$LD"; then
5608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5609 for ac_dir in $PATH; do
5611 test -z "$ac_dir" && ac_dir=.
5612 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5613 lt_cv_path_LD="$ac_dir/$ac_prog"
5614 # Check to see if the program is GNU ld. I'd rather use --version,
5615 # but apparently some variants of GNU ld only accept -v.
5616 # Break only if it was the GNU/non-GNU ld that we prefer.
5617 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5618 *GNU* | *'with BFD'*)
5619 test "$with_gnu_ld" != no && break
5622 test "$with_gnu_ld" != yes && break
5629 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5634 if test -n "$LD"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5636 $as_echo "$LD" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5641 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5643 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5644 if ${lt_cv_prog_gnu_ld+:} false; then :
5645 $as_echo_n "(cached) " >&6
5647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5648 case `$LD -v 2>&1 </dev/null` in
5649 *GNU* | *'with BFD'*)
5650 lt_cv_prog_gnu_ld=yes
5653 lt_cv_prog_gnu_ld=no
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5658 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5659 with_gnu_ld=$lt_cv_prog_gnu_ld
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5670 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5671 if ${lt_cv_path_NM+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5701 lt_cv_path_NM="$tmp_nm -p"
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5715 : ${lt_cv_path_NM=no}
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5719 $as_echo "$lt_cv_path_NM" >&6; }
5720 if test "$lt_cv_path_NM" != "no"; then
5723 # Didn't find any BSD compatible name lister, look for dumpbin.
5724 if test -n "$DUMPBIN"; then :
5725 # Let the user override the test.
5727 if test -n "$ac_tool_prefix"; then
5728 for ac_prog in dumpbin "link -dump"
5730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_DUMPBIN+:} false; then :
5735 $as_echo_n "(cached) " >&6
5737 if test -n "$DUMPBIN"; then
5738 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 DUMPBIN=$ac_cv_prog_DUMPBIN
5758 if test -n "$DUMPBIN"; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5760 $as_echo "$DUMPBIN" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5767 test -n "$DUMPBIN" && break
5770 if test -z "$DUMPBIN"; then
5771 ac_ct_DUMPBIN=$DUMPBIN
5772 for ac_prog in dumpbin "link -dump"
5774 # Extract the first word of "$ac_prog", so it can be a program name with args.
5775 set dummy $ac_prog; ac_word=$2
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777 $as_echo_n "checking for $ac_word... " >&6; }
5778 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 if test -n "$ac_ct_DUMPBIN"; then
5782 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5802 if test -n "$ac_ct_DUMPBIN"; then
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5804 $as_echo "$ac_ct_DUMPBIN" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5811 test -n "$ac_ct_DUMPBIN" && break
5814 if test "x$ac_ct_DUMPBIN" = x; then
5817 case $cross_compiling:$ac_tool_warned in
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5823 DUMPBIN=$ac_ct_DUMPBIN
5827 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5829 DUMPBIN="$DUMPBIN -symbols"
5837 if test "$DUMPBIN" != ":"; then
5841 test -z "$NM" && NM=nm
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5849 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5850 if ${lt_cv_nm_interface+:} false; then :
5851 $as_echo_n "(cached) " >&6
5853 lt_cv_nm_interface="BSD nm"
5854 echo "int some_variable = 0;" > conftest.$ac_ext
5855 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5856 (eval "$ac_compile" 2>conftest.err)
5857 cat conftest.err >&5
5858 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5859 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5860 cat conftest.err >&5
5861 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5862 cat conftest.out >&5
5863 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5864 lt_cv_nm_interface="MS dumpbin"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5869 $as_echo "$lt_cv_nm_interface" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5872 $as_echo_n "checking whether ln -s works... " >&6; }
5874 if test "$LN_S" = "ln -s"; then
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5876 $as_echo "yes" >&6; }
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5879 $as_echo "no, using $LN_S" >&6; }
5882 # find the maximum length of command line arguments
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5884 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5885 if ${lt_cv_sys_max_cmd_len+:} false; then :
5886 $as_echo_n "(cached) " >&6
5893 # On DJGPP, this test can blow up pretty badly due to problems in libc
5894 # (any single argument exceeding 2000 bytes causes a buffer overrun
5895 # during glob expansion). Even if it were fixed, the result of this
5896 # check would be larger than it should be.
5897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5901 # Under GNU Hurd, this test is not required because there is
5902 # no limit to the length of command line arguments.
5903 # Libtool will interpret -1 as no limit whatsoever
5904 lt_cv_sys_max_cmd_len=-1;
5907 cygwin* | mingw* | cegcc*)
5908 # On Win9x/ME, this test blows up -- it succeeds, but takes
5909 # about 5 minutes as the teststring grows exponentially.
5910 # Worse, since 9x/ME are not pre-emptively multitasking,
5911 # you end up with a "frozen" computer, even though with patience
5912 # the test eventually succeeds (with a max line length of 256k).
5913 # Instead, let's just punt: use the minimum linelength reported by
5914 # all of the supported platforms: 8192 (on NT/2K/XP).
5915 lt_cv_sys_max_cmd_len=8192;
5919 # On MiNT this can take a long time and run out of memory.
5920 lt_cv_sys_max_cmd_len=8192;
5924 # On AmigaOS with pdksh, this test takes hours, literally.
5925 # So we just punt and use a minimum line length of 8192.
5926 lt_cv_sys_max_cmd_len=8192;
5929 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5930 # This has been around since 386BSD, at least. Likely further.
5931 if test -x /sbin/sysctl; then
5932 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5933 elif test -x /usr/sbin/sysctl; then
5934 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5936 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5938 # And add a safety zone
5939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5944 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5945 lt_cv_sys_max_cmd_len=196608
5949 # The test takes a long time on OS/2.
5950 lt_cv_sys_max_cmd_len=8192
5954 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5955 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5956 # nice to cause kernel panics so lets avoid the loop below.
5957 # First set a reasonable default.
5958 lt_cv_sys_max_cmd_len=16384
5960 if test -x /sbin/sysconfig; then
5961 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5962 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5967 lt_cv_sys_max_cmd_len=102400
5969 sysv5* | sco5v6* | sysv4.2uw2*)
5970 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5971 if test -n "$kargmax"; then
5972 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5974 lt_cv_sys_max_cmd_len=32768
5978 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5979 if test -n "$lt_cv_sys_max_cmd_len"; then
5980 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5983 # Make teststring a little bigger before we do anything with it.
5984 # a 1K string should be a reasonable start.
5985 for i in 1 2 3 4 5 6 7 8 ; do
5986 teststring=$teststring$teststring
5988 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5989 # If test is not a shell built-in, we'll probably end up computing a
5990 # maximum length that is only half of the actual maximum length, but
5992 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5993 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5994 test $i != 17 # 1/2 MB should be enough
5997 teststring=$teststring$teststring
5999 # Only check the string length outside the loop.
6000 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6002 # Add a significant safety factor because C++ compilers can tack on
6003 # massive amounts of additional arguments before passing them to the
6004 # linker. It appears as though 1/2 is a usable value.
6005 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6012 if test -n $lt_cv_sys_max_cmd_len ; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6014 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6017 $as_echo "none" >&6; }
6019 max_cmd_len=$lt_cv_sys_max_cmd_len
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6031 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6032 # Try some XSI features
6035 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6037 && eval 'test $(( 1 + 1 )) -eq 2 \
6038 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6041 $as_echo "$xsi_shell" >&6; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6045 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6047 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6049 && lt_shell_append=yes
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6051 $as_echo "$lt_shell_append" >&6; }
6054 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6064 # test EBCDIC or ASCII
6065 case `echo X|tr X '\101'` in
6066 A) # ASCII based system
6067 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6068 lt_SP2NL='tr \040 \012'
6069 lt_NL2SP='tr \015\012 \040\040'
6071 *) # EBCDIC based system
6072 lt_SP2NL='tr \100 \n'
6073 lt_NL2SP='tr \r\n \100\100'
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6086 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6087 if ${lt_cv_to_host_file_cmd+:} false; then :
6088 $as_echo_n "(cached) " >&6
6093 *-*-mingw* ) # actually msys
6094 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6097 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6099 * ) # otherwise, assume *nix
6100 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6106 *-*-mingw* ) # actually msys
6107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6110 lt_cv_to_host_file_cmd=func_convert_file_noop
6112 * ) # otherwise, assume *nix
6113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6117 * ) # unhandled hosts (and "normal" native builds)
6118 lt_cv_to_host_file_cmd=func_convert_file_noop
6124 to_host_file_cmd=$lt_cv_to_host_file_cmd
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6126 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6133 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6134 if ${lt_cv_to_tool_file_cmd+:} false; then :
6135 $as_echo_n "(cached) " >&6
6137 #assume ordinary cross tools, or native build.
6138 lt_cv_to_tool_file_cmd=func_convert_file_noop
6142 *-*-mingw* ) # actually msys
6143 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6151 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6153 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6160 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6161 if ${lt_cv_ld_reload_flag+:} false; then :
6162 $as_echo_n "(cached) " >&6
6164 lt_cv_ld_reload_flag='-r'
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6167 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6171 *) reload_flag=" $reload_flag" ;;
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 cygwin* | mingw* | pw32* | cegcc*)
6176 if test "$GCC" != yes; then
6181 if test "$GCC" = yes; then
6182 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_OBJDUMP+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 if test -n "$OBJDUMP"; then
6206 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225 OBJDUMP=$ac_cv_prog_OBJDUMP
6226 if test -n "$OBJDUMP"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6228 $as_echo "$OBJDUMP" >&6; }
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6236 if test -z "$ac_cv_prog_OBJDUMP"; then
6237 ac_ct_OBJDUMP=$OBJDUMP
6238 # Extract the first word of "objdump", so it can be a program name with args.
6239 set dummy objdump; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6243 $as_echo_n "(cached) " >&6
6245 if test -n "$ac_ct_OBJDUMP"; then
6246 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6266 if test -n "$ac_ct_OBJDUMP"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6268 $as_echo "$ac_ct_OBJDUMP" >&6; }
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6274 if test "x$ac_ct_OBJDUMP" = x; then
6277 case $cross_compiling:$ac_tool_warned in
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6283 OBJDUMP=$ac_ct_OBJDUMP
6286 OBJDUMP="$ac_cv_prog_OBJDUMP"
6289 test -z "$OBJDUMP" && OBJDUMP=objdump
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6297 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6298 if ${lt_cv_deplibs_check_method+:} false; then :
6299 $as_echo_n "(cached) " >&6
6301 lt_cv_file_magic_cmd='$MAGIC_CMD'
6302 lt_cv_file_magic_test_file=
6303 lt_cv_deplibs_check_method='unknown'
6304 # Need to set the preceding variable on all platforms that support
6305 # interlibrary dependencies.
6306 # 'none' -- dependencies not supported.
6307 # `unknown' -- same as none, but documents that we really don't know.
6308 # 'pass_all' -- all dependencies passed with no checks.
6309 # 'test_compile' -- check by making test program.
6310 # 'file_magic [[regex]]' -- check by looking for files in library path
6311 # which responds to the $file_magic_cmd with a given extended regex.
6312 # If you have `file' or equivalent on your system and you're not sure
6313 # whether `pass_all' will *always* work, you probably want this one.
6317 lt_cv_deplibs_check_method=pass_all
6321 lt_cv_deplibs_check_method=pass_all
6325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6326 lt_cv_file_magic_cmd='/usr/bin/file -L'
6327 lt_cv_file_magic_test_file=/shlib/libc.so
6331 # func_win32_libid is a shell function defined in ltmain.sh
6332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6333 lt_cv_file_magic_cmd='func_win32_libid'
6337 # Base MSYS/MinGW do not provide the 'file' command needed by
6338 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6339 # unless we find 'file', for example because we are cross-compiling.
6340 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6341 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6342 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6343 lt_cv_file_magic_cmd='func_win32_libid'
6345 # Keep this pattern in sync with the one in func_win32_libid.
6346 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6347 lt_cv_file_magic_cmd='$OBJDUMP -f'
6352 # use the weaker test based on 'objdump'. See mingw*.
6353 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6354 lt_cv_file_magic_cmd='$OBJDUMP -f'
6357 darwin* | rhapsody*)
6358 lt_cv_deplibs_check_method=pass_all
6361 freebsd* | dragonfly*)
6362 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6365 # Not sure whether the presence of OpenBSD here was a mistake.
6366 # Let's accept both of them until this is cleared up.
6367 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6368 lt_cv_file_magic_cmd=/usr/bin/file
6369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6373 lt_cv_deplibs_check_method=pass_all
6378 lt_cv_deplibs_check_method=pass_all
6382 lt_cv_deplibs_check_method=pass_all
6385 hpux10.20* | hpux11*)
6386 lt_cv_file_magic_cmd=/usr/bin/file
6389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6393 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]'
6394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6398 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6408 irix5* | irix6* | nonstopux*)
6410 *-32|*"-32 ") libmagic=32-bit;;
6411 *-n32|*"-n32 ") libmagic=N32;;
6412 *-64|*"-64 ") libmagic=64-bit;;
6413 *) libmagic=never-match;;
6415 lt_cv_deplibs_check_method=pass_all
6418 # This must be glibc/ELF.
6419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6420 lt_cv_deplibs_check_method=pass_all
6423 netbsd* | netbsdelf*-gnu)
6424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6433 lt_cv_file_magic_cmd=/usr/bin/file
6434 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6438 lt_cv_deplibs_check_method=pass_all
6442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6449 osf3* | osf4* | osf5*)
6450 lt_cv_deplibs_check_method=pass_all
6454 lt_cv_deplibs_check_method=pass_all
6458 lt_cv_deplibs_check_method=pass_all
6461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6462 lt_cv_deplibs_check_method=pass_all
6466 case $host_vendor in
6468 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]'
6469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6472 lt_cv_deplibs_check_method=pass_all
6475 lt_cv_file_magic_cmd='/bin/file'
6476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6479 lt_cv_file_magic_cmd='/bin/file'
6480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6481 lt_cv_file_magic_test_file=/lib/libc.so
6484 lt_cv_deplibs_check_method=pass_all
6487 lt_cv_deplibs_check_method=pass_all
6493 lt_cv_deplibs_check_method=pass_all
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6499 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6503 if test "$build" = "$host"; then
6506 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6509 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6515 file_magic_cmd=$lt_cv_file_magic_cmd
6516 deplibs_check_method=$lt_cv_deplibs_check_method
6517 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_DLLTOOL+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$DLLTOOL"; then
6549 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 DLLTOOL=$ac_cv_prog_DLLTOOL
6569 if test -n "$DLLTOOL"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6571 $as_echo "$DLLTOOL" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6579 if test -z "$ac_cv_prog_DLLTOOL"; then
6580 ac_ct_DLLTOOL=$DLLTOOL
6581 # Extract the first word of "dlltool", so it can be a program name with args.
6582 set dummy dlltool; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$ac_ct_DLLTOOL"; then
6589 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6609 if test -n "$ac_ct_DLLTOOL"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6611 $as_echo "$ac_ct_DLLTOOL" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6617 if test "x$ac_ct_DLLTOOL" = x; then
6620 case $cross_compiling:$ac_tool_warned in
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6626 DLLTOOL=$ac_ct_DLLTOOL
6629 DLLTOOL="$ac_cv_prog_DLLTOOL"
6632 test -z "$DLLTOOL" && DLLTOOL=dlltool
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6641 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6642 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6643 $as_echo_n "(cached) " >&6
6645 lt_cv_sharedlib_from_linklib_cmd='unknown'
6648 cygwin* | mingw* | pw32* | cegcc*)
6649 # two different shell functions defined in ltmain.sh
6650 # decide which to use based on capabilities of $DLLTOOL
6651 case `$DLLTOOL --help 2>&1` in
6652 *--identify-strict*)
6653 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6661 # fallback: assume linklib IS sharedlib
6662 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6668 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6669 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6670 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6678 if test -n "$ac_tool_prefix"; then
6681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 $as_echo_n "checking for $ac_word... " >&6; }
6685 if ${ac_cv_prog_AR+:} false; then :
6686 $as_echo_n "(cached) " >&6
6688 if test -n "$AR"; then
6689 ac_cv_prog_AR="$AR" # Let the user override the test.
6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 test -z "$as_dir" && as_dir=.
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 if test -n "$AR"; then
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6711 $as_echo "$AR" >&6; }
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714 $as_echo "no" >&6; }
6718 test -n "$AR" && break
6721 if test -z "$AR"; then
6725 # Extract the first word of "$ac_prog", so it can be a program name with args.
6726 set dummy $ac_prog; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$ac_ct_AR"; then
6733 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6742 ac_cv_prog_ac_ct_AR="$ac_prog"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6753 if test -n "$ac_ct_AR"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6755 $as_echo "$ac_ct_AR" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6762 test -n "$ac_ct_AR" && break
6765 if test "x$ac_ct_AR" = x; then
6768 case $cross_compiling:$ac_tool_warned in
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772 ac_tool_warned=yes ;;
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6792 $as_echo_n "checking for archiver @FILE support... " >&6; }
6793 if ${lt_cv_ar_at_file+:} false; then :
6794 $as_echo_n "(cached) " >&6
6797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798 /* end confdefs.h. */
6808 if ac_fn_c_try_compile "$LINENO"; then :
6809 echo conftest.$ac_objext > conftest.lst
6810 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6812 (eval $lt_ar_try) 2>&5
6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815 test $ac_status = 0; }
6816 if test "$ac_status" -eq 0; then
6817 # Ensure the archiver fails upon bogus file names.
6818 rm -f conftest.$ac_objext libconftest.a
6819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6820 (eval $lt_ar_try) 2>&5
6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6823 test $ac_status = 0; }
6824 if test "$ac_status" -ne 0; then
6828 rm -f conftest.* libconftest.a
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6835 $as_echo "$lt_cv_ar_at_file" >&6; }
6837 if test "x$lt_cv_ar_at_file" = xno; then
6840 archiver_list_spec=$lt_cv_ar_at_file
6849 if test -n "$ac_tool_prefix"; then
6850 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6851 set dummy ${ac_tool_prefix}strip; ac_word=$2
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6853 $as_echo_n "checking for $ac_word... " >&6; }
6854 if ${ac_cv_prog_STRIP+:} false; then :
6855 $as_echo_n "(cached) " >&6
6857 if test -n "$STRIP"; then
6858 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 test -z "$as_dir" && as_dir=.
6865 for ac_exec_ext in '' $ac_executable_extensions; do
6866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6867 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 STRIP=$ac_cv_prog_STRIP
6878 if test -n "$STRIP"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6880 $as_echo "$STRIP" >&6; }
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6888 if test -z "$ac_cv_prog_STRIP"; then
6890 # Extract the first word of "strip", so it can be a program name with args.
6891 set dummy strip; ac_word=$2
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6893 $as_echo_n "checking for $ac_word... " >&6; }
6894 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 if test -n "$ac_ct_STRIP"; then
6898 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6907 ac_cv_prog_ac_ct_STRIP="strip"
6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6918 if test -n "$ac_ct_STRIP"; then
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6920 $as_echo "$ac_ct_STRIP" >&6; }
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6926 if test "x$ac_ct_STRIP" = x; then
6929 case $cross_compiling:$ac_tool_warned in
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6933 ac_tool_warned=yes ;;
6938 STRIP="$ac_cv_prog_STRIP"
6941 test -z "$STRIP" && STRIP=:
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_RANLIB+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$RANLIB"; then
6957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 RANLIB=$ac_cv_prog_RANLIB
6977 if test -n "$RANLIB"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6979 $as_echo "$RANLIB" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6987 if test -z "$ac_cv_prog_RANLIB"; then
6988 ac_ct_RANLIB=$RANLIB
6989 # Extract the first word of "ranlib", so it can be a program name with args.
6990 set dummy ranlib; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6994 $as_echo_n "(cached) " >&6
6996 if test -n "$ac_ct_RANLIB"; then
6997 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7006 ac_cv_prog_ac_ct_RANLIB="ranlib"
7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7017 if test -n "$ac_ct_RANLIB"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7019 $as_echo "$ac_ct_RANLIB" >&6; }
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7025 if test "x$ac_ct_RANLIB" = x; then
7028 case $cross_compiling:$ac_tool_warned in
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7032 ac_tool_warned=yes ;;
7034 RANLIB=$ac_ct_RANLIB
7037 RANLIB="$ac_cv_prog_RANLIB"
7040 test -z "$RANLIB" && RANLIB=:
7047 # Determine commands to create old-style static archives.
7048 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7049 old_postinstall_cmds='chmod 644 $oldlib'
7050 old_postuninstall_cmds=
7052 if test -n "$RANLIB"; then
7055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7058 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7061 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7066 lock_old_archive_extraction=yes ;;
7068 lock_old_archive_extraction=no ;;
7109 # If no C compiler was specified, use CC.
7112 # If no C compiler flags were specified, use CFLAGS.
7113 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7115 # Allow CC to be a program name with arguments.
7119 # Check for command to grab the raw symbol name followed by C symbol from nm.
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7121 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7122 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7123 $as_echo_n "(cached) " >&6
7126 # These are sane defaults that work on at least a few old systems.
7127 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7129 # Character class describing NM global symbol codes.
7130 symcode='[BCDEGRST]'
7132 # Regexp to match symbols that can be accessed directly from C.
7133 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7135 # Define system-specific variables.
7140 cygwin* | mingw* | pw32* | cegcc*)
7141 symcode='[ABCDGISTW]'
7144 if test "$host_cpu" = ia64; then
7145 symcode='[ABCDEGRST]'
7149 symcode='[BCDEGRST]'
7152 symcode='[BCDEGQRST]'
7163 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7171 # If we're using GNU nm, then use its standard symbol codes.
7172 case `$NM -V 2>&1` in
7173 *GNU* | *'with BFD'*)
7174 symcode='[ABCDGIRSTW]' ;;
7177 # Transform an extracted symbol line into a proper C declaration.
7178 # Some systems (esp. on ia64) link data and code symbols differently,
7179 # so use this general approach.
7180 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7182 # Transform an extracted symbol line into symbol name and symbol address
7183 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7184 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'"
7186 # Handle CRLF in mingw tool chain
7190 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7194 # Try without a prefix underscore, then with it.
7195 for ac_symprfx in "" "_"; do
7197 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7198 symxfrm="\\1 $ac_symprfx\\2 \\2"
7200 # Write the raw and C identifiers.
7201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7202 # Fake it for dumpbin and say T for any non-static function
7203 # and D for any global variable.
7204 # Also find C++ and __fastcall symbols from MSVC++,
7205 # which start with @ or ?.
7206 lt_cv_sys_global_symbol_pipe="$AWK '"\
7207 " {last_section=section; section=\$ 3};"\
7208 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7209 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7210 " \$ 0!~/External *\|/{next};"\
7211 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7212 " {if(hide[section]) next};"\
7213 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7214 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7215 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7216 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7217 " ' prfx=^$ac_symprfx"
7219 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7221 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7223 # Check to see that the pipe works correctly.
7227 cat > conftest.$ac_ext <<_LT_EOF
7232 void nm_test_func(void);
7233 void nm_test_func(void){}
7237 int main(){nm_test_var='a';nm_test_func();return(0);}
7240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7241 (eval $ac_compile) 2>&5
7243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244 test $ac_status = 0; }; then
7245 # Now try to grab the symbols.
7247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7248 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; } && test -s "$nlist"; then
7252 # Try sorting and uniquifying the output.
7253 if sort "$nlist" | uniq > "$nlist"T; then
7254 mv -f "$nlist"T "$nlist"
7259 # Make sure that we snagged all the symbols we need.
7260 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7261 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7262 cat <<_LT_EOF > conftest.$ac_ext
7263 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7264 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7265 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7266 relocations are performed -- see ld's documentation on pseudo-relocs. */
7267 # define LT_DLSYM_CONST
7268 #elif defined(__osf__)
7269 /* This system does not cope well with relocations in const data. */
7270 # define LT_DLSYM_CONST
7272 # define LT_DLSYM_CONST const
7280 # Now generate the symbol file.
7281 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7283 cat <<_LT_EOF >> conftest.$ac_ext
7285 /* The mapping between symbol names and symbols. */
7286 LT_DLSYM_CONST struct {
7290 lt__PROGRAM__LTX_preloaded_symbols[] =
7292 { "@PROGRAM@", (void *) 0 },
7294 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7295 cat <<\_LT_EOF >> conftest.$ac_ext
7299 /* This works around a problem in FreeBSD linker */
7300 #ifdef FREEBSD_WORKAROUND
7301 static const void *lt_preloaded_setup() {
7302 return lt__PROGRAM__LTX_preloaded_symbols;
7310 # Now try linking the two files.
7311 mv conftest.$ac_objext conftstm.$ac_objext
7312 lt_globsym_save_LIBS=$LIBS
7313 lt_globsym_save_CFLAGS=$CFLAGS
7314 LIBS="conftstm.$ac_objext"
7315 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7317 (eval $ac_link) 2>&5
7319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7320 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7323 LIBS=$lt_globsym_save_LIBS
7324 CFLAGS=$lt_globsym_save_CFLAGS
7326 echo "cannot find nm_test_func in $nlist" >&5
7329 echo "cannot find nm_test_var in $nlist" >&5
7332 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7335 echo "$progname: failed program was:" >&5
7336 cat conftest.$ac_ext >&5
7338 rm -rf conftest* conftst*
7340 # Do not use the global_symbol_pipe unless it works.
7341 if test "$pipe_works" = yes; then
7344 lt_cv_sys_global_symbol_pipe=
7350 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7351 lt_cv_sys_global_symbol_to_cdecl=
7353 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7355 $as_echo "failed" >&6; }
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7358 $as_echo "ok" >&6; }
7361 # Response file support.
7362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7363 nm_file_list_spec='@'
7364 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7365 nm_file_list_spec='@'
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7395 $as_echo_n "checking for sysroot... " >&6; }
7397 # Check whether --with-sysroot was given.
7398 if test "${with_sysroot+set}" = set; then :
7399 withval=$with_sysroot;
7406 case ${with_sysroot} in #(
7408 if test "$GCC" = yes; then
7409 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7413 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7419 $as_echo "${with_sysroot}" >&6; }
7420 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7425 $as_echo "${lt_sysroot:-no}" >&6; }
7431 # Check whether --enable-libtool-lock was given.
7432 if test "${enable_libtool_lock+set}" = set; then :
7433 enableval=$enable_libtool_lock;
7436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7438 # Some flags need to be propagated to the compiler or linker for good
7442 # Find out which ABI we are using.
7443 echo 'int i;' > conftest.$ac_ext
7444 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7445 (eval $ac_compile) 2>&5
7447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448 test $ac_status = 0; }; then
7449 case `/usr/bin/file conftest.$ac_objext` in
7461 # Find out which ABI we are using.
7462 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7464 (eval $ac_compile) 2>&5
7466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7467 test $ac_status = 0; }; then
7468 if test "$lt_cv_prog_gnu_ld" = yes; then
7469 case `/usr/bin/file conftest.$ac_objext` in
7471 LD="${LD-ld} -melf32bsmip"
7474 LD="${LD-ld} -melf32bmipn32"
7477 LD="${LD-ld} -melf64bmip"
7481 case `/usr/bin/file conftest.$ac_objext` in
7497 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7498 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7499 # Find out which ABI we are using.
7500 echo 'int i;' > conftest.$ac_ext
7501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7502 (eval $ac_compile) 2>&5
7504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7505 test $ac_status = 0; }; then
7506 case `/usr/bin/file conftest.o` in
7509 x86_64-*kfreebsd*-gnu)
7510 LD="${LD-ld} -m elf_i386_fbsd"
7513 LD="${LD-ld} -m elf_i386"
7516 LD="${LD-ld} -m elf32lppclinux"
7519 LD="${LD-ld} -m elf32ppclinux"
7522 LD="${LD-ld} -m elf_s390"
7525 LD="${LD-ld} -m elf32_sparc"
7531 x86_64-*kfreebsd*-gnu)
7532 LD="${LD-ld} -m elf_x86_64_fbsd"
7535 LD="${LD-ld} -m elf_x86_64"
7538 LD="${LD-ld} -m elf64lppc"
7541 LD="${LD-ld} -m elf64ppc"
7543 s390*-*linux*|s390*-*tpf*)
7544 LD="${LD-ld} -m elf64_s390"
7547 LD="${LD-ld} -m elf64_sparc"
7557 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7558 SAVE_CFLAGS="$CFLAGS"
7559 CFLAGS="$CFLAGS -belf"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7561 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7562 if ${lt_cv_cc_needs_belf+:} false; then :
7563 $as_echo_n "(cached) " >&6
7566 ac_cpp='$CPP $CPPFLAGS'
7567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7582 if ac_fn_c_try_link "$LINENO"; then :
7583 lt_cv_cc_needs_belf=yes
7585 lt_cv_cc_needs_belf=no
7587 rm -f core conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7590 ac_cpp='$CPP $CPPFLAGS'
7591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7597 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7598 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7600 CFLAGS="$SAVE_CFLAGS"
7604 # Find out which ABI we are using.
7605 echo 'int i;' > conftest.$ac_ext
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7607 (eval $ac_compile) 2>&5
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; }; then
7611 case `/usr/bin/file conftest.o` in
7613 case $lt_cv_prog_gnu_ld in
7617 LD="${LD-ld} -m elf_x86_64"
7620 LD="${LD-ld} -m elf64_sparc"
7623 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7624 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7629 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7641 need_locks="$enable_libtool_lock"
7643 if test -n "$ac_tool_prefix"; then
7644 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7645 set dummy ${ac_tool_prefix}mt; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7649 $as_echo_n "(cached) " >&6
7651 if test -n "$MANIFEST_TOOL"; then
7652 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7661 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7672 if test -n "$MANIFEST_TOOL"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7674 $as_echo "$MANIFEST_TOOL" >&6; }
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7682 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7683 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7684 # Extract the first word of "mt", so it can be a program name with args.
7685 set dummy mt; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7689 $as_echo_n "(cached) " >&6
7691 if test -n "$ac_ct_MANIFEST_TOOL"; then
7692 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7712 if test -n "$ac_ct_MANIFEST_TOOL"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7714 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7720 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7723 case $cross_compiling:$ac_tool_warned in
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7727 ac_tool_warned=yes ;;
7729 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7732 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7735 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7737 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7738 if ${lt_cv_path_mainfest_tool+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 lt_cv_path_mainfest_tool=no
7742 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7743 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7744 cat conftest.err >&5
7745 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7746 lt_cv_path_mainfest_tool=yes
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7751 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7752 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7762 rhapsody* | darwin*)
7763 if test -n "$ac_tool_prefix"; then
7764 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7765 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7767 $as_echo_n "checking for $ac_word... " >&6; }
7768 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7769 $as_echo_n "(cached) " >&6
7771 if test -n "$DSYMUTIL"; then
7772 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778 test -z "$as_dir" && as_dir=.
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7792 if test -n "$DSYMUTIL"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7794 $as_echo "$DSYMUTIL" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7802 if test -z "$ac_cv_prog_DSYMUTIL"; then
7803 ac_ct_DSYMUTIL=$DSYMUTIL
7804 # Extract the first word of "dsymutil", so it can be a program name with args.
7805 set dummy dsymutil; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7809 $as_echo_n "(cached) " >&6
7811 if test -n "$ac_ct_DSYMUTIL"; then
7812 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 test -z "$as_dir" && as_dir=.
7819 for ac_exec_ext in '' $ac_executable_extensions; do
7820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7821 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7831 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7832 if test -n "$ac_ct_DSYMUTIL"; then
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7834 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837 $as_echo "no" >&6; }
7840 if test "x$ac_ct_DSYMUTIL" = x; then
7843 case $cross_compiling:$ac_tool_warned in
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7847 ac_tool_warned=yes ;;
7849 DSYMUTIL=$ac_ct_DSYMUTIL
7852 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7855 if test -n "$ac_tool_prefix"; then
7856 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7857 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 $as_echo_n "checking for $ac_word... " >&6; }
7860 if ${ac_cv_prog_NMEDIT+:} false; then :
7861 $as_echo_n "(cached) " >&6
7863 if test -n "$NMEDIT"; then
7864 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
7872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7873 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7883 NMEDIT=$ac_cv_prog_NMEDIT
7884 if test -n "$NMEDIT"; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7886 $as_echo "$NMEDIT" >&6; }
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889 $as_echo "no" >&6; }
7894 if test -z "$ac_cv_prog_NMEDIT"; then
7895 ac_ct_NMEDIT=$NMEDIT
7896 # Extract the first word of "nmedit", so it can be a program name with args.
7897 set dummy nmedit; ac_word=$2
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899 $as_echo_n "checking for $ac_word... " >&6; }
7900 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7901 $as_echo_n "(cached) " >&6
7903 if test -n "$ac_ct_NMEDIT"; then
7904 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7913 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7924 if test -n "$ac_ct_NMEDIT"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7926 $as_echo "$ac_ct_NMEDIT" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7932 if test "x$ac_ct_NMEDIT" = x; then
7935 case $cross_compiling:$ac_tool_warned in
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7939 ac_tool_warned=yes ;;
7941 NMEDIT=$ac_ct_NMEDIT
7944 NMEDIT="$ac_cv_prog_NMEDIT"
7947 if test -n "$ac_tool_prefix"; then
7948 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7949 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if ${ac_cv_prog_LIPO+:} false; then :
7953 $as_echo_n "(cached) " >&6
7955 if test -n "$LIPO"; then
7956 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 LIPO=$ac_cv_prog_LIPO
7976 if test -n "$LIPO"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7978 $as_echo "$LIPO" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7986 if test -z "$ac_cv_prog_LIPO"; then
7988 # Extract the first word of "lipo", so it can be a program name with args.
7989 set dummy lipo; ac_word=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 if test -n "$ac_ct_LIPO"; then
7996 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 test -z "$as_dir" && as_dir=.
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8005 ac_cv_prog_ac_ct_LIPO="lipo"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8016 if test -n "$ac_ct_LIPO"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8018 $as_echo "$ac_ct_LIPO" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8024 if test "x$ac_ct_LIPO" = x; then
8027 case $cross_compiling:$ac_tool_warned in
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8031 ac_tool_warned=yes ;;
8036 LIPO="$ac_cv_prog_LIPO"
8039 if test -n "$ac_tool_prefix"; then
8040 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8041 set dummy ${ac_tool_prefix}otool; ac_word=$2
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8043 $as_echo_n "checking for $ac_word... " >&6; }
8044 if ${ac_cv_prog_OTOOL+:} false; then :
8045 $as_echo_n "(cached) " >&6
8047 if test -n "$OTOOL"; then
8048 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 OTOOL=$ac_cv_prog_OTOOL
8068 if test -n "$OTOOL"; then
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8070 $as_echo "$OTOOL" >&6; }
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8078 if test -z "$ac_cv_prog_OTOOL"; then
8080 # Extract the first word of "otool", so it can be a program name with args.
8081 set dummy otool; ac_word=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8085 $as_echo_n "(cached) " >&6
8087 if test -n "$ac_ct_OTOOL"; then
8088 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 test -z "$as_dir" && as_dir=.
8095 for ac_exec_ext in '' $ac_executable_extensions; do
8096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8097 ac_cv_prog_ac_ct_OTOOL="otool"
8098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8108 if test -n "$ac_ct_OTOOL"; then
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8110 $as_echo "$ac_ct_OTOOL" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8116 if test "x$ac_ct_OTOOL" = x; then
8119 case $cross_compiling:$ac_tool_warned in
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8123 ac_tool_warned=yes ;;
8128 OTOOL="$ac_cv_prog_OTOOL"
8131 if test -n "$ac_tool_prefix"; then
8132 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8133 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 $as_echo_n "checking for $ac_word... " >&6; }
8136 if ${ac_cv_prog_OTOOL64+:} false; then :
8137 $as_echo_n "(cached) " >&6
8139 if test -n "$OTOOL64"; then
8140 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 test -z "$as_dir" && as_dir=.
8147 for ac_exec_ext in '' $ac_executable_extensions; do
8148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 OTOOL64=$ac_cv_prog_OTOOL64
8160 if test -n "$OTOOL64"; then
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8162 $as_echo "$OTOOL64" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8165 $as_echo "no" >&6; }
8170 if test -z "$ac_cv_prog_OTOOL64"; then
8171 ac_ct_OTOOL64=$OTOOL64
8172 # Extract the first word of "otool64", so it can be a program name with args.
8173 set dummy otool64; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8177 $as_echo_n "(cached) " >&6
8179 if test -n "$ac_ct_OTOOL64"; then
8180 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir=.
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_ac_ct_OTOOL64="otool64"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8200 if test -n "$ac_ct_OTOOL64"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8202 $as_echo "$ac_ct_OTOOL64" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8208 if test "x$ac_ct_OTOOL64" = x; then
8211 case $cross_compiling:$ac_tool_warned in
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8215 ac_tool_warned=yes ;;
8217 OTOOL64=$ac_ct_OTOOL64
8220 OTOOL64="$ac_cv_prog_OTOOL64"
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8250 $as_echo_n "checking for -single_module linker flag... " >&6; }
8251 if ${lt_cv_apple_cc_single_mod+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 lt_cv_apple_cc_single_mod=no
8255 if test -z "${LT_MULTI_MODULE}"; then
8256 # By default we will add the -single_module flag. You can override
8257 # by either setting the environment variable LT_MULTI_MODULE
8258 # non-empty at configure time, or by adding -multi_module to the
8260 rm -rf libconftest.dylib*
8261 echo "int foo(void){return 1;}" > conftest.c
8262 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8263 -dynamiclib -Wl,-single_module conftest.c" >&5
8264 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8265 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8267 # If there is a non-empty error log, and "single_module"
8268 # appears in it, assume the flag caused a linker warning
8269 if test -s conftest.err && $GREP single_module conftest.err; then
8270 cat conftest.err >&5
8271 # Otherwise, if the output was created with a 0 exit code from
8272 # the compiler, it worked.
8273 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8274 lt_cv_apple_cc_single_mod=yes
8276 cat conftest.err >&5
8278 rm -rf libconftest.dylib*
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8283 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8286 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8287 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8288 $as_echo_n "(cached) " >&6
8290 lt_cv_ld_exported_symbols_list=no
8291 save_LDFLAGS=$LDFLAGS
8292 echo "_main" > conftest.sym
8293 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8305 if ac_fn_c_try_link "$LINENO"; then :
8306 lt_cv_ld_exported_symbols_list=yes
8308 lt_cv_ld_exported_symbols_list=no
8310 rm -f core conftest.err conftest.$ac_objext \
8311 conftest$ac_exeext conftest.$ac_ext
8312 LDFLAGS="$save_LDFLAGS"
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8316 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8319 $as_echo_n "checking for -force_load linker flag... " >&6; }
8320 if ${lt_cv_ld_force_load+:} false; then :
8321 $as_echo_n "(cached) " >&6
8323 lt_cv_ld_force_load=no
8324 cat > conftest.c << _LT_EOF
8325 int forced_loaded() { return 2;}
8327 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8328 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8329 echo "$AR cru libconftest.a conftest.o" >&5
8330 $AR cru libconftest.a conftest.o 2>&5
8331 echo "$RANLIB libconftest.a" >&5
8332 $RANLIB libconftest.a 2>&5
8333 cat > conftest.c << _LT_EOF
8334 int main() { return 0;}
8336 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8337 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8339 if test -s conftest.err && $GREP force_load conftest.err; then
8340 cat conftest.err >&5
8341 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8342 lt_cv_ld_force_load=yes
8344 cat conftest.err >&5
8346 rm -f conftest.err libconftest.a conftest conftest.c
8347 rm -rf conftest.dSYM
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8351 $as_echo "$lt_cv_ld_force_load" >&6; }
8353 rhapsody* | darwin1.[012])
8354 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8356 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8357 darwin*) # darwin 5.x on
8358 # if running on 10.5 or later, the deployment target defaults
8359 # to the OS version, if on x86, and 10.4, the deployment
8360 # target defaults to 10.4. Don't you love it?
8361 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8362 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8363 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8365 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8367 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8371 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8372 _lt_dar_single_mod='$single_module'
8374 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8375 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8377 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8379 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8380 _lt_dsymutil='~$DSYMUTIL $lib || :'
8387 for ac_header in dlfcn.h
8389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8391 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8392 cat >>confdefs.h <<_ACEOF
8393 #define HAVE_DLFCN_H 1
8405 enable_win32_dll=yes
8408 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8409 if test -n "$ac_tool_prefix"; then
8410 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8411 set dummy ${ac_tool_prefix}as; ac_word=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if ${ac_cv_prog_AS+:} false; then :
8415 $as_echo_n "(cached) " >&6
8417 if test -n "$AS"; then
8418 ac_cv_prog_AS="$AS" # Let the user override the test.
8420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 test -z "$as_dir" && as_dir=.
8425 for ac_exec_ext in '' $ac_executable_extensions; do
8426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8427 ac_cv_prog_AS="${ac_tool_prefix}as"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 if test -n "$AS"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8440 $as_echo "$AS" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8448 if test -z "$ac_cv_prog_AS"; then
8450 # Extract the first word of "as", so it can be a program name with args.
8451 set dummy as; ac_word=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8455 $as_echo_n "(cached) " >&6
8457 if test -n "$ac_ct_AS"; then
8458 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir=.
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8467 ac_cv_prog_ac_ct_AS="as"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8478 if test -n "$ac_ct_AS"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8480 $as_echo "$ac_ct_AS" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8486 if test "x$ac_ct_AS" = x; then
8489 case $cross_compiling:$ac_tool_warned in
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned=yes ;;
8501 if test -n "$ac_tool_prefix"; then
8502 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8503 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_prog_DLLTOOL+:} false; then :
8507 $as_echo_n "(cached) " >&6
8509 if test -n "$DLLTOOL"; then
8510 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8516 test -z "$as_dir" && as_dir=.
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8519 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529 DLLTOOL=$ac_cv_prog_DLLTOOL
8530 if test -n "$DLLTOOL"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8532 $as_echo "$DLLTOOL" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; }
8540 if test -z "$ac_cv_prog_DLLTOOL"; then
8541 ac_ct_DLLTOOL=$DLLTOOL
8542 # Extract the first word of "dlltool", so it can be a program name with args.
8543 set dummy dlltool; ac_word=$2
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8545 $as_echo_n "checking for $ac_word... " >&6; }
8546 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8547 $as_echo_n "(cached) " >&6
8549 if test -n "$ac_ct_DLLTOOL"; then
8550 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 test -z "$as_dir" && as_dir=.
8557 for ac_exec_ext in '' $ac_executable_extensions; do
8558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8559 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8569 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8570 if test -n "$ac_ct_DLLTOOL"; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8572 $as_echo "$ac_ct_DLLTOOL" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8578 if test "x$ac_ct_DLLTOOL" = x; then
8581 case $cross_compiling:$ac_tool_warned in
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8585 ac_tool_warned=yes ;;
8587 DLLTOOL=$ac_ct_DLLTOOL
8590 DLLTOOL="$ac_cv_prog_DLLTOOL"
8593 if test -n "$ac_tool_prefix"; then
8594 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_OBJDUMP+:} false; then :
8599 $as_echo_n "(cached) " >&6
8601 if test -n "$OBJDUMP"; then
8602 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 OBJDUMP=$ac_cv_prog_OBJDUMP
8622 if test -n "$OBJDUMP"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8624 $as_echo "$OBJDUMP" >&6; }
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 if test -z "$ac_cv_prog_OBJDUMP"; then
8633 ac_ct_OBJDUMP=$OBJDUMP
8634 # Extract the first word of "objdump", so it can be a program name with args.
8635 set dummy objdump; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8639 $as_echo_n "(cached) " >&6
8641 if test -n "$ac_ct_OBJDUMP"; then
8642 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8662 if test -n "$ac_ct_OBJDUMP"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8664 $as_echo "$ac_ct_OBJDUMP" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8670 if test "x$ac_ct_OBJDUMP" = x; then
8673 case $cross_compiling:$ac_tool_warned in
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8679 OBJDUMP=$ac_ct_OBJDUMP
8682 OBJDUMP="$ac_cv_prog_OBJDUMP"
8688 test -z "$AS" && AS=as
8694 test -z "$DLLTOOL" && DLLTOOL=dlltool
8700 test -z "$OBJDUMP" && OBJDUMP=objdump
8705 # Check whether --enable-static was given.
8706 if test "${enable_static+set}" = set; then :
8707 enableval=$enable_static; p=${PACKAGE-default}
8709 yes) enable_static=yes ;;
8710 no) enable_static=no ;;
8713 # Look at the argument we got. We use all the common list separators.
8714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8715 for pkg in $enableval; do
8717 if test "X$pkg" = "X$p"; then
8741 # Check whether --enable-shared was given.
8742 if test "${enable_shared+set}" = set; then :
8743 enableval=$enable_shared; p=${PACKAGE-default}
8745 yes) enable_shared=yes ;;
8746 no) enable_shared=no ;;
8749 # Look at the argument we got. We use all the common list separators.
8750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8751 for pkg in $enableval; do
8753 if test "X$pkg" = "X$p"; then
8774 # Check whether --with-pic was given.
8775 if test "${with_pic+set}" = set; then :
8776 withval=$with_pic; lt_p=${PACKAGE-default}
8778 yes|no) pic_mode=$withval ;;
8781 # Look at the argument we got. We use all the common list separators.
8782 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8783 for lt_pkg in $withval; do
8785 if test "X$lt_pkg" = "X$lt_p"; then
8797 test -z "$pic_mode" && pic_mode=default
8805 # Check whether --enable-fast-install was given.
8806 if test "${enable_fast_install+set}" = set; then :
8807 enableval=$enable_fast_install; p=${PACKAGE-default}
8809 yes) enable_fast_install=yes ;;
8810 no) enable_fast_install=no ;;
8812 enable_fast_install=no
8813 # Look at the argument we got. We use all the common list separators.
8814 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8815 for pkg in $enableval; do
8817 if test "X$pkg" = "X$p"; then
8818 enable_fast_install=yes
8825 enable_fast_install=yes
8838 # This can be used to rebuild libtool when needed
8839 LIBTOOL_DEPS="$ltmain"
8841 # Always use our own libtool.
8842 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8873 test -z "$LN_S" && LN_S="ln -s"
8888 if test -n "${ZSH_VERSION+set}" ; then
8889 setopt NO_GLOB_SUBST
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8893 $as_echo_n "checking for objdir... " >&6; }
8894 if ${lt_cv_objdir+:} false; then :
8895 $as_echo_n "(cached) " >&6
8897 rm -f .libs 2>/dev/null
8898 mkdir .libs 2>/dev/null
8899 if test -d .libs; then
8902 # MS-DOS does not allow filenames that begin with a dot.
8905 rmdir .libs 2>/dev/null
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8908 $as_echo "$lt_cv_objdir" >&6; }
8909 objdir=$lt_cv_objdir
8915 cat >>confdefs.h <<_ACEOF
8916 #define LT_OBJDIR "$lt_cv_objdir/"
8924 # AIX sometimes has problems with the GCC collect2 program. For some
8925 # reason, if we set the COLLECT_NAMES environment variable, the problems
8926 # vanish in a puff of smoke.
8927 if test "X${COLLECT_NAMES+set}" != Xset; then
8929 export COLLECT_NAMES
8936 can_build_shared=yes
8938 # All known linkers require a `.a' archive for static linking (except MSVC,
8939 # which needs '.lib').
8942 with_gnu_ld="$lt_cv_prog_gnu_ld"
8945 old_CFLAGS="$CFLAGS"
8947 # Set sane defaults for various variables
8948 test -z "$CC" && CC=cc
8949 test -z "$LTCC" && LTCC=$CC
8950 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8951 test -z "$LD" && LD=ld
8952 test -z "$ac_objext" && ac_objext=o
8954 for cc_temp in $compiler""; do
8956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8962 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8965 # Only perform the check for file, if the check method requires it
8966 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8967 case $deplibs_check_method in
8969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8971 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8972 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8973 $as_echo_n "(cached) " >&6
8977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8980 lt_save_MAGIC_CMD="$MAGIC_CMD"
8981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8983 for ac_dir in $ac_dummy; do
8985 test -z "$ac_dir" && ac_dir=.
8986 if test -f $ac_dir/${ac_tool_prefix}file; then
8987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8988 if test -n "$file_magic_test_file"; then
8989 case $deplibs_check_method in
8991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8994 $EGREP "$file_magic_regex" > /dev/null; then
8999 *** Warning: the command libtool uses to detect shared libraries,
9000 *** $file_magic_cmd, produces output that libtool cannot recognize.
9001 *** The result is that libtool may fail to recognize shared libraries
9002 *** as such. This will affect the creation of libtool libraries that
9003 *** depend on shared libraries, but programs linked with such libtool
9004 *** libraries will work regardless of this problem. Nevertheless, you
9005 *** may want to report the problem to your system manager and/or to
9006 *** bug-libtool@gnu.org
9016 MAGIC_CMD="$lt_save_MAGIC_CMD"
9021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9022 if test -n "$MAGIC_CMD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9024 $as_echo "$MAGIC_CMD" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9034 if test -z "$lt_cv_path_MAGIC_CMD"; then
9035 if test -n "$ac_tool_prefix"; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9037 $as_echo_n "checking for file... " >&6; }
9038 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9039 $as_echo_n "(cached) " >&6
9043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9046 lt_save_MAGIC_CMD="$MAGIC_CMD"
9047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9049 for ac_dir in $ac_dummy; do
9051 test -z "$ac_dir" && ac_dir=.
9052 if test -f $ac_dir/file; then
9053 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9054 if test -n "$file_magic_test_file"; then
9055 case $deplibs_check_method in
9057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9060 $EGREP "$file_magic_regex" > /dev/null; then
9065 *** Warning: the command libtool uses to detect shared libraries,
9066 *** $file_magic_cmd, produces output that libtool cannot recognize.
9067 *** The result is that libtool may fail to recognize shared libraries
9068 *** as such. This will affect the creation of libtool libraries that
9069 *** depend on shared libraries, but programs linked with such libtool
9070 *** libraries will work regardless of this problem. Nevertheless, you
9071 *** may want to report the problem to your system manager and/or to
9072 *** bug-libtool@gnu.org
9082 MAGIC_CMD="$lt_save_MAGIC_CMD"
9087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9088 if test -n "$MAGIC_CMD"; then
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9090 $as_echo "$MAGIC_CMD" >&6; }
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9093 $as_echo "no" >&6; }
9106 # Use C for the default configuration in the libtool script
9110 ac_cpp='$CPP $CPPFLAGS'
9111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 # Source file extension for C test sources.
9119 # Object file extension for compiled C test sources.
9123 # Code to be used in simple compile tests
9124 lt_simple_compile_test_code="int some_variable = 0;"
9126 # Code to be used in simple link tests
9127 lt_simple_link_test_code='int main(){return(0);}'
9135 # If no C compiler was specified, use CC.
9138 # If no C compiler flags were specified, use CFLAGS.
9139 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9141 # Allow CC to be a program name with arguments.
9144 # Save the default compiler, since it gets overwritten when the other
9145 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9146 compiler_DEFAULT=$CC
9148 # save warnings/boilerplate of simple test code
9149 ac_outfile=conftest.$ac_objext
9150 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9152 _lt_compiler_boilerplate=`cat conftest.err`
9155 ac_outfile=conftest.$ac_objext
9156 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9158 _lt_linker_boilerplate=`cat conftest.err`
9163 ## There is no encapsulation within the following macros, do not change
9164 ## the running order or otherwise move them around unless you know exactly
9165 ## what you are doing...
9166 if test -n "$compiler"; then
9168 lt_prog_compiler_no_builtin_flag=
9170 if test "$GCC" = yes; then
9171 case $cc_basename in
9173 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9175 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9179 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9180 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9181 $as_echo_n "(cached) " >&6
9183 lt_cv_prog_compiler_rtti_exceptions=no
9184 ac_outfile=conftest.$ac_objext
9185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9186 lt_compiler_flag="-fno-rtti -fno-exceptions"
9187 # Insert the option either (1) after the last *FLAGS variable, or
9188 # (2) before a word containing "conftest.", or (3) at the end.
9189 # Note that $ac_compile itself does not contain backslashes and begins
9190 # with a dollar sign (not a hyphen), so the echo should work correctly.
9191 # The option is referenced via a variable to avoid confusing sed.
9192 lt_compile=`echo "$ac_compile" | $SED \
9193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9195 -e 's:$: $lt_compiler_flag:'`
9196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9197 (eval "$lt_compile" 2>conftest.err)
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 if (exit $ac_status) && test -s "$ac_outfile"; then
9202 # The compiler can only warn and ignore the option if not recognized
9203 # So say no if there are warnings other than the usual output.
9204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9207 lt_cv_prog_compiler_rtti_exceptions=yes
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9214 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9216 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9229 lt_prog_compiler_wl=
9230 lt_prog_compiler_pic=
9231 lt_prog_compiler_static=
9234 if test "$GCC" = yes; then
9235 lt_prog_compiler_wl='-Wl,'
9236 lt_prog_compiler_static='-static'
9240 # All AIX code is PIC.
9241 if test "$host_cpu" = ia64; then
9242 # AIX 5 now supports IA64 processor
9243 lt_prog_compiler_static='-Bstatic'
9250 # see comment about AmigaOS4 .so support
9251 lt_prog_compiler_pic='-fPIC'
9254 # FIXME: we need at least 68020 code to build shared libraries, but
9255 # adding the `-m68020' flag to GCC prevents building anything better,
9257 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9262 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9263 # PIC is the default for these OSes.
9266 mingw* | cygwin* | pw32* | os2* | cegcc*)
9267 # This hack is so that the source file can tell whether it is being
9268 # built for inclusion in a dll (and should export symbols for example).
9269 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9270 # (--disable-auto-import) libraries
9271 lt_prog_compiler_pic='-DDLL_EXPORT'
9274 darwin* | rhapsody*)
9275 # PIC is the default on this platform
9276 # Common symbols not allowed in MH_DYLIB files
9277 lt_prog_compiler_pic='-fno-common'
9281 # PIC is the default for Haiku.
9282 # The "-static" flag exists, but is broken.
9283 lt_prog_compiler_static=
9287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9289 # sets the default TLS model and affects inlining.
9295 lt_prog_compiler_pic='-fPIC'
9301 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9302 # Instead, we relocate shared libraries at runtime.
9306 # Just because we use GCC doesn't mean we suddenly get shared libraries
9307 # on systems that don't support them.
9308 lt_prog_compiler_can_build_shared=no
9313 # QNX uses GNU C++, but need to define -shared option too, otherwise
9315 lt_prog_compiler_pic='-fPIC -shared'
9319 if test -d /usr/nec; then
9320 lt_prog_compiler_pic=-Kconform_pic
9325 lt_prog_compiler_pic='-fPIC'
9329 case $cc_basename in
9330 nvcc*) # Cuda Compiler Driver 2.2
9331 lt_prog_compiler_wl='-Xlinker '
9332 if test -n "$lt_prog_compiler_pic"; then
9333 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9338 # PORTME Check for flag to pass linker flags through the system compiler.
9341 lt_prog_compiler_wl='-Wl,'
9342 if test "$host_cpu" = ia64; then
9343 # AIX 5 now supports IA64 processor
9344 lt_prog_compiler_static='-Bstatic'
9346 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9350 mingw* | cygwin* | pw32* | os2* | cegcc*)
9351 # This hack is so that the source file can tell whether it is being
9352 # built for inclusion in a dll (and should export symbols for example).
9353 lt_prog_compiler_pic='-DDLL_EXPORT'
9356 hpux9* | hpux10* | hpux11*)
9357 lt_prog_compiler_wl='-Wl,'
9358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9365 lt_prog_compiler_pic='+Z'
9368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9369 lt_prog_compiler_static='${wl}-a ${wl}archive'
9372 irix5* | irix6* | nonstopux*)
9373 lt_prog_compiler_wl='-Wl,'
9374 # PIC (with -KPIC) is the default.
9375 lt_prog_compiler_static='-non_shared'
9378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9379 case $cc_basename in
9380 # old Intel for x86_64 which still supported -KPIC.
9382 lt_prog_compiler_wl='-Wl,'
9383 lt_prog_compiler_pic='-KPIC'
9384 lt_prog_compiler_static='-static'
9386 # icc used to be incompatible with GCC.
9387 # ICC 10 doesn't accept -KPIC any more.
9389 lt_prog_compiler_wl='-Wl,'
9390 lt_prog_compiler_pic='-fPIC'
9391 lt_prog_compiler_static='-static'
9393 # Lahey Fortran 8.1.
9395 lt_prog_compiler_wl='-Wl,'
9396 lt_prog_compiler_pic='--shared'
9397 lt_prog_compiler_static='--static'
9400 # NAG Fortran compiler
9401 lt_prog_compiler_wl='-Wl,-Wl,,'
9402 lt_prog_compiler_pic='-PIC'
9403 lt_prog_compiler_static='-Bstatic'
9405 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9406 # Portland Group compilers (*not* the Pentium gcc compiler,
9407 # which looks to be a dead project)
9408 lt_prog_compiler_wl='-Wl,'
9409 lt_prog_compiler_pic='-fpic'
9410 lt_prog_compiler_static='-Bstatic'
9413 lt_prog_compiler_wl='-Wl,'
9414 # All Alpha code is PIC.
9415 lt_prog_compiler_static='-non_shared'
9417 xl* | bgxl* | bgf* | mpixl*)
9418 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9419 lt_prog_compiler_wl='-Wl,'
9420 lt_prog_compiler_pic='-qpic'
9421 lt_prog_compiler_static='-qstaticlink'
9424 case `$CC -V 2>&1 | sed 5q` in
9425 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9426 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9427 lt_prog_compiler_pic='-KPIC'
9428 lt_prog_compiler_static='-Bstatic'
9429 lt_prog_compiler_wl=''
9431 *Sun\ F* | *Sun*Fortran*)
9432 lt_prog_compiler_pic='-KPIC'
9433 lt_prog_compiler_static='-Bstatic'
9434 lt_prog_compiler_wl='-Qoption ld '
9438 lt_prog_compiler_pic='-KPIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 lt_prog_compiler_wl='-Wl,'
9442 *Intel*\ [CF]*Compiler*)
9443 lt_prog_compiler_wl='-Wl,'
9444 lt_prog_compiler_pic='-fPIC'
9445 lt_prog_compiler_static='-static'
9448 lt_prog_compiler_wl='-Wl,'
9449 lt_prog_compiler_pic='-fpic'
9450 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_pic='-KPIC'
9459 lt_prog_compiler_static='-Bstatic'
9463 # QNX uses GNU C++, but need to define -shared option too, otherwise
9465 lt_prog_compiler_pic='-fPIC -shared'
9468 osf3* | osf4* | osf5*)
9469 lt_prog_compiler_wl='-Wl,'
9470 # All OSF/1 code is PIC.
9471 lt_prog_compiler_static='-non_shared'
9475 lt_prog_compiler_static='-non_shared'
9479 lt_prog_compiler_pic='-KPIC'
9480 lt_prog_compiler_static='-Bstatic'
9481 case $cc_basename in
9482 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9483 lt_prog_compiler_wl='-Qoption ld ';;
9485 lt_prog_compiler_wl='-Wl,';;
9490 lt_prog_compiler_wl='-Qoption ld '
9491 lt_prog_compiler_pic='-PIC'
9492 lt_prog_compiler_static='-Bstatic'
9495 sysv4 | sysv4.2uw2* | sysv4.3*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='-KPIC'
9498 lt_prog_compiler_static='-Bstatic'
9502 if test -d /usr/nec ;then
9503 lt_prog_compiler_pic='-Kconform_pic'
9504 lt_prog_compiler_static='-Bstatic'
9508 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='-KPIC'
9511 lt_prog_compiler_static='-Bstatic'
9515 lt_prog_compiler_wl='-Wl,'
9516 lt_prog_compiler_can_build_shared=no
9520 lt_prog_compiler_pic='-pic'
9521 lt_prog_compiler_static='-Bstatic'
9525 lt_prog_compiler_can_build_shared=no
9531 # For platforms which do not support PIC, -DPIC is meaningless:
9533 lt_prog_compiler_pic=
9536 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9541 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9542 if ${lt_cv_prog_compiler_pic+:} false; then :
9543 $as_echo_n "(cached) " >&6
9545 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9548 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9549 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9552 # Check to make sure the PIC flag actually works.
9554 if test -n "$lt_prog_compiler_pic"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9556 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9557 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9558 $as_echo_n "(cached) " >&6
9560 lt_cv_prog_compiler_pic_works=no
9561 ac_outfile=conftest.$ac_objext
9562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9564 # Insert the option either (1) after the last *FLAGS variable, or
9565 # (2) before a word containing "conftest.", or (3) at the end.
9566 # Note that $ac_compile itself does not contain backslashes and begins
9567 # with a dollar sign (not a hyphen), so the echo should work correctly.
9568 # The option is referenced via a variable to avoid confusing sed.
9569 lt_compile=`echo "$ac_compile" | $SED \
9570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9572 -e 's:$: $lt_compiler_flag:'`
9573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9574 (eval "$lt_compile" 2>conftest.err)
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 if (exit $ac_status) && test -s "$ac_outfile"; then
9579 # The compiler can only warn and ignore the option if not recognized
9580 # So say no if there are warnings other than the usual output.
9581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_pic_works=yes
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9591 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9593 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9594 case $lt_prog_compiler_pic in
9596 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9599 lt_prog_compiler_pic=
9600 lt_prog_compiler_can_build_shared=no
9616 # Check to make sure the static flag actually works.
9618 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9620 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9621 if ${lt_cv_prog_compiler_static_works+:} false; then :
9622 $as_echo_n "(cached) " >&6
9624 lt_cv_prog_compiler_static_works=no
9625 save_LDFLAGS="$LDFLAGS"
9626 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9627 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9628 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9629 # The linker can only warn and ignore the option if not recognized
9630 # So say no if there are warnings
9631 if test -s conftest.err; then
9632 # Append any errors to the config.log.
9633 cat conftest.err 1>&5
9634 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9636 if diff conftest.exp conftest.er2 >/dev/null; then
9637 lt_cv_prog_compiler_static_works=yes
9640 lt_cv_prog_compiler_static_works=yes
9644 LDFLAGS="$save_LDFLAGS"
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9648 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9650 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9653 lt_prog_compiler_static=
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9664 if ${lt_cv_prog_compiler_c_o+:} false; then :
9665 $as_echo_n "(cached) " >&6
9667 lt_cv_prog_compiler_c_o=no
9668 $RM -r conftest 2>/dev/null
9672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9674 lt_compiler_flag="-o out/conftest2.$ac_objext"
9675 # Insert the option either (1) after the last *FLAGS variable, or
9676 # (2) before a word containing "conftest.", or (3) at the end.
9677 # Note that $ac_compile itself does not contain backslashes and begins
9678 # with a dollar sign (not a hyphen), so the echo should work correctly.
9679 lt_compile=`echo "$ac_compile" | $SED \
9680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9682 -e 's:$: $lt_compiler_flag:'`
9683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9684 (eval "$lt_compile" 2>out/conftest.err)
9686 cat out/conftest.err >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9690 # The compiler can only warn and ignore the option if not recognized
9691 # So say no if there are warnings
9692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9695 lt_cv_prog_compiler_c_o=yes
9700 # SGI C++ compiler will create directory out/ii_files/ for
9701 # template instantiation
9702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9703 $RM out/* && rmdir out
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9710 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9719 if ${lt_cv_prog_compiler_c_o+:} false; then :
9720 $as_echo_n "(cached) " >&6
9722 lt_cv_prog_compiler_c_o=no
9723 $RM -r conftest 2>/dev/null
9727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9729 lt_compiler_flag="-o out/conftest2.$ac_objext"
9730 # Insert the option either (1) after the last *FLAGS variable, or
9731 # (2) before a word containing "conftest.", or (3) at the end.
9732 # Note that $ac_compile itself does not contain backslashes and begins
9733 # with a dollar sign (not a hyphen), so the echo should work correctly.
9734 lt_compile=`echo "$ac_compile" | $SED \
9735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9737 -e 's:$: $lt_compiler_flag:'`
9738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9739 (eval "$lt_compile" 2>out/conftest.err)
9741 cat out/conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9745 # The compiler can only warn and ignore the option if not recognized
9746 # So say no if there are warnings
9747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9750 lt_cv_prog_compiler_c_o=yes
9755 # SGI C++ compiler will create directory out/ii_files/ for
9756 # template instantiation
9757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9758 $RM out/* && rmdir out
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9765 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9770 hard_links="nottested"
9771 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9772 # do not overwrite the value of need_locks provided by the user
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9774 $as_echo_n "checking if we can lock with hard links... " >&6; }
9777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9779 ln conftest.a conftest.b 2>&5 || hard_links=no
9780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9782 $as_echo "$hard_links" >&6; }
9783 if test "$hard_links" = no; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9785 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9798 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9801 allow_undefined_flag=
9802 always_export_symbols=no
9804 archive_expsym_cmds=
9805 compiler_needs_object=no
9806 enable_shared_with_static_runtimes=no
9807 export_dynamic_flag_spec=
9808 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9809 hardcode_automatic=no
9811 hardcode_direct_absolute=no
9812 hardcode_libdir_flag_spec=
9813 hardcode_libdir_separator=
9815 hardcode_shlibpath_var=unsupported
9817 link_all_deplibs=unknown
9820 old_archive_from_new_cmds=
9821 old_archive_from_expsyms_cmds=
9822 thread_safe_flag_spec=
9823 whole_archive_flag_spec=
9824 # include_expsyms should be a list of space-separated symbols to be *always*
9825 # included in the symbol list
9827 # exclude_expsyms can be an extended regexp of symbols to exclude
9828 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9829 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9830 # as well as any symbol that contains `d'.
9831 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9833 # platforms (ab)use it in PIC code, but their linkers get confused if
9834 # the symbol is explicitly referenced. Since portable code cannot
9835 # rely on this symbol name, it's probably fine to never include it in
9836 # preloaded symbol tables.
9837 # Exclude shared library initialization/finalization symbols.
9838 extract_expsyms_cmds=
9841 cygwin* | mingw* | pw32* | cegcc*)
9842 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9843 # When not using gcc, we currently assume that we are using
9844 # Microsoft Visual C++.
9845 if test "$GCC" != yes; then
9850 # we just hope/assume this is gcc and not c89 (= MSVC++)
9856 linux* | k*bsd*-gnu | gnu*)
9863 # On some targets, GNU ld is compatible enough with the native linker
9864 # that we're better off using the native interface for both.
9865 lt_use_gnu_ld_interface=no
9866 if test "$with_gnu_ld" = yes; then
9869 # The AIX port of GNU ld has always aspired to compatibility
9870 # with the native linker. However, as the warning in the GNU ld
9871 # block says, versions before 2.19.5* couldn't really create working
9872 # shared libraries, regardless of the interface used.
9873 case `$LD -v 2>&1` in
9874 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9875 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9876 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9878 lt_use_gnu_ld_interface=yes
9883 lt_use_gnu_ld_interface=yes
9888 if test "$lt_use_gnu_ld_interface" = yes; then
9889 # If archive_cmds runs LD, not CC, wlarc should be empty
9892 # Set some defaults for GNU ld with shared library support. These
9893 # are reset later if shared libraries are not supported. Putting them
9894 # here allows them to be overridden if necessary.
9895 runpath_var=LD_RUN_PATH
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 export_dynamic_flag_spec='${wl}--export-dynamic'
9898 # ancient GNU ld didn't support --whole-archive et. al.
9899 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9900 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9902 whole_archive_flag_spec=
9904 supports_anon_versioning=no
9905 case `$LD -v 2>&1` in
9906 *GNU\ gold*) supports_anon_versioning=yes ;;
9907 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9908 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9909 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9910 *\ 2.11.*) ;; # other 2.11 versions
9911 *) supports_anon_versioning=yes ;;
9914 # See if GNU ld supports shared libraries.
9917 # On AIX/PPC, the GNU linker is very broken
9918 if test "$host_cpu" != ia64; then
9922 *** Warning: the GNU linker, at least up to release 2.19, is reported
9923 *** to be unable to reliably create shared libraries on AIX.
9924 *** Therefore, libtool is disabling shared libraries support. If you
9925 *** really care for shared libraries, you may want to install binutils
9926 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9927 *** You will then need to restart the configuration process.
9936 # see comment about AmigaOS4 .so support
9937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9938 archive_expsym_cmds=''
9941 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)'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_minus_L=yes
9949 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9950 allow_undefined_flag=unsupported
9951 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9952 # support --undefined. This deserves some investigation. FIXME
9953 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9959 cygwin* | mingw* | pw32* | cegcc*)
9960 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9961 # as there is no search path for DLLs.
9962 hardcode_libdir_flag_spec='-L$libdir'
9963 export_dynamic_flag_spec='${wl}--export-all-symbols'
9964 allow_undefined_flag=unsupported
9965 always_export_symbols=no
9966 enable_shared_with_static_runtimes=yes
9967 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'
9968 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9970 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9972 # If the export-symbols file already is a .def file (1st line
9973 # is EXPORTS), use it as is; otherwise, prepend...
9974 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
9975 cp $export_symbols $output_objdir/$soname.def;
9977 echo EXPORTS > $output_objdir/$soname.def;
9978 cat $export_symbols >> $output_objdir/$soname.def;
9980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9988 link_all_deplibs=yes
9993 hardcode_shlibpath_var=no
9994 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9995 export_dynamic_flag_spec='${wl}-E'
9996 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9997 # Instead, shared libraries are loaded at an image base (0x10000000 by
9998 # default) and relocated if they conflict, which is a slow very memory
9999 # consuming and fragmenting process. To avoid this, we pick a random,
10000 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10001 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10002 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10003 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'
10006 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10008 if test "$host_os" = linux-dietlibc; then
10009 case $cc_basename in
10010 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10013 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10014 && test "$tmp_diet" = no
10016 tmp_addflag=' $pic_flag'
10017 tmp_sharedflag='-shared'
10018 case $cc_basename,$host_cpu in
10019 pgcc*) # Portland Group C compiler
10020 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'
10021 tmp_addflag=' $pic_flag'
10023 pgf77* | pgf90* | pgf95* | pgfortran*)
10024 # Portland Group f77 and f90 compilers
10025 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'
10026 tmp_addflag=' $pic_flag -Mnomain' ;;
10027 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10028 tmp_addflag=' -i_dynamic' ;;
10029 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10030 tmp_addflag=' -i_dynamic -nofor_main' ;;
10031 ifc* | ifort*) # Intel Fortran compiler
10032 tmp_addflag=' -nofor_main' ;;
10033 lf95*) # Lahey Fortran 8.1
10034 whole_archive_flag_spec=
10035 tmp_sharedflag='--shared' ;;
10036 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10037 tmp_sharedflag='-qmkshrobj'
10039 nvcc*) # Cuda Compiler Driver 2.2
10040 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'
10041 compiler_needs_object=yes
10044 case `$CC -V 2>&1 | sed 5q` in
10045 *Sun\ C*) # Sun C 5.9
10046 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'
10047 compiler_needs_object=yes
10048 tmp_sharedflag='-G' ;;
10049 *Sun\ F*) # Sun Fortran 8.3
10050 tmp_sharedflag='-G' ;;
10052 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054 if test "x$supports_anon_versioning" = xyes; then
10055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10057 echo "local: *; };" >> $output_objdir/$libname.ver~
10058 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10061 case $cc_basename in
10062 xlf* | bgf* | bgxlf* | mpixlf*)
10063 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10064 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10067 if test "x$supports_anon_versioning" = xyes; then
10068 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10070 echo "local: *; };" >> $output_objdir/$libname.ver~
10071 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10080 netbsd* | netbsdelf*-gnu)
10081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10082 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10085 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10091 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10095 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10096 *** create shared libraries on Solaris systems. Therefore, libtool
10097 *** is disabling shared libraries support. We urge you to upgrade GNU
10098 *** binutils to release 2.9.1 or newer. Another option is to modify
10099 *** your PATH or compiler configuration so that the native linker is
10100 *** used, and then restart.
10103 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10104 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10112 case `$LD -v 2>&1` in
10113 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10117 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10118 *** reliably create shared libraries on SCO systems. Therefore, libtool
10119 *** is disabling shared libraries support. We urge you to upgrade GNU
10120 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10121 *** your PATH or compiler configuration so that the native linker is
10122 *** used, and then restart.
10127 # For security reasons, it is highly recommended that you always
10128 # use absolute paths for naming shared libraries, and exclude the
10129 # DT_RUNPATH tag from executables and libraries. But doing so
10130 # requires that you compile everything twice, which is a pain.
10131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10134 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10145 hardcode_direct=yes
10146 hardcode_shlibpath_var=no
10150 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10151 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10159 if test "$ld_shlibs" = no; then
10161 hardcode_libdir_flag_spec=
10162 export_dynamic_flag_spec=
10163 whole_archive_flag_spec=
10166 # PORTME fill in a description of your system's linker (not GNU ld)
10169 allow_undefined_flag=unsupported
10170 always_export_symbols=yes
10171 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'
10172 # Note: this linker hardcodes the directories in LIBPATH if there
10173 # are no directories specified by -L.
10174 hardcode_minus_L=yes
10175 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10176 # Neither direct hardcoding nor static linking is supported with a
10178 hardcode_direct=unsupported
10183 if test "$host_cpu" = ia64; then
10184 # On IA64, the linker does run time linking by default, so we don't
10185 # have to do anything special.
10186 aix_use_runtimelinking=no
10187 exp_sym_flag='-Bexport'
10190 # If we're using GNU nm, then we don't want the "-C" option.
10191 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10192 # Also, AIX nm treats weak defined symbols like other global
10193 # defined symbols, whereas GNU nm marks them as "W".
10194 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10195 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'
10197 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'
10199 aix_use_runtimelinking=no
10201 # Test if we are trying to use run time linking or normal
10202 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10203 # need to do runtime linking.
10204 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10205 for ld_flag in $LDFLAGS; do
10206 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10207 aix_use_runtimelinking=yes
10214 exp_sym_flag='-bexport'
10215 no_entry_flag='-bnoentry'
10218 # When large executables or shared objects are built, AIX ld can
10219 # have problems creating the table of contents. If linking a library
10220 # or program results in "error TOC overflow" add -mminimal-toc to
10221 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10222 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10225 hardcode_direct=yes
10226 hardcode_direct_absolute=yes
10227 hardcode_libdir_separator=':'
10228 link_all_deplibs=yes
10229 file_list_spec='${wl}-f,'
10231 if test "$GCC" = yes; then
10232 case $host_os in aix4.[012]|aix4.[012].*)
10233 # We only want to do this on AIX 4.2 and lower, the check
10234 # below for broken collect2 doesn't work under 4.3+
10235 collect2name=`${CC} -print-prog-name=collect2`
10236 if test -f "$collect2name" &&
10237 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10239 # We have reworked collect2
10242 # We have old collect2
10243 hardcode_direct=unsupported
10244 # It fails to find uninstalled libraries when the uninstalled
10245 # path is not listed in the libpath. Setting hardcode_minus_L
10246 # to unsupported forces relinking
10247 hardcode_minus_L=yes
10248 hardcode_libdir_flag_spec='-L$libdir'
10249 hardcode_libdir_separator=
10253 shared_flag='-shared'
10254 if test "$aix_use_runtimelinking" = yes; then
10255 shared_flag="$shared_flag "'${wl}-G'
10257 link_all_deplibs=no
10260 if test "$host_cpu" = ia64; then
10261 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10262 # chokes on -Wl,-G. The following line is correct:
10265 if test "$aix_use_runtimelinking" = yes; then
10266 shared_flag='${wl}-G'
10268 shared_flag='${wl}-bM:SRE'
10273 export_dynamic_flag_spec='${wl}-bexpall'
10274 # It seems that -bexpall does not export symbols beginning with
10275 # underscore (_), so it is better to generate a list of symbols to export.
10276 always_export_symbols=yes
10277 if test "$aix_use_runtimelinking" = yes; then
10278 # Warning - without using the other runtime loading flags (-brtl),
10279 # -berok will link without error, but may produce a broken library.
10280 allow_undefined_flag='-berok'
10281 # Determine the default libpath from the value encoded in an
10282 # empty executable.
10283 if test "${lt_cv_aix_libpath+set}" = set; then
10284 aix_libpath=$lt_cv_aix_libpath
10286 if ${lt_cv_aix_libpath_+:} false; then :
10287 $as_echo_n "(cached) " >&6
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10300 if ac_fn_c_try_link "$LINENO"; then :
10302 lt_aix_libpath_sed='
10303 /Import File Strings/,/^$/ {
10305 s/^0 *\([^ ]*\) *$/\1/
10309 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10310 # Check for a 64-bit object if we didn't find anything.
10311 if test -z "$lt_cv_aix_libpath_"; then
10312 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10315 rm -f core conftest.err conftest.$ac_objext \
10316 conftest$ac_exeext conftest.$ac_ext
10317 if test -z "$lt_cv_aix_libpath_"; then
10318 lt_cv_aix_libpath_="/usr/lib:/lib"
10323 aix_libpath=$lt_cv_aix_libpath_
10326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10327 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"
10329 if test "$host_cpu" = ia64; then
10330 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10331 allow_undefined_flag="-z nodefs"
10332 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"
10334 # Determine the default libpath from the value encoded in an
10335 # empty executable.
10336 if test "${lt_cv_aix_libpath+set}" = set; then
10337 aix_libpath=$lt_cv_aix_libpath
10339 if ${lt_cv_aix_libpath_+:} false; then :
10340 $as_echo_n "(cached) " >&6
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10353 if ac_fn_c_try_link "$LINENO"; then :
10355 lt_aix_libpath_sed='
10356 /Import File Strings/,/^$/ {
10358 s/^0 *\([^ ]*\) *$/\1/
10362 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10363 # Check for a 64-bit object if we didn't find anything.
10364 if test -z "$lt_cv_aix_libpath_"; then
10365 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10368 rm -f core conftest.err conftest.$ac_objext \
10369 conftest$ac_exeext conftest.$ac_ext
10370 if test -z "$lt_cv_aix_libpath_"; then
10371 lt_cv_aix_libpath_="/usr/lib:/lib"
10376 aix_libpath=$lt_cv_aix_libpath_
10379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10380 # Warning - without using the other run time loading flags,
10381 # -berok will link without error, but may produce a broken library.
10382 no_undefined_flag=' ${wl}-bernotok'
10383 allow_undefined_flag=' ${wl}-berok'
10384 if test "$with_gnu_ld" = yes; then
10385 # We only use this code for GNU lds that support --whole-archive.
10386 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10388 # Exported symbols can be pulled into shared objects from archives
10389 whole_archive_flag_spec='$convenience'
10391 archive_cmds_need_lc=yes
10392 # This is similar to how AIX traditionally builds its shared libraries.
10393 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'
10401 # see comment about AmigaOS4 .so support
10402 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403 archive_expsym_cmds=''
10406 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)'
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_minus_L=yes
10414 export_dynamic_flag_spec=-rdynamic
10417 cygwin* | mingw* | pw32* | cegcc*)
10418 # When not using gcc, we currently assume that we are using
10419 # Microsoft Visual C++.
10420 # hardcode_libdir_flag_spec is actually meaningless, as there is
10421 # no search path for DLLs.
10422 case $cc_basename in
10425 hardcode_libdir_flag_spec=' '
10426 allow_undefined_flag=unsupported
10427 always_export_symbols=yes
10429 # Tell ltmain to make .lib files, not .a files.
10431 # Tell ltmain to make .dll files, not .so files.
10433 # FIXME: Setting linknames here is a bad hack.
10434 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10435 archive_expsym_cmds='if test "x`$SED \"$sed_uncomment_deffile\" $export_symbols | $SED 1q`" = xEXPORTS; then
10436 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10438 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10440 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10442 # The linker will not automatically build a static lib if we build a DLL.
10443 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10444 enable_shared_with_static_runtimes=yes
10445 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10446 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10448 old_postinstall_cmds='chmod 644 $oldlib'
10449 postlink_cmds='lt_outputfile="@OUTPUT@"~
10450 lt_tool_outputfile="@TOOL_OUTPUT@"~
10451 case $lt_outputfile in
10454 lt_outputfile="$lt_outputfile.exe"
10455 lt_tool_outputfile="$lt_tool_outputfile.exe"
10458 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10459 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10460 $RM "$lt_outputfile.manifest";
10464 # Assume MSVC wrapper
10465 hardcode_libdir_flag_spec=' '
10466 allow_undefined_flag=unsupported
10467 # Tell ltmain to make .lib files, not .a files.
10469 # Tell ltmain to make .dll files, not .so files.
10471 # FIXME: Setting linknames here is a bad hack.
10472 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10473 # The linker will automatically build a .lib file if we build a DLL.
10474 old_archive_from_new_cmds='true'
10475 # FIXME: Should let the user specify the lib program.
10476 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10477 enable_shared_with_static_runtimes=yes
10482 darwin* | rhapsody*)
10485 archive_cmds_need_lc=no
10487 hardcode_automatic=yes
10488 hardcode_shlibpath_var=unsupported
10489 if test "$lt_cv_ld_force_load" = "yes"; then
10490 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\"`'
10493 whole_archive_flag_spec=''
10495 link_all_deplibs=yes
10496 allow_undefined_flag="$_lt_dar_allow_undefined"
10497 case $cc_basename in
10498 ifort*) _lt_dar_can_shared=yes ;;
10499 *) _lt_dar_can_shared=$GCC ;;
10501 if test "$_lt_dar_can_shared" = "yes"; then
10502 output_verbose_link_cmd=func_echo_all
10503 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10504 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10505 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}"
10506 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}"
10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_shlibpath_var=no
10520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10521 # support. Future versions do this automatically, but an explicit c++rt0.o
10522 # does not break anything, and helps significantly (at the cost of a little
10525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10526 hardcode_libdir_flag_spec='-R$libdir'
10527 hardcode_direct=yes
10528 hardcode_shlibpath_var=no
10531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_direct=yes
10535 hardcode_minus_L=yes
10536 hardcode_shlibpath_var=no
10539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10540 freebsd* | dragonfly*)
10541 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10542 hardcode_libdir_flag_spec='-R$libdir'
10543 hardcode_direct=yes
10544 hardcode_shlibpath_var=no
10548 if test "$GCC" = yes; then
10549 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'
10551 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'
10553 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10554 hardcode_libdir_separator=:
10555 hardcode_direct=yes
10557 # hardcode_minus_L: Not really in the search PATH,
10558 # but as the default location of the library.
10559 hardcode_minus_L=yes
10560 export_dynamic_flag_spec='${wl}-E'
10564 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10565 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10567 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10569 if test "$with_gnu_ld" = no; then
10570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10571 hardcode_libdir_separator=:
10572 hardcode_direct=yes
10573 hardcode_direct_absolute=yes
10574 export_dynamic_flag_spec='${wl}-E'
10575 # hardcode_minus_L: Not really in the search PATH,
10576 # but as the default location of the library.
10577 hardcode_minus_L=yes
10582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10591 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10597 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10600 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10604 # Older versions of the 11.00 compiler do not understand -b yet
10605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10607 $as_echo_n "checking if $CC understands -b... " >&6; }
10608 if ${lt_cv_prog_compiler__b+:} false; then :
10609 $as_echo_n "(cached) " >&6
10611 lt_cv_prog_compiler__b=no
10612 save_LDFLAGS="$LDFLAGS"
10613 LDFLAGS="$LDFLAGS -b"
10614 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10616 # The linker can only warn and ignore the option if not recognized
10617 # So say no if there are warnings
10618 if test -s conftest.err; then
10619 # Append any errors to the config.log.
10620 cat conftest.err 1>&5
10621 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10623 if diff conftest.exp conftest.er2 >/dev/null; then
10624 lt_cv_prog_compiler__b=yes
10627 lt_cv_prog_compiler__b=yes
10631 LDFLAGS="$save_LDFLAGS"
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10637 if test x"$lt_cv_prog_compiler__b" = xyes; then
10638 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10640 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10646 if test "$with_gnu_ld" = no; then
10647 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10648 hardcode_libdir_separator=:
10653 hardcode_shlibpath_var=no
10656 hardcode_direct=yes
10657 hardcode_direct_absolute=yes
10658 export_dynamic_flag_spec='${wl}-E'
10660 # hardcode_minus_L: Not really in the search PATH,
10661 # but as the default location of the library.
10662 hardcode_minus_L=yes
10668 irix5* | irix6* | nonstopux*)
10669 if test "$GCC" = yes; then
10670 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'
10671 # Try to use the -exported_symbol ld option, if it does not
10672 # work, assume that -exports_file does not work either and
10673 # implicitly export all symbols.
10674 # This should be the same for all languages, so no per-tag cache variable.
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10676 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10677 if ${lt_cv_irix_exported_symbol+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 save_LDFLAGS="$LDFLAGS"
10681 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 int foo (void) { return 0; }
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 lt_cv_irix_exported_symbol=yes
10689 lt_cv_irix_exported_symbol=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LDFLAGS="$save_LDFLAGS"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10696 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10697 if test "$lt_cv_irix_exported_symbol" = yes; then
10698 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'
10701 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'
10702 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'
10704 archive_cmds_need_lc='no'
10705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10706 hardcode_libdir_separator=:
10708 link_all_deplibs=yes
10711 netbsd* | netbsdelf*-gnu)
10712 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10715 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10717 hardcode_libdir_flag_spec='-R$libdir'
10718 hardcode_direct=yes
10719 hardcode_shlibpath_var=no
10723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724 hardcode_direct=yes
10725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10726 hardcode_libdir_separator=:
10727 hardcode_shlibpath_var=no
10734 if test -f /usr/libexec/ld.so; then
10735 hardcode_direct=yes
10736 hardcode_shlibpath_var=no
10737 hardcode_direct_absolute=yes
10738 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10740 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10741 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10742 export_dynamic_flag_spec='${wl}-E'
10745 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10746 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10747 hardcode_libdir_flag_spec='-R$libdir'
10750 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10761 hardcode_libdir_flag_spec='-L$libdir'
10762 hardcode_minus_L=yes
10763 allow_undefined_flag=unsupported
10764 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'
10765 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10769 if test "$GCC" = yes; then
10770 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10771 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'
10773 allow_undefined_flag=' -expect_unresolved \*'
10774 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'
10776 archive_cmds_need_lc='no'
10777 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10778 hardcode_libdir_separator=:
10781 osf4* | osf5*) # as osf3* with the addition of -msym flag
10782 if test "$GCC" = yes; then
10783 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10784 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'
10785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10787 allow_undefined_flag=' -expect_unresolved \*'
10788 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'
10789 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~
10790 $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'
10792 # Both c and cxx compiler support -rpath directly
10793 hardcode_libdir_flag_spec='-rpath $libdir'
10795 archive_cmds_need_lc='no'
10796 hardcode_libdir_separator=:
10800 no_undefined_flag=' -z defs'
10801 if test "$GCC" = yes; then
10803 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10804 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10805 $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'
10807 case `$CC -V 2>&1` in
10810 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10812 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10816 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10818 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10822 hardcode_libdir_flag_spec='-R$libdir'
10823 hardcode_shlibpath_var=no
10825 solaris2.[0-5] | solaris2.[0-5].*) ;;
10827 # The compiler driver will combine and reorder linker options,
10828 # but understands `-z linker_flag'. GCC discards it without `$wl',
10829 # but is careful enough not to reorder.
10830 # Supported since Solaris 2.6 (maybe 2.5.1?)
10831 if test "$GCC" = yes; then
10832 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10834 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10838 link_all_deplibs=yes
10842 if test "x$host_vendor" = xsequent; then
10843 # Use $CC to link under sequent, because it throws in some extra .o
10844 # files that make .init and .fini sections work.
10845 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10847 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_libdir_flag_spec='-L$libdir'
10850 hardcode_direct=yes
10851 hardcode_minus_L=yes
10852 hardcode_shlibpath_var=no
10856 case $host_vendor in
10858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10859 hardcode_direct=yes # is this really true???
10862 ## LD is ld it makes a PLAMLIB
10863 ## CC just makes a GrossModule.
10864 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10865 reload_cmds='$CC -r -o $output$reload_objs'
10869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10873 runpath_var='LD_RUN_PATH'
10874 hardcode_shlibpath_var=no
10878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10879 hardcode_shlibpath_var=no
10880 export_dynamic_flag_spec='-Bexport'
10884 if test -d /usr/nec; then
10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886 hardcode_shlibpath_var=no
10887 runpath_var=LD_RUN_PATH
10888 hardcode_runpath_var=yes
10893 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10894 no_undefined_flag='${wl}-z,text'
10895 archive_cmds_need_lc=no
10896 hardcode_shlibpath_var=no
10897 runpath_var='LD_RUN_PATH'
10899 if test "$GCC" = yes; then
10900 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10903 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10904 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 sysv5* | sco3.2v5* | sco5v6*)
10909 # Note: We can NOT use -z defs as we might desire, because we do not
10910 # link with -lc, and that would cause any symbols used from libc to
10911 # always be unresolved, which means just about no library would
10912 # ever link correctly. If we're not using GNU ld we use -z text
10913 # though, which does catch some bad symbols but isn't as heavy-handed
10915 no_undefined_flag='${wl}-z,text'
10916 allow_undefined_flag='${wl}-z,nodefs'
10917 archive_cmds_need_lc=no
10918 hardcode_shlibpath_var=no
10919 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10920 hardcode_libdir_separator=':'
10921 link_all_deplibs=yes
10922 export_dynamic_flag_spec='${wl}-Bexport'
10923 runpath_var='LD_RUN_PATH'
10925 if test "$GCC" = yes; then
10926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10936 hardcode_libdir_flag_spec='-L$libdir'
10937 hardcode_shlibpath_var=no
10945 if test x$host_vendor = xsni; then
10947 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10948 export_dynamic_flag_spec='${wl}-Blargedynsym'
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10955 $as_echo "$ld_shlibs" >&6; }
10956 test "$ld_shlibs" = no && can_build_shared=no
10958 with_gnu_ld=$with_gnu_ld
10975 # Do we need to explicitly link libc?
10977 case "x$archive_cmds_need_lc" in
10979 # Assume -lc should be added
10980 archive_cmds_need_lc=yes
10982 if test "$enable_shared" = yes && test "$GCC" = yes; then
10983 case $archive_cmds in
10985 # FIXME: we may have to deal with multi-command sequences.
10988 # Test whether the compiler implicitly links with -lc since on some
10989 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10990 # to ld, don't add -lc before -lgcc.
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10992 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10993 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10994 $as_echo_n "(cached) " >&6
10997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11000 (eval $ac_compile) 2>&5
11002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11003 test $ac_status = 0; } 2>conftest.err; then
11006 libobjs=conftest.$ac_objext
11008 wl=$lt_prog_compiler_wl
11009 pic_flag=$lt_prog_compiler_pic
11015 lt_save_allow_undefined_flag=$allow_undefined_flag
11016 allow_undefined_flag=
11017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11018 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021 test $ac_status = 0; }
11023 lt_cv_archive_cmds_need_lc=no
11025 lt_cv_archive_cmds_need_lc=yes
11027 allow_undefined_flag=$lt_save_allow_undefined_flag
11029 cat conftest.err 1>&5
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11035 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11036 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11195 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11197 if test "$GCC" = yes; then
11199 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11200 *) lt_awk_arg="/^libraries:/" ;;
11203 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11204 *) lt_sed_strip_eq="s,=/,/,g" ;;
11206 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11207 case $lt_search_path_spec in
11209 # if the path contains ";" then we assume it to be the separator
11210 # otherwise default to the standard path separator (i.e. ":") - it is
11211 # assumed that no part of a normal pathname contains ";" but that should
11212 # okay in the real world where ";" in dirpaths is itself problematic.
11213 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11216 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11219 # Ok, now we have the path, separated by spaces, we can step through it
11220 # and add multilib dir if necessary.
11221 lt_tmp_lt_search_path_spec=
11222 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11223 for lt_sys_path in $lt_search_path_spec; do
11224 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11225 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11227 test -d "$lt_sys_path" && \
11228 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11231 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11232 BEGIN {RS=" "; FS="/|\n";} {
11235 for (lt_i = NF; lt_i > 0; lt_i--) {
11236 if ($lt_i != "" && $lt_i != ".") {
11237 if ($lt_i == "..") {
11240 if (lt_count == 0) {
11241 lt_foo="/" $lt_i lt_foo;
11248 if (lt_foo != "") { lt_freq[lt_foo]++; }
11249 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11251 # AWK program above erroneously prepends '/' to C:/dos/paths
11254 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11255 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11257 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11259 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11261 library_names_spec=
11262 libname_spec='lib$name'
11266 postuninstall_cmds=
11270 shlibpath_overrides_runpath=unknown
11272 dynamic_linker="$host_os ld.so"
11273 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11274 need_lib_prefix=unknown
11275 hardcode_into_libs=no
11277 # when you set need_version to no, make sure it does not cause -set_version
11278 # flags to be left without arguments
11279 need_version=unknown
11283 version_type=linux # correct to gnu/linux during the next big refactor
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11285 shlibpath_var=LIBPATH
11287 # AIX 3 has no versioning support, so we append a major version to the name.
11288 soname_spec='${libname}${release}${shared_ext}$major'
11292 version_type=linux # correct to gnu/linux during the next big refactor
11295 hardcode_into_libs=yes
11296 if test "$host_cpu" = ia64; then
11297 # AIX 5 supports IA64
11298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11299 shlibpath_var=LD_LIBRARY_PATH
11301 # With GCC up to 2.95.x, collect2 would create an import file
11302 # for dependence libraries. The import file would start with
11303 # the line `#! .'. This would cause the generated library to
11304 # depend on `.', always an invalid library. This was fixed in
11305 # development snapshots of GCC prior to 3.0.
11307 aix4 | aix4.[01] | aix4.[01].*)
11308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11310 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11313 can_build_shared=no
11317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11318 # soname into executable. Probably we can add versioning support to
11319 # collect2, so additional links can be useful in future.
11320 if test "$aix_use_runtimelinking" = yes; then
11321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11322 # instead of lib<name>.a to let people know that these are not
11323 # typical AIX shared libraries.
11324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326 # We preserve .a as extension for shared libraries through AIX4.2
11327 # and later when we are not doing run time linking.
11328 library_names_spec='${libname}${release}.a $libname.a'
11329 soname_spec='${libname}${release}${shared_ext}$major'
11331 shlibpath_var=LIBPATH
11338 # Since July 2007 AmigaOS4 officially supports .so libraries.
11339 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11343 library_names_spec='$libname.ixlibrary $libname.a'
11344 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11345 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'
11351 library_names_spec='${libname}${shared_ext}'
11352 dynamic_linker="$host_os ld.so"
11353 shlibpath_var=LIBRARY_PATH
11357 version_type=linux # correct to gnu/linux during the next big refactor
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11362 shlibpath_var=LD_LIBRARY_PATH
11363 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11364 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11365 # the default ld.so.conf also contains /usr/contrib/lib and
11366 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11367 # libtool to hard-code these into programs
11370 cygwin* | mingw* | pw32* | cegcc*)
11371 version_type=windows
11376 case $GCC,$cc_basename in
11379 library_names_spec='$libname.dll.a'
11380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11381 postinstall_cmds='base_file=`basename \${file}`~
11382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11383 dldir=$destdir/`dirname \$dlpath`~
11384 test -d \$dldir || mkdir -p \$dldir~
11385 $install_prog $dir/$dlname \$dldir/$dlname~
11386 chmod a+x \$dldir/$dlname~
11387 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11388 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11390 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11391 dlpath=$dir/\$dldll~
11393 shlibpath_overrides_runpath=yes
11397 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11398 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11400 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11403 # MinGW DLLs use traditional 'lib' prefix
11404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11407 # pw32 DLLs use 'pw' prefix rather than 'lib'
11408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11411 dynamic_linker='Win32 ld.exe'
11416 libname_spec='$name'
11417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418 library_names_spec='${libname}.dll.lib'
11422 sys_lib_search_path_spec=
11425 for lt_path in $LIB
11428 # Let DOS variable expansion print the short 8.3 style file name.
11429 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11430 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11433 # Convert to MSYS style.
11434 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11437 # Convert to unix form, then to dos form, then back to unix form
11438 # but this time dos style (no spaces!) so that the unix form looks
11439 # like /cygdrive/c/PROGRA~1:/cygdr...
11440 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11441 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11442 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11445 sys_lib_search_path_spec="$LIB"
11446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11447 # It is most probably a Windows format PATH.
11448 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11452 # FIXME: find the short name or the path components, as spaces are
11453 # common. (e.g. "Program Files" -> "PROGRA~1")
11457 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11458 postinstall_cmds='base_file=`basename \${file}`~
11459 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11460 dldir=$destdir/`dirname \$dlpath`~
11461 test -d \$dldir || mkdir -p \$dldir~
11462 $install_prog $dir/$dlname \$dldir/$dlname'
11463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11464 dlpath=$dir/\$dldll~
11466 shlibpath_overrides_runpath=yes
11467 dynamic_linker='Win32 link.exe'
11471 # Assume MSVC wrapper
11472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11473 dynamic_linker='Win32 ld.exe'
11476 # FIXME: first we should search . and the directory the executable is in
11480 darwin* | rhapsody*)
11481 dynamic_linker="$host_os dyld"
11482 version_type=darwin
11485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11486 soname_spec='${libname}${release}${major}$shared_ext'
11487 shlibpath_overrides_runpath=yes
11488 shlibpath_var=DYLD_LIBRARY_PATH
11489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11496 version_type=linux # correct to gnu/linux during the next big refactor
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 shlibpath_var=LD_LIBRARY_PATH
11504 freebsd* | dragonfly*)
11505 # DragonFly does not have aout. When/if they implement a new
11506 # versioning mechanism, adjust this.
11507 if test -x /usr/bin/objformat; then
11508 objformat=`/usr/bin/objformat`
11511 freebsd[23].*) objformat=aout ;;
11512 *) objformat=elf ;;
11515 version_type=freebsd-$objformat
11516 case $version_type in
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11527 shlibpath_var=LD_LIBRARY_PATH
11530 shlibpath_overrides_runpath=yes
11532 freebsd3.[01]* | freebsdelf3.[01]*)
11533 shlibpath_overrides_runpath=yes
11534 hardcode_into_libs=yes
11536 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11537 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11538 shlibpath_overrides_runpath=no
11539 hardcode_into_libs=yes
11541 *) # from 4.6 on, and DragonFly
11542 shlibpath_overrides_runpath=yes
11543 hardcode_into_libs=yes
11549 version_type=linux # correct to gnu/linux during the next big refactor
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=no
11556 hardcode_into_libs=yes
11560 version_type=linux # correct to gnu/linux during the next big refactor
11563 dynamic_linker="$host_os runtime_loader"
11564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11565 soname_spec='${libname}${release}${shared_ext}$major'
11566 shlibpath_var=LIBRARY_PATH
11567 shlibpath_overrides_runpath=yes
11568 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11569 hardcode_into_libs=yes
11572 hpux9* | hpux10* | hpux11*)
11573 # Give a soname corresponding to the major version so that dld.sl refuses to
11574 # link against other versions.
11581 hardcode_into_libs=yes
11582 dynamic_linker="$host_os dld.so"
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 if test "X$HPUX_IA64_MODE" = X32; then
11588 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11590 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11592 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11596 hardcode_into_libs=yes
11597 dynamic_linker="$host_os dld.sl"
11598 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11599 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11607 dynamic_linker="$host_os dld.sl"
11608 shlibpath_var=SHLIB_PATH
11609 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11614 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11615 postinstall_cmds='chmod 555 $lib'
11616 # or fails outright, so override atomically:
11617 install_override_mode=555
11621 version_type=linux # correct to gnu/linux during the next big refactor
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 hardcode_into_libs=yes
11632 irix5* | irix6* | nonstopux*)
11634 nonstopux*) version_type=nonstopux ;;
11636 if test "$lt_cv_prog_gnu_ld" = yes; then
11637 version_type=linux # correct to gnu/linux during the next big refactor
11644 soname_spec='${libname}${release}${shared_ext}$major'
11645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11647 irix5* | nonstopux*)
11648 libsuff= shlibsuff=
11651 case $LD in # libtool.m4 will add one of these switches to LD
11652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11653 libsuff= shlibsuff= libmagic=32-bit;;
11654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11655 libsuff=32 shlibsuff=N32 libmagic=N32;;
11656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11658 *) libsuff= shlibsuff= libmagic=never-match;;
11662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11663 shlibpath_overrides_runpath=no
11664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11666 hardcode_into_libs=yes
11669 # No shared lib support for Linux oldld, aout, or coff.
11670 linux*oldld* | linux*aout* | linux*coff*)
11675 version_type=none # Android doesn't support versioned libraries.
11678 library_names_spec='$libname$release$shared_ext'
11679 soname_spec='$libname$release$shared_ext'
11681 shlibpath_var=LD_LIBRARY_PATH
11682 shlibpath_overrides_runpath=yes
11684 # This implies no fast_install, which is unacceptable.
11685 # Some rework will be needed to allow for fast_install
11686 # before this can be enabled.
11687 hardcode_into_libs=yes
11689 dynamic_linker='Android linker'
11690 # Don't embed -rpath directories since the linker doesn't support them.
11691 hardcode_libdir_flag_spec='-L$libdir'
11694 # This must be glibc/ELF.
11695 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11696 version_type=linux # correct to gnu/linux during the next big refactor
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11700 soname_spec='${libname}${release}${shared_ext}$major'
11701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11702 shlibpath_var=LD_LIBRARY_PATH
11703 shlibpath_overrides_runpath=no
11705 # Some binutils ld are patched to set DT_RUNPATH
11706 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11707 $as_echo_n "(cached) " >&6
11709 lt_cv_shlibpath_overrides_runpath=no
11710 save_LDFLAGS=$LDFLAGS
11711 save_libdir=$libdir
11712 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11713 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11725 if ac_fn_c_try_link "$LINENO"; then :
11726 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11727 lt_cv_shlibpath_overrides_runpath=yes
11730 rm -f core conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732 LDFLAGS=$save_LDFLAGS
11733 libdir=$save_libdir
11737 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11739 # This implies no fast_install, which is unacceptable.
11740 # Some rework will be needed to allow for fast_install
11741 # before this can be enabled.
11742 hardcode_into_libs=yes
11744 # Append ld.so.conf contents to the search path
11745 if test -f /etc/ld.so.conf; then
11746 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' ' '`
11747 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11750 # We used to test for /lib/ld.so.1 and disable shared libraries on
11751 # powerpc, because MkLinux only supported shared libraries with the
11752 # GNU dynamic linker. Since this was broken with cross compilers,
11753 # most powerpc-linux boxes support dynamic linking these days and
11754 # people can always --disable-shared, the test was removed, and we
11755 # assume the GNU/Linux dynamic linker is in use.
11756 dynamic_linker='GNU/Linux ld.so'
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11764 soname_spec='${libname}${release}${shared_ext}$major'
11765 shlibpath_var=LD_LIBRARY_PATH
11766 shlibpath_overrides_runpath=no
11767 hardcode_into_libs=yes
11768 dynamic_linker='NetBSD ld.elf_so'
11775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11778 dynamic_linker='NetBSD (a.out) ld.so'
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 dynamic_linker='NetBSD ld.elf_so'
11784 shlibpath_var=LD_LIBRARY_PATH
11785 shlibpath_overrides_runpath=yes
11786 hardcode_into_libs=yes
11790 version_type=linux # correct to gnu/linux during the next big refactor
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes
11800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801 soname_spec='${libname}${release}${shared_ext}$major'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=no
11804 hardcode_into_libs=yes
11805 dynamic_linker='ldqnx.so'
11810 sys_lib_dlsearch_path_spec="/usr/lib"
11812 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11814 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11815 *) need_version=no ;;
11817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11819 shlibpath_var=LD_LIBRARY_PATH
11820 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11822 openbsd2.[89] | openbsd2.[89].*)
11823 shlibpath_overrides_runpath=no
11826 shlibpath_overrides_runpath=yes
11830 shlibpath_overrides_runpath=yes
11835 libname_spec='$name'
11838 library_names_spec='$libname${shared_ext} $libname.a'
11839 dynamic_linker='OS/2 ld.exe'
11840 shlibpath_var=LIBPATH
11843 osf3* | osf4* | osf5*)
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11849 shlibpath_var=LD_LIBRARY_PATH
11850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11859 version_type=linux # correct to gnu/linux during the next big refactor
11862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11863 soname_spec='${libname}${release}${shared_ext}$major'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 shlibpath_overrides_runpath=yes
11866 hardcode_into_libs=yes
11867 # ldd complains unless libraries are executable
11868 postinstall_cmds='chmod +x $lib'
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11874 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11875 shlibpath_var=LD_LIBRARY_PATH
11876 shlibpath_overrides_runpath=yes
11877 if test "$with_gnu_ld" = yes; then
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 shlibpath_var=LD_LIBRARY_PATH
11888 case $host_vendor in
11890 shlibpath_overrides_runpath=no
11892 runpath_var=LD_RUN_PATH
11900 shlibpath_overrides_runpath=no
11901 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11907 if test -d /usr/nec ;then
11908 version_type=linux # correct to gnu/linux during the next big refactor
11909 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11910 soname_spec='$libname${shared_ext}.$major'
11911 shlibpath_var=LD_LIBRARY_PATH
11915 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11916 version_type=freebsd-elf
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11920 soname_spec='${libname}${release}${shared_ext}$major'
11921 shlibpath_var=LD_LIBRARY_PATH
11922 shlibpath_overrides_runpath=yes
11923 hardcode_into_libs=yes
11924 if test "$with_gnu_ld" = yes; then
11925 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11927 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11930 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11934 sys_lib_dlsearch_path_spec='/usr/lib'
11938 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11939 version_type=linux # correct to gnu/linux during the next big refactor
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11943 shlibpath_var=LD_LIBRARY_PATH
11944 shlibpath_overrides_runpath=no
11945 hardcode_into_libs=yes
11949 version_type=linux # correct to gnu/linux during the next big refactor
11950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11951 soname_spec='${libname}${release}${shared_ext}$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11960 $as_echo "$dynamic_linker" >&6; }
11961 test "$dynamic_linker" = no && can_build_shared=no
11963 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11964 if test "$GCC" = yes; then
11965 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11968 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11969 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11971 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11972 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12067 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12069 if test -n "$hardcode_libdir_flag_spec" ||
12070 test -n "$runpath_var" ||
12071 test "X$hardcode_automatic" = "Xyes" ; then
12073 # We can hardcode non-existent directories.
12074 if test "$hardcode_direct" != no &&
12075 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12076 # have to relink, otherwise we might link with an installed library
12077 # when we should be linking with a yet-to-be-installed one
12078 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12079 test "$hardcode_minus_L" != no; then
12080 # Linking always hardcodes the temporary library directory.
12081 hardcode_action=relink
12083 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12084 hardcode_action=immediate
12087 # We cannot hardcode anything, or else we can only hardcode existing
12089 hardcode_action=unsupported
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12092 $as_echo "$hardcode_action" >&6; }
12094 if test "$hardcode_action" = relink ||
12095 test "$inherit_rpath" = yes; then
12096 # Fast installation is not supported
12097 enable_fast_install=no
12098 elif test "$shlibpath_overrides_runpath" = yes ||
12099 test "$enable_shared" = no; then
12100 # Fast installation is not necessary
12101 enable_fast_install=needless
12109 if test "x$enable_dlopen" != xyes; then
12110 enable_dlopen=unknown
12111 enable_dlopen_self=unknown
12112 enable_dlopen_self_static=unknown
12119 lt_cv_dlopen="load_add_on"
12121 lt_cv_dlopen_self=yes
12124 mingw* | pw32* | cegcc*)
12125 lt_cv_dlopen="LoadLibrary"
12130 lt_cv_dlopen="dlopen"
12135 # if libdl is installed we need to link against it
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12138 if ${ac_cv_lib_dl_dlopen+:} false; then :
12139 $as_echo_n "(cached) " >&6
12141 ac_check_lib_save_LIBS=$LIBS
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_dl_dlopen=yes
12164 ac_cv_lib_dl_dlopen=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12176 lt_cv_dlopen="dyld"
12178 lt_cv_dlopen_self=yes
12185 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12186 if test "x$ac_cv_func_shl_load" = xyes; then :
12187 lt_cv_dlopen="shl_load"
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12190 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12191 if ${ac_cv_lib_dld_shl_load+:} false; then :
12192 $as_echo_n "(cached) " >&6
12194 ac_check_lib_save_LIBS=$LIBS
12196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12197 /* end confdefs.h. */
12199 /* Override any GCC internal prototype to avoid an error.
12200 Use char because int might match the return type of a GCC
12201 builtin and then its argument prototype would still apply. */
12209 return shl_load ();
12214 if ac_fn_c_try_link "$LINENO"; then :
12215 ac_cv_lib_dld_shl_load=yes
12217 ac_cv_lib_dld_shl_load=no
12219 rm -f core conftest.err conftest.$ac_objext \
12220 conftest$ac_exeext conftest.$ac_ext
12221 LIBS=$ac_check_lib_save_LIBS
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12224 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12225 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12226 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12228 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12229 if test "x$ac_cv_func_dlopen" = xyes; then :
12230 lt_cv_dlopen="dlopen"
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12234 if ${ac_cv_lib_dl_dlopen+:} false; then :
12235 $as_echo_n "(cached) " >&6
12237 ac_check_lib_save_LIBS=$LIBS
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12242 /* Override any GCC internal prototype to avoid an error.
12243 Use char because int might match the return type of a GCC
12244 builtin and then its argument prototype would still apply. */
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 ac_cv_lib_dl_dlopen=yes
12260 ac_cv_lib_dl_dlopen=no
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LIBS=$ac_check_lib_save_LIBS
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12268 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12269 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12272 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12273 if ${ac_cv_lib_svld_dlopen+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 ac_check_lib_save_LIBS=$LIBS
12277 LIBS="-lsvld $LIBS"
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 /* Override any GCC internal prototype to avoid an error.
12282 Use char because int might match the return type of a GCC
12283 builtin and then its argument prototype would still apply. */
12296 if ac_fn_c_try_link "$LINENO"; then :
12297 ac_cv_lib_svld_dlopen=yes
12299 ac_cv_lib_svld_dlopen=no
12301 rm -f core conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12303 LIBS=$ac_check_lib_save_LIBS
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12306 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12307 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12311 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12312 if ${ac_cv_lib_dld_dld_link+:} false; then :
12313 $as_echo_n "(cached) " >&6
12315 ac_check_lib_save_LIBS=$LIBS
12317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 /* end confdefs.h. */
12320 /* Override any GCC internal prototype to avoid an error.
12321 Use char because int might match the return type of a GCC
12322 builtin and then its argument prototype would still apply. */
12330 return dld_link ();
12335 if ac_fn_c_try_link "$LINENO"; then :
12336 ac_cv_lib_dld_dld_link=yes
12338 ac_cv_lib_dld_dld_link=no
12340 rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
12342 LIBS=$ac_check_lib_save_LIBS
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12345 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12346 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12347 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12368 if test "x$lt_cv_dlopen" != xno; then
12374 case $lt_cv_dlopen in
12376 save_CPPFLAGS="$CPPFLAGS"
12377 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12379 save_LDFLAGS="$LDFLAGS"
12380 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12383 LIBS="$lt_cv_dlopen_libs $LIBS"
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12386 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12387 if ${lt_cv_dlopen_self+:} false; then :
12388 $as_echo_n "(cached) " >&6
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self=cross
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<_LT_EOF
12396 #line $LINENO "configure"
12397 #include "confdefs.h"
12406 # define LT_DLGLOBAL RTLD_GLOBAL
12409 # define LT_DLGLOBAL DL_GLOBAL
12411 # define LT_DLGLOBAL 0
12415 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417 #ifndef LT_DLLAZY_OR_NOW
12419 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12422 # define LT_DLLAZY_OR_NOW DL_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_NOW
12428 # define LT_DLLAZY_OR_NOW DL_NOW
12430 # define LT_DLLAZY_OR_NOW 0
12437 /* When -fvisbility=hidden is used, assume the code has been annotated
12438 correspondingly for the symbols needed. */
12439 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12440 int fnord () __attribute__((visibility("default")));
12443 int fnord () { return 42; }
12446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12447 int status = $lt_dlunknown;
12451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12454 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455 else puts (dlerror ());
12457 /* dlclose (self); */
12465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12466 (eval $ac_link) 2>&5
12468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12469 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12470 (./conftest; exit; ) >&5 2>/dev/null
12472 case x$lt_status in
12473 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12474 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12475 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12478 # compilation failed
12479 lt_cv_dlopen_self=no
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12487 $as_echo "$lt_cv_dlopen_self" >&6; }
12489 if test "x$lt_cv_dlopen_self" = xyes; then
12490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12492 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12493 if ${lt_cv_dlopen_self_static+:} false; then :
12494 $as_echo_n "(cached) " >&6
12496 if test "$cross_compiling" = yes; then :
12497 lt_cv_dlopen_self_static=cross
12499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12500 lt_status=$lt_dlunknown
12501 cat > conftest.$ac_ext <<_LT_EOF
12502 #line $LINENO "configure"
12503 #include "confdefs.h"
12512 # define LT_DLGLOBAL RTLD_GLOBAL
12515 # define LT_DLGLOBAL DL_GLOBAL
12517 # define LT_DLGLOBAL 0
12521 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12522 find out it does not work in some platform. */
12523 #ifndef LT_DLLAZY_OR_NOW
12525 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12528 # define LT_DLLAZY_OR_NOW DL_LAZY
12531 # define LT_DLLAZY_OR_NOW RTLD_NOW
12534 # define LT_DLLAZY_OR_NOW DL_NOW
12536 # define LT_DLLAZY_OR_NOW 0
12543 /* When -fvisbility=hidden is used, assume the code has been annotated
12544 correspondingly for the symbols needed. */
12545 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12546 int fnord () __attribute__((visibility("default")));
12549 int fnord () { return 42; }
12552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12553 int status = $lt_dlunknown;
12557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12561 else puts (dlerror ());
12563 /* dlclose (self); */
12571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12572 (eval $ac_link) 2>&5
12574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12576 (./conftest; exit; ) >&5 2>/dev/null
12578 case x$lt_status in
12579 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12580 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12581 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12584 # compilation failed
12585 lt_cv_dlopen_self_static=no
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12593 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12596 CPPFLAGS="$save_CPPFLAGS"
12597 LDFLAGS="$save_LDFLAGS"
12602 case $lt_cv_dlopen_self in
12603 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12604 *) enable_dlopen_self=unknown ;;
12607 case $lt_cv_dlopen_self_static in
12608 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12609 *) enable_dlopen_self_static=unknown ;;
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12632 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12633 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12634 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12635 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12637 $as_echo "yes" >&6; }
12639 # FIXME - insert some real tests, host_os isn't really good enough
12642 if test -n "$STRIP" ; then
12643 striplib="$STRIP -x"
12644 old_striplib="$STRIP -S"
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646 $as_echo "yes" >&6; }
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12654 $as_echo "no" >&6; }
12670 # Report which library types will actually be built
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12672 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12674 $as_echo "$can_build_shared" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12677 $as_echo_n "checking whether to build shared libraries... " >&6; }
12678 test "$can_build_shared" = "no" && enable_shared=no
12680 # On AIX, shared libraries and static libraries use the same namespace, and
12681 # are all built from PIC.
12684 test "$enable_shared" = yes && enable_static=no
12685 if test -n "$RANLIB"; then
12686 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12687 postinstall_cmds='$RANLIB $lib'
12692 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12693 test "$enable_shared" = yes && enable_static=no
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12698 $as_echo "$enable_shared" >&6; }
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12701 $as_echo_n "checking whether to build static libraries... " >&6; }
12702 # Make sure either enable_shared or enable_static is yes.
12703 test "$enable_shared" = yes || enable_static=yes
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12705 $as_echo "$enable_static" >&6; }
12712 ac_cpp='$CPP $CPPFLAGS'
12713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12733 ac_config_commands="$ac_config_commands libtool"
12738 # Only expand once:
12741 if test -n "$ac_tool_prefix"; then
12742 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
12743 set dummy ${ac_tool_prefix}windres; ac_word=$2
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12745 $as_echo_n "checking for $ac_word... " >&6; }
12746 if ${ac_cv_prog_RC+:} false; then :
12747 $as_echo_n "(cached) " >&6
12749 if test -n "$RC"; then
12750 ac_cv_prog_RC="$RC" # Let the user override the test.
12752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12753 for as_dir in $PATH
12756 test -z "$as_dir" && as_dir=.
12757 for ac_exec_ext in '' $ac_executable_extensions; do
12758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12759 ac_cv_prog_RC="${ac_tool_prefix}windres"
12760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 if test -n "$RC"; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
12772 $as_echo "$RC" >&6; }
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12775 $as_echo "no" >&6; }
12780 if test -z "$ac_cv_prog_RC"; then
12782 # Extract the first word of "windres", so it can be a program name with args.
12783 set dummy windres; ac_word=$2
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12785 $as_echo_n "checking for $ac_word... " >&6; }
12786 if ${ac_cv_prog_ac_ct_RC+:} false; then :
12787 $as_echo_n "(cached) " >&6
12789 if test -n "$ac_ct_RC"; then
12790 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_prog_ac_ct_RC="windres"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12809 ac_ct_RC=$ac_cv_prog_ac_ct_RC
12810 if test -n "$ac_ct_RC"; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
12812 $as_echo "$ac_ct_RC" >&6; }
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12815 $as_echo "no" >&6; }
12818 if test "x$ac_ct_RC" = x; then
12821 case $cross_compiling:$ac_tool_warned in
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12825 ac_tool_warned=yes ;;
12830 RC="$ac_cv_prog_RC"
12836 # Source file extension for RC test sources.
12839 # Object file extension for compiled RC test sources.
12843 # Code to be used in simple compile tests
12844 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12846 # Code to be used in simple link tests
12847 lt_simple_link_test_code="$lt_simple_compile_test_code"
12849 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12856 # If no C compiler was specified, use CC.
12859 # If no C compiler flags were specified, use CFLAGS.
12860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12862 # Allow CC to be a program name with arguments.
12866 # save warnings/boilerplate of simple test code
12867 ac_outfile=conftest.$ac_objext
12868 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12869 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12870 _lt_compiler_boilerplate=`cat conftest.err`
12873 ac_outfile=conftest.$ac_objext
12874 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12875 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12876 _lt_linker_boilerplate=`cat conftest.err`
12880 # Allow CC to be a program name with arguments.
12882 lt_save_CFLAGS=$CFLAGS
12889 for cc_temp in $compiler""; do
12891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12897 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12899 lt_cv_prog_compiler_c_o_RC=yes
12901 if test -n "$compiler"; then
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916 CFLAGS=$lt_save_CFLAGS
12920 ##########################
12921 ## General definitions. ##
12922 ##########################
12924 # Used by libgcrypt-config
12925 LIBGCRYPT_CONFIG_LIBS="-lgcrypt"
12926 LIBGCRYPT_CONFIG_CFLAGS=""
12927 LIBGCRYPT_CONFIG_HOST="$host"
12929 # Definitions for symmetric ciphers.
12930 available_ciphers="arcfour blowfish cast5 des aes twofish serpent rfc2268 seed"
12931 available_ciphers="$available_ciphers camellia idea salsa20 gost28147 chacha20"
12934 # Definitions for public-key ciphers.
12935 available_pubkey_ciphers="dsa elgamal rsa ecc"
12936 enabled_pubkey_ciphers=""
12938 # Definitions for message digests.
12939 available_digests="crc gostr3411-94 md2 md4 md5 rmd160 sha1 sha256 sha512"
12940 available_digests="$available_digests sha3 tiger whirlpool stribog blake2"
12943 # Definitions for kdfs (optional ones)
12944 available_kdfs="s2k pkdf2 scrypt"
12947 # Definitions for random modules.
12948 available_random_modules="linux egd unix"
12949 auto_random_modules="$available_random_modules"
12951 # Supported thread backends.
12952 LIBGCRYPT_THREAD_MODULES=""
12954 # Other definitions.
12956 have_w32ce_system=no
12960 # Setup some stuff depending on host.
12963 ac_cv_have_dev_random=no
12964 have_w32_system=yes
12967 have_w32ce_system=yes
12968 available_random_modules="w32ce"
12971 available_random_modules="w32"
12975 $as_echo "#define USE_ONLY_8DOT3 1" >>confdefs.h
12978 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12981 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12985 i?86-emx-os2 | i?86-*-os2*emx)
12986 # OS/2 with the EMX environment
12987 ac_cv_have_dev_random=no
12988 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12990 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
12994 i?86-*-msdosdjgpp*)
12995 # DOS with the DJGPP environment
12996 ac_cv_have_dev_random=no
12997 $as_echo "#define HAVE_DRIVE_LETTERS 1" >>confdefs.h
12999 $as_echo "#define HAVE_DOSISH_SYSTEM 1" >>confdefs.h
13004 if test -z "$GCC" ; then
13005 CFLAGS="$CFLAGS -Ae -D_HPUX_SOURCE"
13009 if test -z "$GCC" ; then
13010 # Suppress all warnings
13011 # to get rid of the unsigned/signed char mismatch warnings.
13012 CFLAGS="$CFLAGS -w"
13019 $as_echo "#define _DARWIN_C_SOURCE 900000L" >>confdefs.h
13026 if test "$have_w32_system" = yes; then
13028 $as_echo "#define HAVE_W32_SYSTEM 1" >>confdefs.h
13030 if test "$have_w32ce_system" = yes; then
13032 $as_echo "#define HAVE_W32CE_SYSTEM 1" >>confdefs.h
13036 if test "$have_w32_system" = yes; then
13037 HAVE_W32_SYSTEM_TRUE=
13038 HAVE_W32_SYSTEM_FALSE='#'
13040 HAVE_W32_SYSTEM_TRUE='#'
13041 HAVE_W32_SYSTEM_FALSE=
13044 if test "$have_w32ce_system" = yes; then
13045 HAVE_W32CE_SYSTEM_TRUE=
13046 HAVE_W32CE_SYSTEM_FALSE='#'
13048 HAVE_W32CE_SYSTEM_TRUE='#'
13049 HAVE_W32CE_SYSTEM_FALSE=
13055 # A printable OS Name is sometimes useful.
13058 PRINTABLE_OS_NAME="W32CE"
13062 PRINTABLE_OS_NAME="W32"
13065 i?86-emx-os2 | i?86-*-os2*emx )
13066 PRINTABLE_OS_NAME="OS/2"
13069 i?86-*-msdosdjgpp*)
13070 PRINTABLE_OS_NAME="MSDOS/DJGPP"
13074 PRINTABLE_OS_NAME="GNU/Linux"
13078 PRINTABLE_OS_NAME=`uname -s || echo "Unknown"`
13082 NAME_OF_DEV_RANDOM="/dev/random"
13083 NAME_OF_DEV_URANDOM="/dev/urandom"
13085 # Check whether --enable-endian-check was given.
13086 if test "${enable_endian_check+set}" = set; then :
13087 enableval=$enable_endian_check; endiancheck=$enableval
13092 if test x"$endiancheck" = xyes ; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13094 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13095 if ${ac_cv_c_bigendian+:} false; then :
13096 $as_echo_n "(cached) " >&6
13098 ac_cv_c_bigendian=unknown
13099 # See if we're dealing with a universal compiler.
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13102 #ifndef __APPLE_CC__
13103 not a universal capable compiler
13108 if ac_fn_c_try_compile "$LINENO"; then :
13110 # Check for potential -arch flags. It is not universal unless
13111 # there are at least two -arch flags with different values.
13114 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13115 if test -n "$ac_prev"; then
13117 i?86 | x86_64 | ppc | ppc64)
13118 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13121 ac_cv_c_bigendian=universal
13127 elif test "x$ac_word" = "x-arch"; then
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 if test $ac_cv_c_bigendian = unknown; then
13134 # See if sys/param.h defines the BYTE_ORDER macro.
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137 #include <sys/types.h>
13138 #include <sys/param.h>
13143 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13144 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13146 bogus endian macros
13153 if ac_fn_c_try_compile "$LINENO"; then :
13154 # It does; now see whether it defined to BIG_ENDIAN or not.
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13157 #include <sys/types.h>
13158 #include <sys/param.h>
13163 #if BYTE_ORDER != BIG_ENDIAN
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 ac_cv_c_bigendian=yes
13174 ac_cv_c_bigendian=no
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 if test $ac_cv_c_bigendian = unknown; then
13181 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184 #include <limits.h>
13189 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13190 bogus endian macros
13197 if ac_fn_c_try_compile "$LINENO"; then :
13198 # It does; now see whether it defined to _BIG_ENDIAN or not.
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <limits.h>
13206 #ifndef _BIG_ENDIAN
13214 if ac_fn_c_try_compile "$LINENO"; then :
13215 ac_cv_c_bigendian=yes
13217 ac_cv_c_bigendian=no
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13223 if test $ac_cv_c_bigendian = unknown; then
13224 # Compile a test program.
13225 if test "$cross_compiling" = yes; then :
13226 # Try to guess by grepping values from an object file.
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13229 short int ascii_mm[] =
13230 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13231 short int ascii_ii[] =
13232 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13233 int use_ascii (int i) {
13234 return ascii_mm[i] + ascii_ii[i];
13236 short int ebcdic_ii[] =
13237 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13238 short int ebcdic_mm[] =
13239 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13240 int use_ebcdic (int i) {
13241 return ebcdic_mm[i] + ebcdic_ii[i];
13248 return use_ascii (foo) == use_ebcdic (foo);
13253 if ac_fn_c_try_compile "$LINENO"; then :
13254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13255 ac_cv_c_bigendian=yes
13257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13258 if test "$ac_cv_c_bigendian" = unknown; then
13259 ac_cv_c_bigendian=no
13261 # finding both strings is unlikely to happen, but who knows?
13262 ac_cv_c_bigendian=unknown
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13269 /* end confdefs.h. */
13270 $ac_includes_default
13275 /* Are we little or big endian? From Harbison&Steele. */
13279 char c[sizeof (long int)];
13282 return u.c[sizeof (long int) - 1] == 1;
13288 if ac_fn_c_try_run "$LINENO"; then :
13289 ac_cv_c_bigendian=no
13291 ac_cv_c_bigendian=yes
13293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13294 conftest.$ac_objext conftest.beam conftest.$ac_ext
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13300 $as_echo "$ac_cv_c_bigendian" >&6; }
13301 case $ac_cv_c_bigendian in #(
13303 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13309 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13313 as_fn_error $? "unknown endianness
13314 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13319 $as_echo "#define DISABLED_ENDIAN_CHECK 1" >>confdefs.h
13323 # The cast to long int works around a bug in the HP C Compiler
13324 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13325 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13326 # This bug is HP SR number 8606223364.
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
13328 $as_echo_n "checking size of unsigned short... " >&6; }
13329 if ${ac_cv_sizeof_unsigned_short+:} false; then :
13330 $as_echo_n "(cached) " >&6
13332 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
13335 if test "$ac_cv_type_unsigned_short" = yes; then
13336 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13338 as_fn_error 77 "cannot compute sizeof (unsigned short)
13339 See \`config.log' for more details" "$LINENO" 5; }
13341 ac_cv_sizeof_unsigned_short=0
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
13347 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
13351 cat >>confdefs.h <<_ACEOF
13352 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
13356 # The cast to long int works around a bug in the HP C Compiler
13357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13359 # This bug is HP SR number 8606223364.
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
13361 $as_echo_n "checking size of unsigned int... " >&6; }
13362 if ${ac_cv_sizeof_unsigned_int+:} false; then :
13363 $as_echo_n "(cached) " >&6
13365 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
13368 if test "$ac_cv_type_unsigned_int" = yes; then
13369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13371 as_fn_error 77 "cannot compute sizeof (unsigned int)
13372 See \`config.log' for more details" "$LINENO" 5; }
13374 ac_cv_sizeof_unsigned_int=0
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
13380 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
13384 cat >>confdefs.h <<_ACEOF
13385 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
13389 # The cast to long int works around a bug in the HP C Compiler
13390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13392 # This bug is HP SR number 8606223364.
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
13394 $as_echo_n "checking size of unsigned long... " >&6; }
13395 if ${ac_cv_sizeof_unsigned_long+:} false; then :
13396 $as_echo_n "(cached) " >&6
13398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
13401 if test "$ac_cv_type_unsigned_long" = yes; then
13402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13404 as_fn_error 77 "cannot compute sizeof (unsigned long)
13405 See \`config.log' for more details" "$LINENO" 5; }
13407 ac_cv_sizeof_unsigned_long=0
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
13413 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
13417 cat >>confdefs.h <<_ACEOF
13418 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
13422 # The cast to long int works around a bug in the HP C Compiler
13423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13425 # This bug is HP SR number 8606223364.
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
13427 $as_echo_n "checking size of unsigned long long... " >&6; }
13428 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
13429 $as_echo_n "(cached) " >&6
13431 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
13434 if test "$ac_cv_type_unsigned_long_long" = yes; then
13435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13437 as_fn_error 77 "cannot compute sizeof (unsigned long long)
13438 See \`config.log' for more details" "$LINENO" 5; }
13440 ac_cv_sizeof_unsigned_long_long=0
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
13446 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
13450 cat >>confdefs.h <<_ACEOF
13451 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
13455 # The cast to long int works around a bug in the HP C Compiler
13456 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13457 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13458 # This bug is HP SR number 8606223364.
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13460 $as_echo_n "checking size of void *... " >&6; }
13461 if ${ac_cv_sizeof_void_p+:} false; then :
13462 $as_echo_n "(cached) " >&6
13464 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13467 if test "$ac_cv_type_void_p" = yes; then
13468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13470 as_fn_error 77 "cannot compute sizeof (void *)
13471 See \`config.log' for more details" "$LINENO" 5; }
13473 ac_cv_sizeof_void_p=0
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13479 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13483 cat >>confdefs.h <<_ACEOF
13484 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13490 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
13491 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13493 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
13496 for ac_type in 'unsigned int' 'unsigned long int' \
13497 'unsigned long long int'; do
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 $ac_includes_default
13504 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
13505 test_array [0] = 0;
13506 return test_array [0];
13512 if ac_fn_c_try_compile "$LINENO"; then :
13514 cat >>confdefs.h <<_ACEOF
13515 #define uintptr_t $ac_type
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 test -z "$ac_type" && break
13527 if test "$ac_cv_sizeof_unsigned_short" = "0" \
13528 || test "$ac_cv_sizeof_unsigned_int" = "0" \
13529 || test "$ac_cv_sizeof_unsigned_long" = "0"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&5
13531 $as_echo "$as_me: WARNING: Hmmm, something is wrong with the sizes - using defaults" >&2;};
13534 # Ensure that we have UINT64_C before we bother to check for uint64_t
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UINT64_C" >&5
13536 $as_echo_n "checking for UINT64_C... " >&6; }
13537 if ${gnupg_cv_uint64_c_works+:} false; then :
13538 $as_echo_n "(cached) " >&6
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <inttypes.h>
13546 uint64_t foo=UINT64_C(42);
13551 if ac_fn_c_try_compile "$LINENO"; then :
13552 gnupg_cv_uint64_c_works=yes
13554 gnupg_cv_uint64_c_works=no
13556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_uint64_c_works" >&5
13559 $as_echo "$gnupg_cv_uint64_c_works" >&6; }
13560 if test "$gnupg_cv_uint64_c_works" = "yes" ; then
13561 # The cast to long int works around a bug in the HP C Compiler
13562 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13563 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13564 # This bug is HP SR number 8606223364.
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5
13566 $as_echo_n "checking size of uint64_t... " >&6; }
13567 if ${ac_cv_sizeof_uint64_t+:} false; then :
13568 $as_echo_n "(cached) " >&6
13570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default"; then :
13573 if test "$ac_cv_type_uint64_t" = yes; then
13574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13576 as_fn_error 77 "cannot compute sizeof (uint64_t)
13577 See \`config.log' for more details" "$LINENO" 5; }
13579 ac_cv_sizeof_uint64_t=0
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5
13585 $as_echo "$ac_cv_sizeof_uint64_t" >&6; }
13589 cat >>confdefs.h <<_ACEOF
13590 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
13596 # Do we have any 64-bit data types?
13597 if test "$ac_cv_sizeof_unsigned_int" != "8" \
13598 && test "$ac_cv_sizeof_unsigned_long" != "8" \
13599 && test "$ac_cv_sizeof_unsigned_long_long" != "8" \
13600 && test "$ac_cv_sizeof_uint64_t" != "8"; then
13603 *** No 64-bit integer type available.
13604 *** It is not possible to build Libgcrypt on this platform.
13609 # If not specified otherwise, all available algorithms will be
13611 default_ciphers="$available_ciphers"
13612 default_pubkey_ciphers="$available_pubkey_ciphers"
13613 default_digests="$available_digests"
13614 default_kdfs="$available_kdfs"
13615 # Blacklist MD2 by default
13616 default_digests=`echo $default_digests | sed -e 's/md2//g'`
13618 # Substitutions to set generated files in a Emacs buffer to read-only.
13619 emacs_local_vars_begin='Local Variables:'
13621 emacs_local_vars_read_only='buffer-read-only: t'
13623 emacs_local_vars_end='End:'
13626 ############################
13627 ## Command line switches. ##
13628 ############################
13630 # Implementation of the --enable-ciphers switch.
13631 # Check whether --enable-ciphers was given.
13632 if test "${enable_ciphers+set}" = set; then :
13633 enableval=$enable_ciphers; enabled_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
13638 if test "x$enabled_ciphers" = "x" \
13639 -o "$enabled_ciphers" = "yes" \
13640 -o "$enabled_ciphers" = "no"; then
13641 enabled_ciphers=$default_ciphers
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which symmetric ciphers to include" >&5
13644 $as_echo_n "checking which symmetric ciphers to include... " >&6; }
13645 for cipher in $enabled_ciphers; do
13648 list=$available_ciphers
13652 if test "x$name" = "x$n"; then
13657 if test "$found" = "0"; then
13658 as_fn_error $? "unsupported cipher \"$cipher\" specified" "$LINENO" 5
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_ciphers" >&5
13662 $as_echo "$enabled_ciphers" >&6; }
13664 # Implementation of the --enable-pubkey-ciphers switch.
13665 # Check whether --enable-pubkey-ciphers was given.
13666 if test "${enable_pubkey_ciphers+set}" = set; then :
13667 enableval=$enable_pubkey_ciphers; enabled_pubkey_ciphers=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
13669 enabled_pubkey_ciphers=""
13672 if test "x$enabled_pubkey_ciphers" = "x" \
13673 -o "$enabled_pubkey_ciphers" = "yes" \
13674 -o "$enabled_pubkey_ciphers" = "no"; then
13675 enabled_pubkey_ciphers=$default_pubkey_ciphers
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which public-key ciphers to include" >&5
13678 $as_echo_n "checking which public-key ciphers to include... " >&6; }
13679 for cipher in $enabled_pubkey_ciphers; do
13682 list=$available_pubkey_ciphers
13686 if test "x$name" = "x$n"; then
13691 if test "$found" = "0"; then
13692 as_fn_error $? "unsupported public-key cipher specified" "$LINENO" 5
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_pubkey_ciphers" >&5
13696 $as_echo "$enabled_pubkey_ciphers" >&6; }
13698 # Implementation of the --enable-digests switch.
13699 # Check whether --enable-digests was given.
13700 if test "${enable_digests+set}" = set; then :
13701 enableval=$enable_digests; enabled_digests=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
13706 if test "x$enabled_digests" = "x" \
13707 -o "$enabled_digests" = "yes" \
13708 -o "$enabled_digests" = "no"; then
13709 enabled_digests=$default_digests
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which message digests to include" >&5
13712 $as_echo_n "checking which message digests to include... " >&6; }
13713 for digest in $enabled_digests; do
13716 list=$available_digests
13720 if test "x$name" = "x$n"; then
13725 if test "$found" = "0"; then
13726 as_fn_error $? "unsupported message digest specified" "$LINENO" 5
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_digests" >&5
13730 $as_echo "$enabled_digests" >&6; }
13732 # Implementation of the --enable-kdfs switch.
13733 # Check whether --enable-kdfs was given.
13734 if test "${enable_kdfs+set}" = set; then :
13735 enableval=$enable_kdfs; enabled_kdfs=`echo $enableval | tr ',:' ' ' | tr 'A-Z' 'a-z'`
13740 if test "x$enabled_kdfs" = "x" \
13741 -o "$enabled_kdfs" = "yes" \
13742 -o "$enabled_kdfs" = "no"; then
13743 enabled_kdfs=$default_kdfs
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which key derivation functions to include" >&5
13746 $as_echo_n "checking which key derivation functions to include... " >&6; }
13747 for kdf in $enabled_kdfs; do
13750 list=$available_kdfs
13754 if test "x$name" = "x$n"; then
13759 if test "$found" = "0"; then
13760 as_fn_error $? "unsupported key derivation function specified" "$LINENO" 5
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled_kdfs" >&5
13764 $as_echo "$enabled_kdfs" >&6; }
13766 # Implementation of the --enable-random switch.
13767 # Check whether --enable-random was given.
13768 if test "${enable_random+set}" = set; then :
13769 enableval=$enable_random; random=`echo $enableval | tr 'A-Z' 'a-z'`
13772 if test "x$random" = "x" -o "$random" = "yes" -o "$random" = "no"; then
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which random module to use" >&5
13776 $as_echo_n "checking which random module to use... " >&6; }
13777 if test "$random" != "default" -a "$random" != "auto"; then
13780 list=$available_random_modules
13784 if test "x$name" = "x$n"; then
13789 if test "$found" = "0"; then
13790 as_fn_error $? "unsupported random module specified" "$LINENO" 5
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $random" >&5
13794 $as_echo "$random" >&6; }
13796 # Implementation of the --disable-dev-random switch.
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of /dev/random is requested" >&5
13798 $as_echo_n "checking whether use of /dev/random is requested... " >&6; }
13799 # Check whether --enable-dev-random was given.
13800 if test "${enable_dev_random+set}" = set; then :
13801 enableval=$enable_dev_random; try_dev_random=$enableval
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_dev_random" >&5
13807 $as_echo "$try_dev_random" >&6; }
13809 # Implementation of the --with-egd-socket switch.
13811 # Check whether --with-egd-socket was given.
13812 if test "${with_egd_socket+set}" = set; then :
13813 withval=$with_egd_socket; egd_socket_name="$withval"
13819 cat >>confdefs.h <<_ACEOF
13820 #define EGD_SOCKET_NAME "$egd_socket_name"
13824 # Implementation of the --enable-random-daemon
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the experimental random daemon is requested" >&5
13826 $as_echo_n "checking whether the experimental random daemon is requested... " >&6; }
13827 # Check whether --enable-random-daemon was given.
13828 if test "${enable_random_daemon+set}" = set; then :
13829 enableval=$enable_random_daemon; use_random_daemon=$enableval
13831 use_random_daemon=no
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_random_daemon" >&5
13835 $as_echo "$use_random_daemon" >&6; }
13836 if test x$use_random_daemon = xyes ; then
13838 $as_echo "#define USE_RANDOM_DAEMON 1" >>confdefs.h
13841 if test x$use_random_daemon = xyes; then
13842 USE_RANDOM_DAEMON_TRUE=
13843 USE_RANDOM_DAEMON_FALSE='#'
13845 USE_RANDOM_DAEMON_TRUE='#'
13846 USE_RANDOM_DAEMON_FALSE=
13851 # Implementation of --disable-asm.
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether MPI assembler modules are requested" >&5
13853 $as_echo_n "checking whether MPI assembler modules are requested... " >&6; }
13854 # Check whether --enable-asm was given.
13855 if test "${enable_asm+set}" = set; then :
13856 enableval=$enable_asm; try_asm_modules=$enableval
13858 try_asm_modules=yes
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try_asm_modules" >&5
13862 $as_echo "$try_asm_modules" >&6; }
13864 # Implementation of the --enable-m-guard switch.
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memory guard is requested" >&5
13866 $as_echo_n "checking whether memory guard is requested... " >&6; }
13867 # Check whether --enable-m-guard was given.
13868 if test "${enable_m_guard+set}" = set; then :
13869 enableval=$enable_m_guard; use_m_guard=$enableval
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_m_guard" >&5
13875 $as_echo "$use_m_guard" >&6; }
13876 if test "$use_m_guard" = yes ; then
13878 $as_echo "#define M_GUARD 1" >>confdefs.h
13882 # Implementation of the --enable-large-data-tests switch.
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to run large data tests" >&5
13884 $as_echo_n "checking whether to run large data tests... " >&6; }
13885 # Check whether --enable-large-data-tests was given.
13886 if test "${enable_large_data_tests+set}" = set; then :
13887 enableval=$enable_large_data_tests; large_data_tests=$enableval
13889 large_data_tests=no
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $large_data_tests" >&5
13893 $as_echo "$large_data_tests" >&6; }
13894 RUN_LARGE_DATA_TESTS=$large_data_tests
13898 # Implementation of the --with-capabilities switch.
13899 # Check whether we want to use Linux capabilities
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether use of capabilities is requested" >&5
13901 $as_echo_n "checking whether use of capabilities is requested... " >&6; }
13903 # Check whether --with-capabilities was given.
13904 if test "${with_capabilities+set}" = set; then :
13905 withval=$with_capabilities; use_capabilities="$withval"
13907 use_capabilities=no
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_capabilities" >&5
13911 $as_echo "$use_capabilities" >&6; }
13913 # Implementation of the --enable-hmac-binary-check.
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a HMAC binary check is requested" >&5
13915 $as_echo_n "checking whether a HMAC binary check is requested... " >&6; }
13916 # Check whether --enable-hmac-binary-check was given.
13917 if test "${enable_hmac_binary_check+set}" = set; then :
13918 enableval=$enable_hmac_binary_check; use_hmac_binary_check=$enableval
13920 use_hmac_binary_check=no
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hmac_binary_check" >&5
13924 $as_echo "$use_hmac_binary_check" >&6; }
13925 if test "$use_hmac_binary_check" = yes ; then
13927 $as_echo "#define ENABLE_HMAC_BINARY_CHECK 1" >>confdefs.h
13932 # Implementation of the --disable-jent-support switch.
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether jitter entropy support is requested" >&5
13934 $as_echo_n "checking whether jitter entropy support is requested... " >&6; }
13935 # Check whether --enable-jent-support was given.
13936 if test "${enable_jent_support+set}" = set; then :
13937 enableval=$enable_jent_support; jentsupport=$enableval
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jentsupport" >&5
13943 $as_echo "$jentsupport" >&6; }
13945 # Implementation of the --disable-padlock-support switch.
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether padlock support is requested" >&5
13947 $as_echo_n "checking whether padlock support is requested... " >&6; }
13948 # Check whether --enable-padlock-support was given.
13949 if test "${enable_padlock_support+set}" = set; then :
13950 enableval=$enable_padlock_support; padlocksupport=$enableval
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $padlocksupport" >&5
13956 $as_echo "$padlocksupport" >&6; }
13958 # Implementation of the --disable-aesni-support switch.
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AESNI support is requested" >&5
13960 $as_echo_n "checking whether AESNI support is requested... " >&6; }
13961 # Check whether --enable-aesni-support was given.
13962 if test "${enable_aesni_support+set}" = set; then :
13963 enableval=$enable_aesni_support; aesnisupport=$enableval
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aesnisupport" >&5
13969 $as_echo "$aesnisupport" >&6; }
13971 # Implementation of the --disable-pclmul-support switch.
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PCLMUL support is requested" >&5
13973 $as_echo_n "checking whether PCLMUL support is requested... " >&6; }
13974 # Check whether --enable-pclmul-support was given.
13975 if test "${enable_pclmul_support+set}" = set; then :
13976 enableval=$enable_pclmul_support; pclmulsupport=$enableval
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pclmulsupport" >&5
13982 $as_echo "$pclmulsupport" >&6; }
13984 # Implementation of the --disable-sse41-support switch.
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SSE4.1 support is requested" >&5
13986 $as_echo_n "checking whether SSE4.1 support is requested... " >&6; }
13987 # Check whether --enable-sse41-support was given.
13988 if test "${enable_sse41_support+set}" = set; then :
13989 enableval=$enable_sse41_support; sse41support=$enableval
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sse41support" >&5
13995 $as_echo "$sse41support" >&6; }
13997 # Implementation of the --disable-drng-support switch.
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DRNG support is requested" >&5
13999 $as_echo_n "checking whether DRNG support is requested... " >&6; }
14000 # Check whether --enable-drng-support was given.
14001 if test "${enable_drng_support+set}" = set; then :
14002 enableval=$enable_drng_support; drngsupport=$enableval
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $drngsupport" >&5
14008 $as_echo "$drngsupport" >&6; }
14010 # Implementation of the --disable-avx-support switch.
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX support is requested" >&5
14012 $as_echo_n "checking whether AVX support is requested... " >&6; }
14013 # Check whether --enable-avx-support was given.
14014 if test "${enable_avx_support+set}" = set; then :
14015 enableval=$enable_avx_support; avxsupport=$enableval
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avxsupport" >&5
14021 $as_echo "$avxsupport" >&6; }
14023 # Implementation of the --disable-avx2-support switch.
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether AVX2 support is requested" >&5
14025 $as_echo_n "checking whether AVX2 support is requested... " >&6; }
14026 # Check whether --enable-avx2-support was given.
14027 if test "${enable_avx2_support+set}" = set; then :
14028 enableval=$enable_avx2_support; avx2support=$enableval
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avx2support" >&5
14034 $as_echo "$avx2support" >&6; }
14036 # Implementation of the --disable-neon-support switch.
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NEON support is requested" >&5
14038 $as_echo_n "checking whether NEON support is requested... " >&6; }
14039 # Check whether --enable-neon-support was given.
14040 if test "${enable_neon_support+set}" = set; then :
14041 enableval=$enable_neon_support; neonsupport=$enableval
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $neonsupport" >&5
14047 $as_echo "$neonsupport" >&6; }
14049 # Implementation of the --disable-arm-crypto-support switch.
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARMv8 Crypto Extension support is requested" >&5
14051 $as_echo_n "checking whether ARMv8 Crypto Extension support is requested... " >&6; }
14052 # Check whether --enable-arm-crypto-support was given.
14053 if test "${enable_arm_crypto_support+set}" = set; then :
14054 enableval=$enable_arm_crypto_support; armcryptosupport=$enableval
14056 armcryptosupport=yes
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $armcryptosupport" >&5
14060 $as_echo "$armcryptosupport" >&6; }
14062 # Implementation of the --disable-O-flag-munging switch.
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a -O flag munging is requested" >&5
14064 $as_echo_n "checking whether a -O flag munging is requested... " >&6; }
14065 # Check whether --enable-O-flag-munging was given.
14066 if test "${enable_O_flag_munging+set}" = set; then :
14067 enableval=$enable_O_flag_munging; enable_o_flag_munging=$enableval
14069 enable_o_flag_munging=yes
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_o_flag_munging" >&5
14073 $as_echo "$enable_o_flag_munging" >&6; }
14074 if test "$enable_o_flag_munging" = "yes"; then
14075 ENABLE_O_FLAG_MUNGING_TRUE=
14076 ENABLE_O_FLAG_MUNGING_FALSE='#'
14078 ENABLE_O_FLAG_MUNGING_TRUE='#'
14079 ENABLE_O_FLAG_MUNGING_FALSE=
14083 # Implementation of the --disable-amd64-as-feature-detection switch.
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable AMD64 as(1) feature detection" >&5
14085 $as_echo_n "checking whether to enable AMD64 as(1) feature detection... " >&6; }
14086 # Check whether --enable-amd64-as-feature-detection was given.
14087 if test "${enable_amd64_as_feature_detection+set}" = set; then :
14088 enableval=$enable_amd64_as_feature_detection; amd64_as_feature_detection=$enableval
14090 amd64_as_feature_detection=yes
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $amd64_as_feature_detection" >&5
14094 $as_echo "$amd64_as_feature_detection" >&6; }
14098 cat >>confdefs.h <<_ACEOF
14099 #define PRINTABLE_OS_NAME "$PRINTABLE_OS_NAME"
14103 # For some systems we know that we have ld_version scripts.
14104 # Use it then as default.
14105 have_ld_version_script=no
14108 have_ld_version_script=yes
14111 have_ld_version_script=yes
14114 # Check whether --enable-ld-version-script was given.
14115 if test "${enable_ld_version_script+set}" = set; then :
14116 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
14121 if test "$have_ld_version_script" = "yes"; then
14122 HAVE_LD_VERSION_SCRIPT_TRUE=
14123 HAVE_LD_VERSION_SCRIPT_FALSE='#'
14125 HAVE_LD_VERSION_SCRIPT_TRUE='#'
14126 HAVE_LD_VERSION_SCRIPT_FALSE=
14131 cat >>confdefs.h <<_ACEOF
14132 #define NAME_OF_DEV_RANDOM "$NAME_OF_DEV_RANDOM"
14136 cat >>confdefs.h <<_ACEOF
14137 #define NAME_OF_DEV_URANDOM "$NAME_OF_DEV_URANDOM"
14142 ###############################
14143 #### Checks for libraries. ####
14144 ###############################
14147 # gpg-error is required.
14150 gpg_error_config_prefix=""
14152 # Check whether --with-libgpg-error-prefix was given.
14153 if test "${with_libgpg_error_prefix+set}" = set; then :
14154 withval=$with_libgpg_error_prefix; gpg_error_config_prefix="$withval"
14159 # Check whether --with-gpg-error-prefix was given.
14160 if test "${with_gpg_error_prefix+set}" = set; then :
14161 withval=$with_gpg_error_prefix; gpg_error_config_prefix="$withval"
14165 if test x"${GPG_ERROR_CONFIG}" = x ; then
14166 if test x"${gpg_error_config_prefix}" != x ; then
14167 GPG_ERROR_CONFIG="${gpg_error_config_prefix}/bin/gpg-error-config"
14169 case "${SYSROOT}" in
14171 if test -x "${SYSROOT}/bin/gpg-error-config" ; then
14172 GPG_ERROR_CONFIG="${SYSROOT}/bin/gpg-error-config"
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
14179 $as_echo "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
14185 # Extract the first word of "gpg-error-config", so it can be a program name with args.
14186 set dummy gpg-error-config; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14188 $as_echo_n "checking for $ac_word... " >&6; }
14189 if ${ac_cv_path_GPG_ERROR_CONFIG+:} false; then :
14190 $as_echo_n "(cached) " >&6
14192 case $GPG_ERROR_CONFIG in
14194 ac_cv_path_GPG_ERROR_CONFIG="$GPG_ERROR_CONFIG" # Let the user override the test with a path.
14197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198 for as_dir in $PATH
14201 test -z "$as_dir" && as_dir=.
14202 for ac_exec_ext in '' $ac_executable_extensions; do
14203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14204 ac_cv_path_GPG_ERROR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14212 test -z "$ac_cv_path_GPG_ERROR_CONFIG" && ac_cv_path_GPG_ERROR_CONFIG="no"
14216 GPG_ERROR_CONFIG=$ac_cv_path_GPG_ERROR_CONFIG
14217 if test -n "$GPG_ERROR_CONFIG"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG_ERROR_CONFIG" >&5
14219 $as_echo "$GPG_ERROR_CONFIG" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14226 min_gpg_error_version="$NEED_GPG_ERROR_VERSION"
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GPG Error - version >= $min_gpg_error_version" >&5
14228 $as_echo_n "checking for GPG Error - version >= $min_gpg_error_version... " >&6; }
14230 if test "$GPG_ERROR_CONFIG" != "no" \
14231 && test -f "$GPG_ERROR_CONFIG" ; then
14232 req_major=`echo $min_gpg_error_version | \
14233 sed 's/\([0-9]*\)\.\([0-9]*\)/\1/'`
14234 req_minor=`echo $min_gpg_error_version | \
14235 sed 's/\([0-9]*\)\.\([0-9]*\)/\2/'`
14236 gpg_error_config_version=`$GPG_ERROR_CONFIG $gpg_error_config_args --version`
14237 major=`echo $gpg_error_config_version | \
14238 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
14239 minor=`echo $gpg_error_config_version | \
14240 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
14241 if test "$major" -gt "$req_major"; then
14244 if test "$major" -eq "$req_major"; then
14245 if test "$minor" -ge "$req_minor"; then
14251 if test $ok = yes; then
14252 GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --cflags`
14253 GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --libs`
14254 GPG_ERROR_MT_CFLAGS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --cflags 2>/dev/null`
14255 GPG_ERROR_MT_LIBS=`$GPG_ERROR_CONFIG $gpg_error_config_args --mt --libs 2>/dev/null`
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($gpg_error_config_version)" >&5
14257 $as_echo "yes ($gpg_error_config_version)" >&6; }
14259 gpg_error_config_host=`$GPG_ERROR_CONFIG $gpg_error_config_args --host 2>/dev/null || echo none`
14260 if test x"$gpg_error_config_host" != xnone ; then
14261 if test x"$gpg_error_config_host" != x"$host" ; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14264 *** The config script $GPG_ERROR_CONFIG was
14265 *** built for $gpg_error_config_host and thus may not match the
14266 *** used host $host.
14267 *** You may want to use the configure option --with-gpg-error-prefix
14268 *** to specify a matching config script or use \$SYSROOT.
14270 $as_echo "$as_me: WARNING:
14272 *** The config script $GPG_ERROR_CONFIG was
14273 *** built for $gpg_error_config_host and thus may not match the
14274 *** used host $host.
14275 *** You may want to use the configure option --with-gpg-error-prefix
14276 *** to specify a matching config script or use \$SYSROOT.
14278 gpg_config_script_warn="$gpg_config_script_warn libgpg-error"
14282 GPG_ERROR_CFLAGS=""
14284 GPG_ERROR_MT_CFLAGS=""
14285 GPG_ERROR_MT_LIBS=""
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14295 if test "x$GPG_ERROR_LIBS" = "x"; then
14296 as_fn_error $? "libgpg-error is needed.
14297 See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ ." "$LINENO" 5
14301 $as_echo "#define GPG_ERR_SOURCE_DEFAULT GPG_ERR_SOURCE_GCRYPT" >>confdefs.h
14305 # Check whether the GNU Pth library is available. We require this
14306 # to build the optional gcryptrnd program.
14309 # Check whether --with-pth-prefix was given.
14310 if test "${with_pth_prefix+set}" = set; then :
14311 withval=$with_pth_prefix; pth_config_prefix="$withval"
14313 pth_config_prefix=""
14316 if test x$pth_config_prefix != x ; then
14317 PTH_CONFIG="$pth_config_prefix/bin/pth-config"
14319 if test "$use_random_daemon" = "yes"; then
14320 # Extract the first word of "pth-config", so it can be a program name with args.
14321 set dummy pth-config; ac_word=$2
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323 $as_echo_n "checking for $ac_word... " >&6; }
14324 if ${ac_cv_path_PTH_CONFIG+:} false; then :
14325 $as_echo_n "(cached) " >&6
14327 case $PTH_CONFIG in
14329 ac_cv_path_PTH_CONFIG="$PTH_CONFIG" # Let the user override the test with a path.
14332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333 for as_dir in $PATH
14336 test -z "$as_dir" && as_dir=.
14337 for ac_exec_ext in '' $ac_executable_extensions; do
14338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14339 ac_cv_path_PTH_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14347 test -z "$ac_cv_path_PTH_CONFIG" && ac_cv_path_PTH_CONFIG="no"
14351 PTH_CONFIG=$ac_cv_path_PTH_CONFIG
14352 if test -n "$PTH_CONFIG"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTH_CONFIG" >&5
14354 $as_echo "$PTH_CONFIG" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14357 $as_echo "no" >&6; }
14361 if test "$PTH_CONFIG" = "no"; then
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14364 *** To build the Libgcrypt's random number daemon
14365 *** we need the support of the GNU Portable Threads Library.
14366 *** Download it from ftp://ftp.gnu.org/gnu/pth/
14367 *** On a Debian GNU/Linux system you might want to try
14368 *** apt-get install libpth-dev
14370 $as_echo "$as_me: WARNING:
14372 *** To build the Libgcrypt's random number daemon
14373 *** we need the support of the GNU Portable Threads Library.
14374 *** Download it from ftp://ftp.gnu.org/gnu/pth/
14375 *** On a Debian GNU/Linux system you might want to try
14376 *** apt-get install libpth-dev
14380 _pth_version=`$PTH_CONFIG --version | awk 'NR==1 {print $3}'`
14381 _req_version="1.3.7"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTH - version >= $_req_version" >&5
14384 $as_echo_n "checking for PTH - version >= $_req_version... " >&6; }
14385 for _var in _pth_version _req_version; do
14386 eval "_val=\"\$${_var}\""
14387 _major=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\1/'`
14388 _minor=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\2/'`
14389 _rtype=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\3/'`
14390 _micro=`echo $_val | sed 's/\([0-9]*\)\.\([0-9]*\)\([ab.]\)\([0-9]*\)/\4/'`
14396 _hex=`echo dummy | awk '{ printf("%d%02d%1d%02d", major, minor, rtype, micro); }' \
14397 "major=$_major" "minor=$_minor" "rtype=$_rtype" "micro=$_micro"`
14398 eval "${_var}_hex=\"\$_hex\""
14401 if test ".$_pth_version_hex" != .; then
14402 if test ".$_req_version_hex" != .; then
14403 if test $_pth_version_hex -ge $_req_version_hex; then
14408 if test $have_pth = yes; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14410 $as_echo "yes" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PTH installation is sane" >&5
14412 $as_echo_n "checking whether PTH installation is sane... " >&6; }
14413 if ${gnupg_cv_pth_is_sane+:} false; then :
14414 $as_echo_n "(cached) " >&6
14417 _gnupg_pth_save_cflags=$CFLAGS
14418 _gnupg_pth_save_ldflags=$LDFLAGS
14419 _gnupg_pth_save_libs=$LIBS
14420 CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
14421 LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
14422 LIBS="$LIBS `$PTH_CONFIG --libs`"
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14435 if ac_fn_c_try_link "$LINENO"; then :
14436 gnupg_cv_pth_is_sane=yes
14438 gnupg_cv_pth_is_sane=no
14440 rm -f core conftest.err conftest.$ac_objext \
14441 conftest$ac_exeext conftest.$ac_ext
14442 CFLAGS=$_gnupg_pth_save_cflags
14443 LDFLAGS=$_gnupg_pth_save_ldflags
14444 LIBS=$_gnupg_pth_save_libs
14448 if test $gnupg_cv_pth_is_sane != yes; then
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_pth_is_sane" >&5
14452 $as_echo "$gnupg_cv_pth_is_sane" >&6; }
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14458 if test $have_pth = yes; then
14459 PTH_CFLAGS=`$PTH_CONFIG --cflags`
14460 PTH_LIBS=`$PTH_CONFIG --ldflags`
14461 PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
14463 $as_echo "#define USE_GNU_PTH 1" >>confdefs.h
14466 $as_echo "#define HAVE_PTH 1" >>confdefs.h
14475 # Check whether pthreads is available
14477 if test "$have_w32_system" != yes; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14479 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14480 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14481 $as_echo_n "(cached) " >&6
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lpthread $LIBS"
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14494 char pthread_create ();
14498 return pthread_create ();
14503 if ac_fn_c_try_link "$LINENO"; then :
14504 ac_cv_lib_pthread_pthread_create=yes
14506 ac_cv_lib_pthread_pthread_create=no
14508 rm -f core conftest.err conftest.$ac_objext \
14509 conftest$ac_exeext conftest.$ac_ext
14510 LIBS=$ac_check_lib_save_LIBS
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14513 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14514 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14518 if test "$have_pthread" = yes; then
14520 $as_echo "#define HAVE_PTHREAD 1 " >>confdefs.h
14526 # Solaris needs -lsocket and -lnsl. Unisys system includes
14527 # gethostbyname in libsocket but needs libnsl for socket.
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14529 $as_echo_n "checking for library containing setsockopt... " >&6; }
14530 if ${ac_cv_search_setsockopt+:} false; then :
14531 $as_echo_n "(cached) " >&6
14533 ac_func_search_save_LIBS=$LIBS
14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14535 /* end confdefs.h. */
14537 /* Override any GCC internal prototype to avoid an error.
14538 Use char because int might match the return type of a GCC
14539 builtin and then its argument prototype would still apply. */
14543 char setsockopt ();
14547 return setsockopt ();
14552 for ac_lib in '' socket; do
14553 if test -z "$ac_lib"; then
14554 ac_res="none required"
14557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14559 if ac_fn_c_try_link "$LINENO"; then :
14560 ac_cv_search_setsockopt=$ac_res
14562 rm -f core conftest.err conftest.$ac_objext \
14564 if ${ac_cv_search_setsockopt+:} false; then :
14568 if ${ac_cv_search_setsockopt+:} false; then :
14571 ac_cv_search_setsockopt=no
14573 rm conftest.$ac_ext
14574 LIBS=$ac_func_search_save_LIBS
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14577 $as_echo "$ac_cv_search_setsockopt" >&6; }
14578 ac_res=$ac_cv_search_setsockopt
14579 if test "$ac_res" != no; then :
14580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14584 $as_echo_n "checking for library containing setsockopt... " >&6; }
14585 if ${ac_cv_search_setsockopt+:} false; then :
14586 $as_echo_n "(cached) " >&6
14588 ac_func_search_save_LIBS=$LIBS
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14592 /* Override any GCC internal prototype to avoid an error.
14593 Use char because int might match the return type of a GCC
14594 builtin and then its argument prototype would still apply. */
14598 char setsockopt ();
14602 return setsockopt ();
14607 for ac_lib in '' socket; do
14608 if test -z "$ac_lib"; then
14609 ac_res="none required"
14612 LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
14614 if ac_fn_c_try_link "$LINENO"; then :
14615 ac_cv_search_setsockopt=$ac_res
14617 rm -f core conftest.err conftest.$ac_objext \
14619 if ${ac_cv_search_setsockopt+:} false; then :
14623 if ${ac_cv_search_setsockopt+:} false; then :
14626 ac_cv_search_setsockopt=no
14628 rm conftest.$ac_ext
14629 LIBS=$ac_func_search_save_LIBS
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14632 $as_echo "$ac_cv_search_setsockopt" >&6; }
14633 ac_res=$ac_cv_search_setsockopt
14634 if test "$ac_res" != no; then :
14635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
14642 $as_echo_n "checking for library containing setsockopt... " >&6; }
14643 if ${ac_cv_search_setsockopt+:} false; then :
14644 $as_echo_n "(cached) " >&6
14646 ac_func_search_save_LIBS=$LIBS
14647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14648 /* end confdefs.h. */
14650 /* Override any GCC internal prototype to avoid an error.
14651 Use char because int might match the return type of a GCC
14652 builtin and then its argument prototype would still apply. */
14656 char setsockopt ();
14660 return setsockopt ();
14665 for ac_lib in '' nsl; do
14666 if test -z "$ac_lib"; then
14667 ac_res="none required"
14670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14672 if ac_fn_c_try_link "$LINENO"; then :
14673 ac_cv_search_setsockopt=$ac_res
14675 rm -f core conftest.err conftest.$ac_objext \
14677 if ${ac_cv_search_setsockopt+:} false; then :
14681 if ${ac_cv_search_setsockopt+:} false; then :
14684 ac_cv_search_setsockopt=no
14686 rm conftest.$ac_ext
14687 LIBS=$ac_func_search_save_LIBS
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
14690 $as_echo "$ac_cv_search_setsockopt" >&6; }
14691 ac_res=$ac_cv_search_setsockopt
14692 if test "$ac_res" != no; then :
14693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14698 ##################################
14699 #### Checks for header files. ####
14700 ##################################
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14703 $as_echo_n "checking for ANSI C header files... " >&6; }
14704 if ${ac_cv_header_stdc+:} false; then :
14705 $as_echo_n "(cached) " >&6
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #include <stdlib.h>
14710 #include <stdarg.h>
14711 #include <string.h>
14722 if ac_fn_c_try_compile "$LINENO"; then :
14723 ac_cv_header_stdc=yes
14725 ac_cv_header_stdc=no
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14729 if test $ac_cv_header_stdc = yes; then
14730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 #include <string.h>
14736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14737 $EGREP "memchr" >/dev/null 2>&1; then :
14740 ac_cv_header_stdc=no
14746 if test $ac_cv_header_stdc = yes; then
14747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 #include <stdlib.h>
14753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14754 $EGREP "free" >/dev/null 2>&1; then :
14757 ac_cv_header_stdc=no
14763 if test $ac_cv_header_stdc = yes; then
14764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14765 if test "$cross_compiling" = yes; then :
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 #include <stdlib.h>
14772 #if ((' ' & 0x0FF) == 0x020)
14773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14776 # define ISLOWER(c) \
14777 (('a' <= (c) && (c) <= 'i') \
14778 || ('j' <= (c) && (c) <= 'r') \
14779 || ('s' <= (c) && (c) <= 'z'))
14780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14788 for (i = 0; i < 256; i++)
14789 if (XOR (islower (i), ISLOWER (i))
14790 || toupper (i) != TOUPPER (i))
14795 if ac_fn_c_try_run "$LINENO"; then :
14798 ac_cv_header_stdc=no
14800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14801 conftest.$ac_objext conftest.beam conftest.$ac_ext
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14807 $as_echo "$ac_cv_header_stdc" >&6; }
14808 if test $ac_cv_header_stdc = yes; then
14810 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14814 for ac_header in unistd.h sys/select.h sys/msg.h
14816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14819 cat >>confdefs.h <<_ACEOF
14820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14827 INSERT_SYS_SELECT_H=
14828 if test x"$ac_cv_header_sys_select_h" = xyes; then
14829 INSERT_SYS_SELECT_H=" include <sys/select.h>"
14834 ##########################################
14835 #### Checks for typedefs, structures, ####
14836 #### and compiler characteristics. ####
14837 ##########################################
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14840 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14841 if ${ac_cv_c_const+:} false; then :
14842 $as_echo_n "(cached) " >&6
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14851 #ifndef __cplusplus
14852 /* Ultrix mips cc rejects this sort of thing. */
14853 typedef int charset[2];
14854 const charset cs = { 0, 0 };
14855 /* SunOS 4.1.1 cc rejects this. */
14856 char const *const *pcpcc;
14858 /* NEC SVR4.0.2 mips cc rejects this. */
14859 struct point {int x, y;};
14860 static struct point const zero = {0,0};
14861 /* AIX XL C 1.02.0.0 rejects this.
14862 It does not let you subtract one const X* pointer from another in
14863 an arm of an if-expression whose if-part is not a constant
14865 const char *g = "string";
14866 pcpcc = &g + (g ? g-g : 0);
14867 /* HPUX 7.0 cc rejects these. */
14869 ppc = (char**) pcpcc;
14870 pcpcc = (char const *const *) ppc;
14871 { /* SCO 3.2v4 cc rejects this sort of thing. */
14874 char const *s = 0 ? (char *) 0 : (char const *) 0;
14879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14880 int x[] = {25, 17};
14881 const int *foo = &x[0];
14884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14885 typedef const int *iptr;
14889 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14891 struct s { int j; const int *ap[3]; } bx;
14892 struct s *b = &bx; b->j = 5;
14894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14895 const int foo = 10;
14896 if (!foo) return 0;
14898 return !cs[0] && !zero.x;
14905 if ac_fn_c_try_compile "$LINENO"; then :
14910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14913 $as_echo "$ac_cv_c_const" >&6; }
14914 if test $ac_cv_c_const = no; then
14916 $as_echo "#define const /**/" >>confdefs.h
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14921 $as_echo_n "checking for inline... " >&6; }
14922 if ${ac_cv_c_inline+:} false; then :
14923 $as_echo_n "(cached) " >&6
14926 for ac_kw in inline __inline__ __inline; do
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 #ifndef __cplusplus
14931 static $ac_kw foo_t static_foo () {return 0; }
14932 $ac_kw foo_t foo () {return 0; }
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937 ac_cv_c_inline=$ac_kw
14939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14940 test "$ac_cv_c_inline" != no && break
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14945 $as_echo "$ac_cv_c_inline" >&6; }
14947 case $ac_cv_c_inline in
14950 case $ac_cv_c_inline in
14952 *) ac_val=$ac_cv_c_inline;;
14954 cat >>confdefs.h <<_ACEOF
14955 #ifndef __cplusplus
14956 #define inline $ac_val
14962 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14963 if test "x$ac_cv_type_size_t" = xyes; then :
14967 cat >>confdefs.h <<_ACEOF
14968 #define size_t unsigned int
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14974 $as_echo_n "checking return type of signal handlers... " >&6; }
14975 if ${ac_cv_type_signal+:} false; then :
14976 $as_echo_n "(cached) " >&6
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <sys/types.h>
14981 #include <signal.h>
14986 return *(signal (0, 0)) (0) == 1;
14991 if ac_fn_c_try_compile "$LINENO"; then :
14992 ac_cv_type_signal=int
14994 ac_cv_type_signal=void
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14999 $as_echo "$ac_cv_type_signal" >&6; }
15001 cat >>confdefs.h <<_ACEOF
15002 #define RETSIGTYPE $ac_cv_type_signal
15006 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
15007 /* NetBSD declares sys_siglist in unistd.h. */
15008 #ifdef HAVE_UNISTD_H
15009 # include <unistd.h>
15013 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
15024 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15025 if test "x$ac_cv_type_pid_t" = xyes; then :
15029 cat >>confdefs.h <<_ACEOF
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for byte typedef" >&5
15037 $as_echo_n "checking for byte typedef... " >&6; }
15038 if ${gnupg_cv_typedef_byte+:} false; then :
15039 $as_echo_n "(cached) " >&6
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043 #define _GNU_SOURCE 1
15044 #include <stdlib.h>
15045 #include <sys/types.h>
15051 int a = sizeof(byte);
15057 if ac_fn_c_try_compile "$LINENO"; then :
15058 gnupg_cv_typedef_byte=yes
15060 gnupg_cv_typedef_byte=no
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_byte" >&5
15066 $as_echo "$gnupg_cv_typedef_byte" >&6; }
15067 if test "$gnupg_cv_typedef_byte" = yes; then
15069 $as_echo "#define HAVE_BYTE_TYPEDEF 1" >>confdefs.h
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ushort typedef" >&5
15074 $as_echo_n "checking for ushort typedef... " >&6; }
15075 if ${gnupg_cv_typedef_ushort+:} false; then :
15076 $as_echo_n "(cached) " >&6
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #define _GNU_SOURCE 1
15081 #include <stdlib.h>
15082 #include <sys/types.h>
15088 int a = sizeof(ushort);
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 gnupg_cv_typedef_ushort=yes
15097 gnupg_cv_typedef_ushort=no
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ushort" >&5
15103 $as_echo "$gnupg_cv_typedef_ushort" >&6; }
15104 if test "$gnupg_cv_typedef_ushort" = yes; then
15106 $as_echo "#define HAVE_USHORT_TYPEDEF 1" >>confdefs.h
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ulong typedef" >&5
15111 $as_echo_n "checking for ulong typedef... " >&6; }
15112 if ${gnupg_cv_typedef_ulong+:} false; then :
15113 $as_echo_n "(cached) " >&6
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117 #define _GNU_SOURCE 1
15118 #include <stdlib.h>
15119 #include <sys/types.h>
15125 int a = sizeof(ulong);
15131 if ac_fn_c_try_compile "$LINENO"; then :
15132 gnupg_cv_typedef_ulong=yes
15134 gnupg_cv_typedef_ulong=no
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_ulong" >&5
15140 $as_echo "$gnupg_cv_typedef_ulong" >&6; }
15141 if test "$gnupg_cv_typedef_ulong" = yes; then
15143 $as_echo "#define HAVE_ULONG_TYPEDEF 1" >>confdefs.h
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u16 typedef" >&5
15148 $as_echo_n "checking for u16 typedef... " >&6; }
15149 if ${gnupg_cv_typedef_u16+:} false; then :
15150 $as_echo_n "(cached) " >&6
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154 #define _GNU_SOURCE 1
15155 #include <stdlib.h>
15156 #include <sys/types.h>
15162 int a = sizeof(u16);
15168 if ac_fn_c_try_compile "$LINENO"; then :
15169 gnupg_cv_typedef_u16=yes
15171 gnupg_cv_typedef_u16=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u16" >&5
15177 $as_echo "$gnupg_cv_typedef_u16" >&6; }
15178 if test "$gnupg_cv_typedef_u16" = yes; then
15180 $as_echo "#define HAVE_U16_TYPEDEF 1" >>confdefs.h
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u32 typedef" >&5
15185 $as_echo_n "checking for u32 typedef... " >&6; }
15186 if ${gnupg_cv_typedef_u32+:} false; then :
15187 $as_echo_n "(cached) " >&6
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 #define _GNU_SOURCE 1
15192 #include <stdlib.h>
15193 #include <sys/types.h>
15199 int a = sizeof(u32);
15205 if ac_fn_c_try_compile "$LINENO"; then :
15206 gnupg_cv_typedef_u32=yes
15208 gnupg_cv_typedef_u32=no
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_typedef_u32" >&5
15214 $as_echo "$gnupg_cv_typedef_u32" >&6; }
15215 if test "$gnupg_cv_typedef_u32" = yes; then
15217 $as_echo "#define HAVE_U32_TYPEDEF 1" >>confdefs.h
15223 for ac_header in sys/socket.h
15225 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
15226 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
15227 cat >>confdefs.h <<_ACEOF
15228 #define HAVE_SYS_SOCKET_H 1
15244 if test $ac_cv_header_sys_socket_h = yes; then
15247 for ac_header in winsock2.h ws2tcpip.h
15249 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15250 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15251 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15252 cat >>confdefs.h <<_ACEOF
15253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15260 SYS_SOCKET_H='sys/socket.h'
15264 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
15265 #if HAVE_SYS_SOCKET_H
15266 # include <sys/socket.h>
15267 #elif HAVE_WS2TCPIP_H
15268 # include <ws2tcpip.h>
15271 if test "x$ac_cv_type_socklen_t" = xyes; then :
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
15275 $as_echo_n "checking for socklen_t equivalent... " >&6; }
15276 if ${gl_cv_gl_cv_socklen_t_equiv+:} false; then :
15277 $as_echo_n "(cached) " >&6
15279 # Systems have either "struct sockaddr *" or
15280 # "void *" as the second argument to getpeername
15281 gl_cv_socklen_t_equiv=
15282 for arg2 in "struct sockaddr" void; do
15283 for t in int size_t "unsigned int" "long int" "unsigned long int"; do
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15286 #include <sys/types.h>
15287 #include <sys/socket.h>
15289 int getpeername (int, $arg2 *, $t *);
15294 getpeername (0, 0, &len);
15299 if ac_fn_c_try_compile "$LINENO"; then :
15300 gl_cv_socklen_t_equiv="$t"
15302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15303 test "$gl_cv_socklen_t_equiv" != "" && break
15305 test "$gl_cv_socklen_t_equiv" != "" && break
15310 if test "$gl_cv_socklen_t_equiv" = ""; then
15311 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5
15314 $as_echo "$gl_cv_socklen_t_equiv" >&6; }
15316 cat >>confdefs.h <<_ACEOF
15317 #define socklen_t $gl_cv_socklen_t_equiv
15324 # socklen_t may or may not be defined depending on what headers
15325 # are included. To be safe we use int as this is the actual type.
15326 FALLBACK_SOCKLEN_T="typedef int gcry_socklen_t;"
15329 if test ".$gl_cv_socklen_t_equiv" = "."; then
15330 FALLBACK_SOCKLEN_T="typedef socklen_t gcry_socklen_t;"
15332 FALLBACK_SOCKLEN_T="typedef ${gl_cv_socklen_t_equiv} gcry_socklen_t;"
15339 # Check for __builtin_bswap32 intrinsic.
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5
15342 $as_echo_n "checking for __builtin_bswap32... " >&6; }
15343 if ${gcry_cv_have_builtin_bswap32+:} false; then :
15344 $as_echo_n "(cached) " >&6
15346 gcry_cv_have_builtin_bswap32=no
15347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15353 int x = 0; int y = __builtin_bswap32(x); return y;
15358 if ac_fn_c_try_link "$LINENO"; then :
15359 gcry_cv_have_builtin_bswap32=yes
15361 rm -f core conftest.err conftest.$ac_objext \
15362 conftest$ac_exeext conftest.$ac_ext
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap32" >&5
15365 $as_echo "$gcry_cv_have_builtin_bswap32" >&6; }
15366 if test "$gcry_cv_have_builtin_bswap32" = "yes" ; then
15368 $as_echo "#define HAVE_BUILTIN_BSWAP32 1" >>confdefs.h
15374 # Check for __builtin_bswap64 intrinsic.
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5
15377 $as_echo_n "checking for __builtin_bswap64... " >&6; }
15378 if ${gcry_cv_have_builtin_bswap64+:} false; then :
15379 $as_echo_n "(cached) " >&6
15381 gcry_cv_have_builtin_bswap64=no
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15388 long long x = 0; long long y = __builtin_bswap64(x); return y;
15393 if ac_fn_c_try_link "$LINENO"; then :
15394 gcry_cv_have_builtin_bswap64=yes
15396 rm -f core conftest.err conftest.$ac_objext \
15397 conftest$ac_exeext conftest.$ac_ext
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_bswap64" >&5
15400 $as_echo "$gcry_cv_have_builtin_bswap64" >&6; }
15401 if test "$gcry_cv_have_builtin_bswap64" = "yes" ; then
15403 $as_echo "#define HAVE_BUILTIN_BSWAP64 1" >>confdefs.h
15409 # Check for __builtin_ctz intrinsic.
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5
15412 $as_echo_n "checking for __builtin_ctz... " >&6; }
15413 if ${gcry_cv_have_builtin_ctz+:} false; then :
15414 $as_echo_n "(cached) " >&6
15416 gcry_cv_have_builtin_ctz=no
15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15418 /* end confdefs.h. */
15423 unsigned int x = 0; int y = __builtin_ctz(x); return y;
15428 if ac_fn_c_try_link "$LINENO"; then :
15429 gcry_cv_have_builtin_ctz=yes
15431 rm -f core conftest.err conftest.$ac_objext \
15432 conftest$ac_exeext conftest.$ac_ext
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_builtin_ctz" >&5
15435 $as_echo "$gcry_cv_have_builtin_ctz" >&6; }
15436 if test "$gcry_cv_have_builtin_ctz" = "yes" ; then
15438 $as_echo "#define HAVE_BUILTIN_CTZ 1" >>confdefs.h
15444 # Check for VLA support (variable length arrays).
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the variable length arrays are supported" >&5
15447 $as_echo_n "checking whether the variable length arrays are supported... " >&6; }
15448 if ${gcry_cv_have_vla+:} false; then :
15449 $as_echo_n "(cached) " >&6
15451 gcry_cv_have_vla=no
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454 void f1(char *, int);
15456 char b[(i < 0 ? 0 : i) + 1];
15457 f1(b, sizeof b); return b[0];}
15459 if ac_fn_c_try_compile "$LINENO"; then :
15460 gcry_cv_have_vla=yes
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_vla" >&5
15465 $as_echo "$gcry_cv_have_vla" >&6; }
15466 if test "$gcry_cv_have_vla" = "yes" ; then
15468 $as_echo "#define HAVE_VLA 1" >>confdefs.h
15474 # Check for ELF visibility support.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the visibility attribute is supported" >&5
15477 $as_echo_n "checking whether the visibility attribute is supported... " >&6; }
15478 if ${gcry_cv_visibility_attribute+:} false; then :
15479 $as_echo_n "(cached) " >&6
15481 gcry_cv_visibility_attribute=no
15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15483 /* end confdefs.h. */
15484 int foo __attribute__ ((visibility ("hidden"))) = 1;
15485 int bar __attribute__ ((visibility ("protected"))) = 1;
15489 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15491 if grep '\.hidden.*foo' conftest.s >/dev/null 2>&1 ; then
15492 if grep '\.protected.*bar' conftest.s >/dev/null 2>&1; then
15493 gcry_cv_visibility_attribute=yes
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_visibility_attribute" >&5
15500 $as_echo "$gcry_cv_visibility_attribute" >&6; }
15501 if test "$gcry_cv_visibility_attribute" = "yes"; then
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken visibility attribute" >&5
15503 $as_echo_n "checking for broken visibility attribute... " >&6; }
15504 if ${gcry_cv_broken_visibility_attribute+:} false; then :
15505 $as_echo_n "(cached) " >&6
15507 gcry_cv_broken_visibility_attribute=yes
15508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15509 /* end confdefs.h. */
15511 int bar (int x) __asm__ ("foo")
15512 __attribute__ ((visibility ("hidden")));
15513 int bar (int x) { return x; }
15517 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15519 if grep '\.hidden[ _]foo' conftest.s >/dev/null 2>&1;
15521 gcry_cv_broken_visibility_attribute=no
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_visibility_attribute" >&5
15527 $as_echo "$gcry_cv_broken_visibility_attribute" >&6; }
15529 if test "$gcry_cv_visibility_attribute" = "yes"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken alias attribute" >&5
15531 $as_echo_n "checking for broken alias attribute... " >&6; }
15532 if ${gcry_cv_broken_alias_attribute+:} false; then :
15533 $as_echo_n "(cached) " >&6
15535 gcry_cv_broken_alias_attribute=yes
15536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15537 /* end confdefs.h. */
15538 extern int foo (int x) __asm ("xyzzy");
15539 int bar (int x) { return x; }
15540 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
15542 extern __typeof (dfoo) dfoo __asm ("abccb");
15547 if ${CC-cc} -Werror -S conftest.c -o conftest.s \
15549 if grep 'xyzzy' conftest.s >/dev/null 2>&1 && \
15550 grep 'abccb' conftest.s >/dev/null 2>&1; then
15551 gcry_cv_broken_alias_attribute=no
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_broken_alias_attribute" >&5
15557 $as_echo "$gcry_cv_broken_alias_attribute" >&6; }
15559 if test "$gcry_cv_visibility_attribute" = "yes"; then
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fvisibility=hidden" >&5
15561 $as_echo_n "checking if gcc supports -fvisibility=hidden... " >&6; }
15562 if ${gcry_cv_gcc_has_f_visibility+:} false; then :
15563 $as_echo_n "(cached) " >&6
15565 gcry_cv_gcc_has_f_visibility=no
15566 _gcc_cflags_save=$CFLAGS
15567 CFLAGS="-fvisibility=hidden"
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580 gcry_cv_gcc_has_f_visibility=yes
15582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15583 CFLAGS=$_gcc_cflags_save;
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_has_f_visibility" >&5
15587 $as_echo "$gcry_cv_gcc_has_f_visibility" >&6; }
15589 if test "$gcry_cv_visibility_attribute" = "yes" \
15590 && test "$gcry_cv_broken_visibility_attribute" != "yes" \
15591 && test "$gcry_cv_broken_alias_attribute" != "yes" \
15592 && test "$gcry_cv_gcc_has_f_visibility" = "yes"
15595 $as_echo "#define GCRY_USE_VISIBILITY 1" >>confdefs.h
15597 CFLAGS="$CFLAGS -fvisibility=hidden"
15601 # Following attribute tests depend on warnings to cause compile to fail,
15602 # so set -Werror temporarily.
15603 _gcc_cflags_save=$CFLAGS
15604 CFLAGS="$CFLAGS -Werror"
15608 # Check whether the compiler supports the GCC style aligned attribute
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style aligned attribute is supported" >&5
15611 $as_echo_n "checking whether the GCC style aligned attribute is supported... " >&6; }
15612 if ${gcry_cv_gcc_attribute_aligned+:} false; then :
15613 $as_echo_n "(cached) " >&6
15615 gcry_cv_gcc_attribute_aligned=no
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 struct { int a; } foo __attribute__ ((aligned (16)));
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621 gcry_cv_gcc_attribute_aligned=yes
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_aligned" >&5
15626 $as_echo "$gcry_cv_gcc_attribute_aligned" >&6; }
15627 if test "$gcry_cv_gcc_attribute_aligned" = "yes" ; then
15629 $as_echo "#define HAVE_GCC_ATTRIBUTE_ALIGNED 1" >>confdefs.h
15635 # Check whether the compiler supports the GCC style packed attribute
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style packed attribute is supported" >&5
15638 $as_echo_n "checking whether the GCC style packed attribute is supported... " >&6; }
15639 if ${gcry_cv_gcc_attribute_packed+:} false; then :
15640 $as_echo_n "(cached) " >&6
15642 gcry_cv_gcc_attribute_packed=no
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 struct foolong_s { long b; } __attribute__ ((packed));
15646 struct foo_s { char a; struct foolong_s b; }
15647 __attribute__ ((packed));
15649 FOO = 1 / (sizeof(struct foo_s) == (sizeof(char) + sizeof(long))),
15652 if ac_fn_c_try_compile "$LINENO"; then :
15653 gcry_cv_gcc_attribute_packed=yes
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_packed" >&5
15658 $as_echo "$gcry_cv_gcc_attribute_packed" >&6; }
15659 if test "$gcry_cv_gcc_attribute_packed" = "yes" ; then
15661 $as_echo "#define HAVE_GCC_ATTRIBUTE_PACKED 1" >>confdefs.h
15667 # Check whether the compiler supports the GCC style may_alias attribute
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GCC style may_alias attribute is supported" >&5
15670 $as_echo_n "checking whether the GCC style may_alias attribute is supported... " >&6; }
15671 if ${gcry_cv_gcc_attribute_may_alias+:} false; then :
15672 $as_echo_n "(cached) " >&6
15674 gcry_cv_gcc_attribute_may_alias=no
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 typedef struct foo_s { int a; }
15678 __attribute__ ((may_alias)) foo_t;
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681 gcry_cv_gcc_attribute_may_alias=yes
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_may_alias" >&5
15686 $as_echo "$gcry_cv_gcc_attribute_may_alias" >&6; }
15687 if test "$gcry_cv_gcc_attribute_may_alias" = "yes" ; then
15689 $as_echo "#define HAVE_GCC_ATTRIBUTE_MAY_ALIAS 1" >>confdefs.h
15695 CFLAGS=$_gcc_cflags_save;
15699 # Check whether the compiler supports 'asm' or '__asm__' keyword for
15700 # assembler blocks.
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'asm' assembler keyword is supported" >&5
15703 $as_echo_n "checking whether 'asm' assembler keyword is supported... " >&6; }
15704 if ${gcry_cv_have_asm+:} false; then :
15705 $as_echo_n "(cached) " >&6
15707 gcry_cv_have_asm=no
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 void a(void) { asm("":::"memory"); }
15712 if ac_fn_c_try_compile "$LINENO"; then :
15713 gcry_cv_have_asm=yes
15715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm" >&5
15718 $as_echo "$gcry_cv_have_asm" >&6; }
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether '__asm__' assembler keyword is supported" >&5
15720 $as_echo_n "checking whether '__asm__' assembler keyword is supported... " >&6; }
15721 if ${gcry_cv_have___asm__+:} false; then :
15722 $as_echo_n "(cached) " >&6
15724 gcry_cv_have___asm__=no
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 void a(void) { __asm__("":::"memory"); }
15729 if ac_fn_c_try_compile "$LINENO"; then :
15730 gcry_cv_have___asm__=yes
15732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have___asm__" >&5
15735 $as_echo "$gcry_cv_have___asm__" >&6; }
15736 if test "$gcry_cv_have_asm" = "no" ; then
15737 if test "$gcry_cv_have___asm__" = "yes" ; then
15739 $as_echo "#define asm __asm__" >>confdefs.h
15746 # Check whether the compiler supports inline assembly memory barrier.
15748 if test "$gcry_cv_have_asm" = "no" ; then
15749 if test "$gcry_cv_have___asm__" = "yes" ; then
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
15751 $as_echo_n "checking whether inline assembly memory barrier is supported... " >&6; }
15752 if ${gcry_cv_have_asm_volatile_memory+:} false; then :
15753 $as_echo_n "(cached) " >&6
15755 gcry_cv_have_asm_volatile_memory=no
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758 void a(void) { __asm__ volatile("":::"memory"); }
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761 gcry_cv_have_asm_volatile_memory=yes
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
15766 $as_echo "$gcry_cv_have_asm_volatile_memory" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inline assembly memory barrier is supported" >&5
15770 $as_echo_n "checking whether inline assembly memory barrier is supported... " >&6; }
15771 if ${gcry_cv_have_asm_volatile_memory+:} false; then :
15772 $as_echo_n "(cached) " >&6
15774 gcry_cv_have_asm_volatile_memory=no
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15777 void a(void) { asm volatile("":::"memory"); }
15779 if ac_fn_c_try_compile "$LINENO"; then :
15780 gcry_cv_have_asm_volatile_memory=yes
15782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_have_asm_volatile_memory" >&5
15785 $as_echo "$gcry_cv_have_asm_volatile_memory" >&6; }
15787 if test "$gcry_cv_have_asm_volatile_memory" = "yes" ; then
15789 $as_echo "#define HAVE_GCC_ASM_VOLATILE_MEMORY 1" >>confdefs.h
15795 # Check whether GCC assembler supports features needed for our ARM
15796 # implementations. This needs to be done before setting up the
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARM assembly implementations" >&5
15800 $as_echo_n "checking whether GCC assembler is compatible for ARM assembly implementations... " >&6; }
15801 if ${gcry_cv_gcc_arm_platform_as_ok+:} false; then :
15802 $as_echo_n "(cached) " >&6
15804 gcry_cv_gcc_arm_platform_as_ok=no
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15808 /* Test if assembler supports UAL syntax. */
15809 ".syntax unified\n\t"
15810 ".arm\n\t" /* our assembly code is in ARM mode */
15811 /* Following causes error if assembler ignored '.syntax unified'. */
15813 "add %r0, %r0, %r4, ror #12;\n\t"
15815 /* Test if '.type' and '.size' are supported. */
15816 ".size asmfunc,.-asmfunc;\n\t"
15817 ".type asmfunc,%function;\n\t"
15820 if ac_fn_c_try_compile "$LINENO"; then :
15821 gcry_cv_gcc_arm_platform_as_ok=yes
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_arm_platform_as_ok" >&5
15826 $as_echo "$gcry_cv_gcc_arm_platform_as_ok" >&6; }
15827 if test "$gcry_cv_gcc_arm_platform_as_ok" = "yes" ; then
15829 $as_echo "#define HAVE_COMPATIBLE_GCC_ARM_PLATFORM_AS 1" >>confdefs.h
15835 # Check whether GCC assembler supports features needed for our ARMv8/Aarch64
15836 # implementations. This needs to be done before setting up the
15839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations" >&5
15840 $as_echo_n "checking whether GCC assembler is compatible for ARMv8/Aarch64 assembly implementations... " >&6; }
15841 if ${gcry_cv_gcc_aarch64_platform_as_ok+:} false; then :
15842 $as_echo_n "(cached) " >&6
15844 gcry_cv_gcc_aarch64_platform_as_ok=no
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15849 "eor x0, x0, x30, ror #12;\n\t"
15850 "add x0, x0, x30, asr #12;\n\t"
15851 "eor v0.16b, v0.16b, v31.16b;\n\t"
15853 /* Test if '.type' and '.size' are supported. */
15854 ".size asmfunc,.-asmfunc;\n\t"
15855 ".type asmfunc,@function;\n\t"
15858 if ac_fn_c_try_compile "$LINENO"; then :
15859 gcry_cv_gcc_aarch64_platform_as_ok=yes
15861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_aarch64_platform_as_ok" >&5
15864 $as_echo "$gcry_cv_gcc_aarch64_platform_as_ok" >&6; }
15865 if test "$gcry_cv_gcc_aarch64_platform_as_ok" = "yes" ; then
15867 $as_echo "#define HAVE_COMPATIBLE_GCC_AARCH64_PLATFORM_AS 1" >>confdefs.h
15873 # Check whether underscores in symbols are required. This needs to be
15874 # done before setting up the assembler stuff.
15879 i?86-mingw32* | i?86-*-mingw32*)
15880 ac_cv_sys_symbol_underscore=yes
15883 ac_cv_sys_symbol_underscore=no
15885 i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
15886 ac_cv_sys_symbol_underscore=yes
15889 if test "$cross_compiling" = yes; then
15890 if test "x$ac_cv_sys_symbol_underscore" = x ; then
15891 ac_cv_sys_symbol_underscore=yes
15898 if test "$tmp_do_check" = "yes"; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15901 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15902 if ${ac_cv_sys_symbol_underscore+:} false; then :
15903 $as_echo_n "(cached) " >&6
15905 ac_cv_sys_symbol_underscore=no
15906 cat > conftest.$ac_ext <<EOF
15907 void nm_test_func(){}
15908 int main(){nm_test_func;return 0;}
15910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15911 (eval $ac_compile) 2>&5
15913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15914 test $ac_status = 0; }; then
15915 # Now try to grab the symbols.
15916 ac_nlist=conftest.nm
15917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist\""; } >&5
15918 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \| cut -d \' \' -f 2 \> $ac_nlist) 2>&5
15920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921 test $ac_status = 0; } && test -s "$ac_nlist"; then
15922 # See whether the symbols have a leading underscore.
15923 if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
15924 ac_cv_sys_symbol_underscore=yes
15926 if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
15929 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
15933 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
15936 echo "configure: failed program was:" >&5
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
15945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
15948 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
15949 if test x$ac_cv_sys_symbol_underscore = xyes; then
15951 $as_echo "#define WITH_SYMBOL_UNDERSCORE 1" >>confdefs.h
15957 #################################
15959 #### Setup assembler stuff. ####
15960 #### Define mpi_cpu_arch. ####
15962 #################################
15963 # Check whether --enable-mpi-path was given.
15964 if test "${enable_mpi_path+set}" = set; then :
15965 enableval=$enable_mpi_path; mpi_extra_path="$enableval"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking architecture and mpi assembler functions" >&5
15971 $as_echo_n "checking architecture and mpi assembler functions... " >&6; }
15972 if test -f $srcdir/mpi/config.links ; then
15973 . $srcdir/mpi/config.links
15974 ac_config_links="$ac_config_links "$mpi_ln_list""
15976 ac_cv_mpi_sflags="$mpi_sflags"
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpi_cpu_arch" >&5
15978 $as_echo "$mpi_cpu_arch" >&6; }
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
15981 $as_echo "failed" >&6; }
15982 as_fn_error $? "mpi/config.links missing!" "$LINENO" 5
15984 MPI_SFLAGS="$ac_cv_mpi_sflags"
15987 if test "$mpi_mod_asm_mpih_add1" = yes; then
15988 MPI_MOD_ASM_MPIH_ADD1_TRUE=
15989 MPI_MOD_ASM_MPIH_ADD1_FALSE='#'
15991 MPI_MOD_ASM_MPIH_ADD1_TRUE='#'
15992 MPI_MOD_ASM_MPIH_ADD1_FALSE=
15995 if test "$mpi_mod_asm_mpih_sub1" = yes; then
15996 MPI_MOD_ASM_MPIH_SUB1_TRUE=
15997 MPI_MOD_ASM_MPIH_SUB1_FALSE='#'
15999 MPI_MOD_ASM_MPIH_SUB1_TRUE='#'
16000 MPI_MOD_ASM_MPIH_SUB1_FALSE=
16003 if test "$mpi_mod_asm_mpih_mul1" = yes; then
16004 MPI_MOD_ASM_MPIH_MUL1_TRUE=
16005 MPI_MOD_ASM_MPIH_MUL1_FALSE='#'
16007 MPI_MOD_ASM_MPIH_MUL1_TRUE='#'
16008 MPI_MOD_ASM_MPIH_MUL1_FALSE=
16011 if test "$mpi_mod_asm_mpih_mul2" = yes; then
16012 MPI_MOD_ASM_MPIH_MUL2_TRUE=
16013 MPI_MOD_ASM_MPIH_MUL2_FALSE='#'
16015 MPI_MOD_ASM_MPIH_MUL2_TRUE='#'
16016 MPI_MOD_ASM_MPIH_MUL2_FALSE=
16019 if test "$mpi_mod_asm_mpih_mul3" = yes; then
16020 MPI_MOD_ASM_MPIH_MUL3_TRUE=
16021 MPI_MOD_ASM_MPIH_MUL3_FALSE='#'
16023 MPI_MOD_ASM_MPIH_MUL3_TRUE='#'
16024 MPI_MOD_ASM_MPIH_MUL3_FALSE=
16027 if test "$mpi_mod_asm_mpih_lshift" = yes; then
16028 MPI_MOD_ASM_MPIH_LSHIFT_TRUE=
16029 MPI_MOD_ASM_MPIH_LSHIFT_FALSE='#'
16031 MPI_MOD_ASM_MPIH_LSHIFT_TRUE='#'
16032 MPI_MOD_ASM_MPIH_LSHIFT_FALSE=
16035 if test "$mpi_mod_asm_mpih_rshift" = yes; then
16036 MPI_MOD_ASM_MPIH_RSHIFT_TRUE=
16037 MPI_MOD_ASM_MPIH_RSHIFT_FALSE='#'
16039 MPI_MOD_ASM_MPIH_RSHIFT_TRUE='#'
16040 MPI_MOD_ASM_MPIH_RSHIFT_FALSE=
16043 if test "$mpi_mod_asm_udiv" = yes; then
16044 MPI_MOD_ASM_UDIV_TRUE=
16045 MPI_MOD_ASM_UDIV_FALSE='#'
16047 MPI_MOD_ASM_UDIV_TRUE='#'
16048 MPI_MOD_ASM_UDIV_FALSE=
16051 if test "$mpi_mod_asm_udiv_qrnnd" = yes; then
16052 MPI_MOD_ASM_UDIV_QRNND_TRUE=
16053 MPI_MOD_ASM_UDIV_QRNND_FALSE='#'
16055 MPI_MOD_ASM_UDIV_QRNND_TRUE='#'
16056 MPI_MOD_ASM_UDIV_QRNND_FALSE=
16059 if test "$mpi_mod_c_mpih_add1" = yes; then
16060 MPI_MOD_C_MPIH_ADD1_TRUE=
16061 MPI_MOD_C_MPIH_ADD1_FALSE='#'
16063 MPI_MOD_C_MPIH_ADD1_TRUE='#'
16064 MPI_MOD_C_MPIH_ADD1_FALSE=
16067 if test "$mpi_mod_c_mpih_sub1" = yes; then
16068 MPI_MOD_C_MPIH_SUB1_TRUE=
16069 MPI_MOD_C_MPIH_SUB1_FALSE='#'
16071 MPI_MOD_C_MPIH_SUB1_TRUE='#'
16072 MPI_MOD_C_MPIH_SUB1_FALSE=
16075 if test "$mpi_mod_c_mpih_mul1" = yes; then
16076 MPI_MOD_C_MPIH_MUL1_TRUE=
16077 MPI_MOD_C_MPIH_MUL1_FALSE='#'
16079 MPI_MOD_C_MPIH_MUL1_TRUE='#'
16080 MPI_MOD_C_MPIH_MUL1_FALSE=
16083 if test "$mpi_mod_c_mpih_mul2" = yes; then
16084 MPI_MOD_C_MPIH_MUL2_TRUE=
16085 MPI_MOD_C_MPIH_MUL2_FALSE='#'
16087 MPI_MOD_C_MPIH_MUL2_TRUE='#'
16088 MPI_MOD_C_MPIH_MUL2_FALSE=
16091 if test "$mpi_mod_c_mpih_mul3" = yes; then
16092 MPI_MOD_C_MPIH_MUL3_TRUE=
16093 MPI_MOD_C_MPIH_MUL3_FALSE='#'
16095 MPI_MOD_C_MPIH_MUL3_TRUE='#'
16096 MPI_MOD_C_MPIH_MUL3_FALSE=
16099 if test "$mpi_mod_c_mpih_lshift" = yes; then
16100 MPI_MOD_C_MPIH_LSHIFT_TRUE=
16101 MPI_MOD_C_MPIH_LSHIFT_FALSE='#'
16103 MPI_MOD_C_MPIH_LSHIFT_TRUE='#'
16104 MPI_MOD_C_MPIH_LSHIFT_FALSE=
16107 if test "$mpi_mod_c_mpih_rshift" = yes; then
16108 MPI_MOD_C_MPIH_RSHIFT_TRUE=
16109 MPI_MOD_C_MPIH_RSHIFT_FALSE='#'
16111 MPI_MOD_C_MPIH_RSHIFT_TRUE='#'
16112 MPI_MOD_C_MPIH_RSHIFT_FALSE=
16115 if test "$mpi_mod_c_udiv" = yes; then
16116 MPI_MOD_C_UDIV_TRUE=
16117 MPI_MOD_C_UDIV_FALSE='#'
16119 MPI_MOD_C_UDIV_TRUE='#'
16120 MPI_MOD_C_UDIV_FALSE=
16123 if test "$mpi_mod_c_udiv_qrnnd" = yes; then
16124 MPI_MOD_C_UDIV_QRNND_TRUE=
16125 MPI_MOD_C_UDIV_QRNND_FALSE='#'
16127 MPI_MOD_C_UDIV_QRNND_TRUE='#'
16128 MPI_MOD_C_UDIV_QRNND_FALSE=
16132 # Reset non applicable feature flags.
16133 if test "$mpi_cpu_arch" != "x86" ; then
16135 pclmulsupport="n/a"
16139 padlocksupport="n/a"
16144 if test "$mpi_cpu_arch" != "arm" ; then
16145 if test "$mpi_cpu_arch" != "aarch64" ; then
16147 armcryptosupport="n/a"
16152 #############################################
16154 #### Platform specific compiler checks. ####
16156 #############################################
16159 # Following tests depend on warnings to cause compile to fail, so set -Werror
16161 _gcc_cflags_save=$CFLAGS
16162 CFLAGS="$CFLAGS -Werror"
16166 # Check whether compiler supports 'ms_abi' function attribute.
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'ms_abi' function attribute" >&5
16169 $as_echo_n "checking whether compiler supports 'ms_abi' function attribute... " >&6; }
16170 if ${gcry_cv_gcc_attribute_ms_abi+:} false; then :
16171 $as_echo_n "(cached) " >&6
16173 gcry_cv_gcc_attribute_ms_abi=no
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 int __attribute__ ((ms_abi)) proto(int);
16178 if ac_fn_c_try_compile "$LINENO"; then :
16179 gcry_cv_gcc_attribute_ms_abi=yes
16181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_ms_abi" >&5
16184 $as_echo "$gcry_cv_gcc_attribute_ms_abi" >&6; }
16185 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
16187 $as_echo "#define HAVE_GCC_ATTRIBUTE_MS_ABI 1" >>confdefs.h
16193 # Check whether compiler supports 'sysv_abi' function attribute.
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports 'sysv_abi' function attribute" >&5
16196 $as_echo_n "checking whether compiler supports 'sysv_abi' function attribute... " >&6; }
16197 if ${gcry_cv_gcc_attribute_sysv_abi+:} false; then :
16198 $as_echo_n "(cached) " >&6
16200 gcry_cv_gcc_attribute_sysv_abi=no
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 int __attribute__ ((sysv_abi)) proto(int);
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206 gcry_cv_gcc_attribute_sysv_abi=yes
16208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_attribute_sysv_abi" >&5
16211 $as_echo "$gcry_cv_gcc_attribute_sysv_abi" >&6; }
16212 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
16214 $as_echo "#define HAVE_GCC_ATTRIBUTE_SYSV_ABI 1" >>confdefs.h
16220 # Check whether default calling convention is 'ms_abi'.
16222 if test "$gcry_cv_gcc_attribute_ms_abi" = "yes" ; then
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'ms_abi'" >&5
16224 $as_echo_n "checking whether default calling convention is 'ms_abi'... " >&6; }
16225 if ${gcry_cv_gcc_default_abi_is_ms_abi+:} false; then :
16226 $as_echo_n "(cached) " >&6
16228 gcry_cv_gcc_default_abi_is_ms_abi=no
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16232 void *(*def_func)(void) = test;
16233 void *__attribute__((ms_abi))(*msabi_func)(void);
16234 /* warning on SysV abi targets, passes on Windows based targets */
16235 msabi_func = def_func;
16239 if ac_fn_c_try_compile "$LINENO"; then :
16240 gcry_cv_gcc_default_abi_is_ms_abi=yes
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_ms_abi" >&5
16245 $as_echo "$gcry_cv_gcc_default_abi_is_ms_abi" >&6; }
16246 if test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes" ; then
16248 $as_echo "#define HAVE_GCC_DEFAULT_ABI_IS_MS_ABI 1" >>confdefs.h
16255 # Check whether default calling convention is 'sysv_abi'.
16257 if test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" ; then
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether default calling convention is 'sysv_abi'" >&5
16259 $as_echo_n "checking whether default calling convention is 'sysv_abi'... " >&6; }
16260 if ${gcry_cv_gcc_default_abi_is_sysv_abi+:} false; then :
16261 $as_echo_n "(cached) " >&6
16263 gcry_cv_gcc_default_abi_is_sysv_abi=no
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16267 void *(*def_func)(void) = test;
16268 void *__attribute__((sysv_abi))(*sysvabi_func)(void);
16269 /* warning on MS ABI targets, passes on SysV ABI targets */
16270 sysvabi_func = def_func;
16271 return sysvabi_func;
16274 if ac_fn_c_try_compile "$LINENO"; then :
16275 gcry_cv_gcc_default_abi_is_sysv_abi=yes
16277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_default_abi_is_sysv_abi" >&5
16280 $as_echo "$gcry_cv_gcc_default_abi_is_sysv_abi" >&6; }
16281 if test "$gcry_cv_gcc_default_abi_is_sysv_abi" = "yes" ; then
16283 $as_echo "#define HAVE_GCC_DEFAULT_ABI_IS_SYSV_ABI 1" >>confdefs.h
16290 CFLAGS=$_gcc_cflags_save;
16294 # Check whether GCC inline assembler supports SSSE3 instructions
16295 # This is required for the AES-NI instructions.
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSSE3 instructions" >&5
16298 $as_echo_n "checking whether GCC inline assembler supports SSSE3 instructions... " >&6; }
16299 if ${gcry_cv_gcc_inline_asm_ssse3+:} false; then :
16300 $as_echo_n "(cached) " >&6
16302 if test "$mpi_cpu_arch" != "x86" ; then
16303 gcry_cv_gcc_inline_asm_ssse3="n/a"
16305 gcry_cv_gcc_inline_asm_ssse3=no
16306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16307 /* end confdefs.h. */
16308 static unsigned char be_mask[16] __attribute__ ((aligned (16))) =
16309 { 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
16311 __asm__("pshufb %[mask], %%xmm2\n\t"::[mask]"m"(*be_mask):);
16314 if ac_fn_c_try_compile "$LINENO"; then :
16315 gcry_cv_gcc_inline_asm_ssse3=yes
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_ssse3" >&5
16321 $as_echo "$gcry_cv_gcc_inline_asm_ssse3" >&6; }
16322 if test "$gcry_cv_gcc_inline_asm_ssse3" = "yes" ; then
16324 $as_echo "#define HAVE_GCC_INLINE_ASM_SSSE3 1" >>confdefs.h
16330 # Check whether GCC inline assembler supports PCLMUL instructions.
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports PCLMUL instructions" >&5
16333 $as_echo_n "checking whether GCC inline assembler supports PCLMUL instructions... " >&6; }
16334 if ${gcry_cv_gcc_inline_asm_pclmul+:} false; then :
16335 $as_echo_n "(cached) " >&6
16337 if test "$mpi_cpu_arch" != "x86" ; then
16338 gcry_cv_gcc_inline_asm_pclmul="n/a"
16340 gcry_cv_gcc_inline_asm_pclmul=no
16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342 /* end confdefs.h. */
16344 __asm__("pclmulqdq \$0, %%xmm1, %%xmm3\n\t":::"cc");
16347 if ac_fn_c_try_compile "$LINENO"; then :
16348 gcry_cv_gcc_inline_asm_pclmul=yes
16350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_pclmul" >&5
16354 $as_echo "$gcry_cv_gcc_inline_asm_pclmul" >&6; }
16355 if test "$gcry_cv_gcc_inline_asm_pclmul" = "yes" ; then
16357 $as_echo "#define HAVE_GCC_INLINE_ASM_PCLMUL 1" >>confdefs.h
16362 # Check whether GCC inline assembler supports SSE4.1 instructions.
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports SSE4.1 instructions" >&5
16365 $as_echo_n "checking whether GCC inline assembler supports SSE4.1 instructions... " >&6; }
16366 if ${gcry_cv_gcc_inline_asm_sse41+:} false; then :
16367 $as_echo_n "(cached) " >&6
16369 if test "$mpi_cpu_arch" != "x86" ; then
16370 gcry_cv_gcc_inline_asm_sse41="n/a"
16372 gcry_cv_gcc_inline_asm_sse41=no
16373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16374 /* end confdefs.h. */
16377 __asm__("pextrd \$2, %%xmm0, %[out]\n\t" : [out] "=m" (i));
16380 if ac_fn_c_try_compile "$LINENO"; then :
16381 gcry_cv_gcc_inline_asm_sse41=yes
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_sse41" >&5
16387 $as_echo "$gcry_cv_gcc_inline_asm_sse41" >&6; }
16388 if test "$gcry_cv_gcc_inline_asm_sse41" = "yes" ; then
16390 $as_echo "#define HAVE_GCC_INLINE_ASM_SSE41 1" >>confdefs.h
16396 # Check whether GCC inline assembler supports AVX instructions
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX instructions" >&5
16399 $as_echo_n "checking whether GCC inline assembler supports AVX instructions... " >&6; }
16400 if ${gcry_cv_gcc_inline_asm_avx+:} false; then :
16401 $as_echo_n "(cached) " >&6
16403 if test "$mpi_cpu_arch" != "x86" ; then
16404 gcry_cv_gcc_inline_asm_avx="n/a"
16406 gcry_cv_gcc_inline_asm_avx=no
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408 /* end confdefs.h. */
16410 __asm__("xgetbv; vaesdeclast (%[mem]),%%xmm0,%%xmm7\n\t"::[mem]"r"(0):);
16413 if ac_fn_c_try_compile "$LINENO"; then :
16414 gcry_cv_gcc_inline_asm_avx=yes
16416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx" >&5
16420 $as_echo "$gcry_cv_gcc_inline_asm_avx" >&6; }
16421 if test "$gcry_cv_gcc_inline_asm_avx" = "yes" ; then
16423 $as_echo "#define HAVE_GCC_INLINE_ASM_AVX 1" >>confdefs.h
16429 # Check whether GCC inline assembler supports AVX2 instructions
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AVX2 instructions" >&5
16432 $as_echo_n "checking whether GCC inline assembler supports AVX2 instructions... " >&6; }
16433 if ${gcry_cv_gcc_inline_asm_avx2+:} false; then :
16434 $as_echo_n "(cached) " >&6
16436 if test "$mpi_cpu_arch" != "x86" ; then
16437 gcry_cv_gcc_inline_asm_avx2="n/a"
16439 gcry_cv_gcc_inline_asm_avx2=no
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16443 __asm__("xgetbv; vpbroadcastb %%xmm7,%%ymm1\n\t":::"cc");
16446 if ac_fn_c_try_compile "$LINENO"; then :
16447 gcry_cv_gcc_inline_asm_avx2=yes
16449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_avx2" >&5
16453 $as_echo "$gcry_cv_gcc_inline_asm_avx2" >&6; }
16454 if test "$gcry_cv_gcc_inline_asm_avx2" = "yes" ; then
16456 $as_echo "#define HAVE_GCC_INLINE_ASM_AVX2 1" >>confdefs.h
16462 # Check whether GCC inline assembler supports BMI2 instructions
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports BMI2 instructions" >&5
16465 $as_echo_n "checking whether GCC inline assembler supports BMI2 instructions... " >&6; }
16466 if ${gcry_cv_gcc_inline_asm_bmi2+:} false; then :
16467 $as_echo_n "(cached) " >&6
16469 if test "$mpi_cpu_arch" != "x86" ; then
16470 gcry_cv_gcc_inline_asm_bmi2="n/a"
16472 gcry_cv_gcc_inline_asm_bmi2=no
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475 unsigned int a(unsigned int x, unsigned int y) {
16476 unsigned int tmp1, tmp2;
16477 asm ("rorxl %2, %1, %0"
16479 : "rm0" (x), "J" (32 - ((23) & 31)));
16480 asm ("andnl %2, %1, %0"
16482 : "r0" (x), "rm" (y));
16483 return tmp1 + tmp2;
16486 if ac_fn_c_try_compile "$LINENO"; then :
16487 gcry_cv_gcc_inline_asm_bmi2=yes
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_bmi2" >&5
16493 $as_echo "$gcry_cv_gcc_inline_asm_bmi2" >&6; }
16494 if test "$gcry_cv_gcc_inline_asm_bmi2" = "yes" ; then
16496 $as_echo "#define HAVE_GCC_INLINE_ASM_BMI2 1" >>confdefs.h
16502 # Check whether GCC assembler needs "-Wa,--divide" to correctly handle
16503 # constant division
16505 if test $amd64_as_feature_detection = yes; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly" >&5
16507 $as_echo_n "checking whether GCC assembler handles division correctly... " >&6; }
16508 if ${gcry_cv_gcc_as_const_division_ok+:} false; then :
16509 $as_echo_n "(cached) " >&6
16511 gcry_cv_gcc_as_const_division_ok=no
16512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16513 /* end confdefs.h. */
16514 __asm__("xorl \$(123456789/12345678), %ebp;\n\t");
16516 if ac_fn_c_try_compile "$LINENO"; then :
16517 gcry_cv_gcc_as_const_division_ok=yes
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_ok" >&5
16522 $as_echo "$gcry_cv_gcc_as_const_division_ok" >&6; }
16523 if test "$gcry_cv_gcc_as_const_division_ok" = "no" ; then
16525 # Add '-Wa,--divide' to CPPFLAGS and try check again.
16527 _gcc_cppflags_save="$CPPFLAGS"
16528 CPPFLAGS="$CPPFLAGS -Wa,--divide"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler handles division correctly with \"-Wa,--divide\"" >&5
16530 $as_echo_n "checking whether GCC assembler handles division correctly with \"-Wa,--divide\"... " >&6; }
16531 if ${gcry_cv_gcc_as_const_division_with_wadivide_ok+:} false; then :
16532 $as_echo_n "(cached) " >&6
16534 gcry_cv_gcc_as_const_division_with_wadivide_ok=no
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537 __asm__("xorl \$(123456789/12345678), %ebp;\n\t");
16539 if ac_fn_c_try_compile "$LINENO"; then :
16540 gcry_cv_gcc_as_const_division_with_wadivide_ok=yes
16542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_as_const_division_with_wadivide_ok" >&5
16545 $as_echo "$gcry_cv_gcc_as_const_division_with_wadivide_ok" >&6; }
16546 if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
16547 # '-Wa,--divide' did not work, restore old flags.
16548 CPPFLAGS="$_gcc_cppflags_save"
16555 # Check whether GCC assembler supports features needed for our amd64
16558 if test $amd64_as_feature_detection = yes; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for amd64 assembly implementations" >&5
16560 $as_echo_n "checking whether GCC assembler is compatible for amd64 assembly implementations... " >&6; }
16561 if ${gcry_cv_gcc_amd64_platform_as_ok+:} false; then :
16562 $as_echo_n "(cached) " >&6
16564 if test "$mpi_cpu_arch" != "x86" ; then
16565 gcry_cv_gcc_amd64_platform_as_ok="n/a"
16567 gcry_cv_gcc_amd64_platform_as_ok=no
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h. */
16571 /* Test if '.type' and '.size' are supported. */
16572 /* These work only on ELF targets. */
16574 ".size asmfunc,.-asmfunc;\n\t"
16575 ".type asmfunc,@function;\n\t"
16576 /* Test if assembler allows use of '/' for constant division
16577 * (Solaris/x86 issue). If previous constant division check
16578 * and "-Wa,--divide" workaround failed, this causes assembly
16579 * to be disable on this machine. */
16580 "xorl \$(123456789/12345678), %ebp;\n\t"
16583 if ac_fn_c_try_compile "$LINENO"; then :
16584 gcry_cv_gcc_amd64_platform_as_ok=yes
16586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_amd64_platform_as_ok" >&5
16590 $as_echo "$gcry_cv_gcc_amd64_platform_as_ok" >&6; }
16591 if test "$gcry_cv_gcc_amd64_platform_as_ok" = "yes" ; then
16593 $as_echo "#define HAVE_COMPATIBLE_GCC_AMD64_PLATFORM_AS 1" >>confdefs.h
16596 if test "$gcry_cv_gcc_amd64_platform_as_ok" = "no" &&
16597 test "$gcry_cv_gcc_attribute_sysv_abi" = "yes" &&
16598 test "$gcry_cv_gcc_default_abi_is_ms_abi" = "yes"; then
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for WIN64 assembly implementations" >&5
16600 $as_echo_n "checking whether GCC assembler is compatible for WIN64 assembly implementations... " >&6; }
16601 if ${gcry_cv_gcc_win64_platform_as_ok+:} false; then :
16602 $as_echo_n "(cached) " >&6
16604 gcry_cv_gcc_win64_platform_as_ok=no
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16608 ".globl asmfunc\n\t"
16610 "xorq \$(1234), %rbp;\n\t"
16613 if ac_fn_c_try_compile "$LINENO"; then :
16614 gcry_cv_gcc_win64_platform_as_ok=yes
16616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_win64_platform_as_ok" >&5
16619 $as_echo "$gcry_cv_gcc_win64_platform_as_ok" >&6; }
16620 if test "$gcry_cv_gcc_win64_platform_as_ok" = "yes" ; then
16622 $as_echo "#define HAVE_COMPATIBLE_GCC_WIN64_PLATFORM_AS 1" >>confdefs.h
16630 # Check whether GCC assembler supports features needed for assembly
16631 # implementations that use Intel syntax
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC assembler is compatible for Intel syntax assembly implementations" >&5
16634 $as_echo_n "checking whether GCC assembler is compatible for Intel syntax assembly implementations... " >&6; }
16635 if ${gcry_cv_gcc_platform_as_ok_for_intel_syntax+:} false; then :
16636 $as_echo_n "(cached) " >&6
16638 if test "$mpi_cpu_arch" != "x86" ; then
16639 gcry_cv_gcc_platform_as_ok_for_intel_syntax="n/a"
16641 gcry_cv_gcc_platform_as_ok_for_intel_syntax=no
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16645 ".intel_syntax noprefix\n\t"
16646 "pxor xmm1, xmm7;\n\t"
16647 /* Intel syntax implementation also use GAS macros, so check
16648 * for them here. */
16651 ".macro SET_VAL_A p1\n\t"
16652 " VAL_A = \\\\p1 \n\t"
16654 ".macro SET_VAL_B p1\n\t"
16655 " VAL_B = \\\\p1 \n\t"
16657 "vmovdqa VAL_A, VAL_B;\n\t"
16658 "SET_VAL_A eax\n\t"
16659 "SET_VAL_B ebp\n\t"
16660 "add VAL_A, VAL_B;\n\t"
16661 "add VAL_B, 0b10101;\n\t"
16664 if ac_fn_c_try_compile "$LINENO"; then :
16665 gcry_cv_gcc_platform_as_ok_for_intel_syntax=yes
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&5
16671 $as_echo "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" >&6; }
16672 if test "$gcry_cv_gcc_platform_as_ok_for_intel_syntax" = "yes" ; then
16674 $as_echo "#define HAVE_INTEL_SYNTAX_PLATFORM_AS 1" >>confdefs.h
16680 # Check whether compiler is configured for ARMv6 or newer architecture
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is configured for ARMv6 or newer architecture" >&5
16683 $as_echo_n "checking whether compiler is configured for ARMv6 or newer architecture... " >&6; }
16684 if ${gcry_cv_cc_arm_arch_is_v6+:} false; then :
16685 $as_echo_n "(cached) " >&6
16687 if test "$mpi_cpu_arch" != "arm" ; then
16688 gcry_cv_cc_arm_arch_is_v6="n/a"
16690 gcry_cv_cc_arm_arch_is_v6=no
16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692 /* end confdefs.h. */
16694 #if defined(__arm__) && \
16695 ((defined(__ARM_ARCH) && __ARM_ARCH >= 6) \
16696 || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_6J__) \
16697 || defined(__ARM_ARCH_6Z__) || defined(__ARM_ARCH_6ZK__) \
16698 || defined(__ARM_ARCH_6K__) || defined(__ARM_ARCH_6T2__) \
16699 || defined(__ARM_ARCH_7__) || defined(__ARM_ARCH_7A__) \
16700 || defined(__ARM_ARCH_7R__) || defined(__ARM_ARCH_7M__) \
16701 || defined(__ARM_ARCH_7EM__))
16704 /* fail compile if not ARMv6. */
16705 not_armv6 not_armv6 = (not_armv6)not_armv6;
16709 if ac_fn_c_try_compile "$LINENO"; then :
16710 gcry_cv_cc_arm_arch_is_v6=yes
16712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_cc_arm_arch_is_v6" >&5
16716 $as_echo "$gcry_cv_cc_arm_arch_is_v6" >&6; }
16717 if test "$gcry_cv_cc_arm_arch_is_v6" = "yes" ; then
16719 $as_echo "#define HAVE_ARM_ARCH_V6 1" >>confdefs.h
16725 # Check whether GCC inline assembler supports NEON instructions
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports NEON instructions" >&5
16728 $as_echo_n "checking whether GCC inline assembler supports NEON instructions... " >&6; }
16729 if ${gcry_cv_gcc_inline_asm_neon+:} false; then :
16730 $as_echo_n "(cached) " >&6
16732 if test "$mpi_cpu_arch" != "arm" ; then
16733 gcry_cv_gcc_inline_asm_neon="n/a"
16735 gcry_cv_gcc_inline_asm_neon=no
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16739 ".syntax unified\n\t"
16742 "vld1.64 {%q0-%q1}, [%r0]!;\n\t"
16743 "vrev64.8 %q0, %q3;\n\t"
16744 "vadd.u64 %q0, %q1;\n\t"
16745 "vadd.s64 %d3, %d2, %d3;\n\t"
16749 if ac_fn_c_try_compile "$LINENO"; then :
16750 gcry_cv_gcc_inline_asm_neon=yes
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_neon" >&5
16756 $as_echo "$gcry_cv_gcc_inline_asm_neon" >&6; }
16757 if test "$gcry_cv_gcc_inline_asm_neon" = "yes" ; then
16759 $as_echo "#define HAVE_GCC_INLINE_ASM_NEON 1" >>confdefs.h
16765 # Check whether GCC inline assembler supports AArch32 Crypto Extension instructions
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch32 Crypto Extension instructions" >&5
16768 $as_echo_n "checking whether GCC inline assembler supports AArch32 Crypto Extension instructions... " >&6; }
16769 if ${gcry_cv_gcc_inline_asm_aarch32_crypto+:} false; then :
16770 $as_echo_n "(cached) " >&6
16772 if test "$mpi_cpu_arch" != "arm" ; then
16773 gcry_cv_gcc_inline_asm_aarch32_crypto="n/a"
16775 gcry_cv_gcc_inline_asm_aarch32_crypto=no
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16779 ".syntax unified\n\t"
16780 ".arch armv8-a\n\t"
16782 ".fpu crypto-neon-fp-armv8\n\t"
16784 "sha1h.32 q0, q0;\n\t"
16785 "sha1c.32 q0, q0, q0;\n\t"
16786 "sha1p.32 q0, q0, q0;\n\t"
16787 "sha1su0.32 q0, q0, q0;\n\t"
16788 "sha1su1.32 q0, q0;\n\t"
16790 "sha256h.32 q0, q0, q0;\n\t"
16791 "sha256h2.32 q0, q0, q0;\n\t"
16792 "sha1p.32 q0, q0, q0;\n\t"
16793 "sha256su0.32 q0, q0;\n\t"
16794 "sha256su1.32 q0, q0, q15;\n\t"
16796 "aese.8 q0, q0;\n\t"
16797 "aesd.8 q0, q0;\n\t"
16798 "aesmc.8 q0, q0;\n\t"
16799 "aesimc.8 q0, q0;\n\t"
16801 "vmull.p64 q0, d0, d0;\n\t"
16805 if ac_fn_c_try_compile "$LINENO"; then :
16806 gcry_cv_gcc_inline_asm_aarch32_crypto=yes
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch32_crypto" >&5
16812 $as_echo "$gcry_cv_gcc_inline_asm_aarch32_crypto" >&6; }
16813 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" = "yes" ; then
16815 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH32_CRYPTO 1" >>confdefs.h
16821 # Check whether GCC inline assembler supports AArch64 NEON instructions
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 NEON instructions" >&5
16824 $as_echo_n "checking whether GCC inline assembler supports AArch64 NEON instructions... " >&6; }
16825 if ${gcry_cv_gcc_inline_asm_aarch64_neon+:} false; then :
16826 $as_echo_n "(cached) " >&6
16828 if test "$mpi_cpu_arch" != "aarch64" ; then
16829 gcry_cv_gcc_inline_asm_aarch64_neon="n/a"
16831 gcry_cv_gcc_inline_asm_aarch64_neon=no
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16835 ".cpu generic+simd\n\t"
16836 "mov w0, \#42;\n\t"
16837 "dup v0.8b, w0;\n\t"
16838 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 gcry_cv_gcc_inline_asm_aarch64_neon=yes
16845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_neon" >&5
16849 $as_echo "$gcry_cv_gcc_inline_asm_aarch64_neon" >&6; }
16850 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" = "yes" ; then
16852 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH64_NEON 1" >>confdefs.h
16858 # Check whether GCC inline assembler supports AArch64 Crypto Extension instructions
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC inline assembler supports AArch64 Crypto Extension instructions" >&5
16861 $as_echo_n "checking whether GCC inline assembler supports AArch64 Crypto Extension instructions... " >&6; }
16862 if ${gcry_cv_gcc_inline_asm_aarch64_crypto+:} false; then :
16863 $as_echo_n "(cached) " >&6
16865 if test "$mpi_cpu_arch" != "aarch64" ; then
16866 gcry_cv_gcc_inline_asm_aarch64_crypto="n/a"
16868 gcry_cv_gcc_inline_asm_aarch64_crypto=no
16869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16870 /* end confdefs.h. */
16872 ".cpu generic+simd+crypto\n\t"
16874 "mov w0, \#42;\n\t"
16875 "dup v0.8b, w0;\n\t"
16876 "ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],\#32;\n\t"
16878 "sha1h s0, s0;\n\t"
16879 "sha1c q0, s0, v0.4s;\n\t"
16880 "sha1p q0, s0, v0.4s;\n\t"
16881 "sha1su0 v0.4s, v0.4s, v0.4s;\n\t"
16882 "sha1su1 v0.4s, v0.4s;\n\t"
16884 "sha256h q0, q0, v0.4s;\n\t"
16885 "sha256h2 q0, q0, v0.4s;\n\t"
16886 "sha1p q0, s0, v0.4s;\n\t"
16887 "sha256su0 v0.4s, v0.4s;\n\t"
16888 "sha256su1 v0.4s, v0.4s, v31.4s;\n\t"
16890 "aese v0.16b, v0.16b;\n\t"
16891 "aesd v0.16b, v0.16b;\n\t"
16892 "aesmc v0.16b, v0.16b;\n\t"
16893 "aesimc v0.16b, v0.16b;\n\t"
16895 "pmull v0.1q, v0.1d, v31.1d;\n\t"
16896 "pmull2 v0.1q, v0.2d, v31.2d;\n\t"
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901 gcry_cv_gcc_inline_asm_aarch64_crypto=yes
16903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcry_cv_gcc_inline_asm_aarch64_crypto" >&5
16907 $as_echo "$gcry_cv_gcc_inline_asm_aarch64_crypto" >&6; }
16908 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" = "yes" ; then
16910 $as_echo "#define HAVE_GCC_INLINE_ASM_AARCH64_CRYPTO 1" >>confdefs.h
16915 #######################################
16916 #### Checks for library functions. ####
16917 #######################################
16919 for ac_func in vprintf
16921 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16922 if test "x$ac_cv_func_vprintf" = xyes; then :
16923 cat >>confdefs.h <<_ACEOF
16924 #define HAVE_VPRINTF 1
16927 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16928 if test "x$ac_cv_func__doprnt" = xyes; then :
16930 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16938 # We have replacements for these in src/missing-string.c
16939 for ac_func in stpcpy strcasecmp
16941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16944 cat >>confdefs.h <<_ACEOF
16945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16951 # We have replacements for these in src/g10lib.h
16952 for ac_func in strtoul memmove stricmp atexit raise
16954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16957 cat >>confdefs.h <<_ACEOF
16958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16965 for ac_func in strerror rand mmap getpagesize sysconf waitpid wait4
16967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16968 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16969 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16970 cat >>confdefs.h <<_ACEOF
16971 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16977 for ac_func in gettimeofday getrusage gethrtime clock_gettime syslog
16979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16982 cat >>confdefs.h <<_ACEOF
16983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 for ac_func in syscall fcntl ftruncate flockfile
16991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16993 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16994 cat >>confdefs.h <<_ACEOF
16995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17002 for ac_func in mlock
17004 ac_fn_c_check_func "$LINENO" "mlock" "ac_cv_func_mlock"
17005 if test "x$ac_cv_func_mlock" = xyes; then :
17006 cat >>confdefs.h <<_ACEOF
17007 #define HAVE_MLOCK 1
17013 if test "$ac_cv_func_mlock" = "no"; then
17014 for ac_header in sys/mman.h
17016 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17017 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17018 cat >>confdefs.h <<_ACEOF
17019 #define HAVE_SYS_MMAN_H 1
17026 if test "$ac_cv_header_sys_mman_h" = "yes"; then
17027 # Add librt to LIBS:
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memlk in -lrt" >&5
17029 $as_echo_n "checking for memlk in -lrt... " >&6; }
17030 if ${ac_cv_lib_rt_memlk+:} false; then :
17031 $as_echo_n "(cached) " >&6
17033 ac_check_lib_save_LIBS=$LIBS
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17053 if ac_fn_c_try_link "$LINENO"; then :
17054 ac_cv_lib_rt_memlk=yes
17056 ac_cv_lib_rt_memlk=no
17058 rm -f core conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
17060 LIBS=$ac_check_lib_save_LIBS
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_memlk" >&5
17063 $as_echo "$ac_cv_lib_rt_memlk" >&6; }
17064 if test "x$ac_cv_lib_rt_memlk" = xyes; then :
17065 cat >>confdefs.h <<_ACEOF
17066 #define HAVE_LIBRT 1
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is in sys/mman.h" >&5
17074 $as_echo_n "checking whether mlock is in sys/mman.h... " >&6; }
17075 if ${gnupg_cv_mlock_is_in_sys_mman+:} false; then :
17076 $as_echo_n "(cached) " >&6
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17081 #include <assert.h>
17082 #ifdef HAVE_SYS_MMAN_H
17083 #include <sys/mman.h>
17092 /* glibc defines this for functions which it implements
17093 * to always fail with ENOSYS. Some functions are actually
17094 * named something starting with __ and the normal name
17096 #if defined (__stub_mlock) || defined (__stub___mlock)
17107 if ac_fn_c_try_link "$LINENO"; then :
17108 gnupg_cv_mlock_is_in_sys_mman=yes
17110 gnupg_cv_mlock_is_in_sys_mman=no
17112 rm -f core conftest.err conftest.$ac_objext \
17113 conftest$ac_exeext conftest.$ac_ext
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
17116 $as_echo "$gnupg_cv_mlock_is_in_sys_mman" >&6; }
17117 if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
17119 $as_echo "#define HAVE_MLOCK 1" >>confdefs.h
17124 if test "$ac_cv_func_mlock" = "yes"; then
17125 for ac_func in sysconf getpagesize
17127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17130 cat >>confdefs.h <<_ACEOF
17131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mlock is broken" >&5
17138 $as_echo_n "checking whether mlock is broken... " >&6; }
17139 if ${gnupg_cv_have_broken_mlock+:} false; then :
17140 $as_echo_n "(cached) " >&6
17142 if test "$cross_compiling" = yes; then :
17143 gnupg_cv_have_broken_mlock="assume-no"
17146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17147 /* end confdefs.h. */
17149 #include <stdlib.h>
17150 #include <unistd.h>
17152 #include <sys/mman.h>
17153 #include <sys/types.h>
17162 #if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
17163 pgsize = sysconf (_SC_PAGESIZE);
17164 #elif defined (HAVE_GETPAGESIZE)
17165 pgsize = getpagesize();
17173 pool = malloc( 4096 + pgsize );
17176 pool += (pgsize - ((long int)pool % pgsize));
17178 err = mlock( pool, 4096 );
17179 if( !err || errno == EPERM || errno == EAGAIN)
17180 return 0; /* okay */
17182 return 1; /* hmmm */
17187 if ac_fn_c_try_run "$LINENO"; then :
17188 gnupg_cv_have_broken_mlock="no"
17190 gnupg_cv_have_broken_mlock="yes"
17192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17193 conftest.$ac_objext conftest.beam conftest.$ac_ext
17199 if test "$gnupg_cv_have_broken_mlock" = "yes"; then
17201 $as_echo "#define HAVE_BROKEN_MLOCK 1" >>confdefs.h
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17204 $as_echo "yes" >&6; }
17206 if test "$gnupg_cv_have_broken_mlock" = "no"; then
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17208 $as_echo "no" >&6; }
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming no" >&5
17211 $as_echo "assuming no" >&6; }
17218 # Replacement functions.
17220 ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
17221 if test "x$ac_cv_func_getpid" = xyes; then :
17222 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17225 case " $LIBOBJS " in
17226 *" getpid.$ac_objext "* ) ;;
17227 *) LIBOBJS="$LIBOBJS getpid.$ac_objext"
17233 ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock"
17234 if test "x$ac_cv_func_clock" = xyes; then :
17235 $as_echo "#define HAVE_CLOCK 1" >>confdefs.h
17238 case " $LIBOBJS " in
17239 *" clock.$ac_objext "* ) ;;
17240 *) LIBOBJS="$LIBOBJS clock.$ac_objext"
17250 # Check whether it is necessary to link against libdl.
17253 if test "$use_hmac_binary_check" = yes ; then
17254 _gcry_save_libs="$LIBS"
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17257 $as_echo_n "checking for library containing dlopen... " >&6; }
17258 if ${ac_cv_search_dlopen+:} false; then :
17259 $as_echo_n "(cached) " >&6
17261 ac_func_search_save_LIBS=$LIBS
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17265 /* Override any GCC internal prototype to avoid an error.
17266 Use char because int might match the return type of a GCC
17267 builtin and then its argument prototype would still apply. */
17280 for ac_lib in '' c dl; do
17281 if test -z "$ac_lib"; then
17282 ac_res="none required"
17285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17287 if ac_fn_c_try_link "$LINENO"; then :
17288 ac_cv_search_dlopen=$ac_res
17290 rm -f core conftest.err conftest.$ac_objext \
17292 if ${ac_cv_search_dlopen+:} false; then :
17296 if ${ac_cv_search_dlopen+:} false; then :
17299 ac_cv_search_dlopen=no
17301 rm conftest.$ac_ext
17302 LIBS=$ac_func_search_save_LIBS
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17305 $as_echo "$ac_cv_search_dlopen" >&6; }
17306 ac_res=$ac_cv_search_dlopen
17307 if test "$ac_res" != no; then :
17308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17313 LIBS="$_gcry_save_libs"
17314 LIBGCRYPT_CONFIG_LIBS="${LIBGCRYPT_CONFIG_LIBS} ${DL_LIBS}"
17320 # Check whether we can use Linux capabilities as requested.
17322 if test "$use_capabilities" = "yes" ; then
17323 use_capabilities=no
17324 for ac_header in sys/capability.h
17326 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
17327 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
17328 cat >>confdefs.h <<_ACEOF
17329 #define HAVE_SYS_CAPABILITY_H 1
17336 if test "$ac_cv_header_sys_capability_h" = "yes" ; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
17338 $as_echo_n "checking for cap_init in -lcap... " >&6; }
17339 if ${ac_cv_lib_cap_cap_init+:} false; then :
17340 $as_echo_n "(cached) " >&6
17342 ac_check_lib_save_LIBS=$LIBS
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17347 /* Override any GCC internal prototype to avoid an error.
17348 Use char because int might match the return type of a GCC
17349 builtin and then its argument prototype would still apply. */
17357 return cap_init ();
17362 if ac_fn_c_try_link "$LINENO"; then :
17363 ac_cv_lib_cap_cap_init=yes
17365 ac_cv_lib_cap_cap_init=no
17367 rm -f core conftest.err conftest.$ac_objext \
17368 conftest$ac_exeext conftest.$ac_ext
17369 LIBS=$ac_check_lib_save_LIBS
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
17372 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
17373 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
17377 if test "$ac_cv_lib_cap_cap_init" = "yes"; then
17379 $as_echo "#define USE_CAPABILITIES 1" >>confdefs.h
17382 use_capabilities=yes
17385 if test "$use_capabilities" = "no" ; then
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
17388 *** The use of capabilities on this system is not possible.
17389 *** You need a recent Linux kernel and some patches:
17390 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
17391 *** fcap-module-990613.tar.gz (kernel module)
17392 *** libcap-1.92.tar.gz (user mode library and utilities)
17393 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
17394 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
17396 $as_echo "$as_me: WARNING:
17398 *** The use of capabilities on this system is not possible.
17399 *** You need a recent Linux kernel and some patches:
17400 *** fcaps-2.2.9-990610.patch (kernel patch for 2.2.9)
17401 *** fcap-module-990613.tar.gz (kernel module)
17402 *** libcap-1.92.tar.gz (user mode library and utilities)
17403 *** And you have to configure the kernel with CONFIG_VFS_CAP_PLUGIN
17404 *** set (filesystems menu). Be warned: This code is *really* ALPHA.
17409 # Check whether a random device is available.
17410 if test "$try_dev_random" = yes ; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
17412 $as_echo_n "checking for random device... " >&6; }
17413 if ${ac_cv_have_dev_random+:} false; then :
17414 $as_echo_n "(cached) " >&6
17416 if test -r "$NAME_OF_DEV_RANDOM" && test -r "$NAME_OF_DEV_URANDOM" ; then
17417 ac_cv_have_dev_random=yes; else ac_cv_have_dev_random=no; fi
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dev_random" >&5
17420 $as_echo "$ac_cv_have_dev_random" >&6; }
17421 if test "$ac_cv_have_dev_random" = yes; then
17423 $as_echo "#define HAVE_DEV_RANDOM 1" >>confdefs.h
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for random device" >&5
17428 $as_echo_n "checking for random device... " >&6; }
17429 ac_cv_have_dev_random=no
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: has been disabled" >&5
17431 $as_echo "has been disabled" >&6; }
17434 # Figure out the random modules for this configuration.
17435 if test "$random" = "default"; then
17437 # Select default value.
17438 if test "$ac_cv_have_dev_random" = yes; then
17439 # Try Linuxish random device.
17440 random_modules="linux"
17444 # WindowsCE random device.
17445 random_modules="w32ce"
17447 *-*-mingw32*|*-*-cygwin*)
17448 # Windows random device.
17449 random_modules="w32"
17452 # Build everything, allow to select at runtime.
17453 random_modules="$auto_random_modules"
17458 if test "$random" = "auto"; then
17459 # Build everything, allow to select at runtime.
17460 random_modules="$auto_random_modules"
17462 random_modules="$random"
17470 if test no = "yes"; then
17472 $as_echo "#define IS_DEVELOPMENT_VERSION 1" >>confdefs.h
17477 if test x$cross_compiling = xyes; then
17478 CROSS_COMPILING_TRUE=
17479 CROSS_COMPILING_FALSE='#'
17481 CROSS_COMPILING_TRUE='#'
17482 CROSS_COMPILING_FALSE=
17487 # This is handy for debugging so the compiler doesn't rearrange
17488 # things and eliminate variables.
17489 # Check whether --enable-optimization was given.
17490 if test "${enable_optimization+set}" = set; then :
17491 enableval=$enable_optimization; if test $enableval = no ; then
17492 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//'`
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cc features" >&5
17498 $as_echo "$as_me: checking for cc features" >&6;}
17499 # CFLAGS mangling when using gcc.
17500 if test "$GCC" = yes; then
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -fno-delete-null-pointer-checks" >&5
17502 $as_echo_n "checking if gcc supports -fno-delete-null-pointer-checks... " >&6; }
17503 _gcc_cflags_save=$CFLAGS
17504 CFLAGS="-fno-delete-null-pointer-checks"
17505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17506 /* end confdefs.h. */
17516 if ac_fn_c_try_compile "$LINENO"; then :
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17523 $as_echo "$_gcc_wopt" >&6; }
17524 CFLAGS=$_gcc_cflags_save;
17525 if test x"$_gcc_wopt" = xyes ; then
17526 CFLAGS="$CFLAGS -fno-delete-null-pointer-checks"
17529 CFLAGS="$CFLAGS -Wall"
17530 if test "$USE_MAINTAINER_MODE" = "yes"; then
17531 CFLAGS="$CFLAGS -Wcast-align -Wshadow -Wstrict-prototypes"
17532 CFLAGS="$CFLAGS -Wformat -Wno-format-y2k -Wformat-security"
17534 # If -Wno-missing-field-initializers is supported we can enable a
17535 # a bunch of really useful warnings.
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wno-missing-field-initializers" >&5
17537 $as_echo_n "checking if gcc supports -Wno-missing-field-initializers... " >&6; }
17538 _gcc_cflags_save=$CFLAGS
17539 CFLAGS="-Wno-missing-field-initializers"
17540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17541 /* end confdefs.h. */
17551 if ac_fn_c_try_compile "$LINENO"; then :
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17558 $as_echo "$_gcc_wopt" >&6; }
17559 CFLAGS=$_gcc_cflags_save;
17560 if test x"$_gcc_wopt" = xyes ; then
17561 CFLAGS="$CFLAGS -W -Wextra -Wbad-function-cast"
17562 CFLAGS="$CFLAGS -Wwrite-strings"
17563 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
17564 CFLAGS="$CFLAGS -Wno-missing-field-initializers"
17565 CFLAGS="$CFLAGS -Wno-sign-compare"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc supports -Wpointer-arith" >&5
17569 $as_echo_n "checking if gcc supports -Wpointer-arith... " >&6; }
17570 _gcc_cflags_save=$CFLAGS
17571 CFLAGS="-Wpointer-arith"
17572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573 /* end confdefs.h. */
17583 if ac_fn_c_try_compile "$LINENO"; then :
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_gcc_wopt" >&5
17590 $as_echo "$_gcc_wopt" >&6; }
17591 CFLAGS=$_gcc_cflags_save;
17592 if test x"$_gcc_wopt" = xyes ; then
17593 CFLAGS="$CFLAGS -Wpointer-arith"
17598 # Check whether as(1) supports a noeexecstack feature. This test
17599 # includes an override option.
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether non excutable stack support is requested" >&5
17605 $as_echo_n "checking whether non excutable stack support is requested... " >&6; }
17606 # Check whether --enable-noexecstack was given.
17607 if test "${enable_noexecstack+set}" = set; then :
17608 enableval=$enable_noexecstack; noexecstack_support=$enableval
17610 noexecstack_support=yes
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $noexecstack_support" >&5
17614 $as_echo "$noexecstack_support" >&6; }
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
17617 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
17618 if ${cl_cv_as_noexecstack+:} false; then :
17619 $as_echo_n "(cached) " >&6
17621 cat > conftest.c <<EOF
17624 if { ac_try='${CC} $CFLAGS $CPPFLAGS
17625 -S -o conftest.s conftest.c >/dev/null'
17626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627 (eval $ac_try) 2>&5
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; } \
17631 && grep .note.GNU-stack conftest.s >/dev/null \
17632 && { ac_try='${CCAS} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
17633 -c -o conftest.o conftest.s >/dev/null'
17634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17635 (eval $ac_try) 2>&5
17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638 test $ac_status = 0; }; }
17640 cl_cv_as_noexecstack=yes
17642 cl_cv_as_noexecstack=no
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
17647 $as_echo "$cl_cv_as_noexecstack" >&6; }
17648 if test "$noexecstack_support" = yes -a "$cl_cv_as_noexecstack" = yes; then
17649 NOEXECSTACK_FLAGS="-Wa,--noexecstack"
17663 ac_config_commands="$ac_config_commands gcrypt-conf"
17666 #####################
17667 #### Conclusion. ####
17668 #####################
17670 # Check that requested feature can actually be used and define
17671 # ENABLE_foo_SUPPORT macros.
17673 if test x"$aesnisupport" = xyes ; then
17674 if test "$gcry_cv_gcc_inline_asm_ssse3" != "yes" ; then
17675 aesnisupport="no (unsupported by compiler)"
17678 if test x"$pclmulsupport" = xyes ; then
17679 if test "$gcry_cv_gcc_inline_asm_pclmul" != "yes" ; then
17680 pclmulsupport="no (unsupported by compiler)"
17683 if test x"$sse41support" = xyes ; then
17684 if test "$gcry_cv_gcc_inline_asm_sse41" != "yes" ; then
17685 sse41support="no (unsupported by compiler)"
17688 if test x"$avxsupport" = xyes ; then
17689 if test "$gcry_cv_gcc_inline_asm_avx" != "yes" ; then
17690 avxsupport="no (unsupported by compiler)"
17693 if test x"$avx2support" = xyes ; then
17694 if test "$gcry_cv_gcc_inline_asm_avx2" != "yes" ; then
17695 avx2support="no (unsupported by compiler)"
17698 if test x"$neonsupport" = xyes ; then
17699 if test "$gcry_cv_gcc_inline_asm_neon" != "yes" ; then
17700 if test "$gcry_cv_gcc_inline_asm_aarch64_neon" != "yes" ; then
17701 neonsupport="no (unsupported by compiler)"
17705 if test x"$armcryptosupport" = xyes ; then
17706 if test "$gcry_cv_gcc_inline_asm_aarch32_crypto" != "yes" ; then
17707 if test "$gcry_cv_gcc_inline_asm_aarch64_crypto" != "yes" ; then
17708 neonsupport="no (unsupported by compiler)"
17713 if test x"$aesnisupport" = xyes ; then
17715 $as_echo "#define ENABLE_AESNI_SUPPORT 1" >>confdefs.h
17718 if test x"$pclmulsupport" = xyes ; then
17720 $as_echo "#define ENABLE_PCLMUL_SUPPORT 1" >>confdefs.h
17723 if test x"$sse41support" = xyes ; then
17725 $as_echo "#define ENABLE_SSE41_SUPPORT 1" >>confdefs.h
17728 if test x"$avxsupport" = xyes ; then
17730 $as_echo "#define ENABLE_AVX_SUPPORT 1" >>confdefs.h
17733 if test x"$avx2support" = xyes ; then
17735 $as_echo "#define ENABLE_AVX2_SUPPORT 1" >>confdefs.h
17738 if test x"$neonsupport" = xyes ; then
17740 $as_echo "#define ENABLE_NEON_SUPPORT 1" >>confdefs.h
17743 if test x"$armcryptosupport" = xyes ; then
17745 $as_echo "#define ENABLE_ARM_CRYPTO_SUPPORT 1" >>confdefs.h
17748 if test x"$jentsupport" = xyes ; then
17750 $as_echo "#define ENABLE_JENT_SUPPORT 1" >>confdefs.h
17753 if test x"$padlocksupport" = xyes ; then
17755 $as_echo "#define ENABLE_PADLOCK_SUPPORT 1" >>confdefs.h
17758 if test x"$drngsupport" = xyes ; then
17760 $as_echo "#define ENABLE_DRNG_SUPPORT 1" >>confdefs.h
17765 # Define conditional sources and config.h symbols depending on the
17766 # selected ciphers, pubkey-ciphers, digests, kdfs, and random modules.
17770 list=$enabled_ciphers
17774 if test "x$name" = "x$n"; then
17779 if test "$found" = "1"; then
17780 GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour.lo"
17782 $as_echo "#define USE_ARCFOUR 1" >>confdefs.h
17787 # Build with the assembly implementation
17788 GCRYPT_CIPHERS="$GCRYPT_CIPHERS arcfour-amd64.lo"
17795 list=$enabled_ciphers
17799 if test "x$name" = "x$n"; then
17804 if test "$found" = "1" ; then
17805 GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish.lo"
17807 $as_echo "#define USE_BLOWFISH 1" >>confdefs.h
17812 # Build with the assembly implementation
17813 GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish-amd64.lo"
17816 # Build with the assembly implementation
17817 GCRYPT_CIPHERS="$GCRYPT_CIPHERS blowfish-arm.lo"
17824 list=$enabled_ciphers
17828 if test "x$name" = "x$n"; then
17833 if test "$found" = "1" ; then
17834 GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5.lo"
17836 $as_echo "#define USE_CAST5 1" >>confdefs.h
17841 # Build with the assembly implementation
17842 GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5-amd64.lo"
17845 # Build with the assembly implementation
17846 GCRYPT_CIPHERS="$GCRYPT_CIPHERS cast5-arm.lo"
17853 list=$enabled_ciphers
17857 if test "x$name" = "x$n"; then
17862 if test "$found" = "1" ; then
17863 GCRYPT_CIPHERS="$GCRYPT_CIPHERS des.lo"
17865 $as_echo "#define USE_DES 1" >>confdefs.h
17870 # Build with the assembly implementation
17871 GCRYPT_CIPHERS="$GCRYPT_CIPHERS des-amd64.lo"
17878 list=$enabled_ciphers
17882 if test "x$name" = "x$n"; then
17887 if test "$found" = "1" ; then
17888 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael.lo"
17890 $as_echo "#define USE_AES 1" >>confdefs.h
17895 # Build with the assembly implementation
17896 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-amd64.lo"
17898 # Build with the SSSE3 implementation
17899 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ssse3-amd64.lo"
17900 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-ssse3-amd64-asm.lo"
17903 # Build with the assembly implementation
17904 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-arm.lo"
17906 # Build with the ARMv8/AArch32 CE implementation
17907 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo"
17908 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch32-ce.lo"
17911 # Build with the assembly implementation
17912 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-aarch64.lo"
17914 # Build with the ARMv8/AArch64 CE implementation
17915 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-ce.lo"
17916 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-armv8-aarch64-ce.lo"
17920 case "$mpi_cpu_arch" in
17922 # Build with the AES-NI implementation
17923 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-aesni.lo"
17925 # Build with the Padlock implementation
17926 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rijndael-padlock.lo"
17933 list=$enabled_ciphers
17937 if test "x$name" = "x$n"; then
17942 if test "$found" = "1" ; then
17943 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish.lo"
17945 $as_echo "#define USE_TWOFISH 1" >>confdefs.h
17950 # Build with the assembly implementation
17951 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-amd64.lo"
17953 if test x"$avx2support" = xyes ; then
17954 # Build with the AVX2 implementation
17955 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-avx2-amd64.lo"
17959 # Build with the assembly implementation
17960 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-arm.lo"
17963 # Build with the assembly implementation
17964 GCRYPT_CIPHERS="$GCRYPT_CIPHERS twofish-aarch64.lo"
17971 list=$enabled_ciphers
17975 if test "x$name" = "x$n"; then
17980 if test "$found" = "1" ; then
17981 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent.lo"
17983 $as_echo "#define USE_SERPENT 1" >>confdefs.h
17988 # Build with the SSE2 implementation
17989 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-sse2-amd64.lo"
17993 if test x"$avx2support" = xyes ; then
17994 # Build with the AVX2 implementation
17995 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-avx2-amd64.lo"
17998 if test x"$neonsupport" = xyes ; then
17999 # Build with the NEON implementation
18000 GCRYPT_CIPHERS="$GCRYPT_CIPHERS serpent-armv7-neon.lo"
18006 list=$enabled_ciphers
18010 if test "x$name" = "x$n"; then
18015 if test "$found" = "1" ; then
18016 GCRYPT_CIPHERS="$GCRYPT_CIPHERS rfc2268.lo"
18018 $as_echo "#define USE_RFC2268 1" >>confdefs.h
18024 list=$enabled_ciphers
18028 if test "x$name" = "x$n"; then
18033 if test "$found" = "1" ; then
18034 GCRYPT_CIPHERS="$GCRYPT_CIPHERS seed.lo"
18036 $as_echo "#define USE_SEED 1" >>confdefs.h
18042 list=$enabled_ciphers
18046 if test "x$name" = "x$n"; then
18051 if test "$found" = "1" ; then
18052 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia.lo camellia-glue.lo"
18054 $as_echo "#define USE_CAMELLIA 1" >>confdefs.h
18059 # Build with the assembly implementation
18060 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-arm.lo"
18063 # Build with the assembly implementation
18064 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aarch64.lo"
18068 if test x"$avxsupport" = xyes ; then
18069 if test x"$aesnisupport" = xyes ; then
18070 # Build with the AES-NI/AVX implementation
18071 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aesni-avx-amd64.lo"
18075 if test x"$avx2support" = xyes ; then
18076 if test x"$aesnisupport" = xyes ; then
18077 # Build with the AES-NI/AVX2 implementation
18078 GCRYPT_CIPHERS="$GCRYPT_CIPHERS camellia-aesni-avx2-amd64.lo"
18085 list=$enabled_ciphers
18089 if test "x$name" = "x$n"; then
18094 if test "$found" = "1" ; then
18095 GCRYPT_CIPHERS="$GCRYPT_CIPHERS idea.lo"
18097 $as_echo "#define USE_IDEA 1" >>confdefs.h
18103 list=$enabled_ciphers
18107 if test "x$name" = "x$n"; then
18112 if test "$found" = "1" ; then
18113 GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20.lo"
18115 $as_echo "#define USE_SALSA20 1" >>confdefs.h
18120 # Build with the assembly implementation
18121 GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20-amd64.lo"
18125 if test x"$neonsupport" = xyes ; then
18126 # Build with the NEON implementation
18127 GCRYPT_CIPHERS="$GCRYPT_CIPHERS salsa20-armv7-neon.lo"
18133 list=$enabled_ciphers
18137 if test "x$name" = "x$n"; then
18142 if test "$found" = "1" ; then
18143 GCRYPT_CIPHERS="$GCRYPT_CIPHERS gost28147.lo"
18145 $as_echo "#define USE_GOST28147 1" >>confdefs.h
18151 list=$enabled_ciphers
18155 if test "x$name" = "x$n"; then
18160 if test "$found" = "1" ; then
18161 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20.lo"
18163 $as_echo "#define USE_CHACHA20 1" >>confdefs.h
18168 # Build with the assembly implementation
18169 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-sse2-amd64.lo"
18170 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-ssse3-amd64.lo"
18171 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-avx2-amd64.lo"
18175 if test x"$neonsupport" = xyes ; then
18176 # Build with the NEON implementation
18177 GCRYPT_CIPHERS="$GCRYPT_CIPHERS chacha20-armv7-neon.lo"
18183 # Build with the assembly implementation
18184 GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-sse2-amd64.lo"
18185 GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-avx2-amd64.lo"
18189 if test x"$neonsupport" = xyes ; then
18190 # Build with the NEON implementation
18191 GCRYPT_CIPHERS="$GCRYPT_CIPHERS poly1305-armv7-neon.lo"
18196 list=$enabled_pubkey_ciphers
18200 if test "x$name" = "x$n"; then
18205 if test "$found" = "1" ; then
18206 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS dsa.lo"
18208 $as_echo "#define USE_DSA 1" >>confdefs.h
18214 list=$enabled_pubkey_ciphers
18218 if test "x$name" = "x$n"; then
18223 if test "$found" = "1" ; then
18224 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS rsa.lo"
18226 $as_echo "#define USE_RSA 1" >>confdefs.h
18232 list=$enabled_pubkey_ciphers
18236 if test "x$name" = "x$n"; then
18241 if test "$found" = "1" ; then
18242 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS elgamal.lo"
18244 $as_echo "#define USE_ELGAMAL 1" >>confdefs.h
18250 list=$enabled_pubkey_ciphers
18254 if test "x$name" = "x$n"; then
18259 if test "$found" = "1" ; then
18260 GCRYPT_PUBKEY_CIPHERS="$GCRYPT_PUBKEY_CIPHERS \
18261 ecc.lo ecc-curves.lo ecc-misc.lo \
18262 ecc-ecdsa.lo ecc-eddsa.lo ecc-gost.lo"
18264 $as_echo "#define USE_ECC 1" >>confdefs.h
18270 list=$enabled_digests
18274 if test "x$name" = "x$n"; then
18279 if test "$found" = "1" ; then
18280 GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc.lo"
18282 $as_echo "#define USE_CRC 1" >>confdefs.h
18286 i?86-*-* | x86_64-*-*)
18287 # Build with the assembly implementation
18288 GCRYPT_DIGESTS="$GCRYPT_DIGESTS crc-intel-pclmul.lo"
18295 list=$enabled_digests
18299 if test "x$name" = "x$n"; then
18304 if test "$found" = "1" ; then
18305 # GOST R 34.11-94 internally uses GOST 28147-89
18308 list=$enabled_ciphers
18312 if test "x$name" = "x$n"; then
18317 if test "$found" = "1" ; then
18318 GCRYPT_DIGESTS="$GCRYPT_DIGESTS gostr3411-94.lo"
18320 $as_echo "#define USE_GOST_R_3411_94 1" >>confdefs.h
18327 list=$enabled_digests
18331 if test "x$name" = "x$n"; then
18336 if test "$found" = "1" ; then
18337 GCRYPT_DIGESTS="$GCRYPT_DIGESTS stribog.lo"
18339 $as_echo "#define USE_GOST_R_3411_12 1" >>confdefs.h
18345 list=$enabled_digests
18349 if test "x$name" = "x$n"; then
18354 if test "$found" = "1" ; then
18355 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md2.lo"
18357 $as_echo "#define USE_MD2 1" >>confdefs.h
18363 list=$enabled_digests
18367 if test "x$name" = "x$n"; then
18372 if test "$found" = "1" ; then
18373 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md4.lo"
18375 $as_echo "#define USE_MD4 1" >>confdefs.h
18381 list=$enabled_digests
18385 if test "x$name" = "x$n"; then
18390 if test "$found" = "1" ; then
18391 GCRYPT_DIGESTS="$GCRYPT_DIGESTS md5.lo"
18393 $as_echo "#define USE_MD5 1" >>confdefs.h
18399 list=$enabled_digests
18403 if test "x$name" = "x$n"; then
18408 if test "$found" = "1" ; then
18409 GCRYPT_DIGESTS="$GCRYPT_DIGESTS rmd160.lo"
18411 $as_echo "#define USE_RMD160 1" >>confdefs.h
18417 list=$enabled_digests
18421 if test "x$name" = "x$n"; then
18426 if test "$found" = "1" ; then
18427 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256.lo"
18429 $as_echo "#define USE_SHA256 1" >>confdefs.h
18434 # Build with the assembly implementation
18435 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-ssse3-amd64.lo"
18436 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-avx-amd64.lo"
18437 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-avx2-bmi2-amd64.lo"
18440 # Build with the assembly implementation
18441 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch32-ce.lo"
18444 # Build with the assembly implementation
18445 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha256-armv8-aarch64-ce.lo"
18452 list=$enabled_digests
18456 if test "x$name" = "x$n"; then
18461 if test "$found" = "1" ; then
18462 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512.lo"
18464 $as_echo "#define USE_SHA512 1" >>confdefs.h
18469 # Build with the assembly implementation
18470 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-ssse3-amd64.lo"
18471 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-avx-amd64.lo"
18472 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-avx2-bmi2-amd64.lo"
18475 # Build with the assembly implementation
18476 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-arm.lo"
18480 if test x"$neonsupport" = xyes ; then
18481 # Build with the NEON implementation
18482 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha512-armv7-neon.lo"
18488 list=$enabled_digests
18492 if test "x$name" = "x$n"; then
18497 if test "$found" = "1" ; then
18498 GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak.lo"
18500 $as_echo "#define USE_SHA3 1" >>confdefs.h
18505 # Build with the assembly implementation
18510 if test x"$neonsupport" = xyes ; then
18511 # Build with the NEON implementation
18512 GCRYPT_DIGESTS="$GCRYPT_DIGESTS keccak-armv7-neon.lo"
18518 list=$enabled_digests
18522 if test "x$name" = "x$n"; then
18527 if test "$found" = "1" ; then
18528 GCRYPT_DIGESTS="$GCRYPT_DIGESTS tiger.lo"
18530 $as_echo "#define USE_TIGER 1" >>confdefs.h
18536 list=$enabled_digests
18540 if test "x$name" = "x$n"; then
18545 if test "$found" = "1" ; then
18546 GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool.lo"
18548 $as_echo "#define USE_WHIRLPOOL 1" >>confdefs.h
18553 # Build with the assembly implementation
18554 GCRYPT_DIGESTS="$GCRYPT_DIGESTS whirlpool-sse2-amd64.lo"
18561 list=$enabled_digests
18565 if test "x$name" = "x$n"; then
18570 if test "$found" = "1" ; then
18571 GCRYPT_DIGESTS="$GCRYPT_DIGESTS blake2.lo"
18573 $as_echo "#define USE_BLAKE2 1" >>confdefs.h
18577 # SHA-1 needs to be included always for example because it is used by
18579 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1.lo"
18581 $as_echo "#define USE_SHA1 1" >>confdefs.h
18586 # Build with the assembly implementation
18587 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-ssse3-amd64.lo"
18588 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-avx-amd64.lo"
18589 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-avx-bmi2-amd64.lo"
18592 # Build with the assembly implementation
18593 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv7-neon.lo"
18594 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv8-aarch32-ce.lo"
18597 # Build with the assembly implementation
18598 GCRYPT_DIGESTS="$GCRYPT_DIGESTS sha1-armv8-aarch64-ce.lo"
18608 if test "x$name" = "x$n"; then
18613 if test "$found" = "1" ; then
18614 GCRYPT_KDFS="$GCRYPT_KDFS scrypt.lo"
18616 $as_echo "#define USE_SCRYPT 1" >>confdefs.h
18622 list=$random_modules
18626 if test "x$name" = "x$n"; then
18631 if test "$found" = "1" ; then
18632 GCRYPT_RANDOM="$GCRYPT_RANDOM rndlinux.lo"
18634 $as_echo "#define USE_RNDLINUX 1" >>confdefs.h
18640 list=$random_modules
18644 if test "x$name" = "x$n"; then
18649 if test "$found" = "1" ; then
18650 GCRYPT_RANDOM="$GCRYPT_RANDOM rndunix.lo"
18652 $as_echo "#define USE_RNDUNIX 1" >>confdefs.h
18658 list=$random_modules
18662 if test "x$name" = "x$n"; then
18667 if test "$found" = "1" ; then
18668 GCRYPT_RANDOM="$GCRYPT_RANDOM rndegd.lo"
18670 $as_echo "#define USE_RNDEGD 1" >>confdefs.h
18676 list=$random_modules
18680 if test "x$name" = "x$n"; then
18685 if test "$found" = "1" ; then
18686 GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32.lo"
18688 $as_echo "#define USE_RNDW32 1" >>confdefs.h
18694 list=$random_modules
18698 if test "x$name" = "x$n"; then
18703 if test "$found" = "1" ; then
18704 GCRYPT_RANDOM="$GCRYPT_RANDOM rndw32ce.lo"
18706 $as_echo "#define USE_RNDW32CE 1" >>confdefs.h
18716 LIBGCRYPT_CIPHERS=$enabled_ciphers
18718 LIBGCRYPT_PUBKEY_CIPHERS=$enabled_pubkey_ciphers
18720 LIBGCRYPT_DIGESTS=$enabled_digests
18723 # For printing the configuration we need a colon separated list of
18725 tmp=`echo "$enabled_ciphers" | tr ' ' : `
18727 cat >>confdefs.h <<_ACEOF
18728 #define LIBGCRYPT_CIPHERS "$tmp"
18731 tmp=`echo "$enabled_pubkey_ciphers" | tr ' ' : `
18733 cat >>confdefs.h <<_ACEOF
18734 #define LIBGCRYPT_PUBKEY_CIPHERS "$tmp"
18737 tmp=`echo "$enabled_digests" | tr ' ' : `
18739 cat >>confdefs.h <<_ACEOF
18740 #define LIBGCRYPT_DIGESTS "$tmp"
18743 tmp=`echo "$enabled_kdfs" | tr ' ' : `
18745 cat >>confdefs.h <<_ACEOF
18746 #define LIBGCRYPT_KDFS "$tmp"
18752 # Define conditional sources depending on the used hardware platform.
18753 # Note that all possible modules must also be listed in
18754 # src/Makefile.am (EXTRA_libgcrypt_la_SOURCES).
18756 GCRYPT_HWF_MODULES=
18757 case "$mpi_cpu_arch" in
18760 $as_echo "#define HAVE_CPU_ARCH_X86 1" >>confdefs.h
18762 GCRYPT_HWF_MODULES="hwf-x86.lo"
18766 $as_echo "#define HAVE_CPU_ARCH_ALPHA 1" >>confdefs.h
18771 $as_echo "#define HAVE_CPU_ARCH_SPARC 1" >>confdefs.h
18776 $as_echo "#define HAVE_CPU_ARCH_MIPS 1" >>confdefs.h
18781 $as_echo "#define HAVE_CPU_ARCH_M68K 1" >>confdefs.h
18786 $as_echo "#define HAVE_CPU_ARCH_PPC 1" >>confdefs.h
18791 $as_echo "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
18793 GCRYPT_HWF_MODULES="hwf-arm.lo"
18797 $as_echo "#define HAVE_CPU_ARCH_ARM 1" >>confdefs.h
18799 GCRYPT_HWF_MODULES="hwf-arm.lo"
18806 # Option to disable building of doc file
18809 # Check whether --enable-doc was given.
18810 if test "${enable_doc+set}" = set; then :
18811 enableval=$enable_doc; build_doc=$enableval
18816 if test "x$build_doc" != xno; then
18818 BUILD_DOC_FALSE='#'
18827 # Provide information about the build.
18829 BUILD_REVISION="5600d2d"
18832 cat >>confdefs.h <<_ACEOF
18833 #define BUILD_REVISION "$BUILD_REVISION"
18837 BUILD_FILEVERSION=`echo "$VERSION" | sed 's/\([0-9.]*\).*/\1./;s/\./,/g'`
18838 BUILD_FILEVERSION="${BUILD_FILEVERSION}22016"
18841 # Check whether --enable-build-timestamp was given.
18842 if test "${enable_build_timestamp+set}" = set; then :
18843 enableval=$enable_build_timestamp; if test "$enableval" = "yes"; then
18844 BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
18846 BUILD_TIMESTAMP="$enableval"
18849 BUILD_TIMESTAMP="<none>"
18854 cat >>confdefs.h <<_ACEOF
18855 #define BUILD_TIMESTAMP "$BUILD_TIMESTAMP"
18860 # And create the files.
18861 ac_config_files="$ac_config_files Makefile m4/Makefile compat/Makefile mpi/Makefile cipher/Makefile random/Makefile doc/Makefile src/Makefile src/gcrypt.h src/libgcrypt-config src/versioninfo.rc tests/Makefile"
18863 ac_config_files="$ac_config_files tests/hashtest-256g"
18865 ac_config_files="$ac_config_files tests/basic-disable-all-hwf"
18867 cat >confcache <<\_ACEOF
18868 # This file is a shell script that caches the results of configure
18869 # tests run on this system so they can be shared between configure
18870 # scripts and configure runs, see configure's option --config-cache.
18871 # It is not useful on other systems. If it contains results you don't
18872 # want to keep, you may remove or edit it.
18874 # config.status only pays attention to the cache file if you give it
18875 # the --recheck option to rerun configure.
18877 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18878 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18879 # following values.
18883 # The following way of writing the cache mishandles newlines in values,
18884 # but we know of no workaround that is simple, portable, and efficient.
18885 # So, we kill variables containing newlines.
18886 # Ultrix sh set writes to stderr and can't be redirected directly,
18887 # and sets the high bit in the cache file unless we assign to the vars.
18889 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18890 eval ac_val=\$$ac_var
18894 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18895 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18898 _ | IFS | as_nl) ;; #(
18899 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18900 *) { eval $ac_var=; unset $ac_var;} ;;
18906 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18907 *${as_nl}ac_space=\ *)
18908 # `set' does not quote correctly, so add quotes: double-quote
18909 # substitution turns \\\\ into \\, and sed turns \\ into \.
18912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18915 # `set' quotes correctly as required by POSIX, so do not add quotes.
18916 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18927 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18929 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18930 if test -w "$cache_file"; then
18931 if test "x$cache_file" != "x/dev/null"; then
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18933 $as_echo "$as_me: updating cache $cache_file" >&6;}
18934 if test ! -f "$cache_file" || test -h "$cache_file"; then
18935 cat confcache >"$cache_file"
18937 case $cache_file in #(
18939 mv -f confcache "$cache_file"$$ &&
18940 mv -f "$cache_file"$$ "$cache_file" ;; #(
18942 mv -f confcache "$cache_file" ;;
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18948 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18953 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18954 # Let make expand exec_prefix.
18955 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18957 DEFS=-DHAVE_CONFIG_H
18962 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18963 # 1. Remove the extension, and $U if already installed.
18964 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18965 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18966 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18967 # will be set to the directory where LIBOBJS objects are built.
18968 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18969 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18971 LIBOBJS=$ac_libobjs
18973 LTLIBOBJS=$ac_ltlibobjs
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18977 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18978 if test -n "$am_sleep_pid"; then
18979 # Hide warnings about reused PIDs.
18980 wait $am_sleep_pid 2>/dev/null
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18983 $as_echo "done" >&6; }
18984 if test -n "$EXEEXT"; then
18986 am__EXEEXT_FALSE='#'
18988 am__EXEEXT_TRUE='#'
18992 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18993 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18996 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18997 as_fn_error $? "conditional \"AMDEP\" was never defined.
18998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19000 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19001 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19004 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19005 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19008 if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
19009 as_fn_error $? "conditional \"HAVE_W32_SYSTEM\" was never defined.
19010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19012 if test -z "${HAVE_W32CE_SYSTEM_TRUE}" && test -z "${HAVE_W32CE_SYSTEM_FALSE}"; then
19013 as_fn_error $? "conditional \"HAVE_W32CE_SYSTEM\" was never defined.
19014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19017 if test -z "${USE_RANDOM_DAEMON_TRUE}" && test -z "${USE_RANDOM_DAEMON_FALSE}"; then
19018 as_fn_error $? "conditional \"USE_RANDOM_DAEMON\" was never defined.
19019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19021 if test -z "${ENABLE_O_FLAG_MUNGING_TRUE}" && test -z "${ENABLE_O_FLAG_MUNGING_FALSE}"; then
19022 as_fn_error $? "conditional \"ENABLE_O_FLAG_MUNGING\" was never defined.
19023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19025 if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
19026 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
19027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19029 if test -z "${MPI_MOD_ASM_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_ADD1_FALSE}"; then
19030 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_ADD1\" was never defined.
19031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19033 if test -z "${MPI_MOD_ASM_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_SUB1_FALSE}"; then
19034 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_SUB1\" was never defined.
19035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19037 if test -z "${MPI_MOD_ASM_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL1_FALSE}"; then
19038 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL1\" was never defined.
19039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19041 if test -z "${MPI_MOD_ASM_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL2_FALSE}"; then
19042 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL2\" was never defined.
19043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19045 if test -z "${MPI_MOD_ASM_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_MUL3_FALSE}"; then
19046 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_MUL3\" was never defined.
19047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19049 if test -z "${MPI_MOD_ASM_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_LSHIFT_FALSE}"; then
19050 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_LSHIFT\" was never defined.
19051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19053 if test -z "${MPI_MOD_ASM_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_ASM_MPIH_RSHIFT_FALSE}"; then
19054 as_fn_error $? "conditional \"MPI_MOD_ASM_MPIH_RSHIFT\" was never defined.
19055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19057 if test -z "${MPI_MOD_ASM_UDIV_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_FALSE}"; then
19058 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV\" was never defined.
19059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19061 if test -z "${MPI_MOD_ASM_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_ASM_UDIV_QRNND_FALSE}"; then
19062 as_fn_error $? "conditional \"MPI_MOD_ASM_UDIV_QRNND\" was never defined.
19063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19065 if test -z "${MPI_MOD_C_MPIH_ADD1_TRUE}" && test -z "${MPI_MOD_C_MPIH_ADD1_FALSE}"; then
19066 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_ADD1\" was never defined.
19067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19069 if test -z "${MPI_MOD_C_MPIH_SUB1_TRUE}" && test -z "${MPI_MOD_C_MPIH_SUB1_FALSE}"; then
19070 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_SUB1\" was never defined.
19071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19073 if test -z "${MPI_MOD_C_MPIH_MUL1_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL1_FALSE}"; then
19074 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL1\" was never defined.
19075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19077 if test -z "${MPI_MOD_C_MPIH_MUL2_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL2_FALSE}"; then
19078 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL2\" was never defined.
19079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19081 if test -z "${MPI_MOD_C_MPIH_MUL3_TRUE}" && test -z "${MPI_MOD_C_MPIH_MUL3_FALSE}"; then
19082 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_MUL3\" was never defined.
19083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19085 if test -z "${MPI_MOD_C_MPIH_LSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_LSHIFT_FALSE}"; then
19086 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_LSHIFT\" was never defined.
19087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19089 if test -z "${MPI_MOD_C_MPIH_RSHIFT_TRUE}" && test -z "${MPI_MOD_C_MPIH_RSHIFT_FALSE}"; then
19090 as_fn_error $? "conditional \"MPI_MOD_C_MPIH_RSHIFT\" was never defined.
19091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093 if test -z "${MPI_MOD_C_UDIV_TRUE}" && test -z "${MPI_MOD_C_UDIV_FALSE}"; then
19094 as_fn_error $? "conditional \"MPI_MOD_C_UDIV\" was never defined.
19095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097 if test -z "${MPI_MOD_C_UDIV_QRNND_TRUE}" && test -z "${MPI_MOD_C_UDIV_QRNND_FALSE}"; then
19098 as_fn_error $? "conditional \"MPI_MOD_C_UDIV_QRNND\" was never defined.
19099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19101 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
19102 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
19103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19105 if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
19106 as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
19107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19110 : "${CONFIG_STATUS=./config.status}"
19112 ac_clean_files_save=$ac_clean_files
19113 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19115 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19117 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19119 # Generated by $as_me.
19120 # Run this file to recreate the current configuration.
19121 # Compiler output produced by configure, useful for debugging
19122 # configure, is in config.log if it exists.
19125 ac_cs_recheck=false
19128 SHELL=\${CONFIG_SHELL-$SHELL}
19131 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19132 ## -------------------- ##
19133 ## M4sh Initialization. ##
19134 ## -------------------- ##
19136 # Be more Bourne compatible
19137 DUALCASE=1; export DUALCASE # for MKS sh
19138 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19141 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19142 # is contrary to our usage. Disable this feature.
19143 alias -g '${1+"$@"}'='"$@"'
19144 setopt NO_GLOB_SUBST
19146 case `(set -o) 2>/dev/null` in #(
19158 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19159 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19160 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19161 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19162 # Prefer a ksh shell builtin over an external printf program on Solaris,
19163 # but without wasting forks for bash or zsh.
19164 if test -z "$BASH_VERSION$ZSH_VERSION" \
19165 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19166 as_echo='print -r --'
19167 as_echo_n='print -rn --'
19168 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19169 as_echo='printf %s\n'
19170 as_echo_n='printf %s'
19172 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19173 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19174 as_echo_n='/usr/ucb/echo -n'
19176 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19177 as_echo_n_body='eval
19181 expr "X$arg" : "X\\(.*\\)$as_nl";
19182 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19184 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19186 export as_echo_n_body
19187 as_echo_n='sh -c $as_echo_n_body as_echo'
19189 export as_echo_body
19190 as_echo='sh -c $as_echo_body as_echo'
19193 # The user is always right.
19194 if test "${PATH_SEPARATOR+set}" != set; then
19196 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19197 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19204 # We need space, tab and new line, in precisely that order. Quoting is
19205 # there to prevent editors from complaining about space-tab.
19206 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19207 # splitting by setting IFS to empty value.)
19210 # Find who we are. Look in the path if we contain no directory separator.
19213 *[\\/]* ) as_myself=$0 ;;
19214 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $PATH
19218 test -z "$as_dir" && as_dir=.
19219 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19225 # We did not find ourselves, most probably we were run as `sh COMMAND'
19226 # in which case we are not to be found in the path.
19227 if test "x$as_myself" = x; then
19230 if test ! -f "$as_myself"; then
19231 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19235 # Unset variables that we do not need and which cause bugs (e.g. in
19236 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19237 # suppresses any "Segmentation fault" message there. '((' could
19238 # trigger a bug in pdksh 5.2.14.
19239 for as_var in BASH_ENV ENV MAIL MAILPATH
19240 do eval test x\${$as_var+set} = xset \
19241 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19254 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19258 # ----------------------------------------
19259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19261 # script with STATUS, using 1 if that was 0.
19264 as_status=$1; test $as_status -eq 0 && as_status=1
19266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19267 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19269 $as_echo "$as_me: error: $2" >&2
19270 as_fn_exit $as_status
19274 # as_fn_set_status STATUS
19275 # -----------------------
19276 # Set $? to STATUS, without forking.
19277 as_fn_set_status ()
19280 } # as_fn_set_status
19282 # as_fn_exit STATUS
19283 # -----------------
19284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19288 as_fn_set_status $1
19294 # Portably unset VAR.
19297 { eval $1=; unset $1;}
19299 as_unset=as_fn_unset
19300 # as_fn_append VAR VALUE
19301 # ----------------------
19302 # Append the text in VALUE to the end of the definition contained in VAR. Take
19303 # advantage of any shell optimizations that allow amortized linear growth over
19304 # repeated appends, instead of the typical quadratic growth present in naive
19306 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19307 eval 'as_fn_append ()
19318 # as_fn_arith ARG...
19319 # ------------------
19320 # Perform arithmetic evaluation on the ARGs, and store the result in the
19321 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19322 # must be portable across $(()) and expr.
19323 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19324 eval 'as_fn_arith ()
19331 as_val=`expr "$@" || test $? -eq 1`
19336 if expr a : '\(a\)' >/dev/null 2>&1 &&
19337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19344 as_basename=basename
19349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19355 as_me=`$as_basename -- "$0" ||
19356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19357 X"$0" : 'X\(//\)$' \| \
19358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19360 sed '/^.*\/\([^/][^/]*\)\/*$/{
19374 # Avoid depending upon Character Ranges.
19375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19378 as_cr_digits='0123456789'
19379 as_cr_alnum=$as_cr_Letters$as_cr_digits
19381 ECHO_C= ECHO_N= ECHO_T=
19382 case `echo -n x` in #(((((
19384 case `echo 'xy\c'` in
19385 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19387 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19394 rm -f conf$$ conf$$.exe conf$$.file
19395 if test -d conf$$.dir; then
19396 rm -f conf$$.dir/conf$$.file
19399 mkdir conf$$.dir 2>/dev/null
19401 if (echo >conf$$.file) 2>/dev/null; then
19402 if ln -s conf$$.file conf$$ 2>/dev/null; then
19404 # ... but there are two gotchas:
19405 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19406 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19407 # In both cases, we have to default to `cp -pR'.
19408 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19410 elif ln conf$$.file conf$$ 2>/dev/null; then
19418 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19419 rmdir conf$$.dir 2>/dev/null
19424 # Create "$as_dir" as a directory, including parents if necessary.
19429 -*) as_dir=./$as_dir;;
19431 test -d "$as_dir" || eval $as_mkdir_p || {
19435 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19436 *) as_qdir=$as_dir;;
19438 as_dirs="'$as_qdir' $as_dirs"
19439 as_dir=`$as_dirname -- "$as_dir" ||
19440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19441 X"$as_dir" : 'X\(//\)[^/]' \| \
19442 X"$as_dir" : 'X\(//\)$' \| \
19443 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19444 $as_echo X"$as_dir" |
19445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19449 /^X\(\/\/\)[^/].*/{
19462 test -d "$as_dir" && break
19464 test -z "$as_dirs" || eval "mkdir $as_dirs"
19465 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19469 if mkdir -p . 2>/dev/null; then
19470 as_mkdir_p='mkdir -p "$as_dir"'
19472 test -d ./-p && rmdir ./-p
19477 # as_fn_executable_p FILE
19478 # -----------------------
19479 # Test if FILE is an executable regular file.
19480 as_fn_executable_p ()
19482 test -f "$1" && test -x "$1"
19483 } # as_fn_executable_p
19484 as_test_x='test -x'
19485 as_executable_p=as_fn_executable_p
19487 # Sed expression to map a string onto a valid CPP name.
19488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19490 # Sed expression to map a string onto a valid variable name.
19491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19495 ## ----------------------------------- ##
19496 ## Main body of $CONFIG_STATUS script. ##
19497 ## ----------------------------------- ##
19499 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19502 # Save the log message, to keep $0 and so on meaningful, and to
19503 # report actual input values of CONFIG_FILES etc. instead of their
19504 # values after options handling.
19506 This file was extended by libgcrypt $as_me 1.8.3, which was
19507 generated by GNU Autoconf 2.69. Invocation command line was
19509 CONFIG_FILES = $CONFIG_FILES
19510 CONFIG_HEADERS = $CONFIG_HEADERS
19511 CONFIG_LINKS = $CONFIG_LINKS
19512 CONFIG_COMMANDS = $CONFIG_COMMANDS
19515 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19520 case $ac_config_files in *"
19521 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19524 case $ac_config_headers in *"
19525 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19530 # Files that config.status was made for.
19531 config_files="$ac_config_files"
19532 config_headers="$ac_config_headers"
19533 config_links="$ac_config_links"
19534 config_commands="$ac_config_commands"
19538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19540 \`$as_me' instantiates files and other configuration actions
19541 from templates according to the current configuration. Unless the files
19542 and actions are specified as TAGs, all are instantiated by default.
19544 Usage: $0 [OPTION]... [TAG]...
19546 -h, --help print this help, then exit
19547 -V, --version print version number and configuration settings, then exit
19548 --config print configuration, then exit
19549 -q, --quiet, --silent
19550 do not print progress messages
19551 -d, --debug don't remove temporary files
19552 --recheck update $as_me by reconfiguring in the same conditions
19553 --file=FILE[:TEMPLATE]
19554 instantiate the configuration file FILE
19555 --header=FILE[:TEMPLATE]
19556 instantiate the configuration header FILE
19558 Configuration files:
19561 Configuration headers:
19564 Configuration links:
19567 Configuration commands:
19570 Report bugs to <http://bugs.gnupg.org>."
19573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19574 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19576 libgcrypt config.status 1.8.3
19577 configured by $0, generated by GNU Autoconf 2.69,
19578 with options \\"\$ac_cs_config\\"
19580 Copyright (C) 2012 Free Software Foundation, Inc.
19581 This config.status script is free software; the Free Software Foundation
19582 gives unlimited permission to copy, distribute and modify it."
19589 test -n "\$AWK" || AWK=awk
19592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19593 # The default lists apply if the user does not specify any file.
19599 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19604 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19616 # Handling of the options.
19617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19620 $as_echo "$ac_cs_version"; exit ;;
19621 --config | --confi | --conf | --con | --co | --c )
19622 $as_echo "$ac_cs_config"; exit ;;
19623 --debug | --debu | --deb | --de | --d | -d )
19625 --file | --fil | --fi | --f )
19628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19629 '') as_fn_error $? "missing file argument" ;;
19631 as_fn_append CONFIG_FILES " '$ac_optarg'"
19632 ac_need_defaults=false;;
19633 --header | --heade | --head | --hea )
19636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19638 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19639 ac_need_defaults=false;;
19641 # Conflict between --help and --header
19642 as_fn_error $? "ambiguous option: \`$1'
19643 Try \`$0 --help' for more information.";;
19644 --help | --hel | -h )
19645 $as_echo "$ac_cs_usage"; exit ;;
19646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19647 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19650 # This is an error.
19651 -*) as_fn_error $? "unrecognized option: \`$1'
19652 Try \`$0 --help' for more information." ;;
19654 *) as_fn_append ac_config_targets " $1"
19655 ac_need_defaults=false ;;
19661 ac_configure_extra_args=
19663 if $ac_cs_silent; then
19665 ac_configure_extra_args="$ac_configure_extra_args --silent"
19669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19670 if \$ac_cs_recheck; then
19671 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19674 CONFIG_SHELL='$SHELL'
19675 export CONFIG_SHELL
19680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19685 ## Running $as_me. ##
19691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19695 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19698 # The HP-UX ksh and POSIX shell print the target directory to stdout
19699 # if CDPATH is set.
19700 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19702 sed_quote_subst='$sed_quote_subst'
19703 double_quote_subst='$double_quote_subst'
19704 delay_variable_subst='$delay_variable_subst'
19705 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19706 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19707 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
19708 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19709 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19710 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19711 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19712 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19713 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19714 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19715 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19716 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19717 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19718 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19719 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19720 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19721 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19722 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19723 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19724 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19725 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19726 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19727 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19728 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19729 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19730 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19731 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19732 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19733 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19734 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19735 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19736 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19737 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19738 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19739 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19740 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19741 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19742 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19743 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19744 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19745 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19746 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19747 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19748 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19749 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19750 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19751 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19752 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19753 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19754 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19755 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19756 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19757 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19758 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19759 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19760 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19761 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19762 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"`'
19763 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19764 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19765 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19766 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19767 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19768 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19769 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19770 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19771 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19772 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19773 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19774 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19775 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19776 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19777 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19778 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19779 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19780 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19781 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19782 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19783 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19784 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19785 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19786 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19787 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19788 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19789 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19790 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19791 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19792 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19793 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19794 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19795 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19796 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19797 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19798 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19799 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19800 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19801 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19802 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19803 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19804 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19805 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19806 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19807 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19808 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19809 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19810 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19811 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19812 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19813 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19814 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19815 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19816 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19817 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19818 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19819 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19820 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19821 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19822 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19823 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19824 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19825 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19826 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19827 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19828 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19829 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19830 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19831 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19832 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19833 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19834 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19835 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19836 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
19837 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
19838 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
19839 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19840 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
19841 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
19842 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
19843 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
19844 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
19845 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
19846 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
19847 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
19848 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
19849 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19850 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19851 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
19852 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
19853 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
19854 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
19855 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19856 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
19857 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
19858 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
19859 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19860 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
19861 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
19862 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
19863 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
19864 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
19865 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
19866 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
19867 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
19868 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
19869 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
19870 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
19871 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
19872 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19873 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
19874 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19875 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
19876 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
19877 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
19880 LTCFLAGS='$LTCFLAGS'
19881 compiler='$compiler_DEFAULT'
19883 # A function that is used when there is no print builtin or printf.
19884 func_fallback_echo ()
19886 eval 'cat <<_LTECHO_EOF
19891 # Quote evaled strings.
19908 deplibs_check_method \
19912 sharedlib_from_linklib_cmd \
19915 archiver_list_spec \
19921 lt_cv_sys_global_symbol_pipe \
19922 lt_cv_sys_global_symbol_to_cdecl \
19923 lt_cv_sys_global_symbol_to_c_name_address \
19924 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19925 nm_file_list_spec \
19926 lt_prog_compiler_no_builtin_flag \
19927 lt_prog_compiler_pic \
19928 lt_prog_compiler_wl \
19929 lt_prog_compiler_static \
19930 lt_cv_prog_compiler_c_o \
19939 export_dynamic_flag_spec \
19940 whole_archive_flag_spec \
19941 compiler_needs_object \
19943 allow_undefined_flag \
19944 no_undefined_flag \
19945 hardcode_libdir_flag_spec \
19946 hardcode_libdir_separator \
19950 variables_saved_for_relink \
19952 library_names_spec \
19954 install_override_mode \
19961 lt_prog_compiler_no_builtin_flag_RC \
19962 lt_prog_compiler_pic_RC \
19963 lt_prog_compiler_wl_RC \
19964 lt_prog_compiler_static_RC \
19965 lt_cv_prog_compiler_c_o_RC \
19966 export_dynamic_flag_spec_RC \
19967 whole_archive_flag_spec_RC \
19968 compiler_needs_object_RC \
19970 allow_undefined_flag_RC \
19971 no_undefined_flag_RC \
19972 hardcode_libdir_flag_spec_RC \
19973 hardcode_libdir_separator_RC \
19974 exclude_expsyms_RC \
19975 include_expsyms_RC \
19976 file_list_spec_RC; do
19977 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19978 *[\\\\\\\`\\"\\\$]*)
19979 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19982 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19987 # Double-quote double-evaled strings.
19988 for var in reload_cmds \
19989 old_postinstall_cmds \
19990 old_postuninstall_cmds \
19992 extract_expsyms_cmds \
19993 old_archive_from_new_cmds \
19994 old_archive_from_expsyms_cmds \
19996 archive_expsym_cmds \
19998 module_expsym_cmds \
19999 export_symbols_cmds \
20003 postuninstall_cmds \
20005 sys_lib_search_path_spec \
20006 sys_lib_dlsearch_path_spec \
20008 old_archive_cmds_RC \
20009 old_archive_from_new_cmds_RC \
20010 old_archive_from_expsyms_cmds_RC \
20012 archive_expsym_cmds_RC \
20014 module_expsym_cmds_RC \
20015 export_symbols_cmds_RC \
20017 postlink_cmds_RC; do
20018 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20019 *[\\\\\\\`\\"\\\$]*)
20020 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20023 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20028 ac_aux_dir='$ac_aux_dir'
20029 xsi_shell='$xsi_shell'
20030 lt_shell_append='$lt_shell_append'
20032 # See if we are running on zsh, and set the options which allow our
20033 # commands through without removal of \ escapes INIT.
20034 if test -n "\${ZSH_VERSION+set}" ; then
20035 setopt NO_GLOB_SUBST
20041 TIMESTAMP='$TIMESTAMP'
20051 exec_prefix=$exec_prefix
20054 DATADIRNAME=$DATADIRNAME
20059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20061 # Handling of arguments.
20062 for ac_config_target in $ac_config_targets
20064 case $ac_config_target in
20065 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20066 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20067 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20068 ""$mpi_ln_list"") CONFIG_LINKS="$CONFIG_LINKS "$mpi_ln_list"" ;;
20069 "gcrypt-conf") CONFIG_COMMANDS="$CONFIG_COMMANDS gcrypt-conf" ;;
20070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20071 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20072 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
20073 "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
20074 "cipher/Makefile") CONFIG_FILES="$CONFIG_FILES cipher/Makefile" ;;
20075 "random/Makefile") CONFIG_FILES="$CONFIG_FILES random/Makefile" ;;
20076 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20077 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20078 "src/gcrypt.h") CONFIG_FILES="$CONFIG_FILES src/gcrypt.h" ;;
20079 "src/libgcrypt-config") CONFIG_FILES="$CONFIG_FILES src/libgcrypt-config" ;;
20080 "src/versioninfo.rc") CONFIG_FILES="$CONFIG_FILES src/versioninfo.rc" ;;
20081 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
20082 "tests/hashtest-256g") CONFIG_FILES="$CONFIG_FILES tests/hashtest-256g" ;;
20083 "tests/basic-disable-all-hwf") CONFIG_FILES="$CONFIG_FILES tests/basic-disable-all-hwf" ;;
20085 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20090 # If the user did not use the arguments to specify the items to instantiate,
20091 # then the envvar interface is used. Set only those that are not.
20092 # We use the long form for the default assignment because of an extremely
20093 # bizarre bug on SunOS 4.1.3.
20094 if $ac_need_defaults; then
20095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20097 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
20098 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20101 # Have a temporary directory for convenience. Make it in the build tree
20102 # simply because there is no reason against having it here, and in addition,
20103 # creating and moving files from /tmp can sometimes cause problems.
20104 # Hook for its removal unless debugging.
20105 # Note that there is a small window in which the directory will not be cleaned:
20106 # after its creation but before its name has been assigned to `$tmp'.
20110 trap 'exit_status=$?
20111 : "${ac_tmp:=$tmp}"
20112 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20114 trap 'as_fn_exit 1' 1 2 13 15
20116 # Create a (secure) tmp directory for tmp files.
20119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20123 tmp=./conf$$-$RANDOM
20124 (umask 077 && mkdir "$tmp")
20125 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20128 # Set up the scripts for CONFIG_FILES section.
20129 # No need to generate them if there are no CONFIG_FILES.
20130 # This happens for instance with `./config.status config.h'.
20131 if test -n "$CONFIG_FILES"; then
20134 ac_cr=`echo X | tr X '\015'`
20135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20136 # But we know of no other shell where ac_cr would be empty at this
20137 # point, so we can use a bashism as a fallback.
20138 if test "x$ac_cr" = x; then
20139 eval ac_cr=\$\'\\r\'
20141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20145 ac_cs_awk_cr=$ac_cr
20148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20153 echo "cat >conf$$subs.awk <<_ACEOF" &&
20154 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20156 } >conf$$subs.sh ||
20157 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20158 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20160 for ac_last_try in false false false false false :; do
20161 . ./conf$$subs.sh ||
20162 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20164 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20165 if test $ac_delim_n = $ac_delim_num; then
20167 elif $ac_last_try; then
20168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20173 rm -f conf$$subs.sh
20175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20176 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20180 s/^/S["/; s/!.*/"]=/
20190 s/\(.\{148\}\)..*/\1/
20192 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20204 s/\(.\{148\}\)..*/\1/
20206 s/["\\]/\\&/g; s/^/"/; s/$/"/
20210 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20215 ' <conf$$subs.awk | sed '
20220 ' >>$CONFIG_STATUS || ac_write_fail=1
20221 rm -f conf$$subs.awk
20222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20224 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20225 for (key in S) S_is_set[key] = 1
20231 nfields = split(line, field, "@")
20233 len = length(field[1])
20234 for (i = 2; i < nfields; i++) {
20236 keylen = length(key)
20237 if (S_is_set[key]) {
20239 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20240 len += length(value) + length(field[++i])
20251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20252 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20253 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20256 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20257 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20260 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20261 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20262 # trailing colons and then remove the whole line if VPATH becomes empty
20263 # (actually we leave an empty line to preserve line numbers).
20264 if test "x$srcdir" = x.; then
20265 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20284 fi # test -n "$CONFIG_FILES"
20286 # Set up the scripts for CONFIG_HEADERS section.
20287 # No need to generate them if there are no CONFIG_HEADERS.
20288 # This happens for instance with `./config.status Makefile'.
20289 if test -n "$CONFIG_HEADERS"; then
20290 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20294 # Transform confdefs.h into an awk script `defines.awk', embedded as
20295 # here-document in config.status, that substitutes the proper values into
20296 # config.h.in to produce config.h.
20298 # Create a delimiter string that does not exist in confdefs.h, to ease
20299 # handling of long lines.
20301 for ac_last_try in false false :; do
20302 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20303 if test -z "$ac_tt"; then
20305 elif $ac_last_try; then
20306 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20312 # For the awk script, D is an array of macro values keyed by name,
20313 # likewise P contains macro parameters if any. Preserve backslash
20314 # newline sequences.
20316 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20318 s/.\{148\}/&'"$ac_delim"'/g
20321 s/^[ ]*#[ ]*define[ ][ ]*/ /
20328 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20330 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20335 D["\1"]=" \3\\\\\\n"\\/p
20337 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20342 s/.\{148\}/&'"$ac_delim"'/g
20347 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20350 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20352 ' <confdefs.h | sed '
20353 s/'"$ac_delim"'/"\\\
20354 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20357 for (key in D) D_is_set[key] = 1
20360 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20362 split(line, arg, " ")
20363 if (arg[1] == "#") {
20367 defundef = substr(arg[1], 2)
20370 split(mac1, mac2, "(") #)
20372 prefix = substr(line, 1, index(line, defundef) - 1)
20373 if (D_is_set[macro]) {
20374 # Preserve the white space surrounding the "#".
20375 print prefix "define", macro P[macro] D[macro]
20378 # Replace #undef with comments. This is necessary, for example,
20379 # in the case of _POSIX_SOURCE, which is predefined and required
20380 # on some systems where configure will not decide to define it.
20381 if (defundef == "undef") {
20382 print "/*", prefix defundef, macro, "*/"
20390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20391 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20392 fi # test -n "$CONFIG_HEADERS"
20395 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20400 :[FHLC]) ac_mode=$ac_tag; continue;;
20402 case $ac_mode$ac_tag in
20404 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20405 :[FH]-) ac_tag=-:-;;
20406 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20423 -) ac_f="$ac_tmp/stdin";;
20424 *) # Look for the file first in the build tree, then in the source tree
20425 # (if the path is not absolute). The absolute path cannot be DOS-style,
20426 # because $ac_f cannot contain `:'.
20430 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20432 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20434 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20435 as_fn_append ac_file_inputs " '$ac_f'"
20438 # Let's still pretend it is `configure' which instantiates (i.e., don't
20439 # use $as_me), people would be surprised to read:
20440 # /* config.h. Generated by config.status. */
20441 configure_input='Generated from '`
20442 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20444 if test x"$ac_file" != x-; then
20445 configure_input="$ac_file. $configure_input"
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20447 $as_echo "$as_me: creating $ac_file" >&6;}
20449 # Neutralize special characters interpreted by sed in replacement strings.
20450 case $configure_input in #(
20451 *\&* | *\|* | *\\* )
20452 ac_sed_conf_input=`$as_echo "$configure_input" |
20453 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20454 *) ac_sed_conf_input=$configure_input;;
20458 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20464 ac_dir=`$as_dirname -- "$ac_file" ||
20465 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20466 X"$ac_file" : 'X\(//\)[^/]' \| \
20467 X"$ac_file" : 'X\(//\)$' \| \
20468 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20469 $as_echo X"$ac_file" |
20470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20474 /^X\(\/\/\)[^/].*/{
20487 as_dir="$ac_dir"; as_fn_mkdir_p
20491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20494 # A ".." for each directory in $ac_dir_suffix.
20495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20496 case $ac_top_builddir_sub in
20497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20501 ac_abs_top_builddir=$ac_pwd
20502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20503 # for backward compatibility:
20504 ac_top_builddir=$ac_top_build_prefix
20507 .) # We are building in place.
20509 ac_top_srcdir=$ac_top_builddir_sub
20510 ac_abs_top_srcdir=$ac_pwd ;;
20511 [\\/]* | ?:[\\/]* ) # Absolute name.
20512 ac_srcdir=$srcdir$ac_dir_suffix;
20513 ac_top_srcdir=$srcdir
20514 ac_abs_top_srcdir=$srcdir ;;
20515 *) # Relative name.
20516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20517 ac_top_srcdir=$ac_top_build_prefix$srcdir
20518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20530 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20531 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20533 ac_MKDIR_P=$MKDIR_P
20535 [\\/$]* | ?:[\\/]* ) ;;
20536 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20541 # If the template does not know about datarootdir, expand it.
20542 # FIXME: This hack should be removed a few years after 2.60.
20543 ac_datarootdir_hack=; ac_datarootdir_seen=
20554 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20555 *datarootdir*) ac_datarootdir_seen=yes;;
20556 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20558 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20561 ac_datarootdir_hack='
20562 s&@datadir@&$datadir&g
20563 s&@docdir@&$docdir&g
20564 s&@infodir@&$infodir&g
20565 s&@localedir@&$localedir&g
20566 s&@mandir@&$mandir&g
20567 s&\\\${datarootdir}&$datarootdir&g' ;;
20571 # Neutralize VPATH when `$srcdir' = `.'.
20572 # Shell code in configure.ac might set extrasub.
20573 # FIXME: do we really want to maintain this feature?
20574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20575 ac_sed_extra="$ac_vpsub
20578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20580 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20581 s|@configure_input@|$ac_sed_conf_input|;t t
20582 s&@top_builddir@&$ac_top_builddir_sub&;t t
20583 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20584 s&@srcdir@&$ac_srcdir&;t t
20585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20586 s&@top_srcdir@&$ac_top_srcdir&;t t
20587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20588 s&@builddir@&$ac_builddir&;t t
20589 s&@abs_builddir@&$ac_abs_builddir&;t t
20590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20591 s&@INSTALL@&$ac_INSTALL&;t t
20592 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20593 $ac_datarootdir_hack
20595 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20596 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20598 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20599 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20600 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20601 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20603 which seems to be undefined. Please make sure it is defined" >&5
20604 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20605 which seems to be undefined. Please make sure it is defined" >&2;}
20607 rm -f "$ac_tmp/stdin"
20609 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20610 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20618 if test x"$ac_file" != x-; then
20620 $as_echo "/* $configure_input */" \
20621 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20622 } >"$ac_tmp/config.h" \
20623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20624 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20625 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20626 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20629 mv "$ac_tmp/config.h" "$ac_file" \
20630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20633 $as_echo "/* $configure_input */" \
20634 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20635 || as_fn_error $? "could not create -" "$LINENO" 5
20637 # Compute "$ac_file"'s index in $config_headers.
20640 for _am_header in $config_headers :; do
20641 case $_am_header in
20642 $_am_arg | $_am_arg:* )
20645 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20648 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20649 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20650 X"$_am_arg" : 'X\(//\)[^/]' \| \
20651 X"$_am_arg" : 'X\(//\)$' \| \
20652 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20653 $as_echo X"$_am_arg" |
20654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20658 /^X\(\/\/\)[^/].*/{
20670 s/.*/./; q'`/stamp-h$_am_stamp_count
20677 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
20680 # Prefer the file from the source tree if names are identical.
20681 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20682 ac_source=$srcdir/$ac_source
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20686 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20688 if test ! -r "$ac_source"; then
20689 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20693 # Try a relative symlink, then a hard link, then a copy.
20695 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20696 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20698 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20699 ln "$ac_source" "$ac_file" 2>/dev/null ||
20700 cp -p "$ac_source" "$ac_file" ||
20701 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20704 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20705 $as_echo "$as_me: executing $ac_file commands" >&6;}
20710 case $ac_file$ac_mode in
20711 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20712 # Older Autoconf quotes --file arguments for eval, but not when files
20713 # are listed without --file. Let's play safe and only enable the eval
20714 # if we detect the quoting.
20715 case $CONFIG_FILES in
20716 *\'*) eval set x "$CONFIG_FILES" ;;
20717 *) set x $CONFIG_FILES ;;
20722 # Strip MF so we end up with the name of the file.
20723 mf=`echo "$mf" | sed -e 's/:.*$//'`
20724 # Check whether this is an Automake generated Makefile or not.
20725 # We used to match only the files named 'Makefile.in', but
20726 # some people rename them; so instead we look at the file content.
20727 # Grep'ing the first line is not enough: some people post-process
20728 # each Makefile.in and add a new line on top of each file to say so.
20729 # Grep'ing the whole file is not good either: AIX grep has a line
20730 # limit of 2048, but all sed's we know have understand at least 4000.
20731 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20732 dirpart=`$as_dirname -- "$mf" ||
20733 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20734 X"$mf" : 'X\(//\)[^/]' \| \
20735 X"$mf" : 'X\(//\)$' \| \
20736 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20742 /^X\(\/\/\)[^/].*/{
20758 # Extract the definition of DEPDIR, am__include, and am__quote
20759 # from the Makefile without running 'make'.
20760 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20761 test -z "$DEPDIR" && continue
20762 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20763 test -z "$am__include" && continue
20764 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20765 # Find all dependency output files, they are included files with
20766 # $(DEPDIR) in their names. We invoke sed twice because it is the
20767 # simplest approach to changing $(DEPDIR) to its actual value in the
20769 for file in `sed -n "
20770 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20771 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20772 # Make sure the directory exists.
20773 test -f "$dirpart/$file" && continue
20774 fdir=`$as_dirname -- "$file" ||
20775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20776 X"$file" : 'X\(//\)[^/]' \| \
20777 X"$file" : 'X\(//\)$' \| \
20778 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20779 $as_echo X"$file" |
20780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20784 /^X\(\/\/\)[^/].*/{
20797 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20798 # echo "creating $dirpart/$file"
20799 echo '# dummy' > "$dirpart/$file"
20806 # See if we are running on zsh, and set the options which allow our
20807 # commands through without removal of \ escapes.
20808 if test -n "${ZSH_VERSION+set}" ; then
20809 setopt NO_GLOB_SUBST
20812 cfgfile="${ofile}T"
20813 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20816 cat <<_LT_EOF >> "$cfgfile"
20819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20824 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20825 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20827 # Written by Gordon Matzigkeit, 1996
20829 # This file is part of GNU Libtool.
20831 # GNU Libtool is free software; you can redistribute it and/or
20832 # modify it under the terms of the GNU General Public License as
20833 # published by the Free Software Foundation; either version 2 of
20834 # the License, or (at your option) any later version.
20836 # As a special exception to the GNU General Public License,
20837 # if you distribute this file as part of a program or library that
20838 # is built using GNU Libtool, you may include this file under the
20839 # same distribution terms that you use for the rest of that program.
20841 # GNU Libtool is distributed in the hope that it will be useful,
20842 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20843 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20844 # GNU General Public License for more details.
20846 # You should have received a copy of the GNU General Public License
20847 # along with GNU Libtool; see the file COPYING. If not, a copy
20848 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20849 # obtained by writing to the Free Software Foundation, Inc.,
20850 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20853 # The names of the tagged configurations supported by this script.
20854 available_tags="RC "
20856 # ### BEGIN LIBTOOL CONFIG
20858 # Which release of libtool.m4 was used?
20859 macro_version=$macro_version
20860 macro_revision=$macro_revision
20862 # Assembler program.
20865 # DLL creation program.
20866 DLLTOOL=$lt_DLLTOOL
20868 # Object dumper program.
20869 OBJDUMP=$lt_OBJDUMP
20871 # Whether or not to build static libraries.
20872 build_old_libs=$enable_static
20874 # Whether or not to build shared libraries.
20875 build_libtool_libs=$enable_shared
20877 # What type of objects to build.
20880 # Whether or not to optimize for fast installation.
20881 fast_install=$enable_fast_install
20883 # Shell to use when invoking shell scripts.
20886 # An echo program that protects backslashes.
20889 # The PATH separator for the build system.
20890 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20893 host_alias=$host_alias
20897 # The build system.
20898 build_alias=$build_alias
20902 # A sed program that does not truncate output.
20905 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20906 Xsed="\$SED -e 1s/^X//"
20908 # A grep program that handles long lines.
20914 # A literal string matcher.
20917 # A BSD- or MS-compatible name lister.
20920 # Whether we need soft or hard links.
20923 # What is the maximum length of a command?
20924 max_cmd_len=$max_cmd_len
20926 # Object file suffix (normally "o").
20929 # Executable file suffix (normally "").
20932 # whether the shell understands "unset".
20935 # turn spaces into newlines.
20938 # turn newlines into spaces.
20941 # convert \$build file names to \$host format.
20942 to_host_file_cmd=$lt_cv_to_host_file_cmd
20944 # convert \$build files to toolchain format.
20945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20947 # Method to check whether dependent libraries are shared objects.
20948 deplibs_check_method=$lt_deplibs_check_method
20950 # Command to use when deplibs_check_method = "file_magic".
20951 file_magic_cmd=$lt_file_magic_cmd
20953 # How to find potential files when deplibs_check_method = "file_magic".
20954 file_magic_glob=$lt_file_magic_glob
20956 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20957 want_nocaseglob=$lt_want_nocaseglob
20959 # Command to associate shared and link libraries.
20960 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20965 # Flags to create an archive.
20966 AR_FLAGS=$lt_AR_FLAGS
20968 # How to feed a file listing to the archiver.
20969 archiver_list_spec=$lt_archiver_list_spec
20971 # A symbol stripping program.
20974 # Commands used to install an old-style archive.
20976 old_postinstall_cmds=$lt_old_postinstall_cmds
20977 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20979 # Whether to use a lock for old archive extraction.
20980 lock_old_archive_extraction=$lock_old_archive_extraction
20985 # LTCC compiler flags.
20986 LTCFLAGS=$lt_CFLAGS
20988 # Take the output of nm and produce a listing of raw symbols and C names.
20989 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20991 # Transform the output of nm in a proper C declaration.
20992 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20994 # Transform the output of nm in a C name address pair.
20995 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20997 # Transform the output of nm in a C name address pair when lib prefix is needed.
20998 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21000 # Specify filename containing input files for \$NM.
21001 nm_file_list_spec=$lt_nm_file_list_spec
21003 # The root where to search for dependent libraries,and in which our libraries should be installed.
21004 lt_sysroot=$lt_sysroot
21006 # The name of the directory that contains temporary libtool files.
21009 # Used to examine libraries when file_magic_cmd begins with "file".
21010 MAGIC_CMD=$MAGIC_CMD
21012 # Must we lock files when doing compilation?
21013 need_locks=$lt_need_locks
21016 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21018 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21019 DSYMUTIL=$lt_DSYMUTIL
21021 # Tool to change global to local symbols on Mac OS X.
21024 # Tool to manipulate fat objects and archives on Mac OS X.
21027 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21030 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21031 OTOOL64=$lt_OTOOL64
21033 # Old archive suffix (normally "a").
21036 # Shared library suffix (normally ".so").
21037 shrext_cmds=$lt_shrext_cmds
21039 # The commands to extract the exported symbol list from a shared archive.
21040 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21042 # Variables whose values should be saved in libtool wrapper scripts and
21043 # restored at link time.
21044 variables_saved_for_relink=$lt_variables_saved_for_relink
21046 # Do we need the "lib" prefix for modules?
21047 need_lib_prefix=$need_lib_prefix
21049 # Do we need a version for libraries?
21050 need_version=$need_version
21052 # Library versioning type.
21053 version_type=$version_type
21055 # Shared library runtime path variable.
21056 runpath_var=$runpath_var
21058 # Shared library path variable.
21059 shlibpath_var=$shlibpath_var
21061 # Is shlibpath searched before the hard-coded library search path?
21062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21064 # Format of library name prefix.
21065 libname_spec=$lt_libname_spec
21067 # List of archive names. First name is the real one, the rest are links.
21068 # The last name is the one that the linker finds with -lNAME
21069 library_names_spec=$lt_library_names_spec
21071 # The coded name of the library, if different from the real name.
21072 soname_spec=$lt_soname_spec
21074 # Permission mode override for installation of shared libraries.
21075 install_override_mode=$lt_install_override_mode
21077 # Command to use after installation of a shared archive.
21078 postinstall_cmds=$lt_postinstall_cmds
21080 # Command to use after uninstallation of a shared archive.
21081 postuninstall_cmds=$lt_postuninstall_cmds
21083 # Commands used to finish a libtool library installation in a directory.
21084 finish_cmds=$lt_finish_cmds
21086 # As "finish_cmds", except a single script fragment to be evaled but
21088 finish_eval=$lt_finish_eval
21090 # Whether we should hardcode library paths into libraries.
21091 hardcode_into_libs=$hardcode_into_libs
21093 # Compile-time system search path for libraries.
21094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21096 # Run-time system search path for libraries.
21097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21099 # Whether dlopen is supported.
21100 dlopen_support=$enable_dlopen
21102 # Whether dlopen of programs is supported.
21103 dlopen_self=$enable_dlopen_self
21105 # Whether dlopen of statically linked programs is supported.
21106 dlopen_self_static=$enable_dlopen_self_static
21108 # Commands to strip libraries.
21109 old_striplib=$lt_old_striplib
21110 striplib=$lt_striplib
21113 # The linker used to build libraries.
21116 # How to create reloadable object files.
21117 reload_flag=$lt_reload_flag
21118 reload_cmds=$lt_reload_cmds
21120 # Commands used to build an old-style archive.
21121 old_archive_cmds=$lt_old_archive_cmds
21123 # A language specific compiler.
21126 # Is the compiler the GNU compiler?
21129 # Compiler flag to turn off builtin functions.
21130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21132 # Additional compiler flags for building library objects.
21133 pic_flag=$lt_lt_prog_compiler_pic
21135 # How to pass a linker flag through the compiler.
21136 wl=$lt_lt_prog_compiler_wl
21138 # Compiler flag to prevent dynamic linking.
21139 link_static_flag=$lt_lt_prog_compiler_static
21141 # Does compiler simultaneously support -c and -o options?
21142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21144 # Whether or not to add -lc for building shared libraries.
21145 build_libtool_need_lc=$archive_cmds_need_lc
21147 # Whether or not to disallow shared libs when runtime libs are static.
21148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21150 # Compiler flag to allow reflexive dlopens.
21151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21153 # Compiler flag to generate shared objects directly from archives.
21154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21156 # Whether the compiler copes with passing no objects directly.
21157 compiler_needs_object=$lt_compiler_needs_object
21159 # Create an old-style archive from a shared archive.
21160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21162 # Create a temporary old-style archive to link instead of a shared archive.
21163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21165 # Commands used to build a shared archive.
21166 archive_cmds=$lt_archive_cmds
21167 archive_expsym_cmds=$lt_archive_expsym_cmds
21169 # Commands used to build a loadable module if different from building
21170 # a shared archive.
21171 module_cmds=$lt_module_cmds
21172 module_expsym_cmds=$lt_module_expsym_cmds
21174 # Whether we are building with GNU ld or not.
21175 with_gnu_ld=$lt_with_gnu_ld
21177 # Flag that allows shared libraries with undefined symbols to be built.
21178 allow_undefined_flag=$lt_allow_undefined_flag
21180 # Flag that enforces no undefined symbols.
21181 no_undefined_flag=$lt_no_undefined_flag
21183 # Flag to hardcode \$libdir into a binary during linking.
21184 # This must work even if \$libdir does not exist
21185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21187 # Whether we need a single "-rpath" flag with a separated argument.
21188 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21190 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21191 # DIR into the resulting binary.
21192 hardcode_direct=$hardcode_direct
21194 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21195 # DIR into the resulting binary and the resulting library dependency is
21196 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21197 # library is relocated.
21198 hardcode_direct_absolute=$hardcode_direct_absolute
21200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21201 # into the resulting binary.
21202 hardcode_minus_L=$hardcode_minus_L
21204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21205 # into the resulting binary.
21206 hardcode_shlibpath_var=$hardcode_shlibpath_var
21208 # Set to "yes" if building a shared library automatically hardcodes DIR
21209 # into the library and all subsequent libraries and executables linked
21211 hardcode_automatic=$hardcode_automatic
21213 # Set to yes if linker adds runtime paths of dependent libraries
21214 # to runtime path list.
21215 inherit_rpath=$inherit_rpath
21217 # Whether libtool must link a program against all its dependency libraries.
21218 link_all_deplibs=$link_all_deplibs
21220 # Set to "yes" if exported symbols are required.
21221 always_export_symbols=$always_export_symbols
21223 # The commands to list exported symbols.
21224 export_symbols_cmds=$lt_export_symbols_cmds
21226 # Symbols that should not be listed in the preloaded symbols.
21227 exclude_expsyms=$lt_exclude_expsyms
21229 # Symbols that must always be exported.
21230 include_expsyms=$lt_include_expsyms
21232 # Commands necessary for linking programs (against libraries) with templates.
21233 prelink_cmds=$lt_prelink_cmds
21235 # Commands necessary for finishing linking programs.
21236 postlink_cmds=$lt_postlink_cmds
21238 # Specify filename containing input files.
21239 file_list_spec=$lt_file_list_spec
21241 # How to hardcode a shared library path into an executable.
21242 hardcode_action=$hardcode_action
21244 # ### END LIBTOOL CONFIG
21250 cat <<\_LT_EOF >> "$cfgfile"
21251 # AIX sometimes has problems with the GCC collect2 program. For some
21252 # reason, if we set the COLLECT_NAMES environment variable, the problems
21253 # vanish in a puff of smoke.
21254 if test "X${COLLECT_NAMES+set}" != Xset; then
21256 export COLLECT_NAMES
21263 ltmain="$ac_aux_dir/ltmain.sh"
21266 # We use sed instead of cat because bash on DJGPP gets confused if
21267 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21268 # text mode, it properly converts lines to CR/LF. This bash problem
21269 # is reportedly fixed, but why not run on old versions too?
21270 sed '$q' "$ltmain" >> "$cfgfile" \
21271 || (rm -f "$cfgfile"; exit 1)
21273 if test x"$xsi_shell" = xyes; then
21274 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21278 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21279 \ * ) func_dirname_result="${3}" ;;\
21281 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21282 && mv -f "$cfgfile.tmp" "$cfgfile" \
21283 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21284 test 0 -eq $? || _lt_function_replace_fail=:
21287 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21290 \ func_basename_result="${1##*/}"\
21291 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21292 && mv -f "$cfgfile.tmp" "$cfgfile" \
21293 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21294 test 0 -eq $? || _lt_function_replace_fail=:
21297 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21298 func_dirname_and_basename ()\
21301 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21302 \ * ) func_dirname_result="${3}" ;;\
21304 \ func_basename_result="${1##*/}"\
21305 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21306 && mv -f "$cfgfile.tmp" "$cfgfile" \
21307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21308 test 0 -eq $? || _lt_function_replace_fail=:
21311 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21314 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21315 \ # positional parameters, so assign one to ordinary parameter first.\
21316 \ func_stripname_result=${3}\
21317 \ func_stripname_result=${func_stripname_result#"${1}"}\
21318 \ func_stripname_result=${func_stripname_result%"${2}"}\
21319 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21320 && mv -f "$cfgfile.tmp" "$cfgfile" \
21321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21322 test 0 -eq $? || _lt_function_replace_fail=:
21325 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21326 func_split_long_opt ()\
21328 \ func_split_long_opt_name=${1%%=*}\
21329 \ func_split_long_opt_arg=${1#*=}\
21330 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21331 && mv -f "$cfgfile.tmp" "$cfgfile" \
21332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21333 test 0 -eq $? || _lt_function_replace_fail=:
21336 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21337 func_split_short_opt ()\
21339 \ func_split_short_opt_arg=${1#??}\
21340 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21341 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21342 && mv -f "$cfgfile.tmp" "$cfgfile" \
21343 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21344 test 0 -eq $? || _lt_function_replace_fail=:
21347 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21351 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21352 \ *) func_lo2o_result=${1} ;;\
21354 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21355 && mv -f "$cfgfile.tmp" "$cfgfile" \
21356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21357 test 0 -eq $? || _lt_function_replace_fail=:
21360 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21363 func_xform_result=${1%.*}.lo\
21364 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21365 && mv -f "$cfgfile.tmp" "$cfgfile" \
21366 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21367 test 0 -eq $? || _lt_function_replace_fail=:
21370 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21373 func_arith_result=$(( $* ))\
21374 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21375 && mv -f "$cfgfile.tmp" "$cfgfile" \
21376 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21377 test 0 -eq $? || _lt_function_replace_fail=:
21380 sed -e '/^func_len ()$/,/^} # func_len /c\
21383 func_len_result=${#1}\
21384 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21385 && mv -f "$cfgfile.tmp" "$cfgfile" \
21386 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21387 test 0 -eq $? || _lt_function_replace_fail=:
21391 if test x"$lt_shell_append" = xyes; then
21392 sed -e '/^func_append ()$/,/^} # func_append /c\
21395 eval "${1}+=\\${2}"\
21396 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21397 && mv -f "$cfgfile.tmp" "$cfgfile" \
21398 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21399 test 0 -eq $? || _lt_function_replace_fail=:
21402 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21403 func_append_quoted ()\
21405 \ func_quote_for_eval "${2}"\
21406 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21407 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21408 && mv -f "$cfgfile.tmp" "$cfgfile" \
21409 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21410 test 0 -eq $? || _lt_function_replace_fail=:
21413 # Save a `func_append' function call where possible by direct use of '+='
21414 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21415 && mv -f "$cfgfile.tmp" "$cfgfile" \
21416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21417 test 0 -eq $? || _lt_function_replace_fail=:
21419 # Save a `func_append' function call even when '+=' is not available
21420 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21421 && mv -f "$cfgfile.tmp" "$cfgfile" \
21422 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21423 test 0 -eq $? || _lt_function_replace_fail=:
21426 if test x"$_lt_function_replace_fail" = x":"; then
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21428 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21432 mv -f "$cfgfile" "$ofile" ||
21433 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21437 cat <<_LT_EOF >> "$ofile"
21439 # ### BEGIN LIBTOOL TAG CONFIG: RC
21441 # The linker used to build libraries.
21444 # How to create reloadable object files.
21445 reload_flag=$lt_reload_flag_RC
21446 reload_cmds=$lt_reload_cmds_RC
21448 # Commands used to build an old-style archive.
21449 old_archive_cmds=$lt_old_archive_cmds_RC
21451 # A language specific compiler.
21454 # Is the compiler the GNU compiler?
21457 # Compiler flag to turn off builtin functions.
21458 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21460 # Additional compiler flags for building library objects.
21461 pic_flag=$lt_lt_prog_compiler_pic_RC
21463 # How to pass a linker flag through the compiler.
21464 wl=$lt_lt_prog_compiler_wl_RC
21466 # Compiler flag to prevent dynamic linking.
21467 link_static_flag=$lt_lt_prog_compiler_static_RC
21469 # Does compiler simultaneously support -c and -o options?
21470 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21472 # Whether or not to add -lc for building shared libraries.
21473 build_libtool_need_lc=$archive_cmds_need_lc_RC
21475 # Whether or not to disallow shared libs when runtime libs are static.
21476 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21478 # Compiler flag to allow reflexive dlopens.
21479 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21481 # Compiler flag to generate shared objects directly from archives.
21482 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21484 # Whether the compiler copes with passing no objects directly.
21485 compiler_needs_object=$lt_compiler_needs_object_RC
21487 # Create an old-style archive from a shared archive.
21488 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21490 # Create a temporary old-style archive to link instead of a shared archive.
21491 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21493 # Commands used to build a shared archive.
21494 archive_cmds=$lt_archive_cmds_RC
21495 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21497 # Commands used to build a loadable module if different from building
21498 # a shared archive.
21499 module_cmds=$lt_module_cmds_RC
21500 module_expsym_cmds=$lt_module_expsym_cmds_RC
21502 # Whether we are building with GNU ld or not.
21503 with_gnu_ld=$lt_with_gnu_ld_RC
21505 # Flag that allows shared libraries with undefined symbols to be built.
21506 allow_undefined_flag=$lt_allow_undefined_flag_RC
21508 # Flag that enforces no undefined symbols.
21509 no_undefined_flag=$lt_no_undefined_flag_RC
21511 # Flag to hardcode \$libdir into a binary during linking.
21512 # This must work even if \$libdir does not exist
21513 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21515 # Whether we need a single "-rpath" flag with a separated argument.
21516 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21518 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21519 # DIR into the resulting binary.
21520 hardcode_direct=$hardcode_direct_RC
21522 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21523 # DIR into the resulting binary and the resulting library dependency is
21524 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21525 # library is relocated.
21526 hardcode_direct_absolute=$hardcode_direct_absolute_RC
21528 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21529 # into the resulting binary.
21530 hardcode_minus_L=$hardcode_minus_L_RC
21532 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21533 # into the resulting binary.
21534 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21536 # Set to "yes" if building a shared library automatically hardcodes DIR
21537 # into the library and all subsequent libraries and executables linked
21539 hardcode_automatic=$hardcode_automatic_RC
21541 # Set to yes if linker adds runtime paths of dependent libraries
21542 # to runtime path list.
21543 inherit_rpath=$inherit_rpath_RC
21545 # Whether libtool must link a program against all its dependency libraries.
21546 link_all_deplibs=$link_all_deplibs_RC
21548 # Set to "yes" if exported symbols are required.
21549 always_export_symbols=$always_export_symbols_RC
21551 # The commands to list exported symbols.
21552 export_symbols_cmds=$lt_export_symbols_cmds_RC
21554 # Symbols that should not be listed in the preloaded symbols.
21555 exclude_expsyms=$lt_exclude_expsyms_RC
21557 # Symbols that must always be exported.
21558 include_expsyms=$lt_include_expsyms_RC
21560 # Commands necessary for linking programs (against libraries) with templates.
21561 prelink_cmds=$lt_prelink_cmds_RC
21563 # Commands necessary for finishing linking programs.
21564 postlink_cmds=$lt_postlink_cmds_RC
21566 # Specify filename containing input files.
21567 file_list_spec=$lt_file_list_spec_RC
21569 # How to hardcode a shared library path into an executable.
21570 hardcode_action=$hardcode_action_RC
21572 # ### END LIBTOOL TAG CONFIG: RC
21577 chmod +x src/libgcrypt-config
21579 "tests/hashtest-256g":F) chmod +x tests/hashtest-256g ;;
21580 "tests/basic-disable-all-hwf":F) chmod +x tests/basic-disable-all-hwf ;;
21588 ac_clean_files=$ac_clean_files_save
21590 test $ac_write_fail = 0 ||
21591 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21594 # configure is writing to config.log, and then calls config.status.
21595 # config.status does its own redirection, appending to config.log.
21596 # Unfortunately, on DOS this fails, as config.log is still kept open
21597 # by configure, so config.status won't be able to write to it; its
21598 # output is simply discarded. So we exec the FD to /dev/null,
21599 # effectively closing config.log, so it can be properly (re)opened and
21600 # appended to by config.status. When coming back to configure, we
21601 # need to make the FD available again.
21602 if test "$no_create" != yes; then
21604 ac_config_status_args=
21605 test "$silent" = yes &&
21606 ac_config_status_args="$ac_config_status_args --quiet"
21608 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21610 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21611 # would make configure fail if this is the last instruction.
21612 $ac_cs_success || as_fn_exit 1
21614 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21616 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21621 detection_module="${GCRYPT_HWF_MODULES%.lo}"
21622 test -n "$detection_module" || detection_module="none"
21624 # Give some feedback
21629 echo " Libgcrypt v${VERSION} has been configured as follows:" 1>&6
21635 echo " Platform: $PRINTABLE_OS_NAME ($host)" 1>&6
21638 echo " Hardware detection module: $detection_module" 1>&6
21641 tmp=" Enabled cipher algorithms:"
21643 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21644 echo "$tmp $enabled_ciphers" 1>&6
21646 tmpi=`echo "$tmp"| sed 's/./ /g'`
21647 echo $enabled_ciphers EOF | tr ' ' '\n' | \
21648 while read word; do
21649 if test "${#tmp}" -gt 70 ; then
21653 if test "$word" = "EOF" ; then
21662 tmp=" Enabled digest algorithms:"
21664 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21665 echo "$tmp $enabled_digests" 1>&6
21667 tmpi=`echo "$tmp"| sed 's/./ /g'`
21668 echo $enabled_digests EOF | tr ' ' '\n' | \
21669 while read word; do
21670 if test "${#tmp}" -gt 70 ; then
21674 if test "$word" = "EOF" ; then
21683 tmp=" Enabled kdf algorithms: "
21685 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21686 echo "$tmp $enabled_kdfs" 1>&6
21688 tmpi=`echo "$tmp"| sed 's/./ /g'`
21689 echo $enabled_kdfs EOF | tr ' ' '\n' | \
21690 while read word; do
21691 if test "${#tmp}" -gt 70 ; then
21695 if test "$word" = "EOF" ; then
21704 tmp=" Enabled pubkey algorithms:"
21706 if test "${#tmpi}" -ne 3 >/dev/null 2>&1 ; then
21707 echo "$tmp $enabled_pubkey_ciphers" 1>&6
21709 tmpi=`echo "$tmp"| sed 's/./ /g'`
21710 echo $enabled_pubkey_ciphers EOF | tr ' ' '\n' | \
21711 while read word; do
21712 if test "${#tmp}" -gt 70 ; then
21716 if test "$word" = "EOF" ; then
21725 echo " Random number generator: $random" 1>&6
21728 echo " Try using jitter entropy: $jentsupport" 1>&6
21731 echo " Using linux capabilities: $use_capabilities" 1>&6
21734 echo " Try using Padlock crypto: $padlocksupport" 1>&6
21737 echo " Try using AES-NI crypto: $aesnisupport" 1>&6
21740 echo " Try using Intel PCLMUL: $pclmulsupport" 1>&6
21743 echo " Try using Intel SSE4.1: $sse41support" 1>&6
21746 echo " Try using DRNG (RDRAND): $drngsupport" 1>&6
21749 echo " Try using Intel AVX: $avxsupport" 1>&6
21752 echo " Try using Intel AVX2: $avx2support" 1>&6
21755 echo " Try using ARM NEON: $neonsupport" 1>&6
21758 echo " Try using ARMv8 crypto: $armcryptosupport" 1>&6
21764 if test "x${gpg_config_script_warn}" != x; then
21766 Mismatches between the target platform and the to
21767 be used libraries have been been detected for:
21768 ${gpg_config_script_warn}
21769 Please check above for warning messages.
21774 if test "$gcry_cv_gcc_attribute_aligned" != "yes" ; then
21776 Please not that your compiler does not support the GCC style
21777 aligned attribute. Using this software may evoke bus errors.
21782 if test -n "$gpl"; then
21783 echo "Please note that you are building a version of Libgcrypt with"
21785 echo "included. These parts are licensed under the GPL and thus the"
21786 echo "use of this library has to comply with the conditions of the GPL."