2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for cryptsetup 2.3.7.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
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 #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; 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 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
186 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
187 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 PATH=/empty FPATH=/empty; export PATH FPATH
190 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
191 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
192 test \$(( 1 + 1 )) = 2 || exit 1"
193 if (eval "$as_required") 2>/dev/null
199 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 *) as_dir=$as_dir/ ;;
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
237 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
238 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
240 CONFIG_SHELL=$SHELL as_have_required=yes
245 if test "x$CONFIG_SHELL" != x
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 *v*x* | *x*v* ) as_opts=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno
270 printf "%s\n" "$0: This script requires a shell more modern than all"
271 printf "%s\n" "$0: the shells that I found on your system."
272 if test ${ZSH_VERSION+y} ; then
273 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
276 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
285 SHELL=${CONFIG_SHELL-/bin/sh}
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
296 # Portably unset VAR.
299 { eval $1=; unset $1;}
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323 # Do nothing but, unlike ":", preserve the value of $?.
332 # Create "$as_dir" as a directory, including parents if necessary.
337 -*) as_dir=./$as_dir;;
339 test -d "$as_dir" || eval $as_mkdir_p || {
343 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
346 as_dirs="'$as_qdir' $as_dirs"
347 as_dir=`$as_dirname -- "$as_dir" ||
348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349 X"$as_dir" : 'X\(//\)[^/]' \| \
350 X"$as_dir" : 'X\(//\)$' \| \
351 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352 printf "%s\n" X"$as_dir" |
353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
370 test -d "$as_dir" && break
372 test -z "$as_dirs" || eval "mkdir $as_dirs"
373 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378 # as_fn_executable_p FILE
379 # -----------------------
380 # Test if FILE is an executable regular file.
381 as_fn_executable_p ()
383 test -f "$1" && test -x "$1"
384 } # as_fn_executable_p
385 # as_fn_append VAR VALUE
386 # ----------------------
387 # Append the text in VALUE to the end of the definition contained in VAR. Take
388 # advantage of any shell optimizations that allow amortized linear growth over
389 # repeated appends, instead of the typical quadratic growth present in naive
391 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
393 eval 'as_fn_append ()
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
418 as_val=`expr "$@" || test $? -eq 1`
424 # Do nothing but, unlike ":", preserve the value of $?.
431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
432 # ----------------------------------------
433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
435 # script with STATUS, using 1 if that was 0.
438 as_status=$1; test $as_status -eq 0 && as_status=1
440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
443 printf "%s\n" "$as_me: error: $2" >&2
444 as_fn_exit $as_status
447 if expr a : '\(a\)' >/dev/null 2>&1 &&
448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_me=`$as_basename -- "$0" ||
467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
468 X"$0" : 'X\(//\)$' \| \
469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
470 printf "%s\n" X/"$0" |
471 sed '/^.*\/\([^/][^/]*\)\/*$/{
485 # Avoid depending upon Character Ranges.
486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
489 as_cr_digits='0123456789'
490 as_cr_alnum=$as_cr_Letters$as_cr_digits
493 as_lineno_1=$LINENO as_lineno_1a=$LINENO
494 as_lineno_2=$LINENO as_lineno_2a=$LINENO
495 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
496 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
497 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
509 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513 chmod +x "$as_me.lineno" ||
514 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
516 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
517 # already done that, so ensure we don't try to do so again and fall
518 # in an infinite loop. This has already happened in practice.
519 _as_can_reexec=no; export _as_can_reexec
520 # Don't try to exec as it changes $[0], causing all sort of problems
521 # (the dirname of $[0] is not the place where we might find the
522 # original and so on. Autoconf is especially sensitive to this).
524 # Exit status is that of the last command.
529 # Determine whether it's possible to make 'echo' print without a newline.
530 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
531 # for compatibility with existing Makefiles.
532 ECHO_C= ECHO_N= ECHO_T=
533 case `echo -n x` in #(((((
535 case `echo 'xy\c'` in
536 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
538 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
545 # For backward compatibility with old third-party macros, we provide
546 # the shell variables $as_echo and $as_echo_n. New code should use
547 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
548 as_echo='printf %s\n'
549 as_echo_n='printf %s'
552 rm -f conf$$ conf$$.exe conf$$.file
553 if test -d conf$$.dir; then
554 rm -f conf$$.dir/conf$$.file
557 mkdir conf$$.dir 2>/dev/null
559 if (echo >conf$$.file) 2>/dev/null; then
560 if ln -s conf$$.file conf$$ 2>/dev/null; then
562 # ... but there are two gotchas:
563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
565 # In both cases, we have to default to `cp -pR'.
566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
568 elif ln conf$$.file conf$$ 2>/dev/null; then
576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
577 rmdir conf$$.dir 2>/dev/null
579 if mkdir -p . 2>/dev/null; then
580 as_mkdir_p='mkdir -p "$as_dir"'
582 test -d ./-p && rmdir ./-p
587 as_executable_p=as_fn_executable_p
589 # Sed expression to map a string onto a valid CPP name.
590 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
592 # Sed expression to map a string onto a valid variable name.
593 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
595 SHELL=${CONFIG_SHELL-/bin/sh}
598 test -n "$DJDIR" || exec 7<&0 </dev/null
602 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
603 # so uname gets run too.
604 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609 ac_default_prefix=/usr/local
611 ac_config_libobj_dir=.
618 # Identity of this package.
619 PACKAGE_NAME='cryptsetup'
620 PACKAGE_TARNAME='cryptsetup'
621 PACKAGE_VERSION='2.3.7'
622 PACKAGE_STRING='cryptsetup 2.3.7'
626 ac_unique_file="src/cryptsetup.c"
627 ac_default_prefix=/usr
628 # Factoring default headers for most tests.
629 ac_includes_default="\
640 #ifdef HAVE_INTTYPES_H
641 # include <inttypes.h>
646 #ifdef HAVE_STRINGS_H
647 # include <strings.h>
649 #ifdef HAVE_SYS_TYPES_H
650 # include <sys/types.h>
652 #ifdef HAVE_SYS_STAT_H
653 # include <sys/stat.h>
661 ac_subst_vars='am__EXEEXT_FALSE
665 DEFAULT_LUKS2_LOCK_DIR_PERMS
666 DEFAULT_LUKS2_LOCK_PATH
667 CRYPTSETUP_TMPFILE_FALSE
668 CRYPTSETUP_TMPFILE_TRUE
670 LIBCRYPTSETUP_VERSION_INFO
671 LIBCRYPTSETUP_VERSION
676 PWQUALITY_STATIC_LIBS
678 DEVMAPPER_STATIC_LIBS
679 DEVMAPPER_STATIC_CFLAGS
680 HAVE_BLKID_STEP_BACK_FALSE
681 HAVE_BLKID_STEP_BACK_TRUE
682 HAVE_BLKID_WIPE_FALSE
688 CRYPTO_INTERNAL_SSE_ARGON2_FALSE
689 CRYPTO_INTERNAL_SSE_ARGON2_TRUE
690 CRYPTO_INTERNAL_ARGON2_FALSE
691 CRYPTO_INTERNAL_ARGON2_TRUE
694 CRYPTO_INTERNAL_PBKDF2_FALSE
695 CRYPTO_INTERNAL_PBKDF2_TRUE
696 CRYPTO_BACKEND_NETTLE_FALSE
697 CRYPTO_BACKEND_NETTLE_TRUE
698 CRYPTO_BACKEND_KERNEL_FALSE
699 CRYPTO_BACKEND_KERNEL_TRUE
700 CRYPTO_BACKEND_NSS_FALSE
701 CRYPTO_BACKEND_NSS_TRUE
702 CRYPTO_BACKEND_OPENSSL_FALSE
703 CRYPTO_BACKEND_OPENSSL_TRUE
704 CRYPTO_BACKEND_GCRYPT_FALSE
705 CRYPTO_BACKEND_GCRYPT_TRUE
709 OPENSSL_STATIC_CFLAGS
737 XGETTEXT_EXTRA_OPTIONS
745 GETTEXT_MACRO_VERSION
813 INSTALL_STRIP_PROGRAM
860 program_transform_name
874 enable_option_checking
876 enable_dependency_tracking
892 enable_luks2_reencryption
895 enable_static_cryptsetup
898 enable_cryptsetup_reencrypt
899 enable_integritysetup
905 with_libgcrypt_prefix
906 enable_internal_argon2
908 enable_internal_sse_argon2
919 enable_luks_adjust_xts_keysize
924 with_luks2_parallel_threads
925 with_luks2_keyslot_cipher
926 with_luks2_keyslot_keybits
929 with_keyfile_size_maxkb
930 with_integrity_keyfile_size_maxkb
931 with_passphrase_size_max
933 with_verity_data_block
934 with_verity_hash_block
935 with_verity_salt_size
936 with_verity_fec_roots
939 with_luks2_lock_dir_perms
940 with_default_luks_format
942 ac_precious_vars='build_alias
963 OPENSSL_STATIC_CFLAGS
971 DEVMAPPER_STATIC_CFLAGS
972 DEVMAPPER_STATIC_LIBS
976 # Initialize some variables set by options.
978 ac_init_version=false
979 ac_unrecognized_opts=
981 # The variables have the same names as the options, with
982 # dashes changed to underlines.
990 program_transform_name=s,x,x,
998 # Installation directory options.
999 # These are left unexpanded so users can "make install exec_prefix=/foo"
1000 # and all the variables that are supposed to be based on exec_prefix
1001 # by default will actually change.
1002 # Use braces instead of parens because sh, perl, etc. also accept them.
1003 # (The list follows the same order as the GNU Coding Standards.)
1004 bindir='${exec_prefix}/bin'
1005 sbindir='${exec_prefix}/sbin'
1006 libexecdir='${exec_prefix}/libexec'
1007 datarootdir='${prefix}/share'
1008 datadir='${datarootdir}'
1009 sysconfdir='${prefix}/etc'
1010 sharedstatedir='${prefix}/com'
1011 localstatedir='${prefix}/var'
1012 runstatedir='${localstatedir}/run'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1042 case $ac_dashdash$ac_option in
1046 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1049 bindir=$ac_optarg ;;
1051 -build | --build | --buil | --bui | --bu)
1052 ac_prev=build_alias ;;
1053 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1054 build_alias=$ac_optarg ;;
1056 -cache-file | --cache-file | --cache-fil | --cache-fi \
1057 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1058 ac_prev=cache_file ;;
1059 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1060 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1061 cache_file=$ac_optarg ;;
1063 --config-cache | -C)
1064 cache_file=config.cache ;;
1066 -datadir | --datadir | --datadi | --datad)
1068 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1069 datadir=$ac_optarg ;;
1071 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1072 | --dataroo | --dataro | --datar)
1073 ac_prev=datarootdir ;;
1074 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1075 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1076 datarootdir=$ac_optarg ;;
1078 -disable-* | --disable-*)
1079 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "enable_$ac_useropt"
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval enable_$ac_useropt=no ;;
1094 -docdir | --docdir | --docdi | --doc | --do)
1096 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1097 docdir=$ac_optarg ;;
1099 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1102 dvidir=$ac_optarg ;;
1104 -enable-* | --enable-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "enable_$ac_useropt"
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval enable_$ac_useropt=\$ac_optarg ;;
1120 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1121 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1122 | --exec | --exe | --ex)
1123 ac_prev=exec_prefix ;;
1124 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1125 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1126 | --exec=* | --exe=* | --ex=*)
1127 exec_prefix=$ac_optarg ;;
1129 -gas | --gas | --ga | --g)
1130 # Obsolete; use --with-gas.
1133 -help | --help | --hel | --he | -h)
1134 ac_init_help=long ;;
1135 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1136 ac_init_help=recursive ;;
1137 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1138 ac_init_help=short ;;
1140 -host | --host | --hos | --ho)
1141 ac_prev=host_alias ;;
1142 -host=* | --host=* | --hos=* | --ho=*)
1143 host_alias=$ac_optarg ;;
1145 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 htmldir=$ac_optarg ;;
1151 -includedir | --includedir | --includedi | --included | --include \
1152 | --includ | --inclu | --incl | --inc)
1153 ac_prev=includedir ;;
1154 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1155 | --includ=* | --inclu=* | --incl=* | --inc=*)
1156 includedir=$ac_optarg ;;
1158 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1161 infodir=$ac_optarg ;;
1163 -libdir | --libdir | --libdi | --libd)
1165 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1166 libdir=$ac_optarg ;;
1168 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1169 | --libexe | --libex | --libe)
1170 ac_prev=libexecdir ;;
1171 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1172 | --libexe=* | --libex=* | --libe=*)
1173 libexecdir=$ac_optarg ;;
1175 -localedir | --localedir | --localedi | --localed | --locale)
1176 ac_prev=localedir ;;
1177 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1178 localedir=$ac_optarg ;;
1180 -localstatedir | --localstatedir | --localstatedi | --localstated \
1181 | --localstate | --localstat | --localsta | --localst | --locals)
1182 ac_prev=localstatedir ;;
1183 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1184 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1185 localstatedir=$ac_optarg ;;
1187 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1190 mandir=$ac_optarg ;;
1192 -nfp | --nfp | --nf)
1193 # Obsolete; use --without-fp.
1196 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1197 | --no-cr | --no-c | -n)
1200 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1201 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1204 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1205 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1206 | --oldin | --oldi | --old | --ol | --o)
1207 ac_prev=oldincludedir ;;
1208 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1209 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1210 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1211 oldincludedir=$ac_optarg ;;
1213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1216 prefix=$ac_optarg ;;
1218 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1219 | --program-pre | --program-pr | --program-p)
1220 ac_prev=program_prefix ;;
1221 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1222 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1223 program_prefix=$ac_optarg ;;
1225 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1226 | --program-suf | --program-su | --program-s)
1227 ac_prev=program_suffix ;;
1228 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1229 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1230 program_suffix=$ac_optarg ;;
1232 -program-transform-name | --program-transform-name \
1233 | --program-transform-nam | --program-transform-na \
1234 | --program-transform-n | --program-transform- \
1235 | --program-transform | --program-transfor \
1236 | --program-transfo | --program-transf \
1237 | --program-trans | --program-tran \
1238 | --progr-tra | --program-tr | --program-t)
1239 ac_prev=program_transform_name ;;
1240 -program-transform-name=* | --program-transform-name=* \
1241 | --program-transform-nam=* | --program-transform-na=* \
1242 | --program-transform-n=* | --program-transform-=* \
1243 | --program-transform=* | --program-transfor=* \
1244 | --program-transfo=* | --program-transf=* \
1245 | --program-trans=* | --program-tran=* \
1246 | --progr-tra=* | --program-tr=* | --program-t=*)
1247 program_transform_name=$ac_optarg ;;
1249 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1252 pdfdir=$ac_optarg ;;
1254 -psdir | --psdir | --psdi | --psd | --ps)
1256 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1260 | -silent | --silent | --silen | --sile | --sil)
1263 -runstatedir | --runstatedir | --runstatedi | --runstated \
1264 | --runstate | --runstat | --runsta | --runst | --runs \
1265 | --run | --ru | --r)
1266 ac_prev=runstatedir ;;
1267 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1268 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1269 | --run=* | --ru=* | --r=*)
1270 runstatedir=$ac_optarg ;;
1272 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1274 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1276 sbindir=$ac_optarg ;;
1278 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280 | --sharedst | --shareds | --shared | --share | --shar \
1282 ac_prev=sharedstatedir ;;
1283 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1287 sharedstatedir=$ac_optarg ;;
1289 -site | --site | --sit)
1291 -site=* | --site=* | --sit=*)
1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297 srcdir=$ac_optarg ;;
1299 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300 | --syscon | --sysco | --sysc | --sys | --sy)
1301 ac_prev=sysconfdir ;;
1302 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304 sysconfdir=$ac_optarg ;;
1306 -target | --target | --targe | --targ | --tar | --ta | --t)
1307 ac_prev=target_alias ;;
1308 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309 target_alias=$ac_optarg ;;
1311 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 -version | --version | --versio | --versi | --vers | -V)
1315 ac_init_version=: ;;
1318 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error $? "invalid package name: \`$ac_useropt'"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval with_$ac_useropt=\$ac_optarg ;;
1333 -without-* | --without-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error $? "invalid package name: \`$ac_useropt'"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1347 eval with_$ac_useropt=no ;;
1350 # Obsolete; use --with-x.
1353 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354 | --x-incl | --x-inc | --x-in | --x-i)
1355 ac_prev=x_includes ;;
1356 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358 x_includes=$ac_optarg ;;
1360 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362 ac_prev=x_libraries ;;
1363 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365 x_libraries=$ac_optarg ;;
1367 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information"
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 case $ac_envvar in #(
1375 '' | [0-9]* | *[!_$as_cr_alnum]* )
1376 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1378 eval $ac_envvar=\$ac_optarg
1379 export $ac_envvar ;;
1382 # FIXME: should be removed in autoconf 3.0.
1383 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1392 if test -n "$ac_prev"; then
1393 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394 as_fn_error $? "missing argument to $ac_option"
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1400 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1401 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir runstatedir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1418 # Be sure to have absolute directory names.
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1423 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1431 target=$target_alias
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435 if test "x$build_alias" = x; then
1436 cross_compiling=maybe
1437 elif test "x$build_alias" != "x$host_alias"; then
1443 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445 test "$silent" = yes && exec 6>/dev/null
1448 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1449 ac_ls_di=`ls -di .` &&
1450 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1451 as_fn_error $? "working directory cannot be determined"
1452 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1453 as_fn_error $? "pwd does not report name of working directory"
1456 # Find the source files, if location was not specified.
1457 if test -z "$srcdir"; then
1458 ac_srcdir_defaulted=yes
1459 # Try the directory containing this script, then the parent directory.
1460 ac_confdir=`$as_dirname -- "$as_myself" ||
1461 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1462 X"$as_myself" : 'X\(//\)[^/]' \| \
1463 X"$as_myself" : 'X\(//\)$' \| \
1464 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1465 printf "%s\n" X"$as_myself" |
1466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1488 ac_srcdir_defaulted=no
1490 if test ! -r "$srcdir/$ac_unique_file"; then
1491 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1492 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1494 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1498 # When building in place, set srcdir=.
1499 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502 # Remove unnecessary trailing slashes from srcdir.
1503 # Double slashes in file names in object file debugging info
1504 # mess up M-x gdb in Emacs.
1506 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 for ac_var in $ac_precious_vars; do
1509 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1510 eval ac_env_${ac_var}_value=\$${ac_var}
1511 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1516 # Report the --help message.
1518 if test "$ac_init_help" = "long"; then
1519 # Omit some internal or obsolete options to make the list less imposing.
1520 # This message is too long to be a string in the A/UX 3.1 sh.
1522 \`configure' configures cryptsetup 2.3.7 to adapt to many kinds of systems.
1524 Usage: $0 [OPTION]... [VAR=VALUE]...
1526 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1527 VAR=VALUE. See below for descriptions of some of the useful variables.
1529 Defaults for the options are specified in brackets.
1532 -h, --help display this help and exit
1533 --help=short display options specific to this package
1534 --help=recursive display the short help of all the included packages
1535 -V, --version display version information and exit
1536 -q, --quiet, --silent do not print \`checking ...' messages
1537 --cache-file=FILE cache test results in FILE [disabled]
1538 -C, --config-cache alias for \`--cache-file=config.cache'
1539 -n, --no-create do not create output files
1540 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1542 Installation directories:
1543 --prefix=PREFIX install architecture-independent files in PREFIX
1544 [$ac_default_prefix]
1545 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1548 By default, \`make install' will install all the files in
1549 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1550 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1551 for instance \`--prefix=\$HOME'.
1553 For better control, use the options below.
1555 Fine tuning of the installation directories:
1556 --bindir=DIR user executables [EPREFIX/bin]
1557 --sbindir=DIR system admin executables [EPREFIX/sbin]
1558 --libexecdir=DIR program executables [EPREFIX/libexec]
1559 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1560 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1561 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1562 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1563 --libdir=DIR object code libraries [EPREFIX/lib]
1564 --includedir=DIR C header files [PREFIX/include]
1565 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1566 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1567 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1568 --infodir=DIR info documentation [DATAROOTDIR/info]
1569 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1570 --mandir=DIR man documentation [DATAROOTDIR/man]
1571 --docdir=DIR documentation root [DATAROOTDIR/doc/cryptsetup]
1572 --htmldir=DIR html documentation [DOCDIR]
1573 --dvidir=DIR dvi documentation [DOCDIR]
1574 --pdfdir=DIR pdf documentation [DOCDIR]
1575 --psdir=DIR ps documentation [DOCDIR]
1581 --program-prefix=PREFIX prepend PREFIX to installed program names
1582 --program-suffix=SUFFIX append SUFFIX to installed program names
1583 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1591 if test -n "$ac_init_help"; then
1592 case $ac_init_help in
1593 short | recursive ) echo "Configuration of cryptsetup 2.3.7:";;
1598 --disable-option-checking ignore unrecognized --enable/--with options
1599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1601 --enable-silent-rules less verbose build output (undo: "make V=1")
1602 --disable-silent-rules verbose build output (undo: "make V=0")
1603 --enable-dependency-tracking
1604 do not reject slow dependency extractors
1605 --disable-dependency-tracking
1606 speeds up one-time build
1607 --enable-static[=PKGS] build static libraries [default=no]
1608 --enable-shared[=PKGS] build shared libraries [default=yes]
1609 --enable-fast-install[=PKGS]
1610 optimize for fast installation [default=yes]
1611 --disable-libtool-lock avoid locking (might break parallel builds)
1612 --disable-rpath do not hardcode runtime library paths
1613 --disable-keyring disable kernel keyring support and builtin kernel
1615 --disable-largefile omit support for large files
1616 --disable-nls do not use Native Language Support
1617 --enable-fips enable FIPS mode restrictions
1618 --disable-luks2-reencryption
1619 disable LUKS2 online reencryption extension
1620 --enable-pwquality enable password quality checking using pwquality
1622 --enable-passwdqc[=CONFIG_PATH]
1623 enable password quality checking using passwdqc
1624 library (optionally with CONFIG_PATH)
1625 --enable-static-cryptsetup
1626 enable build of static version of tools
1627 --disable-cryptsetup disable cryptsetup support
1628 --disable-veritysetup disable veritysetup support
1629 --disable-cryptsetup-reencrypt
1630 disable cryptsetup-reencrypt tool
1631 --disable-integritysetup
1632 disable integritysetup support
1633 --disable-selinux disable selinux support [default=auto]
1634 --disable-udev disable udev support
1635 --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1637 --enable-gcrypt-pbkdf2 force enable internal gcrypt PBKDF2
1638 --disable-internal-argon2
1639 disable internal implementation of Argon2 PBKDF
1640 --enable-libargon2 enable external libargon2 (PHC) library (disables
1641 internal bundled version)
1642 --enable-internal-sse-argon2
1643 enable internal SSE implementation of Argon2 PBKDF
1644 --disable-blkid disable use of blkid for device signature detection
1646 --enable-dev-random use /dev/random by default for key generation
1647 (otherwise use /dev/urandom)
1648 --disable-luks-adjust-xts-keysize
1649 XTS mode requires two keys, double default LUKS
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1657 --with-aix-soname=aix|svr4|both
1658 shared library versioning (aka "SONAME") variant to
1659 provide on AIX, [default=aix].
1660 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1661 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1662 compiler's sysroot if not specified).
1663 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1667 --without-libintl-prefix don't search for libintl in includedir and libdir
1668 --with-crypto_backend=BACKEND
1669 crypto backend (gcrypt/openssl/nss/kernel/nettle)
1671 --with-libgcrypt-prefix=PFX
1672 prefix where LIBGCRYPT is installed (optional)
1673 --with-plain-hash default password hashing function for plain mode
1675 --with-plain-cipher default cipher for plain mode [aes]
1676 --with-plain-mode default cipher mode for plain mode
1678 --with-plain-keybits default key length in bits for plain mode [256]
1679 --with-luks1-hash default hash function for LUKS1 header [sha256]
1680 --with-luks1-cipher default cipher for LUKS1 [aes]
1681 --with-luks1-mode default cipher mode for LUKS1 [xts-plain64]
1682 --with-luks1-keybits default key length in bits for LUKS1 [256]
1683 --with-luks2-pbkdf default Default PBKDF algorithm (pbkdf2 or
1684 argon2i/argon2id) for LUKS2 [argon2i]
1685 --with-luks1-iter-time default PBKDF2 iteration time for LUKS1 (in ms)
1687 --with-luks2-iter-time default Argon2 PBKDF iteration time for LUKS2 (in
1689 --with-luks2-memory-kb default Argon2 PBKDF memory cost for LUKS2 (in kB)
1691 --with-luks2-parallel-threads
1692 default Argon2 PBKDF max parallel cost for LUKS2 (if
1694 --with-luks2-keyslot-cipher
1695 default fallback cipher for LUKS2 keyslot (if data
1696 encryption is incompatible) [aes-xts-plain64]
1697 --with-luks2-keyslot-keybits
1698 default fallback key size for LUKS2 keyslot (if data
1699 encryption is incompatible) [512]
1700 --with-loopaes-cipher default cipher for loop-AES mode [aes]
1701 --with-loopaes-keybits default key length in bits for loop-AES mode [256]
1702 --with-keyfile-size-maxkb
1703 default maximum keyfile size (in KiB) [8192]
1704 --with-integrity-keyfile-size-maxkb
1705 default maximum integritysetup keyfile size (in KiB)
1707 --with-passphrase-size-max
1708 default maximum passphrase size (in characters)
1710 --with-verity-hash default hash function for verity mode [sha256]
1711 --with-verity-data-block
1712 default data block size for verity mode [4096]
1713 --with-verity-hash-block
1714 default hash block size for verity mode [4096]
1715 --with-verity-salt-size default salt size for verity mode [32]
1716 --with-verity-fec-roots default parity bytes for verity FEC [2]
1717 --with-tmpfilesdir default override default path to directory with
1718 systemd temporary files []
1719 --with-luks2-lock-path default path to directory for LUKSv2 locks
1721 --with-luks2-lock-dir-perms
1722 default default luks2 locking directory permissions
1724 --with-default-luks-format=FORMAT
1725 default LUKS format version (LUKS1/LUKS2) [LUKS2]
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1737 User-defined run-time library search path.
1738 PKG_CONFIG path to pkg-config utility
1740 directories to add to pkg-config's search path
1742 path overriding pkg-config's built-in search path
1744 C compiler flags for PWQUALITY, overriding pkg-config
1746 linker flags for PWQUALITY, overriding pkg-config
1748 C compiler flags for DEVMAPPER, overriding pkg-config
1750 linker flags for DEVMAPPER, overriding pkg-config
1752 C compiler flags for JSON_C, overriding pkg-config
1753 JSON_C_LIBS linker flags for JSON_C, overriding pkg-config
1755 C compiler flags for OPENSSL, overriding pkg-config
1757 linker flags for OPENSSL, overriding pkg-config
1758 OPENSSL_STATIC_CFLAGS
1759 C compiler flags for OPENSSL_STATIC, overriding pkg-config
1761 linker flags for OPENSSL_STATIC, overriding pkg-config
1762 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1763 NSS_LIBS linker flags for NSS, overriding pkg-config
1765 C compiler flags for LIBARGON2, overriding pkg-config
1767 linker flags for LIBARGON2, overriding pkg-config
1769 C compiler flags for BLKID, overriding pkg-config
1770 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1771 DEVMAPPER_STATIC_CFLAGS
1772 C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1773 DEVMAPPER_STATIC_LIBS
1774 linker flags for DEVMAPPER_STATIC, overriding pkg-config
1776 value of tmpfilesdir for systemd, overriding pkg-config
1778 Use these variables to override the choices made by `configure' or to help
1779 it to find libraries and programs with nonstandard names/locations.
1781 Report bugs to the package provider.
1786 if test "$ac_init_help" = "recursive"; then
1787 # If there are subdirs, report their specific --help.
1788 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1789 test -d "$ac_dir" ||
1790 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1797 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1798 # A ".." for each directory in $ac_dir_suffix.
1799 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1800 case $ac_top_builddir_sub in
1801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1805 ac_abs_top_builddir=$ac_pwd
1806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1807 # for backward compatibility:
1808 ac_top_builddir=$ac_top_build_prefix
1811 .) # We are building in place.
1813 ac_top_srcdir=$ac_top_builddir_sub
1814 ac_abs_top_srcdir=$ac_pwd ;;
1815 [\\/]* | ?:[\\/]* ) # Absolute name.
1816 ac_srcdir=$srcdir$ac_dir_suffix;
1817 ac_top_srcdir=$srcdir
1818 ac_abs_top_srcdir=$srcdir ;;
1820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1821 ac_top_srcdir=$ac_top_build_prefix$srcdir
1822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1826 cd "$ac_dir" || { ac_status=$?; continue; }
1827 # Check for configure.gnu first; this name is used for a wrapper for
1828 # Metaconfig's "Configure" on case-insensitive file systems.
1829 if test -f "$ac_srcdir/configure.gnu"; then
1831 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1832 elif test -f "$ac_srcdir/configure"; then
1834 $SHELL "$ac_srcdir/configure" --help=recursive
1836 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1838 cd "$ac_pwd" || { ac_status=$?; break; }
1842 test -n "$ac_init_help" && exit $ac_status
1843 if $ac_init_version; then
1845 cryptsetup configure 2.3.7
1846 generated by GNU Autoconf 2.71
1848 Copyright (C) 2021 Free Software Foundation, Inc.
1849 This configure script is free software; the Free Software Foundation
1850 gives unlimited permission to copy, distribute and modify it.
1855 ## ------------------------ ##
1856 ## Autoconf initialization. ##
1857 ## ------------------------ ##
1859 # ac_fn_c_try_compile LINENO
1860 # --------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_c_try_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 rm -f conftest.$ac_objext conftest.beam
1866 if { { ac_try="$ac_compile"
1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869 *) ac_try_echo=$ac_try;;
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 printf "%s\n" "$ac_try_echo"; } >&5
1873 (eval "$ac_compile") 2>conftest.err
1875 if test -s conftest.err; then
1876 grep -v '^ *+' conftest.err >conftest.er1
1877 cat conftest.er1 >&5
1878 mv -f conftest.er1 conftest.err
1880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; } && {
1882 test -z "$ac_c_werror_flag" ||
1883 test ! -s conftest.err
1884 } && test -s conftest.$ac_objext
1888 printf "%s\n" "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_try_compile
1898 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899 # -------------------------------------------------------
1900 # Tests whether HEADER exists and can be compiled using the include files in
1901 # INCLUDES, setting the cache variable VAR accordingly.
1902 ac_fn_c_check_header_compile ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 printf %s "checking for $2... " >&6; }
1907 if eval test \${$3+y}
1909 printf %s "(cached) " >&6
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1916 if ac_fn_c_try_compile "$LINENO"
1922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 printf "%s\n" "$ac_res" >&6; }
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929 } # ac_fn_c_check_header_compile
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 printf "%s\n" "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1959 printf "%s\n" "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1969 # ac_fn_c_try_link LINENO
1970 # -----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded.
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1976 if { { ac_try="$ac_link"
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 printf "%s\n" "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>conftest.err
1985 if test -s conftest.err; then
1986 grep -v '^ *+' conftest.err >conftest.er1
1987 cat conftest.er1 >&5
1988 mv -f conftest.er1 conftest.err
1990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && {
1992 test -z "$ac_c_werror_flag" ||
1993 test ! -s conftest.err
1994 } && test -s conftest$ac_exeext && {
1995 test "$cross_compiling" = yes ||
1996 test -x conftest$ac_exeext
2001 printf "%s\n" "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_func LINENO FUNC VAR
2017 # ----------------------------------
2018 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2019 ac_fn_c_check_func ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023 printf %s "checking for $2... " >&6; }
2024 if eval test \${$3+y}
2026 printf %s "(cached) " >&6
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032 #define $2 innocuous_$2
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below. */
2040 /* Override any GCC internal prototype to avoid an error.
2041 Use char because int might match the return type of a GCC
2042 builtin and then its argument prototype would still apply. */
2047 /* The GNU C library defines this for functions which it implements
2048 to always fail with ENOSYS. Some functions are actually named
2049 something starting with __ and the normal name is an alias. */
2050 #if defined __stub_$2 || defined __stub___$2
2062 if ac_fn_c_try_link "$LINENO"
2068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2069 conftest$ac_exeext conftest.$ac_ext
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_func
2078 # ac_fn_c_try_run LINENO
2079 # ----------------------
2080 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2081 # executables *can* be run.
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if { { ac_try="$ac_link"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 printf "%s\n" "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>&5
2094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096 { { case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 printf "%s\n" "$ac_try_echo"; } >&5
2102 (eval "$ac_try") 2>&5
2104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; }; }
2109 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2110 printf "%s\n" "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 ac_retval=$ac_status
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2121 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2122 # ------------------------------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2130 printf %s "checking whether $as_decl_name is declared... " >&6; }
2131 if eval test \${$3+y}
2133 printf %s "(cached) " >&6
2135 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2136 eval ac_save_FLAGS=\$$6
2137 as_fn_append $6 " $5"
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2144 #ifndef $as_decl_name
2146 (void) $as_decl_use;
2148 (void) $as_decl_name;
2156 if ac_fn_c_try_compile "$LINENO"
2162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 eval $6=\$ac_save_FLAGS
2167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 printf "%s\n" "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_check_decl
2173 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2174 # -------------------------------------------
2175 # Tests whether TYPE exists after having included INCLUDES, setting cache
2176 # variable VAR accordingly.
2177 ac_fn_c_check_type ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2181 printf %s "checking for $2... " >&6; }
2182 if eval test \${$3+y}
2184 printf %s "(cached) " >&6
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2199 if ac_fn_c_try_compile "$LINENO"
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2213 if ac_fn_c_try_compile "$LINENO"
2219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 printf "%s\n" "$ac_res" >&6; }
2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228 } # ac_fn_c_check_type
2229 ac_configure_args_raw=
2234 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 as_fn_append ac_configure_args_raw " '$ac_arg'"
2239 case $ac_configure_args_raw in
2243 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2244 ac_unsafe_a="$ac_unsafe_z#~"
2245 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2246 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2253 It was created by cryptsetup $as_me 2.3.7, which was
2254 generated by GNU Autoconf 2.71. Invocation command line was
2256 $ $0$ac_configure_args_raw
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 case $as_dir in #(((
2292 *) as_dir=$as_dir/ ;;
2294 printf "%s\n" "PATH: $as_dir"
2310 # Keep a trace of the command line.
2311 # Strip out --no-create and --no-recursion so they do not pile up.
2312 # Strip out --silent because we don't want to record it for future runs.
2313 # Also quote any args containing shell meta-characters.
2314 # Make two passes to allow for proper duplicate-argument suppression.
2318 ac_must_keep_next=false
2324 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2326 | -silent | --silent | --silen | --sile | --sil)
2329 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2334 as_fn_append ac_configure_args1 " '$ac_arg'"
2335 if test $ac_must_keep_next = true; then
2336 ac_must_keep_next=false # Got value, back to normal.
2339 *=* | --config-cache | -C | -disable-* | --disable-* \
2340 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2341 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2342 | -with-* | --with-* | -without-* | --without-* | --x)
2343 case "$ac_configure_args0 " in
2344 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 -* ) ac_must_keep_next=true ;;
2350 as_fn_append ac_configure_args " '$ac_arg'"
2355 { ac_configure_args0=; unset ac_configure_args0;}
2356 { ac_configure_args1=; unset ac_configure_args1;}
2358 # When interrupted or exit'd, cleanup temporary files, and complete
2359 # config.log. We remove comments because anyway the quotes in there
2360 # would cause problems or look ugly.
2361 # WARNING: Use '\'' to represent an apostrophe within the trap.
2362 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2363 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2370 printf "%s\n" "## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##"
2374 # The following way of writing the cache mishandles newlines in values,
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2381 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 printf "%s\n" "## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##"
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 printf "%s\n" "$ac_var='\''$ac_val'\''"
2420 if test -n "$ac_subst_files"; then
2421 printf "%s\n" "## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##"
2425 for ac_var in $ac_subst_files
2427 eval ac_val=\$$ac_var
2429 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 printf "%s\n" "$ac_var='\''$ac_val'\''"
2436 if test -s confdefs.h; then
2437 printf "%s\n" "## ----------- ##
2444 test "$ac_signal" != 0 &&
2445 printf "%s\n" "$as_me: caught signal $ac_signal"
2446 printf "%s\n" "$as_me: exit $exit_status"
2448 rm -f core *.core core.conftest.* &&
2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 for ac_signal in 1 2 13 15; do
2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2458 rm -f -r conftest* confdefs.h
2460 printf "%s\n" "/* confdefs.h */" > confdefs.h
2462 # Predefined preprocessor variables.
2464 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2466 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2468 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2470 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2472 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2474 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2477 # Let the site file select an alternate cache file if it wants to.
2478 # Prefer an explicitly selected file to automatically selected ones.
2479 if test -n "$CONFIG_SITE"; then
2480 ac_site_files="$CONFIG_SITE"
2481 elif test "x$prefix" != xNONE; then
2482 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2484 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2487 for ac_site_file in $ac_site_files
2489 case $ac_site_file in #(
2493 ac_site_file=./$ac_site_file ;;
2495 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2497 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2498 sed 's/^/| /' "$ac_site_file" >&5
2500 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2501 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2502 as_fn_error $? "failed to load site script $ac_site_file
2503 See \`config.log' for more details" "$LINENO" 5; }
2507 if test -r "$cache_file"; then
2508 # Some versions of bash will fail to source /dev/null (special files
2509 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2510 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2512 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2514 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2515 *) . "./$cache_file";;
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2520 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2524 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2525 # Test code for whether the C compiler supports C89 (global declarations)
2526 ac_c_conftest_c89_globals='
2527 /* Does the compiler advertise C89 conformance?
2528 Do not test the value of __STDC__, because some compilers set it to 0
2529 while being otherwise adequately conformant. */
2530 #if !defined __STDC__
2531 # error "Compiler does not advertise C89 conformance"
2537 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2538 struct buf { int x; };
2539 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2540 static char *e (p, i)
2546 static char *f (char * (*g) (char **, int), char **p, ...)
2551 s = g (p, va_arg (v,int));
2556 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2557 function prototypes and stuff, but not \xHH hex character constants.
2558 These do not provoke an error unfortunately, instead are silently treated
2559 as an "x". The following induces an error, until -std is added to get
2560 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2561 array size at least. It is necessary to write \x00 == 0 to get something
2562 that is true only with -std. */
2563 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2565 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2566 inside strings and character constants. */
2567 #define FOO(x) '\''x'\''
2568 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2570 int test (int i, double x);
2571 struct s1 {int (*f) (int a);};
2572 struct s2 {int (*f) (double a);};
2573 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2576 # Test code for whether the C compiler supports C89 (body of main).
2577 ac_c_conftest_c89_main='
2578 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2581 # Test code for whether the C compiler supports C99 (global declarations)
2582 ac_c_conftest_c99_globals='
2583 // Does the compiler advertise C99 conformance?
2584 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2585 # error "Compiler does not advertise C99 conformance"
2588 #include <stdbool.h>
2589 extern int puts (const char *);
2590 extern int printf (const char *, ...);
2591 extern int dprintf (int, const char *, ...);
2592 extern void *malloc (size_t);
2594 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2595 // dprintf is used instead of fprintf to avoid needing to declare
2597 #define debug(...) dprintf (2, __VA_ARGS__)
2598 #define showlist(...) puts (#__VA_ARGS__)
2599 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2601 test_varargs_macros (void)
2606 debug ("X = %d\n", x);
2607 showlist (The first, second, and third items.);
2608 report (x>y, "x is %d but y is %d", x, y);
2611 // Check long long types.
2612 #define BIG64 18446744073709551615ull
2613 #define BIG32 4294967295ul
2614 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2616 #error "your preprocessor is broken"
2620 #error "your preprocessor is broken"
2622 static long long int bignum = -9223372036854775807LL;
2623 static unsigned long long int ubignum = BIG64;
2625 struct incomplete_array
2633 const wchar_t *name;
2637 typedef const char *ccp;
2640 test_restrict (ccp restrict text)
2642 // See if C++-style comments work.
2643 // Iterate through items via the restricted pointer.
2644 // Also check for declarations in for loops.
2645 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2650 // Check varargs and va_copy.
2652 test_varargs (const char *format, ...)
2655 va_start (args, format);
2657 va_copy (args_copy, args);
2659 const char *str = "";
2667 case '\''s'\'': // string
2668 str = va_arg (args_copy, const char *);
2670 case '\''d'\'': // int
2671 number = va_arg (args_copy, int);
2673 case '\''f'\'': // float
2674 fnumber = va_arg (args_copy, double);
2683 return *str && number && fnumber;
2687 # Test code for whether the C compiler supports C99 (body of main).
2688 ac_c_conftest_c99_main='
2690 _Bool success = false;
2691 success |= (argc != 0);
2694 if (test_restrict ("String literal") == 0)
2696 char *restrict newvar = "Another string";
2699 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2700 test_varargs_macros ();
2702 // Check flexible array members.
2703 struct incomplete_array *ia =
2704 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2706 for (int i = 0; i < ia->datasize; ++i)
2707 ia->data[i] = i * 1.234;
2709 // Check named initializers.
2710 struct named_init ni = {
2712 .name = L"Test wide string",
2713 .average = 543.34343,
2718 int dynamic_array[ni.number];
2719 dynamic_array[0] = argv[0][0];
2720 dynamic_array[ni.number - 1] = 543;
2722 // work around unused variable warnings
2723 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2724 || dynamic_array[ni.number - 1] != 543);
2727 # Test code for whether the C compiler supports C11 (global declarations)
2728 ac_c_conftest_c11_globals='
2729 // Does the compiler advertise C11 conformance?
2730 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2731 # error "Compiler does not advertise C11 conformance"
2735 char _Alignas (double) aligned_as_double;
2736 char _Alignas (0) no_special_alignment;
2737 extern char aligned_as_int;
2738 char _Alignas (0) _Alignas (int) aligned_as_int;
2743 int_alignment = _Alignof (int),
2744 int_array_alignment = _Alignof (int[100]),
2745 char_alignment = _Alignof (char)
2747 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2750 int _Noreturn does_not_return (void) { for (;;) continue; }
2752 // Check _Static_assert.
2753 struct test_static_assert
2756 _Static_assert (sizeof (int) <= sizeof (long int),
2757 "_Static_assert does not work in struct");
2761 // Check UTF-8 literals.
2762 #define u8 syntax error!
2763 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2765 // Check duplicate typedefs.
2766 typedef long *long_ptr;
2767 typedef long int *long_ptr;
2768 typedef long_ptr long_ptr;
2770 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2774 struct { int i; int j; };
2775 struct { int k; long int l; } w;
2781 # Test code for whether the C compiler supports C11 (body of main).
2782 ac_c_conftest_c11_main='
2783 _Static_assert ((offsetof (struct anonymous, i)
2784 == offsetof (struct anonymous, w.k)),
2785 "Anonymous union alignment botch");
2791 # Test code for whether the C compiler supports C11 (complete).
2792 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2793 ${ac_c_conftest_c99_globals}
2794 ${ac_c_conftest_c11_globals}
2797 main (int argc, char **argv)
2800 ${ac_c_conftest_c89_main}
2801 ${ac_c_conftest_c99_main}
2802 ${ac_c_conftest_c11_main}
2807 # Test code for whether the C compiler supports C99 (complete).
2808 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2809 ${ac_c_conftest_c99_globals}
2812 main (int argc, char **argv)
2815 ${ac_c_conftest_c89_main}
2816 ${ac_c_conftest_c99_main}
2821 # Test code for whether the C compiler supports C89 (complete).
2822 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2825 main (int argc, char **argv)
2828 ${ac_c_conftest_c89_main}
2833 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2834 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2835 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2836 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2837 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2838 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2839 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2840 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2841 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2842 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2843 gt_needs="$gt_needs need-ngettext"
2845 # Auxiliary files required by this configure script.
2846 ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh"
2848 # Locations in which to look for auxiliary files.
2849 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2851 # Search for a directory containing all of the required auxiliary files,
2852 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2853 # If we don't find one directory that contains all the files we need,
2854 # we report the set of missing files from the *first* directory in
2855 # $ac_aux_dir_candidates and give up.
2856 ac_missing_aux_files=""
2857 ac_first_candidate=:
2858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 for as_dir in $ac_aux_dir_candidates
2864 case $as_dir in #(((
2867 *) as_dir=$as_dir/ ;;
2871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2872 ac_aux_dir_found=yes
2874 for ac_aux in $ac_aux_files
2876 # As a special case, if "install-sh" is required, that requirement
2877 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2878 # and $ac_install_sh is set appropriately for whichever one is found.
2879 if test x"$ac_aux" = x"install-sh"
2881 if test -f "${as_dir}install-sh"; then
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2883 ac_install_sh="${as_dir}install-sh -c"
2884 elif test -f "${as_dir}install.sh"; then
2885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2886 ac_install_sh="${as_dir}install.sh -c"
2887 elif test -f "${as_dir}shtool"; then
2888 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2889 ac_install_sh="${as_dir}shtool install -c"
2892 if $ac_first_candidate; then
2893 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2899 if test -f "${as_dir}${ac_aux}"; then
2900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2903 if $ac_first_candidate; then
2904 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2911 if test "$ac_aux_dir_found" = yes; then
2912 ac_aux_dir="$as_dir"
2915 ac_first_candidate=false
2924 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2928 # These three variables are undocumented and unsupported,
2929 # and are intended to be withdrawn in a future Autoconf release.
2930 # They can cause serious problems if a builder's source tree is in a directory
2931 # whose full name contains unusual characters.
2932 if test -f "${ac_aux_dir}config.guess"; then
2933 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2935 if test -f "${ac_aux_dir}config.sub"; then
2936 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2938 if test -f "$ac_aux_dir/configure"; then
2939 ac_configure="$SHELL ${ac_aux_dir}configure"
2942 # Check that the precious variables saved in the cache have kept the same
2944 ac_cache_corrupted=false
2945 for ac_var in $ac_precious_vars; do
2946 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2947 eval ac_new_set=\$ac_env_${ac_var}_set
2948 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2949 eval ac_new_val=\$ac_env_${ac_var}_value
2950 case $ac_old_set,$ac_new_set in
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2953 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2957 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2958 ac_cache_corrupted=: ;;
2961 if test "x$ac_old_val" != "x$ac_new_val"; then
2962 # differences in whitespace do not lead to failure.
2963 ac_old_val_w=`echo x $ac_old_val`
2964 ac_new_val_w=`echo x $ac_new_val`
2965 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2967 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2968 ac_cache_corrupted=:
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2971 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2972 eval $ac_var=\$ac_old_val
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2975 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2977 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2980 # Pass precious variables to config.status.
2981 if test "$ac_new_set" = set; then
2983 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2984 *) ac_arg=$ac_var=$ac_new_val ;;
2986 case " $ac_configure_args " in
2987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2988 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2992 if $ac_cache_corrupted; then
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2996 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2997 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2998 and start over" "$LINENO" 5
3000 ## -------------------- ##
3001 ## Main body of script. ##
3002 ## -------------------- ##
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
3013 LIBCRYPTSETUP_VERSION_INFO=18:0:6
3015 # Check whether --enable-silent-rules was given.
3016 if test ${enable_silent_rules+y}
3018 enableval=$enable_silent_rules;
3021 case $enable_silent_rules in # (((
3022 yes) AM_DEFAULT_VERBOSITY=0;;
3023 no) AM_DEFAULT_VERBOSITY=1;;
3024 *) AM_DEFAULT_VERBOSITY=0;;
3026 am_make=${MAKE-make}
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3028 printf %s "checking whether $am_make supports nested variables... " >&6; }
3029 if test ${am_cv_make_support_nested_variables+y}
3031 printf %s "(cached) " >&6
3033 if printf "%s\n" 'TRUE=$(BAR$(V))
3039 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3040 am_cv_make_support_nested_variables=yes
3042 am_cv_make_support_nested_variables=no
3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3046 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3047 if test $am_cv_make_support_nested_variables = yes; then
3049 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3051 AM_V=$AM_DEFAULT_VERBOSITY
3052 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3059 ac_config_headers="$ac_config_headers config.h:config.h.in"
3062 # We do not want to run test in parallel. Really.
3063 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
3065 # For old automake use this
3066 #AM_INIT_AUTOMAKE(dist-xz subdir-objects)
3067 am__api_version='1.16'
3071 # Find a good install program. We prefer a C program (faster),
3072 # so one script is as good as another. But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # OS/2's system install, which has a completely different semantic
3083 # ./install, which can be erroneously created by make from ./install.sh.
3084 # Reject install programs that cannot install multiple files.
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3086 printf %s "checking for a BSD-compatible install... " >&6; }
3087 if test -z "$INSTALL"; then
3088 if test ${ac_cv_path_install+y}
3090 printf %s "(cached) " >&6
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 case $as_dir in #(((
3099 *) as_dir=$as_dir/ ;;
3101 # Account for fact that we put trailing slashes in our PATH walk.
3104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3105 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3108 # OSF1 and SCO ODT 3.0 have their own names for install.
3109 # Don't use installbsd from OSF since it installs stuff as root
3111 for ac_prog in ginstall scoinst install; do
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3114 if test $ac_prog = install &&
3115 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3116 # AIX install. It has an incompatible calling convention.
3118 elif test $ac_prog = install &&
3119 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3120 # program-specific install script used by HP pwplus--don't use.
3123 rm -rf conftest.one conftest.two conftest.dir
3124 echo one > conftest.one
3125 echo two > conftest.two
3127 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3128 test -s conftest.one && test -s conftest.two &&
3129 test -s conftest.dir/conftest.one &&
3130 test -s conftest.dir/conftest.two
3132 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3145 rm -rf conftest.one conftest.two conftest.dir
3148 if test ${ac_cv_path_install+y}; then
3149 INSTALL=$ac_cv_path_install
3151 # As a last resort, use the slow shell script. Don't cache a
3152 # value for INSTALL within a source directory, because that will
3153 # break other packages using the cache if that directory is
3154 # removed, or if the value is a relative name.
3155 INSTALL=$ac_install_sh
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3159 printf "%s\n" "$INSTALL" >&6; }
3161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3162 # It thinks the first close brace ends the variable substitution.
3163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3170 printf %s "checking whether build environment is sane... " >&6; }
3171 # Reject unsafe characters in $srcdir or the absolute working directory
3172 # name. Accept space and tab only in the latter.
3176 *[\\\"\#\$\&\'\`$am_lf]*)
3177 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3180 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3181 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3184 # Do 'set' in a subshell so we don't clobber the current shell's
3185 # arguments. Must try -L first in case configure is actually a
3186 # symlink; some systems play weird games with the mod time of symlinks
3187 # (eg FreeBSD returns the mod time of the symlink's containing
3191 for am_try in 1 2; do
3192 echo "timestamp, slept: $am_has_slept" > conftest.file
3193 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3194 if test "$*" = "X"; then
3196 set X `ls -t "$srcdir/configure" conftest.file`
3198 if test "$*" != "X $srcdir/configure conftest.file" \
3199 && test "$*" != "X conftest.file $srcdir/configure"; then
3201 # If neither matched, then we have a broken ls. This can happen
3202 # if, for instance, CONFIG_SHELL is bash and it inherits a
3203 # broken ls alias from the environment. This has actually
3204 # happened. Such a system could not be considered "sane".
3205 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3206 alias in your environment" "$LINENO" 5
3208 if test "$2" = conftest.file || test $am_try -eq 2; then
3215 test "$2" = conftest.file
3221 as_fn_error $? "newly created file is older than distributed files!
3222 Check your system clock" "$LINENO" 5
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 printf "%s\n" "yes" >&6; }
3226 # If we didn't sleep, we still need to ensure time stamps of config.status and
3227 # generated files are strictly newer.
3229 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3236 test "$program_prefix" != NONE &&
3237 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3238 # Use a double $ so make ignores it.
3239 test "$program_suffix" != NONE &&
3240 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3241 # Double any \ or $.
3242 # By default was `s,x,x', remove it if useless.
3243 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3244 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3247 # Expand $ac_aux_dir to an absolute path.
3248 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3251 if test x"${MISSING+set}" != xset; then
3252 MISSING="\${SHELL} '$am_aux_dir/missing'"
3254 # Use eval to expand $SHELL
3255 if eval "$MISSING --is-lightweight"; then
3256 am_missing_run="$MISSING "
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3260 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3263 if test x"${install_sh+set}" != xset; then
3266 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3268 install_sh="\${SHELL} $am_aux_dir/install-sh"
3272 # Installed binaries are usually stripped using 'strip' when the user
3273 # run "make install-strip". However 'strip' might not be the right
3274 # tool to use in cross-compilation environments, therefore Automake
3275 # will honor the 'STRIP' environment variable to overrule this program.
3276 if test "$cross_compiling" != no; then
3277 if test -n "$ac_tool_prefix"; then
3278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3279 set dummy ${ac_tool_prefix}strip; ac_word=$2
3280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3281 printf %s "checking for $ac_word... " >&6; }
3282 if test ${ac_cv_prog_STRIP+y}
3284 printf %s "(cached) " >&6
3286 if test -n "$STRIP"; then
3287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 case $as_dir in #(((
3296 *) as_dir=$as_dir/ ;;
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3310 STRIP=$ac_cv_prog_STRIP
3311 if test -n "$STRIP"; then
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3313 printf "%s\n" "$STRIP" >&6; }
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 printf "%s\n" "no" >&6; }
3321 if test -z "$ac_cv_prog_STRIP"; then
3323 # Extract the first word of "strip", so it can be a program name with args.
3324 set dummy strip; ac_word=$2
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 printf %s "checking for $ac_word... " >&6; }
3327 if test ${ac_cv_prog_ac_ct_STRIP+y}
3329 printf %s "(cached) " >&6
3331 if test -n "$ac_ct_STRIP"; then
3332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 case $as_dir in #(((
3341 *) as_dir=$as_dir/ ;;
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_STRIP="strip"
3346 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3355 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3356 if test -n "$ac_ct_STRIP"; then
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3358 printf "%s\n" "$ac_ct_STRIP" >&6; }
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 printf "%s\n" "no" >&6; }
3364 if test "x$ac_ct_STRIP" = x; then
3367 case $cross_compiling:$ac_tool_warned in
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3370 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3371 ac_tool_warned=yes ;;
3376 STRIP="$ac_cv_prog_STRIP"
3380 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3384 printf %s "checking for a race-free mkdir -p... " >&6; }
3385 if test -z "$MKDIR_P"; then
3386 if test ${ac_cv_path_mkdir+y}
3388 printf %s "(cached) " >&6
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3394 case $as_dir in #(((
3397 *) as_dir=$as_dir/ ;;
3399 for ac_prog in mkdir gmkdir; do
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3402 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3403 'mkdir ('*'coreutils) '* | \
3405 'mkdir (fileutils) '4.1*)
3406 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3416 test -d ./--version && rmdir ./--version
3417 if test ${ac_cv_path_mkdir+y}; then
3418 MKDIR_P="$ac_cv_path_mkdir -p"
3420 # As a last resort, use the slow shell script. Don't cache a
3421 # value for MKDIR_P within a source directory, because that will
3422 # break other packages using the cache if that directory is
3423 # removed, or if the value is a relative name.
3424 MKDIR_P="$ac_install_sh -d"
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3428 printf "%s\n" "$MKDIR_P" >&6; }
3430 for ac_prog in gawk mawk nawk awk
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 printf %s "checking for $ac_word... " >&6; }
3436 if test ${ac_cv_prog_AWK+y}
3438 printf %s "(cached) " >&6
3440 if test -n "$AWK"; then
3441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 case $as_dir in #(((
3450 *) as_dir=$as_dir/ ;;
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_AWK="$ac_prog"
3455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3465 if test -n "$AWK"; then
3466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3467 printf "%s\n" "$AWK" >&6; }
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 printf "%s\n" "no" >&6; }
3474 test -n "$AWK" && break
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3478 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3480 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3481 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3483 printf %s "(cached) " >&6
3485 cat >conftest.make <<\_ACEOF
3488 @echo '@@@%%%=$(MAKE)=@@@%%%'
3490 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3491 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3493 eval ac_cv_prog_make_${ac_make}_set=yes;;
3495 eval ac_cv_prog_make_${ac_make}_set=no;;
3499 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 printf "%s\n" "yes" >&6; }
3504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 printf "%s\n" "no" >&6; }
3506 SET_MAKE="MAKE=${MAKE-make}"
3509 rm -rf .tst 2>/dev/null
3510 mkdir .tst 2>/dev/null
3511 if test -d .tst; then
3516 rmdir .tst 2>/dev/null
3518 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3519 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3520 # is not polluted with repeated "-I."
3521 am__isrc=' -I$(srcdir)'
3522 # test to see if srcdir already configured
3523 if test -f $srcdir/config.status; then
3524 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3528 # test whether we have cygpath
3529 if test -z "$CYGPATH_W"; then
3530 if (cygpath --version) >/dev/null 2>/dev/null; then
3531 CYGPATH_W='cygpath -w'
3538 # Define the identity of the package.
3539 PACKAGE='cryptsetup'
3543 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3546 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3548 # Some tools Automake needs.
3550 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3553 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3556 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3559 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3562 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3564 # For better backward compatibility. To be removed once Automake 1.9.x
3565 # dies out for good. For more background, see:
3566 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3567 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3568 mkdir_p='$(MKDIR_P)'
3570 # We need awk for the "check" target (and possibly the TAP driver). The
3571 # system "awk" is bad on some platforms.
3572 # Always define AMTAR for backward compatibility. Yes, it's still used
3573 # in the wild :-( We should find a proper way to deprecate it ...
3577 # We'll loop over all known methods to create a tar archive until one works.
3578 _am_tools='gnutar pax cpio none'
3580 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3586 # Variables for tags utilities; see am/tags.am
3587 if test -z "$CTAGS"; then
3591 if test -z "$ETAGS"; then
3595 if test -z "$CSCOPE"; then
3601 # POSIX will say in a future version that running "rm -f" with no argument
3602 # is OK; and we want to be able to make that assumption in our Makefile
3603 # recipes. So use an aggressive probe to check that the usage we want is
3604 # actually supported "in the wild" to an acceptable degree.
3605 # See automake bug#10828.
3606 # To make any issue more visible, cause the running configure to be aborted
3607 # by default if the 'rm' program in use doesn't match our expectations; the
3608 # user can still override this though.
3609 if rm -f && rm -fr && rm -rf; then : OK; else
3613 Your 'rm' program seems unable to run without file operands specified
3614 on the command line, even when the '-f' option is present. This is contrary
3615 to the behaviour of most rm programs out there, and not conforming with
3616 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3618 Please tell bug-automake@gnu.org about your system, including the value
3619 of your $PATH and any error possibly output before this message. This
3620 can help us improve future automake versions.
3623 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3624 echo 'Configuration will proceed anyway, since you have set the' >&2
3625 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3629 Aborting the configuration process, to ensure you take notice of the issue.
3631 You can download and install GNU coreutils to get an 'rm' implementation
3632 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3634 If you want to complete the configuration process using your problematic
3635 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3636 to "yes", and re-run configure.
3639 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3644 if test "x$prefix" = "xNONE"; then
3651 # Make sure we can run config.sub.
3652 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3653 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3656 printf %s "checking build system type... " >&6; }
3657 if test ${ac_cv_build+y}
3659 printf %s "(cached) " >&6
3661 ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3664 test "x$ac_build_alias" = x &&
3665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3666 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3667 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3671 printf "%s\n" "$ac_cv_build" >&6; }
3672 case $ac_cv_build in
3674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3677 ac_save_IFS=$IFS; IFS='-'
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3691 printf %s "checking host system type... " >&6; }
3692 if test ${ac_cv_host+y}
3694 printf %s "(cached) " >&6
3696 if test "x$host_alias" = x; then
3697 ac_cv_host=$ac_cv_build
3699 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3700 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3705 printf "%s\n" "$ac_cv_host" >&6; }
3708 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3711 ac_save_IFS=$IFS; IFS='-'
3717 # Remember, the first character of IFS is used to create $*,
3718 # except with old shells:
3721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3733 DEPDIR="${am__leading_dot}deps"
3735 ac_config_commands="$ac_config_commands depfiles"
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3738 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3739 cat > confinc.mk << 'END'
3741 @echo this is the am__doit target >confinc.out
3746 # BSD make does it like this.
3747 echo '.include "confinc.mk" # ignored' > confmf.BSD
3748 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3749 echo 'include confinc.mk # ignored' > confmf.GNU
3751 for s in GNU BSD; do
3752 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3753 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); }
3757 case $?:`cat confinc.out 2>/dev/null` in #(
3758 '0:this is the am__doit target') :
3761 am__include='.include' am__quote='"' ;; #(
3763 am__include='include' am__quote='' ;;
3768 if test "$am__include" != "#"; then
3769 _am_result="yes ($s style)"
3773 rm -f confinc.* confmf.*
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3775 printf "%s\n" "${_am_result}" >&6; }
3777 # Check whether --enable-dependency-tracking was given.
3778 if test ${enable_dependency_tracking+y}
3780 enableval=$enable_dependency_tracking;
3783 if test "x$enable_dependency_tracking" != xno; then
3784 am_depcomp="$ac_aux_dir/depcomp"
3788 if test "x$enable_dependency_tracking" != xno; then
3798 ac_cpp='$CPP $CPPFLAGS'
3799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802 if test -n "$ac_tool_prefix"; then
3803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 printf %s "checking for $ac_word... " >&6; }
3807 if test ${ac_cv_prog_CC+y}
3809 printf %s "(cached) " >&6
3811 if test -n "$CC"; then
3812 ac_cv_prog_CC="$CC" # Let the user override the test.
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 case $as_dir in #(((
3821 *) as_dir=$as_dir/ ;;
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3836 if test -n "$CC"; then
3837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838 printf "%s\n" "$CC" >&6; }
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 printf "%s\n" "no" >&6; }
3846 if test -z "$ac_cv_prog_CC"; then
3848 # Extract the first word of "gcc", so it can be a program name with args.
3849 set dummy gcc; ac_word=$2
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 printf %s "checking for $ac_word... " >&6; }
3852 if test ${ac_cv_prog_ac_ct_CC+y}
3854 printf %s "(cached) " >&6
3856 if test -n "$ac_ct_CC"; then
3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 case $as_dir in #(((
3866 *) as_dir=$as_dir/ ;;
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CC="gcc"
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 printf "%s\n" "$ac_ct_CC" >&6; }
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3889 if test "x$ac_ct_CC" = x; then
3892 case $cross_compiling:$ac_tool_warned in
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3896 ac_tool_warned=yes ;;
3904 if test -z "$CC"; then
3905 if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3907 set dummy ${ac_tool_prefix}cc; ac_word=$2
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909 printf %s "checking for $ac_word... " >&6; }
3910 if test ${ac_cv_prog_CC+y}
3912 printf %s "(cached) " >&6
3914 if test -n "$CC"; then
3915 ac_cv_prog_CC="$CC" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 case $as_dir in #(((
3924 *) as_dir=$as_dir/ ;;
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_CC="${ac_tool_prefix}cc"
3929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3939 if test -n "$CC"; then
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 printf "%s\n" "$CC" >&6; }
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 printf "%s\n" "no" >&6; }
3950 if test -z "$CC"; then
3951 # Extract the first word of "cc", so it can be a program name with args.
3952 set dummy cc; ac_word=$2
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 printf %s "checking for $ac_word... " >&6; }
3955 if test ${ac_cv_prog_CC+y}
3957 printf %s "(cached) " >&6
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 case $as_dir in #(((
3970 *) as_dir=$as_dir/ ;;
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3974 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3975 ac_prog_rejected=yes
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3986 if test $ac_prog_rejected = yes; then
3987 # We found a bogon in the path, so make sure we never use it.
3988 set dummy $ac_cv_prog_CC
3990 if test $# != 0; then
3991 # We chose a different compiler from the bogus one.
3992 # However, it has the same basename, so the bogon will be chosen
3993 # first if we set CC to just the basename; use the full file name.
3995 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4001 if test -n "$CC"; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4003 printf "%s\n" "$CC" >&6; }
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4011 if test -z "$CC"; then
4012 if test -n "$ac_tool_prefix"; then
4013 for ac_prog in cl.exe
4015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018 printf %s "checking for $ac_word... " >&6; }
4019 if test ${ac_cv_prog_CC+y}
4021 printf %s "(cached) " >&6
4023 if test -n "$CC"; then
4024 ac_cv_prog_CC="$CC" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 case $as_dir in #(((
4033 *) as_dir=$as_dir/ ;;
4035 for ac_exec_ext in '' $ac_executable_extensions; do
4036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 if test -n "$CC"; then
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050 printf "%s\n" "$CC" >&6; }
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4057 test -n "$CC" && break
4060 if test -z "$CC"; then
4062 for ac_prog in cl.exe
4064 # Extract the first word of "$ac_prog", so it can be a program name with args.
4065 set dummy $ac_prog; ac_word=$2
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4067 printf %s "checking for $ac_word... " >&6; }
4068 if test ${ac_cv_prog_ac_ct_CC+y}
4070 printf %s "(cached) " >&6
4072 if test -n "$ac_ct_CC"; then
4073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 case $as_dir in #(((
4082 *) as_dir=$as_dir/ ;;
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4086 ac_cv_prog_ac_ct_CC="$ac_prog"
4087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4097 if test -n "$ac_ct_CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4099 printf "%s\n" "$ac_ct_CC" >&6; }
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4106 test -n "$ac_ct_CC" && break
4109 if test "x$ac_ct_CC" = x; then
4112 case $cross_compiling:$ac_tool_warned in
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4116 ac_tool_warned=yes ;;
4123 if test -z "$CC"; then
4124 if test -n "$ac_tool_prefix"; then
4125 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4126 set dummy ${ac_tool_prefix}clang; ac_word=$2
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 printf %s "checking for $ac_word... " >&6; }
4129 if test ${ac_cv_prog_CC+y}
4131 printf %s "(cached) " >&6
4133 if test -n "$CC"; then
4134 ac_cv_prog_CC="$CC" # Let the user override the test.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 case $as_dir in #(((
4143 *) as_dir=$as_dir/ ;;
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_CC="${ac_tool_prefix}clang"
4148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4158 if test -n "$CC"; then
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4160 printf "%s\n" "$CC" >&6; }
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4168 if test -z "$ac_cv_prog_CC"; then
4170 # Extract the first word of "clang", so it can be a program name with args.
4171 set dummy clang; ac_word=$2
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4173 printf %s "checking for $ac_word... " >&6; }
4174 if test ${ac_cv_prog_ac_ct_CC+y}
4176 printf %s "(cached) " >&6
4178 if test -n "$ac_ct_CC"; then
4179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 case $as_dir in #(((
4188 *) as_dir=$as_dir/ ;;
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_ac_ct_CC="clang"
4193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4203 if test -n "$ac_ct_CC"; then
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4205 printf "%s\n" "$ac_ct_CC" >&6; }
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 printf "%s\n" "no" >&6; }
4211 if test "x$ac_ct_CC" = x; then
4214 case $cross_compiling:$ac_tool_warned in
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4218 ac_tool_warned=yes ;;
4229 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4231 as_fn_error $? "no acceptable C compiler found in \$PATH
4232 See \`config.log' for more details" "$LINENO" 5; }
4234 # Provide some information about the compiler.
4235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4238 for ac_option in --version -v -V -qversion -version; do
4239 { { ac_try="$ac_compiler $ac_option >&5"
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4245 printf "%s\n" "$ac_try_echo"; } >&5
4246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4248 if test -s conftest.err; then
4250 ... rest of stderr output deleted ...
4251 10q' conftest.err >conftest.er1
4252 cat conftest.er1 >&5
4254 rm -f conftest.er1 conftest.err
4255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4256 test $ac_status = 0; }
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4270 ac_clean_files_save=$ac_clean_files
4271 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4272 # Try to create an executable without -o first, disregard a.out.
4273 # It will help us diagnose broken compilers, and finding out an intuition
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4276 printf %s "checking whether the C compiler works... " >&6; }
4277 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4279 # The possible output files:
4280 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4283 for ac_file in $ac_files
4286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4287 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4292 if { { ac_try="$ac_link_default"
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 printf "%s\n" "$ac_try_echo"; } >&5
4299 (eval "$ac_link_default") 2>&5
4301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }
4304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4307 # so that the user can short-circuit this test for compilers unknown to
4309 for ac_file in $ac_files ''
4311 test -f "$ac_file" || continue
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4316 # We found the default executable, but exeext='' is most
4320 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4322 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4324 # We set ac_cv_exeext here because the later test for it is not
4325 # safe: cross compilers may not add the suffix if given an `-o'
4326 # argument, so we may need to know it at that point already.
4327 # Even if this section looks crufty: it has the advantage of
4334 test "$ac_cv_exeext" = no && ac_cv_exeext=
4339 if test -z "$ac_file"
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4342 printf "%s\n" "no" >&6; }
4343 printf "%s\n" "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4346 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4347 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4348 as_fn_error 77 "C compiler cannot create executables
4349 See \`config.log' for more details" "$LINENO" 5; }
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352 printf "%s\n" "yes" >&6; }
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4355 printf %s "checking for C compiler default output file name... " >&6; }
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4357 printf "%s\n" "$ac_file" >&6; }
4358 ac_exeext=$ac_cv_exeext
4360 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4361 ac_clean_files=$ac_clean_files_save
4362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4363 printf %s "checking for suffix of executables... " >&6; }
4364 if { { ac_try="$ac_link"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4370 printf "%s\n" "$ac_try_echo"; } >&5
4371 (eval "$ac_link") 2>&5
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4374 test $ac_status = 0; }
4376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4378 # work properly (i.e., refer to `conftest.exe'), while it won't with
4380 for ac_file in conftest.exe conftest conftest.*; do
4381 test -f "$ac_file" || continue
4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4392 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4393 See \`config.log' for more details" "$LINENO" 5; }
4395 rm -f conftest conftest$ac_cv_exeext
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397 printf "%s\n" "$ac_cv_exeext" >&6; }
4399 rm -f conftest.$ac_ext
4400 EXEEXT=$ac_cv_exeext
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4408 FILE *f = fopen ("conftest.out", "w");
4409 return ferror (f) || fclose (f) != 0;
4415 ac_clean_files="$ac_clean_files conftest.out"
4416 # Check that the compiler produces executables we can run. If not, either
4417 # the compiler is broken, or we cross compile.
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4419 printf %s "checking whether we are cross compiling... " >&6; }
4420 if test "$cross_compiling" != yes; then
4421 { { ac_try="$ac_link"
4423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424 *) ac_try_echo=$ac_try;;
4426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4427 printf "%s\n" "$ac_try_echo"; } >&5
4428 (eval "$ac_link") 2>&5
4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4431 test $ac_status = 0; }
4432 if { ac_try='./conftest$ac_cv_exeext'
4433 { { case "(($ac_try" in
4434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435 *) ac_try_echo=$ac_try;;
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 printf "%s\n" "$ac_try_echo"; } >&5
4439 (eval "$ac_try") 2>&5
4441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442 test $ac_status = 0; }; }; then
4445 if test "$cross_compiling" = maybe; then
4448 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4450 as_fn_error 77 "cannot run C compiled programs.
4451 If you meant to cross compile, use \`--host'.
4452 See \`config.log' for more details" "$LINENO" 5; }
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4457 printf "%s\n" "$cross_compiling" >&6; }
4459 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4460 ac_clean_files=$ac_clean_files_save
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4462 printf %s "checking for suffix of object files... " >&6; }
4463 if test ${ac_cv_objext+y}
4465 printf %s "(cached) " >&6
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4478 rm -f conftest.o conftest.obj
4479 if { { ac_try="$ac_compile"
4481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4485 printf "%s\n" "$ac_try_echo"; } >&5
4486 (eval "$ac_compile") 2>&5
4488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4489 test $ac_status = 0; }
4491 for ac_file in conftest.o conftest.obj conftest.*; do
4492 test -f "$ac_file" || continue;
4494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4495 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4500 printf "%s\n" "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $? "cannot compute suffix of object files: cannot compile
4506 See \`config.log' for more details" "$LINENO" 5; }
4508 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4511 printf "%s\n" "$ac_cv_objext" >&6; }
4512 OBJEXT=$ac_cv_objext
4514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4515 printf %s "checking whether the compiler supports GNU C... " >&6; }
4516 if test ${ac_cv_c_compiler_gnu+y}
4518 printf %s "(cached) " >&6
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4534 if ac_fn_c_try_compile "$LINENO"
4540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4541 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4545 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548 if test $ac_compiler_gnu = yes; then
4553 ac_test_CFLAGS=${CFLAGS+y}
4554 ac_save_CFLAGS=$CFLAGS
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4556 printf %s "checking whether $CC accepts -g... " >&6; }
4557 if test ${ac_cv_prog_cc_g+y}
4559 printf %s "(cached) " >&6
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4576 if ac_fn_c_try_compile "$LINENO"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4592 if ac_fn_c_try_compile "$LINENO"
4596 ac_c_werror_flag=$ac_save_c_werror_flag
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 if ac_fn_c_try_compile "$LINENO"
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4618 ac_c_werror_flag=$ac_save_c_werror_flag
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4621 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4622 if test $ac_test_CFLAGS; then
4623 CFLAGS=$ac_save_CFLAGS
4624 elif test $ac_cv_prog_cc_g = yes; then
4625 if test "$GCC" = yes; then
4631 if test "$GCC" = yes; then
4638 if test x$ac_prog_cc_stdc = xno
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4641 printf %s "checking for $CC option to enable C11 features... " >&6; }
4642 if test ${ac_cv_prog_cc_c11+y}
4644 printf %s "(cached) " >&6
4646 ac_cv_prog_cc_c11=no
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h. */
4650 $ac_c_conftest_c11_program
4652 for ac_arg in '' -std=gnu11
4654 CC="$ac_save_CC $ac_arg"
4655 if ac_fn_c_try_compile "$LINENO"
4657 ac_cv_prog_cc_c11=$ac_arg
4659 rm -f core conftest.err conftest.$ac_objext conftest.beam
4660 test "x$ac_cv_prog_cc_c11" != "xno" && break
4662 rm -f conftest.$ac_ext
4666 if test "x$ac_cv_prog_cc_c11" = xno
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4669 printf "%s\n" "unsupported" >&6; }
4671 if test "x$ac_cv_prog_cc_c11" = x
4673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4674 printf "%s\n" "none needed" >&6; }
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4677 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4678 CC="$CC $ac_cv_prog_cc_c11"
4680 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4684 if test x$ac_prog_cc_stdc = xno
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4687 printf %s "checking for $CC option to enable C99 features... " >&6; }
4688 if test ${ac_cv_prog_cc_c99+y}
4690 printf %s "(cached) " >&6
4692 ac_cv_prog_cc_c99=no
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696 $ac_c_conftest_c99_program
4698 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4700 CC="$ac_save_CC $ac_arg"
4701 if ac_fn_c_try_compile "$LINENO"
4703 ac_cv_prog_cc_c99=$ac_arg
4705 rm -f core conftest.err conftest.$ac_objext conftest.beam
4706 test "x$ac_cv_prog_cc_c99" != "xno" && break
4708 rm -f conftest.$ac_ext
4712 if test "x$ac_cv_prog_cc_c99" = xno
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715 printf "%s\n" "unsupported" >&6; }
4717 if test "x$ac_cv_prog_cc_c99" = x
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4720 printf "%s\n" "none needed" >&6; }
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4723 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4724 CC="$CC $ac_cv_prog_cc_c99"
4726 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4730 if test x$ac_prog_cc_stdc = xno
4732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4733 printf %s "checking for $CC option to enable C89 features... " >&6; }
4734 if test ${ac_cv_prog_cc_c89+y}
4736 printf %s "(cached) " >&6
4738 ac_cv_prog_cc_c89=no
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742 $ac_c_conftest_c89_program
4744 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4746 CC="$ac_save_CC $ac_arg"
4747 if ac_fn_c_try_compile "$LINENO"
4749 ac_cv_prog_cc_c89=$ac_arg
4751 rm -f core conftest.err conftest.$ac_objext conftest.beam
4752 test "x$ac_cv_prog_cc_c89" != "xno" && break
4754 rm -f conftest.$ac_ext
4758 if test "x$ac_cv_prog_cc_c89" = xno
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4761 printf "%s\n" "unsupported" >&6; }
4763 if test "x$ac_cv_prog_cc_c89" = x
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766 printf "%s\n" "none needed" >&6; }
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4769 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4770 CC="$CC $ac_cv_prog_cc_c89"
4772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4790 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4791 if test ${am_cv_prog_cc_c_o+y}
4793 printf %s "(cached) " >&6
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4806 # Make sure it works both with $CC and with simple cc.
4807 # Following AC_PROG_CC_C_O, we do the test twice because some
4808 # compilers refuse to overwrite an existing .o file with -o,
4809 # though they will create one.
4810 am_cv_prog_cc_c_o=yes
4812 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4813 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } \
4817 && test -f conftest2.$ac_objext; then
4820 am_cv_prog_cc_c_o=no
4824 rm -f core conftest*
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4828 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4829 if test "$am_cv_prog_cc_c_o" != yes; then
4830 # Losing compiler, so override with the script.
4831 # FIXME: It is wrong to rewrite CC.
4832 # But if we don't then we get into trouble of one sort or another.
4833 # A longer-term fix would be to have automake use am__CC in this case,
4834 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4835 CC="$am_aux_dir/compile $CC"
4838 ac_cpp='$CPP $CPPFLAGS'
4839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 depcc="$CC" am_compiler_list=
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4847 printf %s "checking dependency style of $depcc... " >&6; }
4848 if test ${am_cv_CC_dependencies_compiler_type+y}
4850 printf %s "(cached) " >&6
4852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4853 # We make a subdir and do the tests there. Otherwise we can end up
4854 # making bogus files that we don't know about and never remove. For
4855 # instance it was reported that on HP-UX the gcc test will end up
4856 # making a dummy file named 'D' -- because '-MD' means "put the output
4860 # Copy depcomp to subdir because otherwise we won't find it if we're
4861 # using a relative directory.
4862 cp "$am_depcomp" conftest.dir
4864 # We will build objects and dependencies in a subdirectory because
4865 # it helps to detect inapplicable dependency modes. For instance
4866 # both Tru64's cc and ICC support -MD to output dependencies as a
4867 # side effect of compilation, but ICC will put the dependencies in
4868 # the current directory while Tru64 will put them in the object
4872 am_cv_CC_dependencies_compiler_type=none
4873 if test "$am_compiler_list" = ""; then
4874 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4877 case " $depcc " in #(
4878 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4881 for depmode in $am_compiler_list; do
4882 # Setup a source with many dependencies, because some compilers
4883 # like to wrap large dependency lists on column 80 (with \), and
4884 # we should not choose a depcomp mode which is confused by this.
4886 # We need to recreate these files for each test, as the compiler may
4887 # overwrite some of them when testing with obscure command lines.
4888 # This happens at least with the AIX C compiler.
4890 for i in 1 2 3 4 5 6; do
4891 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4892 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4893 # Solaris 10 /bin/sh.
4894 echo '/* dummy */' > sub/conftst$i.h
4896 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4898 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4899 # mode. It turns out that the SunPro C++ compiler does not properly
4900 # handle '-M -o', and we need to detect this. Also, some Intel
4901 # versions had trouble with output in subdirs.
4902 am__obj=sub/conftest.${OBJEXT-o}
4903 am__minus_obj="-o $am__obj"
4906 # This depmode causes a compiler race in universal mode.
4907 test "$am__universal" = false || continue
4910 # After this tag, mechanisms are not by side-effect, so they'll
4911 # only be used when explicitly requested.
4912 if test "x$enable_dependency_tracking" = xyes; then
4918 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4919 # This compiler won't grok '-c -o', but also, the minuso test has
4920 # not run yet. These depmodes are late enough in the game, and
4921 # so weak that their functioning should not be impacted.
4922 am__obj=conftest.${OBJEXT-o}
4927 if depmode=$depmode \
4928 source=sub/conftest.c object=$am__obj \
4929 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4930 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4931 >/dev/null 2>conftest.err &&
4932 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4933 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4934 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4935 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4936 # icc doesn't choke on unknown options, it will just issue warnings
4937 # or remarks (even with -Werror). So we grep stderr for any message
4938 # that says an option was ignored or not supported.
4939 # When given -MP, icc 7.0 and 7.1 complain thusly:
4940 # icc: Command line warning: ignoring option '-M'; no argument required
4941 # The diagnosis changed in icc 8.0:
4942 # icc: Command line remark: option '-MP' not supported
4943 if (grep 'ignoring option' conftest.err ||
4944 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4945 am_cv_CC_dependencies_compiler_type=$depmode
4954 am_cv_CC_dependencies_compiler_type=none
4958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4959 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4963 test "x$enable_dependency_tracking" != xno \
4964 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4966 am__fastdepCC_FALSE='#'
4968 am__fastdepCC_TRUE='#'
4969 am__fastdepCC_FALSE=
4974 ac_header= ac_cache=
4975 for ac_item in $ac_header_c_list
4977 if test $ac_cache; then
4978 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4979 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4980 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4982 ac_header= ac_cache=
4983 elif test $ac_header; then
4997 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5000 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5010 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5011 if test ${ac_cv_safe_to_define___extensions__+y}
5013 printf %s "(cached) " >&6
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5018 # define __EXTENSIONS__ 1
5019 $ac_includes_default
5028 if ac_fn_c_try_compile "$LINENO"
5030 ac_cv_safe_to_define___extensions__=yes
5032 ac_cv_safe_to_define___extensions__=no
5034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5037 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5040 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5041 if test ${ac_cv_should_define__xopen_source+y}
5043 printf %s "(cached) " >&6
5045 ac_cv_should_define__xopen_source=no
5046 if test $ac_cv_header_wchar_h = yes
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5061 if ac_fn_c_try_compile "$LINENO"
5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5068 #define _XOPEN_SOURCE 500
5079 if ac_fn_c_try_compile "$LINENO"
5081 ac_cv_should_define__xopen_source=yes
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5089 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5091 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5093 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5095 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5097 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5099 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5101 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5103 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5105 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5107 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5109 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5111 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5113 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5115 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5117 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5119 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5121 if test $ac_cv_header_minix_config_h = yes
5124 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5126 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5128 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5133 if test $ac_cv_safe_to_define___extensions__ = yes
5135 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5138 if test $ac_cv_should_define__xopen_source = yes
5140 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 printf %s "checking for $ac_word... " >&6; }
5154 if test ${ac_cv_prog_CC+y}
5156 printf %s "(cached) " >&6
5158 if test -n "$CC"; then
5159 ac_cv_prog_CC="$CC" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 case $as_dir in #(((
5168 *) as_dir=$as_dir/ ;;
5170 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5172 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5183 if test -n "$CC"; then
5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5185 printf "%s\n" "$CC" >&6; }
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 printf "%s\n" "no" >&6; }
5193 if test -z "$ac_cv_prog_CC"; then
5195 # Extract the first word of "gcc", so it can be a program name with args.
5196 set dummy gcc; ac_word=$2
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5198 printf %s "checking for $ac_word... " >&6; }
5199 if test ${ac_cv_prog_ac_ct_CC+y}
5201 printf %s "(cached) " >&6
5203 if test -n "$ac_ct_CC"; then
5204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 case $as_dir in #(((
5213 *) as_dir=$as_dir/ ;;
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_ac_ct_CC="gcc"
5218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5228 if test -n "$ac_ct_CC"; then
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5230 printf "%s\n" "$ac_ct_CC" >&6; }
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 printf "%s\n" "no" >&6; }
5236 if test "x$ac_ct_CC" = x; then
5239 case $cross_compiling:$ac_tool_warned in
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5242 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5243 ac_tool_warned=yes ;;
5251 if test -z "$CC"; then
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}cc; ac_word=$2
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 printf %s "checking for $ac_word... " >&6; }
5257 if test ${ac_cv_prog_CC+y}
5259 printf %s "(cached) " >&6
5261 if test -n "$CC"; then
5262 ac_cv_prog_CC="$CC" # Let the user override the test.
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 case $as_dir in #(((
5271 *) as_dir=$as_dir/ ;;
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5275 ac_cv_prog_CC="${ac_tool_prefix}cc"
5276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5286 if test -n "$CC"; then
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5288 printf "%s\n" "$CC" >&6; }
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 printf "%s\n" "no" >&6; }
5297 if test -z "$CC"; then
5298 # Extract the first word of "cc", so it can be a program name with args.
5299 set dummy cc; ac_word=$2
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 printf %s "checking for $ac_word... " >&6; }
5302 if test ${ac_cv_prog_CC+y}
5304 printf %s "(cached) " >&6
5306 if test -n "$CC"; then
5307 ac_cv_prog_CC="$CC" # Let the user override the test.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 case $as_dir in #(((
5317 *) as_dir=$as_dir/ ;;
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5321 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5322 ac_prog_rejected=yes
5326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5333 if test $ac_prog_rejected = yes; then
5334 # We found a bogon in the path, so make sure we never use it.
5335 set dummy $ac_cv_prog_CC
5337 if test $# != 0; then
5338 # We chose a different compiler from the bogus one.
5339 # However, it has the same basename, so the bogon will be chosen
5340 # first if we set CC to just the basename; use the full file name.
5342 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5348 if test -n "$CC"; then
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 printf "%s\n" "$CC" >&6; }
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 printf "%s\n" "no" >&6; }
5358 if test -z "$CC"; then
5359 if test -n "$ac_tool_prefix"; then
5360 for ac_prog in cl.exe
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 printf %s "checking for $ac_word... " >&6; }
5366 if test ${ac_cv_prog_CC+y}
5368 printf %s "(cached) " >&6
5370 if test -n "$CC"; then
5371 ac_cv_prog_CC="$CC" # Let the user override the test.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 case $as_dir in #(((
5380 *) as_dir=$as_dir/ ;;
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5384 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 if test -n "$CC"; then
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5397 printf "%s\n" "$CC" >&6; }
5399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 printf "%s\n" "no" >&6; }
5404 test -n "$CC" && break
5407 if test -z "$CC"; then
5409 for ac_prog in cl.exe
5411 # Extract the first word of "$ac_prog", so it can be a program name with args.
5412 set dummy $ac_prog; ac_word=$2
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414 printf %s "checking for $ac_word... " >&6; }
5415 if test ${ac_cv_prog_ac_ct_CC+y}
5417 printf %s "(cached) " >&6
5419 if test -n "$ac_ct_CC"; then
5420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 case $as_dir in #(((
5429 *) as_dir=$as_dir/ ;;
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_ac_ct_CC="$ac_prog"
5434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5444 if test -n "$ac_ct_CC"; then
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5446 printf "%s\n" "$ac_ct_CC" >&6; }
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 printf "%s\n" "no" >&6; }
5453 test -n "$ac_ct_CC" && break
5456 if test "x$ac_ct_CC" = x; then
5459 case $cross_compiling:$ac_tool_warned in
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5463 ac_tool_warned=yes ;;
5470 if test -z "$CC"; then
5471 if test -n "$ac_tool_prefix"; then
5472 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5473 set dummy ${ac_tool_prefix}clang; ac_word=$2
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 printf %s "checking for $ac_word... " >&6; }
5476 if test ${ac_cv_prog_CC+y}
5478 printf %s "(cached) " >&6
5480 if test -n "$CC"; then
5481 ac_cv_prog_CC="$CC" # Let the user override the test.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 case $as_dir in #(((
5490 *) as_dir=$as_dir/ ;;
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5494 ac_cv_prog_CC="${ac_tool_prefix}clang"
5495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5505 if test -n "$CC"; then
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5507 printf "%s\n" "$CC" >&6; }
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 printf "%s\n" "no" >&6; }
5515 if test -z "$ac_cv_prog_CC"; then
5517 # Extract the first word of "clang", so it can be a program name with args.
5518 set dummy clang; ac_word=$2
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 printf %s "checking for $ac_word... " >&6; }
5521 if test ${ac_cv_prog_ac_ct_CC+y}
5523 printf %s "(cached) " >&6
5525 if test -n "$ac_ct_CC"; then
5526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 case $as_dir in #(((
5535 *) as_dir=$as_dir/ ;;
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5539 ac_cv_prog_ac_ct_CC="clang"
5540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5550 if test -n "$ac_ct_CC"; then
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5552 printf "%s\n" "$ac_ct_CC" >&6; }
5554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 printf "%s\n" "no" >&6; }
5558 if test "x$ac_ct_CC" = x; then
5561 case $cross_compiling:$ac_tool_warned in
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5576 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5578 as_fn_error $? "no acceptable C compiler found in \$PATH
5579 See \`config.log' for more details" "$LINENO" 5; }
5581 # Provide some information about the compiler.
5582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5585 for ac_option in --version -v -V -qversion -version; do
5586 { { ac_try="$ac_compiler $ac_option >&5"
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5592 printf "%s\n" "$ac_try_echo"; } >&5
5593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5595 if test -s conftest.err; then
5597 ... rest of stderr output deleted ...
5598 10q' conftest.err >conftest.er1
5599 cat conftest.er1 >&5
5601 rm -f conftest.er1 conftest.err
5602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5603 test $ac_status = 0; }
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5607 printf %s "checking whether the compiler supports GNU C... " >&6; }
5608 if test ${ac_cv_c_compiler_gnu+y}
5610 printf %s "(cached) " >&6
5612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5613 /* end confdefs.h. */
5626 if ac_fn_c_try_compile "$LINENO"
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5637 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 if test $ac_compiler_gnu = yes; then
5645 ac_test_CFLAGS=${CFLAGS+y}
5646 ac_save_CFLAGS=$CFLAGS
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5648 printf %s "checking whether $CC accepts -g... " >&6; }
5649 if test ${ac_cv_prog_cc_g+y}
5651 printf %s "(cached) " >&6
5653 ac_save_c_werror_flag=$ac_c_werror_flag
5654 ac_c_werror_flag=yes
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5668 if ac_fn_c_try_compile "$LINENO"
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5684 if ac_fn_c_try_compile "$LINENO"
5688 ac_c_werror_flag=$ac_save_c_werror_flag
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5701 if ac_fn_c_try_compile "$LINENO"
5705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5710 ac_c_werror_flag=$ac_save_c_werror_flag
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5713 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5714 if test $ac_test_CFLAGS; then
5715 CFLAGS=$ac_save_CFLAGS
5716 elif test $ac_cv_prog_cc_g = yes; then
5717 if test "$GCC" = yes; then
5723 if test "$GCC" = yes; then
5730 if test x$ac_prog_cc_stdc = xno
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5733 printf %s "checking for $CC option to enable C11 features... " >&6; }
5734 if test ${ac_cv_prog_cc_c11+y}
5736 printf %s "(cached) " >&6
5738 ac_cv_prog_cc_c11=no
5740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741 /* end confdefs.h. */
5742 $ac_c_conftest_c11_program
5744 for ac_arg in '' -std=gnu11
5746 CC="$ac_save_CC $ac_arg"
5747 if ac_fn_c_try_compile "$LINENO"
5749 ac_cv_prog_cc_c11=$ac_arg
5751 rm -f core conftest.err conftest.$ac_objext conftest.beam
5752 test "x$ac_cv_prog_cc_c11" != "xno" && break
5754 rm -f conftest.$ac_ext
5758 if test "x$ac_cv_prog_cc_c11" = xno
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5761 printf "%s\n" "unsupported" >&6; }
5763 if test "x$ac_cv_prog_cc_c11" = x
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5766 printf "%s\n" "none needed" >&6; }
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5769 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5770 CC="$CC $ac_cv_prog_cc_c11"
5772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5776 if test x$ac_prog_cc_stdc = xno
5778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5779 printf %s "checking for $CC option to enable C99 features... " >&6; }
5780 if test ${ac_cv_prog_cc_c99+y}
5782 printf %s "(cached) " >&6
5784 ac_cv_prog_cc_c99=no
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 $ac_c_conftest_c99_program
5790 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5792 CC="$ac_save_CC $ac_arg"
5793 if ac_fn_c_try_compile "$LINENO"
5795 ac_cv_prog_cc_c99=$ac_arg
5797 rm -f core conftest.err conftest.$ac_objext conftest.beam
5798 test "x$ac_cv_prog_cc_c99" != "xno" && break
5800 rm -f conftest.$ac_ext
5804 if test "x$ac_cv_prog_cc_c99" = xno
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5807 printf "%s\n" "unsupported" >&6; }
5809 if test "x$ac_cv_prog_cc_c99" = x
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5812 printf "%s\n" "none needed" >&6; }
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5815 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5816 CC="$CC $ac_cv_prog_cc_c99"
5818 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5822 if test x$ac_prog_cc_stdc = xno
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5825 printf %s "checking for $CC option to enable C89 features... " >&6; }
5826 if test ${ac_cv_prog_cc_c89+y}
5828 printf %s "(cached) " >&6
5830 ac_cv_prog_cc_c89=no
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 $ac_c_conftest_c89_program
5836 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5838 CC="$ac_save_CC $ac_arg"
5839 if ac_fn_c_try_compile "$LINENO"
5841 ac_cv_prog_cc_c89=$ac_arg
5843 rm -f core conftest.err conftest.$ac_objext conftest.beam
5844 test "x$ac_cv_prog_cc_c89" != "xno" && break
5846 rm -f conftest.$ac_ext
5850 if test "x$ac_cv_prog_cc_c89" = xno
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5853 printf "%s\n" "unsupported" >&6; }
5855 if test "x$ac_cv_prog_cc_c89" = x
5857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5858 printf "%s\n" "none needed" >&6; }
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5861 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5862 CC="$CC $ac_cv_prog_cc_c89"
5864 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5870 ac_cpp='$CPP $CPPFLAGS'
5871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5877 ac_cpp='$CPP $CPPFLAGS'
5878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5882 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5883 if test ${am_cv_prog_cc_c_o+y}
5885 printf %s "(cached) " >&6
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5898 # Make sure it works both with $CC and with simple cc.
5899 # Following AC_PROG_CC_C_O, we do the test twice because some
5900 # compilers refuse to overwrite an existing .o file with -o,
5901 # though they will create one.
5902 am_cv_prog_cc_c_o=yes
5904 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5905 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } \
5909 && test -f conftest2.$ac_objext; then
5912 am_cv_prog_cc_c_o=no
5916 rm -f core conftest*
5919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5920 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5921 if test "$am_cv_prog_cc_c_o" != yes; then
5922 # Losing compiler, so override with the script.
5923 # FIXME: It is wrong to rewrite CC.
5924 # But if we don't then we get into trouble of one sort or another.
5925 # A longer-term fix would be to have automake use am__CC in this case,
5926 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5927 CC="$am_aux_dir/compile $CC"
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936 depcc="$CC" am_compiler_list=
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5939 printf %s "checking dependency style of $depcc... " >&6; }
5940 if test ${am_cv_CC_dependencies_compiler_type+y}
5942 printf %s "(cached) " >&6
5944 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5945 # We make a subdir and do the tests there. Otherwise we can end up
5946 # making bogus files that we don't know about and never remove. For
5947 # instance it was reported that on HP-UX the gcc test will end up
5948 # making a dummy file named 'D' -- because '-MD' means "put the output
5952 # Copy depcomp to subdir because otherwise we won't find it if we're
5953 # using a relative directory.
5954 cp "$am_depcomp" conftest.dir
5956 # We will build objects and dependencies in a subdirectory because
5957 # it helps to detect inapplicable dependency modes. For instance
5958 # both Tru64's cc and ICC support -MD to output dependencies as a
5959 # side effect of compilation, but ICC will put the dependencies in
5960 # the current directory while Tru64 will put them in the object
5964 am_cv_CC_dependencies_compiler_type=none
5965 if test "$am_compiler_list" = ""; then
5966 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5969 case " $depcc " in #(
5970 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5973 for depmode in $am_compiler_list; do
5974 # Setup a source with many dependencies, because some compilers
5975 # like to wrap large dependency lists on column 80 (with \), and
5976 # we should not choose a depcomp mode which is confused by this.
5978 # We need to recreate these files for each test, as the compiler may
5979 # overwrite some of them when testing with obscure command lines.
5980 # This happens at least with the AIX C compiler.
5982 for i in 1 2 3 4 5 6; do
5983 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5984 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5985 # Solaris 10 /bin/sh.
5986 echo '/* dummy */' > sub/conftst$i.h
5988 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5990 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5991 # mode. It turns out that the SunPro C++ compiler does not properly
5992 # handle '-M -o', and we need to detect this. Also, some Intel
5993 # versions had trouble with output in subdirs.
5994 am__obj=sub/conftest.${OBJEXT-o}
5995 am__minus_obj="-o $am__obj"
5998 # This depmode causes a compiler race in universal mode.
5999 test "$am__universal" = false || continue
6002 # After this tag, mechanisms are not by side-effect, so they'll
6003 # only be used when explicitly requested.
6004 if test "x$enable_dependency_tracking" = xyes; then
6010 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6011 # This compiler won't grok '-c -o', but also, the minuso test has
6012 # not run yet. These depmodes are late enough in the game, and
6013 # so weak that their functioning should not be impacted.
6014 am__obj=conftest.${OBJEXT-o}
6019 if depmode=$depmode \
6020 source=sub/conftest.c object=$am__obj \
6021 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6022 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6023 >/dev/null 2>conftest.err &&
6024 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6025 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6026 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6027 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6028 # icc doesn't choke on unknown options, it will just issue warnings
6029 # or remarks (even with -Werror). So we grep stderr for any message
6030 # that says an option was ignored or not supported.
6031 # When given -MP, icc 7.0 and 7.1 complain thusly:
6032 # icc: Command line warning: ignoring option '-M'; no argument required
6033 # The diagnosis changed in icc 8.0:
6034 # icc: Command line remark: option '-MP' not supported
6035 if (grep 'ignoring option' conftest.err ||
6036 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6037 am_cv_CC_dependencies_compiler_type=$depmode
6046 am_cv_CC_dependencies_compiler_type=none
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6051 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6052 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6055 test "x$enable_dependency_tracking" != xno \
6056 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6058 am__fastdepCC_FALSE='#'
6060 am__fastdepCC_TRUE='#'
6061 am__fastdepCC_FALSE=
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6072 printf %s "checking how to run the C preprocessor... " >&6; }
6073 # On Suns, sometimes $CPP names a directory.
6074 if test -n "$CPP" && test -d "$CPP"; then
6077 if test -z "$CPP"; then
6078 if test ${ac_cv_prog_CPP+y}
6080 printf %s "(cached) " >&6
6082 # Double quotes because $CC needs to be expanded
6083 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6086 for ac_c_preproc_warn_flag in '' yes
6088 # Use a header file that comes with gcc, so configuring glibc
6089 # with a fresh cross-compiler works.
6090 # On the NeXT, cc -E runs the code through the compiler's parser,
6091 # not just through cpp. "Syntax error" is here to catch this case.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6097 if ac_fn_c_try_cpp "$LINENO"
6101 # Broken: fails on valid input.
6104 rm -f conftest.err conftest.i conftest.$ac_ext
6106 # OK, works on sane cases. Now check whether nonexistent headers
6107 # can be detected and how.
6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6109 /* end confdefs.h. */
6110 #include <ac_nonexistent.h>
6112 if ac_fn_c_try_cpp "$LINENO"
6114 # Broken: success on invalid input.
6117 # Passes both tests.
6121 rm -f conftest.err conftest.i conftest.$ac_ext
6124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6125 rm -f conftest.i conftest.err conftest.$ac_ext
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6140 printf "%s\n" "$CPP" >&6; }
6142 for ac_c_preproc_warn_flag in '' yes
6144 # Use a header file that comes with gcc, so configuring glibc
6145 # with a fresh cross-compiler works.
6146 # On the NeXT, cc -E runs the code through the compiler's parser,
6147 # not just through cpp. "Syntax error" is here to catch this case.
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6153 if ac_fn_c_try_cpp "$LINENO"
6157 # Broken: fails on valid input.
6160 rm -f conftest.err conftest.i conftest.$ac_ext
6162 # OK, works on sane cases. Now check whether nonexistent headers
6163 # can be detected and how.
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <ac_nonexistent.h>
6168 if ac_fn_c_try_cpp "$LINENO"
6170 # Broken: success on invalid input.
6173 # Passes both tests.
6177 rm -f conftest.err conftest.i conftest.$ac_ext
6180 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6181 rm -f conftest.i conftest.err conftest.$ac_ext
6186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6189 See \`config.log' for more details" "$LINENO" 5; }
6193 ac_cpp='$CPP $CPPFLAGS'
6194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6200 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6202 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6203 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6205 printf %s "(cached) " >&6
6207 cat >conftest.make <<\_ACEOF
6210 @echo '@@@%%%=$(MAKE)=@@@%%%'
6212 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6213 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6215 eval ac_cv_prog_make_${ac_make}_set=yes;;
6217 eval ac_cv_prog_make_${ac_make}_set=no;;
6221 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6223 printf "%s\n" "yes" >&6; }
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 printf "%s\n" "no" >&6; }
6228 SET_MAKE="MAKE=${MAKE-make}"
6231 # Check whether --enable-static was given.
6232 if test ${enable_static+y}
6234 enableval=$enable_static; p=${PACKAGE-default}
6236 yes) enable_static=yes ;;
6237 no) enable_static=no ;;
6240 # Look at the argument we got. We use all the common list separators.
6241 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
6242 for pkg in $enableval; do
6244 if test "X$pkg" = "X$p"; then
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6266 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6271 macro_version='2.4.6'
6272 macro_revision='2.4.6'
6287 ltmain=$ac_aux_dir/ltmain.sh
6289 # Backslashify metacharacters that are still active within
6290 # double-quoted strings.
6291 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6293 # Same as above, but do not quote variable references.
6294 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6296 # Sed substitution to delay expansion of an escaped shell variable in a
6297 # double_quote_subst'ed string.
6298 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6300 # Sed substitution to delay expansion of an escaped single quote.
6301 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6303 # Sed substitution to avoid accidental globbing in evaled expressions
6304 no_glob_subst='s/\*/\\\*/g'
6306 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6308 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6311 printf %s "checking how to print strings... " >&6; }
6312 # Test print first, because it will be a builtin if present.
6313 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6314 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6316 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6319 # Use this function as a fallback that always works.
6320 func_fallback_echo ()
6322 eval 'cat <<_LTECHO_EOF
6326 ECHO='func_fallback_echo'
6329 # func_echo_all arg...
6330 # Invoke $ECHO with all args, space-separated.
6337 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6338 printf "%s\n" "printf" >&6; } ;;
6339 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6340 printf "%s\n" "print -r" >&6; } ;;
6341 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6342 printf "%s\n" "cat" >&6; } ;;
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6359 printf %s "checking for a sed that does not truncate output... " >&6; }
6360 if test ${ac_cv_path_SED+y}
6362 printf %s "(cached) " >&6
6364 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6365 for ac_i in 1 2 3 4 5 6 7; do
6366 ac_script="$ac_script$as_nl$ac_script"
6368 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6369 { ac_script=; unset ac_script;}
6370 if test -z "$SED"; then
6371 ac_path_SED_found=false
6372 # Loop through the user's path and test for each of PROGNAME-LIST
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 case $as_dir in #(((
6380 *) as_dir=$as_dir/ ;;
6382 for ac_prog in sed gsed
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6386 as_fn_executable_p "$ac_path_SED" || continue
6387 # Check for GNU ac_path_SED and select it if it is found.
6388 # Check for GNU $ac_path_SED
6389 case `"$ac_path_SED" --version 2>&1` in
6391 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6394 printf %s 0123456789 >"conftest.in"
6397 cat "conftest.in" "conftest.in" >"conftest.tmp"
6398 mv "conftest.tmp" "conftest.in"
6399 cp "conftest.in" "conftest.nl"
6400 printf "%s\n" '' >> "conftest.nl"
6401 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6403 as_fn_arith $ac_count + 1 && ac_count=$as_val
6404 if test $ac_count -gt ${ac_path_SED_max-0}; then
6405 # Best one so far, save it but keep looking for a better one
6406 ac_cv_path_SED="$ac_path_SED"
6407 ac_path_SED_max=$ac_count
6409 # 10*(2^10) chars as input seems more than enough
6410 test $ac_count -gt 10 && break
6412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6415 $ac_path_SED_found && break 3
6420 if test -z "$ac_cv_path_SED"; then
6421 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6429 printf "%s\n" "$ac_cv_path_SED" >&6; }
6430 SED="$ac_cv_path_SED"
6433 test -z "$SED" && SED=sed
6434 Xsed="$SED -e 1s/^X//"
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6447 printf %s "checking for grep that handles long lines and -e... " >&6; }
6448 if test ${ac_cv_path_GREP+y}
6450 printf %s "(cached) " >&6
6452 if test -z "$GREP"; then
6453 ac_path_GREP_found=false
6454 # Loop through the user's path and test for each of PROGNAME-LIST
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6459 case $as_dir in #(((
6462 *) as_dir=$as_dir/ ;;
6464 for ac_prog in grep ggrep
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6468 as_fn_executable_p "$ac_path_GREP" || continue
6469 # Check for GNU ac_path_GREP and select it if it is found.
6470 # Check for GNU $ac_path_GREP
6471 case `"$ac_path_GREP" --version 2>&1` in
6473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6476 printf %s 0123456789 >"conftest.in"
6479 cat "conftest.in" "conftest.in" >"conftest.tmp"
6480 mv "conftest.tmp" "conftest.in"
6481 cp "conftest.in" "conftest.nl"
6482 printf "%s\n" 'GREP' >> "conftest.nl"
6483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6485 as_fn_arith $ac_count + 1 && ac_count=$as_val
6486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6487 # Best one so far, save it but keep looking for a better one
6488 ac_cv_path_GREP="$ac_path_GREP"
6489 ac_path_GREP_max=$ac_count
6491 # 10*(2^10) chars as input seems more than enough
6492 test $ac_count -gt 10 && break
6494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6497 $ac_path_GREP_found && break 3
6502 if test -z "$ac_cv_path_GREP"; then
6503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6506 ac_cv_path_GREP=$GREP
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6511 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6512 GREP="$ac_cv_path_GREP"
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6516 printf %s "checking for egrep... " >&6; }
6517 if test ${ac_cv_path_EGREP+y}
6519 printf %s "(cached) " >&6
6521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6522 then ac_cv_path_EGREP="$GREP -E"
6524 if test -z "$EGREP"; then
6525 ac_path_EGREP_found=false
6526 # Loop through the user's path and test for each of PROGNAME-LIST
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6531 case $as_dir in #(((
6534 *) as_dir=$as_dir/ ;;
6536 for ac_prog in egrep
6538 for ac_exec_ext in '' $ac_executable_extensions; do
6539 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6540 as_fn_executable_p "$ac_path_EGREP" || continue
6541 # Check for GNU ac_path_EGREP and select it if it is found.
6542 # Check for GNU $ac_path_EGREP
6543 case `"$ac_path_EGREP" --version 2>&1` in
6545 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6548 printf %s 0123456789 >"conftest.in"
6551 cat "conftest.in" "conftest.in" >"conftest.tmp"
6552 mv "conftest.tmp" "conftest.in"
6553 cp "conftest.in" "conftest.nl"
6554 printf "%s\n" 'EGREP' >> "conftest.nl"
6555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6557 as_fn_arith $ac_count + 1 && ac_count=$as_val
6558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6559 # Best one so far, save it but keep looking for a better one
6560 ac_cv_path_EGREP="$ac_path_EGREP"
6561 ac_path_EGREP_max=$ac_count
6563 # 10*(2^10) chars as input seems more than enough
6564 test $ac_count -gt 10 && break
6566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6569 $ac_path_EGREP_found && break 3
6574 if test -z "$ac_cv_path_EGREP"; then
6575 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6578 ac_cv_path_EGREP=$EGREP
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6584 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6585 EGREP="$ac_cv_path_EGREP"
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6589 printf %s "checking for fgrep... " >&6; }
6590 if test ${ac_cv_path_FGREP+y}
6592 printf %s "(cached) " >&6
6594 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6595 then ac_cv_path_FGREP="$GREP -F"
6597 if test -z "$FGREP"; then
6598 ac_path_FGREP_found=false
6599 # Loop through the user's path and test for each of PROGNAME-LIST
6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6604 case $as_dir in #(((
6607 *) as_dir=$as_dir/ ;;
6609 for ac_prog in fgrep
6611 for ac_exec_ext in '' $ac_executable_extensions; do
6612 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6613 as_fn_executable_p "$ac_path_FGREP" || continue
6614 # Check for GNU ac_path_FGREP and select it if it is found.
6615 # Check for GNU $ac_path_FGREP
6616 case `"$ac_path_FGREP" --version 2>&1` in
6618 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6621 printf %s 0123456789 >"conftest.in"
6624 cat "conftest.in" "conftest.in" >"conftest.tmp"
6625 mv "conftest.tmp" "conftest.in"
6626 cp "conftest.in" "conftest.nl"
6627 printf "%s\n" 'FGREP' >> "conftest.nl"
6628 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6630 as_fn_arith $ac_count + 1 && ac_count=$as_val
6631 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6632 # Best one so far, save it but keep looking for a better one
6633 ac_cv_path_FGREP="$ac_path_FGREP"
6634 ac_path_FGREP_max=$ac_count
6636 # 10*(2^10) chars as input seems more than enough
6637 test $ac_count -gt 10 && break
6639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6642 $ac_path_FGREP_found && break 3
6647 if test -z "$ac_cv_path_FGREP"; then
6648 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6651 ac_cv_path_FGREP=$FGREP
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6657 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6658 FGREP="$ac_cv_path_FGREP"
6661 test -z "$GREP" && GREP=grep
6681 # Check whether --with-gnu-ld was given.
6682 if test ${with_gnu_ld+y}
6684 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6690 if test yes = "$GCC"; then
6691 # Check if gcc -print-prog-name=ld gives a path.
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6693 printf %s "checking for ld used by $CC... " >&6; }
6696 # gcc leaves a trailing carriage return, which upsets mingw
6697 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6699 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6702 # Accept absolute paths.
6704 re_direlt='/[^/][^/]*/\.\./'
6705 # Canonicalize the pathname of ld
6706 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6707 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6708 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6710 test -z "$LD" && LD=$ac_prog
6713 # If it fails, then pretend we aren't using GCC.
6717 # If it is relative, then search for the first ld in PATH.
6721 elif test yes = "$with_gnu_ld"; then
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6723 printf %s "checking for GNU ld... " >&6; }
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6726 printf %s "checking for non-GNU ld... " >&6; }
6728 if test ${lt_cv_path_LD+y}
6730 printf %s "(cached) " >&6
6732 if test -z "$LD"; then
6733 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6734 for ac_dir in $PATH; do
6736 test -z "$ac_dir" && ac_dir=.
6737 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6738 lt_cv_path_LD=$ac_dir/$ac_prog
6739 # Check to see if the program is GNU ld. I'd rather use --version,
6740 # but apparently some variants of GNU ld only accept -v.
6741 # Break only if it was the GNU/non-GNU ld that we prefer.
6742 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6743 *GNU* | *'with BFD'*)
6744 test no != "$with_gnu_ld" && break
6747 test yes != "$with_gnu_ld" && break
6754 lt_cv_path_LD=$LD # Let the user override the test with a path.
6759 if test -n "$LD"; then
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6761 printf "%s\n" "$LD" >&6; }
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 printf "%s\n" "no" >&6; }
6766 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6768 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6769 if test ${lt_cv_prog_gnu_ld+y}
6771 printf %s "(cached) " >&6
6773 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6774 case `$LD -v 2>&1 </dev/null` in
6775 *GNU* | *'with BFD'*)
6776 lt_cv_prog_gnu_ld=yes
6779 lt_cv_prog_gnu_ld=no
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6784 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6785 with_gnu_ld=$lt_cv_prog_gnu_ld
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6796 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6797 if test ${lt_cv_path_NM+y}
6799 printf %s "(cached) " >&6
6801 if test -n "$NM"; then
6802 # Let the user override the test.
6805 lt_nm_to_check=${ac_tool_prefix}nm
6806 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6807 lt_nm_to_check="$lt_nm_to_check nm"
6809 for lt_tmp_nm in $lt_nm_to_check; do
6810 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6811 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6813 test -z "$ac_dir" && ac_dir=.
6814 tmp_nm=$ac_dir/$lt_tmp_nm
6815 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6816 # Check to see if the nm accepts a BSD-compat flag.
6817 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6818 # nm: unknown option "B" ignored
6819 # Tru64's nm complains that /dev/null is an invalid object file
6820 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6822 mingw*) lt_bad_file=conftest.nm/nofile ;;
6823 *) lt_bad_file=/dev/null ;;
6825 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6826 *$lt_bad_file* | *'Invalid file or object type'*)
6827 lt_cv_path_NM="$tmp_nm -B"
6831 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6833 lt_cv_path_NM="$tmp_nm -p"
6837 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6838 continue # so that we can try to find one that supports BSD flags
6847 : ${lt_cv_path_NM=no}
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6851 printf "%s\n" "$lt_cv_path_NM" >&6; }
6852 if test no != "$lt_cv_path_NM"; then
6855 # Didn't find any BSD compatible name lister, look for dumpbin.
6856 if test -n "$DUMPBIN"; then :
6857 # Let the user override the test.
6859 if test -n "$ac_tool_prefix"; then
6860 for ac_prog in dumpbin "link -dump"
6862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 printf %s "checking for $ac_word... " >&6; }
6866 if test ${ac_cv_prog_DUMPBIN+y}
6868 printf %s "(cached) " >&6
6870 if test -n "$DUMPBIN"; then
6871 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 case $as_dir in #(((
6880 *) as_dir=$as_dir/ ;;
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6884 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6894 DUMPBIN=$ac_cv_prog_DUMPBIN
6895 if test -n "$DUMPBIN"; then
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6897 printf "%s\n" "$DUMPBIN" >&6; }
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 printf "%s\n" "no" >&6; }
6904 test -n "$DUMPBIN" && break
6907 if test -z "$DUMPBIN"; then
6908 ac_ct_DUMPBIN=$DUMPBIN
6909 for ac_prog in dumpbin "link -dump"
6911 # Extract the first word of "$ac_prog", so it can be a program name with args.
6912 set dummy $ac_prog; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6917 printf %s "(cached) " >&6
6919 if test -n "$ac_ct_DUMPBIN"; then
6920 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 case $as_dir in #(((
6929 *) as_dir=$as_dir/ ;;
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6944 if test -n "$ac_ct_DUMPBIN"; then
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6946 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 printf "%s\n" "no" >&6; }
6953 test -n "$ac_ct_DUMPBIN" && break
6956 if test "x$ac_ct_DUMPBIN" = x; then
6959 case $cross_compiling:$ac_tool_warned in
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963 ac_tool_warned=yes ;;
6965 DUMPBIN=$ac_ct_DUMPBIN
6969 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6971 DUMPBIN="$DUMPBIN -symbols -headers"
6979 if test : != "$DUMPBIN"; then
6983 test -z "$NM" && NM=nm
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6991 printf %s "checking the name lister ($NM) interface... " >&6; }
6992 if test ${lt_cv_nm_interface+y}
6994 printf %s "(cached) " >&6
6996 lt_cv_nm_interface="BSD nm"
6997 echo "int some_variable = 0;" > conftest.$ac_ext
6998 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6999 (eval "$ac_compile" 2>conftest.err)
7000 cat conftest.err >&5
7001 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7002 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7003 cat conftest.err >&5
7004 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7005 cat conftest.out >&5
7006 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7007 lt_cv_nm_interface="MS dumpbin"
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7012 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7015 printf %s "checking whether ln -s works... " >&6; }
7017 if test "$LN_S" = "ln -s"; then
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019 printf "%s\n" "yes" >&6; }
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7022 printf "%s\n" "no, using $LN_S" >&6; }
7025 # find the maximum length of command line arguments
7026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7027 printf %s "checking the maximum length of command line arguments... " >&6; }
7028 if test ${lt_cv_sys_max_cmd_len+y}
7030 printf %s "(cached) " >&6
7037 # On DJGPP, this test can blow up pretty badly due to problems in libc
7038 # (any single argument exceeding 2000 bytes causes a buffer overrun
7039 # during glob expansion). Even if it were fixed, the result of this
7040 # check would be larger than it should be.
7041 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7045 # Under GNU Hurd, this test is not required because there is
7046 # no limit to the length of command line arguments.
7047 # Libtool will interpret -1 as no limit whatsoever
7048 lt_cv_sys_max_cmd_len=-1;
7051 cygwin* | mingw* | cegcc*)
7052 # On Win9x/ME, this test blows up -- it succeeds, but takes
7053 # about 5 minutes as the teststring grows exponentially.
7054 # Worse, since 9x/ME are not pre-emptively multitasking,
7055 # you end up with a "frozen" computer, even though with patience
7056 # the test eventually succeeds (with a max line length of 256k).
7057 # Instead, let's just punt: use the minimum linelength reported by
7058 # all of the supported platforms: 8192 (on NT/2K/XP).
7059 lt_cv_sys_max_cmd_len=8192;
7063 # On MiNT this can take a long time and run out of memory.
7064 lt_cv_sys_max_cmd_len=8192;
7068 # On AmigaOS with pdksh, this test takes hours, literally.
7069 # So we just punt and use a minimum line length of 8192.
7070 lt_cv_sys_max_cmd_len=8192;
7073 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7074 # This has been around since 386BSD, at least. Likely further.
7075 if test -x /sbin/sysctl; then
7076 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7077 elif test -x /usr/sbin/sysctl; then
7078 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7080 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7082 # And add a safety zone
7083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7088 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7089 lt_cv_sys_max_cmd_len=196608
7093 # The test takes a long time on OS/2.
7094 lt_cv_sys_max_cmd_len=8192
7098 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7099 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7100 # nice to cause kernel panics so lets avoid the loop below.
7101 # First set a reasonable default.
7102 lt_cv_sys_max_cmd_len=16384
7104 if test -x /sbin/sysconfig; then
7105 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7106 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7111 lt_cv_sys_max_cmd_len=102400
7113 sysv5* | sco5v6* | sysv4.2uw2*)
7114 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7115 if test -n "$kargmax"; then
7116 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7118 lt_cv_sys_max_cmd_len=32768
7122 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7123 if test -n "$lt_cv_sys_max_cmd_len" && \
7124 test undefined != "$lt_cv_sys_max_cmd_len"; then
7125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7128 # Make teststring a little bigger before we do anything with it.
7129 # a 1K string should be a reasonable start.
7130 for i in 1 2 3 4 5 6 7 8; do
7131 teststring=$teststring$teststring
7133 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7134 # If test is not a shell built-in, we'll probably end up computing a
7135 # maximum length that is only half of the actual maximum length, but
7137 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7138 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7139 test 17 != "$i" # 1/2 MB should be enough
7142 teststring=$teststring$teststring
7144 # Only check the string length outside the loop.
7145 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7147 # Add a significant safety factor because C++ compilers can tack on
7148 # massive amounts of additional arguments before passing them to the
7149 # linker. It appears as though 1/2 is a usable value.
7150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7157 if test -n "$lt_cv_sys_max_cmd_len"; then
7158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7159 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7162 printf "%s\n" "none" >&6; }
7164 max_cmd_len=$lt_cv_sys_max_cmd_len
7175 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7185 # test EBCDIC or ASCII
7186 case `echo X|tr X '\101'` in
7187 A) # ASCII based system
7188 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7189 lt_SP2NL='tr \040 \012'
7190 lt_NL2SP='tr \015\012 \040\040'
7192 *) # EBCDIC based system
7193 lt_SP2NL='tr \100 \n'
7194 lt_NL2SP='tr \r\n \100\100'
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7207 printf %s "checking how to convert $build file names to $host format... " >&6; }
7208 if test ${lt_cv_to_host_file_cmd+y}
7210 printf %s "(cached) " >&6
7215 *-*-mingw* ) # actually msys
7216 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7219 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7221 * ) # otherwise, assume *nix
7222 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7228 *-*-mingw* ) # actually msys
7229 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7232 lt_cv_to_host_file_cmd=func_convert_file_noop
7234 * ) # otherwise, assume *nix
7235 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7239 * ) # unhandled hosts (and "normal" native builds)
7240 lt_cv_to_host_file_cmd=func_convert_file_noop
7246 to_host_file_cmd=$lt_cv_to_host_file_cmd
7247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7248 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
7254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7255 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
7256 if test ${lt_cv_to_tool_file_cmd+y}
7258 printf %s "(cached) " >&6
7260 #assume ordinary cross tools, or native build.
7261 lt_cv_to_tool_file_cmd=func_convert_file_noop
7265 *-*-mingw* ) # actually msys
7266 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7274 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7276 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7283 printf %s "checking for $LD option to reload object files... " >&6; }
7284 if test ${lt_cv_ld_reload_flag+y}
7286 printf %s "(cached) " >&6
7288 lt_cv_ld_reload_flag='-r'
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7291 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
7292 reload_flag=$lt_cv_ld_reload_flag
7293 case $reload_flag in
7295 *) reload_flag=" $reload_flag" ;;
7297 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7299 cygwin* | mingw* | pw32* | cegcc*)
7300 if test yes != "$GCC"; then
7305 if test yes = "$GCC"; then
7306 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7308 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 printf %s "checking for $ac_word... " >&6; }
7326 if test ${ac_cv_prog_OBJDUMP+y}
7328 printf %s "(cached) " >&6
7330 if test -n "$OBJDUMP"; then
7331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 case $as_dir in #(((
7340 *) as_dir=$as_dir/ ;;
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7344 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7354 OBJDUMP=$ac_cv_prog_OBJDUMP
7355 if test -n "$OBJDUMP"; then
7356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7357 printf "%s\n" "$OBJDUMP" >&6; }
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 printf "%s\n" "no" >&6; }
7365 if test -z "$ac_cv_prog_OBJDUMP"; then
7366 ac_ct_OBJDUMP=$OBJDUMP
7367 # Extract the first word of "objdump", so it can be a program name with args.
7368 set dummy objdump; ac_word=$2
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 printf %s "checking for $ac_word... " >&6; }
7371 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7373 printf %s "(cached) " >&6
7375 if test -n "$ac_ct_OBJDUMP"; then
7376 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 case $as_dir in #(((
7385 *) as_dir=$as_dir/ ;;
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7399 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7400 if test -n "$ac_ct_OBJDUMP"; then
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7402 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 printf "%s\n" "no" >&6; }
7408 if test "x$ac_ct_OBJDUMP" = x; then
7411 case $cross_compiling:$ac_tool_warned in
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7417 OBJDUMP=$ac_ct_OBJDUMP
7420 OBJDUMP="$ac_cv_prog_OBJDUMP"
7423 test -z "$OBJDUMP" && OBJDUMP=objdump
7433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7434 printf %s "checking how to recognize dependent libraries... " >&6; }
7435 if test ${lt_cv_deplibs_check_method+y}
7437 printf %s "(cached) " >&6
7439 lt_cv_file_magic_cmd='$MAGIC_CMD'
7440 lt_cv_file_magic_test_file=
7441 lt_cv_deplibs_check_method='unknown'
7442 # Need to set the preceding variable on all platforms that support
7443 # interlibrary dependencies.
7444 # 'none' -- dependencies not supported.
7445 # 'unknown' -- same as none, but documents that we really don't know.
7446 # 'pass_all' -- all dependencies passed with no checks.
7447 # 'test_compile' -- check by making test program.
7448 # 'file_magic [[regex]]' -- check by looking for files in library path
7449 # that responds to the $file_magic_cmd with a given extended regex.
7450 # If you have 'file' or equivalent on your system and you're not sure
7451 # whether 'pass_all' will *always* work, you probably want this one.
7455 lt_cv_deplibs_check_method=pass_all
7459 lt_cv_deplibs_check_method=pass_all
7463 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7464 lt_cv_file_magic_cmd='/usr/bin/file -L'
7465 lt_cv_file_magic_test_file=/shlib/libc.so
7469 # func_win32_libid is a shell function defined in ltmain.sh
7470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7471 lt_cv_file_magic_cmd='func_win32_libid'
7475 # Base MSYS/MinGW do not provide the 'file' command needed by
7476 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7477 # unless we find 'file', for example because we are cross-compiling.
7478 if ( file / ) >/dev/null 2>&1; then
7479 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7480 lt_cv_file_magic_cmd='func_win32_libid'
7482 # Keep this pattern in sync with the one in func_win32_libid.
7483 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7484 lt_cv_file_magic_cmd='$OBJDUMP -f'
7489 # use the weaker test based on 'objdump'. See mingw*.
7490 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7491 lt_cv_file_magic_cmd='$OBJDUMP -f'
7494 darwin* | rhapsody*)
7495 lt_cv_deplibs_check_method=pass_all
7498 freebsd* | dragonfly*)
7499 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7502 # Not sure whether the presence of OpenBSD here was a mistake.
7503 # Let's accept both of them until this is cleared up.
7504 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7505 lt_cv_file_magic_cmd=/usr/bin/file
7506 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7510 lt_cv_deplibs_check_method=pass_all
7515 lt_cv_deplibs_check_method=pass_all
7518 hpux10.20* | hpux11*)
7519 lt_cv_file_magic_cmd=/usr/bin/file
7522 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7523 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7526 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]'
7527 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7530 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7531 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7537 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7541 irix5* | irix6* | nonstopux*)
7543 *-32|*"-32 ") libmagic=32-bit;;
7544 *-n32|*"-n32 ") libmagic=N32;;
7545 *-64|*"-64 ") libmagic=64-bit;;
7546 *) libmagic=never-match;;
7548 lt_cv_deplibs_check_method=pass_all
7551 # This must be glibc/ELF.
7552 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7553 lt_cv_deplibs_check_method=pass_all
7556 netbsd* | netbsdelf*-gnu)
7557 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7560 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7566 lt_cv_file_magic_cmd=/usr/bin/file
7567 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7571 lt_cv_deplibs_check_method=pass_all
7575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7582 osf3* | osf4* | osf5*)
7583 lt_cv_deplibs_check_method=pass_all
7587 lt_cv_deplibs_check_method=pass_all
7591 lt_cv_deplibs_check_method=pass_all
7594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7595 lt_cv_deplibs_check_method=pass_all
7599 case $host_vendor in
7601 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]'
7602 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7605 lt_cv_deplibs_check_method=pass_all
7608 lt_cv_file_magic_cmd='/bin/file'
7609 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7612 lt_cv_file_magic_cmd='/bin/file'
7613 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7614 lt_cv_file_magic_test_file=/lib/libc.so
7617 lt_cv_deplibs_check_method=pass_all
7620 lt_cv_deplibs_check_method=pass_all
7626 lt_cv_deplibs_check_method=pass_all
7629 lt_cv_deplibs_check_method=pass_all
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7635 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7639 if test "$build" = "$host"; then
7642 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7645 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7651 file_magic_cmd=$lt_cv_file_magic_cmd
7652 deplibs_check_method=$lt_cv_deplibs_check_method
7653 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7678 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 printf %s "checking for $ac_word... " >&6; }
7681 if test ${ac_cv_prog_DLLTOOL+y}
7683 printf %s "(cached) " >&6
7685 if test -n "$DLLTOOL"; then
7686 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 case $as_dir in #(((
7695 *) as_dir=$as_dir/ ;;
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7699 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7709 DLLTOOL=$ac_cv_prog_DLLTOOL
7710 if test -n "$DLLTOOL"; then
7711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7712 printf "%s\n" "$DLLTOOL" >&6; }
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 printf "%s\n" "no" >&6; }
7720 if test -z "$ac_cv_prog_DLLTOOL"; then
7721 ac_ct_DLLTOOL=$DLLTOOL
7722 # Extract the first word of "dlltool", so it can be a program name with args.
7723 set dummy dlltool; ac_word=$2
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725 printf %s "checking for $ac_word... " >&6; }
7726 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7728 printf %s "(cached) " >&6
7730 if test -n "$ac_ct_DLLTOOL"; then
7731 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 case $as_dir in #(((
7740 *) as_dir=$as_dir/ ;;
7742 for ac_exec_ext in '' $ac_executable_extensions; do
7743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7744 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7754 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7755 if test -n "$ac_ct_DLLTOOL"; then
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7757 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760 printf "%s\n" "no" >&6; }
7763 if test "x$ac_ct_DLLTOOL" = x; then
7766 case $cross_compiling:$ac_tool_warned in
7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770 ac_tool_warned=yes ;;
7772 DLLTOOL=$ac_ct_DLLTOOL
7775 DLLTOOL="$ac_cv_prog_DLLTOOL"
7778 test -z "$DLLTOOL" && DLLTOOL=dlltool
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7790 printf %s "checking how to associate runtime and link libraries... " >&6; }
7791 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7793 printf %s "(cached) " >&6
7795 lt_cv_sharedlib_from_linklib_cmd='unknown'
7798 cygwin* | mingw* | pw32* | cegcc*)
7799 # two different shell functions defined in ltmain.sh;
7800 # decide which one to use based on capabilities of $DLLTOOL
7801 case `$DLLTOOL --help 2>&1` in
7802 *--identify-strict*)
7803 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7806 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7811 # fallback: assume linklib IS sharedlib
7812 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7818 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7819 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7820 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7828 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 printf %s "checking for $ac_word... " >&6; }
7835 if test ${ac_cv_prog_AR+y}
7837 printf %s "(cached) " >&6
7839 if test -n "$AR"; then
7840 ac_cv_prog_AR="$AR" # Let the user override the test.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 case $as_dir in #(((
7849 *) as_dir=$as_dir/ ;;
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7853 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7864 if test -n "$AR"; then
7865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7866 printf "%s\n" "$AR" >&6; }
7868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 printf "%s\n" "no" >&6; }
7873 test -n "$AR" && break
7876 if test -z "$AR"; then
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881 set dummy $ac_prog; ac_word=$2
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7883 printf %s "checking for $ac_word... " >&6; }
7884 if test ${ac_cv_prog_ac_ct_AR+y}
7886 printf %s "(cached) " >&6
7888 if test -n "$ac_ct_AR"; then
7889 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 case $as_dir in #(((
7898 *) as_dir=$as_dir/ ;;
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7902 ac_cv_prog_ac_ct_AR="$ac_prog"
7903 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7912 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7913 if test -n "$ac_ct_AR"; then
7914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7915 printf "%s\n" "$ac_ct_AR" >&6; }
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 printf "%s\n" "no" >&6; }
7922 test -n "$ac_ct_AR" && break
7925 if test "x$ac_ct_AR" = x; then
7928 case $cross_compiling:$ac_tool_warned in
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7952 printf %s "checking for archiver @FILE support... " >&6; }
7953 if test ${lt_cv_ar_at_file+y}
7955 printf %s "(cached) " >&6
7958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7959 /* end confdefs.h. */
7969 if ac_fn_c_try_compile "$LINENO"
7971 echo conftest.$ac_objext > conftest.lst
7972 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7974 (eval $lt_ar_try) 2>&5
7976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }
7978 if test 0 -eq "$ac_status"; then
7979 # Ensure the archiver fails upon bogus file names.
7980 rm -f conftest.$ac_objext libconftest.a
7981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7982 (eval $lt_ar_try) 2>&5
7984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985 test $ac_status = 0; }
7986 if test 0 -ne "$ac_status"; then
7990 rm -f conftest.* libconftest.a
7993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7997 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7999 if test no = "$lt_cv_ar_at_file"; then
8002 archiver_list_spec=$lt_cv_ar_at_file
8011 if test -n "$ac_tool_prefix"; then
8012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8013 set dummy ${ac_tool_prefix}strip; ac_word=$2
8014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 printf %s "checking for $ac_word... " >&6; }
8016 if test ${ac_cv_prog_STRIP+y}
8018 printf %s "(cached) " >&6
8020 if test -n "$STRIP"; then
8021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 case $as_dir in #(((
8030 *) as_dir=$as_dir/ ;;
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8044 STRIP=$ac_cv_prog_STRIP
8045 if test -n "$STRIP"; then
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8047 printf "%s\n" "$STRIP" >&6; }
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 printf "%s\n" "no" >&6; }
8055 if test -z "$ac_cv_prog_STRIP"; then
8057 # Extract the first word of "strip", so it can be a program name with args.
8058 set dummy strip; ac_word=$2
8059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 printf %s "checking for $ac_word... " >&6; }
8061 if test ${ac_cv_prog_ac_ct_STRIP+y}
8063 printf %s "(cached) " >&6
8065 if test -n "$ac_ct_STRIP"; then
8066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 case $as_dir in #(((
8075 *) as_dir=$as_dir/ ;;
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8079 ac_cv_prog_ac_ct_STRIP="strip"
8080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8090 if test -n "$ac_ct_STRIP"; then
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8092 printf "%s\n" "$ac_ct_STRIP" >&6; }
8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 printf "%s\n" "no" >&6; }
8098 if test "x$ac_ct_STRIP" = x; then
8101 case $cross_compiling:$ac_tool_warned in
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105 ac_tool_warned=yes ;;
8110 STRIP="$ac_cv_prog_STRIP"
8113 test -z "$STRIP" && STRIP=:
8120 if test -n "$ac_tool_prefix"; then
8121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 printf %s "checking for $ac_word... " >&6; }
8125 if test ${ac_cv_prog_RANLIB+y}
8127 printf %s "(cached) " >&6
8129 if test -n "$RANLIB"; then
8130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 case $as_dir in #(((
8139 *) as_dir=$as_dir/ ;;
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8143 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8153 RANLIB=$ac_cv_prog_RANLIB
8154 if test -n "$RANLIB"; then
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8156 printf "%s\n" "$RANLIB" >&6; }
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 printf "%s\n" "no" >&6; }
8164 if test -z "$ac_cv_prog_RANLIB"; then
8165 ac_ct_RANLIB=$RANLIB
8166 # Extract the first word of "ranlib", so it can be a program name with args.
8167 set dummy ranlib; ac_word=$2
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 printf %s "checking for $ac_word... " >&6; }
8170 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8172 printf %s "(cached) " >&6
8174 if test -n "$ac_ct_RANLIB"; then
8175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 case $as_dir in #(((
8184 *) as_dir=$as_dir/ ;;
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8188 ac_cv_prog_ac_ct_RANLIB="ranlib"
8189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8198 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8199 if test -n "$ac_ct_RANLIB"; then
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8201 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 printf "%s\n" "no" >&6; }
8207 if test "x$ac_ct_RANLIB" = x; then
8210 case $cross_compiling:$ac_tool_warned in
8212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8214 ac_tool_warned=yes ;;
8216 RANLIB=$ac_ct_RANLIB
8219 RANLIB="$ac_cv_prog_RANLIB"
8222 test -z "$RANLIB" && RANLIB=:
8229 # Determine commands to create old-style static archives.
8230 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8231 old_postinstall_cmds='chmod 644 $oldlib'
8232 old_postuninstall_cmds=
8234 if test -n "$RANLIB"; then
8237 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8240 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8243 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8248 lock_old_archive_extraction=yes ;;
8250 lock_old_archive_extraction=no ;;
8291 # If no C compiler was specified, use CC.
8294 # If no C compiler flags were specified, use CFLAGS.
8295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8297 # Allow CC to be a program name with arguments.
8301 # Check for command to grab the raw symbol name followed by C symbol from nm.
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8303 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
8304 if test ${lt_cv_sys_global_symbol_pipe+y}
8306 printf %s "(cached) " >&6
8309 # These are sane defaults that work on at least a few old systems.
8310 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8312 # Character class describing NM global symbol codes.
8313 symcode='[BCDEGRST]'
8315 # Regexp to match symbols that can be accessed directly from C.
8316 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8318 # Define system-specific variables.
8323 cygwin* | mingw* | pw32* | cegcc*)
8324 symcode='[ABCDGISTW]'
8327 if test ia64 = "$host_cpu"; then
8328 symcode='[ABCDEGRST]'
8332 symcode='[BCDEGRST]'
8335 symcode='[BCDEGQRST]'
8346 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8354 # If we're using GNU nm, then use its standard symbol codes.
8355 case `$NM -V 2>&1` in
8356 *GNU* | *'with BFD'*)
8357 symcode='[ABCDGIRSTW]' ;;
8360 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8361 # Gets list of data symbols to import.
8362 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8363 # Adjust the below global symbol transforms to fixup imported variables.
8364 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8365 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8366 lt_c_name_lib_hook="\
8367 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8368 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8370 # Disable hooks by default.
8371 lt_cv_sys_global_symbol_to_import=
8377 # Transform an extracted symbol line into a proper C declaration.
8378 # Some systems (esp. on ia64) link data and code symbols differently,
8379 # so use this general approach.
8380 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8382 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8383 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8385 # Transform an extracted symbol line into symbol name and symbol address
8386 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8388 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8389 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8391 # Transform an extracted symbol line into symbol name with lib prefix and
8393 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8394 $lt_c_name_lib_hook\
8395 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8396 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8397 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8399 # Handle CRLF in mingw tool chain
8403 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8407 # Try without a prefix underscore, then with it.
8408 for ac_symprfx in "" "_"; do
8410 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8411 symxfrm="\\1 $ac_symprfx\\2 \\2"
8413 # Write the raw and C identifiers.
8414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8415 # Fake it for dumpbin and say T for any non-static function,
8416 # D for any global variable and I for any imported variable.
8417 # Also find C++ and __fastcall symbols from MSVC++,
8418 # which start with @ or ?.
8419 lt_cv_sys_global_symbol_pipe="$AWK '"\
8420 " {last_section=section; section=\$ 3};"\
8421 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8422 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8423 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8424 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8425 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8426 " \$ 0!~/External *\|/{next};"\
8427 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8428 " {if(hide[section]) next};"\
8429 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8430 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8431 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8432 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8433 " ' prfx=^$ac_symprfx"
8435 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8437 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8439 # Check to see that the pipe works correctly.
8443 cat > conftest.$ac_ext <<_LT_EOF
8448 void nm_test_func(void);
8449 void nm_test_func(void){}
8453 int main(){nm_test_var='a';nm_test_func();return(0);}
8456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8457 (eval $ac_compile) 2>&5
8459 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8460 test $ac_status = 0; }; then
8461 # Now try to grab the symbols.
8463 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8464 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8465 # Try sorting and uniquifying the output.
8466 if sort "$nlist" | uniq > "$nlist"T; then
8467 mv -f "$nlist"T "$nlist"
8472 # Make sure that we snagged all the symbols we need.
8473 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8474 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8475 cat <<_LT_EOF > conftest.$ac_ext
8476 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8477 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8478 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8479 relocations are performed -- see ld's documentation on pseudo-relocs. */
8480 # define LT_DLSYM_CONST
8481 #elif defined __osf__
8482 /* This system does not cope well with relocations in const data. */
8483 # define LT_DLSYM_CONST
8485 # define LT_DLSYM_CONST const
8493 # Now generate the symbol file.
8494 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8496 cat <<_LT_EOF >> conftest.$ac_ext
8498 /* The mapping between symbol names and symbols. */
8499 LT_DLSYM_CONST struct {
8503 lt__PROGRAM__LTX_preloaded_symbols[] =
8505 { "@PROGRAM@", (void *) 0 },
8507 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8508 cat <<\_LT_EOF >> conftest.$ac_ext
8512 /* This works around a problem in FreeBSD linker */
8513 #ifdef FREEBSD_WORKAROUND
8514 static const void *lt_preloaded_setup() {
8515 return lt__PROGRAM__LTX_preloaded_symbols;
8523 # Now try linking the two files.
8524 mv conftest.$ac_objext conftstm.$ac_objext
8525 lt_globsym_save_LIBS=$LIBS
8526 lt_globsym_save_CFLAGS=$CFLAGS
8527 LIBS=conftstm.$ac_objext
8528 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8530 (eval $ac_link) 2>&5
8532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8536 LIBS=$lt_globsym_save_LIBS
8537 CFLAGS=$lt_globsym_save_CFLAGS
8539 echo "cannot find nm_test_func in $nlist" >&5
8542 echo "cannot find nm_test_var in $nlist" >&5
8545 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8548 echo "$progname: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 rm -rf conftest* conftst*
8553 # Do not use the global_symbol_pipe unless it works.
8554 if test yes = "$pipe_works"; then
8557 lt_cv_sys_global_symbol_pipe=
8563 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8564 lt_cv_sys_global_symbol_to_cdecl=
8566 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8568 printf "%s\n" "failed" >&6; }
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8571 printf "%s\n" "ok" >&6; }
8574 # Response file support.
8575 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8576 nm_file_list_spec='@'
8577 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8578 nm_file_list_spec='@'
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8618 printf %s "checking for sysroot... " >&6; }
8620 # Check whether --with-sysroot was given.
8621 if test ${with_sysroot+y}
8623 withval=$with_sysroot;
8630 case $with_sysroot in #(
8632 if test yes = "$GCC"; then
8633 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8637 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8643 printf "%s\n" "$with_sysroot" >&6; }
8644 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8649 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8656 printf %s "checking for a working dd... " >&6; }
8657 if test ${ac_cv_path_lt_DD+y}
8659 printf %s "(cached) " >&6
8661 printf 0123456789abcdef0123456789abcdef >conftest.i
8662 cat conftest.i conftest.i >conftest2.i
8664 if test -z "$lt_DD"; then
8665 ac_path_lt_DD_found=false
8666 # Loop through the user's path and test for each of PROGNAME-LIST
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 case $as_dir in #(((
8674 *) as_dir=$as_dir/ ;;
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8680 as_fn_executable_p "$ac_path_lt_DD" || continue
8681 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8682 cmp -s conftest.i conftest.out \
8683 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8685 $ac_path_lt_DD_found && break 3
8690 if test -z "$ac_cv_path_lt_DD"; then
8694 ac_cv_path_lt_DD=$lt_DD
8697 rm -f conftest.i conftest2.i conftest.out
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8700 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8704 printf %s "checking how to truncate binary pipes... " >&6; }
8705 if test ${lt_cv_truncate_bin+y}
8707 printf %s "(cached) " >&6
8709 printf 0123456789abcdef0123456789abcdef >conftest.i
8710 cat conftest.i conftest.i >conftest2.i
8712 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8713 cmp -s conftest.i conftest.out \
8714 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8716 rm -f conftest.i conftest2.i conftest.out
8717 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8720 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8728 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8731 for cc_temp in $*""; do
8733 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8734 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8739 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8742 # Check whether --enable-libtool-lock was given.
8743 if test ${enable_libtool_lock+y}
8745 enableval=$enable_libtool_lock;
8748 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8750 # Some flags need to be propagated to the compiler or linker for good
8754 # Find out what ABI is being produced by ac_compile, and set mode
8755 # options accordingly.
8756 echo 'int i;' > conftest.$ac_ext
8757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8758 (eval $ac_compile) 2>&5
8760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8761 test $ac_status = 0; }; then
8762 case `/usr/bin/file conftest.$ac_objext` in
8774 # Find out what ABI is being produced by ac_compile, and set linker
8775 # options accordingly.
8776 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8778 (eval $ac_compile) 2>&5
8780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8781 test $ac_status = 0; }; then
8782 if test yes = "$lt_cv_prog_gnu_ld"; then
8783 case `/usr/bin/file conftest.$ac_objext` in
8785 LD="${LD-ld} -melf32bsmip"
8788 LD="${LD-ld} -melf32bmipn32"
8791 LD="${LD-ld} -melf64bmip"
8795 case `/usr/bin/file conftest.$ac_objext` in
8812 # Find out what ABI is being produced by ac_compile, and set linker
8813 # options accordingly.
8814 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8816 (eval $ac_compile) 2>&5
8818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8819 test $ac_status = 0; }; then
8821 case `/usr/bin/file conftest.$ac_objext` in
8829 case `/usr/bin/file conftest.$ac_objext` in
8831 emul="${emul}btsmip"
8834 emul="${emul}ltsmip"
8837 case `/usr/bin/file conftest.$ac_objext` in
8842 LD="${LD-ld} -m $emul"
8847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8849 # Find out what ABI is being produced by ac_compile, and set linker
8850 # options accordingly. Note that the listed cases only cover the
8851 # situations where additional linker options are needed (such as when
8852 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8853 # vice versa); the common cases where no linker options are needed do
8854 # not appear in the list.
8855 echo 'int i;' > conftest.$ac_ext
8856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8857 (eval $ac_compile) 2>&5
8859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8860 test $ac_status = 0; }; then
8861 case `/usr/bin/file conftest.o` in
8864 x86_64-*kfreebsd*-gnu)
8865 LD="${LD-ld} -m elf_i386_fbsd"
8868 case `/usr/bin/file conftest.o` in
8870 LD="${LD-ld} -m elf32_x86_64"
8873 LD="${LD-ld} -m elf_i386"
8877 powerpc64le-*linux*)
8878 LD="${LD-ld} -m elf32lppclinux"
8881 LD="${LD-ld} -m elf32ppclinux"
8884 LD="${LD-ld} -m elf_s390"
8887 LD="${LD-ld} -m elf32_sparc"
8893 x86_64-*kfreebsd*-gnu)
8894 LD="${LD-ld} -m elf_x86_64_fbsd"
8897 LD="${LD-ld} -m elf_x86_64"
8900 LD="${LD-ld} -m elf64lppc"
8903 LD="${LD-ld} -m elf64ppc"
8905 s390*-*linux*|s390*-*tpf*)
8906 LD="${LD-ld} -m elf64_s390"
8909 LD="${LD-ld} -m elf64_sparc"
8919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8921 CFLAGS="$CFLAGS -belf"
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8923 printf %s "checking whether the C compiler needs -belf... " >&6; }
8924 if test ${lt_cv_cc_needs_belf+y}
8926 printf %s "(cached) " >&6
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8945 if ac_fn_c_try_link "$LINENO"
8947 lt_cv_cc_needs_belf=yes
8949 lt_cv_cc_needs_belf=no
8951 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8952 conftest$ac_exeext conftest.$ac_ext
8954 ac_cpp='$CPP $CPPFLAGS'
8955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8961 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8962 if test yes != "$lt_cv_cc_needs_belf"; then
8963 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8968 # Find out what ABI is being produced by ac_compile, and set linker
8969 # options accordingly.
8970 echo 'int i;' > conftest.$ac_ext
8971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8972 (eval $ac_compile) 2>&5
8974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8975 test $ac_status = 0; }; then
8976 case `/usr/bin/file conftest.o` in
8978 case $lt_cv_prog_gnu_ld in
8981 i?86-*-solaris*|x86_64-*-solaris*)
8982 LD="${LD-ld} -m elf_x86_64"
8985 LD="${LD-ld} -m elf64_sparc"
8988 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8989 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8994 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9006 need_locks=$enable_libtool_lock
9008 if test -n "$ac_tool_prefix"; then
9009 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9010 set dummy ${ac_tool_prefix}mt; ac_word=$2
9011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 printf %s "checking for $ac_word... " >&6; }
9013 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9015 printf %s "(cached) " >&6
9017 if test -n "$MANIFEST_TOOL"; then
9018 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024 case $as_dir in #(((
9027 *) as_dir=$as_dir/ ;;
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9031 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9041 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9042 if test -n "$MANIFEST_TOOL"; then
9043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9044 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047 printf "%s\n" "no" >&6; }
9052 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9053 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9054 # Extract the first word of "mt", so it can be a program name with args.
9055 set dummy mt; ac_word=$2
9056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 printf %s "checking for $ac_word... " >&6; }
9058 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9060 printf %s "(cached) " >&6
9062 if test -n "$ac_ct_MANIFEST_TOOL"; then
9063 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 case $as_dir in #(((
9072 *) as_dir=$as_dir/ ;;
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9076 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9086 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9087 if test -n "$ac_ct_MANIFEST_TOOL"; then
9088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9089 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 printf "%s\n" "no" >&6; }
9095 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9098 case $cross_compiling:$ac_tool_warned in
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9102 ac_tool_warned=yes ;;
9104 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9107 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9110 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9112 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9113 if test ${lt_cv_path_mainfest_tool+y}
9115 printf %s "(cached) " >&6
9117 lt_cv_path_mainfest_tool=no
9118 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9119 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9120 cat conftest.err >&5
9121 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9122 lt_cv_path_mainfest_tool=yes
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9127 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
9128 if test yes != "$lt_cv_path_mainfest_tool"; then
9138 rhapsody* | darwin*)
9139 if test -n "$ac_tool_prefix"; then
9140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 printf %s "checking for $ac_word... " >&6; }
9144 if test ${ac_cv_prog_DSYMUTIL+y}
9146 printf %s "(cached) " >&6
9148 if test -n "$DSYMUTIL"; then
9149 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9155 case $as_dir in #(((
9158 *) as_dir=$as_dir/ ;;
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9162 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9172 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9173 if test -n "$DSYMUTIL"; then
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9175 printf "%s\n" "$DSYMUTIL" >&6; }
9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178 printf "%s\n" "no" >&6; }
9183 if test -z "$ac_cv_prog_DSYMUTIL"; then
9184 ac_ct_DSYMUTIL=$DSYMUTIL
9185 # Extract the first word of "dsymutil", so it can be a program name with args.
9186 set dummy dsymutil; ac_word=$2
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 printf %s "checking for $ac_word... " >&6; }
9189 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
9191 printf %s "(cached) " >&6
9193 if test -n "$ac_ct_DSYMUTIL"; then
9194 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 case $as_dir in #(((
9203 *) as_dir=$as_dir/ ;;
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9207 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9217 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9218 if test -n "$ac_ct_DSYMUTIL"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9220 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9226 if test "x$ac_ct_DSYMUTIL" = x; then
9229 case $cross_compiling:$ac_tool_warned in
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233 ac_tool_warned=yes ;;
9235 DSYMUTIL=$ac_ct_DSYMUTIL
9238 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9241 if test -n "$ac_tool_prefix"; then
9242 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9243 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245 printf %s "checking for $ac_word... " >&6; }
9246 if test ${ac_cv_prog_NMEDIT+y}
9248 printf %s "(cached) " >&6
9250 if test -n "$NMEDIT"; then
9251 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 case $as_dir in #(((
9260 *) as_dir=$as_dir/ ;;
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9274 NMEDIT=$ac_cv_prog_NMEDIT
9275 if test -n "$NMEDIT"; then
9276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9277 printf "%s\n" "$NMEDIT" >&6; }
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280 printf "%s\n" "no" >&6; }
9285 if test -z "$ac_cv_prog_NMEDIT"; then
9286 ac_ct_NMEDIT=$NMEDIT
9287 # Extract the first word of "nmedit", so it can be a program name with args.
9288 set dummy nmedit; ac_word=$2
9289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290 printf %s "checking for $ac_word... " >&6; }
9291 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
9293 printf %s "(cached) " >&6
9295 if test -n "$ac_ct_NMEDIT"; then
9296 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302 case $as_dir in #(((
9305 *) as_dir=$as_dir/ ;;
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9309 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9320 if test -n "$ac_ct_NMEDIT"; then
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9322 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 printf "%s\n" "no" >&6; }
9328 if test "x$ac_ct_NMEDIT" = x; then
9331 case $cross_compiling:$ac_tool_warned in
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9334 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9335 ac_tool_warned=yes ;;
9337 NMEDIT=$ac_ct_NMEDIT
9340 NMEDIT="$ac_cv_prog_NMEDIT"
9343 if test -n "$ac_tool_prefix"; then
9344 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 printf %s "checking for $ac_word... " >&6; }
9348 if test ${ac_cv_prog_LIPO+y}
9350 printf %s "(cached) " >&6
9352 if test -n "$LIPO"; then
9353 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359 case $as_dir in #(((
9362 *) as_dir=$as_dir/ ;;
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9366 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9376 LIPO=$ac_cv_prog_LIPO
9377 if test -n "$LIPO"; then
9378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9379 printf "%s\n" "$LIPO" >&6; }
9381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382 printf "%s\n" "no" >&6; }
9387 if test -z "$ac_cv_prog_LIPO"; then
9389 # Extract the first word of "lipo", so it can be a program name with args.
9390 set dummy lipo; ac_word=$2
9391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 printf %s "checking for $ac_word... " >&6; }
9393 if test ${ac_cv_prog_ac_ct_LIPO+y}
9395 printf %s "(cached) " >&6
9397 if test -n "$ac_ct_LIPO"; then
9398 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9404 case $as_dir in #(((
9407 *) as_dir=$as_dir/ ;;
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9411 ac_cv_prog_ac_ct_LIPO="lipo"
9412 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9421 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9422 if test -n "$ac_ct_LIPO"; then
9423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9424 printf "%s\n" "$ac_ct_LIPO" >&6; }
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 printf "%s\n" "no" >&6; }
9430 if test "x$ac_ct_LIPO" = x; then
9433 case $cross_compiling:$ac_tool_warned in
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9437 ac_tool_warned=yes ;;
9442 LIPO="$ac_cv_prog_LIPO"
9445 if test -n "$ac_tool_prefix"; then
9446 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9447 set dummy ${ac_tool_prefix}otool; ac_word=$2
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449 printf %s "checking for $ac_word... " >&6; }
9450 if test ${ac_cv_prog_OTOOL+y}
9452 printf %s "(cached) " >&6
9454 if test -n "$OTOOL"; then
9455 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 case $as_dir in #(((
9464 *) as_dir=$as_dir/ ;;
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9468 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9478 OTOOL=$ac_cv_prog_OTOOL
9479 if test -n "$OTOOL"; then
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9481 printf "%s\n" "$OTOOL" >&6; }
9483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 printf "%s\n" "no" >&6; }
9489 if test -z "$ac_cv_prog_OTOOL"; then
9491 # Extract the first word of "otool", so it can be a program name with args.
9492 set dummy otool; ac_word=$2
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494 printf %s "checking for $ac_word... " >&6; }
9495 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9497 printf %s "(cached) " >&6
9499 if test -n "$ac_ct_OTOOL"; then
9500 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 case $as_dir in #(((
9509 *) as_dir=$as_dir/ ;;
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9513 ac_cv_prog_ac_ct_OTOOL="otool"
9514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9523 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9524 if test -n "$ac_ct_OTOOL"; then
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9526 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529 printf "%s\n" "no" >&6; }
9532 if test "x$ac_ct_OTOOL" = x; then
9535 case $cross_compiling:$ac_tool_warned in
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9538 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9539 ac_tool_warned=yes ;;
9544 OTOOL="$ac_cv_prog_OTOOL"
9547 if test -n "$ac_tool_prefix"; then
9548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9549 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9551 printf %s "checking for $ac_word... " >&6; }
9552 if test ${ac_cv_prog_OTOOL64+y}
9554 printf %s "(cached) " >&6
9556 if test -n "$OTOOL64"; then
9557 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 case $as_dir in #(((
9566 *) as_dir=$as_dir/ ;;
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9580 OTOOL64=$ac_cv_prog_OTOOL64
9581 if test -n "$OTOOL64"; then
9582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9583 printf "%s\n" "$OTOOL64" >&6; }
9585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 printf "%s\n" "no" >&6; }
9591 if test -z "$ac_cv_prog_OTOOL64"; then
9592 ac_ct_OTOOL64=$OTOOL64
9593 # Extract the first word of "otool64", so it can be a program name with args.
9594 set dummy otool64; ac_word=$2
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9596 printf %s "checking for $ac_word... " >&6; }
9597 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9599 printf %s "(cached) " >&6
9601 if test -n "$ac_ct_OTOOL64"; then
9602 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 case $as_dir in #(((
9611 *) as_dir=$as_dir/ ;;
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9615 ac_cv_prog_ac_ct_OTOOL64="otool64"
9616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9625 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9626 if test -n "$ac_ct_OTOOL64"; then
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9628 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 printf "%s\n" "no" >&6; }
9634 if test "x$ac_ct_OTOOL64" = x; then
9637 case $cross_compiling:$ac_tool_warned in
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9643 OTOOL64=$ac_ct_OTOOL64
9646 OTOOL64="$ac_cv_prog_OTOOL64"
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9676 printf %s "checking for -single_module linker flag... " >&6; }
9677 if test ${lt_cv_apple_cc_single_mod+y}
9679 printf %s "(cached) " >&6
9681 lt_cv_apple_cc_single_mod=no
9682 if test -z "$LT_MULTI_MODULE"; then
9683 # By default we will add the -single_module flag. You can override
9684 # by either setting the environment variable LT_MULTI_MODULE
9685 # non-empty at configure time, or by adding -multi_module to the
9687 rm -rf libconftest.dylib*
9688 echo "int foo(void){return 1;}" > conftest.c
9689 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9690 -dynamiclib -Wl,-single_module conftest.c" >&5
9691 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9692 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9694 # If there is a non-empty error log, and "single_module"
9695 # appears in it, assume the flag caused a linker warning
9696 if test -s conftest.err && $GREP single_module conftest.err; then
9697 cat conftest.err >&5
9698 # Otherwise, if the output was created with a 0 exit code from
9699 # the compiler, it worked.
9700 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9701 lt_cv_apple_cc_single_mod=yes
9703 cat conftest.err >&5
9705 rm -rf libconftest.dylib*
9709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9710 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9713 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9714 if test ${lt_cv_ld_exported_symbols_list+y}
9716 printf %s "(cached) " >&6
9718 lt_cv_ld_exported_symbols_list=no
9719 save_LDFLAGS=$LDFLAGS
9720 echo "_main" > conftest.sym
9721 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9733 if ac_fn_c_try_link "$LINENO"
9735 lt_cv_ld_exported_symbols_list=yes
9737 lt_cv_ld_exported_symbols_list=no
9739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9740 conftest$ac_exeext conftest.$ac_ext
9741 LDFLAGS=$save_LDFLAGS
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9745 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9748 printf %s "checking for -force_load linker flag... " >&6; }
9749 if test ${lt_cv_ld_force_load+y}
9751 printf %s "(cached) " >&6
9753 lt_cv_ld_force_load=no
9754 cat > conftest.c << _LT_EOF
9755 int forced_loaded() { return 2;}
9757 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9758 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9759 echo "$AR cr libconftest.a conftest.o" >&5
9760 $AR cr libconftest.a conftest.o 2>&5
9761 echo "$RANLIB libconftest.a" >&5
9762 $RANLIB libconftest.a 2>&5
9763 cat > conftest.c << _LT_EOF
9764 int main() { return 0;}
9766 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9767 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9769 if test -s conftest.err && $GREP force_load conftest.err; then
9770 cat conftest.err >&5
9771 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9772 lt_cv_ld_force_load=yes
9774 cat conftest.err >&5
9776 rm -f conftest.err libconftest.a conftest conftest.c
9777 rm -rf conftest.dSYM
9780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9781 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9783 rhapsody* | darwin1.[012])
9784 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9786 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9787 darwin*) # darwin 5.x on
9788 # if running on 10.5 or later, the deployment target defaults
9789 # to the OS version, if on x86, and 10.4, the deployment
9790 # target defaults to 10.4. Don't you love it?
9791 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9792 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9793 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9795 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9797 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9801 if test yes = "$lt_cv_apple_cc_single_mod"; then
9802 _lt_dar_single_mod='$single_module'
9804 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9805 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9809 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9810 _lt_dsymutil='~$DSYMUTIL $lib || :'
9817 # func_munge_path_list VARIABLE PATH
9818 # -----------------------------------
9819 # VARIABLE is name of variable containing _space_ separated list of
9820 # directories to be munged by the contents of PATH, which is string
9823 # string "DIR[ DIR]" will be prepended to VARIABLE
9825 # string "DIR[ DIR]" will be appended to VARIABLE
9826 # "DIRP[:DIRP]::[DIRA:]DIRA"
9827 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9828 # "DIRA[ DIRA]" will be appended to VARIABLE
9830 # VARIABLE will be replaced by "DIR[ DIR]"
9831 func_munge_path_list ()
9837 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9840 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9843 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9844 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9854 if test "x$ac_cv_header_dlfcn_h" = xyes
9856 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9874 # Check whether --enable-shared was given.
9875 if test ${enable_shared+y}
9877 enableval=$enable_shared; p=${PACKAGE-default}
9879 yes) enable_shared=yes ;;
9880 no) enable_shared=no ;;
9883 # Look at the argument we got. We use all the common list separators.
9884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9885 for pkg in $enableval; do
9887 if test "X$pkg" = "X$p"; then
9908 # Check whether --with-pic was given.
9909 if test ${with_pic+y}
9911 withval=$with_pic; lt_p=${PACKAGE-default}
9913 yes|no) pic_mode=$withval ;;
9916 # Look at the argument we got. We use all the common list separators.
9917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9918 for lt_pkg in $withval; do
9920 if test "X$lt_pkg" = "X$lt_p"; then
9938 # Check whether --enable-fast-install was given.
9939 if test ${enable_fast_install+y}
9941 enableval=$enable_fast_install; p=${PACKAGE-default}
9943 yes) enable_fast_install=yes ;;
9944 no) enable_fast_install=no ;;
9946 enable_fast_install=no
9947 # Look at the argument we got. We use all the common list separators.
9948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9949 for pkg in $enableval; do
9951 if test "X$pkg" = "X$p"; then
9952 enable_fast_install=yes
9959 enable_fast_install=yes
9969 shared_archive_member_spec=
9970 case $host,$enable_shared in
9971 power*-*-aix[5-9]*,yes)
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9973 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9975 # Check whether --with-aix-soname was given.
9976 if test ${with_aix_soname+y}
9978 withval=$with_aix_soname; case $withval in
9982 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9985 lt_cv_with_aix_soname=$with_aix_soname
9987 if test ${lt_cv_with_aix_soname+y}
9989 printf %s "(cached) " >&6
9991 lt_cv_with_aix_soname=aix
9994 with_aix_soname=$lt_cv_with_aix_soname
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9998 printf "%s\n" "$with_aix_soname" >&6; }
9999 if test aix != "$with_aix_soname"; then
10000 # For the AIX way of multilib, we name the shared archive member
10001 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
10002 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
10003 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
10004 # the AIX toolchain works better with OBJECT_MODE set (default 32).
10005 if test 64 = "${OBJECT_MODE-32}"; then
10006 shared_archive_member_spec=shr_64
10008 shared_archive_member_spec=shr
10013 with_aix_soname=aix
10026 # This can be used to rebuild libtool when needed
10027 LIBTOOL_DEPS=$ltmain
10029 # Always use our own libtool.
10030 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10061 test -z "$LN_S" && LN_S="ln -s"
10076 if test -n "${ZSH_VERSION+set}"; then
10077 setopt NO_GLOB_SUBST
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10081 printf %s "checking for objdir... " >&6; }
10082 if test ${lt_cv_objdir+y}
10084 printf %s "(cached) " >&6
10086 rm -f .libs 2>/dev/null
10087 mkdir .libs 2>/dev/null
10088 if test -d .libs; then
10091 # MS-DOS does not allow filenames that begin with a dot.
10094 rmdir .libs 2>/dev/null
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10097 printf "%s\n" "$lt_cv_objdir" >&6; }
10098 objdir=$lt_cv_objdir
10104 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
10111 # AIX sometimes has problems with the GCC collect2 program. For some
10112 # reason, if we set the COLLECT_NAMES environment variable, the problems
10113 # vanish in a puff of smoke.
10114 if test set != "${COLLECT_NAMES+set}"; then
10116 export COLLECT_NAMES
10121 # Global variables:
10123 can_build_shared=yes
10125 # All known linkers require a '.a' archive for static linking (except MSVC,
10126 # which needs '.lib').
10129 with_gnu_ld=$lt_cv_prog_gnu_ld
10134 # Set sane defaults for various variables
10135 test -z "$CC" && CC=cc
10136 test -z "$LTCC" && LTCC=$CC
10137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10138 test -z "$LD" && LD=ld
10139 test -z "$ac_objext" && ac_objext=o
10141 func_cc_basename $compiler
10142 cc_basename=$func_cc_basename_result
10145 # Only perform the check for file, if the check method requires it
10146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10147 case $deplibs_check_method in
10149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10151 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
10152 if test ${lt_cv_path_MAGIC_CMD+y}
10154 printf %s "(cached) " >&6
10158 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10161 lt_save_MAGIC_CMD=$MAGIC_CMD
10162 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10164 for ac_dir in $ac_dummy; do
10166 test -z "$ac_dir" && ac_dir=.
10167 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10168 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10169 if test -n "$file_magic_test_file"; then
10170 case $deplibs_check_method in
10172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10173 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10175 $EGREP "$file_magic_regex" > /dev/null; then
10180 *** Warning: the command libtool uses to detect shared libraries,
10181 *** $file_magic_cmd, produces output that libtool cannot recognize.
10182 *** The result is that libtool may fail to recognize shared libraries
10183 *** as such. This will affect the creation of libtool libraries that
10184 *** depend on shared libraries, but programs linked with such libtool
10185 *** libraries will work regardless of this problem. Nevertheless, you
10186 *** may want to report the problem to your system manager and/or to
10187 *** bug-libtool@gnu.org
10197 MAGIC_CMD=$lt_save_MAGIC_CMD
10202 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10203 if test -n "$MAGIC_CMD"; then
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10205 printf "%s\n" "$MAGIC_CMD" >&6; }
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 printf "%s\n" "no" >&6; }
10215 if test -z "$lt_cv_path_MAGIC_CMD"; then
10216 if test -n "$ac_tool_prefix"; then
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10218 printf %s "checking for file... " >&6; }
10219 if test ${lt_cv_path_MAGIC_CMD+y}
10221 printf %s "(cached) " >&6
10225 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10228 lt_save_MAGIC_CMD=$MAGIC_CMD
10229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10231 for ac_dir in $ac_dummy; do
10233 test -z "$ac_dir" && ac_dir=.
10234 if test -f "$ac_dir/file"; then
10235 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10236 if test -n "$file_magic_test_file"; then
10237 case $deplibs_check_method in
10239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10242 $EGREP "$file_magic_regex" > /dev/null; then
10247 *** Warning: the command libtool uses to detect shared libraries,
10248 *** $file_magic_cmd, produces output that libtool cannot recognize.
10249 *** The result is that libtool may fail to recognize shared libraries
10250 *** as such. This will affect the creation of libtool libraries that
10251 *** depend on shared libraries, but programs linked with such libtool
10252 *** libraries will work regardless of this problem. Nevertheless, you
10253 *** may want to report the problem to your system manager and/or to
10254 *** bug-libtool@gnu.org
10264 MAGIC_CMD=$lt_save_MAGIC_CMD
10269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10270 if test -n "$MAGIC_CMD"; then
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10272 printf "%s\n" "$MAGIC_CMD" >&6; }
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 printf "%s\n" "no" >&6; }
10288 # Use C for the default configuration in the libtool script
10292 ac_cpp='$CPP $CPPFLAGS'
10293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10298 # Source file extension for C test sources.
10301 # Object file extension for compiled C test sources.
10305 # Code to be used in simple compile tests
10306 lt_simple_compile_test_code="int some_variable = 0;"
10308 # Code to be used in simple link tests
10309 lt_simple_link_test_code='int main(){return(0);}'
10317 # If no C compiler was specified, use CC.
10320 # If no C compiler flags were specified, use CFLAGS.
10321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10323 # Allow CC to be a program name with arguments.
10326 # Save the default compiler, since it gets overwritten when the other
10327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10328 compiler_DEFAULT=$CC
10330 # save warnings/boilerplate of simple test code
10331 ac_outfile=conftest.$ac_objext
10332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10334 _lt_compiler_boilerplate=`cat conftest.err`
10337 ac_outfile=conftest.$ac_objext
10338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10340 _lt_linker_boilerplate=`cat conftest.err`
10345 ## There is no encapsulation within the following macros, do not change
10346 ## the running order or otherwise move them around unless you know exactly
10347 ## what you are doing...
10348 if test -n "$compiler"; then
10350 lt_prog_compiler_no_builtin_flag=
10352 if test yes = "$GCC"; then
10353 case $cc_basename in
10355 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10357 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10361 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10362 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10364 printf %s "(cached) " >&6
10366 lt_cv_prog_compiler_rtti_exceptions=no
10367 ac_outfile=conftest.$ac_objext
10368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10369 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10370 # Insert the option either (1) after the last *FLAGS variable, or
10371 # (2) before a word containing "conftest.", or (3) at the end.
10372 # Note that $ac_compile itself does not contain backslashes and begins
10373 # with a dollar sign (not a hyphen), so the echo should work correctly.
10374 # The option is referenced via a variable to avoid confusing sed.
10375 lt_compile=`echo "$ac_compile" | $SED \
10376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10378 -e 's:$: $lt_compiler_flag:'`
10379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10380 (eval "$lt_compile" 2>conftest.err)
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 if (exit $ac_status) && test -s "$ac_outfile"; then
10385 # The compiler can only warn and ignore the option if not recognized
10386 # So say no if there are warnings other than the usual output.
10387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10390 lt_cv_prog_compiler_rtti_exceptions=yes
10396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10397 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10399 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10400 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10412 lt_prog_compiler_wl=
10413 lt_prog_compiler_pic=
10414 lt_prog_compiler_static=
10417 if test yes = "$GCC"; then
10418 lt_prog_compiler_wl='-Wl,'
10419 lt_prog_compiler_static='-static'
10423 # All AIX code is PIC.
10424 if test ia64 = "$host_cpu"; then
10425 # AIX 5 now supports IA64 processor
10426 lt_prog_compiler_static='-Bstatic'
10428 lt_prog_compiler_pic='-fPIC'
10434 # see comment about AmigaOS4 .so support
10435 lt_prog_compiler_pic='-fPIC'
10438 # FIXME: we need at least 68020 code to build shared libraries, but
10439 # adding the '-m68020' flag to GCC prevents building anything better,
10441 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10447 # PIC is the default for these OSes.
10450 mingw* | cygwin* | pw32* | os2* | cegcc*)
10451 # This hack is so that the source file can tell whether it is being
10452 # built for inclusion in a dll (and should export symbols for example).
10453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10454 # (--disable-auto-import) libraries
10455 lt_prog_compiler_pic='-DDLL_EXPORT'
10458 lt_prog_compiler_static='$wl-static'
10463 darwin* | rhapsody*)
10464 # PIC is the default on this platform
10465 # Common symbols not allowed in MH_DYLIB files
10466 lt_prog_compiler_pic='-fno-common'
10470 # PIC is the default for Haiku.
10471 # The "-static" flag exists, but is broken.
10472 lt_prog_compiler_static=
10476 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10477 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10478 # sets the default TLS model and affects inlining.
10484 lt_prog_compiler_pic='-fPIC'
10490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10491 # Instead, we relocate shared libraries at runtime.
10495 # Just because we use GCC doesn't mean we suddenly get shared libraries
10496 # on systems that don't support them.
10497 lt_prog_compiler_can_build_shared=no
10502 # QNX uses GNU C++, but need to define -shared option too, otherwise
10503 # it will coredump.
10504 lt_prog_compiler_pic='-fPIC -shared'
10508 if test -d /usr/nec; then
10509 lt_prog_compiler_pic=-Kconform_pic
10514 lt_prog_compiler_pic='-fPIC'
10518 case $cc_basename in
10519 nvcc*) # Cuda Compiler Driver 2.2
10520 lt_prog_compiler_wl='-Xlinker '
10521 if test -n "$lt_prog_compiler_pic"; then
10522 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10527 # PORTME Check for flag to pass linker flags through the system compiler.
10530 lt_prog_compiler_wl='-Wl,'
10531 if test ia64 = "$host_cpu"; then
10532 # AIX 5 now supports IA64 processor
10533 lt_prog_compiler_static='-Bstatic'
10535 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10539 darwin* | rhapsody*)
10540 # PIC is the default on this platform
10541 # Common symbols not allowed in MH_DYLIB files
10542 lt_prog_compiler_pic='-fno-common'
10543 case $cc_basename in
10545 # NAG Fortran compiler
10546 lt_prog_compiler_wl='-Wl,-Wl,,'
10547 lt_prog_compiler_pic='-PIC'
10548 lt_prog_compiler_static='-Bstatic'
10553 mingw* | cygwin* | pw32* | os2* | cegcc*)
10554 # This hack is so that the source file can tell whether it is being
10555 # built for inclusion in a dll (and should export symbols for example).
10556 lt_prog_compiler_pic='-DDLL_EXPORT'
10559 lt_prog_compiler_static='$wl-static'
10564 hpux9* | hpux10* | hpux11*)
10565 lt_prog_compiler_wl='-Wl,'
10566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10567 # not for PA HP-UX.
10573 lt_prog_compiler_pic='+Z'
10576 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10577 lt_prog_compiler_static='$wl-a ${wl}archive'
10580 irix5* | irix6* | nonstopux*)
10581 lt_prog_compiler_wl='-Wl,'
10582 # PIC (with -KPIC) is the default.
10583 lt_prog_compiler_static='-non_shared'
10586 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10587 case $cc_basename in
10588 # old Intel for x86_64, which still supported -KPIC.
10590 lt_prog_compiler_wl='-Wl,'
10591 lt_prog_compiler_pic='-KPIC'
10592 lt_prog_compiler_static='-static'
10594 # flang / f18. f95 an alias for gfortran or flang on Debian
10595 flang* | f18* | f95*)
10596 lt_prog_compiler_wl='-Wl,'
10597 lt_prog_compiler_pic='-fPIC'
10598 lt_prog_compiler_static='-static'
10600 # icc used to be incompatible with GCC.
10601 # ICC 10 doesn't accept -KPIC any more.
10603 lt_prog_compiler_wl='-Wl,'
10604 lt_prog_compiler_pic='-fPIC'
10605 lt_prog_compiler_static='-static'
10607 # Lahey Fortran 8.1.
10609 lt_prog_compiler_wl='-Wl,'
10610 lt_prog_compiler_pic='--shared'
10611 lt_prog_compiler_static='--static'
10614 # NAG Fortran compiler
10615 lt_prog_compiler_wl='-Wl,-Wl,,'
10616 lt_prog_compiler_pic='-PIC'
10617 lt_prog_compiler_static='-Bstatic'
10620 # Fabrice Bellard et al's Tiny C Compiler
10621 lt_prog_compiler_wl='-Wl,'
10622 lt_prog_compiler_pic='-fPIC'
10623 lt_prog_compiler_static='-static'
10625 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10626 # Portland Group compilers (*not* the Pentium gcc compiler,
10627 # which looks to be a dead project)
10628 lt_prog_compiler_wl='-Wl,'
10629 lt_prog_compiler_pic='-fpic'
10630 lt_prog_compiler_static='-Bstatic'
10633 lt_prog_compiler_wl='-Wl,'
10634 # All Alpha code is PIC.
10635 lt_prog_compiler_static='-non_shared'
10637 xl* | bgxl* | bgf* | mpixl*)
10638 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10639 lt_prog_compiler_wl='-Wl,'
10640 lt_prog_compiler_pic='-qpic'
10641 lt_prog_compiler_static='-qstaticlink'
10644 case `$CC -V 2>&1 | sed 5q` in
10645 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10647 lt_prog_compiler_pic='-KPIC'
10648 lt_prog_compiler_static='-Bstatic'
10649 lt_prog_compiler_wl=''
10651 *Sun\ F* | *Sun*Fortran*)
10652 lt_prog_compiler_pic='-KPIC'
10653 lt_prog_compiler_static='-Bstatic'
10654 lt_prog_compiler_wl='-Qoption ld '
10658 lt_prog_compiler_pic='-KPIC'
10659 lt_prog_compiler_static='-Bstatic'
10660 lt_prog_compiler_wl='-Wl,'
10662 *Intel*\ [CF]*Compiler*)
10663 lt_prog_compiler_wl='-Wl,'
10664 lt_prog_compiler_pic='-fPIC'
10665 lt_prog_compiler_static='-static'
10668 lt_prog_compiler_wl='-Wl,'
10669 lt_prog_compiler_pic='-fpic'
10670 lt_prog_compiler_static='-Bstatic'
10678 lt_prog_compiler_pic='-KPIC'
10679 lt_prog_compiler_static='-Bstatic'
10683 # QNX uses GNU C++, but need to define -shared option too, otherwise
10684 # it will coredump.
10685 lt_prog_compiler_pic='-fPIC -shared'
10688 osf3* | osf4* | osf5*)
10689 lt_prog_compiler_wl='-Wl,'
10690 # All OSF/1 code is PIC.
10691 lt_prog_compiler_static='-non_shared'
10695 lt_prog_compiler_static='-non_shared'
10699 lt_prog_compiler_pic='-KPIC'
10700 lt_prog_compiler_static='-Bstatic'
10701 case $cc_basename in
10702 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10703 lt_prog_compiler_wl='-Qoption ld ';;
10705 lt_prog_compiler_wl='-Wl,';;
10710 lt_prog_compiler_wl='-Qoption ld '
10711 lt_prog_compiler_pic='-PIC'
10712 lt_prog_compiler_static='-Bstatic'
10715 sysv4 | sysv4.2uw2* | sysv4.3*)
10716 lt_prog_compiler_wl='-Wl,'
10717 lt_prog_compiler_pic='-KPIC'
10718 lt_prog_compiler_static='-Bstatic'
10722 if test -d /usr/nec; then
10723 lt_prog_compiler_pic='-Kconform_pic'
10724 lt_prog_compiler_static='-Bstatic'
10728 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10729 lt_prog_compiler_wl='-Wl,'
10730 lt_prog_compiler_pic='-KPIC'
10731 lt_prog_compiler_static='-Bstatic'
10735 lt_prog_compiler_wl='-Wl,'
10736 lt_prog_compiler_can_build_shared=no
10740 lt_prog_compiler_pic='-pic'
10741 lt_prog_compiler_static='-Bstatic'
10745 lt_prog_compiler_can_build_shared=no
10751 # For platforms that do not support PIC, -DPIC is meaningless:
10753 lt_prog_compiler_pic=
10756 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10761 printf %s "checking for $compiler option to produce PIC... " >&6; }
10762 if test ${lt_cv_prog_compiler_pic+y}
10764 printf %s "(cached) " >&6
10766 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10769 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10770 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10773 # Check to make sure the PIC flag actually works.
10775 if test -n "$lt_prog_compiler_pic"; then
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10777 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10778 if test ${lt_cv_prog_compiler_pic_works+y}
10780 printf %s "(cached) " >&6
10782 lt_cv_prog_compiler_pic_works=no
10783 ac_outfile=conftest.$ac_objext
10784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10786 # Insert the option either (1) after the last *FLAGS variable, or
10787 # (2) before a word containing "conftest.", or (3) at the end.
10788 # Note that $ac_compile itself does not contain backslashes and begins
10789 # with a dollar sign (not a hyphen), so the echo should work correctly.
10790 # The option is referenced via a variable to avoid confusing sed.
10791 lt_compile=`echo "$ac_compile" | $SED \
10792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10794 -e 's:$: $lt_compiler_flag:'`
10795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10796 (eval "$lt_compile" 2>conftest.err)
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 if (exit $ac_status) && test -s "$ac_outfile"; then
10801 # The compiler can only warn and ignore the option if not recognized
10802 # So say no if there are warnings other than the usual output.
10803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10806 lt_cv_prog_compiler_pic_works=yes
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10813 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10815 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10816 case $lt_prog_compiler_pic in
10818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10821 lt_prog_compiler_pic=
10822 lt_prog_compiler_can_build_shared=no
10838 # Check to make sure the static flag actually works.
10840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10842 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10843 if test ${lt_cv_prog_compiler_static_works+y}
10845 printf %s "(cached) " >&6
10847 lt_cv_prog_compiler_static_works=no
10848 save_LDFLAGS=$LDFLAGS
10849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10852 # The linker can only warn and ignore the option if not recognized
10853 # So say no if there are warnings
10854 if test -s conftest.err; then
10855 # Append any errors to the config.log.
10856 cat conftest.err 1>&5
10857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10859 if diff conftest.exp conftest.er2 >/dev/null; then
10860 lt_cv_prog_compiler_static_works=yes
10863 lt_cv_prog_compiler_static_works=yes
10867 LDFLAGS=$save_LDFLAGS
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10871 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10873 if test yes = "$lt_cv_prog_compiler_static_works"; then
10876 lt_prog_compiler_static=
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10886 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10887 if test ${lt_cv_prog_compiler_c_o+y}
10889 printf %s "(cached) " >&6
10891 lt_cv_prog_compiler_c_o=no
10892 $RM -r conftest 2>/dev/null
10896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10898 lt_compiler_flag="-o out/conftest2.$ac_objext"
10899 # Insert the option either (1) after the last *FLAGS variable, or
10900 # (2) before a word containing "conftest.", or (3) at the end.
10901 # Note that $ac_compile itself does not contain backslashes and begins
10902 # with a dollar sign (not a hyphen), so the echo should work correctly.
10903 lt_compile=`echo "$ac_compile" | $SED \
10904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10906 -e 's:$: $lt_compiler_flag:'`
10907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10908 (eval "$lt_compile" 2>out/conftest.err)
10910 cat out/conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10914 # The compiler can only warn and ignore the option if not recognized
10915 # So say no if there are warnings
10916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10919 lt_cv_prog_compiler_c_o=yes
10924 # SGI C++ compiler will create directory out/ii_files/ for
10925 # template instantiation
10926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10927 $RM out/* && rmdir out
10933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10934 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10942 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10943 if test ${lt_cv_prog_compiler_c_o+y}
10945 printf %s "(cached) " >&6
10947 lt_cv_prog_compiler_c_o=no
10948 $RM -r conftest 2>/dev/null
10952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10954 lt_compiler_flag="-o out/conftest2.$ac_objext"
10955 # Insert the option either (1) after the last *FLAGS variable, or
10956 # (2) before a word containing "conftest.", or (3) at the end.
10957 # Note that $ac_compile itself does not contain backslashes and begins
10958 # with a dollar sign (not a hyphen), so the echo should work correctly.
10959 lt_compile=`echo "$ac_compile" | $SED \
10960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10962 -e 's:$: $lt_compiler_flag:'`
10963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10964 (eval "$lt_compile" 2>out/conftest.err)
10966 cat out/conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10970 # The compiler can only warn and ignore the option if not recognized
10971 # So say no if there are warnings
10972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10975 lt_cv_prog_compiler_c_o=yes
10980 # SGI C++ compiler will create directory out/ii_files/ for
10981 # template instantiation
10982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10983 $RM out/* && rmdir out
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10990 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10995 hard_links=nottested
10996 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10997 # do not overwrite the value of need_locks provided by the user
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10999 printf %s "checking if we can lock with hard links... " >&6; }
11002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11004 ln conftest.a conftest.b 2>&5 || hard_links=no
11005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11007 printf "%s\n" "$hard_links" >&6; }
11008 if test no = "$hard_links"; then
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
11010 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11023 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11026 allow_undefined_flag=
11027 always_export_symbols=no
11029 archive_expsym_cmds=
11030 compiler_needs_object=no
11031 enable_shared_with_static_runtimes=no
11032 export_dynamic_flag_spec=
11033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11034 hardcode_automatic=no
11036 hardcode_direct_absolute=no
11037 hardcode_libdir_flag_spec=
11038 hardcode_libdir_separator=
11039 hardcode_minus_L=no
11040 hardcode_shlibpath_var=unsupported
11042 link_all_deplibs=unknown
11044 module_expsym_cmds=
11045 old_archive_from_new_cmds=
11046 old_archive_from_expsyms_cmds=
11047 thread_safe_flag_spec=
11048 whole_archive_flag_spec=
11049 # include_expsyms should be a list of space-separated symbols to be *always*
11050 # included in the symbol list
11052 # exclude_expsyms can be an extended regexp of symbols to exclude
11053 # it will be wrapped by ' (' and ')$', so one must not match beginning or
11054 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
11055 # as well as any symbol that contains 'd'.
11056 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11058 # platforms (ab)use it in PIC code, but their linkers get confused if
11059 # the symbol is explicitly referenced. Since portable code cannot
11060 # rely on this symbol name, it's probably fine to never include it in
11061 # preloaded symbol tables.
11062 # Exclude shared library initialization/finalization symbols.
11063 extract_expsyms_cmds=
11066 cygwin* | mingw* | pw32* | cegcc*)
11067 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11068 # When not using gcc, we currently assume that we are using
11069 # Microsoft Visual C++.
11070 if test yes != "$GCC"; then
11075 # we just hope/assume this is gcc and not c89 (= MSVC++)
11078 openbsd* | bitrig*)
11081 linux* | k*bsd*-gnu | gnu*)
11082 link_all_deplibs=no
11088 # On some targets, GNU ld is compatible enough with the native linker
11089 # that we're better off using the native interface for both.
11090 lt_use_gnu_ld_interface=no
11091 if test yes = "$with_gnu_ld"; then
11094 # The AIX port of GNU ld has always aspired to compatibility
11095 # with the native linker. However, as the warning in the GNU ld
11096 # block says, versions before 2.19.5* couldn't really create working
11097 # shared libraries, regardless of the interface used.
11098 case `$LD -v 2>&1` in
11099 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11100 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11101 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11103 lt_use_gnu_ld_interface=yes
11108 lt_use_gnu_ld_interface=yes
11113 if test yes = "$lt_use_gnu_ld_interface"; then
11114 # If archive_cmds runs LD, not CC, wlarc should be empty
11117 # Set some defaults for GNU ld with shared library support. These
11118 # are reset later if shared libraries are not supported. Putting them
11119 # here allows them to be overridden if necessary.
11120 runpath_var=LD_RUN_PATH
11121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11122 export_dynamic_flag_spec='$wl--export-dynamic'
11123 # ancient GNU ld didn't support --whole-archive et. al.
11124 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11125 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
11127 whole_archive_flag_spec=
11129 supports_anon_versioning=no
11130 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
11131 *GNU\ gold*) supports_anon_versioning=yes ;;
11132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11135 *\ 2.11.*) ;; # other 2.11 versions
11136 *) supports_anon_versioning=yes ;;
11139 # See if GNU ld supports shared libraries.
11142 # On AIX/PPC, the GNU linker is very broken
11143 if test ia64 != "$host_cpu"; then
11147 *** Warning: the GNU linker, at least up to release 2.19, is reported
11148 *** to be unable to reliably create shared libraries on AIX.
11149 *** Therefore, libtool is disabling shared libraries support. If you
11150 *** really care for shared libraries, you may want to install binutils
11151 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11152 *** You will then need to restart the configuration process.
11161 # see comment about AmigaOS4 .so support
11162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11163 archive_expsym_cmds=''
11166 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)'
11167 hardcode_libdir_flag_spec='-L$libdir'
11168 hardcode_minus_L=yes
11174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11175 allow_undefined_flag=unsupported
11176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11177 # support --undefined. This deserves some investigation. FIXME
11178 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11184 cygwin* | mingw* | pw32* | cegcc*)
11185 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11186 # as there is no search path for DLLs.
11187 hardcode_libdir_flag_spec='-L$libdir'
11188 export_dynamic_flag_spec='$wl--export-all-symbols'
11189 allow_undefined_flag=unsupported
11190 always_export_symbols=no
11191 enable_shared_with_static_runtimes=yes
11192 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'
11193 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11197 # If the export-symbols file already is a .def file, use it as
11198 # is; otherwise, prepend EXPORTS...
11199 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11200 cp $export_symbols $output_objdir/$soname.def;
11202 echo EXPORTS > $output_objdir/$soname.def;
11203 cat $export_symbols >> $output_objdir/$soname.def;
11205 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11213 link_all_deplibs=yes
11217 hardcode_libdir_flag_spec='-L$libdir'
11218 hardcode_minus_L=yes
11219 allow_undefined_flag=unsupported
11221 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11224 $ECHO EXPORTS >> $output_objdir/$libname.def~
11225 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11227 emximp -o $lib $output_objdir/$libname.def'
11228 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11229 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11230 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11231 $ECHO EXPORTS >> $output_objdir/$libname.def~
11232 prefix_cmds="$SED"~
11233 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11234 prefix_cmds="$prefix_cmds -e 1d";
11236 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11237 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11239 emximp -o $lib $output_objdir/$libname.def'
11240 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11241 enable_shared_with_static_runtimes=yes
11246 hardcode_shlibpath_var=no
11247 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11248 export_dynamic_flag_spec='$wl-E'
11249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11250 # Instead, shared libraries are loaded at an image base (0x10000000 by
11251 # default) and relocated if they conflict, which is a slow very memory
11252 # consuming and fragmenting process. To avoid this, we pick a random,
11253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11255 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11256 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'
11259 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11261 if test linux-dietlibc = "$host_os"; then
11262 case $cc_basename in
11263 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11266 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11267 && test no = "$tmp_diet"
11269 tmp_addflag=' $pic_flag'
11270 tmp_sharedflag='-shared'
11271 case $cc_basename,$host_cpu in
11272 pgcc*) # Portland Group C compiler
11273 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'
11274 tmp_addflag=' $pic_flag'
11276 pgf77* | pgf90* | pgf95* | pgfortran*)
11277 # Portland Group f77 and f90 compilers
11278 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'
11279 tmp_addflag=' $pic_flag -Mnomain' ;;
11280 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11281 tmp_addflag=' -i_dynamic' ;;
11282 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11283 tmp_addflag=' -i_dynamic -nofor_main' ;;
11284 ifc* | ifort*) # Intel Fortran compiler
11285 tmp_addflag=' -nofor_main' ;;
11286 lf95*) # Lahey Fortran 8.1
11287 whole_archive_flag_spec=
11288 tmp_sharedflag='--shared' ;;
11289 nagfor*) # NAGFOR 5.3
11290 tmp_sharedflag='-Wl,-shared' ;;
11291 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11292 tmp_sharedflag='-qmkshrobj'
11294 nvcc*) # Cuda Compiler Driver 2.2
11295 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'
11296 compiler_needs_object=yes
11299 case `$CC -V 2>&1 | sed 5q` in
11300 *Sun\ C*) # Sun C 5.9
11301 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'
11302 compiler_needs_object=yes
11303 tmp_sharedflag='-G' ;;
11304 *Sun\ F*) # Sun Fortran 8.3
11305 tmp_sharedflag='-G' ;;
11307 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11309 if test yes = "$supports_anon_versioning"; then
11310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11312 echo "local: *; };" >> $output_objdir/$libname.ver~
11313 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11316 case $cc_basename in
11318 export_dynamic_flag_spec='-rdynamic'
11320 xlf* | bgf* | bgxlf* | mpixlf*)
11321 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11322 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11325 if test yes = "$supports_anon_versioning"; then
11326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11328 echo "local: *; };" >> $output_objdir/$libname.ver~
11329 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11338 netbsd* | netbsdelf*-gnu)
11339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11340 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11343 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11344 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11349 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11354 *** create shared libraries on Solaris systems. Therefore, libtool
11355 *** is disabling shared libraries support. We urge you to upgrade GNU
11356 *** binutils to release 2.9.1 or newer. Another option is to modify
11357 *** your PATH or compiler configuration so that the native linker is
11358 *** used, and then restart.
11361 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11363 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11370 case `$LD -v 2>&1` in
11371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11376 *** reliably create shared libraries on SCO systems. Therefore, libtool
11377 *** is disabling shared libraries support. We urge you to upgrade GNU
11378 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11379 *** your PATH or compiler configuration so that the native linker is
11380 *** used, and then restart.
11385 # For security reasons, it is highly recommended that you always
11386 # use absolute paths for naming shared libraries, and exclude the
11387 # DT_RUNPATH tag from executables and libraries. But doing so
11388 # requires that you compile everything twice, which is a pain.
11389 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11390 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11391 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11392 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11401 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11403 hardcode_direct=yes
11404 hardcode_shlibpath_var=no
11408 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11410 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11417 if test no = "$ld_shlibs"; then
11419 hardcode_libdir_flag_spec=
11420 export_dynamic_flag_spec=
11421 whole_archive_flag_spec=
11424 # PORTME fill in a description of your system's linker (not GNU ld)
11427 allow_undefined_flag=unsupported
11428 always_export_symbols=yes
11429 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'
11430 # Note: this linker hardcodes the directories in LIBPATH if there
11431 # are no directories specified by -L.
11432 hardcode_minus_L=yes
11433 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11434 # Neither direct hardcoding nor static linking is supported with a
11436 hardcode_direct=unsupported
11441 if test ia64 = "$host_cpu"; then
11442 # On IA64, the linker does run time linking by default, so we don't
11443 # have to do anything special.
11444 aix_use_runtimelinking=no
11445 exp_sym_flag='-Bexport'
11448 # If we're using GNU nm, then we don't want the "-C" option.
11449 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11450 # Without the "-l" option, or with the "-B" option, AIX nm treats
11451 # weak defined symbols like other global defined symbols, whereas
11452 # GNU nm marks them as "W".
11453 # While the 'weak' keyword is ignored in the Export File, we need
11454 # it in the Import File for the 'aix-soname' feature, so we have
11455 # to replace the "-B" option with "-P" for AIX nm.
11456 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11457 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11459 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11461 aix_use_runtimelinking=no
11463 # Test if we are trying to use run time linking or normal
11464 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11465 # have runtime linking enabled, and use it for executables.
11466 # For shared libraries, we enable/disable runtime linking
11467 # depending on the kind of the shared library created -
11468 # when "with_aix_soname,aix_use_runtimelinking" is:
11469 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11470 # "aix,yes" lib.so shared, rtl:yes, for executables
11471 # lib.a static archive
11472 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11473 # lib.a(lib.so.V) shared, rtl:no, for executables
11474 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11475 # lib.a(lib.so.V) shared, rtl:no
11476 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11477 # lib.a static archive
11478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11479 for ld_flag in $LDFLAGS; do
11480 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11481 aix_use_runtimelinking=yes
11485 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11486 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11487 # so we don't have lib.a shared libs to link our executables.
11488 # We have to force runtime linking in this case.
11489 aix_use_runtimelinking=yes
11490 LDFLAGS="$LDFLAGS -Wl,-brtl"
11495 exp_sym_flag='-bexport'
11496 no_entry_flag='-bnoentry'
11499 # When large executables or shared objects are built, AIX ld can
11500 # have problems creating the table of contents. If linking a library
11501 # or program results in "error TOC overflow" add -mminimal-toc to
11502 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11503 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11506 hardcode_direct=yes
11507 hardcode_direct_absolute=yes
11508 hardcode_libdir_separator=':'
11509 link_all_deplibs=yes
11510 file_list_spec='$wl-f,'
11511 case $with_aix_soname,$aix_use_runtimelinking in
11512 aix,*) ;; # traditional, no import file
11513 svr4,* | *,yes) # use import file
11514 # The Import File defines what to hardcode.
11516 hardcode_direct_absolute=no
11520 if test yes = "$GCC"; then
11521 case $host_os in aix4.[012]|aix4.[012].*)
11522 # We only want to do this on AIX 4.2 and lower, the check
11523 # below for broken collect2 doesn't work under 4.3+
11524 collect2name=`$CC -print-prog-name=collect2`
11525 if test -f "$collect2name" &&
11526 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11528 # We have reworked collect2
11531 # We have old collect2
11532 hardcode_direct=unsupported
11533 # It fails to find uninstalled libraries when the uninstalled
11534 # path is not listed in the libpath. Setting hardcode_minus_L
11535 # to unsupported forces relinking
11536 hardcode_minus_L=yes
11537 hardcode_libdir_flag_spec='-L$libdir'
11538 hardcode_libdir_separator=
11542 shared_flag='-shared'
11543 if test yes = "$aix_use_runtimelinking"; then
11544 shared_flag="$shared_flag "'$wl-G'
11546 # Need to ensure runtime linking is disabled for the traditional
11547 # shared library, or the linker may eventually find shared libraries
11548 # /with/ Import File - we do not want to mix them.
11549 shared_flag_aix='-shared'
11550 shared_flag_svr4='-shared $wl-G'
11553 if test ia64 = "$host_cpu"; then
11554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11555 # chokes on -Wl,-G. The following line is correct:
11558 if test yes = "$aix_use_runtimelinking"; then
11559 shared_flag='$wl-G'
11561 shared_flag='$wl-bM:SRE'
11563 shared_flag_aix='$wl-bM:SRE'
11564 shared_flag_svr4='$wl-G'
11568 export_dynamic_flag_spec='$wl-bexpall'
11569 # It seems that -bexpall does not export symbols beginning with
11570 # underscore (_), so it is better to generate a list of symbols to export.
11571 always_export_symbols=yes
11572 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11573 # Warning - without using the other runtime loading flags (-brtl),
11574 # -berok will link without error, but may produce a broken library.
11575 allow_undefined_flag='-berok'
11576 # Determine the default libpath from the value encoded in an
11577 # empty executable.
11578 if test set = "${lt_cv_aix_libpath+set}"; then
11579 aix_libpath=$lt_cv_aix_libpath
11581 if test ${lt_cv_aix_libpath_+y}
11583 printf %s "(cached) " >&6
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11596 if ac_fn_c_try_link "$LINENO"
11599 lt_aix_libpath_sed='
11600 /Import File Strings/,/^$/ {
11602 s/^0 *\([^ ]*\) *$/\1/
11606 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11607 # Check for a 64-bit object if we didn't find anything.
11608 if test -z "$lt_cv_aix_libpath_"; then
11609 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11613 conftest$ac_exeext conftest.$ac_ext
11614 if test -z "$lt_cv_aix_libpath_"; then
11615 lt_cv_aix_libpath_=/usr/lib:/lib
11620 aix_libpath=$lt_cv_aix_libpath_
11623 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11624 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11626 if test ia64 = "$host_cpu"; then
11627 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11628 allow_undefined_flag="-z nodefs"
11629 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"
11631 # Determine the default libpath from the value encoded in an
11632 # empty executable.
11633 if test set = "${lt_cv_aix_libpath+set}"; then
11634 aix_libpath=$lt_cv_aix_libpath
11636 if test ${lt_cv_aix_libpath_+y}
11638 printf %s "(cached) " >&6
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11651 if ac_fn_c_try_link "$LINENO"
11654 lt_aix_libpath_sed='
11655 /Import File Strings/,/^$/ {
11657 s/^0 *\([^ ]*\) *$/\1/
11661 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11662 # Check for a 64-bit object if we didn't find anything.
11663 if test -z "$lt_cv_aix_libpath_"; then
11664 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11668 conftest$ac_exeext conftest.$ac_ext
11669 if test -z "$lt_cv_aix_libpath_"; then
11670 lt_cv_aix_libpath_=/usr/lib:/lib
11675 aix_libpath=$lt_cv_aix_libpath_
11678 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11679 # Warning - without using the other run time loading flags,
11680 # -berok will link without error, but may produce a broken library.
11681 no_undefined_flag=' $wl-bernotok'
11682 allow_undefined_flag=' $wl-berok'
11683 if test yes = "$with_gnu_ld"; then
11684 # We only use this code for GNU lds that support --whole-archive.
11685 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11687 # Exported symbols can be pulled into shared objects from archives
11688 whole_archive_flag_spec='$convenience'
11690 archive_cmds_need_lc=yes
11691 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11692 # -brtl affects multiple linker settings, -berok does not and is overridden later
11693 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11694 if test svr4 != "$with_aix_soname"; then
11695 # This is similar to how AIX traditionally builds its shared libraries.
11696 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11698 if test aix != "$with_aix_soname"; then
11699 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11701 # used by -dlpreopen to get the symbols
11702 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11704 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11712 # see comment about AmigaOS4 .so support
11713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11714 archive_expsym_cmds=''
11717 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)'
11718 hardcode_libdir_flag_spec='-L$libdir'
11719 hardcode_minus_L=yes
11725 export_dynamic_flag_spec=-rdynamic
11728 cygwin* | mingw* | pw32* | cegcc*)
11729 # When not using gcc, we currently assume that we are using
11730 # Microsoft Visual C++.
11731 # hardcode_libdir_flag_spec is actually meaningless, as there is
11732 # no search path for DLLs.
11733 case $cc_basename in
11736 hardcode_libdir_flag_spec=' '
11737 allow_undefined_flag=unsupported
11738 always_export_symbols=yes
11740 # Tell ltmain to make .lib files, not .a files.
11742 # Tell ltmain to make .dll files, not .so files.
11744 # FIXME: Setting linknames here is a bad hack.
11745 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11746 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11747 cp "$export_symbols" "$output_objdir/$soname.def";
11748 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11750 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11752 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11754 # The linker will not automatically build a static lib if we build a DLL.
11755 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11756 enable_shared_with_static_runtimes=yes
11757 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11758 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11760 old_postinstall_cmds='chmod 644 $oldlib'
11761 postlink_cmds='lt_outputfile="@OUTPUT@"~
11762 lt_tool_outputfile="@TOOL_OUTPUT@"~
11763 case $lt_outputfile in
11766 lt_outputfile=$lt_outputfile.exe
11767 lt_tool_outputfile=$lt_tool_outputfile.exe
11770 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11771 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11772 $RM "$lt_outputfile.manifest";
11776 # Assume MSVC wrapper
11777 hardcode_libdir_flag_spec=' '
11778 allow_undefined_flag=unsupported
11779 # Tell ltmain to make .lib files, not .a files.
11781 # Tell ltmain to make .dll files, not .so files.
11783 # FIXME: Setting linknames here is a bad hack.
11784 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11785 # The linker will automatically build a .lib file if we build a DLL.
11786 old_archive_from_new_cmds='true'
11787 # FIXME: Should let the user specify the lib program.
11788 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11789 enable_shared_with_static_runtimes=yes
11794 darwin* | rhapsody*)
11797 archive_cmds_need_lc=no
11799 hardcode_automatic=yes
11800 hardcode_shlibpath_var=unsupported
11801 if test yes = "$lt_cv_ld_force_load"; then
11802 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\"`'
11805 whole_archive_flag_spec=''
11807 link_all_deplibs=yes
11808 allow_undefined_flag=$_lt_dar_allow_undefined
11809 case $cc_basename in
11810 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11811 *) _lt_dar_can_shared=$GCC ;;
11813 if test yes = "$_lt_dar_can_shared"; then
11814 output_verbose_link_cmd=func_echo_all
11815 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11816 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11817 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"
11818 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"
11827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11828 hardcode_libdir_flag_spec='-L$libdir'
11829 hardcode_shlibpath_var=no
11832 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11833 # support. Future versions do this automatically, but an explicit c++rt0.o
11834 # does not break anything, and helps significantly (at the cost of a little
11837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11838 hardcode_libdir_flag_spec='-R$libdir'
11839 hardcode_direct=yes
11840 hardcode_shlibpath_var=no
11843 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11845 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11846 hardcode_direct=yes
11847 hardcode_minus_L=yes
11848 hardcode_shlibpath_var=no
11851 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11852 freebsd* | dragonfly*)
11853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11854 hardcode_libdir_flag_spec='-R$libdir'
11855 hardcode_direct=yes
11856 hardcode_shlibpath_var=no
11860 if test yes = "$GCC"; then
11861 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11863 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11865 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11866 hardcode_libdir_separator=:
11867 hardcode_direct=yes
11869 # hardcode_minus_L: Not really in the search PATH,
11870 # but as the default location of the library.
11871 hardcode_minus_L=yes
11872 export_dynamic_flag_spec='$wl-E'
11876 if test yes,no = "$GCC,$with_gnu_ld"; then
11877 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11879 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11881 if test no = "$with_gnu_ld"; then
11882 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11883 hardcode_libdir_separator=:
11884 hardcode_direct=yes
11885 hardcode_direct_absolute=yes
11886 export_dynamic_flag_spec='$wl-E'
11887 # hardcode_minus_L: Not really in the search PATH,
11888 # but as the default location of the library.
11889 hardcode_minus_L=yes
11894 if test yes,no = "$GCC,$with_gnu_ld"; then
11897 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11900 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11903 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11909 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11916 # Older versions of the 11.00 compiler do not understand -b yet
11917 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11919 printf %s "checking if $CC understands -b... " >&6; }
11920 if test ${lt_cv_prog_compiler__b+y}
11922 printf %s "(cached) " >&6
11924 lt_cv_prog_compiler__b=no
11925 save_LDFLAGS=$LDFLAGS
11926 LDFLAGS="$LDFLAGS -b"
11927 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11928 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11929 # The linker can only warn and ignore the option if not recognized
11930 # So say no if there are warnings
11931 if test -s conftest.err; then
11932 # Append any errors to the config.log.
11933 cat conftest.err 1>&5
11934 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11936 if diff conftest.exp conftest.er2 >/dev/null; then
11937 lt_cv_prog_compiler__b=yes
11940 lt_cv_prog_compiler__b=yes
11944 LDFLAGS=$save_LDFLAGS
11947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11948 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11950 if test yes = "$lt_cv_prog_compiler__b"; then
11951 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11959 if test no = "$with_gnu_ld"; then
11960 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11961 hardcode_libdir_separator=:
11966 hardcode_shlibpath_var=no
11969 hardcode_direct=yes
11970 hardcode_direct_absolute=yes
11971 export_dynamic_flag_spec='$wl-E'
11973 # hardcode_minus_L: Not really in the search PATH,
11974 # but as the default location of the library.
11975 hardcode_minus_L=yes
11981 irix5* | irix6* | nonstopux*)
11982 if test yes = "$GCC"; then
11983 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'
11984 # Try to use the -exported_symbol ld option, if it does not
11985 # work, assume that -exports_file does not work either and
11986 # implicitly export all symbols.
11987 # This should be the same for all languages, so no per-tag cache variable.
11988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11989 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11990 if test ${lt_cv_irix_exported_symbol+y}
11992 printf %s "(cached) " >&6
11994 save_LDFLAGS=$LDFLAGS
11995 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 int foo (void) { return 0; }
12000 if ac_fn_c_try_link "$LINENO"
12002 lt_cv_irix_exported_symbol=yes
12004 lt_cv_irix_exported_symbol=no
12006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LDFLAGS=$save_LDFLAGS
12010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
12011 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
12012 if test yes = "$lt_cv_irix_exported_symbol"; then
12013 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'
12015 link_all_deplibs=no
12017 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'
12018 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'
12020 archive_cmds_need_lc='no'
12021 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12022 hardcode_libdir_separator=:
12024 link_all_deplibs=yes
12028 case $cc_basename in
12030 # Fabrice Bellard et al's Tiny C Compiler
12032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12037 netbsd* | netbsdelf*-gnu)
12038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12041 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12043 hardcode_libdir_flag_spec='-R$libdir'
12044 hardcode_direct=yes
12045 hardcode_shlibpath_var=no
12049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12050 hardcode_direct=yes
12051 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12052 hardcode_libdir_separator=:
12053 hardcode_shlibpath_var=no
12059 openbsd* | bitrig*)
12060 if test -f /usr/libexec/ld.so; then
12061 hardcode_direct=yes
12062 hardcode_shlibpath_var=no
12063 hardcode_direct_absolute=yes
12064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12066 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
12067 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12068 export_dynamic_flag_spec='$wl-E'
12070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12071 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12079 hardcode_libdir_flag_spec='-L$libdir'
12080 hardcode_minus_L=yes
12081 allow_undefined_flag=unsupported
12083 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12084 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12085 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12086 $ECHO EXPORTS >> $output_objdir/$libname.def~
12087 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12088 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12089 emximp -o $lib $output_objdir/$libname.def'
12090 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12091 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12092 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12093 $ECHO EXPORTS >> $output_objdir/$libname.def~
12094 prefix_cmds="$SED"~
12095 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12096 prefix_cmds="$prefix_cmds -e 1d";
12098 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12099 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12100 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12101 emximp -o $lib $output_objdir/$libname.def'
12102 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12103 enable_shared_with_static_runtimes=yes
12107 if test yes = "$GCC"; then
12108 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12109 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'
12111 allow_undefined_flag=' -expect_unresolved \*'
12112 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'
12114 archive_cmds_need_lc='no'
12115 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12116 hardcode_libdir_separator=:
12119 osf4* | osf5*) # as osf3* with the addition of -msym flag
12120 if test yes = "$GCC"; then
12121 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
12122 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'
12123 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12125 allow_undefined_flag=' -expect_unresolved \*'
12126 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'
12127 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~
12128 $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'
12130 # Both c and cxx compiler support -rpath directly
12131 hardcode_libdir_flag_spec='-rpath $libdir'
12133 archive_cmds_need_lc='no'
12134 hardcode_libdir_separator=:
12138 no_undefined_flag=' -z defs'
12139 if test yes = "$GCC"; then
12141 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12143 $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'
12145 case `$CC -V 2>&1` in
12148 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12149 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12150 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12154 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12156 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12160 hardcode_libdir_flag_spec='-R$libdir'
12161 hardcode_shlibpath_var=no
12163 solaris2.[0-5] | solaris2.[0-5].*) ;;
12165 # The compiler driver will combine and reorder linker options,
12166 # but understands '-z linker_flag'. GCC discards it without '$wl',
12167 # but is careful enough not to reorder.
12168 # Supported since Solaris 2.6 (maybe 2.5.1?)
12169 if test yes = "$GCC"; then
12170 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12172 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12176 link_all_deplibs=yes
12180 if test sequent = "$host_vendor"; then
12181 # Use $CC to link under sequent, because it throws in some extra .o
12182 # files that make .init and .fini sections work.
12183 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12185 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12187 hardcode_libdir_flag_spec='-L$libdir'
12188 hardcode_direct=yes
12189 hardcode_minus_L=yes
12190 hardcode_shlibpath_var=no
12194 case $host_vendor in
12196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12197 hardcode_direct=yes # is this really true???
12200 ## LD is ld it makes a PLAMLIB
12201 ## CC just makes a GrossModule.
12202 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12203 reload_cmds='$CC -r -o $output$reload_objs'
12207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12208 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12211 runpath_var='LD_RUN_PATH'
12212 hardcode_shlibpath_var=no
12216 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12217 hardcode_shlibpath_var=no
12218 export_dynamic_flag_spec='-Bexport'
12222 if test -d /usr/nec; then
12223 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12224 hardcode_shlibpath_var=no
12225 runpath_var=LD_RUN_PATH
12226 hardcode_runpath_var=yes
12231 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12232 no_undefined_flag='$wl-z,text'
12233 archive_cmds_need_lc=no
12234 hardcode_shlibpath_var=no
12235 runpath_var='LD_RUN_PATH'
12237 if test yes = "$GCC"; then
12238 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12239 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12242 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12246 sysv5* | sco3.2v5* | sco5v6*)
12247 # Note: We CANNOT use -z defs as we might desire, because we do not
12248 # link with -lc, and that would cause any symbols used from libc to
12249 # always be unresolved, which means just about no library would
12250 # ever link correctly. If we're not using GNU ld we use -z text
12251 # though, which does catch some bad symbols but isn't as heavy-handed
12253 no_undefined_flag='$wl-z,text'
12254 allow_undefined_flag='$wl-z,nodefs'
12255 archive_cmds_need_lc=no
12256 hardcode_shlibpath_var=no
12257 hardcode_libdir_flag_spec='$wl-R,$libdir'
12258 hardcode_libdir_separator=':'
12259 link_all_deplibs=yes
12260 export_dynamic_flag_spec='$wl-Bexport'
12261 runpath_var='LD_RUN_PATH'
12263 if test yes = "$GCC"; then
12264 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12267 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12274 hardcode_libdir_flag_spec='-L$libdir'
12275 hardcode_shlibpath_var=no
12283 if test sni = "$host_vendor"; then
12285 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12286 export_dynamic_flag_spec='$wl-Blargedynsym'
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12293 printf "%s\n" "$ld_shlibs" >&6; }
12294 test no = "$ld_shlibs" && can_build_shared=no
12296 with_gnu_ld=$with_gnu_ld
12313 # Do we need to explicitly link libc?
12315 case "x$archive_cmds_need_lc" in
12317 # Assume -lc should be added
12318 archive_cmds_need_lc=yes
12320 if test yes,yes = "$GCC,$enable_shared"; then
12321 case $archive_cmds in
12323 # FIXME: we may have to deal with multi-command sequences.
12326 # Test whether the compiler implicitly links with -lc since on some
12327 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12328 # to ld, don't add -lc before -lgcc.
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12330 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12331 if test ${lt_cv_archive_cmds_need_lc+y}
12333 printf %s "(cached) " >&6
12336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12339 (eval $ac_compile) 2>&5
12341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342 test $ac_status = 0; } 2>conftest.err; then
12345 libobjs=conftest.$ac_objext
12347 wl=$lt_prog_compiler_wl
12348 pic_flag=$lt_prog_compiler_pic
12354 lt_save_allow_undefined_flag=$allow_undefined_flag
12355 allow_undefined_flag=
12356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12357 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12360 test $ac_status = 0; }
12362 lt_cv_archive_cmds_need_lc=no
12364 lt_cv_archive_cmds_need_lc=yes
12366 allow_undefined_flag=$lt_save_allow_undefined_flag
12368 cat conftest.err 1>&5
12373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12374 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12375 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12534 printf %s "checking dynamic linker characteristics... " >&6; }
12536 if test yes = "$GCC"; then
12538 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12539 *) lt_awk_arg='/^libraries:/' ;;
12542 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12543 *) lt_sed_strip_eq='s|=/|/|g' ;;
12545 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12546 case $lt_search_path_spec in
12548 # if the path contains ";" then we assume it to be the separator
12549 # otherwise default to the standard path separator (i.e. ":") - it is
12550 # assumed that no part of a normal pathname contains ";" but that should
12551 # okay in the real world where ";" in dirpaths is itself problematic.
12552 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12555 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12558 # Ok, now we have the path, separated by spaces, we can step through it
12559 # and add multilib dir if necessary...
12560 lt_tmp_lt_search_path_spec=
12561 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12562 # ...but if some path component already ends with the multilib dir we assume
12563 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12564 case "$lt_multi_os_dir; $lt_search_path_spec " in
12565 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12569 for lt_sys_path in $lt_search_path_spec; do
12570 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12571 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12572 elif test -n "$lt_multi_os_dir"; then
12573 test -d "$lt_sys_path" && \
12574 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12577 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12578 BEGIN {RS = " "; FS = "/|\n";} {
12581 for (lt_i = NF; lt_i > 0; lt_i--) {
12582 if ($lt_i != "" && $lt_i != ".") {
12583 if ($lt_i == "..") {
12586 if (lt_count == 0) {
12587 lt_foo = "/" $lt_i lt_foo;
12594 if (lt_foo != "") { lt_freq[lt_foo]++; }
12595 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12597 # AWK program above erroneously prepends '/' to C:/dos/paths
12600 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12601 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12603 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12605 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12607 library_names_spec=
12608 libname_spec='lib$name'
12612 postuninstall_cmds=
12616 shlibpath_overrides_runpath=unknown
12618 dynamic_linker="$host_os ld.so"
12619 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12620 need_lib_prefix=unknown
12621 hardcode_into_libs=no
12623 # when you set need_version to no, make sure it does not cause -set_version
12624 # flags to be left without arguments
12625 need_version=unknown
12631 version_type=linux # correct to gnu/linux during the next big refactor
12632 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12633 shlibpath_var=LIBPATH
12635 # AIX 3 has no versioning support, so we append a major version to the name.
12636 soname_spec='$libname$release$shared_ext$major'
12640 version_type=linux # correct to gnu/linux during the next big refactor
12643 hardcode_into_libs=yes
12644 if test ia64 = "$host_cpu"; then
12645 # AIX 5 supports IA64
12646 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12647 shlibpath_var=LD_LIBRARY_PATH
12649 # With GCC up to 2.95.x, collect2 would create an import file
12650 # for dependence libraries. The import file would start with
12651 # the line '#! .'. This would cause the generated library to
12652 # depend on '.', always an invalid library. This was fixed in
12653 # development snapshots of GCC prior to 3.0.
12655 aix4 | aix4.[01] | aix4.[01].*)
12656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12658 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12661 can_build_shared=no
12665 # Using Import Files as archive members, it is possible to support
12666 # filename-based versioning of shared library archives on AIX. While
12667 # this would work for both with and without runtime linking, it will
12668 # prevent static linking of such archives. So we do filename-based
12669 # shared library versioning with .so extension only, which is used
12670 # when both runtime linking and shared linking is enabled.
12671 # Unfortunately, runtime linking may impact performance, so we do
12672 # not want this to be the default eventually. Also, we use the
12673 # versioned .so libs for executables only if there is the -brtl
12674 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12675 # To allow for filename-based versioning support, we need to create
12676 # libNAME.so.V as an archive file, containing:
12677 # *) an Import File, referring to the versioned filename of the
12678 # archive as well as the shared archive member, telling the
12679 # bitwidth (32 or 64) of that shared object, and providing the
12680 # list of exported symbols of that shared object, eventually
12681 # decorated with the 'weak' keyword
12682 # *) the shared object with the F_LOADONLY flag set, to really avoid
12683 # it being seen by the linker.
12684 # At run time we better use the real file rather than another symlink,
12685 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12687 case $with_aix_soname,$aix_use_runtimelinking in
12688 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12689 # soname into executable. Probably we can add versioning support to
12690 # collect2, so additional links can be useful in future.
12691 aix,yes) # traditional libtool
12692 dynamic_linker='AIX unversionable lib.so'
12693 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12694 # instead of lib<name>.a to let people know that these are not
12695 # typical AIX shared libraries.
12696 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12698 aix,no) # traditional AIX only
12699 dynamic_linker='AIX lib.a(lib.so.V)'
12700 # We preserve .a as extension for shared libraries through AIX4.2
12701 # and later when we are not doing run time linking.
12702 library_names_spec='$libname$release.a $libname.a'
12703 soname_spec='$libname$release$shared_ext$major'
12705 svr4,*) # full svr4 only
12706 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12707 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12708 # We do not specify a path in Import Files, so LIBPATH fires.
12709 shlibpath_overrides_runpath=yes
12711 *,yes) # both, prefer svr4
12712 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12713 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12714 # unpreferred sharedlib libNAME.a needs extra handling
12715 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12716 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12717 # We do not specify a path in Import Files, so LIBPATH fires.
12718 shlibpath_overrides_runpath=yes
12720 *,no) # both, prefer aix
12721 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12722 library_names_spec='$libname$release.a $libname.a'
12723 soname_spec='$libname$release$shared_ext$major'
12724 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12725 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12726 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12729 shlibpath_var=LIBPATH
12736 # Since July 2007 AmigaOS4 officially supports .so libraries.
12737 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12741 library_names_spec='$libname.ixlibrary $libname.a'
12742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12743 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12749 library_names_spec='$libname$shared_ext'
12750 dynamic_linker="$host_os ld.so"
12751 shlibpath_var=LIBRARY_PATH
12755 version_type=linux # correct to gnu/linux during the next big refactor
12757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12758 soname_spec='$libname$release$shared_ext$major'
12759 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12762 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12763 # the default ld.so.conf also contains /usr/contrib/lib and
12764 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12765 # libtool to hard-code these into programs
12768 cygwin* | mingw* | pw32* | cegcc*)
12769 version_type=windows
12774 case $GCC,$cc_basename in
12777 library_names_spec='$libname.dll.a'
12778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12779 postinstall_cmds='base_file=`basename \$file`~
12780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12781 dldir=$destdir/`dirname \$dlpath`~
12782 test -d \$dldir || mkdir -p \$dldir~
12783 $install_prog $dir/$dlname \$dldir/$dlname~
12784 chmod a+x \$dldir/$dlname~
12785 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12786 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12788 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12789 dlpath=$dir/\$dldll~
12791 shlibpath_overrides_runpath=yes
12795 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12796 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12798 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12801 # MinGW DLLs use traditional 'lib' prefix
12802 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12805 # pw32 DLLs use 'pw' prefix rather than 'lib'
12806 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12809 dynamic_linker='Win32 ld.exe'
12814 libname_spec='$name'
12815 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12816 library_names_spec='$libname.dll.lib'
12820 sys_lib_search_path_spec=
12823 for lt_path in $LIB
12826 # Let DOS variable expansion print the short 8.3 style file name.
12827 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12828 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12831 # Convert to MSYS style.
12832 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12835 # Convert to unix form, then to dos form, then back to unix form
12836 # but this time dos style (no spaces!) so that the unix form looks
12837 # like /cygdrive/c/PROGRA~1:/cygdr...
12838 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12839 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12840 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12843 sys_lib_search_path_spec=$LIB
12844 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12845 # It is most probably a Windows format PATH.
12846 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12850 # FIXME: find the short name or the path components, as spaces are
12851 # common. (e.g. "Program Files" -> "PROGRA~1")
12855 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12856 postinstall_cmds='base_file=`basename \$file`~
12857 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12858 dldir=$destdir/`dirname \$dlpath`~
12859 test -d \$dldir || mkdir -p \$dldir~
12860 $install_prog $dir/$dlname \$dldir/$dlname'
12861 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12862 dlpath=$dir/\$dldll~
12864 shlibpath_overrides_runpath=yes
12865 dynamic_linker='Win32 link.exe'
12869 # Assume MSVC wrapper
12870 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12871 dynamic_linker='Win32 ld.exe'
12874 # FIXME: first we should search . and the directory the executable is in
12878 darwin* | rhapsody*)
12879 dynamic_linker="$host_os dyld"
12880 version_type=darwin
12883 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12884 soname_spec='$libname$release$major$shared_ext'
12885 shlibpath_overrides_runpath=yes
12886 shlibpath_var=DYLD_LIBRARY_PATH
12887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12889 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12890 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12894 version_type=linux # correct to gnu/linux during the next big refactor
12897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12898 soname_spec='$libname$release$shared_ext$major'
12899 shlibpath_var=LD_LIBRARY_PATH
12902 freebsd* | dragonfly*)
12903 # DragonFly does not have aout. When/if they implement a new
12904 # versioning mechanism, adjust this.
12905 if test -x /usr/bin/objformat; then
12906 objformat=`/usr/bin/objformat`
12909 freebsd[23].*) objformat=aout ;;
12910 *) objformat=elf ;;
12913 version_type=freebsd-$objformat
12914 case $version_type in
12916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12917 soname_spec='$libname$release$shared_ext$major'
12922 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12926 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12931 freebsd3.[01]* | freebsdelf3.[01]*)
12932 shlibpath_overrides_runpath=yes
12933 hardcode_into_libs=yes
12935 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12936 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12937 shlibpath_overrides_runpath=no
12938 hardcode_into_libs=yes
12940 *) # from 4.6 on, and DragonFly
12941 shlibpath_overrides_runpath=yes
12942 hardcode_into_libs=yes
12948 version_type=linux # correct to gnu/linux during the next big refactor
12951 dynamic_linker="$host_os runtime_loader"
12952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12953 soname_spec='$libname$release$shared_ext$major'
12954 shlibpath_var=LIBRARY_PATH
12955 shlibpath_overrides_runpath=no
12956 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12957 hardcode_into_libs=yes
12960 hpux9* | hpux10* | hpux11*)
12961 # Give a soname corresponding to the major version so that dld.sl refuses to
12962 # link against other versions.
12969 hardcode_into_libs=yes
12970 dynamic_linker="$host_os dld.so"
12971 shlibpath_var=LD_LIBRARY_PATH
12972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12974 soname_spec='$libname$release$shared_ext$major'
12975 if test 32 = "$HPUX_IA64_MODE"; then
12976 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12977 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12979 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12980 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12985 hardcode_into_libs=yes
12986 dynamic_linker="$host_os dld.sl"
12987 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12990 soname_spec='$libname$release$shared_ext$major'
12991 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12996 dynamic_linker="$host_os dld.sl"
12997 shlibpath_var=SHLIB_PATH
12998 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13000 soname_spec='$libname$release$shared_ext$major'
13003 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13004 postinstall_cmds='chmod 555 $lib'
13005 # or fails outright, so override atomically:
13006 install_override_mode=555
13010 version_type=linux # correct to gnu/linux during the next big refactor
13013 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13014 soname_spec='$libname$release$shared_ext$major'
13015 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13016 shlibpath_var=LD_LIBRARY_PATH
13017 shlibpath_overrides_runpath=no
13018 hardcode_into_libs=yes
13021 irix5* | irix6* | nonstopux*)
13023 nonstopux*) version_type=nonstopux ;;
13025 if test yes = "$lt_cv_prog_gnu_ld"; then
13026 version_type=linux # correct to gnu/linux during the next big refactor
13033 soname_spec='$libname$release$shared_ext$major'
13034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
13036 irix5* | nonstopux*)
13037 libsuff= shlibsuff=
13040 case $LD in # libtool.m4 will add one of these switches to LD
13041 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13042 libsuff= shlibsuff= libmagic=32-bit;;
13043 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13044 libsuff=32 shlibsuff=N32 libmagic=N32;;
13045 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13046 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13047 *) libsuff= shlibsuff= libmagic=never-match;;
13051 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13052 shlibpath_overrides_runpath=no
13053 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
13054 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
13055 hardcode_into_libs=yes
13058 # No shared lib support for Linux oldld, aout, or coff.
13059 linux*oldld* | linux*aout* | linux*coff*)
13064 version_type=none # Android doesn't support versioned libraries.
13067 library_names_spec='$libname$release$shared_ext'
13068 soname_spec='$libname$release$shared_ext'
13070 shlibpath_var=LD_LIBRARY_PATH
13071 shlibpath_overrides_runpath=yes
13073 # This implies no fast_install, which is unacceptable.
13074 # Some rework will be needed to allow for fast_install
13075 # before this can be enabled.
13076 hardcode_into_libs=yes
13078 dynamic_linker='Android linker'
13079 # Don't embed -rpath directories since the linker doesn't support them.
13080 hardcode_libdir_flag_spec='-L$libdir'
13083 # This must be glibc/ELF.
13084 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13085 version_type=linux # correct to gnu/linux during the next big refactor
13088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13089 soname_spec='$libname$release$shared_ext$major'
13090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 shlibpath_overrides_runpath=no
13094 # Some binutils ld are patched to set DT_RUNPATH
13095 if test ${lt_cv_shlibpath_overrides_runpath+y}
13097 printf %s "(cached) " >&6
13099 lt_cv_shlibpath_overrides_runpath=no
13100 save_LDFLAGS=$LDFLAGS
13101 save_libdir=$libdir
13102 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13103 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13115 if ac_fn_c_try_link "$LINENO"
13117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13119 lt_cv_shlibpath_overrides_runpath=yes
13122 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LDFLAGS=$save_LDFLAGS
13125 libdir=$save_libdir
13129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13131 # This implies no fast_install, which is unacceptable.
13132 # Some rework will be needed to allow for fast_install
13133 # before this can be enabled.
13134 hardcode_into_libs=yes
13136 # Ideally, we could use ldconfig to report *all* directores which are
13137 # searched for libraries, however this is still not possible. Aside from not
13138 # being certain /sbin/ldconfig is available, command
13139 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13140 # even though it is searched at run-time. Try to do the best guess by
13141 # appending ld.so.conf contents (and includes) to the search path.
13142 if test -f /etc/ld.so.conf; then
13143 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' ' '`
13144 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13147 # We used to test for /lib/ld.so.1 and disable shared libraries on
13148 # powerpc, because MkLinux only supported shared libraries with the
13149 # GNU dynamic linker. Since this was broken with cross compilers,
13150 # most powerpc-linux boxes support dynamic linking these days and
13151 # people can always --disable-shared, the test was removed, and we
13152 # assume the GNU/Linux dynamic linker is in use.
13153 dynamic_linker='GNU/Linux ld.so'
13160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13161 soname_spec='${libname}${release}${shared_ext}$major'
13162 shlibpath_var=LD_LIBRARY_PATH
13163 shlibpath_overrides_runpath=no
13164 hardcode_into_libs=yes
13165 dynamic_linker='NetBSD ld.elf_so'
13172 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13173 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13174 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13175 dynamic_linker='NetBSD (a.out) ld.so'
13177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13178 soname_spec='$libname$release$shared_ext$major'
13179 dynamic_linker='NetBSD ld.elf_so'
13181 shlibpath_var=LD_LIBRARY_PATH
13182 shlibpath_overrides_runpath=yes
13183 hardcode_into_libs=yes
13187 version_type=linux # correct to gnu/linux during the next big refactor
13188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13189 shlibpath_var=LD_LIBRARY_PATH
13190 shlibpath_overrides_runpath=yes
13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198 soname_spec='$libname$release$shared_ext$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=no
13201 hardcode_into_libs=yes
13202 dynamic_linker='ldqnx.so'
13205 openbsd* | bitrig*)
13207 sys_lib_dlsearch_path_spec=/usr/lib
13209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13214 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13216 shlibpath_var=LD_LIBRARY_PATH
13217 shlibpath_overrides_runpath=yes
13221 libname_spec='$name'
13222 version_type=windows
13226 # OS/2 can only load a DLL with a base name of 8 characters or less.
13227 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13228 v=$($ECHO $release$versuffix | tr -d .-);
13229 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13230 $ECHO $n$v`$shared_ext'
13231 library_names_spec='${libname}_dll.$libext'
13232 dynamic_linker='OS/2 ld.exe'
13233 shlibpath_var=BEGINLIBPATH
13234 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13235 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13236 postinstall_cmds='base_file=`basename \$file`~
13237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13238 dldir=$destdir/`dirname \$dlpath`~
13239 test -d \$dldir || mkdir -p \$dldir~
13240 $install_prog $dir/$dlname \$dldir/$dlname~
13241 chmod a+x \$dldir/$dlname~
13242 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13243 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13245 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13246 dlpath=$dir/\$dldll~
13250 osf3* | osf4* | osf5*)
13254 soname_spec='$libname$release$shared_ext$major'
13255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13266 version_type=linux # correct to gnu/linux during the next big refactor
13269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13270 soname_spec='$libname$release$shared_ext$major'
13271 shlibpath_var=LD_LIBRARY_PATH
13272 shlibpath_overrides_runpath=yes
13273 hardcode_into_libs=yes
13274 # ldd complains unless libraries are executable
13275 postinstall_cmds='chmod +x $lib'
13280 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13282 shlibpath_var=LD_LIBRARY_PATH
13283 shlibpath_overrides_runpath=yes
13284 if test yes = "$with_gnu_ld"; then
13291 version_type=linux # correct to gnu/linux during the next big refactor
13292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13293 soname_spec='$libname$release$shared_ext$major'
13294 shlibpath_var=LD_LIBRARY_PATH
13295 case $host_vendor in
13297 shlibpath_overrides_runpath=no
13299 runpath_var=LD_RUN_PATH
13307 shlibpath_overrides_runpath=no
13308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13314 if test -d /usr/nec; then
13315 version_type=linux # correct to gnu/linux during the next big refactor
13316 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13317 soname_spec='$libname$shared_ext.$major'
13318 shlibpath_var=LD_LIBRARY_PATH
13322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13326 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13327 soname_spec='$libname$release$shared_ext$major'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13330 hardcode_into_libs=yes
13331 if test yes = "$with_gnu_ld"; then
13332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13341 sys_lib_dlsearch_path_spec='/usr/lib'
13345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13346 version_type=linux # correct to gnu/linux during the next big refactor
13349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13350 shlibpath_var=LD_LIBRARY_PATH
13351 shlibpath_overrides_runpath=no
13352 hardcode_into_libs=yes
13356 version_type=linux # correct to gnu/linux during the next big refactor
13357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13358 soname_spec='$libname$release$shared_ext$major'
13359 shlibpath_var=LD_LIBRARY_PATH
13366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13367 printf "%s\n" "$dynamic_linker" >&6; }
13368 test no = "$dynamic_linker" && can_build_shared=no
13370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13371 if test yes = "$GCC"; then
13372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13375 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13376 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13379 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13380 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13383 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13384 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13386 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13387 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13389 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13390 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13489 printf %s "checking how to hardcode library paths into programs... " >&6; }
13491 if test -n "$hardcode_libdir_flag_spec" ||
13492 test -n "$runpath_var" ||
13493 test yes = "$hardcode_automatic"; then
13495 # We can hardcode non-existent directories.
13496 if test no != "$hardcode_direct" &&
13497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13498 # have to relink, otherwise we might link with an installed library
13499 # when we should be linking with a yet-to-be-installed one
13500 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13501 test no != "$hardcode_minus_L"; then
13502 # Linking always hardcodes the temporary library directory.
13503 hardcode_action=relink
13505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13506 hardcode_action=immediate
13509 # We cannot hardcode anything, or else we can only hardcode existing
13511 hardcode_action=unsupported
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13514 printf "%s\n" "$hardcode_action" >&6; }
13516 if test relink = "$hardcode_action" ||
13517 test yes = "$inherit_rpath"; then
13518 # Fast installation is not supported
13519 enable_fast_install=no
13520 elif test yes = "$shlibpath_overrides_runpath" ||
13521 test no = "$enable_shared"; then
13522 # Fast installation is not necessary
13523 enable_fast_install=needless
13531 if test yes != "$enable_dlopen"; then
13532 enable_dlopen=unknown
13533 enable_dlopen_self=unknown
13534 enable_dlopen_self_static=unknown
13541 lt_cv_dlopen=load_add_on
13543 lt_cv_dlopen_self=yes
13546 mingw* | pw32* | cegcc*)
13547 lt_cv_dlopen=LoadLibrary
13552 lt_cv_dlopen=dlopen
13557 # if libdl is installed we need to link against it
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13559 printf %s "checking for dlopen in -ldl... " >&6; }
13560 if test ${ac_cv_lib_dl_dlopen+y}
13562 printf %s "(cached) " >&6
13564 ac_check_lib_save_LIBS=$LIBS
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13581 if ac_fn_c_try_link "$LINENO"
13583 ac_cv_lib_dl_dlopen=yes
13585 ac_cv_lib_dl_dlopen=no
13587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13588 conftest$ac_exeext conftest.$ac_ext
13589 LIBS=$ac_check_lib_save_LIBS
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13592 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13593 if test "x$ac_cv_lib_dl_dlopen" = xyes
13595 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13600 lt_cv_dlopen_self=yes
13607 # Don't try to run any link tests for TPF. We know it's impossible
13608 # because TPF is a cross-compiler, and we know how we open DSOs.
13609 lt_cv_dlopen=dlopen
13611 lt_cv_dlopen_self=no
13615 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13616 if test "x$ac_cv_func_shl_load" = xyes
13618 lt_cv_dlopen=shl_load
13620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13621 printf %s "checking for shl_load in -ldld... " >&6; }
13622 if test ${ac_cv_lib_dld_shl_load+y}
13624 printf %s "(cached) " >&6
13626 ac_check_lib_save_LIBS=$LIBS
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h. */
13631 /* Override any GCC internal prototype to avoid an error.
13632 Use char because int might match the return type of a GCC
13633 builtin and then its argument prototype would still apply. */
13638 return shl_load ();
13643 if ac_fn_c_try_link "$LINENO"
13645 ac_cv_lib_dld_shl_load=yes
13647 ac_cv_lib_dld_shl_load=no
13649 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13654 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13655 if test "x$ac_cv_lib_dld_shl_load" = xyes
13657 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13659 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13660 if test "x$ac_cv_func_dlopen" = xyes
13662 lt_cv_dlopen=dlopen
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13665 printf %s "checking for dlopen in -ldl... " >&6; }
13666 if test ${ac_cv_lib_dl_dlopen+y}
13668 printf %s "(cached) " >&6
13670 ac_check_lib_save_LIBS=$LIBS
13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13673 /* end confdefs.h. */
13675 /* Override any GCC internal prototype to avoid an error.
13676 Use char because int might match the return type of a GCC
13677 builtin and then its argument prototype would still apply. */
13687 if ac_fn_c_try_link "$LINENO"
13689 ac_cv_lib_dl_dlopen=yes
13691 ac_cv_lib_dl_dlopen=no
13693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13698 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13699 if test "x$ac_cv_lib_dl_dlopen" = xyes
13701 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13704 printf %s "checking for dlopen in -lsvld... " >&6; }
13705 if test ${ac_cv_lib_svld_dlopen+y}
13707 printf %s "(cached) " >&6
13709 ac_check_lib_save_LIBS=$LIBS
13710 LIBS="-lsvld $LIBS"
13711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13712 /* end confdefs.h. */
13714 /* Override any GCC internal prototype to avoid an error.
13715 Use char because int might match the return type of a GCC
13716 builtin and then its argument prototype would still apply. */
13726 if ac_fn_c_try_link "$LINENO"
13728 ac_cv_lib_svld_dlopen=yes
13730 ac_cv_lib_svld_dlopen=no
13732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13737 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13738 if test "x$ac_cv_lib_svld_dlopen" = xyes
13740 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13743 printf %s "checking for dld_link in -ldld... " >&6; }
13744 if test ${ac_cv_lib_dld_dld_link+y}
13746 printf %s "(cached) " >&6
13748 ac_check_lib_save_LIBS=$LIBS
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13753 /* Override any GCC internal prototype to avoid an error.
13754 Use char because int might match the return type of a GCC
13755 builtin and then its argument prototype would still apply. */
13760 return dld_link ();
13765 if ac_fn_c_try_link "$LINENO"
13767 ac_cv_lib_dld_dld_link=yes
13769 ac_cv_lib_dld_dld_link=no
13771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13772 conftest$ac_exeext conftest.$ac_ext
13773 LIBS=$ac_check_lib_save_LIBS
13775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13776 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13777 if test "x$ac_cv_lib_dld_dld_link" = xyes
13779 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13800 if test no = "$lt_cv_dlopen"; then
13806 case $lt_cv_dlopen in
13808 save_CPPFLAGS=$CPPFLAGS
13809 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13811 save_LDFLAGS=$LDFLAGS
13812 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13815 LIBS="$lt_cv_dlopen_libs $LIBS"
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13818 printf %s "checking whether a program can dlopen itself... " >&6; }
13819 if test ${lt_cv_dlopen_self+y}
13821 printf %s "(cached) " >&6
13823 if test yes = "$cross_compiling"; then :
13824 lt_cv_dlopen_self=cross
13826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13827 lt_status=$lt_dlunknown
13828 cat > conftest.$ac_ext <<_LT_EOF
13829 #line $LINENO "configure"
13830 #include "confdefs.h"
13839 # define LT_DLGLOBAL RTLD_GLOBAL
13842 # define LT_DLGLOBAL DL_GLOBAL
13844 # define LT_DLGLOBAL 0
13848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13849 find out it does not work in some platform. */
13850 #ifndef LT_DLLAZY_OR_NOW
13852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13855 # define LT_DLLAZY_OR_NOW DL_LAZY
13858 # define LT_DLLAZY_OR_NOW RTLD_NOW
13861 # define LT_DLLAZY_OR_NOW DL_NOW
13863 # define LT_DLLAZY_OR_NOW 0
13870 /* When -fvisibility=hidden is used, assume the code has been annotated
13871 correspondingly for the symbols needed. */
13872 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13873 int fnord () __attribute__((visibility("default")));
13876 int fnord () { return 42; }
13879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13880 int status = $lt_dlunknown;
13884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13888 else puts (dlerror ());
13890 /* dlclose (self); */
13898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13899 (eval $ac_link) 2>&5
13901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13902 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13903 (./conftest; exit; ) >&5 2>/dev/null
13905 case x$lt_status in
13906 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13907 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13908 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13911 # compilation failed
13912 lt_cv_dlopen_self=no
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13920 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13922 if test yes = "$lt_cv_dlopen_self"; then
13923 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13925 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13926 if test ${lt_cv_dlopen_self_static+y}
13928 printf %s "(cached) " >&6
13930 if test yes = "$cross_compiling"; then :
13931 lt_cv_dlopen_self_static=cross
13933 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13934 lt_status=$lt_dlunknown
13935 cat > conftest.$ac_ext <<_LT_EOF
13936 #line $LINENO "configure"
13937 #include "confdefs.h"
13946 # define LT_DLGLOBAL RTLD_GLOBAL
13949 # define LT_DLGLOBAL DL_GLOBAL
13951 # define LT_DLGLOBAL 0
13955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13956 find out it does not work in some platform. */
13957 #ifndef LT_DLLAZY_OR_NOW
13959 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13962 # define LT_DLLAZY_OR_NOW DL_LAZY
13965 # define LT_DLLAZY_OR_NOW RTLD_NOW
13968 # define LT_DLLAZY_OR_NOW DL_NOW
13970 # define LT_DLLAZY_OR_NOW 0
13977 /* When -fvisibility=hidden is used, assume the code has been annotated
13978 correspondingly for the symbols needed. */
13979 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13980 int fnord () __attribute__((visibility("default")));
13983 int fnord () { return 42; }
13986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13987 int status = $lt_dlunknown;
13991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13994 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13995 else puts (dlerror ());
13997 /* dlclose (self); */
14005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14006 (eval $ac_link) 2>&5
14008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14009 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14010 (./conftest; exit; ) >&5 2>/dev/null
14012 case x$lt_status in
14013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14015 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14018 # compilation failed
14019 lt_cv_dlopen_self_static=no
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14027 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14030 CPPFLAGS=$save_CPPFLAGS
14031 LDFLAGS=$save_LDFLAGS
14036 case $lt_cv_dlopen_self in
14037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14038 *) enable_dlopen_self=unknown ;;
14041 case $lt_cv_dlopen_self_static in
14042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14043 *) enable_dlopen_self_static=unknown ;;
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14066 printf %s "checking whether stripping libraries is possible... " >&6; }
14067 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14071 printf "%s\n" "yes" >&6; }
14073 # FIXME - insert some real tests, host_os isn't really good enough
14076 if test -n "$STRIP"; then
14077 striplib="$STRIP -x"
14078 old_striplib="$STRIP -S"
14079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14080 printf "%s\n" "yes" >&6; }
14082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14083 printf "%s\n" "no" >&6; }
14087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14088 printf "%s\n" "no" >&6; }
14104 # Report what library types will actually be built
14105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14106 printf %s "checking if libtool supports shared libraries... " >&6; }
14107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14108 printf "%s\n" "$can_build_shared" >&6; }
14110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14111 printf %s "checking whether to build shared libraries... " >&6; }
14112 test no = "$can_build_shared" && enable_shared=no
14114 # On AIX, shared libraries and static libraries use the same namespace, and
14115 # are all built from PIC.
14118 test yes = "$enable_shared" && enable_static=no
14119 if test -n "$RANLIB"; then
14120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14121 postinstall_cmds='$RANLIB $lib'
14126 if test ia64 != "$host_cpu"; then
14127 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14128 yes,aix,yes) ;; # shared object as lib.so file only
14129 yes,svr4,*) ;; # shared object as lib.so archive member only
14130 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14136 printf "%s\n" "$enable_shared" >&6; }
14138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14139 printf %s "checking whether to build static libraries... " >&6; }
14140 # Make sure either enable_shared or enable_static is yes.
14141 test yes = "$enable_shared" || enable_static=yes
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14143 printf "%s\n" "$enable_static" >&6; }
14150 ac_cpp='$CPP $CPPFLAGS'
14151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14171 ac_config_commands="$ac_config_commands libtool"
14176 # Only expand once:
14186 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14187 if test -n "$ac_tool_prefix"; then
14188 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14189 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14191 printf %s "checking for $ac_word... " >&6; }
14192 if test ${ac_cv_path_PKG_CONFIG+y}
14194 printf %s "(cached) " >&6
14196 case $PKG_CONFIG in
14198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14202 for as_dir in $PATH
14205 case $as_dir in #(((
14208 *) as_dir=$as_dir/ ;;
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14212 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14224 if test -n "$PKG_CONFIG"; then
14225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14226 printf "%s\n" "$PKG_CONFIG" >&6; }
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14229 printf "%s\n" "no" >&6; }
14234 if test -z "$ac_cv_path_PKG_CONFIG"; then
14235 ac_pt_PKG_CONFIG=$PKG_CONFIG
14236 # Extract the first word of "pkg-config", so it can be a program name with args.
14237 set dummy pkg-config; ac_word=$2
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 printf %s "checking for $ac_word... " >&6; }
14240 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14242 printf %s "(cached) " >&6
14244 case $ac_pt_PKG_CONFIG in
14246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 case $as_dir in #(((
14256 *) as_dir=$as_dir/ ;;
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14272 if test -n "$ac_pt_PKG_CONFIG"; then
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14274 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 printf "%s\n" "no" >&6; }
14280 if test "x$ac_pt_PKG_CONFIG" = x; then
14283 case $cross_compiling:$ac_tool_warned in
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14286 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14287 ac_tool_warned=yes ;;
14289 PKG_CONFIG=$ac_pt_PKG_CONFIG
14292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14296 if test -n "$PKG_CONFIG"; then
14297 _pkg_min_version=0.9.0
14298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14299 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14302 printf "%s\n" "yes" >&6; }
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 printf "%s\n" "no" >&6; }
14310 if test "X$prefix" = "XNONE"; then
14311 acl_final_prefix="$ac_default_prefix"
14313 acl_final_prefix="$prefix"
14315 if test "X$exec_prefix" = "XNONE"; then
14316 acl_final_exec_prefix='${prefix}'
14318 acl_final_exec_prefix="$exec_prefix"
14320 acl_save_prefix="$prefix"
14321 prefix="$acl_final_prefix"
14322 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14323 prefix="$acl_save_prefix"
14327 # Check whether --with-gnu-ld was given.
14328 if test ${with_gnu_ld+y}
14330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14335 # Prepare PATH_SEPARATOR.
14336 # The user is always right.
14337 if test "${PATH_SEPARATOR+set}" != set; then
14338 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14339 # contains only /bin. Note that ksh looks also at the FPATH variable,
14340 # so we have to set that as well for the test.
14342 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14343 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14344 || PATH_SEPARATOR=';'
14349 if test "$GCC" = yes; then
14350 # Check if gcc -print-prog-name=ld gives a path.
14351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14352 printf %s "checking for ld used by $CC... " >&6; }
14355 # gcc leaves a trailing carriage return which upsets mingw
14356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14361 # Accept absolute paths.
14363 re_direlt='/[^/][^/]*/\.\./'
14364 # Canonicalize the pathname of ld
14365 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
14366 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
14367 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14369 test -z "$LD" && LD="$ac_prog"
14372 # If it fails, then pretend we aren't using GCC.
14376 # If it is relative, then search for the first ld in PATH.
14377 with_gnu_ld=unknown
14380 elif test "$with_gnu_ld" = yes; then
14381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14382 printf %s "checking for GNU ld... " >&6; }
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14385 printf %s "checking for non-GNU ld... " >&6; }
14387 if test ${acl_cv_path_LD+y}
14389 printf %s "(cached) " >&6
14391 if test -z "$LD"; then
14392 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14393 for ac_dir in $PATH; do
14394 IFS="$acl_save_ifs"
14395 test -z "$ac_dir" && ac_dir=.
14396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14397 acl_cv_path_LD="$ac_dir/$ac_prog"
14398 # Check to see if the program is GNU ld. I'd rather use --version,
14399 # but apparently some variants of GNU ld only accept -v.
14400 # Break only if it was the GNU/non-GNU ld that we prefer.
14401 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14402 *GNU* | *'with BFD'*)
14403 test "$with_gnu_ld" != no && break
14406 test "$with_gnu_ld" != yes && break
14411 IFS="$acl_save_ifs"
14413 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14417 LD="$acl_cv_path_LD"
14418 if test -n "$LD"; then
14419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14420 printf "%s\n" "$LD" >&6; }
14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14423 printf "%s\n" "no" >&6; }
14425 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14427 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14428 if test ${acl_cv_prog_gnu_ld+y}
14430 printf %s "(cached) " >&6
14432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14433 case `$LD -v 2>&1 </dev/null` in
14434 *GNU* | *'with BFD'*)
14435 acl_cv_prog_gnu_ld=yes
14438 acl_cv_prog_gnu_ld=no
14442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14443 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14444 with_gnu_ld=$acl_cv_prog_gnu_ld
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14451 printf %s "checking for shared library run path origin... " >&6; }
14452 if test ${acl_cv_rpath+y}
14454 printf %s "(cached) " >&6
14457 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14458 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14460 rm -f ./conftest.sh
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14465 printf "%s\n" "$acl_cv_rpath" >&6; }
14467 acl_libext="$acl_cv_libext"
14468 acl_shlibext="$acl_cv_shlibext"
14469 acl_libname_spec="$acl_cv_libname_spec"
14470 acl_library_names_spec="$acl_cv_library_names_spec"
14471 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14472 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14473 acl_hardcode_direct="$acl_cv_hardcode_direct"
14474 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14475 # Check whether --enable-rpath was given.
14476 if test ${enable_rpath+y}
14478 enableval=$enable_rpath; :
14491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14492 printf %s "checking for 64-bit host... " >&6; }
14493 if test ${gl_cv_solaris_64bit+y}
14495 printf %s "(cached) " >&6
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14506 $EGREP "sixtyfour bits" >/dev/null 2>&1
14508 gl_cv_solaris_64bit=yes
14510 gl_cv_solaris_64bit=no
14516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14517 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
14518 if test $gl_cv_solaris_64bit = yes; then
14519 acl_libdirstem=lib/64
14520 case "$host_cpu" in
14521 sparc*) acl_libdirstem2=lib/sparcv9 ;;
14522 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14527 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14528 if test -n "$searchpath"; then
14529 acl_save_IFS="${IFS= }"; IFS=":"
14530 for searchdir in $searchpath; do
14531 if test -d "$searchdir"; then
14532 case "$searchdir" in
14533 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14535 # Better ignore directories of this form. They are misleading.
14537 *) searchdir=`cd "$searchdir" && pwd`
14538 case "$searchdir" in
14539 */lib64 ) acl_libdirstem=lib64 ;;
14544 IFS="$acl_save_IFS"
14548 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14563 acl_save_prefix="$prefix"
14564 prefix="$acl_final_prefix"
14565 acl_save_exec_prefix="$exec_prefix"
14566 exec_prefix="$acl_final_exec_prefix"
14568 eval additional_includedir=\"$includedir\"
14569 eval additional_libdir=\"$libdir\"
14571 exec_prefix="$acl_save_exec_prefix"
14572 prefix="$acl_save_prefix"
14575 # Check whether --with-libiconv-prefix was given.
14576 if test ${with_libiconv_prefix+y}
14578 withval=$with_libiconv_prefix;
14579 if test "X$withval" = "Xno"; then
14582 if test "X$withval" = "X"; then
14584 acl_save_prefix="$prefix"
14585 prefix="$acl_final_prefix"
14586 acl_save_exec_prefix="$exec_prefix"
14587 exec_prefix="$acl_final_exec_prefix"
14589 eval additional_includedir=\"$includedir\"
14590 eval additional_libdir=\"$libdir\"
14592 exec_prefix="$acl_save_exec_prefix"
14593 prefix="$acl_save_prefix"
14596 additional_includedir="$withval/include"
14597 additional_libdir="$withval/$acl_libdirstem"
14598 if test "$acl_libdirstem2" != "$acl_libdirstem" \
14599 && ! test -d "$withval/$acl_libdirstem"; then
14600 additional_libdir="$withval/$acl_libdirstem2"
14614 names_already_handled=
14615 names_next_round='iconv '
14616 while test -n "$names_next_round"; do
14617 names_this_round="$names_next_round"
14619 for name in $names_this_round; do
14621 for n in $names_already_handled; do
14622 if test "$n" = "$name"; then
14623 already_handled=yes
14627 if test -z "$already_handled"; then
14628 names_already_handled="$names_already_handled $name"
14629 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
14630 eval value=\"\$HAVE_LIB$uppername\"
14631 if test -n "$value"; then
14632 if test "$value" = yes; then
14633 eval value=\"\$LIB$uppername\"
14634 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14635 eval value=\"\$LTLIB$uppername\"
14636 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14645 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
14646 if test -n "$acl_shlibext"; then
14647 shrext=".$acl_shlibext" # typically: shrext=.so
14651 if test $use_additional = yes; then
14652 dir="$additional_libdir"
14653 if test -n "$acl_shlibext"; then
14654 if test -f "$dir/$libname$shrext"; then
14656 found_so="$dir/$libname$shrext"
14658 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14659 ver=`(cd "$dir" && \
14660 for f in "$libname$shrext".*; do echo "$f"; done \
14661 | sed -e "s,^$libname$shrext\\\\.,," \
14662 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14663 | sed 1q ) 2>/dev/null`
14664 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14666 found_so="$dir/$libname$shrext.$ver"
14669 eval library_names=\"$acl_library_names_spec\"
14670 for f in $library_names; do
14671 if test -f "$dir/$f"; then
14680 if test "X$found_dir" = "X"; then
14681 if test -f "$dir/$libname.$acl_libext"; then
14683 found_a="$dir/$libname.$acl_libext"
14686 if test "X$found_dir" != "X"; then
14687 if test -f "$dir/$libname.la"; then
14688 found_la="$dir/$libname.la"
14692 if test "X$found_dir" = "X"; then
14693 for x in $LDFLAGS $LTLIBICONV; do
14695 acl_save_prefix="$prefix"
14696 prefix="$acl_final_prefix"
14697 acl_save_exec_prefix="$exec_prefix"
14698 exec_prefix="$acl_final_exec_prefix"
14700 exec_prefix="$acl_save_exec_prefix"
14701 prefix="$acl_save_prefix"
14705 dir=`echo "X$x" | sed -e 's/^X-L//'`
14706 if test -n "$acl_shlibext"; then
14707 if test -f "$dir/$libname$shrext"; then
14709 found_so="$dir/$libname$shrext"
14711 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14712 ver=`(cd "$dir" && \
14713 for f in "$libname$shrext".*; do echo "$f"; done \
14714 | sed -e "s,^$libname$shrext\\\\.,," \
14715 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14716 | sed 1q ) 2>/dev/null`
14717 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14719 found_so="$dir/$libname$shrext.$ver"
14722 eval library_names=\"$acl_library_names_spec\"
14723 for f in $library_names; do
14724 if test -f "$dir/$f"; then
14733 if test "X$found_dir" = "X"; then
14734 if test -f "$dir/$libname.$acl_libext"; then
14736 found_a="$dir/$libname.$acl_libext"
14739 if test "X$found_dir" != "X"; then
14740 if test -f "$dir/$libname.la"; then
14741 found_la="$dir/$libname.la"
14746 if test "X$found_dir" != "X"; then
14751 if test "X$found_dir" != "X"; then
14752 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14753 if test "X$found_so" != "X"; then
14754 if test "$enable_rpath" = no \
14755 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14756 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14757 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14760 for x in $ltrpathdirs; do
14761 if test "X$x" = "X$found_dir"; then
14766 if test -z "$haveit"; then
14767 ltrpathdirs="$ltrpathdirs $found_dir"
14769 if test "$acl_hardcode_direct" = yes; then
14770 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14772 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14775 for x in $rpathdirs; do
14776 if test "X$x" = "X$found_dir"; then
14781 if test -z "$haveit"; then
14782 rpathdirs="$rpathdirs $found_dir"
14786 for x in $LDFLAGS $LIBICONV; do
14788 acl_save_prefix="$prefix"
14789 prefix="$acl_final_prefix"
14790 acl_save_exec_prefix="$exec_prefix"
14791 exec_prefix="$acl_final_exec_prefix"
14793 exec_prefix="$acl_save_exec_prefix"
14794 prefix="$acl_save_prefix"
14796 if test "X$x" = "X-L$found_dir"; then
14801 if test -z "$haveit"; then
14802 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14804 if test "$acl_hardcode_minus_L" != no; then
14805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14807 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14813 if test "X$found_a" != "X"; then
14814 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14816 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14819 additional_includedir=
14820 case "$found_dir" in
14821 */$acl_libdirstem | */$acl_libdirstem/)
14822 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14823 if test "$name" = 'iconv'; then
14824 LIBICONV_PREFIX="$basedir"
14826 additional_includedir="$basedir/include"
14828 */$acl_libdirstem2 | */$acl_libdirstem2/)
14829 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14830 if test "$name" = 'iconv'; then
14831 LIBICONV_PREFIX="$basedir"
14833 additional_includedir="$basedir/include"
14836 if test "X$additional_includedir" != "X"; then
14837 if test "X$additional_includedir" != "X/usr/include"; then
14839 if test "X$additional_includedir" = "X/usr/local/include"; then
14840 if test -n "$GCC"; then
14842 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14846 if test -z "$haveit"; then
14847 for x in $CPPFLAGS $INCICONV; do
14849 acl_save_prefix="$prefix"
14850 prefix="$acl_final_prefix"
14851 acl_save_exec_prefix="$exec_prefix"
14852 exec_prefix="$acl_final_exec_prefix"
14854 exec_prefix="$acl_save_exec_prefix"
14855 prefix="$acl_save_prefix"
14857 if test "X$x" = "X-I$additional_includedir"; then
14862 if test -z "$haveit"; then
14863 if test -d "$additional_includedir"; then
14864 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14870 if test -n "$found_la"; then
14871 save_libdir="$libdir"
14872 case "$found_la" in
14873 */* | *\\*) . "$found_la" ;;
14874 *) . "./$found_la" ;;
14876 libdir="$save_libdir"
14877 for dep in $dependency_libs; do
14880 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14881 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14882 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14884 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14885 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14886 if test -n "$GCC"; then
14888 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14892 if test -z "$haveit"; then
14894 for x in $LDFLAGS $LIBICONV; do
14896 acl_save_prefix="$prefix"
14897 prefix="$acl_final_prefix"
14898 acl_save_exec_prefix="$exec_prefix"
14899 exec_prefix="$acl_final_exec_prefix"
14901 exec_prefix="$acl_save_exec_prefix"
14902 prefix="$acl_save_prefix"
14904 if test "X$x" = "X-L$additional_libdir"; then
14909 if test -z "$haveit"; then
14910 if test -d "$additional_libdir"; then
14911 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14915 for x in $LDFLAGS $LTLIBICONV; do
14917 acl_save_prefix="$prefix"
14918 prefix="$acl_final_prefix"
14919 acl_save_exec_prefix="$exec_prefix"
14920 exec_prefix="$acl_final_exec_prefix"
14922 exec_prefix="$acl_save_exec_prefix"
14923 prefix="$acl_save_prefix"
14925 if test "X$x" = "X-L$additional_libdir"; then
14930 if test -z "$haveit"; then
14931 if test -d "$additional_libdir"; then
14932 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14939 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14940 if test "$enable_rpath" != no; then
14942 for x in $rpathdirs; do
14943 if test "X$x" = "X$dir"; then
14948 if test -z "$haveit"; then
14949 rpathdirs="$rpathdirs $dir"
14952 for x in $ltrpathdirs; do
14953 if test "X$x" = "X$dir"; then
14958 if test -z "$haveit"; then
14959 ltrpathdirs="$ltrpathdirs $dir"
14964 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14967 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14970 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14971 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14977 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14978 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14984 if test "X$rpathdirs" != "X"; then
14985 if test -n "$acl_hardcode_libdir_separator"; then
14987 for found_dir in $rpathdirs; do
14988 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14990 acl_save_libdir="$libdir"
14992 eval flag=\"$acl_hardcode_libdir_flag_spec\"
14993 libdir="$acl_save_libdir"
14994 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14996 for found_dir in $rpathdirs; do
14997 acl_save_libdir="$libdir"
14998 libdir="$found_dir"
14999 eval flag=\"$acl_hardcode_libdir_flag_spec\"
15000 libdir="$acl_save_libdir"
15001 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15005 if test "X$ltrpathdirs" != "X"; then
15006 for found_dir in $ltrpathdirs; do
15007 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15022 am_save_CPPFLAGS="$CPPFLAGS"
15024 for element in $INCICONV; do
15026 for x in $CPPFLAGS; do
15028 acl_save_prefix="$prefix"
15029 prefix="$acl_final_prefix"
15030 acl_save_exec_prefix="$exec_prefix"
15031 exec_prefix="$acl_final_exec_prefix"
15033 exec_prefix="$acl_save_exec_prefix"
15034 prefix="$acl_save_prefix"
15036 if test "X$x" = "X$element"; then
15041 if test -z "$haveit"; then
15042 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15048 printf %s "checking for iconv... " >&6; }
15049 if test ${am_cv_func_iconv+y}
15051 printf %s "(cached) " >&6
15054 am_cv_func_iconv="no, consider installing GNU libiconv"
15056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15057 /* end confdefs.h. */
15059 #include <stdlib.h>
15065 iconv_t cd = iconv_open("","");
15066 iconv(cd,NULL,NULL,NULL,NULL);
15072 if ac_fn_c_try_link "$LINENO"
15074 am_cv_func_iconv=yes
15076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15077 conftest$ac_exeext conftest.$ac_ext
15078 if test "$am_cv_func_iconv" != yes; then
15079 am_save_LIBS="$LIBS"
15080 LIBS="$LIBS $LIBICONV"
15081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15082 /* end confdefs.h. */
15084 #include <stdlib.h>
15090 iconv_t cd = iconv_open("","");
15091 iconv(cd,NULL,NULL,NULL,NULL);
15097 if ac_fn_c_try_link "$LINENO"
15099 am_cv_lib_iconv=yes
15100 am_cv_func_iconv=yes
15102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LIBS="$am_save_LIBS"
15108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15109 printf "%s\n" "$am_cv_func_iconv" >&6; }
15110 if test "$am_cv_func_iconv" = yes; then
15111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
15112 printf %s "checking for working iconv... " >&6; }
15113 if test ${am_cv_func_iconv_works+y}
15115 printf %s "(cached) " >&6
15118 am_save_LIBS="$LIBS"
15119 if test $am_cv_lib_iconv = yes; then
15120 LIBS="$LIBS $LIBICONV"
15122 if test "$cross_compiling" = yes
15126 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
15127 *) am_cv_func_iconv_works="guessing yes" ;;
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15135 #include <string.h>
15139 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
15142 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
15143 if (cd_utf8_to_88591 != (iconv_t)(-1))
15145 static const char input[] = "\342\202\254"; /* EURO SIGN */
15147 const char *inptr = input;
15148 size_t inbytesleft = strlen (input);
15149 char *outptr = buf;
15150 size_t outbytesleft = sizeof (buf);
15151 size_t res = iconv (cd_utf8_to_88591,
15152 (char **) &inptr, &inbytesleft,
15153 &outptr, &outbytesleft);
15156 iconv_close (cd_utf8_to_88591);
15159 /* Test against Solaris 10 bug: Failures are not distinguishable from
15160 successful returns. */
15162 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
15163 if (cd_ascii_to_88591 != (iconv_t)(-1))
15165 static const char input[] = "\263";
15167 const char *inptr = input;
15168 size_t inbytesleft = strlen (input);
15169 char *outptr = buf;
15170 size_t outbytesleft = sizeof (buf);
15171 size_t res = iconv (cd_ascii_to_88591,
15172 (char **) &inptr, &inbytesleft,
15173 &outptr, &outbytesleft);
15176 iconv_close (cd_ascii_to_88591);
15179 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
15181 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
15182 if (cd_88591_to_utf8 != (iconv_t)(-1))
15184 static const char input[] = "\304";
15185 static char buf[2] = { (char)0xDE, (char)0xAD };
15186 const char *inptr = input;
15187 size_t inbytesleft = 1;
15188 char *outptr = buf;
15189 size_t outbytesleft = 1;
15190 size_t res = iconv (cd_88591_to_utf8,
15191 (char **) &inptr, &inbytesleft,
15192 &outptr, &outbytesleft);
15193 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
15195 iconv_close (cd_88591_to_utf8);
15198 #if 0 /* This bug could be worked around by the caller. */
15199 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
15201 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
15202 if (cd_88591_to_utf8 != (iconv_t)(-1))
15204 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
15206 const char *inptr = input;
15207 size_t inbytesleft = strlen (input);
15208 char *outptr = buf;
15209 size_t outbytesleft = sizeof (buf);
15210 size_t res = iconv (cd_88591_to_utf8,
15211 (char **) &inptr, &inbytesleft,
15212 &outptr, &outbytesleft);
15215 iconv_close (cd_88591_to_utf8);
15219 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
15221 if (/* Try standardized names. */
15222 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
15223 /* Try IRIX, OSF/1 names. */
15224 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
15225 /* Try AIX names. */
15226 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
15227 /* Try HP-UX names. */
15228 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
15233 if ac_fn_c_try_run "$LINENO"
15235 am_cv_func_iconv_works=yes
15237 am_cv_func_iconv_works=no
15239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15240 conftest.$ac_objext conftest.beam conftest.$ac_ext
15243 LIBS="$am_save_LIBS"
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
15247 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
15248 case "$am_cv_func_iconv_works" in
15249 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
15250 *) am_func_iconv=yes ;;
15253 am_func_iconv=no am_cv_lib_iconv=no
15255 if test "$am_func_iconv" = yes; then
15257 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
15260 if test "$am_cv_lib_iconv" = yes; then
15261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15262 printf %s "checking how to link with libiconv... " >&6; }
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15264 printf "%s\n" "$LIBICONV" >&6; }
15266 CPPFLAGS="$am_save_CPPFLAGS"
15273 if test "$am_cv_func_iconv" = yes; then
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
15275 printf %s "checking for iconv declaration... " >&6; }
15276 if test ${am_cv_proto_iconv+y}
15278 printf %s "(cached) " >&6
15281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15282 /* end confdefs.h. */
15284 #include <stdlib.h>
15290 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
15291 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15304 if ac_fn_c_try_compile "$LINENO"
15306 am_cv_proto_iconv_arg1=""
15308 am_cv_proto_iconv_arg1="const"
15310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15311 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
15314 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
15316 $am_cv_proto_iconv" >&5
15318 $am_cv_proto_iconv" >&6; }
15320 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
15330 printf %s "checking for C/C++ restrict keyword... " >&6; }
15331 if test ${ac_cv_c_restrict+y}
15333 printf %s "(cached) " >&6
15335 ac_cv_c_restrict=no
15336 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
15337 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
15338 # Put 'restrict' last, because C++ lacks it.
15339 for ac_kw in __restrict__ __restrict _Restrict restrict; do
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 typedef int *int_ptr;
15343 int foo (int_ptr $ac_kw ip) { return ip[0]; }
15344 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
15345 int bar (int ip[$ac_kw]) { return ip[0]; }
15353 return foo (t) + bar (t);
15359 if ac_fn_c_try_compile "$LINENO"
15361 ac_cv_c_restrict=$ac_kw
15363 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15364 test "$ac_cv_c_restrict" != no && break
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
15369 printf "%s\n" "$ac_cv_c_restrict" >&6; }
15371 case $ac_cv_c_restrict in
15373 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
15375 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
15380 ac_header_dirent=no
15381 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15382 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15384 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
15385 if eval test \${$as_ac_Header+y}
15387 printf %s "(cached) " >&6
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15391 #include <sys/types.h>
15403 if ac_fn_c_try_compile "$LINENO"
15405 eval "$as_ac_Header=yes"
15407 eval "$as_ac_Header=no"
15409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15411 eval ac_res=\$$as_ac_Header
15412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15413 printf "%s\n" "$ac_res" >&6; }
15414 if eval test \"x\$"$as_ac_Header"\" = x"yes"
15416 cat >>confdefs.h <<_ACEOF
15417 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
15420 ac_header_dirent=$ac_hdr; break
15424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15425 if test $ac_header_dirent = dirent.h; then
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15427 printf %s "checking for library containing opendir... " >&6; }
15428 if test ${ac_cv_search_opendir+y}
15430 printf %s "(cached) " >&6
15432 ac_func_search_save_LIBS=$LIBS
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15436 /* Override any GCC internal prototype to avoid an error.
15437 Use char because int might match the return type of a GCC
15438 builtin and then its argument prototype would still apply. */
15448 for ac_lib in '' dir
15450 if test -z "$ac_lib"; then
15451 ac_res="none required"
15454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15456 if ac_fn_c_try_link "$LINENO"
15458 ac_cv_search_opendir=$ac_res
15460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15462 if test ${ac_cv_search_opendir+y}
15467 if test ${ac_cv_search_opendir+y}
15471 ac_cv_search_opendir=no
15473 rm conftest.$ac_ext
15474 LIBS=$ac_func_search_save_LIBS
15476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15477 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15478 ac_res=$ac_cv_search_opendir
15479 if test "$ac_res" != no
15481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15487 printf %s "checking for library containing opendir... " >&6; }
15488 if test ${ac_cv_search_opendir+y}
15490 printf %s "(cached) " >&6
15492 ac_func_search_save_LIBS=$LIBS
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15496 /* Override any GCC internal prototype to avoid an error.
15497 Use char because int might match the return type of a GCC
15498 builtin and then its argument prototype would still apply. */
15510 if test -z "$ac_lib"; then
15511 ac_res="none required"
15514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15516 if ac_fn_c_try_link "$LINENO"
15518 ac_cv_search_opendir=$ac_res
15520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15522 if test ${ac_cv_search_opendir+y}
15527 if test ${ac_cv_search_opendir+y}
15531 ac_cv_search_opendir=no
15533 rm conftest.$ac_ext
15534 LIBS=$ac_func_search_save_LIBS
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15537 printf "%s\n" "$ac_cv_search_opendir" >&6; }
15538 ac_res=$ac_cv_search_opendir
15539 if test "$ac_res" != no
15541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15547 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15548 if test "x$ac_cv_header_fcntl_h" = xyes
15550 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15553 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15554 if test "x$ac_cv_header_malloc_h" = xyes
15556 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
15559 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15560 if test "x$ac_cv_header_inttypes_h" = xyes
15562 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
15565 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15566 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15568 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15571 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15572 if test "x$ac_cv_header_sys_mman_h" = xyes
15574 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
15577 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15578 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
15580 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
15583 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
15584 if test "x$ac_cv_header_sys_statvfs_h" = xyes
15586 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
15589 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
15590 if test "x$ac_cv_header_ctype_h" = xyes
15592 printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
15595 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
15596 if test "x$ac_cv_header_unistd_h" = xyes
15598 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
15601 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15602 if test "x$ac_cv_header_locale_h" = xyes
15604 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
15607 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
15608 if test "x$ac_cv_header_byteswap_h" = xyes
15610 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
15613 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
15614 if test "x$ac_cv_header_endian_h" = xyes
15616 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
15619 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15620 if test "x$ac_cv_header_stdint_h" = xyes
15622 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
15627 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15628 if test ${ac_cv_c_undeclared_builtin_options+y}
15630 printf %s "(cached) " >&6
15632 ac_save_CFLAGS=$CFLAGS
15633 ac_cv_c_undeclared_builtin_options='cannot detect'
15634 for ac_arg in '' -fno-builtin; do
15635 CFLAGS="$ac_save_CFLAGS $ac_arg"
15636 # This test program should *not* compile successfully.
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15648 if ac_fn_c_try_compile "$LINENO"
15652 # This test program should compile successfully.
15653 # No library function is consistently available on
15654 # freestanding implementations, so test against a dummy
15655 # declaration. Include always-available headers on the
15656 # off chance that they somehow elicit warnings.
15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658 /* end confdefs.h. */
15660 #include <limits.h>
15661 #include <stdarg.h>
15662 #include <stddef.h>
15663 extern void ac_decl (int, char *);
15668 (void) ac_decl (0, (char *) 0);
15675 if ac_fn_c_try_compile "$LINENO"
15677 if test x"$ac_arg" = x
15679 ac_cv_c_undeclared_builtin_options='none needed'
15681 ac_cv_c_undeclared_builtin_options=$ac_arg
15685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15689 CFLAGS=$ac_save_CFLAGS
15692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15693 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15694 case $ac_cv_c_undeclared_builtin_options in #(
15696 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15697 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15698 as_fn_error $? "cannot make $CC report undeclared builtins
15699 See \`config.log' for more details" "$LINENO" 5; } ;; #(
15701 ac_c_undeclared_builtin_options='' ;; #(
15703 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15706 ac_fn_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
15707 #ifdef HAVE_FCNTL_H
15708 # include <fcntl.h>
15711 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15712 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes
15718 printf "%s\n" "#define HAVE_DECL_O_CLOEXEC $ac_have_decl" >>confdefs.h
15719 if test $ac_have_decl = 1
15724 printf "%s\n" "#define O_CLOEXEC 0" >>confdefs.h
15729 for ac_header in uuid/uuid.h
15731 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15732 if test "x$ac_cv_header_uuid_uuid_h" = xyes
15734 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
15737 as_fn_error $? "You need the uuid library." "$LINENO" 5
15741 ac_fn_c_check_header_compile "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
15742 if test "x$ac_cv_header_libdevmapper_h" = xyes
15746 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
15750 # Check whether --enable-keyring was given.
15751 if test ${enable_keyring+y}
15753 enableval=$enable_keyring;
15758 if test "x$enable_keyring" = "xyes"; then
15759 for ac_header in linux/keyctl.h
15761 ac_fn_c_check_header_compile "$LINENO" "linux/keyctl.h" "ac_cv_header_linux_keyctl_h" "$ac_includes_default"
15762 if test "x$ac_cv_header_linux_keyctl_h" = xyes
15764 printf "%s\n" "#define HAVE_LINUX_KEYCTL_H 1" >>confdefs.h
15767 as_fn_error $? "You need Linux kernel headers with kernel keyring service compiled." "$LINENO" 5
15772 ac_fn_check_decl "$LINENO" "__NR_add_key" "ac_cv_have_decl___NR_add_key" "#include <syscall.h>
15773 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15774 if test "x$ac_cv_have_decl___NR_add_key" = xyes
15778 as_fn_error $? "The kernel is missing add_key syscall." "$LINENO" 5
15780 ac_fn_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <syscall.h>
15781 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15782 if test "x$ac_cv_have_decl___NR_keyctl" = xyes
15786 as_fn_error $? "The kernel is missing keyctl syscall." "$LINENO" 5
15788 ac_fn_check_decl "$LINENO" "__NR_request_key" "ac_cv_have_decl___NR_request_key" "#include <syscall.h>
15789 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15790 if test "x$ac_cv_have_decl___NR_request_key" = xyes
15794 as_fn_error $? "The kernel is missing request_key syscall." "$LINENO" 5
15797 ac_fn_c_check_type "$LINENO" "key_serial_t" "ac_cv_type_key_serial_t" "
15798 $ac_includes_default
15799 #ifdef HAVE_LINUX_KEYCTL_H
15800 # include <linux/keyctl.h>
15804 if test "x$ac_cv_type_key_serial_t" = xyes
15807 printf "%s\n" "#define HAVE_KEY_SERIAL_T 1" >>confdefs.h
15814 printf "%s\n" "#define KERNEL_KEYRING 1" >>confdefs.h
15817 if test "x$enable_keyring" = "xyes"; then
15818 KERNEL_KEYRING_TRUE=
15819 KERNEL_KEYRING_FALSE='#'
15821 KERNEL_KEYRING_TRUE='#'
15822 KERNEL_KEYRING_FALSE=
15827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
15828 printf %s "checking for uuid_clear in -luuid... " >&6; }
15829 if test ${ac_cv_lib_uuid_uuid_clear+y}
15831 printf %s "(cached) " >&6
15833 ac_check_lib_save_LIBS=$LIBS
15834 LIBS="-luuid $LIBS"
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15841 char uuid_clear ();
15845 return uuid_clear ();
15850 if ac_fn_c_try_link "$LINENO"
15852 ac_cv_lib_uuid_uuid_clear=yes
15854 ac_cv_lib_uuid_uuid_clear=no
15856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15857 conftest$ac_exeext conftest.$ac_ext
15858 LIBS=$ac_check_lib_save_LIBS
15860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
15861 printf "%s\n" "$ac_cv_lib_uuid_uuid_clear" >&6; }
15862 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes
15864 printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
15866 LIBS="-luuid $LIBS"
15869 as_fn_error $? "You need the uuid library." "$LINENO" 5
15876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
15877 printf %s "checking for library containing clock_gettime... " >&6; }
15878 if test ${ac_cv_search_clock_gettime+y}
15880 printf %s "(cached) " >&6
15882 ac_func_search_save_LIBS=$LIBS
15883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15884 /* end confdefs.h. */
15886 /* Override any GCC internal prototype to avoid an error.
15887 Use char because int might match the return type of a GCC
15888 builtin and then its argument prototype would still apply. */
15889 char clock_gettime ();
15893 return clock_gettime ();
15898 for ac_lib in '' rt posix4
15900 if test -z "$ac_lib"; then
15901 ac_res="none required"
15904 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15906 if ac_fn_c_try_link "$LINENO"
15908 ac_cv_search_clock_gettime=$ac_res
15910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15912 if test ${ac_cv_search_clock_gettime+y}
15917 if test ${ac_cv_search_clock_gettime+y}
15921 ac_cv_search_clock_gettime=no
15923 rm conftest.$ac_ext
15924 LIBS=$ac_func_search_save_LIBS
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
15927 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
15928 ac_res=$ac_cv_search_clock_gettime
15929 if test "$ac_res" != no
15931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15935 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
15936 if test "x$ac_cv_func_posix_memalign" = xyes
15938 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
15941 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
15942 if test "x$ac_cv_func_clock_gettime" = xyes
15944 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15947 ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
15948 if test "x$ac_cv_func_posix_fallocate" = xyes
15950 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
15953 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
15954 if test "x$ac_cv_func_explicit_bzero" = xyes
15956 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
15961 if test "x$enable_largefile" = "xno"; then
15962 as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15966 printf %s "checking for an ANSI C-conforming const... " >&6; }
15967 if test ${ac_cv_c_const+y}
15969 printf %s "(cached) " >&6
15971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15972 /* end confdefs.h. */
15978 #ifndef __cplusplus
15979 /* Ultrix mips cc rejects this sort of thing. */
15980 typedef int charset[2];
15981 const charset cs = { 0, 0 };
15982 /* SunOS 4.1.1 cc rejects this. */
15983 char const *const *pcpcc;
15985 /* NEC SVR4.0.2 mips cc rejects this. */
15986 struct point {int x, y;};
15987 static struct point const zero = {0,0};
15988 /* IBM XL C 1.02.0.0 rejects this.
15989 It does not let you subtract one const X* pointer from another in
15990 an arm of an if-expression whose if-part is not a constant
15992 const char *g = "string";
15993 pcpcc = &g + (g ? g-g : 0);
15994 /* HPUX 7.0 cc rejects these. */
15996 ppc = (char**) pcpcc;
15997 pcpcc = (char const *const *) ppc;
15998 { /* SCO 3.2v4 cc rejects this sort of thing. */
16001 char const *s = 0 ? (char *) 0 : (char const *) 0;
16006 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16007 int x[] = {25, 17};
16008 const int *foo = &x[0];
16011 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16012 typedef const int *iptr;
16016 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16018 struct s { int j; const int *ap[3]; } bx;
16019 struct s *b = &bx; b->j = 5;
16021 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16022 const int foo = 10;
16023 if (!foo) return 0;
16025 return !cs[0] && !zero.x;
16032 if ac_fn_c_try_compile "$LINENO"
16038 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16041 printf "%s\n" "$ac_cv_c_const" >&6; }
16042 if test $ac_cv_c_const = no; then
16044 printf "%s\n" "#define const /**/" >>confdefs.h
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16049 printf %s "checking whether byte ordering is bigendian... " >&6; }
16050 if test ${ac_cv_c_bigendian+y}
16052 printf %s "(cached) " >&6
16054 ac_cv_c_bigendian=unknown
16055 # See if we're dealing with a universal compiler.
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #ifndef __APPLE_CC__
16059 not a universal capable compiler
16064 if ac_fn_c_try_compile "$LINENO"
16067 # Check for potential -arch flags. It is not universal unless
16068 # there are at least two -arch flags with different values.
16071 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16072 if test -n "$ac_prev"; then
16074 i?86 | x86_64 | ppc | ppc64)
16075 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16078 ac_cv_c_bigendian=universal
16084 elif test "x$ac_word" = "x-arch"; then
16089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16090 if test $ac_cv_c_bigendian = unknown; then
16091 # See if sys/param.h defines the BYTE_ORDER macro.
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <sys/types.h>
16095 #include <sys/param.h>
16100 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16101 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16103 bogus endian macros
16110 if ac_fn_c_try_compile "$LINENO"
16112 # It does; now see whether it defined to BIG_ENDIAN or not.
16113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16114 /* end confdefs.h. */
16115 #include <sys/types.h>
16116 #include <sys/param.h>
16121 #if BYTE_ORDER != BIG_ENDIAN
16129 if ac_fn_c_try_compile "$LINENO"
16131 ac_cv_c_bigendian=yes
16133 ac_cv_c_bigendian=no
16135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16139 if test $ac_cv_c_bigendian = unknown; then
16140 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16143 #include <limits.h>
16148 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16149 bogus endian macros
16156 if ac_fn_c_try_compile "$LINENO"
16158 # It does; now see whether it defined to _BIG_ENDIAN or not.
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161 #include <limits.h>
16166 #ifndef _BIG_ENDIAN
16174 if ac_fn_c_try_compile "$LINENO"
16176 ac_cv_c_bigendian=yes
16178 ac_cv_c_bigendian=no
16180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16184 if test $ac_cv_c_bigendian = unknown; then
16185 # Compile a test program.
16186 if test "$cross_compiling" = yes
16188 # Try to guess by grepping values from an object file.
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191 unsigned short int ascii_mm[] =
16192 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16193 unsigned short int ascii_ii[] =
16194 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16195 int use_ascii (int i) {
16196 return ascii_mm[i] + ascii_ii[i];
16198 unsigned short int ebcdic_ii[] =
16199 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16200 unsigned short int ebcdic_mm[] =
16201 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16202 int use_ebcdic (int i) {
16203 return ebcdic_mm[i] + ebcdic_ii[i];
16210 return use_ascii (foo) == use_ebcdic (foo);
16215 if ac_fn_c_try_compile "$LINENO"
16217 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16218 ac_cv_c_bigendian=yes
16220 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16221 if test "$ac_cv_c_bigendian" = unknown; then
16222 ac_cv_c_bigendian=no
16224 # finding both strings is unlikely to happen, but who knows?
16225 ac_cv_c_bigendian=unknown
16229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233 $ac_includes_default
16238 /* Are we little or big endian? From Harbison&Steele. */
16242 char c[sizeof (long int)];
16245 return u.c[sizeof (long int) - 1] == 1;
16251 if ac_fn_c_try_run "$LINENO"
16253 ac_cv_c_bigendian=no
16255 ac_cv_c_bigendian=yes
16257 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16258 conftest.$ac_objext conftest.beam conftest.$ac_ext
16263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16264 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
16265 case $ac_cv_c_bigendian in #(
16267 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
16273 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16277 as_fn_error $? "unknown endianness
16278 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16281 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16282 if test "x$ac_cv_type_off_t" = xyes
16287 printf "%s\n" "#define off_t long int" >>confdefs.h
16291 # Check whether --enable-largefile was given.
16292 if test ${enable_largefile+y}
16294 enableval=$enable_largefile;
16297 if test "$enable_largefile" != no; then
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16300 printf %s "checking for special C compiler options needed for large files... " >&6; }
16301 if test ${ac_cv_sys_largefile_CC+y}
16303 printf %s "(cached) " >&6
16305 ac_cv_sys_largefile_CC=no
16306 if test "$GCC" != yes; then
16309 # IRIX 6.2 and later do not support large files by default,
16310 # so use the C compiler's -n32 option if that helps.
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 #include <sys/types.h>
16314 /* Check that off_t can represent 2**63 - 1 correctly.
16315 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16316 since some C++ compilers masquerading as C compilers
16317 incorrectly reject 9223372036854775807. */
16318 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16319 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16320 && LARGE_OFF_T % 2147483647 == 1)
16330 if ac_fn_c_try_compile "$LINENO"
16334 rm -f core conftest.err conftest.$ac_objext conftest.beam
16336 if ac_fn_c_try_compile "$LINENO"
16338 ac_cv_sys_largefile_CC=' -n32'; break
16340 rm -f core conftest.err conftest.$ac_objext conftest.beam
16344 rm -f conftest.$ac_ext
16347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16348 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
16349 if test "$ac_cv_sys_largefile_CC" != no; then
16350 CC=$CC$ac_cv_sys_largefile_CC
16353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16354 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16355 if test ${ac_cv_sys_file_offset_bits+y}
16357 printf %s "(cached) " >&6
16360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16361 /* end confdefs.h. */
16362 #include <sys/types.h>
16363 /* Check that off_t can represent 2**63 - 1 correctly.
16364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16365 since some C++ compilers masquerading as C compilers
16366 incorrectly reject 9223372036854775807. */
16367 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16369 && LARGE_OFF_T % 2147483647 == 1)
16379 if ac_fn_c_try_compile "$LINENO"
16381 ac_cv_sys_file_offset_bits=no; break
16383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16386 #define _FILE_OFFSET_BITS 64
16387 #include <sys/types.h>
16388 /* Check that off_t can represent 2**63 - 1 correctly.
16389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16390 since some C++ compilers masquerading as C compilers
16391 incorrectly reject 9223372036854775807. */
16392 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16394 && LARGE_OFF_T % 2147483647 == 1)
16404 if ac_fn_c_try_compile "$LINENO"
16406 ac_cv_sys_file_offset_bits=64; break
16408 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16409 ac_cv_sys_file_offset_bits=unknown
16413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16414 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
16415 case $ac_cv_sys_file_offset_bits in #(
16418 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
16422 if test $ac_cv_sys_file_offset_bits = unknown; then
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16424 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
16425 if test ${ac_cv_sys_large_files+y}
16427 printf %s "(cached) " >&6
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432 #include <sys/types.h>
16433 /* Check that off_t can represent 2**63 - 1 correctly.
16434 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16435 since some C++ compilers masquerading as C compilers
16436 incorrectly reject 9223372036854775807. */
16437 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16438 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16439 && LARGE_OFF_T % 2147483647 == 1)
16449 if ac_fn_c_try_compile "$LINENO"
16451 ac_cv_sys_large_files=no; break
16453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16455 /* end confdefs.h. */
16456 #define _LARGE_FILES 1
16457 #include <sys/types.h>
16458 /* Check that off_t can represent 2**63 - 1 correctly.
16459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
16460 since some C++ compilers masquerading as C compilers
16461 incorrectly reject 9223372036854775807. */
16462 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
16463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16464 && LARGE_OFF_T % 2147483647 == 1)
16474 if ac_fn_c_try_compile "$LINENO"
16476 ac_cv_sys_large_files=1; break
16478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16479 ac_cv_sys_large_files=unknown
16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16484 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
16485 case $ac_cv_sys_large_files in #(
16488 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
16496 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
16497 if test ${ac_cv_sys_largefile_source+y}
16499 printf %s "(cached) " >&6
16502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503 /* end confdefs.h. */
16504 #include <sys/types.h> /* for off_t */
16509 int (*fp) (FILE *, off_t, int) = fseeko;
16510 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16515 if ac_fn_c_try_link "$LINENO"
16517 ac_cv_sys_largefile_source=no; break
16519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16520 conftest$ac_exeext conftest.$ac_ext
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 #define _LARGEFILE_SOURCE 1
16524 #include <sys/types.h> /* for off_t */
16529 int (*fp) (FILE *, off_t, int) = fseeko;
16530 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
16535 if ac_fn_c_try_link "$LINENO"
16537 ac_cv_sys_largefile_source=1; break
16539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16540 conftest$ac_exeext conftest.$ac_ext
16541 ac_cv_sys_largefile_source=unknown
16545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
16546 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
16547 case $ac_cv_sys_largefile_source in #(
16550 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
16555 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
16556 # in glibc 2.1.3, but that breaks too many other things.
16557 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
16558 if test $ac_cv_sys_largefile_source != unknown; then
16560 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
16564 if test $ac_cv_c_compiler_gnu = yes; then
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
16566 printf %s "checking whether $CC needs -traditional... " >&6; }
16567 if test ${ac_cv_prog_gcc_traditional+y}
16569 printf %s "(cached) " >&6
16571 ac_pattern="Autoconf.*'x'"
16572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h. */
16577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16578 $EGREP "$ac_pattern" >/dev/null 2>&1
16580 ac_cv_prog_gcc_traditional=yes
16582 ac_cv_prog_gcc_traditional=no
16587 if test $ac_cv_prog_gcc_traditional = no; then
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 #include <termio.h>
16593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16594 $EGREP "$ac_pattern" >/dev/null 2>&1
16596 ac_cv_prog_gcc_traditional=yes
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
16603 printf "%s\n" "$ac_cv_prog_gcc_traditional" >&6; }
16604 if test $ac_cv_prog_gcc_traditional = yes; then
16605 CC="$CC -traditional"
16609 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16610 if test "x$ac_cv_have_decl_strerror_r" = xyes
16616 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
16619 if test $ac_cv_have_decl_strerror_r = yes; then
16620 # For backward compatibility's sake, define HAVE_STRERROR_R.
16621 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
16622 # as AC_CHECK_DECLS_ONCE.)
16624 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
16629 printf %s "checking whether strerror_r returns char *... " >&6; }
16630 if test ${ac_cv_func_strerror_r_char_p+y}
16632 printf %s "(cached) " >&6
16635 ac_cv_func_strerror_r_char_p=no
16636 if test $ac_cv_have_decl_strerror_r = yes; then
16637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16638 /* end confdefs.h. */
16639 #include <string.h>
16645 char x = *strerror_r (0, buf, sizeof buf);
16646 char *p = strerror_r (0, buf, sizeof buf);
16653 if ac_fn_c_try_compile "$LINENO"
16655 ac_cv_func_strerror_r_char_p=yes
16657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
16663 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
16664 if test $ac_cv_func_strerror_r_char_p = yes; then
16666 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
16673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16674 printf %s "checking whether NLS is requested... " >&6; }
16675 # Check whether --enable-nls was given.
16676 if test ${enable_nls+y}
16678 enableval=$enable_nls; USE_NLS=$enableval
16683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16684 printf "%s\n" "$USE_NLS" >&6; }
16689 GETTEXT_MACRO_VERSION=0.18
16694 # Prepare PATH_SEPARATOR.
16695 # The user is always right.
16696 if test "${PATH_SEPARATOR+set}" != set; then
16697 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16698 # contains only /bin. Note that ksh looks also at the FPATH variable,
16699 # so we have to set that as well for the test.
16701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16702 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16703 || PATH_SEPARATOR=';'
16707 # Find out how to test for executable files. Don't use a zero-byte file,
16708 # as systems may use methods other than mode bits to determine executability.
16709 cat >conf$$.file <<_ASEOF
16713 chmod +x conf$$.file
16714 if test -x conf$$.file >/dev/null 2>&1; then
16715 ac_executable_p="test -x"
16717 ac_executable_p="test -f"
16721 # Extract the first word of "msgfmt", so it can be a program name with args.
16722 set dummy msgfmt; ac_word=$2
16723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16724 printf %s "checking for $ac_word... " >&6; }
16725 if test ${ac_cv_path_MSGFMT+y}
16727 printf %s "(cached) " >&6
16731 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16734 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16735 for ac_dir in $PATH; do
16737 test -z "$ac_dir" && ac_dir=.
16738 for ac_exec_ext in '' $ac_executable_extensions; do
16739 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16740 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16741 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16742 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16743 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16750 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16754 MSGFMT="$ac_cv_path_MSGFMT"
16755 if test "$MSGFMT" != ":"; then
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16757 printf "%s\n" "$MSGFMT" >&6; }
16759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 printf "%s\n" "no" >&6; }
16763 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16764 set dummy gmsgfmt; ac_word=$2
16765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16766 printf %s "checking for $ac_word... " >&6; }
16767 if test ${ac_cv_path_GMSGFMT+y}
16769 printf %s "(cached) " >&6
16773 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16777 for as_dir in $PATH
16780 case $as_dir in #(((
16783 *) as_dir=$as_dir/ ;;
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16787 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16788 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16795 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16799 GMSGFMT=$ac_cv_path_GMSGFMT
16800 if test -n "$GMSGFMT"; then
16801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16802 printf "%s\n" "$GMSGFMT" >&6; }
16804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16805 printf "%s\n" "no" >&6; }
16810 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16811 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
16812 *) MSGFMT_015=$MSGFMT ;;
16815 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16816 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
16817 *) GMSGFMT_015=$GMSGFMT ;;
16822 # Prepare PATH_SEPARATOR.
16823 # The user is always right.
16824 if test "${PATH_SEPARATOR+set}" != set; then
16825 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16826 # contains only /bin. Note that ksh looks also at the FPATH variable,
16827 # so we have to set that as well for the test.
16829 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16830 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16831 || PATH_SEPARATOR=';'
16835 # Find out how to test for executable files. Don't use a zero-byte file,
16836 # as systems may use methods other than mode bits to determine executability.
16837 cat >conf$$.file <<_ASEOF
16841 chmod +x conf$$.file
16842 if test -x conf$$.file >/dev/null 2>&1; then
16843 ac_executable_p="test -x"
16845 ac_executable_p="test -f"
16849 # Extract the first word of "xgettext", so it can be a program name with args.
16850 set dummy xgettext; ac_word=$2
16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16852 printf %s "checking for $ac_word... " >&6; }
16853 if test ${ac_cv_path_XGETTEXT+y}
16855 printf %s "(cached) " >&6
16857 case "$XGETTEXT" in
16859 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16862 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16863 for ac_dir in $PATH; do
16865 test -z "$ac_dir" && ac_dir=.
16866 for ac_exec_ext in '' $ac_executable_extensions; do
16867 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16868 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16869 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16870 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16871 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16882 XGETTEXT="$ac_cv_path_XGETTEXT"
16883 if test "$XGETTEXT" != ":"; then
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16885 printf "%s\n" "$XGETTEXT" >&6; }
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16888 printf "%s\n" "no" >&6; }
16893 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
16894 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
16895 *) XGETTEXT_015=$XGETTEXT ;;
16900 # Prepare PATH_SEPARATOR.
16901 # The user is always right.
16902 if test "${PATH_SEPARATOR+set}" != set; then
16903 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
16904 # contains only /bin. Note that ksh looks also at the FPATH variable,
16905 # so we have to set that as well for the test.
16907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16908 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
16909 || PATH_SEPARATOR=';'
16913 # Find out how to test for executable files. Don't use a zero-byte file,
16914 # as systems may use methods other than mode bits to determine executability.
16915 cat >conf$$.file <<_ASEOF
16919 chmod +x conf$$.file
16920 if test -x conf$$.file >/dev/null 2>&1; then
16921 ac_executable_p="test -x"
16923 ac_executable_p="test -f"
16927 # Extract the first word of "msgmerge", so it can be a program name with args.
16928 set dummy msgmerge; ac_word=$2
16929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 printf %s "checking for $ac_word... " >&6; }
16931 if test ${ac_cv_path_MSGMERGE+y}
16933 printf %s "(cached) " >&6
16935 case "$MSGMERGE" in
16937 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16940 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16941 for ac_dir in $PATH; do
16943 test -z "$ac_dir" && ac_dir=.
16944 for ac_exec_ext in '' $ac_executable_extensions; do
16945 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16946 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16947 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16948 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16955 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16959 MSGMERGE="$ac_cv_path_MSGMERGE"
16960 if test "$MSGMERGE" != ":"; then
16961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16962 printf "%s\n" "$MSGMERGE" >&6; }
16964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 printf "%s\n" "no" >&6; }
16969 test -n "$localedir" || localedir='${datadir}/locale'
16972 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
16975 ac_config_commands="$ac_config_commands po-directories"
17002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17003 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
17004 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
17006 printf %s "(cached) " >&6
17008 gt_save_LIBS="$LIBS"
17009 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011 /* end confdefs.h. */
17012 #include <CoreFoundation/CFPreferences.h>
17016 CFPreferencesCopyAppValue(NULL, NULL)
17021 if ac_fn_c_try_link "$LINENO"
17023 gt_cv_func_CFPreferencesCopyAppValue=yes
17025 gt_cv_func_CFPreferencesCopyAppValue=no
17027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17028 conftest$ac_exeext conftest.$ac_ext
17029 LIBS="$gt_save_LIBS"
17031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17032 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17033 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17035 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17039 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
17040 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
17042 printf %s "(cached) " >&6
17044 gt_save_LIBS="$LIBS"
17045 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17048 #include <CoreFoundation/CFLocale.h>
17052 CFLocaleCopyCurrent();
17057 if ac_fn_c_try_link "$LINENO"
17059 gt_cv_func_CFLocaleCopyCurrent=yes
17061 gt_cv_func_CFLocaleCopyCurrent=no
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS="$gt_save_LIBS"
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17068 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17069 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17071 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17075 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17076 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17088 case " $gt_needs " in
17089 *" need-formatstring-macros "*) gt_api_version=3 ;;
17090 *" need-ngettext "*) gt_api_version=2 ;;
17091 *) gt_api_version=1 ;;
17093 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
17094 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
17096 if test "$USE_NLS" = "yes"; then
17097 gt_use_preinstalled_gnugettext=no
17100 if test $gt_api_version -ge 3; then
17101 gt_revision_test_code='
17102 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
17103 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
17105 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
17108 gt_revision_test_code=
17110 if test $gt_api_version -ge 2; then
17111 gt_expression_test_code=' + * ngettext ("", "", 0)'
17113 gt_expression_test_code=
17116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17117 printf %s "checking for GNU gettext in libc... " >&6; }
17118 if eval test \${$gt_func_gnugettext_libc+y}
17120 printf %s "(cached) " >&6
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17125 #include <libintl.h>
17126 $gt_revision_test_code
17127 extern int _nl_msg_cat_cntr;
17128 extern int *_nl_domain_bindings;
17134 bindtextdomain ("", "");
17135 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
17141 if ac_fn_c_try_link "$LINENO"
17143 eval "$gt_func_gnugettext_libc=yes"
17145 eval "$gt_func_gnugettext_libc=no"
17147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17148 conftest$ac_exeext conftest.$ac_ext
17150 eval ac_res=\$$gt_func_gnugettext_libc
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17152 printf "%s\n" "$ac_res" >&6; }
17154 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
17160 am_save_CPPFLAGS="$CPPFLAGS"
17162 for element in $INCICONV; do
17164 for x in $CPPFLAGS; do
17166 acl_save_prefix="$prefix"
17167 prefix="$acl_final_prefix"
17168 acl_save_exec_prefix="$exec_prefix"
17169 exec_prefix="$acl_final_exec_prefix"
17171 exec_prefix="$acl_save_exec_prefix"
17172 prefix="$acl_save_prefix"
17174 if test "X$x" = "X$element"; then
17179 if test -z "$haveit"; then
17180 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17186 printf %s "checking for iconv... " >&6; }
17187 if test ${am_cv_func_iconv+y}
17189 printf %s "(cached) " >&6
17192 am_cv_func_iconv="no, consider installing GNU libiconv"
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17197 #include <stdlib.h>
17203 iconv_t cd = iconv_open("","");
17204 iconv(cd,NULL,NULL,NULL,NULL);
17210 if ac_fn_c_try_link "$LINENO"
17212 am_cv_func_iconv=yes
17214 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17215 conftest$ac_exeext conftest.$ac_ext
17216 if test "$am_cv_func_iconv" != yes; then
17217 am_save_LIBS="$LIBS"
17218 LIBS="$LIBS $LIBICONV"
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17222 #include <stdlib.h>
17228 iconv_t cd = iconv_open("","");
17229 iconv(cd,NULL,NULL,NULL,NULL);
17235 if ac_fn_c_try_link "$LINENO"
17237 am_cv_lib_iconv=yes
17238 am_cv_func_iconv=yes
17240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17241 conftest$ac_exeext conftest.$ac_ext
17242 LIBS="$am_save_LIBS"
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17247 printf "%s\n" "$am_cv_func_iconv" >&6; }
17248 if test "$am_cv_func_iconv" = yes; then
17249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
17250 printf %s "checking for working iconv... " >&6; }
17251 if test ${am_cv_func_iconv_works+y}
17253 printf %s "(cached) " >&6
17256 am_save_LIBS="$LIBS"
17257 if test $am_cv_lib_iconv = yes; then
17258 LIBS="$LIBS $LIBICONV"
17260 if test "$cross_compiling" = yes
17264 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
17265 *) am_cv_func_iconv_works="guessing yes" ;;
17269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270 /* end confdefs.h. */
17273 #include <string.h>
17277 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
17280 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
17281 if (cd_utf8_to_88591 != (iconv_t)(-1))
17283 static const char input[] = "\342\202\254"; /* EURO SIGN */
17285 const char *inptr = input;
17286 size_t inbytesleft = strlen (input);
17287 char *outptr = buf;
17288 size_t outbytesleft = sizeof (buf);
17289 size_t res = iconv (cd_utf8_to_88591,
17290 (char **) &inptr, &inbytesleft,
17291 &outptr, &outbytesleft);
17294 iconv_close (cd_utf8_to_88591);
17297 /* Test against Solaris 10 bug: Failures are not distinguishable from
17298 successful returns. */
17300 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
17301 if (cd_ascii_to_88591 != (iconv_t)(-1))
17303 static const char input[] = "\263";
17305 const char *inptr = input;
17306 size_t inbytesleft = strlen (input);
17307 char *outptr = buf;
17308 size_t outbytesleft = sizeof (buf);
17309 size_t res = iconv (cd_ascii_to_88591,
17310 (char **) &inptr, &inbytesleft,
17311 &outptr, &outbytesleft);
17314 iconv_close (cd_ascii_to_88591);
17317 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
17319 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
17320 if (cd_88591_to_utf8 != (iconv_t)(-1))
17322 static const char input[] = "\304";
17323 static char buf[2] = { (char)0xDE, (char)0xAD };
17324 const char *inptr = input;
17325 size_t inbytesleft = 1;
17326 char *outptr = buf;
17327 size_t outbytesleft = 1;
17328 size_t res = iconv (cd_88591_to_utf8,
17329 (char **) &inptr, &inbytesleft,
17330 &outptr, &outbytesleft);
17331 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
17333 iconv_close (cd_88591_to_utf8);
17336 #if 0 /* This bug could be worked around by the caller. */
17337 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
17339 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
17340 if (cd_88591_to_utf8 != (iconv_t)(-1))
17342 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
17344 const char *inptr = input;
17345 size_t inbytesleft = strlen (input);
17346 char *outptr = buf;
17347 size_t outbytesleft = sizeof (buf);
17348 size_t res = iconv (cd_88591_to_utf8,
17349 (char **) &inptr, &inbytesleft,
17350 &outptr, &outbytesleft);
17353 iconv_close (cd_88591_to_utf8);
17357 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
17359 if (/* Try standardized names. */
17360 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
17361 /* Try IRIX, OSF/1 names. */
17362 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
17363 /* Try AIX names. */
17364 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
17365 /* Try HP-UX names. */
17366 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
17371 if ac_fn_c_try_run "$LINENO"
17373 am_cv_func_iconv_works=yes
17375 am_cv_func_iconv_works=no
17377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17378 conftest.$ac_objext conftest.beam conftest.$ac_ext
17381 LIBS="$am_save_LIBS"
17384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
17385 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
17386 case "$am_cv_func_iconv_works" in
17387 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
17388 *) am_func_iconv=yes ;;
17391 am_func_iconv=no am_cv_lib_iconv=no
17393 if test "$am_func_iconv" = yes; then
17395 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
17398 if test "$am_cv_lib_iconv" = yes; then
17399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17400 printf %s "checking how to link with libiconv... " >&6; }
17401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17402 printf "%s\n" "$LIBICONV" >&6; }
17404 CPPFLAGS="$am_save_CPPFLAGS"
17421 acl_save_prefix="$prefix"
17422 prefix="$acl_final_prefix"
17423 acl_save_exec_prefix="$exec_prefix"
17424 exec_prefix="$acl_final_exec_prefix"
17426 eval additional_includedir=\"$includedir\"
17427 eval additional_libdir=\"$libdir\"
17429 exec_prefix="$acl_save_exec_prefix"
17430 prefix="$acl_save_prefix"
17433 # Check whether --with-libintl-prefix was given.
17434 if test ${with_libintl_prefix+y}
17436 withval=$with_libintl_prefix;
17437 if test "X$withval" = "Xno"; then
17440 if test "X$withval" = "X"; then
17442 acl_save_prefix="$prefix"
17443 prefix="$acl_final_prefix"
17444 acl_save_exec_prefix="$exec_prefix"
17445 exec_prefix="$acl_final_exec_prefix"
17447 eval additional_includedir=\"$includedir\"
17448 eval additional_libdir=\"$libdir\"
17450 exec_prefix="$acl_save_exec_prefix"
17451 prefix="$acl_save_prefix"
17454 additional_includedir="$withval/include"
17455 additional_libdir="$withval/$acl_libdirstem"
17456 if test "$acl_libdirstem2" != "$acl_libdirstem" \
17457 && ! test -d "$withval/$acl_libdirstem"; then
17458 additional_libdir="$withval/$acl_libdirstem2"
17472 names_already_handled=
17473 names_next_round='intl '
17474 while test -n "$names_next_round"; do
17475 names_this_round="$names_next_round"
17477 for name in $names_this_round; do
17479 for n in $names_already_handled; do
17480 if test "$n" = "$name"; then
17481 already_handled=yes
17485 if test -z "$already_handled"; then
17486 names_already_handled="$names_already_handled $name"
17487 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
17488 eval value=\"\$HAVE_LIB$uppername\"
17489 if test -n "$value"; then
17490 if test "$value" = yes; then
17491 eval value=\"\$LIB$uppername\"
17492 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17493 eval value=\"\$LTLIB$uppername\"
17494 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17503 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
17504 if test -n "$acl_shlibext"; then
17505 shrext=".$acl_shlibext" # typically: shrext=.so
17509 if test $use_additional = yes; then
17510 dir="$additional_libdir"
17511 if test -n "$acl_shlibext"; then
17512 if test -f "$dir/$libname$shrext"; then
17514 found_so="$dir/$libname$shrext"
17516 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17517 ver=`(cd "$dir" && \
17518 for f in "$libname$shrext".*; do echo "$f"; done \
17519 | sed -e "s,^$libname$shrext\\\\.,," \
17520 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17521 | sed 1q ) 2>/dev/null`
17522 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17524 found_so="$dir/$libname$shrext.$ver"
17527 eval library_names=\"$acl_library_names_spec\"
17528 for f in $library_names; do
17529 if test -f "$dir/$f"; then
17538 if test "X$found_dir" = "X"; then
17539 if test -f "$dir/$libname.$acl_libext"; then
17541 found_a="$dir/$libname.$acl_libext"
17544 if test "X$found_dir" != "X"; then
17545 if test -f "$dir/$libname.la"; then
17546 found_la="$dir/$libname.la"
17550 if test "X$found_dir" = "X"; then
17551 for x in $LDFLAGS $LTLIBINTL; do
17553 acl_save_prefix="$prefix"
17554 prefix="$acl_final_prefix"
17555 acl_save_exec_prefix="$exec_prefix"
17556 exec_prefix="$acl_final_exec_prefix"
17558 exec_prefix="$acl_save_exec_prefix"
17559 prefix="$acl_save_prefix"
17563 dir=`echo "X$x" | sed -e 's/^X-L//'`
17564 if test -n "$acl_shlibext"; then
17565 if test -f "$dir/$libname$shrext"; then
17567 found_so="$dir/$libname$shrext"
17569 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
17570 ver=`(cd "$dir" && \
17571 for f in "$libname$shrext".*; do echo "$f"; done \
17572 | sed -e "s,^$libname$shrext\\\\.,," \
17573 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
17574 | sed 1q ) 2>/dev/null`
17575 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
17577 found_so="$dir/$libname$shrext.$ver"
17580 eval library_names=\"$acl_library_names_spec\"
17581 for f in $library_names; do
17582 if test -f "$dir/$f"; then
17591 if test "X$found_dir" = "X"; then
17592 if test -f "$dir/$libname.$acl_libext"; then
17594 found_a="$dir/$libname.$acl_libext"
17597 if test "X$found_dir" != "X"; then
17598 if test -f "$dir/$libname.la"; then
17599 found_la="$dir/$libname.la"
17604 if test "X$found_dir" != "X"; then
17609 if test "X$found_dir" != "X"; then
17610 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17611 if test "X$found_so" != "X"; then
17612 if test "$enable_rpath" = no \
17613 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
17614 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
17615 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17618 for x in $ltrpathdirs; do
17619 if test "X$x" = "X$found_dir"; then
17624 if test -z "$haveit"; then
17625 ltrpathdirs="$ltrpathdirs $found_dir"
17627 if test "$acl_hardcode_direct" = yes; then
17628 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17630 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
17631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17633 for x in $rpathdirs; do
17634 if test "X$x" = "X$found_dir"; then
17639 if test -z "$haveit"; then
17640 rpathdirs="$rpathdirs $found_dir"
17644 for x in $LDFLAGS $LIBINTL; do
17646 acl_save_prefix="$prefix"
17647 prefix="$acl_final_prefix"
17648 acl_save_exec_prefix="$exec_prefix"
17649 exec_prefix="$acl_final_exec_prefix"
17651 exec_prefix="$acl_save_exec_prefix"
17652 prefix="$acl_save_prefix"
17654 if test "X$x" = "X-L$found_dir"; then
17659 if test -z "$haveit"; then
17660 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17662 if test "$acl_hardcode_minus_L" != no; then
17663 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17665 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17671 if test "X$found_a" != "X"; then
17672 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17674 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17677 additional_includedir=
17678 case "$found_dir" in
17679 */$acl_libdirstem | */$acl_libdirstem/)
17680 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
17681 if test "$name" = 'intl'; then
17682 LIBINTL_PREFIX="$basedir"
17684 additional_includedir="$basedir/include"
17686 */$acl_libdirstem2 | */$acl_libdirstem2/)
17687 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
17688 if test "$name" = 'intl'; then
17689 LIBINTL_PREFIX="$basedir"
17691 additional_includedir="$basedir/include"
17694 if test "X$additional_includedir" != "X"; then
17695 if test "X$additional_includedir" != "X/usr/include"; then
17697 if test "X$additional_includedir" = "X/usr/local/include"; then
17698 if test -n "$GCC"; then
17700 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17704 if test -z "$haveit"; then
17705 for x in $CPPFLAGS $INCINTL; do
17707 acl_save_prefix="$prefix"
17708 prefix="$acl_final_prefix"
17709 acl_save_exec_prefix="$exec_prefix"
17710 exec_prefix="$acl_final_exec_prefix"
17712 exec_prefix="$acl_save_exec_prefix"
17713 prefix="$acl_save_prefix"
17715 if test "X$x" = "X-I$additional_includedir"; then
17720 if test -z "$haveit"; then
17721 if test -d "$additional_includedir"; then
17722 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17728 if test -n "$found_la"; then
17729 save_libdir="$libdir"
17730 case "$found_la" in
17731 */* | *\\*) . "$found_la" ;;
17732 *) . "./$found_la" ;;
17734 libdir="$save_libdir"
17735 for dep in $dependency_libs; do
17738 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17739 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
17740 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
17742 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
17743 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
17744 if test -n "$GCC"; then
17746 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17750 if test -z "$haveit"; then
17752 for x in $LDFLAGS $LIBINTL; do
17754 acl_save_prefix="$prefix"
17755 prefix="$acl_final_prefix"
17756 acl_save_exec_prefix="$exec_prefix"
17757 exec_prefix="$acl_final_exec_prefix"
17759 exec_prefix="$acl_save_exec_prefix"
17760 prefix="$acl_save_prefix"
17762 if test "X$x" = "X-L$additional_libdir"; then
17767 if test -z "$haveit"; then
17768 if test -d "$additional_libdir"; then
17769 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17773 for x in $LDFLAGS $LTLIBINTL; do
17775 acl_save_prefix="$prefix"
17776 prefix="$acl_final_prefix"
17777 acl_save_exec_prefix="$exec_prefix"
17778 exec_prefix="$acl_final_exec_prefix"
17780 exec_prefix="$acl_save_exec_prefix"
17781 prefix="$acl_save_prefix"
17783 if test "X$x" = "X-L$additional_libdir"; then
17788 if test -z "$haveit"; then
17789 if test -d "$additional_libdir"; then
17790 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17797 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17798 if test "$enable_rpath" != no; then
17800 for x in $rpathdirs; do
17801 if test "X$x" = "X$dir"; then
17806 if test -z "$haveit"; then
17807 rpathdirs="$rpathdirs $dir"
17810 for x in $ltrpathdirs; do
17811 if test "X$x" = "X$dir"; then
17816 if test -z "$haveit"; then
17817 ltrpathdirs="$ltrpathdirs $dir"
17822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17825 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17828 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17829 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17835 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17836 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17842 if test "X$rpathdirs" != "X"; then
17843 if test -n "$acl_hardcode_libdir_separator"; then
17845 for found_dir in $rpathdirs; do
17846 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
17848 acl_save_libdir="$libdir"
17850 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17851 libdir="$acl_save_libdir"
17852 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17854 for found_dir in $rpathdirs; do
17855 acl_save_libdir="$libdir"
17856 libdir="$found_dir"
17857 eval flag=\"$acl_hardcode_libdir_flag_spec\"
17858 libdir="$acl_save_libdir"
17859 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17863 if test "X$ltrpathdirs" != "X"; then
17864 for found_dir in $ltrpathdirs; do
17865 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17875 printf %s "checking for GNU gettext in libintl... " >&6; }
17876 if eval test \${$gt_func_gnugettext_libintl+y}
17878 printf %s "(cached) " >&6
17880 gt_save_CPPFLAGS="$CPPFLAGS"
17881 CPPFLAGS="$CPPFLAGS $INCINTL"
17882 gt_save_LIBS="$LIBS"
17883 LIBS="$LIBS $LIBINTL"
17884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17885 /* end confdefs.h. */
17887 #include <libintl.h>
17888 $gt_revision_test_code
17889 extern int _nl_msg_cat_cntr;
17894 const char *_nl_expand_alias (const char *);
17900 bindtextdomain ("", "");
17901 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17907 if ac_fn_c_try_link "$LINENO"
17909 eval "$gt_func_gnugettext_libintl=yes"
17911 eval "$gt_func_gnugettext_libintl=no"
17913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17914 conftest$ac_exeext conftest.$ac_ext
17915 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
17916 LIBS="$LIBS $LIBICONV"
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17920 #include <libintl.h>
17921 $gt_revision_test_code
17922 extern int _nl_msg_cat_cntr;
17927 const char *_nl_expand_alias (const char *);
17933 bindtextdomain ("", "");
17934 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17940 if ac_fn_c_try_link "$LINENO"
17942 LIBINTL="$LIBINTL $LIBICONV"
17943 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17944 eval "$gt_func_gnugettext_libintl=yes"
17947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17948 conftest$ac_exeext conftest.$ac_ext
17950 CPPFLAGS="$gt_save_CPPFLAGS"
17951 LIBS="$gt_save_LIBS"
17953 eval ac_res=\$$gt_func_gnugettext_libintl
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17955 printf "%s\n" "$ac_res" >&6; }
17958 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
17959 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
17960 && test "$PACKAGE" != gettext-runtime \
17961 && test "$PACKAGE" != gettext-tools; }; then
17962 gt_use_preinstalled_gnugettext=yes
17971 if test -n "$INTL_MACOSX_LIBS"; then
17972 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17973 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17974 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17975 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17979 if test "$gt_use_preinstalled_gnugettext" = "yes" \
17980 || test "$nls_cv_use_gnu_gettext" = "yes"; then
17982 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17990 printf %s "checking whether to use NLS... " >&6; }
17991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17992 printf "%s\n" "$USE_NLS" >&6; }
17993 if test "$USE_NLS" = "yes"; then
17994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17995 printf %s "checking where the gettext function comes from... " >&6; }
17996 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17997 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
17998 gt_source="external libintl"
18003 gt_source="included intl directory"
18005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18006 printf "%s\n" "$gt_source" >&6; }
18009 if test "$USE_NLS" = "yes"; then
18011 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18012 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
18013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18014 printf %s "checking how to link with libintl... " >&6; }
18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18016 printf "%s\n" "$LIBINTL" >&6; }
18018 for element in $INCINTL; do
18020 for x in $CPPFLAGS; do
18022 acl_save_prefix="$prefix"
18023 prefix="$acl_final_prefix"
18024 acl_save_exec_prefix="$exec_prefix"
18025 exec_prefix="$acl_final_exec_prefix"
18027 exec_prefix="$acl_save_exec_prefix"
18028 prefix="$acl_save_prefix"
18030 if test "X$x" = "X$element"; then
18035 if test -z "$haveit"; then
18036 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18043 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
18046 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
18055 INTLLIBS="$LIBINTL"
18066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
18067 printf %s "checking for poptConfigFileToString in -lpopt... " >&6; }
18068 if test ${ac_cv_lib_popt_poptConfigFileToString+y}
18070 printf %s "(cached) " >&6
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lpopt $LIBS"
18074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075 /* end confdefs.h. */
18077 /* Override any GCC internal prototype to avoid an error.
18078 Use char because int might match the return type of a GCC
18079 builtin and then its argument prototype would still apply. */
18080 char poptConfigFileToString ();
18084 return poptConfigFileToString ();
18089 if ac_fn_c_try_link "$LINENO"
18091 ac_cv_lib_popt_poptConfigFileToString=yes
18093 ac_cv_lib_popt_poptConfigFileToString=no
18095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18096 conftest$ac_exeext conftest.$ac_ext
18097 LIBS=$ac_check_lib_save_LIBS
18099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
18100 printf "%s\n" "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
18101 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes
18103 printf "%s\n" "#define HAVE_LIBPOPT 1" >>confdefs.h
18105 LIBS="-lpopt $LIBS"
18108 as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
18115 # Check whether --enable-fips was given.
18116 if test ${enable_fips+y}
18118 enableval=$enable_fips;
18121 if test "x$enable_fips" = "xyes"; then
18123 printf "%s\n" "#define ENABLE_FIPS 1" >>confdefs.h
18126 if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
18127 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
18133 # Check whether --enable-luks2-reencryption was given.
18134 if test ${enable_luks2_reencryption+y}
18136 enableval=$enable_luks2_reencryption;
18138 enable_luks2_reencryption=yes
18141 if test "x$enable_luks2_reencryption" = "xyes"; then
18143 printf "%s\n" "#define USE_LUKS2_REENCRYPTION 1" >>confdefs.h
18147 # Check whether --enable-pwquality was given.
18148 if test ${enable_pwquality+y}
18150 enableval=$enable_pwquality;
18154 if test "x$enable_pwquality" = "xyes"; then
18156 printf "%s\n" "#define ENABLE_PWQUALITY 1" >>confdefs.h
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pwquality >= 1.0.0" >&5
18161 printf %s "checking for pwquality >= 1.0.0... " >&6; }
18163 if test -n "$PWQUALITY_CFLAGS"; then
18164 pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
18165 elif test -n "$PKG_CONFIG"; then
18166 if test -n "$PKG_CONFIG" && \
18167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
18168 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
18170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18171 test $ac_status = 0; }; then
18172 pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
18173 test "x$?" != "x0" && pkg_failed=yes
18180 if test -n "$PWQUALITY_LIBS"; then
18181 pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
18182 elif test -n "$PKG_CONFIG"; then
18183 if test -n "$PKG_CONFIG" && \
18184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
18185 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
18187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; }; then
18189 pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
18190 test "x$?" != "x0" && pkg_failed=yes
18200 if test $pkg_failed = yes; then
18201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18202 printf "%s\n" "no" >&6; }
18204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18205 _pkg_short_errors_supported=yes
18207 _pkg_short_errors_supported=no
18209 if test $_pkg_short_errors_supported = yes; then
18210 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
18212 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
18214 # Put the nasty error message in config.log where it belongs
18215 echo "$PWQUALITY_PKG_ERRORS" >&5
18217 as_fn_error $? "You need pwquality library." "$LINENO" 5
18218 elif test $pkg_failed = untried; then
18219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 printf "%s\n" "no" >&6; }
18221 as_fn_error $? "You need pwquality library." "$LINENO" 5
18223 PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
18224 PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
18225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18226 printf "%s\n" "yes" >&6; }
18230 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
18233 # Check whether --enable-passwdqc was given.
18234 if test ${enable_passwdqc+y}
18236 enableval=$enable_passwdqc;
18240 case "$enable_passwdqc" in
18241 ""|yes|no) use_passwdqc_config="" ;;
18242 /*) use_passwdqc_config="$enable_passwdqc"; enable_passwdqc=yes ;;
18243 *) as_fn_error $? "Unrecognized --enable-passwdqc parameter." "$LINENO" 5 ;;
18246 printf "%s\n" "#define PASSWDQC_CONFIG_FILE \"$use_passwdqc_config\"" >>confdefs.h
18249 if test "x$enable_passwdqc" = "xyes"; then
18251 printf "%s\n" "#define ENABLE_PASSWDQC 1" >>confdefs.h
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing passwdqc_check" >&5
18256 printf %s "checking for library containing passwdqc_check... " >&6; }
18257 if test ${ac_cv_search_passwdqc_check+y}
18259 printf %s "(cached) " >&6
18261 ac_func_search_save_LIBS=$LIBS
18262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18263 /* end confdefs.h. */
18265 /* Override any GCC internal prototype to avoid an error.
18266 Use char because int might match the return type of a GCC
18267 builtin and then its argument prototype would still apply. */
18268 char passwdqc_check ();
18272 return passwdqc_check ();
18277 for ac_lib in '' passwdqc
18279 if test -z "$ac_lib"; then
18280 ac_res="none required"
18283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18285 if ac_fn_c_try_link "$LINENO"
18287 ac_cv_search_passwdqc_check=$ac_res
18289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18291 if test ${ac_cv_search_passwdqc_check+y}
18296 if test ${ac_cv_search_passwdqc_check+y}
18300 ac_cv_search_passwdqc_check=no
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_passwdqc_check" >&5
18306 printf "%s\n" "$ac_cv_search_passwdqc_check" >&6; }
18307 ac_res=$ac_cv_search_passwdqc_check
18308 if test "$ac_res" != no
18310 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18314 case "$ac_cv_search_passwdqc_check" in
18315 no) as_fn_error $? "failed to find passwdqc_check" "$LINENO" 5 ;;
18316 -l*) PASSWDQC_LIBS="$ac_cv_search_passwdqc_check" ;;
18317 *) PASSWDQC_LIBS= ;;
18319 ac_fn_c_check_func "$LINENO" "passwdqc_params_free" "ac_cv_func_passwdqc_params_free"
18320 if test "x$ac_cv_func_passwdqc_params_free" = xyes
18322 printf "%s\n" "#define HAVE_PASSWDQC_PARAMS_FREE 1" >>confdefs.h
18329 if test "x$enable_pwquality$enable_passwdqc" = "xyesyes"; then
18330 as_fn_error $? "--enable-pwquality and --enable-passwdqc are mutually incompatible." "$LINENO" 5
18346 # Check whether --enable-static-cryptsetup was given.
18347 if test ${enable_static_cryptsetup+y}
18349 enableval=$enable_static_cryptsetup;
18352 if test "x$enable_static_cryptsetup" = "xyes"; then
18353 if test "x$enable_static" = "xno"; then
18354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
18355 printf "%s\n" "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
18359 if test "x$enable_static_cryptsetup" = "xyes"; then
18361 STATIC_TOOLS_FALSE='#'
18363 STATIC_TOOLS_TRUE='#'
18364 STATIC_TOOLS_FALSE=
18368 # Check whether --enable-cryptsetup was given.
18369 if test ${enable_cryptsetup+y}
18371 enableval=$enable_cryptsetup;
18373 enable_cryptsetup=yes
18376 if test "x$enable_cryptsetup" = "xyes"; then
18378 CRYPTSETUP_FALSE='#'
18380 CRYPTSETUP_TRUE='#'
18385 # Check whether --enable-veritysetup was given.
18386 if test ${enable_veritysetup+y}
18388 enableval=$enable_veritysetup;
18390 enable_veritysetup=yes
18393 if test "x$enable_veritysetup" = "xyes"; then
18395 VERITYSETUP_FALSE='#'
18397 VERITYSETUP_TRUE='#'
18402 # Check whether --enable-cryptsetup-reencrypt was given.
18403 if test ${enable_cryptsetup_reencrypt+y}
18405 enableval=$enable_cryptsetup_reencrypt;
18407 enable_cryptsetup_reencrypt=yes
18410 if test "x$enable_cryptsetup_reencrypt" = "xyes"; then
18412 REENCRYPT_FALSE='#'
18419 # Check whether --enable-integritysetup was given.
18420 if test ${enable_integritysetup+y}
18422 enableval=$enable_integritysetup;
18424 enable_integritysetup=yes
18427 if test "x$enable_integritysetup" = "xyes"; then
18428 INTEGRITYSETUP_TRUE=
18429 INTEGRITYSETUP_FALSE='#'
18431 INTEGRITYSETUP_TRUE='#'
18432 INTEGRITYSETUP_FALSE=
18436 # Check whether --enable-selinux was given.
18437 if test ${enable_selinux+y}
18439 enableval=$enable_selinux;
18445 # Check whether --enable-udev was given.
18446 if test ${enable_udev+y}
18448 enableval=$enable_udev;
18456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.03" >&5
18457 printf %s "checking for devmapper >= 1.02.03... " >&6; }
18459 if test -n "$DEVMAPPER_CFLAGS"; then
18460 pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
18461 elif test -n "$PKG_CONFIG"; then
18462 if test -n "$PKG_CONFIG" && \
18463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
18464 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
18466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18467 test $ac_status = 0; }; then
18468 pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
18469 test "x$?" != "x0" && pkg_failed=yes
18476 if test -n "$DEVMAPPER_LIBS"; then
18477 pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
18478 elif test -n "$PKG_CONFIG"; then
18479 if test -n "$PKG_CONFIG" && \
18480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
18481 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
18483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18484 test $ac_status = 0; }; then
18485 pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
18486 test "x$?" != "x0" && pkg_failed=yes
18496 if test $pkg_failed = yes; then
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18498 printf "%s\n" "no" >&6; }
18500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18501 _pkg_short_errors_supported=yes
18503 _pkg_short_errors_supported=no
18505 if test $_pkg_short_errors_supported = yes; then
18506 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
18508 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
18510 # Put the nasty error message in config.log where it belongs
18511 echo "$DEVMAPPER_PKG_ERRORS" >&5
18514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
18515 printf %s "checking for dm_task_set_name in -ldevmapper... " >&6; }
18516 if test ${ac_cv_lib_devmapper_dm_task_set_name+y}
18518 printf %s "(cached) " >&6
18520 ac_check_lib_save_LIBS=$LIBS
18521 LIBS="-ldevmapper $LIBS"
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18525 /* Override any GCC internal prototype to avoid an error.
18526 Use char because int might match the return type of a GCC
18527 builtin and then its argument prototype would still apply. */
18528 char dm_task_set_name ();
18532 return dm_task_set_name ();
18537 if ac_fn_c_try_link "$LINENO"
18539 ac_cv_lib_devmapper_dm_task_set_name=yes
18541 ac_cv_lib_devmapper_dm_task_set_name=no
18543 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS
18547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
18548 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
18549 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes
18551 printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18553 LIBS="-ldevmapper $LIBS"
18556 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
18559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
18560 printf %s "checking for dm_task_set_message in -ldevmapper... " >&6; }
18561 if test ${ac_cv_lib_devmapper_dm_task_set_message+y}
18563 printf %s "(cached) " >&6
18565 ac_check_lib_save_LIBS=$LIBS
18566 LIBS="-ldevmapper $LIBS"
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply. */
18573 char dm_task_set_message ();
18577 return dm_task_set_message ();
18582 if ac_fn_c_try_link "$LINENO"
18584 ac_cv_lib_devmapper_dm_task_set_message=yes
18586 ac_cv_lib_devmapper_dm_task_set_message=no
18588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18589 conftest$ac_exeext conftest.$ac_ext
18590 LIBS=$ac_check_lib_save_LIBS
18592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
18593 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
18594 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes
18596 printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18598 LIBS="-ldevmapper $LIBS"
18601 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
18604 DEVMAPPER_LIBS=$LIBS
18606 elif test $pkg_failed = untried; then
18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18608 printf "%s\n" "no" >&6; }
18610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
18611 printf %s "checking for dm_task_set_name in -ldevmapper... " >&6; }
18612 if test ${ac_cv_lib_devmapper_dm_task_set_name+y}
18614 printf %s "(cached) " >&6
18616 ac_check_lib_save_LIBS=$LIBS
18617 LIBS="-ldevmapper $LIBS"
18618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18619 /* end confdefs.h. */
18621 /* Override any GCC internal prototype to avoid an error.
18622 Use char because int might match the return type of a GCC
18623 builtin and then its argument prototype would still apply. */
18624 char dm_task_set_name ();
18628 return dm_task_set_name ();
18633 if ac_fn_c_try_link "$LINENO"
18635 ac_cv_lib_devmapper_dm_task_set_name=yes
18637 ac_cv_lib_devmapper_dm_task_set_name=no
18639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
18644 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
18645 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes
18647 printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18649 LIBS="-ldevmapper $LIBS"
18652 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
18656 printf %s "checking for dm_task_set_message in -ldevmapper... " >&6; }
18657 if test ${ac_cv_lib_devmapper_dm_task_set_message+y}
18659 printf %s "(cached) " >&6
18661 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-ldevmapper $LIBS"
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18669 char dm_task_set_message ();
18673 return dm_task_set_message ();
18678 if ac_fn_c_try_link "$LINENO"
18680 ac_cv_lib_devmapper_dm_task_set_message=yes
18682 ac_cv_lib_devmapper_dm_task_set_message=no
18684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS
18688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
18689 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
18690 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes
18692 printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
18694 LIBS="-ldevmapper $LIBS"
18697 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
18700 DEVMAPPER_LIBS=$LIBS
18703 DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
18704 DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
18705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 printf "%s\n" "yes" >&6; }
18711 LIBS="$LIBS $DEVMAPPER_LIBS"
18712 ac_fn_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
18713 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18714 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes
18720 printf "%s\n" "#define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl" >>confdefs.h
18722 ac_fn_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
18723 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18724 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes
18730 printf "%s\n" "#define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl" >>confdefs.h
18732 ac_fn_check_decl "$LINENO" "dm_task_deferred_remove" "ac_cv_have_decl_dm_task_deferred_remove" "#include <libdevmapper.h>
18733 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18734 if test "x$ac_cv_have_decl_dm_task_deferred_remove" = xyes
18740 printf "%s\n" "#define HAVE_DECL_DM_TASK_DEFERRED_REMOVE $ac_have_decl" >>confdefs.h
18742 ac_fn_check_decl "$LINENO" "dm_device_has_mounted_fs" "ac_cv_have_decl_dm_device_has_mounted_fs" "#include <libdevmapper.h>
18743 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18744 if test "x$ac_cv_have_decl_dm_device_has_mounted_fs" = xyes
18750 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_HAS_MOUNTED_FS $ac_have_decl" >>confdefs.h
18752 ac_fn_check_decl "$LINENO" "dm_device_has_holders" "ac_cv_have_decl_dm_device_has_holders" "#include <libdevmapper.h>
18753 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18754 if test "x$ac_cv_have_decl_dm_device_has_holders" = xyes
18760 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_HAS_HOLDERS $ac_have_decl" >>confdefs.h
18762 ac_fn_check_decl "$LINENO" "dm_device_get_name" "ac_cv_have_decl_dm_device_get_name" "#include <libdevmapper.h>
18763 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18764 if test "x$ac_cv_have_decl_dm_device_get_name" = xyes
18770 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_GET_NAME $ac_have_decl" >>confdefs.h
18772 ac_fn_check_decl "$LINENO" "DM_DEVICE_GET_TARGET_VERSION" "ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" "#include <libdevmapper.h>
18773 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18774 if test "x$ac_cv_have_decl_DM_DEVICE_GET_TARGET_VERSION" = xyes
18780 printf "%s\n" "#define HAVE_DECL_DM_DEVICE_GET_TARGET_VERSION $ac_have_decl" >>confdefs.h
18782 ac_fn_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
18783 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18784 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes
18790 printf "%s\n" "#define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl" >>confdefs.h
18791 if test $ac_have_decl = 1
18798 if test "x$enable_udev" = xyes; then
18799 if test "x$have_cookie" = xno; then
18800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
18801 printf "%s\n" "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
18804 printf "%s\n" "#define USE_UDEV 1" >>confdefs.h
18812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for json-c" >&5
18813 printf %s "checking for json-c... " >&6; }
18815 if test -n "$JSON_C_CFLAGS"; then
18816 pkg_cv_JSON_C_CFLAGS="$JSON_C_CFLAGS"
18817 elif test -n "$PKG_CONFIG"; then
18818 if test -n "$PKG_CONFIG" && \
18819 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
18820 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
18822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18823 test $ac_status = 0; }; then
18824 pkg_cv_JSON_C_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
18825 test "x$?" != "x0" && pkg_failed=yes
18832 if test -n "$JSON_C_LIBS"; then
18833 pkg_cv_JSON_C_LIBS="$JSON_C_LIBS"
18834 elif test -n "$PKG_CONFIG"; then
18835 if test -n "$PKG_CONFIG" && \
18836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
18837 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
18839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18840 test $ac_status = 0; }; then
18841 pkg_cv_JSON_C_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
18842 test "x$?" != "x0" && pkg_failed=yes
18852 if test $pkg_failed = yes; then
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18854 printf "%s\n" "no" >&6; }
18856 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18857 _pkg_short_errors_supported=yes
18859 _pkg_short_errors_supported=no
18861 if test $_pkg_short_errors_supported = yes; then
18862 JSON_C_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
18864 JSON_C_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
18866 # Put the nasty error message in config.log where it belongs
18867 echo "$JSON_C_PKG_ERRORS" >&5
18869 as_fn_error $? "Package requirements (json-c) were not met:
18873 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18874 installed software in a non-standard prefix.
18876 Alternatively, you may set the environment variables JSON_C_CFLAGS
18877 and JSON_C_LIBS to avoid the need to call pkg-config.
18878 See the pkg-config man page for more details." "$LINENO" 5
18879 elif test $pkg_failed = untried; then
18880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18881 printf "%s\n" "no" >&6; }
18882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18884 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
18885 is in your PATH or set the PKG_CONFIG environment variable to the full
18886 path to pkg-config.
18888 Alternatively, you may set the environment variables JSON_C_CFLAGS
18889 and JSON_C_LIBS to avoid the need to call pkg-config.
18890 See the pkg-config man page for more details.
18892 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18893 See \`config.log' for more details" "$LINENO" 5; }
18895 JSON_C_CFLAGS=$pkg_cv_JSON_C_CFLAGS
18896 JSON_C_LIBS=$pkg_cv_JSON_C_LIBS
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18898 printf "%s\n" "yes" >&6; }
18901 ac_fn_check_decl "$LINENO" "json_object_object_add_ex" "ac_cv_have_decl_json_object_object_add_ex" "#include <json-c/json.h>
18902 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18903 if test "x$ac_cv_have_decl_json_object_object_add_ex" = xyes
18909 printf "%s\n" "#define HAVE_DECL_JSON_OBJECT_OBJECT_ADD_EX $ac_have_decl" >>confdefs.h
18911 ac_fn_check_decl "$LINENO" "json_object_deep_copy" "ac_cv_have_decl_json_object_deep_copy" "#include <json-c/json.h>
18912 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18913 if test "x$ac_cv_have_decl_json_object_deep_copy" = xyes
18919 printf "%s\n" "#define HAVE_DECL_JSON_OBJECT_DEEP_COPY $ac_have_decl" >>confdefs.h
18923 # Check whether --with-crypto_backend was given.
18924 if test ${with_crypto_backend+y}
18926 withval=$with_crypto_backend;
18928 with_crypto_backend=openssl
18932 # Check whether --enable-kernel_crypto was given.
18933 if test ${enable_kernel_crypto+y}
18935 enableval=$enable_kernel_crypto;
18937 enable_kernel_crypto=yes
18941 if test "x$enable_kernel_crypto" = "xyes"; then
18942 for ac_header in linux/if_alg.h
18944 ac_fn_c_check_header_compile "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
18945 if test "x$ac_cv_header_linux_if_alg_h" = xyes
18947 printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h
18950 as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
18955 printf "%s\n" "#define ENABLE_AF_ALG 1" >>confdefs.h
18959 case $with_crypto_backend in
18961 if test "x$enable_fips" = "xyes"; then
18962 GCRYPT_REQ_VERSION=1.4.5
18964 GCRYPT_REQ_VERSION=1.1.42
18968 # Check whether --enable-gcrypt-pbkdf2 was given.
18969 if test ${enable_gcrypt_pbkdf2+y}
18971 enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
18972 use_internal_pbkdf2=0
18974 use_internal_pbkdf2=1
18979 # Check whether --with-libgcrypt-prefix was given.
18980 if test ${with_libgcrypt_prefix+y}
18982 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
18984 libgcrypt_config_prefix=""
18987 if test x"${LIBGCRYPT_CONFIG}" = x ; then
18988 if test x"${libgcrypt_config_prefix}" != x ; then
18989 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
18993 use_gpgrt_config=""
18994 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
18995 if $GPGRT_CONFIG libgcrypt --exists; then
18996 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
18997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
18998 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
18999 use_gpgrt_config=yes
19002 if test -z "$use_gpgrt_config"; then
19003 if test x"${LIBGCRYPT_CONFIG}" = x ; then
19004 case "${SYSROOT}" in
19006 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
19007 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
19013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
19014 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
19018 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
19019 set dummy libgcrypt-config; ac_word=$2
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19021 printf %s "checking for $ac_word... " >&6; }
19022 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
19024 printf %s "(cached) " >&6
19026 case $LIBGCRYPT_CONFIG in
19028 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
19031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19032 for as_dir in $PATH
19035 case $as_dir in #(((
19038 *) as_dir=$as_dir/ ;;
19040 for ac_exec_ext in '' $ac_executable_extensions; do
19041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19042 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
19043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19050 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
19054 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
19055 if test -n "$LIBGCRYPT_CONFIG"; then
19056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
19057 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
19059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 printf "%s\n" "no" >&6; }
19067 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
19068 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
19069 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
19071 req_libgcrypt_api=0
19072 min_libgcrypt_version="$tmp"
19075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
19076 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
19078 if test "$LIBGCRYPT_CONFIG" != "no" ; then
19079 req_major=`echo $min_libgcrypt_version | \
19080 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19081 req_minor=`echo $min_libgcrypt_version | \
19082 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19083 req_micro=`echo $min_libgcrypt_version | \
19084 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19085 if test -z "$use_gpgrt_config"; then
19086 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
19088 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
19090 major=`echo $libgcrypt_config_version | \
19091 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19092 minor=`echo $libgcrypt_config_version | \
19093 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19094 micro=`echo $libgcrypt_config_version | \
19095 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19096 if test "$major" -gt "$req_major"; then
19099 if test "$major" -eq "$req_major"; then
19100 if test "$minor" -gt "$req_minor"; then
19103 if test "$minor" -eq "$req_minor"; then
19104 if test "$micro" -ge "$req_micro"; then
19112 if test $ok = yes; then
19113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
19114 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
19116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19117 printf "%s\n" "no" >&6; }
19119 if test $ok = yes; then
19120 # If we have a recent libgcrypt, we should also check that the
19121 # API is compatible
19122 if test "$req_libgcrypt_api" -gt 0 ; then
19123 if test -z "$use_gpgrt_config"; then
19124 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
19126 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
19128 if test "$tmp" -gt 0 ; then
19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
19130 printf %s "checking LIBGCRYPT API version... " >&6; }
19131 if test "$req_libgcrypt_api" -eq "$tmp" ; then
19132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
19133 printf "%s\n" "okay" >&6; }
19136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
19137 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
19142 if test $ok = yes; then
19143 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
19144 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
19145 use_internal_pbkdf2=0
19146 if test -z "$use_gpgrt_config"; then
19147 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
19149 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
19151 if test x"$libgcrypt_config_host" != xnone ; then
19152 if test x"$libgcrypt_config_host" != x"$host" ; then
19153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19155 *** The config script \"$LIBGCRYPT_CONFIG\" was
19156 *** built for $libgcrypt_config_host and thus may not match the
19157 *** used host $host.
19158 *** You may want to use the configure option --with-libgcrypt-prefix
19159 *** to specify a matching config script or use \$SYSROOT.
19161 printf "%s\n" "$as_me: WARNING:
19163 *** The config script \"$LIBGCRYPT_CONFIG\" was
19164 *** built for $libgcrypt_config_host and thus may not match the
19165 *** used host $host.
19166 *** You may want to use the configure option --with-libgcrypt-prefix
19167 *** to specify a matching config script or use \$SYSROOT.
19169 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
19173 LIBGCRYPT_CFLAGS=""
19175 use_internal_pbkdf2=1
19184 # Check whether --with-libgcrypt-prefix was given.
19185 if test ${with_libgcrypt_prefix+y}
19187 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
19189 libgcrypt_config_prefix=""
19192 if test x"${LIBGCRYPT_CONFIG}" = x ; then
19193 if test x"${libgcrypt_config_prefix}" != x ; then
19194 LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config"
19198 use_gpgrt_config=""
19199 if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then
19200 if $GPGRT_CONFIG libgcrypt --exists; then
19201 LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt"
19202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5
19203 printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;}
19204 use_gpgrt_config=yes
19207 if test -z "$use_gpgrt_config"; then
19208 if test x"${LIBGCRYPT_CONFIG}" = x ; then
19209 case "${SYSROOT}" in
19211 if test -x "${SYSROOT}/bin/libgcrypt-config" ; then
19212 LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config"
19218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5
19219 printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;}
19223 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
19224 set dummy libgcrypt-config; ac_word=$2
19225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19226 printf %s "checking for $ac_word... " >&6; }
19227 if test ${ac_cv_path_LIBGCRYPT_CONFIG+y}
19229 printf %s "(cached) " >&6
19231 case $LIBGCRYPT_CONFIG in
19233 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
19236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19237 for as_dir in $PATH
19240 case $as_dir in #(((
19243 *) as_dir=$as_dir/ ;;
19245 for ac_exec_ext in '' $ac_executable_extensions; do
19246 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19247 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext"
19248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19255 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
19259 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
19260 if test -n "$LIBGCRYPT_CONFIG"; then
19261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
19262 printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; }
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19265 printf "%s\n" "no" >&6; }
19271 tmp=$GCRYPT_REQ_VERSION
19272 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
19273 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
19274 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
19276 req_libgcrypt_api=0
19277 min_libgcrypt_version="$tmp"
19280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
19281 printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
19283 if test "$LIBGCRYPT_CONFIG" != "no" ; then
19284 req_major=`echo $min_libgcrypt_version | \
19285 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
19286 req_minor=`echo $min_libgcrypt_version | \
19287 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
19288 req_micro=`echo $min_libgcrypt_version | \
19289 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
19290 if test -z "$use_gpgrt_config"; then
19291 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
19293 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion`
19295 major=`echo $libgcrypt_config_version | \
19296 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
19297 minor=`echo $libgcrypt_config_version | \
19298 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
19299 micro=`echo $libgcrypt_config_version | \
19300 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
19301 if test "$major" -gt "$req_major"; then
19304 if test "$major" -eq "$req_major"; then
19305 if test "$minor" -gt "$req_minor"; then
19308 if test "$minor" -eq "$req_minor"; then
19309 if test "$micro" -ge "$req_micro"; then
19317 if test $ok = yes; then
19318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
19319 printf "%s\n" "yes ($libgcrypt_config_version)" >&6; }
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 printf "%s\n" "no" >&6; }
19324 if test $ok = yes; then
19325 # If we have a recent libgcrypt, we should also check that the
19326 # API is compatible
19327 if test "$req_libgcrypt_api" -gt 0 ; then
19328 if test -z "$use_gpgrt_config"; then
19329 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
19331 tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0`
19333 if test "$tmp" -gt 0 ; then
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
19335 printf %s "checking LIBGCRYPT API version... " >&6; }
19336 if test "$req_libgcrypt_api" -eq "$tmp" ; then
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5
19338 printf "%s\n" "okay" >&6; }
19341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
19342 printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
19347 if test $ok = yes; then
19348 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
19349 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
19351 if test -z "$use_gpgrt_config"; then
19352 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
19354 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none`
19356 if test x"$libgcrypt_config_host" != xnone ; then
19357 if test x"$libgcrypt_config_host" != x"$host" ; then
19358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19360 *** The config script \"$LIBGCRYPT_CONFIG\" was
19361 *** built for $libgcrypt_config_host and thus may not match the
19362 *** used host $host.
19363 *** You may want to use the configure option --with-libgcrypt-prefix
19364 *** to specify a matching config script or use \$SYSROOT.
19366 printf "%s\n" "$as_me: WARNING:
19368 *** The config script \"$LIBGCRYPT_CONFIG\" was
19369 *** built for $libgcrypt_config_host and thus may not match the
19370 *** used host $host.
19371 *** You may want to use the configure option --with-libgcrypt-prefix
19372 *** to specify a matching config script or use \$SYSROOT.
19374 gpg_config_script_warn="$gpg_config_script_warn libgcrypt"
19378 LIBGCRYPT_CFLAGS=""
19380 as_fn_error $? "You need the gcrypt library." "$LINENO" 5
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
19387 printf %s "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
19388 if test $use_internal_pbkdf2 = 0; then
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 printf "%s\n" "no" >&6; }
19392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19393 printf "%s\n" "yes" >&6; }
19395 if test "x$enable_fips" = "xyes"; then
19396 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19401 ac_fn_check_decl "$LINENO" "GCRY_CIPHER_MODE_XTS" "ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" "#include <gcrypt.h>
19402 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19403 if test "x$ac_cv_have_decl_GCRY_CIPHER_MODE_XTS" = xyes
19409 printf "%s\n" "#define HAVE_DECL_GCRY_CIPHER_MODE_XTS $ac_have_decl" >>confdefs.h
19412 if test "x$enable_static_cryptsetup" = "xyes"; then
19414 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
19415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
19416 printf %s "checking for gcry_check_version in -lgcrypt... " >&6; }
19417 if test ${ac_cv_lib_gcrypt_gcry_check_version+y}
19419 printf %s "(cached) " >&6
19421 ac_check_lib_save_LIBS=$LIBS
19422 LIBS="-lgcrypt -lgpg-error $LIBS"
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19429 char gcry_check_version ();
19433 return gcry_check_version ();
19438 if ac_fn_c_try_link "$LINENO"
19440 ac_cv_lib_gcrypt_gcry_check_version=yes
19442 ac_cv_lib_gcrypt_gcry_check_version=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19445 conftest$ac_exeext conftest.$ac_ext
19446 LIBS=$ac_check_lib_save_LIBS
19448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
19449 printf "%s\n" "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
19450 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes
19452 printf "%s\n" "#define HAVE_LIBGCRYPT 1" >>confdefs.h
19454 LIBS="-lgcrypt $LIBS"
19457 as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
19460 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
19464 CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
19465 CRYPTO_LIBS=$LIBGCRYPT_LIBS
19466 CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
19469 printf "%s\n" "#define GCRYPT_REQ_VERSION \"$GCRYPT_REQ_VERSION\"" >>confdefs.h
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl >= 0.9.8" >&5
19476 printf %s "checking for openssl >= 0.9.8... " >&6; }
19478 if test -n "$OPENSSL_CFLAGS"; then
19479 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19480 elif test -n "$PKG_CONFIG"; then
19481 if test -n "$PKG_CONFIG" && \
19482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
19483 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
19485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19486 test $ac_status = 0; }; then
19487 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
19488 test "x$?" != "x0" && pkg_failed=yes
19495 if test -n "$OPENSSL_LIBS"; then
19496 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19497 elif test -n "$PKG_CONFIG"; then
19498 if test -n "$PKG_CONFIG" && \
19499 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
19500 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
19502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19503 test $ac_status = 0; }; then
19504 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
19505 test "x$?" != "x0" && pkg_failed=yes
19515 if test $pkg_failed = yes; then
19516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19517 printf "%s\n" "no" >&6; }
19519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19520 _pkg_short_errors_supported=yes
19522 _pkg_short_errors_supported=no
19524 if test $_pkg_short_errors_supported = yes; then
19525 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
19527 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
19529 # Put the nasty error message in config.log where it belongs
19530 echo "$OPENSSL_PKG_ERRORS" >&5
19532 as_fn_error $? "You need openssl library." "$LINENO" 5
19533 elif test $pkg_failed = untried; then
19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19535 printf "%s\n" "no" >&6; }
19536 as_fn_error $? "You need openssl library." "$LINENO" 5
19538 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19539 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19541 printf "%s\n" "yes" >&6; }
19544 CRYPTO_CFLAGS=$OPENSSL_CFLAGS
19545 CRYPTO_LIBS=$OPENSSL_LIBS
19546 use_internal_pbkdf2=0
19548 if test "x$enable_static_cryptsetup" = "xyes"; then
19549 saved_PKG_CONFIG=$PKG_CONFIG
19550 PKG_CONFIG="$PKG_CONFIG --static"
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
19554 printf %s "checking for openssl... " >&6; }
19556 if test -n "$OPENSSL_STATIC_CFLAGS"; then
19557 pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
19558 elif test -n "$PKG_CONFIG"; then
19559 if test -n "$PKG_CONFIG" && \
19560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
19561 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
19563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19564 test $ac_status = 0; }; then
19565 pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
19566 test "x$?" != "x0" && pkg_failed=yes
19573 if test -n "$OPENSSL_STATIC_LIBS"; then
19574 pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
19575 elif test -n "$PKG_CONFIG"; then
19576 if test -n "$PKG_CONFIG" && \
19577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
19578 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
19580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19581 test $ac_status = 0; }; then
19582 pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
19583 test "x$?" != "x0" && pkg_failed=yes
19593 if test $pkg_failed = yes; then
19594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595 printf "%s\n" "no" >&6; }
19597 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19598 _pkg_short_errors_supported=yes
19600 _pkg_short_errors_supported=no
19602 if test $_pkg_short_errors_supported = yes; then
19603 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
19605 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
19607 # Put the nasty error message in config.log where it belongs
19608 echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
19610 as_fn_error $? "Package requirements (openssl) were not met:
19612 $OPENSSL_STATIC_PKG_ERRORS
19614 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19615 installed software in a non-standard prefix.
19617 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
19618 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
19619 See the pkg-config man page for more details." "$LINENO" 5
19620 elif test $pkg_failed = untried; then
19621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19622 printf "%s\n" "no" >&6; }
19623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19625 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19626 is in your PATH or set the PKG_CONFIG environment variable to the full
19627 path to pkg-config.
19629 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
19630 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
19631 See the pkg-config man page for more details.
19633 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19634 See \`config.log' for more details" "$LINENO" 5; }
19636 OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
19637 OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
19638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19639 printf "%s\n" "yes" >&6; }
19642 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
19643 PKG_CONFIG=$saved_PKG_CONFIG
19647 if test "x$enable_static_cryptsetup" = "xyes"; then
19648 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
19651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
19652 printf "%s\n" "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
19657 printf %s "checking for nss... " >&6; }
19659 if test -n "$NSS_CFLAGS"; then
19660 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
19661 elif test -n "$PKG_CONFIG"; then
19662 if test -n "$PKG_CONFIG" && \
19663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
19664 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19667 test $ac_status = 0; }; then
19668 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
19669 test "x$?" != "x0" && pkg_failed=yes
19676 if test -n "$NSS_LIBS"; then
19677 pkg_cv_NSS_LIBS="$NSS_LIBS"
19678 elif test -n "$PKG_CONFIG"; then
19679 if test -n "$PKG_CONFIG" && \
19680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
19681 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
19683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19684 test $ac_status = 0; }; then
19685 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
19686 test "x$?" != "x0" && pkg_failed=yes
19696 if test $pkg_failed = yes; then
19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 printf "%s\n" "no" >&6; }
19700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19701 _pkg_short_errors_supported=yes
19703 _pkg_short_errors_supported=no
19705 if test $_pkg_short_errors_supported = yes; then
19706 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
19708 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
19710 # Put the nasty error message in config.log where it belongs
19711 echo "$NSS_PKG_ERRORS" >&5
19713 as_fn_error $? "You need nss library." "$LINENO" 5
19714 elif test $pkg_failed = untried; then
19715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19716 printf "%s\n" "no" >&6; }
19717 as_fn_error $? "You need nss library." "$LINENO" 5
19719 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
19720 NSS_LIBS=$pkg_cv_NSS_LIBS
19721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19722 printf "%s\n" "yes" >&6; }
19726 saved_CFLAGS=$CFLAGS
19727 CFLAGS="$CFLAGS $NSS_CFLAGS"
19728 ac_fn_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
19729 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19730 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes
19736 printf "%s\n" "#define HAVE_DECL_NSS_GETVERSION $ac_have_decl" >>confdefs.h
19738 CFLAGS=$saved_CFLAGS
19740 CRYPTO_CFLAGS=$NSS_CFLAGS
19741 CRYPTO_LIBS=$NSS_LIBS
19742 use_internal_pbkdf2=1
19744 if test "x$enable_fips" = "xyes"; then
19745 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19750 for ac_header in linux/if_alg.h
19752 ac_fn_c_check_header_compile "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
19753 if test "x$ac_cv_header_linux_if_alg_h" = xyes
19755 printf "%s\n" "#define HAVE_LINUX_IF_ALG_H 1" >>confdefs.h
19758 as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
19762 # AC_CHECK_DECLS([AF_ALG],,
19763 # [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
19764 # [#include <sys/socket.h>])
19765 use_internal_pbkdf2=1
19767 if test "x$enable_fips" = "xyes"; then
19768 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19773 for ac_header in nettle/sha.h
19775 ac_fn_c_check_header_compile "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
19776 if test "x$ac_cv_header_nettle_sha_h" = xyes
19778 printf "%s\n" "#define HAVE_NETTLE_SHA_H 1" >>confdefs.h
19781 as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
19785 ac_fn_c_check_header_compile "$LINENO" "nettle/version.h" "ac_cv_header_nettle_version_h" "$ac_includes_default"
19786 if test "x$ac_cv_header_nettle_version_h" = xyes
19788 printf "%s\n" "#define HAVE_NETTLE_VERSION_H 1" >>confdefs.h
19794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
19795 printf %s "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
19796 if test ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+y}
19798 printf %s "(cached) " >&6
19800 ac_check_lib_save_LIBS=$LIBS
19801 LIBS="-lnettle $LIBS"
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19805 /* Override any GCC internal prototype to avoid an error.
19806 Use char because int might match the return type of a GCC
19807 builtin and then its argument prototype would still apply. */
19808 char nettle_pbkdf2_hmac_sha256 ();
19812 return nettle_pbkdf2_hmac_sha256 ();
19817 if ac_fn_c_try_link "$LINENO"
19819 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
19821 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
19823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19824 conftest$ac_exeext conftest.$ac_ext
19825 LIBS=$ac_check_lib_save_LIBS
19827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
19828 printf "%s\n" "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
19829 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes
19831 printf "%s\n" "#define HAVE_LIBNETTLE 1" >>confdefs.h
19833 LIBS="-lnettle $LIBS"
19836 as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
19842 CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
19843 use_internal_pbkdf2=0
19845 if test "x$enable_fips" = "xyes"; then
19846 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
19850 *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
19852 if test "$with_crypto_backend" = "gcrypt"; then
19853 CRYPTO_BACKEND_GCRYPT_TRUE=
19854 CRYPTO_BACKEND_GCRYPT_FALSE='#'
19856 CRYPTO_BACKEND_GCRYPT_TRUE='#'
19857 CRYPTO_BACKEND_GCRYPT_FALSE=
19860 if test "$with_crypto_backend" = "openssl"; then
19861 CRYPTO_BACKEND_OPENSSL_TRUE=
19862 CRYPTO_BACKEND_OPENSSL_FALSE='#'
19864 CRYPTO_BACKEND_OPENSSL_TRUE='#'
19865 CRYPTO_BACKEND_OPENSSL_FALSE=
19868 if test "$with_crypto_backend" = "nss"; then
19869 CRYPTO_BACKEND_NSS_TRUE=
19870 CRYPTO_BACKEND_NSS_FALSE='#'
19872 CRYPTO_BACKEND_NSS_TRUE='#'
19873 CRYPTO_BACKEND_NSS_FALSE=
19876 if test "$with_crypto_backend" = "kernel"; then
19877 CRYPTO_BACKEND_KERNEL_TRUE=
19878 CRYPTO_BACKEND_KERNEL_FALSE='#'
19880 CRYPTO_BACKEND_KERNEL_TRUE='#'
19881 CRYPTO_BACKEND_KERNEL_FALSE=
19884 if test "$with_crypto_backend" = "nettle"; then
19885 CRYPTO_BACKEND_NETTLE_TRUE=
19886 CRYPTO_BACKEND_NETTLE_FALSE='#'
19888 CRYPTO_BACKEND_NETTLE_TRUE='#'
19889 CRYPTO_BACKEND_NETTLE_FALSE=
19893 if test $use_internal_pbkdf2 = 1; then
19894 CRYPTO_INTERNAL_PBKDF2_TRUE=
19895 CRYPTO_INTERNAL_PBKDF2_FALSE='#'
19897 CRYPTO_INTERNAL_PBKDF2_TRUE='#'
19898 CRYPTO_INTERNAL_PBKDF2_FALSE=
19902 printf "%s\n" "#define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2" >>confdefs.h
19905 # Check whether --enable-internal-argon2 was given.
19906 if test ${enable_internal_argon2+y}
19908 enableval=$enable_internal_argon2;
19910 enable_internal_argon2=yes
19914 # Check whether --enable-libargon2 was given.
19915 if test ${enable_libargon2+y}
19917 enableval=$enable_libargon2;
19921 if test "x$enable_libargon2" = "xyes" ; then
19922 for ac_header in argon2.h
19924 ac_fn_c_check_header_compile "$LINENO" "argon2.h" "ac_cv_header_argon2_h" "$ac_includes_default"
19925 if test "x$ac_cv_header_argon2_h" = xyes
19927 printf "%s\n" "#define HAVE_ARGON2_H 1" >>confdefs.h
19930 as_fn_error $? "You need libargon2 development library installed." "$LINENO" 5
19934 ac_fn_check_decl "$LINENO" "Argon2_id" "ac_cv_have_decl_Argon2_id" "#include <argon2.h>
19935 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19936 if test "x$ac_cv_have_decl_Argon2_id" = xyes
19940 as_fn_error $? "You need more recent Argon2 library with support for Argon2id." "$LINENO" 5
19944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libargon2" >&5
19945 printf %s "checking for libargon2... " >&6; }
19947 if test -n "$LIBARGON2_CFLAGS"; then
19948 pkg_cv_LIBARGON2_CFLAGS="$LIBARGON2_CFLAGS"
19949 elif test -n "$PKG_CONFIG"; then
19950 if test -n "$PKG_CONFIG" && \
19951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
19952 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
19954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19955 test $ac_status = 0; }; then
19956 pkg_cv_LIBARGON2_CFLAGS=`$PKG_CONFIG --cflags "libargon2" 2>/dev/null`
19957 test "x$?" != "x0" && pkg_failed=yes
19964 if test -n "$LIBARGON2_LIBS"; then
19965 pkg_cv_LIBARGON2_LIBS="$LIBARGON2_LIBS"
19966 elif test -n "$PKG_CONFIG"; then
19967 if test -n "$PKG_CONFIG" && \
19968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libargon2\""; } >&5
19969 ($PKG_CONFIG --exists --print-errors "libargon2") 2>&5
19971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19972 test $ac_status = 0; }; then
19973 pkg_cv_LIBARGON2_LIBS=`$PKG_CONFIG --libs "libargon2" 2>/dev/null`
19974 test "x$?" != "x0" && pkg_failed=yes
19984 if test $pkg_failed = yes; then
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 printf "%s\n" "no" >&6; }
19988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19989 _pkg_short_errors_supported=yes
19991 _pkg_short_errors_supported=no
19993 if test $_pkg_short_errors_supported = yes; then
19994 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libargon2" 2>&1`
19996 LIBARGON2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libargon2" 2>&1`
19998 # Put the nasty error message in config.log where it belongs
19999 echo "$LIBARGON2_PKG_ERRORS" >&5
20001 LIBARGON2_LIBS="-largon2"
20002 elif test $pkg_failed = untried; then
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20004 printf "%s\n" "no" >&6; }
20005 LIBARGON2_LIBS="-largon2"
20007 LIBARGON2_CFLAGS=$pkg_cv_LIBARGON2_CFLAGS
20008 LIBARGON2_LIBS=$pkg_cv_LIBARGON2_LIBS
20009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20010 printf "%s\n" "yes" >&6; }
20013 enable_internal_argon2=no
20015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&5
20016 printf "%s\n" "$as_me: WARNING: Argon2 bundled (slow) reference implementation will be used, please consider to use system library with --enable-libargon2." >&2;}
20018 # Check whether --enable-internal-sse-argon2 was given.
20019 if test ${enable_internal_sse_argon2+y}
20021 enableval=$enable_internal_sse_argon2;
20025 if test "x$enable_internal_sse_argon2" = "xyes"; then
20026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Argon2 SSE optimization can be used" >&5
20027 printf %s "checking if Argon2 SSE optimization can be used... " >&6; }
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20031 #include <emmintrin.h>
20032 __m128i testfunc(__m128i *a, __m128i *b) {
20033 return _mm_xor_si128(_mm_loadu_si128(a), _mm_loadu_si128(b));
20044 if ac_fn_c_try_link "$LINENO"
20048 enable_internal_sse_argon2=no
20050 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20051 conftest$ac_exeext conftest.$ac_ext
20052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_internal_sse_argon2" >&5
20053 printf "%s\n" "$enable_internal_sse_argon2" >&6; }
20057 if test "x$enable_internal_argon2" = "xyes"; then
20059 printf "%s\n" "#define USE_INTERNAL_ARGON2 1" >>confdefs.h
20062 if test "x$enable_internal_argon2" = "xyes"; then
20063 CRYPTO_INTERNAL_ARGON2_TRUE=
20064 CRYPTO_INTERNAL_ARGON2_FALSE='#'
20066 CRYPTO_INTERNAL_ARGON2_TRUE='#'
20067 CRYPTO_INTERNAL_ARGON2_FALSE=
20070 if test "x$enable_internal_sse_argon2" = "xyes"; then
20071 CRYPTO_INTERNAL_SSE_ARGON2_TRUE=
20072 CRYPTO_INTERNAL_SSE_ARGON2_FALSE='#'
20074 CRYPTO_INTERNAL_SSE_ARGON2_TRUE='#'
20075 CRYPTO_INTERNAL_SSE_ARGON2_FALSE=
20079 # Check whether --enable-blkid was given.
20080 if test ${enable_blkid+y}
20082 enableval=$enable_blkid;
20088 if test "x$enable_blkid" = "xyes"; then
20091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid" >&5
20092 printf %s "checking for blkid... " >&6; }
20094 if test -n "$BLKID_CFLAGS"; then
20095 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
20096 elif test -n "$PKG_CONFIG"; then
20097 if test -n "$PKG_CONFIG" && \
20098 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
20099 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
20101 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20102 test $ac_status = 0; }; then
20103 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
20104 test "x$?" != "x0" && pkg_failed=yes
20111 if test -n "$BLKID_LIBS"; then
20112 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
20113 elif test -n "$PKG_CONFIG"; then
20114 if test -n "$PKG_CONFIG" && \
20115 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid\""; } >&5
20116 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
20118 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20119 test $ac_status = 0; }; then
20120 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
20121 test "x$?" != "x0" && pkg_failed=yes
20131 if test $pkg_failed = yes; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20133 printf "%s\n" "no" >&6; }
20135 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20136 _pkg_short_errors_supported=yes
20138 _pkg_short_errors_supported=no
20140 if test $_pkg_short_errors_supported = yes; then
20141 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid" 2>&1`
20143 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid" 2>&1`
20145 # Put the nasty error message in config.log where it belongs
20146 echo "$BLKID_PKG_ERRORS" >&5
20148 LIBBLKID_LIBS="-lblkid"
20149 elif test $pkg_failed = untried; then
20150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20151 printf "%s\n" "no" >&6; }
20152 LIBBLKID_LIBS="-lblkid"
20154 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
20155 BLKID_LIBS=$pkg_cv_BLKID_LIBS
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20157 printf "%s\n" "yes" >&6; }
20159 printf "%s\n" "#define HAVE_BLKID 1" >>confdefs.h
20163 for ac_header in blkid/blkid.h
20165 ac_fn_c_check_header_compile "$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
20166 if test "x$ac_cv_header_blkid_blkid_h" = xyes
20168 printf "%s\n" "#define HAVE_BLKID_BLKID_H 1" >>confdefs.h
20171 as_fn_error $? "You need blkid development library installed." "$LINENO" 5
20175 ac_fn_check_decl "$LINENO" "blkid_do_wipe" "ac_cv_have_decl_blkid_do_wipe" "#include <blkid/blkid.h>
20176 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20177 if test "x$ac_cv_have_decl_blkid_do_wipe" = xyes
20180 printf "%s\n" "#define HAVE_BLKID_WIPE 1" >>confdefs.h
20182 enable_blkid_wipe=yes
20185 ac_fn_check_decl "$LINENO" "blkid_probe_step_back" "ac_cv_have_decl_blkid_probe_step_back" "#include <blkid/blkid.h>
20186 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20187 if test "x$ac_cv_have_decl_blkid_probe_step_back" = xyes
20190 printf "%s\n" "#define HAVE_BLKID_STEP_BACK 1" >>confdefs.h
20192 enable_blkid_step_back=yes
20195 ac_fn_check_decl "$LINENO" "blkid_reset_probe" "ac_cv_have_decl_blkid_reset_probe" "#include <blkid/blkid.h>
20196 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20197 if test "x$ac_cv_have_decl_blkid_reset_probe" = xyes
20203 printf "%s\n" "#define HAVE_DECL_BLKID_RESET_PROBE $ac_have_decl" >>confdefs.h
20204 if test $ac_have_decl = 1
20208 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20210 ac_fn_check_decl "$LINENO" "blkid_probe_set_device" "ac_cv_have_decl_blkid_probe_set_device" "#include <blkid/blkid.h>
20211 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20212 if test "x$ac_cv_have_decl_blkid_probe_set_device" = xyes
20218 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_SET_DEVICE $ac_have_decl" >>confdefs.h
20219 if test $ac_have_decl = 1
20223 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20225 ac_fn_check_decl "$LINENO" "blkid_probe_filter_superblocks_type" "ac_cv_have_decl_blkid_probe_filter_superblocks_type" "#include <blkid/blkid.h>
20226 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20227 if test "x$ac_cv_have_decl_blkid_probe_filter_superblocks_type" = xyes
20233 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_FILTER_SUPERBLOCKS_TYPE $ac_have_decl" >>confdefs.h
20234 if test $ac_have_decl = 1
20238 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20240 ac_fn_check_decl "$LINENO" "blkid_do_safeprobe" "ac_cv_have_decl_blkid_do_safeprobe" "#include <blkid/blkid.h>
20241 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20242 if test "x$ac_cv_have_decl_blkid_do_safeprobe" = xyes
20248 printf "%s\n" "#define HAVE_DECL_BLKID_DO_SAFEPROBE $ac_have_decl" >>confdefs.h
20249 if test $ac_have_decl = 1
20253 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20255 ac_fn_check_decl "$LINENO" "blkid_do_probe" "ac_cv_have_decl_blkid_do_probe" "#include <blkid/blkid.h>
20256 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20257 if test "x$ac_cv_have_decl_blkid_do_probe" = xyes
20263 printf "%s\n" "#define HAVE_DECL_BLKID_DO_PROBE $ac_have_decl" >>confdefs.h
20264 if test $ac_have_decl = 1
20268 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20270 ac_fn_check_decl "$LINENO" "blkid_probe_lookup_value
20271 " "ac_cv_have_decl_blkid_probe_lookup_value__________" "#include <blkid/blkid.h>
20272 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20273 if test "x$ac_cv_have_decl_blkid_probe_lookup_value__________" = xyes
20279 printf "%s\n" "#define HAVE_DECL_BLKID_PROBE_LOOKUP_VALUE__________ $ac_have_decl" >>confdefs.h
20280 if test $ac_have_decl = 1
20284 as_fn_error $? "Can not compile with blkid support, disable it by --disable-blkid." "$LINENO" 5
20288 if test "x$enable_blkid" = "xyes"; then
20290 HAVE_BLKID_FALSE='#'
20292 HAVE_BLKID_TRUE='#'
20296 if test "x$enable_blkid_wipe" = "xyes"; then
20297 HAVE_BLKID_WIPE_TRUE=
20298 HAVE_BLKID_WIPE_FALSE='#'
20300 HAVE_BLKID_WIPE_TRUE='#'
20301 HAVE_BLKID_WIPE_FALSE=
20304 if test "x$enable_blkid_step_back" = "xyes"; then
20305 HAVE_BLKID_STEP_BACK_TRUE=
20306 HAVE_BLKID_STEP_BACK_FALSE='#'
20308 HAVE_BLKID_STEP_BACK_TRUE='#'
20309 HAVE_BLKID_STEP_BACK_FALSE=
20313 if test "x$enable_static_cryptsetup" = "xyes"; then
20314 saved_PKG_CONFIG=$PKG_CONFIG
20315 PKG_CONFIG="$PKG_CONFIG --static"
20317 LIBS="$saved_LIBS -static"
20318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
20319 printf %s "checking for poptGetContext in -lpopt... " >&6; }
20320 if test ${ac_cv_lib_popt_poptGetContext+y}
20322 printf %s "(cached) " >&6
20324 ac_check_lib_save_LIBS=$LIBS
20325 LIBS="-lpopt $LIBS"
20326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20327 /* end confdefs.h. */
20329 /* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20332 char poptGetContext ();
20336 return poptGetContext ();
20341 if ac_fn_c_try_link "$LINENO"
20343 ac_cv_lib_popt_poptGetContext=yes
20345 ac_cv_lib_popt_poptGetContext=no
20347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20348 conftest$ac_exeext conftest.$ac_ext
20349 LIBS=$ac_check_lib_save_LIBS
20351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
20352 printf "%s\n" "$ac_cv_lib_popt_poptGetContext" >&6; }
20353 if test "x$ac_cv_lib_popt_poptGetContext" = xyes
20355 printf "%s\n" "#define HAVE_LIBPOPT 1" >>confdefs.h
20357 LIBS="-lpopt $LIBS"
20360 as_fn_error $? "Cannot find static popt library." "$LINENO" 5
20364 LIBS="$saved_LIBS -static"
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for devmapper >= 1.02.27" >&5
20368 printf %s "checking for devmapper >= 1.02.27... " >&6; }
20370 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
20371 pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
20372 elif test -n "$PKG_CONFIG"; then
20373 if test -n "$PKG_CONFIG" && \
20374 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
20375 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
20377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20378 test $ac_status = 0; }; then
20379 pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
20380 test "x$?" != "x0" && pkg_failed=yes
20387 if test -n "$DEVMAPPER_STATIC_LIBS"; then
20388 pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
20389 elif test -n "$PKG_CONFIG"; then
20390 if test -n "$PKG_CONFIG" && \
20391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
20392 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
20394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20395 test $ac_status = 0; }; then
20396 pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
20397 test "x$?" != "x0" && pkg_failed=yes
20407 if test $pkg_failed = yes; then
20408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409 printf "%s\n" "no" >&6; }
20411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20412 _pkg_short_errors_supported=yes
20414 _pkg_short_errors_supported=no
20416 if test $_pkg_short_errors_supported = yes; then
20417 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
20419 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
20421 # Put the nasty error message in config.log where it belongs
20422 echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
20425 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
20426 if test "x$enable_selinux" = "xyes"; then
20427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
20428 printf %s "checking for sepol_bool_set in -lsepol... " >&6; }
20429 if test ${ac_cv_lib_sepol_sepol_bool_set+y}
20431 printf %s "(cached) " >&6
20433 ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lsepol $LIBS"
20435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20436 /* end confdefs.h. */
20438 /* Override any GCC internal prototype to avoid an error.
20439 Use char because int might match the return type of a GCC
20440 builtin and then its argument prototype would still apply. */
20441 char sepol_bool_set ();
20445 return sepol_bool_set ();
20450 if ac_fn_c_try_link "$LINENO"
20452 ac_cv_lib_sepol_sepol_bool_set=yes
20454 ac_cv_lib_sepol_sepol_bool_set=no
20456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20457 conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
20461 printf "%s\n" "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
20462 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes
20464 printf "%s\n" "#define HAVE_LIBSEPOL 1" >>confdefs.h
20466 LIBS="-lsepol $LIBS"
20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
20471 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
20472 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
20474 printf %s "(cached) " >&6
20476 ac_check_lib_save_LIBS=$LIBS
20477 LIBS="-lselinux $LIBS"
20478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20479 /* end confdefs.h. */
20481 /* Override any GCC internal prototype to avoid an error.
20482 Use char because int might match the return type of a GCC
20483 builtin and then its argument prototype would still apply. */
20484 char is_selinux_enabled ();
20488 return is_selinux_enabled ();
20493 if ac_fn_c_try_link "$LINENO"
20495 ac_cv_lib_selinux_is_selinux_enabled=yes
20497 ac_cv_lib_selinux_is_selinux_enabled=no
20499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20500 conftest$ac_exeext conftest.$ac_ext
20501 LIBS=$ac_check_lib_save_LIBS
20503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20504 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20505 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
20507 printf "%s\n" "#define HAVE_LIBSELINUX 1" >>confdefs.h
20509 LIBS="-lselinux $LIBS"
20513 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
20516 elif test $pkg_failed = untried; then
20517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20518 printf "%s\n" "no" >&6; }
20520 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
20521 if test "x$enable_selinux" = "xyes"; then
20522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
20523 printf %s "checking for sepol_bool_set in -lsepol... " >&6; }
20524 if test ${ac_cv_lib_sepol_sepol_bool_set+y}
20526 printf %s "(cached) " >&6
20528 ac_check_lib_save_LIBS=$LIBS
20529 LIBS="-lsepol $LIBS"
20530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531 /* end confdefs.h. */
20533 /* Override any GCC internal prototype to avoid an error.
20534 Use char because int might match the return type of a GCC
20535 builtin and then its argument prototype would still apply. */
20536 char sepol_bool_set ();
20540 return sepol_bool_set ();
20545 if ac_fn_c_try_link "$LINENO"
20547 ac_cv_lib_sepol_sepol_bool_set=yes
20549 ac_cv_lib_sepol_sepol_bool_set=no
20551 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20552 conftest$ac_exeext conftest.$ac_ext
20553 LIBS=$ac_check_lib_save_LIBS
20555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
20556 printf "%s\n" "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
20557 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes
20559 printf "%s\n" "#define HAVE_LIBSEPOL 1" >>confdefs.h
20561 LIBS="-lsepol $LIBS"
20565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
20566 printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
20567 if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
20569 printf %s "(cached) " >&6
20571 ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-lselinux $LIBS"
20573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20574 /* end confdefs.h. */
20576 /* Override any GCC internal prototype to avoid an error.
20577 Use char because int might match the return type of a GCC
20578 builtin and then its argument prototype would still apply. */
20579 char is_selinux_enabled ();
20583 return is_selinux_enabled ();
20588 if ac_fn_c_try_link "$LINENO"
20590 ac_cv_lib_selinux_is_selinux_enabled=yes
20592 ac_cv_lib_selinux_is_selinux_enabled=no
20594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20595 conftest$ac_exeext conftest.$ac_ext
20596 LIBS=$ac_check_lib_save_LIBS
20598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
20599 printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
20600 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
20602 printf "%s\n" "#define HAVE_LIBSELINUX 1" >>confdefs.h
20604 LIBS="-lselinux $LIBS"
20608 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
20612 DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
20613 DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20615 printf "%s\n" "yes" >&6; }
20618 LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
20619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
20620 printf %s "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
20621 if test ${ac_cv_lib_devmapper_dm_task_set_uuid+y}
20623 printf %s "(cached) " >&6
20625 ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-ldevmapper $LIBS"
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h. */
20630 /* Override any GCC internal prototype to avoid an error.
20631 Use char because int might match the return type of a GCC
20632 builtin and then its argument prototype would still apply. */
20633 char dm_task_set_uuid ();
20637 return dm_task_set_uuid ();
20642 if ac_fn_c_try_link "$LINENO"
20644 ac_cv_lib_devmapper_dm_task_set_uuid=yes
20646 ac_cv_lib_devmapper_dm_task_set_uuid=no
20648 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20649 conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
20653 printf "%s\n" "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
20654 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes
20656 printf "%s\n" "#define HAVE_LIBDEVMAPPER 1" >>confdefs.h
20658 LIBS="-ldevmapper $LIBS"
20661 as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
20665 LIBS="$saved_LIBS -static"
20666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
20667 printf %s "checking for uuid_generate in -luuid... " >&6; }
20668 if test ${ac_cv_lib_uuid_uuid_generate+y}
20670 printf %s "(cached) " >&6
20672 ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-luuid $LIBS"
20674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h. */
20677 /* Override any GCC internal prototype to avoid an error.
20678 Use char because int might match the return type of a GCC
20679 builtin and then its argument prototype would still apply. */
20680 char uuid_generate ();
20684 return uuid_generate ();
20689 if ac_fn_c_try_link "$LINENO"
20691 ac_cv_lib_uuid_uuid_generate=yes
20693 ac_cv_lib_uuid_uuid_generate=no
20695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20696 conftest$ac_exeext conftest.$ac_ext
20697 LIBS=$ac_check_lib_save_LIBS
20699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
20700 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
20701 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
20703 printf "%s\n" "#define HAVE_LIBUUID 1" >>confdefs.h
20705 LIBS="-luuid $LIBS"
20708 as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
20713 PKG_CONFIG=$saved_PKG_CONFIG
20716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd tmpfiles config directory" >&5
20717 printf %s "checking for systemd tmpfiles config directory... " >&6; }
20719 if test -n "$systemd_tmpfilesdir"; then
20720 pkg_cv_systemd_tmpfilesdir="$systemd_tmpfilesdir"
20721 elif test -n "$PKG_CONFIG"; then
20722 if test -n "$PKG_CONFIG" && \
20723 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
20724 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
20726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20727 test $ac_status = 0; }; then
20728 pkg_cv_systemd_tmpfilesdir=`$PKG_CONFIG --variable="tmpfilesdir" "systemd" 2>/dev/null`
20729 test "x$?" != "x0" && pkg_failed=yes
20736 systemd_tmpfilesdir=$pkg_cv_systemd_tmpfilesdir
20738 if test "x$systemd_tmpfilesdir" = x""
20740 systemd_tmpfilesdir=no
20742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $systemd_tmpfilesdir" >&5
20743 printf "%s\n" "$systemd_tmpfilesdir" >&6; }
20764 # Check whether --enable-dev-random was given.
20765 if test ${enable_dev_random+y}
20767 enableval=$enable_dev_random;
20770 if test "x$enable_dev_random" = "xyes"; then
20771 default_rng=/dev/random
20773 default_rng=/dev/urandom
20776 printf "%s\n" "#define DEFAULT_RNG \"$default_rng\"" >>confdefs.h
20788 # Check whether --with-plain-hash was given.
20789 if test ${with_plain_hash+y}
20791 withval=$with_plain_hash;
20792 printf "%s\n" "#define DEFAULT_PLAIN_HASH \"$withval\"" >>confdefs.h
20797 printf "%s\n" "#define DEFAULT_PLAIN_HASH \"ripemd160\"" >>confdefs.h
20804 # Check whether --with-plain-cipher was given.
20805 if test ${with_plain_cipher+y}
20807 withval=$with_plain_cipher;
20808 printf "%s\n" "#define DEFAULT_PLAIN_CIPHER \"$withval\"" >>confdefs.h
20813 printf "%s\n" "#define DEFAULT_PLAIN_CIPHER \"aes\"" >>confdefs.h
20820 # Check whether --with-plain-mode was given.
20821 if test ${with_plain_mode+y}
20823 withval=$with_plain_mode;
20824 printf "%s\n" "#define DEFAULT_PLAIN_MODE \"$withval\"" >>confdefs.h
20829 printf "%s\n" "#define DEFAULT_PLAIN_MODE \"cbc-essiv:sha256\"" >>confdefs.h
20836 # Check whether --with-plain-keybits was given.
20837 if test ${with_plain_keybits+y}
20839 withval=$with_plain_keybits;
20840 printf "%s\n" "#define DEFAULT_PLAIN_KEYBITS $withval" >>confdefs.h
20845 printf "%s\n" "#define DEFAULT_PLAIN_KEYBITS 256" >>confdefs.h
20853 # Check whether --with-luks1-hash was given.
20854 if test ${with_luks1_hash+y}
20856 withval=$with_luks1_hash;
20857 printf "%s\n" "#define DEFAULT_LUKS1_HASH \"$withval\"" >>confdefs.h
20862 printf "%s\n" "#define DEFAULT_LUKS1_HASH \"sha256\"" >>confdefs.h
20869 # Check whether --with-luks1-cipher was given.
20870 if test ${with_luks1_cipher+y}
20872 withval=$with_luks1_cipher;
20873 printf "%s\n" "#define DEFAULT_LUKS1_CIPHER \"$withval\"" >>confdefs.h
20878 printf "%s\n" "#define DEFAULT_LUKS1_CIPHER \"aes\"" >>confdefs.h
20885 # Check whether --with-luks1-mode was given.
20886 if test ${with_luks1_mode+y}
20888 withval=$with_luks1_mode;
20889 printf "%s\n" "#define DEFAULT_LUKS1_MODE \"$withval\"" >>confdefs.h
20894 printf "%s\n" "#define DEFAULT_LUKS1_MODE \"xts-plain64\"" >>confdefs.h
20901 # Check whether --with-luks1-keybits was given.
20902 if test ${with_luks1_keybits+y}
20904 withval=$with_luks1_keybits;
20905 printf "%s\n" "#define DEFAULT_LUKS1_KEYBITS $withval" >>confdefs.h
20910 printf "%s\n" "#define DEFAULT_LUKS1_KEYBITS 256" >>confdefs.h
20917 # Check whether --enable-luks_adjust_xts_keysize was given.
20918 if test ${enable_luks_adjust_xts_keysize+y}
20920 enableval=$enable_luks_adjust_xts_keysize;
20922 enable_luks_adjust_xts_keysize=yes
20925 if test "x$enable_luks_adjust_xts_keysize" = "xyes"; then
20927 printf "%s\n" "#define ENABLE_LUKS_ADJUST_XTS_KEYSIZE 1" >>confdefs.h
20932 # Check whether --with-luks2-pbkdf was given.
20933 if test ${with_luks2_pbkdf+y}
20935 withval=$with_luks2_pbkdf;
20936 printf "%s\n" "#define DEFAULT_LUKS2_PBKDF \"$withval\"" >>confdefs.h
20941 printf "%s\n" "#define DEFAULT_LUKS2_PBKDF \"argon2i\"" >>confdefs.h
20948 # Check whether --with-luks1-iter-time was given.
20949 if test ${with_luks1_iter_time+y}
20951 withval=$with_luks1_iter_time;
20952 printf "%s\n" "#define DEFAULT_LUKS1_ITER_TIME $withval" >>confdefs.h
20957 printf "%s\n" "#define DEFAULT_LUKS1_ITER_TIME 2000" >>confdefs.h
20964 # Check whether --with-luks2-iter-time was given.
20965 if test ${with_luks2_iter_time+y}
20967 withval=$with_luks2_iter_time;
20968 printf "%s\n" "#define DEFAULT_LUKS2_ITER_TIME $withval" >>confdefs.h
20973 printf "%s\n" "#define DEFAULT_LUKS2_ITER_TIME 2000" >>confdefs.h
20980 # Check whether --with-luks2-memory-kb was given.
20981 if test ${with_luks2_memory_kb+y}
20983 withval=$with_luks2_memory_kb;
20984 printf "%s\n" "#define DEFAULT_LUKS2_MEMORY_KB $withval" >>confdefs.h
20989 printf "%s\n" "#define DEFAULT_LUKS2_MEMORY_KB 1048576" >>confdefs.h
20996 # Check whether --with-luks2-parallel-threads was given.
20997 if test ${with_luks2_parallel_threads+y}
20999 withval=$with_luks2_parallel_threads;
21000 printf "%s\n" "#define DEFAULT_LUKS2_PARALLEL_THREADS $withval" >>confdefs.h
21005 printf "%s\n" "#define DEFAULT_LUKS2_PARALLEL_THREADS 4" >>confdefs.h
21013 # Check whether --with-luks2-keyslot-cipher was given.
21014 if test ${with_luks2_keyslot_cipher+y}
21016 withval=$with_luks2_keyslot_cipher;
21017 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_CIPHER \"$withval\"" >>confdefs.h
21022 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_CIPHER \"aes-xts-plain64\"" >>confdefs.h
21029 # Check whether --with-luks2-keyslot-keybits was given.
21030 if test ${with_luks2_keyslot_keybits+y}
21032 withval=$with_luks2_keyslot_keybits;
21033 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_KEYBITS $withval" >>confdefs.h
21038 printf "%s\n" "#define DEFAULT_LUKS2_KEYSLOT_KEYBITS 512" >>confdefs.h
21046 # Check whether --with-loopaes-cipher was given.
21047 if test ${with_loopaes_cipher+y}
21049 withval=$with_loopaes_cipher;
21050 printf "%s\n" "#define DEFAULT_LOOPAES_CIPHER \"$withval\"" >>confdefs.h
21055 printf "%s\n" "#define DEFAULT_LOOPAES_CIPHER \"aes\"" >>confdefs.h
21062 # Check whether --with-loopaes-keybits was given.
21063 if test ${with_loopaes_keybits+y}
21065 withval=$with_loopaes_keybits;
21066 printf "%s\n" "#define DEFAULT_LOOPAES_KEYBITS $withval" >>confdefs.h
21071 printf "%s\n" "#define DEFAULT_LOOPAES_KEYBITS 256" >>confdefs.h
21079 # Check whether --with-keyfile-size-maxkb was given.
21080 if test ${with_keyfile_size_maxkb+y}
21082 withval=$with_keyfile_size_maxkb;
21083 printf "%s\n" "#define DEFAULT_KEYFILE_SIZE_MAXKB $withval" >>confdefs.h
21088 printf "%s\n" "#define DEFAULT_KEYFILE_SIZE_MAXKB 8192" >>confdefs.h
21095 # Check whether --with-integrity-keyfile-size-maxkb was given.
21096 if test ${with_integrity_keyfile_size_maxkb+y}
21098 withval=$with_integrity_keyfile_size_maxkb;
21099 printf "%s\n" "#define DEFAULT_INTEGRITY_KEYFILE_SIZE_MAXKB $withval" >>confdefs.h
21104 printf "%s\n" "#define DEFAULT_INTEGRITY_KEYFILE_SIZE_MAXKB 4" >>confdefs.h
21111 # Check whether --with-passphrase-size-max was given.
21112 if test ${with_passphrase_size_max+y}
21114 withval=$with_passphrase_size_max;
21115 printf "%s\n" "#define DEFAULT_PASSPHRASE_SIZE_MAX $withval" >>confdefs.h
21120 printf "%s\n" "#define DEFAULT_PASSPHRASE_SIZE_MAX 512" >>confdefs.h
21128 # Check whether --with-verity-hash was given.
21129 if test ${with_verity_hash+y}
21131 withval=$with_verity_hash;
21132 printf "%s\n" "#define DEFAULT_VERITY_HASH \"$withval\"" >>confdefs.h
21137 printf "%s\n" "#define DEFAULT_VERITY_HASH \"sha256\"" >>confdefs.h
21144 # Check whether --with-verity-data-block was given.
21145 if test ${with_verity_data_block+y}
21147 withval=$with_verity_data_block;
21148 printf "%s\n" "#define DEFAULT_VERITY_DATA_BLOCK $withval" >>confdefs.h
21153 printf "%s\n" "#define DEFAULT_VERITY_DATA_BLOCK 4096" >>confdefs.h
21160 # Check whether --with-verity-hash-block was given.
21161 if test ${with_verity_hash_block+y}
21163 withval=$with_verity_hash_block;
21164 printf "%s\n" "#define DEFAULT_VERITY_HASH_BLOCK $withval" >>confdefs.h
21169 printf "%s\n" "#define DEFAULT_VERITY_HASH_BLOCK 4096" >>confdefs.h
21176 # Check whether --with-verity-salt-size was given.
21177 if test ${with_verity_salt_size+y}
21179 withval=$with_verity_salt_size;
21180 printf "%s\n" "#define DEFAULT_VERITY_SALT_SIZE $withval" >>confdefs.h
21185 printf "%s\n" "#define DEFAULT_VERITY_SALT_SIZE 32" >>confdefs.h
21192 # Check whether --with-verity-fec-roots was given.
21193 if test ${with_verity_fec_roots+y}
21195 withval=$with_verity_fec_roots;
21196 printf "%s\n" "#define DEFAULT_VERITY_FEC_ROOTS $withval" >>confdefs.h
21201 printf "%s\n" "#define DEFAULT_VERITY_FEC_ROOTS 2" >>confdefs.h
21209 # Check whether --with-tmpfilesdir was given.
21210 if test ${with_tmpfilesdir+y}
21212 withval=$with_tmpfilesdir;
21213 printf "%s\n" "#define DEFAULT_TMPFILESDIR \"$withval\"" >>confdefs.h
21218 printf "%s\n" "#define DEFAULT_TMPFILESDIR \"\"" >>confdefs.h
21224 test -z "$with_tmpfilesdir" && with_tmpfilesdir=$systemd_tmpfilesdir
21225 test "x$with_tmpfilesdir" = "xno" || {
21227 case "${with_tmpfilesdir}" in
21229 *) as_fn_error $? "with-tmpfilesdir argument must be an absolute path." "$LINENO" 5;;
21232 DEFAULT_TMPFILESDIR=$with_tmpfilesdir
21235 if test -n "$DEFAULT_TMPFILESDIR"; then
21236 CRYPTSETUP_TMPFILE_TRUE=
21237 CRYPTSETUP_TMPFILE_FALSE='#'
21239 CRYPTSETUP_TMPFILE_TRUE='#'
21240 CRYPTSETUP_TMPFILE_FALSE=
21245 # Check whether --with-luks2-lock-path was given.
21246 if test ${with_luks2_lock_path+y}
21248 withval=$with_luks2_lock_path;
21249 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_PATH \"$withval\"" >>confdefs.h
21254 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_PATH \"/run/cryptsetup\"" >>confdefs.h
21260 test -z "$with_luks2_lock_path" && with_luks2_lock_path=/run/cryptsetup
21262 case "${with_luks2_lock_path}" in
21264 *) as_fn_error $? "with-luks2-lock-path argument must be an absolute path." "$LINENO" 5;;
21267 DEFAULT_LUKS2_LOCK_PATH=$with_luks2_lock_path
21271 # Check whether --with-luks2-lock-dir-perms was given.
21272 if test ${with_luks2_lock_dir_perms+y}
21274 withval=$with_luks2_lock_dir_perms;
21275 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_DIR_PERMS $withval" >>confdefs.h
21280 printf "%s\n" "#define DEFAULT_LUKS2_LOCK_DIR_PERMS 0700" >>confdefs.h
21286 test -z "$with_luks2_lock_dir_perms" && with_luks2_lock_dir_perms=0700
21287 DEFAULT_LUKS2_LOCK_DIR_PERMS=$with_luks2_lock_dir_perms
21291 # Check whether --with-default_luks_format was given.
21292 if test ${with_default_luks_format+y}
21294 withval=$with_default_luks_format;
21296 with_default_luks_format=LUKS2
21300 case $with_default_luks_format in
21301 LUKS1) default_luks=CRYPT_LUKS1 ;;
21302 LUKS2) default_luks=CRYPT_LUKS2 ;;
21303 *) as_fn_error $? "Unknown default LUKS format. Use LUKS1 or LUKS2 only." "$LINENO" 5 ;;
21306 printf "%s\n" "#define DEFAULT_LUKS_FORMAT $default_luks" >>confdefs.h
21310 ac_config_files="$ac_config_files Makefile lib/libcryptsetup.pc po/Makefile.in scripts/cryptsetup.conf tests/Makefile"
21312 cat >confcache <<\_ACEOF
21313 # This file is a shell script that caches the results of configure
21314 # tests run on this system so they can be shared between configure
21315 # scripts and configure runs, see configure's option --config-cache.
21316 # It is not useful on other systems. If it contains results you don't
21317 # want to keep, you may remove or edit it.
21319 # config.status only pays attention to the cache file if you give it
21320 # the --recheck option to rerun configure.
21322 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21323 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21324 # following values.
21328 # The following way of writing the cache mishandles newlines in values,
21329 # but we know of no workaround that is simple, portable, and efficient.
21330 # So, we kill variables containing newlines.
21331 # Ultrix sh set writes to stderr and can't be redirected directly,
21332 # and sets the high bit in the cache file unless we assign to the vars.
21334 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21335 eval ac_val=\$$ac_var
21339 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21340 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21343 _ | IFS | as_nl) ;; #(
21344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21345 *) { eval $ac_var=; unset $ac_var;} ;;
21351 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21352 *${as_nl}ac_space=\ *)
21353 # `set' does not quote correctly, so add quotes: double-quote
21354 # substitution turns \\\\ into \\, and sed turns \\ into \.
21357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21360 # `set' quotes correctly as required by POSIX, so do not add quotes.
21361 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21370 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21372 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21374 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21375 if test -w "$cache_file"; then
21376 if test "x$cache_file" != "x/dev/null"; then
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21378 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21379 if test ! -f "$cache_file" || test -h "$cache_file"; then
21380 cat confcache >"$cache_file"
21382 case $cache_file in #(
21384 mv -f confcache "$cache_file"$$ &&
21385 mv -f "$cache_file"$$ "$cache_file" ;; #(
21387 mv -f confcache "$cache_file" ;;
21392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21393 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21398 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21399 # Let make expand exec_prefix.
21400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21402 DEFS=-DHAVE_CONFIG_H
21407 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21408 # 1. Remove the extension, and $U if already installed.
21409 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21410 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21411 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21412 # will be set to the directory where LIBOBJS objects are built.
21413 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21414 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21416 LIBOBJS=$ac_libobjs
21418 LTLIBOBJS=$ac_ltlibobjs
21421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21422 printf %s "checking that generated files are newer than configure... " >&6; }
21423 if test -n "$am_sleep_pid"; then
21424 # Hide warnings about reused PIDs.
21425 wait $am_sleep_pid 2>/dev/null
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21428 printf "%s\n" "done" >&6; }
21429 if test -n "$EXEEXT"; then
21431 am__EXEEXT_FALSE='#'
21433 am__EXEEXT_TRUE='#'
21437 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21438 as_fn_error $? "conditional \"AMDEP\" was never defined.
21439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21441 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21442 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21445 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21446 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21449 if test -z "${KERNEL_KEYRING_TRUE}" && test -z "${KERNEL_KEYRING_FALSE}"; then
21450 as_fn_error $? "conditional \"KERNEL_KEYRING\" was never defined.
21451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21454 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
21455 as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
21456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21458 if test -z "${CRYPTSETUP_TRUE}" && test -z "${CRYPTSETUP_FALSE}"; then
21459 as_fn_error $? "conditional \"CRYPTSETUP\" was never defined.
21460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21462 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
21463 as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
21464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21466 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
21467 as_fn_error $? "conditional \"REENCRYPT\" was never defined.
21468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21470 if test -z "${INTEGRITYSETUP_TRUE}" && test -z "${INTEGRITYSETUP_FALSE}"; then
21471 as_fn_error $? "conditional \"INTEGRITYSETUP\" was never defined.
21472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21474 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
21475 as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
21476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21478 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
21479 as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
21480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21482 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
21483 as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
21484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21486 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
21487 as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
21488 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21490 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
21491 as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
21492 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21494 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
21495 as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
21496 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21498 if test -z "${CRYPTO_INTERNAL_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_ARGON2_FALSE}"; then
21499 as_fn_error $? "conditional \"CRYPTO_INTERNAL_ARGON2\" was never defined.
21500 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21502 if test -z "${CRYPTO_INTERNAL_SSE_ARGON2_TRUE}" && test -z "${CRYPTO_INTERNAL_SSE_ARGON2_FALSE}"; then
21503 as_fn_error $? "conditional \"CRYPTO_INTERNAL_SSE_ARGON2\" was never defined.
21504 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21506 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
21507 as_fn_error $? "conditional \"HAVE_BLKID\" was never defined.
21508 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21510 if test -z "${HAVE_BLKID_WIPE_TRUE}" && test -z "${HAVE_BLKID_WIPE_FALSE}"; then
21511 as_fn_error $? "conditional \"HAVE_BLKID_WIPE\" was never defined.
21512 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21514 if test -z "${HAVE_BLKID_STEP_BACK_TRUE}" && test -z "${HAVE_BLKID_STEP_BACK_FALSE}"; then
21515 as_fn_error $? "conditional \"HAVE_BLKID_STEP_BACK\" was never defined.
21516 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21518 if test -z "${CRYPTSETUP_TMPFILE_TRUE}" && test -z "${CRYPTSETUP_TMPFILE_FALSE}"; then
21519 as_fn_error $? "conditional \"CRYPTSETUP_TMPFILE\" was never defined.
21520 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21523 : "${CONFIG_STATUS=./config.status}"
21525 ac_clean_files_save=$ac_clean_files
21526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21528 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21530 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21532 # Generated by $as_me.
21533 # Run this file to recreate the current configuration.
21534 # Compiler output produced by configure, useful for debugging
21535 # configure, is in config.log if it exists.
21538 ac_cs_recheck=false
21541 SHELL=\${CONFIG_SHELL-$SHELL}
21544 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21545 ## -------------------- ##
21546 ## M4sh Initialization. ##
21547 ## -------------------- ##
21549 # Be more Bourne compatible
21550 DUALCASE=1; export DUALCASE # for MKS sh
21552 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21557 # is contrary to our usage. Disable this feature.
21558 alias -g '${1+"$@"}'='"$@"'
21559 setopt NO_GLOB_SUBST
21561 case `(set -o) 2>/dev/null` in #(
21571 # Reset variables that may have inherited troublesome values from
21574 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21575 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21576 # side effect of setting IFS to empty, thus disabling word splitting.)
21577 # Quoting is to prevent editors from complaining about space-tab.
21587 # Ensure predictable behavior from utilities with locale-dependent output.
21593 # We cannot yet rely on "unset" to work, but we need these variables
21594 # to be unset--not just set to an empty or harmless value--now, to
21595 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21596 # also avoids known problems related to "unset" and subshell syntax
21597 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21598 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21599 do eval test \${$as_var+y} \
21600 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21603 # Ensure that fds 0, 1, and 2 are open.
21604 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21605 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21606 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21608 # The user is always right.
21609 if ${PATH_SEPARATOR+false} :; then
21611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21618 # Find who we are. Look in the path if we contain no directory separator.
21621 *[\\/]* ) as_myself=$0 ;;
21622 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623 for as_dir in $PATH
21626 case $as_dir in #(((
21629 *) as_dir=$as_dir/ ;;
21631 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21637 # We did not find ourselves, most probably we were run as `sh COMMAND'
21638 # in which case we are not to be found in the path.
21639 if test "x$as_myself" = x; then
21642 if test ! -f "$as_myself"; then
21643 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21649 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21650 # ----------------------------------------
21651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21653 # script with STATUS, using 1 if that was 0.
21656 as_status=$1; test $as_status -eq 0 && as_status=1
21658 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21661 printf "%s\n" "$as_me: error: $2" >&2
21662 as_fn_exit $as_status
21667 # as_fn_set_status STATUS
21668 # -----------------------
21669 # Set $? to STATUS, without forking.
21670 as_fn_set_status ()
21673 } # as_fn_set_status
21675 # as_fn_exit STATUS
21676 # -----------------
21677 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21681 as_fn_set_status $1
21687 # Portably unset VAR.
21690 { eval $1=; unset $1;}
21692 as_unset=as_fn_unset
21694 # as_fn_append VAR VALUE
21695 # ----------------------
21696 # Append the text in VALUE to the end of the definition contained in VAR. Take
21697 # advantage of any shell optimizations that allow amortized linear growth over
21698 # repeated appends, instead of the typical quadratic growth present in naive
21700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21702 eval 'as_fn_append ()
21713 # as_fn_arith ARG...
21714 # ------------------
21715 # Perform arithmetic evaluation on the ARGs, and store the result in the
21716 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21717 # must be portable across $(()) and expr.
21718 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21720 eval 'as_fn_arith ()
21727 as_val=`expr "$@" || test $? -eq 1`
21732 if expr a : '\(a\)' >/dev/null 2>&1 &&
21733 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21739 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21740 as_basename=basename
21745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21751 as_me=`$as_basename -- "$0" ||
21752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21753 X"$0" : 'X\(//\)$' \| \
21754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21755 printf "%s\n" X/"$0" |
21756 sed '/^.*\/\([^/][^/]*\)\/*$/{
21770 # Avoid depending upon Character Ranges.
21771 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21774 as_cr_digits='0123456789'
21775 as_cr_alnum=$as_cr_Letters$as_cr_digits
21778 # Determine whether it's possible to make 'echo' print without a newline.
21779 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21780 # for compatibility with existing Makefiles.
21781 ECHO_C= ECHO_N= ECHO_T=
21782 case `echo -n x` in #(((((
21784 case `echo 'xy\c'` in
21785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21787 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21794 # For backward compatibility with old third-party macros, we provide
21795 # the shell variables $as_echo and $as_echo_n. New code should use
21796 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21797 as_echo='printf %s\n'
21798 as_echo_n='printf %s'
21800 rm -f conf$$ conf$$.exe conf$$.file
21801 if test -d conf$$.dir; then
21802 rm -f conf$$.dir/conf$$.file
21805 mkdir conf$$.dir 2>/dev/null
21807 if (echo >conf$$.file) 2>/dev/null; then
21808 if ln -s conf$$.file conf$$ 2>/dev/null; then
21810 # ... but there are two gotchas:
21811 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21812 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21813 # In both cases, we have to default to `cp -pR'.
21814 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21816 elif ln conf$$.file conf$$ 2>/dev/null; then
21824 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21825 rmdir conf$$.dir 2>/dev/null
21830 # Create "$as_dir" as a directory, including parents if necessary.
21835 -*) as_dir=./$as_dir;;
21837 test -d "$as_dir" || eval $as_mkdir_p || {
21841 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21842 *) as_qdir=$as_dir;;
21844 as_dirs="'$as_qdir' $as_dirs"
21845 as_dir=`$as_dirname -- "$as_dir" ||
21846 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21847 X"$as_dir" : 'X\(//\)[^/]' \| \
21848 X"$as_dir" : 'X\(//\)$' \| \
21849 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21850 printf "%s\n" X"$as_dir" |
21851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21855 /^X\(\/\/\)[^/].*/{
21868 test -d "$as_dir" && break
21870 test -z "$as_dirs" || eval "mkdir $as_dirs"
21871 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21875 if mkdir -p . 2>/dev/null; then
21876 as_mkdir_p='mkdir -p "$as_dir"'
21878 test -d ./-p && rmdir ./-p
21883 # as_fn_executable_p FILE
21884 # -----------------------
21885 # Test if FILE is an executable regular file.
21886 as_fn_executable_p ()
21888 test -f "$1" && test -x "$1"
21889 } # as_fn_executable_p
21890 as_test_x='test -x'
21891 as_executable_p=as_fn_executable_p
21893 # Sed expression to map a string onto a valid CPP name.
21894 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21896 # Sed expression to map a string onto a valid variable name.
21897 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21901 ## ----------------------------------- ##
21902 ## Main body of $CONFIG_STATUS script. ##
21903 ## ----------------------------------- ##
21905 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21908 # Save the log message, to keep $0 and so on meaningful, and to
21909 # report actual input values of CONFIG_FILES etc. instead of their
21910 # values after options handling.
21912 This file was extended by cryptsetup $as_me 2.3.7, which was
21913 generated by GNU Autoconf 2.71. Invocation command line was
21915 CONFIG_FILES = $CONFIG_FILES
21916 CONFIG_HEADERS = $CONFIG_HEADERS
21917 CONFIG_LINKS = $CONFIG_LINKS
21918 CONFIG_COMMANDS = $CONFIG_COMMANDS
21921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21926 case $ac_config_files in *"
21927 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21930 case $ac_config_headers in *"
21931 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21936 # Files that config.status was made for.
21937 config_files="$ac_config_files"
21938 config_headers="$ac_config_headers"
21939 config_commands="$ac_config_commands"
21943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21945 \`$as_me' instantiates files and other configuration actions
21946 from templates according to the current configuration. Unless the files
21947 and actions are specified as TAGs, all are instantiated by default.
21949 Usage: $0 [OPTION]... [TAG]...
21951 -h, --help print this help, then exit
21952 -V, --version print version number and configuration settings, then exit
21953 --config print configuration, then exit
21954 -q, --quiet, --silent
21955 do not print progress messages
21956 -d, --debug don't remove temporary files
21957 --recheck update $as_me by reconfiguring in the same conditions
21958 --file=FILE[:TEMPLATE]
21959 instantiate the configuration file FILE
21960 --header=FILE[:TEMPLATE]
21961 instantiate the configuration header FILE
21963 Configuration files:
21966 Configuration headers:
21969 Configuration commands:
21972 Report bugs to the package provider."
21975 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21976 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21978 ac_cs_config='$ac_cs_config_escaped'
21980 cryptsetup config.status 2.3.7
21981 configured by $0, generated by GNU Autoconf 2.71,
21982 with options \\"\$ac_cs_config\\"
21984 Copyright (C) 2021 Free Software Foundation, Inc.
21985 This config.status script is free software; the Free Software Foundation
21986 gives unlimited permission to copy, distribute and modify it."
21993 test -n "\$AWK" || AWK=awk
21996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21997 # The default lists apply if the user does not specify any file.
22003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22004 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22008 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22020 # Handling of the options.
22021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22023 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22024 printf "%s\n" "$ac_cs_version"; exit ;;
22025 --config | --confi | --conf | --con | --co | --c )
22026 printf "%s\n" "$ac_cs_config"; exit ;;
22027 --debug | --debu | --deb | --de | --d | -d )
22029 --file | --fil | --fi | --f )
22032 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22033 '') as_fn_error $? "missing file argument" ;;
22035 as_fn_append CONFIG_FILES " '$ac_optarg'"
22036 ac_need_defaults=false;;
22037 --header | --heade | --head | --hea )
22040 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22042 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22043 ac_need_defaults=false;;
22045 # Conflict between --help and --header
22046 as_fn_error $? "ambiguous option: \`$1'
22047 Try \`$0 --help' for more information.";;
22048 --help | --hel | -h )
22049 printf "%s\n" "$ac_cs_usage"; exit ;;
22050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22051 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22054 # This is an error.
22055 -*) as_fn_error $? "unrecognized option: \`$1'
22056 Try \`$0 --help' for more information." ;;
22058 *) as_fn_append ac_config_targets " $1"
22059 ac_need_defaults=false ;;
22065 ac_configure_extra_args=
22067 if $ac_cs_silent; then
22069 ac_configure_extra_args="$ac_configure_extra_args --silent"
22073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22074 if \$ac_cs_recheck; then
22075 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22077 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22078 CONFIG_SHELL='$SHELL'
22079 export CONFIG_SHELL
22084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22088 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22089 ## Running $as_me. ##
22091 printf "%s\n" "$ac_log"
22095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22099 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22102 # The HP-UX ksh and POSIX shell print the target directory to stdout
22103 # if CDPATH is set.
22104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22106 sed_quote_subst='$sed_quote_subst'
22107 double_quote_subst='$double_quote_subst'
22108 delay_variable_subst='$delay_variable_subst'
22109 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22110 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22111 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22112 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22113 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22114 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22115 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22116 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22117 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22118 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22119 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22120 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22121 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22122 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22123 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22124 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22125 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22126 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22127 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22128 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22129 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22130 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22131 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22132 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22133 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22134 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22135 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22136 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22137 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22138 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22139 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22140 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22141 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22142 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22143 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22144 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22145 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22146 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22147 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22148 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22149 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22150 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22151 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22152 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22153 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22154 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22155 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22156 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22157 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22158 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22159 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22160 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22161 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22162 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22163 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22164 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22165 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22166 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22167 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"`'
22168 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22169 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22170 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22171 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22172 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22173 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22174 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22175 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22176 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22177 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22178 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22179 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22180 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22181 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22182 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22183 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22184 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22185 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22186 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22187 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22188 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22189 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22190 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22191 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22192 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22193 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22194 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22195 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22196 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22197 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22198 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22199 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22200 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22201 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22202 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22203 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22204 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22205 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22206 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22207 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22208 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22209 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22210 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22211 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22212 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22213 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22214 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22215 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22216 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22217 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22218 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22219 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22220 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22221 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22222 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22223 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22224 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22225 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22226 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22227 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22228 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22229 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22230 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22231 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22232 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22233 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22234 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22235 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22236 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22237 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22238 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22239 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22240 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22241 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22242 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22243 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22246 LTCFLAGS='$LTCFLAGS'
22247 compiler='$compiler_DEFAULT'
22249 # A function that is used when there is no print builtin or printf.
22250 func_fallback_echo ()
22252 eval 'cat <<_LTECHO_EOF
22257 # Quote evaled strings.
22272 deplibs_check_method \
22277 sharedlib_from_linklib_cmd \
22280 archiver_list_spec \
22286 lt_cv_sys_global_symbol_pipe \
22287 lt_cv_sys_global_symbol_to_cdecl \
22288 lt_cv_sys_global_symbol_to_import \
22289 lt_cv_sys_global_symbol_to_c_name_address \
22290 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22291 lt_cv_nm_interface \
22292 nm_file_list_spec \
22293 lt_cv_truncate_bin \
22294 lt_prog_compiler_no_builtin_flag \
22295 lt_prog_compiler_pic \
22296 lt_prog_compiler_wl \
22297 lt_prog_compiler_static \
22298 lt_cv_prog_compiler_c_o \
22307 export_dynamic_flag_spec \
22308 whole_archive_flag_spec \
22309 compiler_needs_object \
22311 allow_undefined_flag \
22312 no_undefined_flag \
22313 hardcode_libdir_flag_spec \
22314 hardcode_libdir_separator \
22318 variables_saved_for_relink \
22320 library_names_spec \
22322 install_override_mode \
22326 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22327 *[\\\\\\\`\\"\\\$]*)
22328 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22331 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22336 # Double-quote double-evaled strings.
22337 for var in reload_cmds \
22338 old_postinstall_cmds \
22339 old_postuninstall_cmds \
22341 extract_expsyms_cmds \
22342 old_archive_from_new_cmds \
22343 old_archive_from_expsyms_cmds \
22345 archive_expsym_cmds \
22347 module_expsym_cmds \
22348 export_symbols_cmds \
22352 postuninstall_cmds \
22354 sys_lib_search_path_spec \
22355 configure_time_dlsearch_path \
22356 configure_time_lt_sys_library_path; do
22357 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22358 *[\\\\\\\`\\"\\\$]*)
22359 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22362 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22367 ac_aux_dir='$ac_aux_dir'
22369 # See if we are running on zsh, and set the options that allow our
22370 # commands through without removal of \ escapes INIT.
22371 if test -n "\${ZSH_VERSION+set}"; then
22372 setopt NO_GLOB_SUBST
22383 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
22384 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
22385 # from automake < 1.5.
22386 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
22387 # Capture the value of LINGUAS because we need it to compute CATALOGS.
22388 LINGUAS="${LINGUAS-%UNSET%}"
22393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22395 # Handling of arguments.
22396 for ac_config_target in $ac_config_targets
22398 case $ac_config_target in
22399 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
22400 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22401 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22402 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
22403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22404 "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
22405 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22406 "scripts/cryptsetup.conf") CONFIG_FILES="$CONFIG_FILES scripts/cryptsetup.conf" ;;
22407 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22409 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22414 # If the user did not use the arguments to specify the items to instantiate,
22415 # then the envvar interface is used. Set only those that are not.
22416 # We use the long form for the default assignment because of an extremely
22417 # bizarre bug on SunOS 4.1.3.
22418 if $ac_need_defaults; then
22419 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22420 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22421 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22424 # Have a temporary directory for convenience. Make it in the build tree
22425 # simply because there is no reason against having it here, and in addition,
22426 # creating and moving files from /tmp can sometimes cause problems.
22427 # Hook for its removal unless debugging.
22428 # Note that there is a small window in which the directory will not be cleaned:
22429 # after its creation but before its name has been assigned to `$tmp'.
22433 trap 'exit_status=$?
22434 : "${ac_tmp:=$tmp}"
22435 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22437 trap 'as_fn_exit 1' 1 2 13 15
22439 # Create a (secure) tmp directory for tmp files.
22442 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22446 tmp=./conf$$-$RANDOM
22447 (umask 077 && mkdir "$tmp")
22448 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22451 # Set up the scripts for CONFIG_FILES section.
22452 # No need to generate them if there are no CONFIG_FILES.
22453 # This happens for instance with `./config.status config.h'.
22454 if test -n "$CONFIG_FILES"; then
22457 ac_cr=`echo X | tr X '\015'`
22458 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22459 # But we know of no other shell where ac_cr would be empty at this
22460 # point, so we can use a bashism as a fallback.
22461 if test "x$ac_cr" = x; then
22462 eval ac_cr=\$\'\\r\'
22464 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22465 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22468 ac_cs_awk_cr=$ac_cr
22471 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22476 echo "cat >conf$$subs.awk <<_ACEOF" &&
22477 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22479 } >conf$$subs.sh ||
22480 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22481 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22483 for ac_last_try in false false false false false :; do
22484 . ./conf$$subs.sh ||
22485 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22487 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22488 if test $ac_delim_n = $ac_delim_num; then
22490 elif $ac_last_try; then
22491 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22493 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22496 rm -f conf$$subs.sh
22498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22499 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22503 s/^/S["/; s/!.*/"]=/
22513 s/\(.\{148\}\)..*/\1/
22515 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22527 s/\(.\{148\}\)..*/\1/
22529 s/["\\]/\\&/g; s/^/"/; s/$/"/
22533 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22538 ' <conf$$subs.awk | sed '
22543 ' >>$CONFIG_STATUS || ac_write_fail=1
22544 rm -f conf$$subs.awk
22545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22547 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22548 for (key in S) S_is_set[key] = 1
22554 nfields = split(line, field, "@")
22556 len = length(field[1])
22557 for (i = 2; i < nfields; i++) {
22559 keylen = length(key)
22560 if (S_is_set[key]) {
22562 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22563 len += length(value) + length(field[++i])
22574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22575 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22576 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22579 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22580 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22583 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22584 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22585 # trailing colons and then remove the whole line if VPATH becomes empty
22586 # (actually we leave an empty line to preserve line numbers).
22587 if test "x$srcdir" = x.; then
22588 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22607 fi # test -n "$CONFIG_FILES"
22609 # Set up the scripts for CONFIG_HEADERS section.
22610 # No need to generate them if there are no CONFIG_HEADERS.
22611 # This happens for instance with `./config.status Makefile'.
22612 if test -n "$CONFIG_HEADERS"; then
22613 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22617 # Transform confdefs.h into an awk script `defines.awk', embedded as
22618 # here-document in config.status, that substitutes the proper values into
22619 # config.h.in to produce config.h.
22621 # Create a delimiter string that does not exist in confdefs.h, to ease
22622 # handling of long lines.
22624 for ac_last_try in false false :; do
22625 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22626 if test -z "$ac_tt"; then
22628 elif $ac_last_try; then
22629 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22635 # For the awk script, D is an array of macro values keyed by name,
22636 # likewise P contains macro parameters if any. Preserve backslash
22637 # newline sequences.
22639 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22641 s/.\{148\}/&'"$ac_delim"'/g
22644 s/^[ ]*#[ ]*define[ ][ ]*/ /
22651 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22653 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22658 D["\1"]=" \3\\\\\\n"\\/p
22660 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22665 s/.\{148\}/&'"$ac_delim"'/g
22670 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22673 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22675 ' <confdefs.h | sed '
22676 s/'"$ac_delim"'/"\\\
22677 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22680 for (key in D) D_is_set[key] = 1
22683 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22685 split(line, arg, " ")
22686 if (arg[1] == "#") {
22690 defundef = substr(arg[1], 2)
22693 split(mac1, mac2, "(") #)
22695 prefix = substr(line, 1, index(line, defundef) - 1)
22696 if (D_is_set[macro]) {
22697 # Preserve the white space surrounding the "#".
22698 print prefix "define", macro P[macro] D[macro]
22701 # Replace #undef with comments. This is necessary, for example,
22702 # in the case of _POSIX_SOURCE, which is predefined and required
22703 # on some systems where configure will not decide to define it.
22704 if (defundef == "undef") {
22705 print "/*", prefix defundef, macro, "*/"
22713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22714 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22715 fi # test -n "$CONFIG_HEADERS"
22718 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22723 :[FHLC]) ac_mode=$ac_tag; continue;;
22725 case $ac_mode$ac_tag in
22727 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22728 :[FH]-) ac_tag=-:-;;
22729 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22746 -) ac_f="$ac_tmp/stdin";;
22747 *) # Look for the file first in the build tree, then in the source tree
22748 # (if the path is not absolute). The absolute path cannot be DOS-style,
22749 # because $ac_f cannot contain `:'.
22753 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22755 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22757 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22758 as_fn_append ac_file_inputs " '$ac_f'"
22761 # Let's still pretend it is `configure' which instantiates (i.e., don't
22762 # use $as_me), people would be surprised to read:
22763 # /* config.h. Generated by config.status. */
22764 configure_input='Generated from '`
22765 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22767 if test x"$ac_file" != x-; then
22768 configure_input="$ac_file. $configure_input"
22769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22770 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22772 # Neutralize special characters interpreted by sed in replacement strings.
22773 case $configure_input in #(
22774 *\&* | *\|* | *\\* )
22775 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22776 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22777 *) ac_sed_conf_input=$configure_input;;
22781 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22782 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22787 ac_dir=`$as_dirname -- "$ac_file" ||
22788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22789 X"$ac_file" : 'X\(//\)[^/]' \| \
22790 X"$ac_file" : 'X\(//\)$' \| \
22791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22792 printf "%s\n" X"$ac_file" |
22793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22797 /^X\(\/\/\)[^/].*/{
22810 as_dir="$ac_dir"; as_fn_mkdir_p
22814 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22816 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22817 # A ".." for each directory in $ac_dir_suffix.
22818 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22819 case $ac_top_builddir_sub in
22820 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22821 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22824 ac_abs_top_builddir=$ac_pwd
22825 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22826 # for backward compatibility:
22827 ac_top_builddir=$ac_top_build_prefix
22830 .) # We are building in place.
22832 ac_top_srcdir=$ac_top_builddir_sub
22833 ac_abs_top_srcdir=$ac_pwd ;;
22834 [\\/]* | ?:[\\/]* ) # Absolute name.
22835 ac_srcdir=$srcdir$ac_dir_suffix;
22836 ac_top_srcdir=$srcdir
22837 ac_abs_top_srcdir=$srcdir ;;
22838 *) # Relative name.
22839 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22840 ac_top_srcdir=$ac_top_build_prefix$srcdir
22841 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22843 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22854 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22856 ac_MKDIR_P=$MKDIR_P
22858 [\\/$]* | ?:[\\/]* ) ;;
22859 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22864 # If the template does not know about datarootdir, expand it.
22865 # FIXME: This hack should be removed a few years after 2.60.
22866 ac_datarootdir_hack=; ac_datarootdir_seen=
22877 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22878 *datarootdir*) ac_datarootdir_seen=yes;;
22879 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22881 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22884 ac_datarootdir_hack='
22885 s&@datadir@&$datadir&g
22886 s&@docdir@&$docdir&g
22887 s&@infodir@&$infodir&g
22888 s&@localedir@&$localedir&g
22889 s&@mandir@&$mandir&g
22890 s&\\\${datarootdir}&$datarootdir&g' ;;
22894 # Neutralize VPATH when `$srcdir' = `.'.
22895 # Shell code in configure.ac might set extrasub.
22896 # FIXME: do we really want to maintain this feature?
22897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22898 ac_sed_extra="$ac_vpsub
22901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22903 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22904 s|@configure_input@|$ac_sed_conf_input|;t t
22905 s&@top_builddir@&$ac_top_builddir_sub&;t t
22906 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22907 s&@srcdir@&$ac_srcdir&;t t
22908 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22909 s&@top_srcdir@&$ac_top_srcdir&;t t
22910 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22911 s&@builddir@&$ac_builddir&;t t
22912 s&@abs_builddir@&$ac_abs_builddir&;t t
22913 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22914 s&@INSTALL@&$ac_INSTALL&;t t
22915 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22916 $ac_datarootdir_hack
22918 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22919 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22921 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22922 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22923 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22924 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22926 which seems to be undefined. Please make sure it is defined" >&5
22927 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22928 which seems to be undefined. Please make sure it is defined" >&2;}
22930 rm -f "$ac_tmp/stdin"
22932 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22933 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22935 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22941 if test x"$ac_file" != x-; then
22943 printf "%s\n" "/* $configure_input */" >&1 \
22944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22945 } >"$ac_tmp/config.h" \
22946 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22947 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22949 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22952 mv "$ac_tmp/config.h" "$ac_file" \
22953 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22956 printf "%s\n" "/* $configure_input */" >&1 \
22957 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22958 || as_fn_error $? "could not create -" "$LINENO" 5
22960 # Compute "$ac_file"'s index in $config_headers.
22963 for _am_header in $config_headers :; do
22964 case $_am_header in
22965 $_am_arg | $_am_arg:* )
22968 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22971 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22972 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22973 X"$_am_arg" : 'X\(//\)[^/]' \| \
22974 X"$_am_arg" : 'X\(//\)$' \| \
22975 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22976 printf "%s\n" X"$_am_arg" |
22977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22981 /^X\(\/\/\)[^/].*/{
22993 s/.*/./; q'`/stamp-h$_am_stamp_count
22996 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22997 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23002 case $ac_file$ac_mode in
23003 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23004 # Older Autoconf quotes --file arguments for eval, but not when files
23005 # are listed without --file. Let's play safe and only enable the eval
23006 # if we detect the quoting.
23007 # TODO: see whether this extra hack can be removed once we start
23008 # requiring Autoconf 2.70 or later.
23009 case $CONFIG_FILES in #(
23011 eval set x "$CONFIG_FILES" ;; #(
23013 set x $CONFIG_FILES ;; #(
23018 # Used to flag and report bootstrapping failures.
23022 # Strip MF so we end up with the name of the file.
23023 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23024 # Check whether this is an Automake generated Makefile which includes
23025 # dependency-tracking related rules and includes.
23026 # Grep'ing the whole file directly is not great: AIX grep has a line
23027 # limit of 2048, but all sed's we know have understand at least 4000.
23028 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23030 am_dirpart=`$as_dirname -- "$am_mf" ||
23031 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23032 X"$am_mf" : 'X\(//\)[^/]' \| \
23033 X"$am_mf" : 'X\(//\)$' \| \
23034 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23035 printf "%s\n" X"$am_mf" |
23036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23040 /^X\(\/\/\)[^/].*/{
23053 am_filepart=`$as_basename -- "$am_mf" ||
23054 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23055 X"$am_mf" : 'X\(//\)$' \| \
23056 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23057 printf "%s\n" X/"$am_mf" |
23058 sed '/^.*\/\([^/][^/]*\)\/*$/{
23071 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23072 && sed -e '/# am--include-marker/d' "$am_filepart" \
23073 | $MAKE -f - am--depfiles" >&5
23074 (cd "$am_dirpart" \
23075 && sed -e '/# am--include-marker/d' "$am_filepart" \
23076 | $MAKE -f - am--depfiles) >&5 2>&5
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } || am_rc=$?
23081 if test $am_rc -ne 0; then
23082 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23083 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23084 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23085 for automatic dependency tracking. If GNU make was not used, consider
23086 re-running the configure script with MAKE=\"gmake\" (or whatever is
23087 necessary). You can also try re-running configure with the
23088 '--disable-dependency-tracking' option to at least be able to build
23089 the package (albeit without support for automatic dependency tracking).
23090 See \`config.log' for more details" "$LINENO" 5; }
23092 { am_dirpart=; unset am_dirpart;}
23093 { am_filepart=; unset am_filepart;}
23094 { am_mf=; unset am_mf;}
23095 { am_rc=; unset am_rc;}
23096 rm -f conftest-deps.mk
23101 # See if we are running on zsh, and set the options that allow our
23102 # commands through without removal of \ escapes.
23103 if test -n "${ZSH_VERSION+set}"; then
23104 setopt NO_GLOB_SUBST
23108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23111 cat <<_LT_EOF >> "$cfgfile"
23113 # Generated automatically by $as_me ($PACKAGE) $VERSION
23114 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23116 # Provide generalized library-building support services.
23117 # Written by Gordon Matzigkeit, 1996
23119 # Copyright (C) 2014 Free Software Foundation, Inc.
23120 # This is free software; see the source for copying conditions. There is NO
23121 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23123 # GNU Libtool is free software; you can redistribute it and/or modify
23124 # it under the terms of the GNU General Public License as published by
23125 # the Free Software Foundation; either version 2 of of the License, or
23126 # (at your option) any later version.
23128 # As a special exception to the GNU General Public License, if you
23129 # distribute this file as part of a program or library that is built
23130 # using GNU Libtool, you may include this file under the same
23131 # distribution terms that you use for the rest of that program.
23133 # GNU Libtool is distributed in the hope that it will be useful, but
23134 # WITHOUT ANY WARRANTY; without even the implied warranty of
23135 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23136 # GNU General Public License for more details.
23138 # You should have received a copy of the GNU General Public License
23139 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23142 # The names of the tagged configurations supported by this script.
23145 # Configured defaults for sys_lib_dlsearch_path munging.
23146 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23148 # ### BEGIN LIBTOOL CONFIG
23150 # Whether or not to build static libraries.
23151 build_old_libs=$enable_static
23153 # Which release of libtool.m4 was used?
23154 macro_version=$macro_version
23155 macro_revision=$macro_revision
23157 # Whether or not to build shared libraries.
23158 build_libtool_libs=$enable_shared
23160 # What type of objects to build.
23163 # Whether or not to optimize for fast installation.
23164 fast_install=$enable_fast_install
23166 # Shared archive member basename,for filename based shared library versioning on AIX.
23167 shared_archive_member_spec=$shared_archive_member_spec
23169 # Shell to use when invoking shell scripts.
23172 # An echo program that protects backslashes.
23175 # The PATH separator for the build system.
23176 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23179 host_alias=$host_alias
23183 # The build system.
23184 build_alias=$build_alias
23188 # A sed program that does not truncate output.
23191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23192 Xsed="\$SED -e 1s/^X//"
23194 # A grep program that handles long lines.
23200 # A literal string matcher.
23203 # A BSD- or MS-compatible name lister.
23206 # Whether we need soft or hard links.
23209 # What is the maximum length of a command?
23210 max_cmd_len=$max_cmd_len
23212 # Object file suffix (normally "o").
23215 # Executable file suffix (normally "").
23218 # whether the shell understands "unset".
23221 # turn spaces into newlines.
23224 # turn newlines into spaces.
23227 # convert \$build file names to \$host format.
23228 to_host_file_cmd=$lt_cv_to_host_file_cmd
23230 # convert \$build files to toolchain format.
23231 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23233 # An object symbol dumper.
23234 OBJDUMP=$lt_OBJDUMP
23236 # Method to check whether dependent libraries are shared objects.
23237 deplibs_check_method=$lt_deplibs_check_method
23239 # Command to use when deplibs_check_method = "file_magic".
23240 file_magic_cmd=$lt_file_magic_cmd
23242 # How to find potential files when deplibs_check_method = "file_magic".
23243 file_magic_glob=$lt_file_magic_glob
23245 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23246 want_nocaseglob=$lt_want_nocaseglob
23248 # DLL creation program.
23249 DLLTOOL=$lt_DLLTOOL
23251 # Command to associate shared and link libraries.
23252 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23257 # Flags to create an archive.
23258 AR_FLAGS=$lt_AR_FLAGS
23260 # How to feed a file listing to the archiver.
23261 archiver_list_spec=$lt_archiver_list_spec
23263 # A symbol stripping program.
23266 # Commands used to install an old-style archive.
23268 old_postinstall_cmds=$lt_old_postinstall_cmds
23269 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23271 # Whether to use a lock for old archive extraction.
23272 lock_old_archive_extraction=$lock_old_archive_extraction
23277 # LTCC compiler flags.
23278 LTCFLAGS=$lt_CFLAGS
23280 # Take the output of nm and produce a listing of raw symbols and C names.
23281 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23283 # Transform the output of nm in a proper C declaration.
23284 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23286 # Transform the output of nm into a list of symbols to manually relocate.
23287 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23289 # Transform the output of nm in a C name address pair.
23290 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23292 # Transform the output of nm in a C name address pair when lib prefix is needed.
23293 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23295 # The name lister interface.
23296 nm_interface=$lt_lt_cv_nm_interface
23298 # Specify filename containing input files for \$NM.
23299 nm_file_list_spec=$lt_nm_file_list_spec
23301 # The root where to search for dependent libraries,and where our libraries should be installed.
23302 lt_sysroot=$lt_sysroot
23304 # Command to truncate a binary pipe.
23305 lt_truncate_bin=$lt_lt_cv_truncate_bin
23307 # The name of the directory that contains temporary libtool files.
23310 # Used to examine libraries when file_magic_cmd begins with "file".
23311 MAGIC_CMD=$MAGIC_CMD
23313 # Must we lock files when doing compilation?
23314 need_locks=$lt_need_locks
23317 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23319 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23320 DSYMUTIL=$lt_DSYMUTIL
23322 # Tool to change global to local symbols on Mac OS X.
23325 # Tool to manipulate fat objects and archives on Mac OS X.
23328 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23331 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23332 OTOOL64=$lt_OTOOL64
23334 # Old archive suffix (normally "a").
23337 # Shared library suffix (normally ".so").
23338 shrext_cmds=$lt_shrext_cmds
23340 # The commands to extract the exported symbol list from a shared archive.
23341 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23343 # Variables whose values should be saved in libtool wrapper scripts and
23344 # restored at link time.
23345 variables_saved_for_relink=$lt_variables_saved_for_relink
23347 # Do we need the "lib" prefix for modules?
23348 need_lib_prefix=$need_lib_prefix
23350 # Do we need a version for libraries?
23351 need_version=$need_version
23353 # Library versioning type.
23354 version_type=$version_type
23356 # Shared library runtime path variable.
23357 runpath_var=$runpath_var
23359 # Shared library path variable.
23360 shlibpath_var=$shlibpath_var
23362 # Is shlibpath searched before the hard-coded library search path?
23363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23365 # Format of library name prefix.
23366 libname_spec=$lt_libname_spec
23368 # List of archive names. First name is the real one, the rest are links.
23369 # The last name is the one that the linker finds with -lNAME
23370 library_names_spec=$lt_library_names_spec
23372 # The coded name of the library, if different from the real name.
23373 soname_spec=$lt_soname_spec
23375 # Permission mode override for installation of shared libraries.
23376 install_override_mode=$lt_install_override_mode
23378 # Command to use after installation of a shared archive.
23379 postinstall_cmds=$lt_postinstall_cmds
23381 # Command to use after uninstallation of a shared archive.
23382 postuninstall_cmds=$lt_postuninstall_cmds
23384 # Commands used to finish a libtool library installation in a directory.
23385 finish_cmds=$lt_finish_cmds
23387 # As "finish_cmds", except a single script fragment to be evaled but
23389 finish_eval=$lt_finish_eval
23391 # Whether we should hardcode library paths into libraries.
23392 hardcode_into_libs=$hardcode_into_libs
23394 # Compile-time system search path for libraries.
23395 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23397 # Detected run-time system search path for libraries.
23398 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23400 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23401 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23403 # Whether dlopen is supported.
23404 dlopen_support=$enable_dlopen
23406 # Whether dlopen of programs is supported.
23407 dlopen_self=$enable_dlopen_self
23409 # Whether dlopen of statically linked programs is supported.
23410 dlopen_self_static=$enable_dlopen_self_static
23412 # Commands to strip libraries.
23413 old_striplib=$lt_old_striplib
23414 striplib=$lt_striplib
23417 # The linker used to build libraries.
23420 # How to create reloadable object files.
23421 reload_flag=$lt_reload_flag
23422 reload_cmds=$lt_reload_cmds
23424 # Commands used to build an old-style archive.
23425 old_archive_cmds=$lt_old_archive_cmds
23427 # A language specific compiler.
23430 # Is the compiler the GNU compiler?
23433 # Compiler flag to turn off builtin functions.
23434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23436 # Additional compiler flags for building library objects.
23437 pic_flag=$lt_lt_prog_compiler_pic
23439 # How to pass a linker flag through the compiler.
23440 wl=$lt_lt_prog_compiler_wl
23442 # Compiler flag to prevent dynamic linking.
23443 link_static_flag=$lt_lt_prog_compiler_static
23445 # Does compiler simultaneously support -c and -o options?
23446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23448 # Whether or not to add -lc for building shared libraries.
23449 build_libtool_need_lc=$archive_cmds_need_lc
23451 # Whether or not to disallow shared libs when runtime libs are static.
23452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23454 # Compiler flag to allow reflexive dlopens.
23455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23457 # Compiler flag to generate shared objects directly from archives.
23458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23460 # Whether the compiler copes with passing no objects directly.
23461 compiler_needs_object=$lt_compiler_needs_object
23463 # Create an old-style archive from a shared archive.
23464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23466 # Create a temporary old-style archive to link instead of a shared archive.
23467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23469 # Commands used to build a shared archive.
23470 archive_cmds=$lt_archive_cmds
23471 archive_expsym_cmds=$lt_archive_expsym_cmds
23473 # Commands used to build a loadable module if different from building
23474 # a shared archive.
23475 module_cmds=$lt_module_cmds
23476 module_expsym_cmds=$lt_module_expsym_cmds
23478 # Whether we are building with GNU ld or not.
23479 with_gnu_ld=$lt_with_gnu_ld
23481 # Flag that allows shared libraries with undefined symbols to be built.
23482 allow_undefined_flag=$lt_allow_undefined_flag
23484 # Flag that enforces no undefined symbols.
23485 no_undefined_flag=$lt_no_undefined_flag
23487 # Flag to hardcode \$libdir into a binary during linking.
23488 # This must work even if \$libdir does not exist
23489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23491 # Whether we need a single "-rpath" flag with a separated argument.
23492 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23494 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23495 # DIR into the resulting binary.
23496 hardcode_direct=$hardcode_direct
23498 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23499 # DIR into the resulting binary and the resulting library dependency is
23500 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23501 # library is relocated.
23502 hardcode_direct_absolute=$hardcode_direct_absolute
23504 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23505 # into the resulting binary.
23506 hardcode_minus_L=$hardcode_minus_L
23508 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23509 # into the resulting binary.
23510 hardcode_shlibpath_var=$hardcode_shlibpath_var
23512 # Set to "yes" if building a shared library automatically hardcodes DIR
23513 # into the library and all subsequent libraries and executables linked
23515 hardcode_automatic=$hardcode_automatic
23517 # Set to yes if linker adds runtime paths of dependent libraries
23518 # to runtime path list.
23519 inherit_rpath=$inherit_rpath
23521 # Whether libtool must link a program against all its dependency libraries.
23522 link_all_deplibs=$link_all_deplibs
23524 # Set to "yes" if exported symbols are required.
23525 always_export_symbols=$always_export_symbols
23527 # The commands to list exported symbols.
23528 export_symbols_cmds=$lt_export_symbols_cmds
23530 # Symbols that should not be listed in the preloaded symbols.
23531 exclude_expsyms=$lt_exclude_expsyms
23533 # Symbols that must always be exported.
23534 include_expsyms=$lt_include_expsyms
23536 # Commands necessary for linking programs (against libraries) with templates.
23537 prelink_cmds=$lt_prelink_cmds
23539 # Commands necessary for finishing linking programs.
23540 postlink_cmds=$lt_postlink_cmds
23542 # Specify filename containing input files.
23543 file_list_spec=$lt_file_list_spec
23545 # How to hardcode a shared library path into an executable.
23546 hardcode_action=$hardcode_action
23548 # ### END LIBTOOL CONFIG
23552 cat <<'_LT_EOF' >> "$cfgfile"
23554 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23556 # func_munge_path_list VARIABLE PATH
23557 # -----------------------------------
23558 # VARIABLE is name of variable containing _space_ separated list of
23559 # directories to be munged by the contents of PATH, which is string
23562 # string "DIR[ DIR]" will be prepended to VARIABLE
23564 # string "DIR[ DIR]" will be appended to VARIABLE
23565 # "DIRP[:DIRP]::[DIRA:]DIRA"
23566 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23567 # "DIRA[ DIRA]" will be appended to VARIABLE
23569 # VARIABLE will be replaced by "DIR[ DIR]"
23570 func_munge_path_list ()
23576 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23579 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23582 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23583 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23586 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23592 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23593 func_cc_basename ()
23595 for cc_temp in $*""; do
23597 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23598 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23603 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23607 # ### END FUNCTIONS SHARED WITH CONFIGURE
23613 cat <<\_LT_EOF >> "$cfgfile"
23614 # AIX sometimes has problems with the GCC collect2 program. For some
23615 # reason, if we set the COLLECT_NAMES environment variable, the problems
23616 # vanish in a puff of smoke.
23617 if test set != "${COLLECT_NAMES+set}"; then
23619 export COLLECT_NAMES
23627 ltmain=$ac_aux_dir/ltmain.sh
23630 # We use sed instead of cat because bash on DJGPP gets confused if
23631 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23632 # text mode, it properly converts lines to CR/LF. This bash problem
23633 # is reportedly fixed, but why not run on old versions too?
23634 sed '$q' "$ltmain" >> "$cfgfile" \
23635 || (rm -f "$cfgfile"; exit 1)
23637 mv -f "$cfgfile" "$ofile" ||
23638 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23642 "po-directories":C)
23643 for ac_file in $CONFIG_FILES; do
23644 # Support "outfile[:infile[:infile...]]"
23646 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23648 # PO directories have a Makefile.in generated from Makefile.in.in.
23649 case "$ac_file" in */Makefile.in)
23650 # Adjust a relative srcdir.
23651 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23652 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
23653 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23654 # In autoconf-2.13 it is called $ac_given_srcdir.
23655 # In autoconf-2.50 it is called $srcdir.
23656 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23657 case "$ac_given_srcdir" in
23658 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23659 /*) top_srcdir="$ac_given_srcdir" ;;
23660 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23662 # Treat a directory as a PO directory if and only if it has a
23663 # POTFILES.in file. This allows packages to have multiple PO
23664 # directories under different names or in different locations.
23665 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23666 rm -f "$ac_dir/POTFILES"
23667 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23668 gt_tab=`printf '\t'`
23669 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23670 POMAKEFILEDEPS="POTFILES.in"
23671 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23672 # on $ac_dir but don't depend on user-specified configuration
23674 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23675 # The LINGUAS file contains the set of available languages.
23676 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23677 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23679 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23680 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23681 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23682 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23684 # The set of available languages was given in configure.in.
23685 # Hide the ALL_LINGUAS assignment from automake < 1.5.
23686 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23689 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23690 # Compute UPDATEPOFILES
23691 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23692 # Compute DUMMYPOFILES
23693 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23695 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23696 case "$ac_given_srcdir" in
23698 *) srcdirpre='$(srcdir)/' ;;
23704 for lang in $ALL_LINGUAS; do
23705 POFILES="$POFILES $srcdirpre$lang.po"
23706 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23707 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23708 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23710 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23711 # environment variable.
23713 if test -n "$ALL_LINGUAS"; then
23714 for presentlang in $ALL_LINGUAS; do
23716 if test "%UNSET%" != "$LINGUAS"; then
23717 desiredlanguages="$LINGUAS"
23719 desiredlanguages="$ALL_LINGUAS"
23721 for desiredlang in $desiredlanguages; do
23722 # Use the presentlang catalog if desiredlang is
23723 # a. equal to presentlang, or
23724 # b. a variant of presentlang (because in this case,
23725 # presentlang can be used as a fallback for messages
23726 # which are not translated in the desiredlang catalog).
23727 case "$desiredlang" in
23728 "$presentlang"*) useit=yes;;
23731 if test $useit = yes; then
23732 INST_LINGUAS="$INST_LINGUAS $presentlang"
23737 if test -n "$INST_LINGUAS"; then
23738 for lang in $INST_LINGUAS; do
23739 CATALOGS="$CATALOGS $lang.gmo"
23742 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23743 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
23744 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23745 if test -f "$f"; then
23747 *.orig | *.bak | *~) ;;
23748 *) cat "$f" >> "$ac_dir/Makefile" ;;
23763 ac_clean_files=$ac_clean_files_save
23765 test $ac_write_fail = 0 ||
23766 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23769 # configure is writing to config.log, and then calls config.status.
23770 # config.status does its own redirection, appending to config.log.
23771 # Unfortunately, on DOS this fails, as config.log is still kept open
23772 # by configure, so config.status won't be able to write to it; its
23773 # output is simply discarded. So we exec the FD to /dev/null,
23774 # effectively closing config.log, so it can be properly (re)opened and
23775 # appended to by config.status. When coming back to configure, we
23776 # need to make the FD available again.
23777 if test "$no_create" != yes; then
23779 ac_config_status_args=
23780 test "$silent" = yes &&
23781 ac_config_status_args="$ac_config_status_args --quiet"
23783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23786 # would make configure fail if this is the last instruction.
23787 $ac_cs_success || as_fn_exit 1
23789 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23791 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}