2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cryptsetup 1.6.7.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
246 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir=./$as_dir;;
329 test -d "$as_dir" || eval $as_mkdir_p || {
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 as_val=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status=$1; test $as_status -eq 0 && as_status=1
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 elif ln conf$$.file conf$$ 2>/dev/null; then
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
551 test -d ./-p && rmdir ./-p
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix=/usr/local
580 ac_config_libobj_dir=.
587 # Identity of this package.
588 PACKAGE_NAME='cryptsetup'
589 PACKAGE_TARNAME='cryptsetup'
590 PACKAGE_VERSION='1.6.7'
591 PACKAGE_STRING='cryptsetup 1.6.7'
595 ac_unique_file="src/cryptsetup.c"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
610 # ifdef HAVE_STDLIB_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
633 ac_subst_vars='am__EXEEXT_FALSE
637 PYTHON_CRYPTSETUP_FALSE
638 PYTHON_CRYPTSETUP_TRUE
650 LIBCRYPTSETUP_VERSION_INFO
651 LIBCRYPTSETUP_VERSION
655 PWQUALITY_STATIC_LIBS
656 DEVMAPPER_STATIC_LIBS
657 DEVMAPPER_STATIC_CFLAGS
658 CRYPTO_INTERNAL_PBKDF2_FALSE
659 CRYPTO_INTERNAL_PBKDF2_TRUE
660 CRYPTO_BACKEND_NETTLE_FALSE
661 CRYPTO_BACKEND_NETTLE_TRUE
662 CRYPTO_BACKEND_KERNEL_FALSE
663 CRYPTO_BACKEND_KERNEL_TRUE
664 CRYPTO_BACKEND_NSS_FALSE
665 CRYPTO_BACKEND_NSS_TRUE
666 CRYPTO_BACKEND_OPENSSL_FALSE
667 CRYPTO_BACKEND_OPENSSL_TRUE
668 CRYPTO_BACKEND_GCRYPT_FALSE
669 CRYPTO_BACKEND_GCRYPT_TRUE
673 OPENSSL_STATIC_CFLAGS
764 INSTALL_STRIP_PROGRAM
810 program_transform_name
823 enable_option_checking
825 enable_dependency_tracking
840 enable_static_cryptsetup
842 enable_cryptsetup_reencrypt
848 with_libgcrypt_prefix
863 with_keyfile_size_maxkb
864 with_passphrase_size_max
866 with_verity_data_block
867 with_verity_hash_block
868 with_verity_salt_size
870 ac_precious_vars='build_alias
888 OPENSSL_STATIC_CFLAGS
892 DEVMAPPER_STATIC_CFLAGS
893 DEVMAPPER_STATIC_LIBS
897 # Initialize some variables set by options.
899 ac_init_version=false
900 ac_unrecognized_opts=
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 # Accept the important Cygnus configure options, so we can diagnose typos.
964 case $ac_dashdash$ac_option in
968 -bindir | --bindir | --bindi | --bind | --bin | --bi)
970 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 -build | --build | --buil | --bui | --bu)
974 ac_prev=build_alias ;;
975 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
976 build_alias=$ac_optarg ;;
978 -cache-file | --cache-file | --cache-fil | --cache-fi \
979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
980 ac_prev=cache_file ;;
981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
983 cache_file=$ac_optarg ;;
986 cache_file=config.cache ;;
988 -datadir | --datadir | --datadi | --datad)
990 -datadir=* | --datadir=* | --datadi=* | --datad=*)
991 datadir=$ac_optarg ;;
993 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
994 | --dataroo | --dataro | --datar)
995 ac_prev=datarootdir ;;
996 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
997 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
998 datarootdir=$ac_optarg ;;
1000 -disable-* | --disable-*)
1001 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1004 as_fn_error $? "invalid feature name: $ac_useropt"
1005 ac_useropt_orig=$ac_useropt
1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1007 case $ac_user_opts in
1009 "enable_$ac_useropt"
1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1012 ac_unrecognized_sep=', ';;
1014 eval enable_$ac_useropt=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 as_fn_error $? "invalid feature name: $ac_useropt"
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=\$ac_optarg ;;
1042 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1043 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1044 | --exec | --exe | --ex)
1045 ac_prev=exec_prefix ;;
1046 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1047 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1048 | --exec=* | --exe=* | --ex=*)
1049 exec_prefix=$ac_optarg ;;
1051 -gas | --gas | --ga | --g)
1052 # Obsolete; use --with-gas.
1055 -help | --help | --hel | --he | -h)
1056 ac_init_help=long ;;
1057 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1058 ac_init_help=recursive ;;
1059 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1060 ac_init_help=short ;;
1062 -host | --host | --hos | --ho)
1063 ac_prev=host_alias ;;
1064 -host=* | --host=* | --hos=* | --ho=*)
1065 host_alias=$ac_optarg ;;
1067 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071 htmldir=$ac_optarg ;;
1073 -includedir | --includedir | --includedi | --included | --include \
1074 | --includ | --inclu | --incl | --inc)
1075 ac_prev=includedir ;;
1076 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1077 | --includ=* | --inclu=* | --incl=* | --inc=*)
1078 includedir=$ac_optarg ;;
1080 -infodir | --infodir | --infodi | --infod | --info | --inf)
1082 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1083 infodir=$ac_optarg ;;
1085 -libdir | --libdir | --libdi | --libd)
1087 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1088 libdir=$ac_optarg ;;
1090 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1091 | --libexe | --libex | --libe)
1092 ac_prev=libexecdir ;;
1093 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1094 | --libexe=* | --libex=* | --libe=*)
1095 libexecdir=$ac_optarg ;;
1097 -localedir | --localedir | --localedi | --localed | --locale)
1098 ac_prev=localedir ;;
1099 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1100 localedir=$ac_optarg ;;
1102 -localstatedir | --localstatedir | --localstatedi | --localstated \
1103 | --localstate | --localstat | --localsta | --localst | --locals)
1104 ac_prev=localstatedir ;;
1105 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1106 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1107 localstatedir=$ac_optarg ;;
1109 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1112 mandir=$ac_optarg ;;
1114 -nfp | --nfp | --nf)
1115 # Obsolete; use --without-fp.
1118 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1119 | --no-cr | --no-c | -n)
1122 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1123 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1127 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1128 | --oldin | --oldi | --old | --ol | --o)
1129 ac_prev=oldincludedir ;;
1130 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1131 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1132 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1133 oldincludedir=$ac_optarg ;;
1135 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1138 prefix=$ac_optarg ;;
1140 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1141 | --program-pre | --program-pr | --program-p)
1142 ac_prev=program_prefix ;;
1143 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1144 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1145 program_prefix=$ac_optarg ;;
1147 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1148 | --program-suf | --program-su | --program-s)
1149 ac_prev=program_suffix ;;
1150 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1151 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1152 program_suffix=$ac_optarg ;;
1154 -program-transform-name | --program-transform-name \
1155 | --program-transform-nam | --program-transform-na \
1156 | --program-transform-n | --program-transform- \
1157 | --program-transform | --program-transfor \
1158 | --program-transfo | --program-transf \
1159 | --program-trans | --program-tran \
1160 | --progr-tra | --program-tr | --program-t)
1161 ac_prev=program_transform_name ;;
1162 -program-transform-name=* | --program-transform-name=* \
1163 | --program-transform-nam=* | --program-transform-na=* \
1164 | --program-transform-n=* | --program-transform-=* \
1165 | --program-transform=* | --program-transfor=* \
1166 | --program-transfo=* | --program-transf=* \
1167 | --program-trans=* | --program-tran=* \
1168 | --progr-tra=* | --program-tr=* | --program-t=*)
1169 program_transform_name=$ac_optarg ;;
1171 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1174 pdfdir=$ac_optarg ;;
1176 -psdir | --psdir | --psdi | --psd | --ps)
1178 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1182 | -silent | --silent | --silen | --sile | --sil)
1185 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189 sbindir=$ac_optarg ;;
1191 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1192 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1193 | --sharedst | --shareds | --shared | --share | --shar \
1195 ac_prev=sharedstatedir ;;
1196 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1197 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1198 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200 sharedstatedir=$ac_optarg ;;
1202 -site | --site | --sit)
1204 -site=* | --site=* | --sit=*)
1207 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1210 srcdir=$ac_optarg ;;
1212 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1213 | --syscon | --sysco | --sysc | --sys | --sy)
1214 ac_prev=sysconfdir ;;
1215 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1216 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1217 sysconfdir=$ac_optarg ;;
1219 -target | --target | --targe | --targ | --tar | --ta | --t)
1220 ac_prev=target_alias ;;
1221 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1222 target_alias=$ac_optarg ;;
1224 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 -version | --version | --versio | --versi | --vers | -V)
1228 ac_init_version=: ;;
1231 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1244 eval with_$ac_useropt=\$ac_optarg ;;
1246 -without-* | --without-*)
1247 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1250 as_fn_error $? "invalid package name: $ac_useropt"
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1260 eval with_$ac_useropt=no ;;
1263 # Obsolete; use --with-x.
1266 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1267 | --x-incl | --x-inc | --x-in | --x-i)
1268 ac_prev=x_includes ;;
1269 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1270 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1271 x_includes=$ac_optarg ;;
1273 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1274 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1275 ac_prev=x_libraries ;;
1276 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1277 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1278 x_libraries=$ac_optarg ;;
1280 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1285 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' | [0-9]* | *[!_$as_cr_alnum]* )
1289 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1291 eval $ac_envvar=\$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305 if test -n "$ac_prev"; then
1306 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $? "missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1313 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 # Check all directory arguments for consistency.
1319 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir
1324 eval ac_val=\$$ac_var
1325 # Remove trailing slashes.
1328 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\$ac_val;;
1331 # Be sure to have absolute directory names.
1333 [\\/$]* | ?:[\\/]* ) continue;;
1334 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1336 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1344 target=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x; then
1348 if test "x$build_alias" = x; then
1349 cross_compiling=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures cryptsetup 1.6.7 to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/cryptsetup]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1498 --build=BUILD configure for building on BUILD [guessed]
1499 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 if test -n "$ac_init_help"; then
1504 case $ac_init_help in
1505 short | recursive ) echo "Configuration of cryptsetup 1.6.7:";;
1510 --disable-option-checking ignore unrecognized --enable/--with options
1511 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1512 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1513 --enable-silent-rules less verbose build output (undo: "make V=1")
1514 --disable-silent-rules verbose build output (undo: "make V=0")
1515 --enable-dependency-tracking
1516 do not reject slow dependency extractors
1517 --disable-dependency-tracking
1518 speeds up one-time build
1519 --enable-static[=PKGS] build static libraries [default=no]
1520 --enable-shared[=PKGS] build shared libraries [default=yes]
1521 --enable-fast-install[=PKGS]
1522 optimize for fast installation [default=yes]
1523 --disable-libtool-lock avoid locking (might break parallel builds)
1524 --disable-largefile omit support for large files
1525 --disable-nls do not use Native Language Support
1526 --disable-rpath do not hardcode runtime library paths
1527 --enable-fips enable FIPS mode restrictions
1528 --enable-pwquality enable password quality checking
1529 --enable-static-cryptsetup
1530 enable build of static cryptsetup binary
1531 --disable-veritysetup disable veritysetup support
1532 --enable-cryptsetup-reencrypt
1533 enable cryptsetup-reencrypt tool
1534 --disable-selinux disable selinux support [default=auto]
1535 --disable-udev disable udev support
1536 --disable-kernel_crypto disable kernel userspace crypto (no benchmark and
1538 --enable-gcrypt-pbkdf2 force enable internal gcrypt PBKDF2
1539 --enable-dev-random use blocking /dev/random by default for key
1540 generator (otherwise use /dev/urandom)
1541 --enable-python enable Python bindings
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-sysroot=DIR Search for dependent libraries within DIR
1550 (or the compiler's sysroot if not specified).
1551 --with-gnu-ld assume the C compiler uses GNU ld default=no
1552 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1553 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1554 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1555 --without-libintl-prefix don't search for libintl in includedir and libdir
1556 --with-crypto_backend=BACKEND
1557 crypto backend (gcrypt/openssl/nss/kernel/nettle)
1559 --with-libgcrypt-prefix=PFX
1560 prefix where LIBGCRYPT is installed (optional)
1561 --with-python_version=VERSION
1562 required Python version [2.6]
1563 --with-plain-hash default password hashing function for plain mode
1565 --with-plain-cipher default cipher for plain mode [aes]
1566 --with-plain-mode default cipher mode for plain mode
1568 --with-plain-keybits default key length in bits for plain mode [256]
1569 --with-luks1-hash default hash function for LUKS1 header [sha1]
1570 --with-luks1-cipher default cipher for LUKS1 [aes]
1571 --with-luks1-mode default cipher mode for LUKS1 [xts-plain64]
1572 --with-luks1-keybits default key length in bits for LUKS1 [256]
1573 --with-luks1-iter-time default PBKDF2 iteration time for LUKS1 (in ms)
1575 --with-loopaes-cipher default cipher for loop-AES mode [aes]
1576 --with-loopaes-keybits default key length in bits for loop-AES mode [256]
1577 --with-keyfile-size-maxkb
1578 default maximum keyfile size (in KiB) [8192]
1579 --with-passphrase-size-max
1580 default maximum keyfile size (in characters) [512]
1581 --with-verity-hash default hash function for verity mode [sha256]
1582 --with-verity-data-block
1583 default data block size for verity mode [4096]
1584 --with-verity-hash-block
1585 default hash block size for verity mode [4096]
1586 --with-verity-salt-size default salt size for verity mode [32]
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1597 PKG_CONFIG path to pkg-config utility
1599 directories to add to pkg-config's search path
1601 path overriding pkg-config's built-in search path
1603 C compiler flags for PWQUALITY, overriding pkg-config
1605 linker flags for PWQUALITY, overriding pkg-config
1607 C compiler flags for DEVMAPPER, overriding pkg-config
1609 linker flags for DEVMAPPER, overriding pkg-config
1611 C compiler flags for OPENSSL, overriding pkg-config
1613 linker flags for OPENSSL, overriding pkg-config
1614 OPENSSL_STATIC_CFLAGS
1615 C compiler flags for OPENSSL_STATIC, overriding pkg-config
1617 linker flags for OPENSSL_STATIC, overriding pkg-config
1618 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1619 NSS_LIBS linker flags for NSS, overriding pkg-config
1620 DEVMAPPER_STATIC_CFLAGS
1621 C compiler flags for DEVMAPPER_STATIC, overriding pkg-config
1622 DEVMAPPER_STATIC_LIBS
1623 linker flags for DEVMAPPER_STATIC, overriding pkg-config
1624 PYTHON the Python interpreter
1626 Use these variables to override the choices made by `configure' or to help
1627 it to find libraries and programs with nonstandard names/locations.
1629 Report bugs to the package provider.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1659 .) # We are building in place.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1692 cryptsetup configure 1.6.7
1693 generated by GNU Autoconf 2.69
1695 Copyright (C) 2012 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.$ac_objext; then :
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_compile
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } > conftest.i && {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1786 ac_fn_c_check_header_mongrel ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1810 ac_header_compiler=no
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1826 ac_header_preproc=no
1828 rm -f conftest.err conftest.i conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1858 eval "$3=\$ac_header_compiler"
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_mongrel
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_link"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>&5
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886 { { case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_try") 2>&5
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; }; }; then :
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=$ac_status
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_compile
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest$ac_exeext
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_link
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2010 # include <limits.h>
2012 # include <assert.h>
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2039 if ac_fn_c_try_link "$LINENO"; then :
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } # ac_fn_c_check_func
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_type
2108 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2109 # ---------------------------------------------
2110 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2112 ac_fn_c_check_decl ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 as_decl_name=`echo $2|sed 's/ *(.*//'`
2116 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2118 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2119 if eval \${$3+:} false; then :
2120 $as_echo_n "(cached) " >&6
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2128 #ifndef $as_decl_name
2130 (void) $as_decl_use;
2132 (void) $as_decl_name;
2140 if ac_fn_c_try_compile "$LINENO"; then :
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152 } # ac_fn_c_check_decl
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by cryptsetup $as_me 1.6.7, which was
2158 generated by GNU Autoconf 2.69. Invocation command line was
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_must_keep_next=false
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2247 -* ) ac_must_keep_next=true ;;
2250 as_fn_append ac_configure_args " '$ac_arg'"
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2268 $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2272 # The following way of writing the cache mishandles newlines in values,
2274 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275 eval ac_val=\$$ac_var
2279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2283 _ | IFS | as_nl) ;; #(
2284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285 *) { eval $ac_var=; unset $ac_var;} ;;
2290 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291 *${as_nl}ac_space=\ *)
2293 "s/'\''/'\''\\\\'\'''\''/g;
2294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2297 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2308 for ac_var in $ac_subst_vars
2310 eval ac_val=\$$ac_var
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 $as_echo "$ac_var='\''$ac_val'\''"
2318 if test -n "$ac_subst_files"; then
2319 $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2323 for ac_var in $ac_subst_files
2325 eval ac_val=\$$ac_var
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 $as_echo "$ac_var='\''$ac_val'\''"
2334 if test -s confdefs.h; then
2335 $as_echo "## ----------- ##
2342 test "$ac_signal" != 0 &&
2343 $as_echo "$as_me: caught signal $ac_signal"
2344 $as_echo "$as_me: exit $exit_status"
2346 rm -f core *.core core.conftest.* &&
2347 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2350 for ac_signal in 1 2 13 15; do
2351 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2358 $as_echo "/* confdefs.h */" > confdefs.h
2360 # Predefined preprocessor variables.
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2391 if test -n "$CONFIG_SITE"; then
2392 # We do not want a PATH search for config.site.
2393 case $CONFIG_SITE in #((
2394 -*) ac_site_file1=./$CONFIG_SITE;;
2395 */*) ac_site_file1=$CONFIG_SITE;;
2396 *) ac_site_file1=./$CONFIG_SITE;;
2398 elif test "x$prefix" != xNONE; then
2399 ac_site_file1=$prefix/share/config.site
2400 ac_site_file2=$prefix/etc/config.site
2402 ac_site_file1=$ac_default_prefix/share/config.site
2403 ac_site_file2=$ac_default_prefix/etc/config.site
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2407 test "x$ac_site_file" = xNONE && continue
2408 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411 sed 's/^/| /' "$ac_site_file" >&5
2413 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5; }
2420 if test -r "$cache_file"; then
2421 # Some versions of bash will fail to source /dev/null (special files
2422 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2423 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2427 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428 *) . "./$cache_file";;
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 # Check that the precious variables saved in the cache have kept the same
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442 eval ac_new_set=\$ac_env_${ac_var}_set
2443 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444 eval ac_new_val=\$ac_env_${ac_var}_value
2445 case $ac_old_set,$ac_new_set in
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449 ac_cache_corrupted=: ;;
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453 ac_cache_corrupted=: ;;
2456 if test "x$ac_old_val" != "x$ac_new_val"; then
2457 # differences in whitespace do not lead to failure.
2458 ac_old_val_w=`echo x $ac_old_val`
2459 ac_new_val_w=`echo x $ac_new_val`
2460 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463 ac_cache_corrupted=:
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467 eval $ac_var=\$ac_old_val
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2470 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2475 # Pass precious variables to config.status.
2476 if test "$ac_new_set" = set; then
2478 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479 *) ac_arg=$ac_var=$ac_new_val ;;
2481 case " $ac_configure_args " in
2482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2483 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 if $ac_cache_corrupted; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2506 LIBCRYPTSETUP_VERSION=$(echo $PACKAGE_VERSION | cut -f1 -d-)
2507 LIBCRYPTSETUP_VERSION_INFO=11:0:7
2509 # Check whether --enable-silent-rules was given.
2510 if test "${enable_silent_rules+set}" = set; then :
2511 enableval=$enable_silent_rules;
2514 case $enable_silent_rules in # (((
2515 yes) AM_DEFAULT_VERBOSITY=0;;
2516 no) AM_DEFAULT_VERBOSITY=1;;
2517 *) AM_DEFAULT_VERBOSITY=0;;
2519 am_make=${MAKE-make}
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2521 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2522 if ${am_cv_make_support_nested_variables+:} false; then :
2523 $as_echo_n "(cached) " >&6
2525 if $as_echo 'TRUE=$(BAR$(V))
2531 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2532 am_cv_make_support_nested_variables=yes
2534 am_cv_make_support_nested_variables=no
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2538 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2539 if test $am_cv_make_support_nested_variables = yes; then
2541 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2543 AM_V=$AM_DEFAULT_VERBOSITY
2544 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2551 ac_config_headers="$ac_config_headers config.h:config.h.in"
2554 # We do not want to run test in parallel. Really.
2555 # http://lists.gnu.org/archive/html/automake/2013-01/msg00060.html
2557 # For old automake use this
2558 #AM_INIT_AUTOMAKE(dist-xz)
2559 am__api_version='1.14'
2562 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2563 if test -f "$ac_dir/install-sh"; then
2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2567 elif test -f "$ac_dir/install.sh"; then
2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2571 elif test -f "$ac_dir/shtool"; then
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2577 if test -z "$ac_aux_dir"; then
2578 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2581 # These three variables are undocumented and unsupported,
2582 # and are intended to be withdrawn in a future Autoconf release.
2583 # They can cause serious problems if a builder's source tree is in a directory
2584 # whose full name contains unusual characters.
2585 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2586 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2587 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2590 # Find a good install program. We prefer a C program (faster),
2591 # so one script is as good as another. But avoid the broken or
2592 # incompatible versions:
2593 # SysV /etc/install, /usr/sbin/install
2594 # SunOS /usr/etc/install
2595 # IRIX /sbin/install
2597 # AmigaOS /C/install, which installs bootblocks on floppy discs
2598 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2601 # OS/2's system install, which has a completely different semantic
2602 # ./install, which can be erroneously created by make from ./install.sh.
2603 # Reject install programs that cannot install multiple files.
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2606 if test -z "$INSTALL"; then
2607 if ${ac_cv_path_install+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 # Account for people who put trailing slashes in PATH elements.
2616 case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2628 if test $ac_prog = install &&
2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2630 # AIX install. It has an incompatible calling convention.
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2659 rm -rf conftest.one conftest.two conftest.dir
2662 if test "${ac_cv_path_install+set}" = set; then
2663 INSTALL=$ac_cv_path_install
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
2667 # break other packages using the cache if that directory is
2668 # removed, or if the value is a relative name.
2669 INSTALL=$ac_install_sh
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673 $as_echo "$INSTALL" >&6; }
2675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676 # It thinks the first close brace ends the variable substitution.
2677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2684 $as_echo_n "checking whether build environment is sane... " >&6; }
2685 # Reject unsafe characters in $srcdir or the absolute working directory
2686 # name. Accept space and tab only in the latter.
2690 *[\\\"\#\$\&\'\`$am_lf]*)
2691 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2694 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2695 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2698 # Do 'set' in a subshell so we don't clobber the current shell's
2699 # arguments. Must try -L first in case configure is actually a
2700 # symlink; some systems play weird games with the mod time of symlinks
2701 # (eg FreeBSD returns the mod time of the symlink's containing
2705 for am_try in 1 2; do
2706 echo "timestamp, slept: $am_has_slept" > conftest.file
2707 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2708 if test "$*" = "X"; then
2710 set X `ls -t "$srcdir/configure" conftest.file`
2712 if test "$*" != "X $srcdir/configure conftest.file" \
2713 && test "$*" != "X conftest.file $srcdir/configure"; then
2715 # If neither matched, then we have a broken ls. This can happen
2716 # if, for instance, CONFIG_SHELL is bash and it inherits a
2717 # broken ls alias from the environment. This has actually
2718 # happened. Such a system could not be considered "sane".
2719 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2720 alias in your environment" "$LINENO" 5
2722 if test "$2" = conftest.file || test $am_try -eq 2; then
2729 test "$2" = conftest.file
2735 as_fn_error $? "newly created file is older than distributed files!
2736 Check your system clock" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2739 $as_echo "yes" >&6; }
2740 # If we didn't sleep, we still need to ensure time stamps of config.status and
2741 # generated files are strictly newer.
2743 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2750 test "$program_prefix" != NONE &&
2751 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2752 # Use a double $ so make ignores it.
2753 test "$program_suffix" != NONE &&
2754 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2755 # Double any \ or $.
2756 # By default was `s,x,x', remove it if useless.
2757 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2758 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2760 # Expand $ac_aux_dir to an absolute path.
2761 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2763 if test x"${MISSING+set}" != xset; then
2766 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2768 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2771 # Use eval to expand $SHELL
2772 if eval "$MISSING --is-lightweight"; then
2773 am_missing_run="$MISSING "
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2777 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2780 if test x"${install_sh}" != xset; then
2783 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2785 install_sh="\${SHELL} $am_aux_dir/install-sh"
2789 # Installed binaries are usually stripped using 'strip' when the user
2790 # run "make install-strip". However 'strip' might not be the right
2791 # tool to use in cross-compilation environments, therefore Automake
2792 # will honor the 'STRIP' environment variable to overrule this program.
2793 if test "$cross_compiling" != no; then
2794 if test -n "$ac_tool_prefix"; then
2795 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2796 set dummy ${ac_tool_prefix}strip; ac_word=$2
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2798 $as_echo_n "checking for $ac_word... " >&6; }
2799 if ${ac_cv_prog_STRIP+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test -n "$STRIP"; then
2803 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 test -z "$as_dir" && as_dir=.
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2812 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2822 STRIP=$ac_cv_prog_STRIP
2823 if test -n "$STRIP"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2825 $as_echo "$STRIP" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2828 $as_echo "no" >&6; }
2833 if test -z "$ac_cv_prog_STRIP"; then
2835 # Extract the first word of "strip", so it can be a program name with args.
2836 set dummy strip; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2840 $as_echo_n "(cached) " >&6
2842 if test -n "$ac_ct_STRIP"; then
2843 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_ac_ct_STRIP="strip"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2863 if test -n "$ac_ct_STRIP"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2865 $as_echo "$ac_ct_STRIP" >&6; }
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2871 if test "x$ac_ct_STRIP" = x; then
2874 case $cross_compiling:$ac_tool_warned in
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2878 ac_tool_warned=yes ;;
2883 STRIP="$ac_cv_prog_STRIP"
2887 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2890 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2891 if test -z "$MKDIR_P"; then
2892 if ${ac_cv_path_mkdir+:} false; then :
2893 $as_echo_n "(cached) " >&6
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2899 test -z "$as_dir" && as_dir=.
2900 for ac_prog in mkdir gmkdir; do
2901 for ac_exec_ext in '' $ac_executable_extensions; do
2902 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2903 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2904 'mkdir (GNU coreutils) '* | \
2905 'mkdir (coreutils) '* | \
2906 'mkdir (fileutils) '4.1*)
2907 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2917 test -d ./--version && rmdir ./--version
2918 if test "${ac_cv_path_mkdir+set}" = set; then
2919 MKDIR_P="$ac_cv_path_mkdir -p"
2921 # As a last resort, use the slow shell script. Don't cache a
2922 # value for MKDIR_P within a source directory, because that will
2923 # break other packages using the cache if that directory is
2924 # removed, or if the value is a relative name.
2925 MKDIR_P="$ac_install_sh -d"
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2929 $as_echo "$MKDIR_P" >&6; }
2931 for ac_prog in gawk mawk nawk awk
2933 # Extract the first word of "$ac_prog", so it can be a program name with args.
2934 set dummy $ac_prog; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_AWK+:} false; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$AWK"; then
2941 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_AWK="$ac_prog"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$AWK"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2963 $as_echo "$AWK" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2970 test -n "$AWK" && break
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2977 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 cat >conftest.make <<\_ACEOF
2983 @echo '@@@%%%=$(MAKE)=@@@%%%'
2985 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2988 eval ac_cv_prog_make_${ac_make}_set=yes;;
2990 eval ac_cv_prog_make_${ac_make}_set=no;;
2994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2996 $as_echo "yes" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3001 SET_MAKE="MAKE=${MAKE-make}"
3004 rm -rf .tst 2>/dev/null
3005 mkdir .tst 2>/dev/null
3006 if test -d .tst; then
3011 rmdir .tst 2>/dev/null
3013 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3014 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3015 # is not polluted with repeated "-I."
3016 am__isrc=' -I$(srcdir)'
3017 # test to see if srcdir already configured
3018 if test -f $srcdir/config.status; then
3019 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3023 # test whether we have cygpath
3024 if test -z "$CYGPATH_W"; then
3025 if (cygpath --version) >/dev/null 2>/dev/null; then
3026 CYGPATH_W='cygpath -w'
3033 # Define the identity of the package.
3034 PACKAGE='cryptsetup'
3038 cat >>confdefs.h <<_ACEOF
3039 #define PACKAGE "$PACKAGE"
3043 cat >>confdefs.h <<_ACEOF
3044 #define VERSION "$VERSION"
3047 # Some tools Automake needs.
3049 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3052 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3055 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3058 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3061 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063 # For better backward compatibility. To be removed once Automake 1.9.x
3064 # dies out for good. For more background, see:
3065 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3066 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3067 mkdir_p='$(MKDIR_P)'
3069 # We need awk for the "check" target. The system "awk" is bad on
3071 # Always define AMTAR for backward compatibility. Yes, it's still used
3072 # in the wild :-( We should find a proper way to deprecate it ...
3076 # We'll loop over all known methods to create a tar archive until one works.
3077 _am_tools='gnutar pax cpio none'
3079 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3086 # POSIX will say in a future version that running "rm -f" with no argument
3087 # is OK; and we want to be able to make that assumption in our Makefile
3088 # recipes. So use an aggressive probe to check that the usage we want is
3089 # actually supported "in the wild" to an acceptable degree.
3090 # See automake bug#10828.
3091 # To make any issue more visible, cause the running configure to be aborted
3092 # by default if the 'rm' program in use doesn't match our expectations; the
3093 # user can still override this though.
3094 if rm -f && rm -fr && rm -rf; then : OK; else
3098 Your 'rm' program seems unable to run without file operands specified
3099 on the command line, even when the '-f' option is present. This is contrary
3100 to the behaviour of most rm programs out there, and not conforming with
3101 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3103 Please tell bug-automake@gnu.org about your system, including the value
3104 of your $PATH and any error possibly output before this message. This
3105 can help us improve future automake versions.
3108 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3109 echo 'Configuration will proceed anyway, since you have set the' >&2
3110 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3114 Aborting the configuration process, to ensure you take notice of the issue.
3116 You can download and install GNU coreutils to get an 'rm' implementation
3117 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3119 If you want to complete the configuration process using your problematic
3120 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3121 to "yes", and re-run configure.
3124 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3129 if test "x$prefix" = "xNONE"; then
3134 # Make sure we can run config.sub.
3135 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3136 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3139 $as_echo_n "checking build system type... " >&6; }
3140 if ${ac_cv_build+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 ac_build_alias=$build_alias
3144 test "x$ac_build_alias" = x &&
3145 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3146 test "x$ac_build_alias" = x &&
3147 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3148 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3149 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3153 $as_echo "$ac_cv_build" >&6; }
3154 case $ac_cv_build in
3156 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3159 ac_save_IFS=$IFS; IFS='-'
3165 # Remember, the first character of IFS is used to create $*,
3166 # except with old shells:
3169 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3173 $as_echo_n "checking host system type... " >&6; }
3174 if ${ac_cv_host+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 if test "x$host_alias" = x; then
3178 ac_cv_host=$ac_cv_build
3180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3181 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3186 $as_echo "$ac_cv_host" >&6; }
3189 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3192 ac_save_IFS=$IFS; IFS='-'
3198 # Remember, the first character of IFS is used to create $*,
3199 # except with old shells:
3202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3205 DEPDIR="${am__leading_dot}deps"
3207 ac_config_commands="$ac_config_commands depfiles"
3210 am_make=${MAKE-make}
3211 cat > confinc << 'END'
3213 @echo this is the am__doit target
3216 # If we don't find an include directive, just comment out the code.
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3222 # First try GNU make style include.
3223 echo "include confinc" > confmf
3224 # Ignore all kinds of additional output from 'make'.
3225 case `$am_make -s -f confmf 2> /dev/null` in #(
3226 *the\ am__doit\ target*)
3232 # Now try BSD make style include.
3233 if test "$am__include" = "#"; then
3234 echo '.include "confinc"' > confmf
3235 case `$am_make -s -f confmf 2> /dev/null` in #(
3236 *the\ am__doit\ target*)
3237 am__include=.include
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3246 $as_echo "$_am_result" >&6; }
3247 rm -f confinc confmf
3249 # Check whether --enable-dependency-tracking was given.
3250 if test "${enable_dependency_tracking+set}" = set; then :
3251 enableval=$enable_dependency_tracking;
3254 if test "x$enable_dependency_tracking" != xno; then
3255 am_depcomp="$ac_aux_dir/depcomp"
3259 if test "x$enable_dependency_tracking" != xno; then
3269 ac_cpp='$CPP $CPPFLAGS'
3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279 $as_echo_n "(cached) " >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3312 if test -z "$ac_cv_prog_CC"; then
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3319 $as_echo_n "(cached) " >&6
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_ac_ct_CC="gcc"
3332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3344 $as_echo "$ac_ct_CC" >&6; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3350 if test "x$ac_ct_CC" = x; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3365 if test -z "$CC"; then
3366 if test -n "$ac_tool_prefix"; then
3367 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3368 set dummy ${ac_tool_prefix}cc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_CC+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$CC"; then
3375 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384 ac_cv_prog_CC="${ac_tool_prefix}cc"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 if test -n "$CC"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3397 $as_echo "$CC" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3406 if test -z "$CC"; then
3407 # Extract the first word of "cc", so it can be a program name with args.
3408 set dummy cc; ac_word=$2
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3410 $as_echo_n "checking for $ac_word... " >&6; }
3411 if ${ac_cv_prog_CC+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 if test -n "$CC"; then
3415 ac_cv_prog_CC="$CC" # Let the user override the test.
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3426 ac_prog_rejected=yes
3430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test $ac_prog_rejected = yes; then
3438 # We found a bogon in the path, so make sure we never use it.
3439 set dummy $ac_cv_prog_CC
3441 if test $# != 0; then
3442 # We chose a different compiler from the bogus one.
3443 # However, it has the same basename, so the bogon will be chosen
3444 # first if we set CC to just the basename; use the full file name.
3446 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3452 if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454 $as_echo "$CC" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3462 if test -z "$CC"; then
3463 if test -n "$ac_tool_prefix"; then
3464 for ac_prog in cl.exe
3466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 if test -n "$CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3503 test -n "$CC" && break
3506 if test -z "$CC"; then
3508 for ac_prog in cl.exe
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3515 $as_echo_n "(cached) " >&6
3517 if test -n "$ac_ct_CC"; then
3518 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_prog_ac_ct_CC="$ac_prog"
3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3538 if test -n "$ac_ct_CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3540 $as_echo "$ac_ct_CC" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3547 test -n "$ac_ct_CC" && break
3550 if test "x$ac_ct_CC" = x; then
3553 case $cross_compiling:$ac_tool_warned in
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3566 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "no acceptable C compiler found in \$PATH
3569 See \`config.log' for more details" "$LINENO" 5; }
3571 # Provide some information about the compiler.
3572 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3575 for ac_option in --version -v -V -qversion; do
3576 { { ac_try="$ac_compiler $ac_option >&5"
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3582 $as_echo "$ac_try_echo"; } >&5
3583 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3585 if test -s conftest.err; then
3587 ... rest of stderr output deleted ...
3588 10q' conftest.err >conftest.er1
3589 cat conftest.er1 >&5
3591 rm -f conftest.er1 conftest.err
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 ac_clean_files_save=$ac_clean_files
3608 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3609 # Try to create an executable without -o first, disregard a.out.
3610 # It will help us diagnose broken compilers, and finding out an intuition
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3613 $as_echo_n "checking whether the C compiler works... " >&6; }
3614 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616 # The possible output files:
3617 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3620 for ac_file in $ac_files
3623 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3624 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3629 if { { ac_try="$ac_link_default"
3631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636 (eval "$ac_link_default") 2>&5
3638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639 test $ac_status = 0; }; then :
3640 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3641 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3642 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3643 # so that the user can short-circuit this test for compilers unknown to
3645 for ac_file in $ac_files ''
3647 test -f "$ac_file" || continue
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3652 # We found the default executable, but exeext='' is most
3656 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3658 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 # We set ac_cv_exeext here because the later test for it is not
3661 # safe: cross compilers may not add the suffix if given an `-o'
3662 # argument, so we may need to know it at that point already.
3663 # Even if this section looks crufty: it has the advantage of
3670 test "$ac_cv_exeext" = no && ac_cv_exeext=
3675 if test -z "$ac_file"; then :
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3678 $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error 77 "C compiler cannot create executables
3684 See \`config.log' for more details" "$LINENO" 5; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3687 $as_echo "yes" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3690 $as_echo_n "checking for C compiler default output file name... " >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3692 $as_echo "$ac_file" >&6; }
3693 ac_exeext=$ac_cv_exeext
3695 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3696 ac_clean_files=$ac_clean_files_save
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3698 $as_echo_n "checking for suffix of executables... " >&6; }
3699 if { { ac_try="$ac_link"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_link") 2>&5
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3711 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3712 # work properly (i.e., refer to `conftest.exe'), while it won't with
3714 for ac_file in conftest.exe conftest conftest.*; do
3715 test -f "$ac_file" || continue
3717 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details" "$LINENO" 5; }
3729 rm -f conftest conftest$ac_cv_exeext
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3731 $as_echo "$ac_cv_exeext" >&6; }
3733 rm -f conftest.$ac_ext
3734 EXEEXT=$ac_cv_exeext
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3742 FILE *f = fopen ("conftest.out", "w");
3743 return ferror (f) || fclose (f) != 0;
3749 ac_clean_files="$ac_clean_files conftest.out"
3750 # Check that the compiler produces executables we can run. If not, either
3751 # the compiler is broken, or we cross compile.
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3753 $as_echo_n "checking whether we are cross compiling... " >&6; }
3754 if test "$cross_compiling" != yes; then
3755 { { ac_try="$ac_link"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762 (eval "$ac_link") 2>&5
3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }
3766 if { ac_try='./conftest$ac_cv_exeext'
3767 { { case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3772 $as_echo "$ac_try_echo"; } >&5
3773 (eval "$ac_try") 2>&5
3775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }; }; then
3779 if test "$cross_compiling" = maybe; then
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error $? "cannot run C compiled programs.
3785 If you meant to cross compile, use \`--host'.
3786 See \`config.log' for more details" "$LINENO" 5; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3791 $as_echo "$cross_compiling" >&6; }
3793 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3794 ac_clean_files=$ac_clean_files_save
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3796 $as_echo_n "checking for suffix of object files... " >&6; }
3797 if ${ac_cv_objext+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3811 rm -f conftest.o conftest.obj
3812 if { { ac_try="$ac_compile"
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_compile") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; then :
3823 for ac_file in conftest.o conftest.obj conftest.*; do
3824 test -f "$ac_file" || continue;
3826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3827 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot compute suffix of object files: cannot compile
3838 See \`config.log' for more details" "$LINENO" 5; }
3840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3843 $as_echo "$ac_cv_objext" >&6; }
3844 OBJEXT=$ac_cv_objext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3847 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3848 if ${ac_cv_c_compiler_gnu+:} false; then :
3849 $as_echo_n "(cached) " >&6
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3865 if ac_fn_c_try_compile "$LINENO"; then :
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3875 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3876 if test $ac_compiler_gnu = yes; then
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3884 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3885 if ${ac_cv_prog_cc_g+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 ac_save_c_werror_flag=$ac_c_werror_flag
3889 ac_c_werror_flag=yes
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3903 if ac_fn_c_try_compile "$LINENO"; then :
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 if ac_fn_c_try_compile "$LINENO"; then :
3921 ac_c_werror_flag=$ac_save_c_werror_flag
3923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924 /* end confdefs.h. */
3934 if ac_fn_c_try_compile "$LINENO"; then :
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3942 ac_c_werror_flag=$ac_save_c_werror_flag
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3945 $as_echo "$ac_cv_prog_cc_g" >&6; }
3946 if test "$ac_test_CFLAGS" = set; then
3947 CFLAGS=$ac_save_CFLAGS
3948 elif test $ac_cv_prog_cc_g = yes; then
3949 if test "$GCC" = yes; then
3955 if test "$GCC" = yes; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3962 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3963 if ${ac_cv_prog_cc_c89+:} false; then :
3964 $as_echo_n "(cached) " >&6
3966 ac_cv_prog_cc_c89=no
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3973 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3974 struct buf { int x; };
3975 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3976 static char *e (p, i)
3982 static char *f (char * (*g) (char **, int), char **p, ...)
3987 s = g (p, va_arg (v,int));
3992 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3993 function prototypes and stuff, but not '\xHH' hex character constants.
3994 These don't provoke an error unfortunately, instead are silently treated
3995 as 'x'. The following induces an error, until -std is added to get
3996 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3997 array size at least. It's necessary to write '\x00'==0 to get something
3998 that's true only with -std. */
3999 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4001 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4002 inside strings and character constants. */
4004 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4006 int test (int i, double x);
4007 struct s1 {int (*f) (int a);};
4008 struct s2 {int (*f) (double a);};
4009 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4015 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4020 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4021 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4023 CC="$ac_save_CC $ac_arg"
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_c89=$ac_arg
4027 rm -f core conftest.err conftest.$ac_objext
4028 test "x$ac_cv_prog_cc_c89" != "xno" && break
4030 rm -f conftest.$ac_ext
4035 case "x$ac_cv_prog_cc_c89" in
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4038 $as_echo "none needed" >&6; } ;;
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4041 $as_echo "unsupported" >&6; } ;;
4043 CC="$CC $ac_cv_prog_cc_c89"
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4045 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4047 if test "x$ac_cv_prog_cc_c89" != xno; then :
4052 ac_cpp='$CPP $CPPFLAGS'
4053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4063 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4064 if ${am_cv_prog_cc_c_o+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 # Make sure it works both with $CC and with simple cc.
4079 # Following AC_PROG_CC_C_O, we do the test twice because some
4080 # compilers refuse to overwrite an existing .o file with -o,
4081 # though they will create one.
4082 am_cv_prog_cc_c_o=yes
4084 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4085 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); } \
4089 && test -f conftest2.$ac_objext; then
4092 am_cv_prog_cc_c_o=no
4096 rm -f core conftest*
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4100 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4101 if test "$am_cv_prog_cc_c_o" != yes; then
4102 # Losing compiler, so override with the script.
4103 # FIXME: It is wrong to rewrite CC.
4104 # But if we don't then we get into trouble of one sort or another.
4105 # A longer-term fix would be to have automake use am__CC in this case,
4106 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4107 CC="$am_aux_dir/compile $CC"
4110 ac_cpp='$CPP $CPPFLAGS'
4111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4116 depcc="$CC" am_compiler_list=
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4119 $as_echo_n "checking dependency style of $depcc... " >&6; }
4120 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4124 # We make a subdir and do the tests there. Otherwise we can end up
4125 # making bogus files that we don't know about and never remove. For
4126 # instance it was reported that on HP-UX the gcc test will end up
4127 # making a dummy file named 'D' -- because '-MD' means "put the output
4131 # Copy depcomp to subdir because otherwise we won't find it if we're
4132 # using a relative directory.
4133 cp "$am_depcomp" conftest.dir
4135 # We will build objects and dependencies in a subdirectory because
4136 # it helps to detect inapplicable dependency modes. For instance
4137 # both Tru64's cc and ICC support -MD to output dependencies as a
4138 # side effect of compilation, but ICC will put the dependencies in
4139 # the current directory while Tru64 will put them in the object
4143 am_cv_CC_dependencies_compiler_type=none
4144 if test "$am_compiler_list" = ""; then
4145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4148 case " $depcc " in #(
4149 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4152 for depmode in $am_compiler_list; do
4153 # Setup a source with many dependencies, because some compilers
4154 # like to wrap large dependency lists on column 80 (with \), and
4155 # we should not choose a depcomp mode which is confused by this.
4157 # We need to recreate these files for each test, as the compiler may
4158 # overwrite some of them when testing with obscure command lines.
4159 # This happens at least with the AIX C compiler.
4161 for i in 1 2 3 4 5 6; do
4162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4163 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4164 # Solaris 10 /bin/sh.
4165 echo '/* dummy */' > sub/conftst$i.h
4167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4169 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4170 # mode. It turns out that the SunPro C++ compiler does not properly
4171 # handle '-M -o', and we need to detect this. Also, some Intel
4172 # versions had trouble with output in subdirs.
4173 am__obj=sub/conftest.${OBJEXT-o}
4174 am__minus_obj="-o $am__obj"
4177 # This depmode causes a compiler race in universal mode.
4178 test "$am__universal" = false || continue
4181 # After this tag, mechanisms are not by side-effect, so they'll
4182 # only be used when explicitly requested.
4183 if test "x$enable_dependency_tracking" = xyes; then
4189 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4190 # This compiler won't grok '-c -o', but also, the minuso test has
4191 # not run yet. These depmodes are late enough in the game, and
4192 # so weak that their functioning should not be impacted.
4193 am__obj=conftest.${OBJEXT-o}
4198 if depmode=$depmode \
4199 source=sub/conftest.c object=$am__obj \
4200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4201 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4202 >/dev/null 2>conftest.err &&
4203 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4205 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4207 # icc doesn't choke on unknown options, it will just issue warnings
4208 # or remarks (even with -Werror). So we grep stderr for any message
4209 # that says an option was ignored or not supported.
4210 # When given -MP, icc 7.0 and 7.1 complain thusly:
4211 # icc: Command line warning: ignoring option '-M'; no argument required
4212 # The diagnosis changed in icc 8.0:
4213 # icc: Command line remark: option '-MP' not supported
4214 if (grep 'ignoring option' conftest.err ||
4215 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4216 am_cv_CC_dependencies_compiler_type=$depmode
4225 am_cv_CC_dependencies_compiler_type=none
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4230 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4231 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4234 test "x$enable_dependency_tracking" != xno \
4235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4237 am__fastdepCC_FALSE='#'
4239 am__fastdepCC_TRUE='#'
4240 am__fastdepCC_FALSE=
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4252 # On Suns, sometimes $CPP names a directory.
4253 if test -n "$CPP" && test -d "$CPP"; then
4256 if test -z "$CPP"; then
4257 if ${ac_cv_prog_CPP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4260 # Double quotes because CPP needs to be expanded
4261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4264 for ac_c_preproc_warn_flag in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4275 # include <limits.h>
4277 # include <assert.h>
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4284 # Broken: fails on valid input.
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: success on invalid input.
4299 # Passes both tests.
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4321 $as_echo "$CPP" >&6; }
4323 for ac_c_preproc_warn_flag in '' yes
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4334 # include <limits.h>
4336 # include <assert.h>
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4343 # Broken: fails on valid input.
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ac_nonexistent.h>
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355 # Broken: success on invalid input.
4358 # Passes both tests.
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details" "$LINENO" 5; }
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4384 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4385 if ${ac_cv_path_GREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 if test -z "$GREP"; then
4389 ac_path_GREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in grep ggrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_GREP" || continue
4400 # Check for GNU ac_path_GREP and select it if it is found.
4401 # Check for GNU $ac_path_GREP
4402 case `"$ac_path_GREP" --version 2>&1` in
4404 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4407 $as_echo_n 0123456789 >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'GREP' >> "conftest.nl"
4414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_GREP="$ac_path_GREP"
4420 ac_path_GREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 $ac_path_GREP_found && break 3
4433 if test -z "$ac_cv_path_GREP"; then
4434 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 ac_cv_path_GREP=$GREP
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4442 $as_echo "$ac_cv_path_GREP" >&6; }
4443 GREP="$ac_cv_path_GREP"
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4447 $as_echo_n "checking for egrep... " >&6; }
4448 if ${ac_cv_path_EGREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4451 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452 then ac_cv_path_EGREP="$GREP -E"
4454 if test -z "$EGREP"; then
4455 ac_path_EGREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in egrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_EGREP" || continue
4466 # Check for GNU ac_path_EGREP and select it if it is found.
4467 # Check for GNU $ac_path_EGREP
4468 case `"$ac_path_EGREP" --version 2>&1` in
4470 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4473 $as_echo_n 0123456789 >"conftest.in"
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'EGREP' >> "conftest.nl"
4480 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_EGREP="$ac_path_EGREP"
4486 ac_path_EGREP_max=$ac_count
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494 $ac_path_EGREP_found && break 3
4499 if test -z "$ac_cv_path_EGREP"; then
4500 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 ac_cv_path_EGREP=$EGREP
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510 EGREP="$ac_cv_path_EGREP"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4514 $as_echo_n "checking for ANSI C header files... " >&6; }
4515 if ${ac_cv_header_stdc+:} false; then :
4516 $as_echo_n "(cached) " >&6
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_cv_header_stdc=yes
4536 ac_cv_header_stdc=no
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 if test $ac_cv_header_stdc = yes; then
4541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "memchr" >/dev/null 2>&1; then :
4551 ac_cv_header_stdc=no
4557 if test $ac_cv_header_stdc = yes; then
4558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "free" >/dev/null 2>&1; then :
4568 ac_cv_header_stdc=no
4574 if test $ac_cv_header_stdc = yes; then
4575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576 if test "$cross_compiling" = yes; then :
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4583 #if ((' ' & 0x0FF) == 0x020)
4584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4587 # define ISLOWER(c) \
4588 (('a' <= (c) && (c) <= 'i') \
4589 || ('j' <= (c) && (c) <= 'r') \
4590 || ('s' <= (c) && (c) <= 'z'))
4591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599 for (i = 0; i < 256; i++)
4600 if (XOR (islower (i), ISLOWER (i))
4601 || toupper (i) != TOUPPER (i))
4606 if ac_fn_c_try_run "$LINENO"; then :
4609 ac_cv_header_stdc=no
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612 conftest.$ac_objext conftest.beam conftest.$ac_ext
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4618 $as_echo "$ac_cv_header_stdc" >&6; }
4619 if test $ac_cv_header_stdc = yes; then
4621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4627 inttypes.h stdint.h unistd.h
4629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4633 cat >>confdefs.h <<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4644 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4651 if test "$MINIX" = yes; then
4653 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4656 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4659 $as_echo "#define _MINIX 1" >>confdefs.h
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4672 # define __EXTENSIONS__ 1
4673 $ac_includes_default
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_safe_to_define___extensions__=yes
4685 ac_cv_safe_to_define___extensions__=no
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4691 test $ac_cv_safe_to_define___extensions__ = yes &&
4692 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4694 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4696 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4698 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4700 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4704 ac_cpp='$CPP $CPPFLAGS'
4705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4708 if test -n "$ac_tool_prefix"; then
4709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4712 $as_echo_n "checking for $ac_word... " >&6; }
4713 if ${ac_cv_prog_CC+:} false; then :
4714 $as_echo_n "(cached) " >&6
4716 if test -n "$CC"; then
4717 ac_cv_prog_CC="$CC" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 if test -n "$CC"; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4739 $as_echo "$CC" >&6; }
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4747 if test -z "$ac_cv_prog_CC"; then
4749 # Extract the first word of "gcc", so it can be a program name with args.
4750 set dummy gcc; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4754 $as_echo_n "(cached) " >&6
4756 if test -n "$ac_ct_CC"; then
4757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 test -z "$as_dir" && as_dir=.
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_ac_ct_CC="gcc"
4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4777 if test -n "$ac_ct_CC"; then
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4779 $as_echo "$ac_ct_CC" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 $as_echo "no" >&6; }
4785 if test "x$ac_ct_CC" = x; then
4788 case $cross_compiling:$ac_tool_warned in
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4800 if test -z "$CC"; then
4801 if test -n "$ac_tool_prefix"; then
4802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4803 set dummy ${ac_tool_prefix}cc; ac_word=$2
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4805 $as_echo_n "checking for $ac_word... " >&6; }
4806 if ${ac_cv_prog_CC+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 if test -n "$CC"; then
4810 ac_cv_prog_CC="$CC" # Let the user override the test.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_prog_CC="${ac_tool_prefix}cc"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 if test -n "$CC"; then
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4832 $as_echo "$CC" >&6; }
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 $as_echo "no" >&6; }
4841 if test -z "$CC"; then
4842 # Extract the first word of "cc", so it can be a program name with args.
4843 set dummy cc; ac_word=$2
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845 $as_echo_n "checking for $ac_word... " >&6; }
4846 if ${ac_cv_prog_CC+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 if test -n "$CC"; then
4850 ac_cv_prog_CC="$CC" # Let the user override the test.
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4861 ac_prog_rejected=yes
4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 if test $ac_prog_rejected = yes; then
4873 # We found a bogon in the path, so make sure we never use it.
4874 set dummy $ac_cv_prog_CC
4876 if test $# != 0; then
4877 # We chose a different compiler from the bogus one.
4878 # However, it has the same basename, so the bogon will be chosen
4879 # first if we set CC to just the basename; use the full file name.
4881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4887 if test -n "$CC"; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4889 $as_echo "$CC" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4892 $as_echo "no" >&6; }
4897 if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in cl.exe
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_CC+:} false; then :
4906 $as_echo_n "(cached) " >&6
4908 if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test -n "$CC"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4931 $as_echo "$CC" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4938 test -n "$CC" && break
4941 if test -z "$CC"; then
4943 for ac_prog in cl.exe
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 if test -n "$ac_ct_CC"; then
4953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_CC="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4973 if test -n "$ac_ct_CC"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4975 $as_echo "$ac_ct_CC" >&6; }
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4982 test -n "$ac_ct_CC" && break
4985 if test "x$ac_ct_CC" = x; then
4988 case $cross_compiling:$ac_tool_warned in
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
5001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5003 as_fn_error $? "no acceptable C compiler found in \$PATH
5004 See \`config.log' for more details" "$LINENO" 5; }
5006 # Provide some information about the compiler.
5007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5010 for ac_option in --version -v -V -qversion; do
5011 { { ac_try="$ac_compiler $ac_option >&5"
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5017 $as_echo "$ac_try_echo"; } >&5
5018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5020 if test -s conftest.err; then
5022 ... rest of stderr output deleted ...
5023 10q' conftest.err >conftest.er1
5024 cat conftest.er1 >&5
5026 rm -f conftest.er1 conftest.err
5027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028 test $ac_status = 0; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5033 if ${ac_cv_c_compiler_gnu+:} false; then :
5034 $as_echo_n "(cached) " >&6
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5050 if ac_fn_c_try_compile "$LINENO"; then :
5055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5061 if test $ac_compiler_gnu = yes; then
5066 ac_test_CFLAGS=${CFLAGS+set}
5067 ac_save_CFLAGS=$CFLAGS
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5070 if ${ac_cv_prog_cc_g+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 ac_save_c_werror_flag=$ac_c_werror_flag
5074 ac_c_werror_flag=yes
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5088 if ac_fn_c_try_compile "$LINENO"; then :
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5103 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_c_werror_flag=$ac_save_c_werror_flag
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5119 if ac_fn_c_try_compile "$LINENO"; then :
5122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 ac_c_werror_flag=$ac_save_c_werror_flag
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5130 $as_echo "$ac_cv_prog_cc_g" >&6; }
5131 if test "$ac_test_CFLAGS" = set; then
5132 CFLAGS=$ac_save_CFLAGS
5133 elif test $ac_cv_prog_cc_g = yes; then
5134 if test "$GCC" = yes; then
5140 if test "$GCC" = yes; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5148 if ${ac_cv_prog_cc_c89+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 ac_cv_prog_cc_c89=no
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5159 struct buf { int x; };
5160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5161 static char *e (p, i)
5167 static char *f (char * (*g) (char **, int), char **p, ...)
5172 s = g (p, va_arg (v,int));
5177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5178 function prototypes and stuff, but not '\xHH' hex character constants.
5179 These don't provoke an error unfortunately, instead are silently treated
5180 as 'x'. The following induces an error, until -std is added to get
5181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5182 array size at least. It's necessary to write '\x00'==0 to get something
5183 that's true only with -std. */
5184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5187 inside strings and character constants. */
5189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5191 int test (int i, double x);
5192 struct s1 {int (*f) (int a);};
5193 struct s2 {int (*f) (double a);};
5194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5208 CC="$ac_save_CC $ac_arg"
5209 if ac_fn_c_try_compile "$LINENO"; then :
5210 ac_cv_prog_cc_c89=$ac_arg
5212 rm -f core conftest.err conftest.$ac_objext
5213 test "x$ac_cv_prog_cc_c89" != "xno" && break
5215 rm -f conftest.$ac_ext
5220 case "x$ac_cv_prog_cc_c89" in
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5223 $as_echo "none needed" >&6; } ;;
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5226 $as_echo "unsupported" >&6; } ;;
5228 CC="$CC $ac_cv_prog_cc_c89"
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5232 if test "x$ac_cv_prog_cc_c89" != xno; then :
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5249 if ${am_cv_prog_cc_c_o+:} false; then :
5250 $as_echo_n "(cached) " >&6
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5263 # Make sure it works both with $CC and with simple cc.
5264 # Following AC_PROG_CC_C_O, we do the test twice because some
5265 # compilers refuse to overwrite an existing .o file with -o,
5266 # though they will create one.
5267 am_cv_prog_cc_c_o=yes
5269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } \
5274 && test -f conftest2.$ac_objext; then
5277 am_cv_prog_cc_c_o=no
5281 rm -f core conftest*
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5286 if test "$am_cv_prog_cc_c_o" != yes; then
5287 # Losing compiler, so override with the script.
5288 # FIXME: It is wrong to rewrite CC.
5289 # But if we don't then we get into trouble of one sort or another.
5290 # A longer-term fix would be to have automake use am__CC in this case,
5291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5292 CC="$am_aux_dir/compile $CC"
5295 ac_cpp='$CPP $CPPFLAGS'
5296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5301 depcc="$CC" am_compiler_list=
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5304 $as_echo_n "checking dependency style of $depcc... " >&6; }
5305 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5306 $as_echo_n "(cached) " >&6
5308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5309 # We make a subdir and do the tests there. Otherwise we can end up
5310 # making bogus files that we don't know about and never remove. For
5311 # instance it was reported that on HP-UX the gcc test will end up
5312 # making a dummy file named 'D' -- because '-MD' means "put the output
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5328 am_cv_CC_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5349 # Solaris 10 /bin/sh.
5350 echo '/* dummy */' > sub/conftst$i.h
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle '-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs.
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5366 # After this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested.
5368 if test "x$enable_dependency_tracking" = xyes; then
5374 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5375 # This compiler won't grok '-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CC_dependencies_compiler_type=$depmode
5410 am_cv_CC_dependencies_compiler_type=none
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5416 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5422 am__fastdepCC_FALSE='#'
5424 am__fastdepCC_TRUE='#'
5425 am__fastdepCC_FALSE=
5431 ac_cpp='$CPP $CPPFLAGS'
5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5437 # On Suns, sometimes $CPP names a directory.
5438 if test -n "$CPP" && test -d "$CPP"; then
5441 if test -z "$CPP"; then
5442 if ${ac_cv_prog_CPP+:} false; then :
5443 $as_echo_n "(cached) " >&6
5445 # Double quotes because CPP needs to be expanded
5446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5449 for ac_c_preproc_warn_flag in '' yes
5451 # Use a header file that comes with gcc, so configuring glibc
5452 # with a fresh cross-compiler works.
5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5454 # <limits.h> exists even on freestanding compilers.
5455 # On the NeXT, cc -E runs the code through the compiler's parser,
5456 # not just through cpp. "Syntax error" is here to catch this case.
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458 /* end confdefs.h. */
5460 # include <limits.h>
5462 # include <assert.h>
5466 if ac_fn_c_try_cpp "$LINENO"; then :
5469 # Broken: fails on valid input.
5472 rm -f conftest.err conftest.i conftest.$ac_ext
5474 # OK, works on sane cases. Now check whether nonexistent headers
5475 # can be detected and how.
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <ac_nonexistent.h>
5480 if ac_fn_c_try_cpp "$LINENO"; then :
5481 # Broken: success on invalid input.
5484 # Passes both tests.
5488 rm -f conftest.err conftest.i conftest.$ac_ext
5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5492 rm -f conftest.i conftest.err conftest.$ac_ext
5493 if $ac_preproc_ok; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5506 $as_echo "$CPP" >&6; }
5508 for ac_c_preproc_warn_flag in '' yes
5510 # Use a header file that comes with gcc, so configuring glibc
5511 # with a fresh cross-compiler works.
5512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5513 # <limits.h> exists even on freestanding compilers.
5514 # On the NeXT, cc -E runs the code through the compiler's parser,
5515 # not just through cpp. "Syntax error" is here to catch this case.
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 # include <limits.h>
5521 # include <assert.h>
5525 if ac_fn_c_try_cpp "$LINENO"; then :
5528 # Broken: fails on valid input.
5531 rm -f conftest.err conftest.i conftest.$ac_ext
5533 # OK, works on sane cases. Now check whether nonexistent headers
5534 # can be detected and how.
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 #include <ac_nonexistent.h>
5539 if ac_fn_c_try_cpp "$LINENO"; then :
5540 # Broken: success on invalid input.
5543 # Passes both tests.
5547 rm -f conftest.err conftest.i conftest.$ac_ext
5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5551 rm -f conftest.i conftest.err conftest.$ac_ext
5552 if $ac_preproc_ok; then :
5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5558 See \`config.log' for more details" "$LINENO" 5; }
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5572 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5573 $as_echo_n "(cached) " >&6
5575 cat >conftest.make <<\_ACEOF
5578 @echo '@@@%%%=$(MAKE)=@@@%%%'
5580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5583 eval ac_cv_prog_make_${ac_make}_set=yes;;
5585 eval ac_cv_prog_make_${ac_make}_set=no;;
5589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5591 $as_echo "yes" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 SET_MAKE="MAKE=${MAKE-make}"
5599 # Check whether --enable-static was given.
5600 if test "${enable_static+set}" = set; then :
5601 enableval=$enable_static; p=${PACKAGE-default}
5603 yes) enable_static=yes ;;
5604 no) enable_static=no ;;
5607 # Look at the argument we got. We use all the common list separators.
5608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5609 for pkg in $enableval; do
5611 if test "X$pkg" = "X$p"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5633 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5638 macro_version='2.4.2'
5639 macro_revision='1.3337'
5653 ltmain="$ac_aux_dir/ltmain.sh"
5655 # Backslashify metacharacters that are still active within
5656 # double-quoted strings.
5657 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5659 # Same as above, but do not quote variable references.
5660 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5662 # Sed substitution to delay expansion of an escaped shell variable in a
5663 # double_quote_subst'ed string.
5664 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5666 # Sed substitution to delay expansion of an escaped single quote.
5667 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5669 # Sed substitution to avoid accidental globbing in evaled expressions
5670 no_glob_subst='s/\*/\\\*/g'
5672 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5673 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5674 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5677 $as_echo_n "checking how to print strings... " >&6; }
5678 # Test print first, because it will be a builtin if present.
5679 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5680 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5682 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5685 # Use this function as a fallback that always works.
5686 func_fallback_echo ()
5688 eval 'cat <<_LTECHO_EOF
5692 ECHO='func_fallback_echo'
5695 # func_echo_all arg...
5696 # Invoke $ECHO with all args, space-separated.
5703 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5704 $as_echo "printf" >&6; } ;;
5705 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5706 $as_echo "print -r" >&6; } ;;
5707 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5708 $as_echo "cat" >&6; } ;;
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5725 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5726 if ${ac_cv_path_SED+:} false; then :
5727 $as_echo_n "(cached) " >&6
5729 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5730 for ac_i in 1 2 3 4 5 6 7; do
5731 ac_script="$ac_script$as_nl$ac_script"
5733 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5734 { ac_script=; unset ac_script;}
5735 if test -z "$SED"; then
5736 ac_path_SED_found=false
5737 # Loop through the user's path and test for each of PROGNAME-LIST
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_prog in sed gsed; do
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5746 as_fn_executable_p "$ac_path_SED" || continue
5747 # Check for GNU ac_path_SED and select it if it is found.
5748 # Check for GNU $ac_path_SED
5749 case `"$ac_path_SED" --version 2>&1` in
5751 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5754 $as_echo_n 0123456789 >"conftest.in"
5757 cat "conftest.in" "conftest.in" >"conftest.tmp"
5758 mv "conftest.tmp" "conftest.in"
5759 cp "conftest.in" "conftest.nl"
5760 $as_echo '' >> "conftest.nl"
5761 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5762 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5763 as_fn_arith $ac_count + 1 && ac_count=$as_val
5764 if test $ac_count -gt ${ac_path_SED_max-0}; then
5765 # Best one so far, save it but keep looking for a better one
5766 ac_cv_path_SED="$ac_path_SED"
5767 ac_path_SED_max=$ac_count
5769 # 10*(2^10) chars as input seems more than enough
5770 test $ac_count -gt 10 && break
5772 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5775 $ac_path_SED_found && break 3
5780 if test -z "$ac_cv_path_SED"; then
5781 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5789 $as_echo "$ac_cv_path_SED" >&6; }
5790 SED="$ac_cv_path_SED"
5793 test -z "$SED" && SED=sed
5794 Xsed="$SED -e 1s/^X//"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5807 $as_echo_n "checking for fgrep... " >&6; }
5808 if ${ac_cv_path_FGREP+:} false; then :
5809 $as_echo_n "(cached) " >&6
5811 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5812 then ac_cv_path_FGREP="$GREP -F"
5814 if test -z "$FGREP"; then
5815 ac_path_FGREP_found=false
5816 # Loop through the user's path and test for each of PROGNAME-LIST
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5821 test -z "$as_dir" && as_dir=.
5822 for ac_prog in fgrep; do
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5825 as_fn_executable_p "$ac_path_FGREP" || continue
5826 # Check for GNU ac_path_FGREP and select it if it is found.
5827 # Check for GNU $ac_path_FGREP
5828 case `"$ac_path_FGREP" --version 2>&1` in
5830 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5833 $as_echo_n 0123456789 >"conftest.in"
5836 cat "conftest.in" "conftest.in" >"conftest.tmp"
5837 mv "conftest.tmp" "conftest.in"
5838 cp "conftest.in" "conftest.nl"
5839 $as_echo 'FGREP' >> "conftest.nl"
5840 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5842 as_fn_arith $ac_count + 1 && ac_count=$as_val
5843 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5844 # Best one so far, save it but keep looking for a better one
5845 ac_cv_path_FGREP="$ac_path_FGREP"
5846 ac_path_FGREP_max=$ac_count
5848 # 10*(2^10) chars as input seems more than enough
5849 test $ac_count -gt 10 && break
5851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5854 $ac_path_FGREP_found && break 3
5859 if test -z "$ac_cv_path_FGREP"; then
5860 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5863 ac_cv_path_FGREP=$FGREP
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5869 $as_echo "$ac_cv_path_FGREP" >&6; }
5870 FGREP="$ac_cv_path_FGREP"
5873 test -z "$GREP" && GREP=grep
5893 # Check whether --with-gnu-ld was given.
5894 if test "${with_gnu_ld+set}" = set; then :
5895 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5901 if test "$GCC" = yes; then
5902 # Check if gcc -print-prog-name=ld gives a path.
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5904 $as_echo_n "checking for ld used by $CC... " >&6; }
5907 # gcc leaves a trailing carriage return which upsets mingw
5908 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5910 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5913 # Accept absolute paths.
5915 re_direlt='/[^/][^/]*/\.\./'
5916 # Canonicalize the pathname of ld
5917 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5918 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5919 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5921 test -z "$LD" && LD="$ac_prog"
5924 # If it fails, then pretend we aren't using GCC.
5928 # If it is relative, then search for the first ld in PATH.
5932 elif test "$with_gnu_ld" = yes; then
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5934 $as_echo_n "checking for GNU ld... " >&6; }
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5937 $as_echo_n "checking for non-GNU ld... " >&6; }
5939 if ${lt_cv_path_LD+:} false; then :
5940 $as_echo_n "(cached) " >&6
5942 if test -z "$LD"; then
5943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5944 for ac_dir in $PATH; do
5946 test -z "$ac_dir" && ac_dir=.
5947 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5948 lt_cv_path_LD="$ac_dir/$ac_prog"
5949 # Check to see if the program is GNU ld. I'd rather use --version,
5950 # but apparently some variants of GNU ld only accept -v.
5951 # Break only if it was the GNU/non-GNU ld that we prefer.
5952 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5953 *GNU* | *'with BFD'*)
5954 test "$with_gnu_ld" != no && break
5957 test "$with_gnu_ld" != yes && break
5964 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5969 if test -n "$LD"; then
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5971 $as_echo "$LD" >&6; }
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5974 $as_echo "no" >&6; }
5976 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5978 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5979 if ${lt_cv_prog_gnu_ld+:} false; then :
5980 $as_echo_n "(cached) " >&6
5982 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5983 case `$LD -v 2>&1 </dev/null` in
5984 *GNU* | *'with BFD'*)
5985 lt_cv_prog_gnu_ld=yes
5988 lt_cv_prog_gnu_ld=no
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5993 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5994 with_gnu_ld=$lt_cv_prog_gnu_ld
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6005 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6006 if ${lt_cv_path_NM+:} false; then :
6007 $as_echo_n "(cached) " >&6
6009 if test -n "$NM"; then
6010 # Let the user override the test.
6013 lt_nm_to_check="${ac_tool_prefix}nm"
6014 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6015 lt_nm_to_check="$lt_nm_to_check nm"
6017 for lt_tmp_nm in $lt_nm_to_check; do
6018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6019 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6021 test -z "$ac_dir" && ac_dir=.
6022 tmp_nm="$ac_dir/$lt_tmp_nm"
6023 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6024 # Check to see if the nm accepts a BSD-compat flag.
6025 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6026 # nm: unknown option "B" ignored
6027 # Tru64's nm complains that /dev/null is an invalid object file
6028 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6029 */dev/null* | *'Invalid file or object type'*)
6030 lt_cv_path_NM="$tmp_nm -B"
6034 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6036 lt_cv_path_NM="$tmp_nm -p"
6040 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6041 continue # so that we can try to find one that supports BSD flags
6050 : ${lt_cv_path_NM=no}
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6054 $as_echo "$lt_cv_path_NM" >&6; }
6055 if test "$lt_cv_path_NM" != "no"; then
6058 # Didn't find any BSD compatible name lister, look for dumpbin.
6059 if test -n "$DUMPBIN"; then :
6060 # Let the user override the test.
6062 if test -n "$ac_tool_prefix"; then
6063 for ac_prog in dumpbin "link -dump"
6065 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_DUMPBIN+:} false; then :
6070 $as_echo_n "(cached) " >&6
6072 if test -n "$DUMPBIN"; then
6073 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 DUMPBIN=$ac_cv_prog_DUMPBIN
6093 if test -n "$DUMPBIN"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6095 $as_echo "$DUMPBIN" >&6; }
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6102 test -n "$DUMPBIN" && break
6105 if test -z "$DUMPBIN"; then
6106 ac_ct_DUMPBIN=$DUMPBIN
6107 for ac_prog in dumpbin "link -dump"
6109 # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6114 $as_echo_n "(cached) " >&6
6116 if test -n "$ac_ct_DUMPBIN"; then
6117 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6137 if test -n "$ac_ct_DUMPBIN"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6139 $as_echo "$ac_ct_DUMPBIN" >&6; }
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6146 test -n "$ac_ct_DUMPBIN" && break
6149 if test "x$ac_ct_DUMPBIN" = x; then
6152 case $cross_compiling:$ac_tool_warned in
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6156 ac_tool_warned=yes ;;
6158 DUMPBIN=$ac_ct_DUMPBIN
6162 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6164 DUMPBIN="$DUMPBIN -symbols"
6172 if test "$DUMPBIN" != ":"; then
6176 test -z "$NM" && NM=nm
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6184 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6185 if ${lt_cv_nm_interface+:} false; then :
6186 $as_echo_n "(cached) " >&6
6188 lt_cv_nm_interface="BSD nm"
6189 echo "int some_variable = 0;" > conftest.$ac_ext
6190 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6191 (eval "$ac_compile" 2>conftest.err)
6192 cat conftest.err >&5
6193 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6194 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6195 cat conftest.err >&5
6196 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6197 cat conftest.out >&5
6198 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6199 lt_cv_nm_interface="MS dumpbin"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6204 $as_echo "$lt_cv_nm_interface" >&6; }
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6207 $as_echo_n "checking whether ln -s works... " >&6; }
6209 if test "$LN_S" = "ln -s"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6211 $as_echo "yes" >&6; }
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6214 $as_echo "no, using $LN_S" >&6; }
6217 # find the maximum length of command line arguments
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6219 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6220 if ${lt_cv_sys_max_cmd_len+:} false; then :
6221 $as_echo_n "(cached) " >&6
6228 # On DJGPP, this test can blow up pretty badly due to problems in libc
6229 # (any single argument exceeding 2000 bytes causes a buffer overrun
6230 # during glob expansion). Even if it were fixed, the result of this
6231 # check would be larger than it should be.
6232 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6236 # Under GNU Hurd, this test is not required because there is
6237 # no limit to the length of command line arguments.
6238 # Libtool will interpret -1 as no limit whatsoever
6239 lt_cv_sys_max_cmd_len=-1;
6242 cygwin* | mingw* | cegcc*)
6243 # On Win9x/ME, this test blows up -- it succeeds, but takes
6244 # about 5 minutes as the teststring grows exponentially.
6245 # Worse, since 9x/ME are not pre-emptively multitasking,
6246 # you end up with a "frozen" computer, even though with patience
6247 # the test eventually succeeds (with a max line length of 256k).
6248 # Instead, let's just punt: use the minimum linelength reported by
6249 # all of the supported platforms: 8192 (on NT/2K/XP).
6250 lt_cv_sys_max_cmd_len=8192;
6254 # On MiNT this can take a long time and run out of memory.
6255 lt_cv_sys_max_cmd_len=8192;
6259 # On AmigaOS with pdksh, this test takes hours, literally.
6260 # So we just punt and use a minimum line length of 8192.
6261 lt_cv_sys_max_cmd_len=8192;
6264 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6265 # This has been around since 386BSD, at least. Likely further.
6266 if test -x /sbin/sysctl; then
6267 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6268 elif test -x /usr/sbin/sysctl; then
6269 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6271 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6273 # And add a safety zone
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6279 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6280 lt_cv_sys_max_cmd_len=196608
6284 # The test takes a long time on OS/2.
6285 lt_cv_sys_max_cmd_len=8192
6289 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6290 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6291 # nice to cause kernel panics so lets avoid the loop below.
6292 # First set a reasonable default.
6293 lt_cv_sys_max_cmd_len=16384
6295 if test -x /sbin/sysconfig; then
6296 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6297 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6302 lt_cv_sys_max_cmd_len=102400
6304 sysv5* | sco5v6* | sysv4.2uw2*)
6305 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6306 if test -n "$kargmax"; then
6307 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6309 lt_cv_sys_max_cmd_len=32768
6313 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6314 if test -n "$lt_cv_sys_max_cmd_len" && \
6315 test undefined != "$lt_cv_sys_max_cmd_len"; then
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6317 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6319 # Make teststring a little bigger before we do anything with it.
6320 # a 1K string should be a reasonable start.
6321 for i in 1 2 3 4 5 6 7 8 ; do
6322 teststring=$teststring$teststring
6324 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325 # If test is not a shell built-in, we'll probably end up computing a
6326 # maximum length that is only half of the actual maximum length, but
6328 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6329 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6330 test $i != 17 # 1/2 MB should be enough
6333 teststring=$teststring$teststring
6335 # Only check the string length outside the loop.
6336 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6338 # Add a significant safety factor because C++ compilers can tack on
6339 # massive amounts of additional arguments before passing them to the
6340 # linker. It appears as though 1/2 is a usable value.
6341 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6348 if test -n $lt_cv_sys_max_cmd_len ; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6350 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6353 $as_echo "none" >&6; }
6355 max_cmd_len=$lt_cv_sys_max_cmd_len
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6367 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6368 # Try some XSI features
6371 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6373 && eval 'test $(( 1 + 1 )) -eq 2 \
6374 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6377 $as_echo "$xsi_shell" >&6; }
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6381 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6383 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6385 && lt_shell_append=yes
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6387 $as_echo "$lt_shell_append" >&6; }
6390 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6400 # test EBCDIC or ASCII
6401 case `echo X|tr X '\101'` in
6402 A) # ASCII based system
6403 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6404 lt_SP2NL='tr \040 \012'
6405 lt_NL2SP='tr \015\012 \040\040'
6407 *) # EBCDIC based system
6408 lt_SP2NL='tr \100 \n'
6409 lt_NL2SP='tr \r\n \100\100'
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6422 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6423 if ${lt_cv_to_host_file_cmd+:} false; then :
6424 $as_echo_n "(cached) " >&6
6429 *-*-mingw* ) # actually msys
6430 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6433 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6435 * ) # otherwise, assume *nix
6436 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6442 *-*-mingw* ) # actually msys
6443 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6446 lt_cv_to_host_file_cmd=func_convert_file_noop
6448 * ) # otherwise, assume *nix
6449 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6453 * ) # unhandled hosts (and "normal" native builds)
6454 lt_cv_to_host_file_cmd=func_convert_file_noop
6460 to_host_file_cmd=$lt_cv_to_host_file_cmd
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6462 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6469 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6470 if ${lt_cv_to_tool_file_cmd+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 #assume ordinary cross tools, or native build.
6474 lt_cv_to_tool_file_cmd=func_convert_file_noop
6478 *-*-mingw* ) # actually msys
6479 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6487 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6489 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6496 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6497 if ${lt_cv_ld_reload_flag+:} false; then :
6498 $as_echo_n "(cached) " >&6
6500 lt_cv_ld_reload_flag='-r'
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6503 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6504 reload_flag=$lt_cv_ld_reload_flag
6505 case $reload_flag in
6507 *) reload_flag=" $reload_flag" ;;
6509 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6511 cygwin* | mingw* | pw32* | cegcc*)
6512 if test "$GCC" != yes; then
6517 if test "$GCC" = yes; then
6518 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6520 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6533 if test -n "$ac_tool_prefix"; then
6534 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6535 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 $as_echo_n "checking for $ac_word... " >&6; }
6538 if ${ac_cv_prog_OBJDUMP+:} false; then :
6539 $as_echo_n "(cached) " >&6
6541 if test -n "$OBJDUMP"; then
6542 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 test -z "$as_dir" && as_dir=.
6549 for ac_exec_ext in '' $ac_executable_extensions; do
6550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 OBJDUMP=$ac_cv_prog_OBJDUMP
6562 if test -n "$OBJDUMP"; then
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6564 $as_echo "$OBJDUMP" >&6; }
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6572 if test -z "$ac_cv_prog_OBJDUMP"; then
6573 ac_ct_OBJDUMP=$OBJDUMP
6574 # Extract the first word of "objdump", so it can be a program name with args.
6575 set dummy objdump; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$ac_ct_OBJDUMP"; then
6582 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6602 if test -n "$ac_ct_OBJDUMP"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6604 $as_echo "$ac_ct_OBJDUMP" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6610 if test "x$ac_ct_OBJDUMP" = x; then
6613 case $cross_compiling:$ac_tool_warned in
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6617 ac_tool_warned=yes ;;
6619 OBJDUMP=$ac_ct_OBJDUMP
6622 OBJDUMP="$ac_cv_prog_OBJDUMP"
6625 test -z "$OBJDUMP" && OBJDUMP=objdump
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6636 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6637 if ${lt_cv_deplibs_check_method+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 lt_cv_file_magic_cmd='$MAGIC_CMD'
6641 lt_cv_file_magic_test_file=
6642 lt_cv_deplibs_check_method='unknown'
6643 # Need to set the preceding variable on all platforms that support
6644 # interlibrary dependencies.
6645 # 'none' -- dependencies not supported.
6646 # `unknown' -- same as none, but documents that we really don't know.
6647 # 'pass_all' -- all dependencies passed with no checks.
6648 # 'test_compile' -- check by making test program.
6649 # 'file_magic [[regex]]' -- check by looking for files in library path
6650 # which responds to the $file_magic_cmd with a given extended regex.
6651 # If you have `file' or equivalent on your system and you're not sure
6652 # whether `pass_all' will *always* work, you probably want this one.
6656 lt_cv_deplibs_check_method=pass_all
6660 lt_cv_deplibs_check_method=pass_all
6664 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6665 lt_cv_file_magic_cmd='/usr/bin/file -L'
6666 lt_cv_file_magic_test_file=/shlib/libc.so
6670 # func_win32_libid is a shell function defined in ltmain.sh
6671 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6672 lt_cv_file_magic_cmd='func_win32_libid'
6676 # Base MSYS/MinGW do not provide the 'file' command needed by
6677 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6678 # unless we find 'file', for example because we are cross-compiling.
6679 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6680 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6682 lt_cv_file_magic_cmd='func_win32_libid'
6684 # Keep this pattern in sync with the one in func_win32_libid.
6685 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6686 lt_cv_file_magic_cmd='$OBJDUMP -f'
6691 # use the weaker test based on 'objdump'. See mingw*.
6692 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6693 lt_cv_file_magic_cmd='$OBJDUMP -f'
6696 darwin* | rhapsody*)
6697 lt_cv_deplibs_check_method=pass_all
6700 freebsd* | dragonfly*)
6701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6704 # Not sure whether the presence of OpenBSD here was a mistake.
6705 # Let's accept both of them until this is cleared up.
6706 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6707 lt_cv_file_magic_cmd=/usr/bin/file
6708 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6712 lt_cv_deplibs_check_method=pass_all
6717 lt_cv_deplibs_check_method=pass_all
6720 hpux10.20* | hpux11*)
6721 lt_cv_file_magic_cmd=/usr/bin/file
6724 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6725 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6728 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]'
6729 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6732 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6733 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6739 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6743 irix5* | irix6* | nonstopux*)
6745 *-32|*"-32 ") libmagic=32-bit;;
6746 *-n32|*"-n32 ") libmagic=N32;;
6747 *-64|*"-64 ") libmagic=64-bit;;
6748 *) libmagic=never-match;;
6750 lt_cv_deplibs_check_method=pass_all
6753 # This must be glibc/ELF.
6754 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6755 lt_cv_deplibs_check_method=pass_all
6758 netbsd* | netbsdelf*-gnu)
6759 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6762 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6767 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6768 lt_cv_file_magic_cmd=/usr/bin/file
6769 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6773 lt_cv_deplibs_check_method=pass_all
6777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6778 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6784 osf3* | osf4* | osf5*)
6785 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6793 lt_cv_deplibs_check_method=pass_all
6796 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6797 lt_cv_deplibs_check_method=pass_all
6801 case $host_vendor in
6803 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]'
6804 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6807 lt_cv_deplibs_check_method=pass_all
6810 lt_cv_file_magic_cmd='/bin/file'
6811 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6814 lt_cv_file_magic_cmd='/bin/file'
6815 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6816 lt_cv_file_magic_test_file=/lib/libc.so
6819 lt_cv_deplibs_check_method=pass_all
6822 lt_cv_deplibs_check_method=pass_all
6828 lt_cv_deplibs_check_method=pass_all
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6834 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6838 if test "$build" = "$host"; then
6841 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6844 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6850 file_magic_cmd=$lt_cv_file_magic_cmd
6851 deplibs_check_method=$lt_cv_deplibs_check_method
6852 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6875 if test -n "$ac_tool_prefix"; then
6876 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6877 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if ${ac_cv_prog_DLLTOOL+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 if test -n "$DLLTOOL"; then
6884 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6893 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 DLLTOOL=$ac_cv_prog_DLLTOOL
6904 if test -n "$DLLTOOL"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6906 $as_echo "$DLLTOOL" >&6; }
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6914 if test -z "$ac_cv_prog_DLLTOOL"; then
6915 ac_ct_DLLTOOL=$DLLTOOL
6916 # Extract the first word of "dlltool", so it can be a program name with args.
6917 set dummy dlltool; ac_word=$2
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919 $as_echo_n "checking for $ac_word... " >&6; }
6920 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6921 $as_echo_n "(cached) " >&6
6923 if test -n "$ac_ct_DLLTOOL"; then
6924 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 test -z "$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_DLLTOOL="dlltool"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6944 if test -n "$ac_ct_DLLTOOL"; then
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6946 $as_echo "$ac_ct_DLLTOOL" >&6; }
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949 $as_echo "no" >&6; }
6952 if test "x$ac_ct_DLLTOOL" = x; then
6955 case $cross_compiling:$ac_tool_warned in
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959 ac_tool_warned=yes ;;
6961 DLLTOOL=$ac_ct_DLLTOOL
6964 DLLTOOL="$ac_cv_prog_DLLTOOL"
6967 test -z "$DLLTOOL" && DLLTOOL=dlltool
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6979 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6980 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6981 $as_echo_n "(cached) " >&6
6983 lt_cv_sharedlib_from_linklib_cmd='unknown'
6986 cygwin* | mingw* | pw32* | cegcc*)
6987 # two different shell functions defined in ltmain.sh
6988 # decide which to use based on capabilities of $DLLTOOL
6989 case `$DLLTOOL --help 2>&1` in
6990 *--identify-strict*)
6991 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6994 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6999 # fallback: assume linklib IS sharedlib
7000 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7006 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7007 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7008 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7016 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_AR+:} false; then :
7024 $as_echo_n "(cached) " >&6
7026 if test -n "$AR"; then
7027 ac_cv_prog_AR="$AR" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 if test -n "$AR"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7049 $as_echo "$AR" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7056 test -n "$AR" && break
7059 if test -z "$AR"; then
7063 # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -n "$ac_ct_AR"; then
7071 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_ac_ct_AR="$ac_prog"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7091 if test -n "$ac_ct_AR"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7093 $as_echo "$ac_ct_AR" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7100 test -n "$ac_ct_AR" && break
7103 if test "x$ac_ct_AR" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7130 $as_echo_n "checking for archiver @FILE support... " >&6; }
7131 if ${lt_cv_ar_at_file+:} false; then :
7132 $as_echo_n "(cached) " >&6
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 echo conftest.$ac_objext > conftest.lst
7148 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7150 (eval $lt_ar_try) 2>&5
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }
7154 if test "$ac_status" -eq 0; then
7155 # Ensure the archiver fails upon bogus file names.
7156 rm -f conftest.$ac_objext libconftest.a
7157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7158 (eval $lt_ar_try) 2>&5
7160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7161 test $ac_status = 0; }
7162 if test "$ac_status" -ne 0; then
7166 rm -f conftest.* libconftest.a
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7173 $as_echo "$lt_cv_ar_at_file" >&6; }
7175 if test "x$lt_cv_ar_at_file" = xno; then
7178 archiver_list_spec=$lt_cv_ar_at_file
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}strip; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_STRIP+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 if test -n "$STRIP"; then
7196 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 STRIP=$ac_cv_prog_STRIP
7216 if test -n "$STRIP"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7218 $as_echo "$STRIP" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7226 if test -z "$ac_cv_prog_STRIP"; then
7228 # Extract the first word of "strip", so it can be a program name with args.
7229 set dummy strip; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7233 $as_echo_n "(cached) " >&6
7235 if test -n "$ac_ct_STRIP"; then
7236 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_ac_ct_STRIP="strip"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7256 if test -n "$ac_ct_STRIP"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7258 $as_echo "$ac_ct_STRIP" >&6; }
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7264 if test "x$ac_ct_STRIP" = x; then
7267 case $cross_compiling:$ac_tool_warned in
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7276 STRIP="$ac_cv_prog_STRIP"
7279 test -z "$STRIP" && STRIP=:
7286 if test -n "$ac_tool_prefix"; then
7287 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7288 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_RANLIB+:} false; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$RANLIB"; then
7295 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 RANLIB=$ac_cv_prog_RANLIB
7315 if test -n "$RANLIB"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7317 $as_echo "$RANLIB" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7325 if test -z "$ac_cv_prog_RANLIB"; then
7326 ac_ct_RANLIB=$RANLIB
7327 # Extract the first word of "ranlib", so it can be a program name with args.
7328 set dummy ranlib; ac_word=$2
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7330 $as_echo_n "checking for $ac_word... " >&6; }
7331 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7332 $as_echo_n "(cached) " >&6
7334 if test -n "$ac_ct_RANLIB"; then
7335 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 test -z "$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_ac_ct_RANLIB="ranlib"
7345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7355 if test -n "$ac_ct_RANLIB"; then
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7357 $as_echo "$ac_ct_RANLIB" >&6; }
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360 $as_echo "no" >&6; }
7363 if test "x$ac_ct_RANLIB" = x; then
7366 case $cross_compiling:$ac_tool_warned in
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7370 ac_tool_warned=yes ;;
7372 RANLIB=$ac_ct_RANLIB
7375 RANLIB="$ac_cv_prog_RANLIB"
7378 test -z "$RANLIB" && RANLIB=:
7385 # Determine commands to create old-style static archives.
7386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7387 old_postinstall_cmds='chmod 644 $oldlib'
7388 old_postuninstall_cmds=
7390 if test -n "$RANLIB"; then
7393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7404 lock_old_archive_extraction=yes ;;
7406 lock_old_archive_extraction=no ;;
7447 # If no C compiler was specified, use CC.
7450 # If no C compiler flags were specified, use CFLAGS.
7451 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7453 # Allow CC to be a program name with arguments.
7457 # Check for command to grab the raw symbol name followed by C symbol from nm.
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7459 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7460 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7461 $as_echo_n "(cached) " >&6
7464 # These are sane defaults that work on at least a few old systems.
7465 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7467 # Character class describing NM global symbol codes.
7468 symcode='[BCDEGRST]'
7470 # Regexp to match symbols that can be accessed directly from C.
7471 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7473 # Define system-specific variables.
7478 cygwin* | mingw* | pw32* | cegcc*)
7479 symcode='[ABCDGISTW]'
7482 if test "$host_cpu" = ia64; then
7483 symcode='[ABCDEGRST]'
7487 symcode='[BCDEGRST]'
7490 symcode='[BCDEGQRST]'
7501 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7509 # If we're using GNU nm, then use its standard symbol codes.
7510 case `$NM -V 2>&1` in
7511 *GNU* | *'with BFD'*)
7512 symcode='[ABCDGIRSTW]' ;;
7515 # Transform an extracted symbol line into a proper C declaration.
7516 # Some systems (esp. on ia64) link data and code symbols differently,
7517 # so use this general approach.
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7520 # Transform an extracted symbol line into symbol name and symbol address
7521 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7522 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7524 # Handle CRLF in mingw tool chain
7528 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7532 # Try without a prefix underscore, then with it.
7533 for ac_symprfx in "" "_"; do
7535 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7536 symxfrm="\\1 $ac_symprfx\\2 \\2"
7538 # Write the raw and C identifiers.
7539 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7540 # Fake it for dumpbin and say T for any non-static function
7541 # and D for any global variable.
7542 # Also find C++ and __fastcall symbols from MSVC++,
7543 # which start with @ or ?.
7544 lt_cv_sys_global_symbol_pipe="$AWK '"\
7545 " {last_section=section; section=\$ 3};"\
7546 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7547 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7548 " \$ 0!~/External *\|/{next};"\
7549 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7550 " {if(hide[section]) next};"\
7551 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7552 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7553 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7554 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7555 " ' prfx=^$ac_symprfx"
7557 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7559 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7561 # Check to see that the pipe works correctly.
7565 cat > conftest.$ac_ext <<_LT_EOF
7570 void nm_test_func(void);
7571 void nm_test_func(void){}
7575 int main(){nm_test_var='a';nm_test_func();return(0);}
7578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7579 (eval $ac_compile) 2>&5
7581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7582 test $ac_status = 0; }; then
7583 # Now try to grab the symbols.
7585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7586 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; } && test -s "$nlist"; then
7590 # Try sorting and uniquifying the output.
7591 if sort "$nlist" | uniq > "$nlist"T; then
7592 mv -f "$nlist"T "$nlist"
7597 # Make sure that we snagged all the symbols we need.
7598 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7599 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7600 cat <<_LT_EOF > conftest.$ac_ext
7601 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7602 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7603 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7604 relocations are performed -- see ld's documentation on pseudo-relocs. */
7605 # define LT_DLSYM_CONST
7606 #elif defined(__osf__)
7607 /* This system does not cope well with relocations in const data. */
7608 # define LT_DLSYM_CONST
7610 # define LT_DLSYM_CONST const
7618 # Now generate the symbol file.
7619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7621 cat <<_LT_EOF >> conftest.$ac_ext
7623 /* The mapping between symbol names and symbols. */
7624 LT_DLSYM_CONST struct {
7628 lt__PROGRAM__LTX_preloaded_symbols[] =
7630 { "@PROGRAM@", (void *) 0 },
7632 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7633 cat <<\_LT_EOF >> conftest.$ac_ext
7637 /* This works around a problem in FreeBSD linker */
7638 #ifdef FREEBSD_WORKAROUND
7639 static const void *lt_preloaded_setup() {
7640 return lt__PROGRAM__LTX_preloaded_symbols;
7648 # Now try linking the two files.
7649 mv conftest.$ac_objext conftstm.$ac_objext
7650 lt_globsym_save_LIBS=$LIBS
7651 lt_globsym_save_CFLAGS=$CFLAGS
7652 LIBS="conftstm.$ac_objext"
7653 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7655 (eval $ac_link) 2>&5
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7661 LIBS=$lt_globsym_save_LIBS
7662 CFLAGS=$lt_globsym_save_CFLAGS
7664 echo "cannot find nm_test_func in $nlist" >&5
7667 echo "cannot find nm_test_var in $nlist" >&5
7670 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7673 echo "$progname: failed program was:" >&5
7674 cat conftest.$ac_ext >&5
7676 rm -rf conftest* conftst*
7678 # Do not use the global_symbol_pipe unless it works.
7679 if test "$pipe_works" = yes; then
7682 lt_cv_sys_global_symbol_pipe=
7688 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689 lt_cv_sys_global_symbol_to_cdecl=
7691 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693 $as_echo "failed" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696 $as_echo "ok" >&6; }
7699 # Response file support.
7700 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7701 nm_file_list_spec='@'
7702 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7703 nm_file_list_spec='@'
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7733 $as_echo_n "checking for sysroot... " >&6; }
7735 # Check whether --with-sysroot was given.
7736 if test "${with_sysroot+set}" = set; then :
7737 withval=$with_sysroot;
7744 case ${with_sysroot} in #(
7746 if test "$GCC" = yes; then
7747 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7751 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7757 $as_echo "${with_sysroot}" >&6; }
7758 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7763 $as_echo "${lt_sysroot:-no}" >&6; }
7769 # Check whether --enable-libtool-lock was given.
7770 if test "${enable_libtool_lock+set}" = set; then :
7771 enableval=$enable_libtool_lock;
7774 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7776 # Some flags need to be propagated to the compiler or linker for good
7780 # Find out which ABI we are using.
7781 echo 'int i;' > conftest.$ac_ext
7782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7783 (eval $ac_compile) 2>&5
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 case `/usr/bin/file conftest.$ac_objext` in
7799 # Find out which ABI we are using.
7800 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802 (eval $ac_compile) 2>&5
7804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805 test $ac_status = 0; }; then
7806 if test "$lt_cv_prog_gnu_ld" = yes; then
7807 case `/usr/bin/file conftest.$ac_objext` in
7809 LD="${LD-ld} -melf32bsmip"
7812 LD="${LD-ld} -melf32bmipn32"
7815 LD="${LD-ld} -melf64bmip"
7819 case `/usr/bin/file conftest.$ac_objext` in
7835 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7836 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7837 # Find out which ABI we are using.
7838 echo 'int i;' > conftest.$ac_ext
7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7840 (eval $ac_compile) 2>&5
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }; then
7844 case `/usr/bin/file conftest.o` in
7847 x86_64-*kfreebsd*-gnu)
7848 LD="${LD-ld} -m elf_i386_fbsd"
7851 case `/usr/bin/file conftest.o` in
7853 LD="${LD-ld} -m elf32_x86_64"
7856 LD="${LD-ld} -m elf_i386"
7861 LD="${LD-ld} -m elf32lppclinux"
7864 LD="${LD-ld} -m elf32ppclinux"
7867 LD="${LD-ld} -m elf_s390"
7870 LD="${LD-ld} -m elf32_sparc"
7876 x86_64-*kfreebsd*-gnu)
7877 LD="${LD-ld} -m elf_x86_64_fbsd"
7880 LD="${LD-ld} -m elf_x86_64"
7883 LD="${LD-ld} -m elf64lppc"
7886 LD="${LD-ld} -m elf64ppc"
7888 s390*-*linux*|s390*-*tpf*)
7889 LD="${LD-ld} -m elf64_s390"
7892 LD="${LD-ld} -m elf64_sparc"
7902 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7903 SAVE_CFLAGS="$CFLAGS"
7904 CFLAGS="$CFLAGS -belf"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7906 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7907 if ${lt_cv_cc_needs_belf+:} false; then :
7908 $as_echo_n "(cached) " >&6
7911 ac_cpp='$CPP $CPPFLAGS'
7912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7927 if ac_fn_c_try_link "$LINENO"; then :
7928 lt_cv_cc_needs_belf=yes
7930 lt_cv_cc_needs_belf=no
7932 rm -f core conftest.err conftest.$ac_objext \
7933 conftest$ac_exeext conftest.$ac_ext
7935 ac_cpp='$CPP $CPPFLAGS'
7936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7942 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7943 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7944 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7945 CFLAGS="$SAVE_CFLAGS"
7949 # Find out which ABI we are using.
7950 echo 'int i;' > conftest.$ac_ext
7951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7952 (eval $ac_compile) 2>&5
7954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7955 test $ac_status = 0; }; then
7956 case `/usr/bin/file conftest.o` in
7958 case $lt_cv_prog_gnu_ld in
7962 LD="${LD-ld} -m elf_x86_64"
7965 LD="${LD-ld} -m elf64_sparc"
7968 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7969 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7986 need_locks="$enable_libtool_lock"
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}mt; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7994 $as_echo_n "(cached) " >&6
7996 if test -n "$MANIFEST_TOOL"; then
7997 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8017 if test -n "$MANIFEST_TOOL"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8019 $as_echo "$MANIFEST_TOOL" >&6; }
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8027 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8028 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8029 # Extract the first word of "mt", so it can be a program name with args.
8030 set dummy mt; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8034 $as_echo_n "(cached) " >&6
8036 if test -n "$ac_ct_MANIFEST_TOOL"; then
8037 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8057 if test -n "$ac_ct_MANIFEST_TOOL"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8059 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8065 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8068 case $cross_compiling:$ac_tool_warned in
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8074 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8077 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8080 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8082 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8083 if ${lt_cv_path_mainfest_tool+:} false; then :
8084 $as_echo_n "(cached) " >&6
8086 lt_cv_path_mainfest_tool=no
8087 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8088 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8089 cat conftest.err >&5
8090 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8091 lt_cv_path_mainfest_tool=yes
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8096 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8097 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8107 rhapsody* | darwin*)
8108 if test -n "$ac_tool_prefix"; then
8109 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8110 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 if test -n "$DSYMUTIL"; then
8117 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8136 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8137 if test -n "$DSYMUTIL"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8139 $as_echo "$DSYMUTIL" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8147 if test -z "$ac_cv_prog_DSYMUTIL"; then
8148 ac_ct_DSYMUTIL=$DSYMUTIL
8149 # Extract the first word of "dsymutil", so it can be a program name with args.
8150 set dummy dsymutil; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8154 $as_echo_n "(cached) " >&6
8156 if test -n "$ac_ct_DSYMUTIL"; then
8157 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8177 if test -n "$ac_ct_DSYMUTIL"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8179 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8185 if test "x$ac_ct_DSYMUTIL" = x; then
8188 case $cross_compiling:$ac_tool_warned in
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192 ac_tool_warned=yes ;;
8194 DSYMUTIL=$ac_ct_DSYMUTIL
8197 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8200 if test -n "$ac_tool_prefix"; then
8201 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_prog_NMEDIT+:} false; then :
8206 $as_echo_n "(cached) " >&6
8208 if test -n "$NMEDIT"; then
8209 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 test -z "$as_dir" && as_dir=.
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8218 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 NMEDIT=$ac_cv_prog_NMEDIT
8229 if test -n "$NMEDIT"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8231 $as_echo "$NMEDIT" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8239 if test -z "$ac_cv_prog_NMEDIT"; then
8240 ac_ct_NMEDIT=$NMEDIT
8241 # Extract the first word of "nmedit", so it can be a program name with args.
8242 set dummy nmedit; ac_word=$2
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244 $as_echo_n "checking for $ac_word... " >&6; }
8245 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8246 $as_echo_n "(cached) " >&6
8248 if test -n "$ac_ct_NMEDIT"; then
8249 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8258 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8268 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8269 if test -n "$ac_ct_NMEDIT"; then
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8271 $as_echo "$ac_ct_NMEDIT" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8277 if test "x$ac_ct_NMEDIT" = x; then
8280 case $cross_compiling:$ac_tool_warned in
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8284 ac_tool_warned=yes ;;
8286 NMEDIT=$ac_ct_NMEDIT
8289 NMEDIT="$ac_cv_prog_NMEDIT"
8292 if test -n "$ac_tool_prefix"; then
8293 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8294 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8296 $as_echo_n "checking for $ac_word... " >&6; }
8297 if ${ac_cv_prog_LIPO+:} false; then :
8298 $as_echo_n "(cached) " >&6
8300 if test -n "$LIPO"; then
8301 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 test -z "$as_dir" && as_dir=.
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 LIPO=$ac_cv_prog_LIPO
8321 if test -n "$LIPO"; then
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8323 $as_echo "$LIPO" >&6; }
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8331 if test -z "$ac_cv_prog_LIPO"; then
8333 # Extract the first word of "lipo", so it can be a program name with args.
8334 set dummy lipo; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 if test -n "$ac_ct_LIPO"; then
8341 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_prog_ac_ct_LIPO="lipo"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8361 if test -n "$ac_ct_LIPO"; then
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8363 $as_echo "$ac_ct_LIPO" >&6; }
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8369 if test "x$ac_ct_LIPO" = x; then
8372 case $cross_compiling:$ac_tool_warned in
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8376 ac_tool_warned=yes ;;
8381 LIPO="$ac_cv_prog_LIPO"
8384 if test -n "$ac_tool_prefix"; then
8385 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8386 set dummy ${ac_tool_prefix}otool; ac_word=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if ${ac_cv_prog_OTOOL+:} false; then :
8390 $as_echo_n "(cached) " >&6
8392 if test -n "$OTOOL"; then
8393 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir=.
8400 for ac_exec_ext in '' $ac_executable_extensions; do
8401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8402 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 OTOOL=$ac_cv_prog_OTOOL
8413 if test -n "$OTOOL"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8415 $as_echo "$OTOOL" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8423 if test -z "$ac_cv_prog_OTOOL"; then
8425 # Extract the first word of "otool", so it can be a program name with args.
8426 set dummy otool; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8430 $as_echo_n "(cached) " >&6
8432 if test -n "$ac_ct_OTOOL"; then
8433 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_prog_ac_ct_OTOOL="otool"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8453 if test -n "$ac_ct_OTOOL"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8455 $as_echo "$ac_ct_OTOOL" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8461 if test "x$ac_ct_OTOOL" = x; then
8464 case $cross_compiling:$ac_tool_warned in
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8468 ac_tool_warned=yes ;;
8473 OTOOL="$ac_cv_prog_OTOOL"
8476 if test -n "$ac_tool_prefix"; then
8477 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8478 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if ${ac_cv_prog_OTOOL64+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 if test -n "$OTOOL64"; then
8485 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 OTOOL64=$ac_cv_prog_OTOOL64
8505 if test -n "$OTOOL64"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8507 $as_echo "$OTOOL64" >&6; }
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510 $as_echo "no" >&6; }
8515 if test -z "$ac_cv_prog_OTOOL64"; then
8516 ac_ct_OTOOL64=$OTOOL64
8517 # Extract the first word of "otool64", so it can be a program name with args.
8518 set dummy otool64; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 if test -n "$ac_ct_OTOOL64"; then
8525 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8534 ac_cv_prog_ac_ct_OTOOL64="otool64"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8545 if test -n "$ac_ct_OTOOL64"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8547 $as_echo "$ac_ct_OTOOL64" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8553 if test "x$ac_ct_OTOOL64" = x; then
8556 case $cross_compiling:$ac_tool_warned in
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8560 ac_tool_warned=yes ;;
8562 OTOOL64=$ac_ct_OTOOL64
8565 OTOOL64="$ac_cv_prog_OTOOL64"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8595 $as_echo_n "checking for -single_module linker flag... " >&6; }
8596 if ${lt_cv_apple_cc_single_mod+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 lt_cv_apple_cc_single_mod=no
8600 if test -z "${LT_MULTI_MODULE}"; then
8601 # By default we will add the -single_module flag. You can override
8602 # by either setting the environment variable LT_MULTI_MODULE
8603 # non-empty at configure time, or by adding -multi_module to the
8605 rm -rf libconftest.dylib*
8606 echo "int foo(void){return 1;}" > conftest.c
8607 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8608 -dynamiclib -Wl,-single_module conftest.c" >&5
8609 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8610 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8612 # If there is a non-empty error log, and "single_module"
8613 # appears in it, assume the flag caused a linker warning
8614 if test -s conftest.err && $GREP single_module conftest.err; then
8615 cat conftest.err >&5
8616 # Otherwise, if the output was created with a 0 exit code from
8617 # the compiler, it worked.
8618 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8619 lt_cv_apple_cc_single_mod=yes
8621 cat conftest.err >&5
8623 rm -rf libconftest.dylib*
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8628 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8631 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8632 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8633 $as_echo_n "(cached) " >&6
8635 lt_cv_ld_exported_symbols_list=no
8636 save_LDFLAGS=$LDFLAGS
8637 echo "_main" > conftest.sym
8638 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8640 /* end confdefs.h. */
8650 if ac_fn_c_try_link "$LINENO"; then :
8651 lt_cv_ld_exported_symbols_list=yes
8653 lt_cv_ld_exported_symbols_list=no
8655 rm -f core conftest.err conftest.$ac_objext \
8656 conftest$ac_exeext conftest.$ac_ext
8657 LDFLAGS="$save_LDFLAGS"
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8661 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8664 $as_echo_n "checking for -force_load linker flag... " >&6; }
8665 if ${lt_cv_ld_force_load+:} false; then :
8666 $as_echo_n "(cached) " >&6
8668 lt_cv_ld_force_load=no
8669 cat > conftest.c << _LT_EOF
8670 int forced_loaded() { return 2;}
8672 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8673 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8674 echo "$AR cru libconftest.a conftest.o" >&5
8675 $AR cru libconftest.a conftest.o 2>&5
8676 echo "$RANLIB libconftest.a" >&5
8677 $RANLIB libconftest.a 2>&5
8678 cat > conftest.c << _LT_EOF
8679 int main() { return 0;}
8681 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8682 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8684 if test -s conftest.err && $GREP force_load conftest.err; then
8685 cat conftest.err >&5
8686 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8687 lt_cv_ld_force_load=yes
8689 cat conftest.err >&5
8691 rm -f conftest.err libconftest.a conftest conftest.c
8692 rm -rf conftest.dSYM
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8696 $as_echo "$lt_cv_ld_force_load" >&6; }
8698 rhapsody* | darwin1.[012])
8699 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8701 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8702 darwin*) # darwin 5.x on
8703 # if running on 10.5 or later, the deployment target defaults
8704 # to the OS version, if on x86, and 10.4, the deployment
8705 # target defaults to 10.4. Don't you love it?
8706 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8707 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8708 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8710 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8712 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8716 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8717 _lt_dar_single_mod='$single_module'
8719 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8720 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8722 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8724 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8725 _lt_dsymutil='~$DSYMUTIL $lib || :'
8732 for ac_header in dlfcn.h
8734 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8736 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8737 cat >>confdefs.h <<_ACEOF
8738 #define HAVE_DLFCN_H 1
8759 # Check whether --enable-shared was given.
8760 if test "${enable_shared+set}" = set; then :
8761 enableval=$enable_shared; p=${PACKAGE-default}
8763 yes) enable_shared=yes ;;
8764 no) enable_shared=no ;;
8767 # Look at the argument we got. We use all the common list separators.
8768 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8769 for pkg in $enableval; do
8771 if test "X$pkg" = "X$p"; then
8792 # Check whether --with-pic was given.
8793 if test "${with_pic+set}" = set; then :
8794 withval=$with_pic; lt_p=${PACKAGE-default}
8796 yes|no) pic_mode=$withval ;;
8799 # Look at the argument we got. We use all the common list separators.
8800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8801 for lt_pkg in $withval; do
8803 if test "X$lt_pkg" = "X$lt_p"; then
8815 test -z "$pic_mode" && pic_mode=default
8823 # Check whether --enable-fast-install was given.
8824 if test "${enable_fast_install+set}" = set; then :
8825 enableval=$enable_fast_install; p=${PACKAGE-default}
8827 yes) enable_fast_install=yes ;;
8828 no) enable_fast_install=no ;;
8830 enable_fast_install=no
8831 # Look at the argument we got. We use all the common list separators.
8832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8833 for pkg in $enableval; do
8835 if test "X$pkg" = "X$p"; then
8836 enable_fast_install=yes
8843 enable_fast_install=yes
8856 # This can be used to rebuild libtool when needed
8857 LIBTOOL_DEPS="$ltmain"
8859 # Always use our own libtool.
8860 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8891 test -z "$LN_S" && LN_S="ln -s"
8906 if test -n "${ZSH_VERSION+set}" ; then
8907 setopt NO_GLOB_SUBST
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8911 $as_echo_n "checking for objdir... " >&6; }
8912 if ${lt_cv_objdir+:} false; then :
8913 $as_echo_n "(cached) " >&6
8915 rm -f .libs 2>/dev/null
8916 mkdir .libs 2>/dev/null
8917 if test -d .libs; then
8920 # MS-DOS does not allow filenames that begin with a dot.
8923 rmdir .libs 2>/dev/null
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8926 $as_echo "$lt_cv_objdir" >&6; }
8927 objdir=$lt_cv_objdir
8933 cat >>confdefs.h <<_ACEOF
8934 #define LT_OBJDIR "$lt_cv_objdir/"
8942 # AIX sometimes has problems with the GCC collect2 program. For some
8943 # reason, if we set the COLLECT_NAMES environment variable, the problems
8944 # vanish in a puff of smoke.
8945 if test "X${COLLECT_NAMES+set}" != Xset; then
8947 export COLLECT_NAMES
8954 can_build_shared=yes
8956 # All known linkers require a `.a' archive for static linking (except MSVC,
8957 # which needs '.lib').
8960 with_gnu_ld="$lt_cv_prog_gnu_ld"
8963 old_CFLAGS="$CFLAGS"
8965 # Set sane defaults for various variables
8966 test -z "$CC" && CC=cc
8967 test -z "$LTCC" && LTCC=$CC
8968 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8969 test -z "$LD" && LD=ld
8970 test -z "$ac_objext" && ac_objext=o
8972 for cc_temp in $compiler""; do
8974 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8975 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8980 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8983 # Only perform the check for file, if the check method requires it
8984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8985 case $deplibs_check_method in
8987 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8989 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8990 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8991 $as_echo_n "(cached) " >&6
8995 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8998 lt_save_MAGIC_CMD="$MAGIC_CMD"
8999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9000 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9001 for ac_dir in $ac_dummy; do
9003 test -z "$ac_dir" && ac_dir=.
9004 if test -f $ac_dir/${ac_tool_prefix}file; then
9005 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9006 if test -n "$file_magic_test_file"; then
9007 case $deplibs_check_method in
9009 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9011 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9012 $EGREP "$file_magic_regex" > /dev/null; then
9017 *** Warning: the command libtool uses to detect shared libraries,
9018 *** $file_magic_cmd, produces output that libtool cannot recognize.
9019 *** The result is that libtool may fail to recognize shared libraries
9020 *** as such. This will affect the creation of libtool libraries that
9021 *** depend on shared libraries, but programs linked with such libtool
9022 *** libraries will work regardless of this problem. Nevertheless, you
9023 *** may want to report the problem to your system manager and/or to
9024 *** bug-libtool@gnu.org
9034 MAGIC_CMD="$lt_save_MAGIC_CMD"
9039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9040 if test -n "$MAGIC_CMD"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9042 $as_echo "$MAGIC_CMD" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9052 if test -z "$lt_cv_path_MAGIC_CMD"; then
9053 if test -n "$ac_tool_prefix"; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9055 $as_echo_n "checking for file... " >&6; }
9056 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9057 $as_echo_n "(cached) " >&6
9061 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9064 lt_save_MAGIC_CMD="$MAGIC_CMD"
9065 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9066 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9067 for ac_dir in $ac_dummy; do
9069 test -z "$ac_dir" && ac_dir=.
9070 if test -f $ac_dir/file; then
9071 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9072 if test -n "$file_magic_test_file"; then
9073 case $deplibs_check_method in
9075 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9077 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9078 $EGREP "$file_magic_regex" > /dev/null; then
9083 *** Warning: the command libtool uses to detect shared libraries,
9084 *** $file_magic_cmd, produces output that libtool cannot recognize.
9085 *** The result is that libtool may fail to recognize shared libraries
9086 *** as such. This will affect the creation of libtool libraries that
9087 *** depend on shared libraries, but programs linked with such libtool
9088 *** libraries will work regardless of this problem. Nevertheless, you
9089 *** may want to report the problem to your system manager and/or to
9090 *** bug-libtool@gnu.org
9100 MAGIC_CMD="$lt_save_MAGIC_CMD"
9105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9106 if test -n "$MAGIC_CMD"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9108 $as_echo "$MAGIC_CMD" >&6; }
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9124 # Use C for the default configuration in the libtool script
9128 ac_cpp='$CPP $CPPFLAGS'
9129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9134 # Source file extension for C test sources.
9137 # Object file extension for compiled C test sources.
9141 # Code to be used in simple compile tests
9142 lt_simple_compile_test_code="int some_variable = 0;"
9144 # Code to be used in simple link tests
9145 lt_simple_link_test_code='int main(){return(0);}'
9153 # If no C compiler was specified, use CC.
9156 # If no C compiler flags were specified, use CFLAGS.
9157 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9159 # Allow CC to be a program name with arguments.
9162 # Save the default compiler, since it gets overwritten when the other
9163 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9164 compiler_DEFAULT=$CC
9166 # save warnings/boilerplate of simple test code
9167 ac_outfile=conftest.$ac_objext
9168 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9169 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9170 _lt_compiler_boilerplate=`cat conftest.err`
9173 ac_outfile=conftest.$ac_objext
9174 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9175 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9176 _lt_linker_boilerplate=`cat conftest.err`
9181 ## There is no encapsulation within the following macros, do not change
9182 ## the running order or otherwise move them around unless you know exactly
9183 ## what you are doing...
9184 if test -n "$compiler"; then
9186 lt_prog_compiler_no_builtin_flag=
9188 if test "$GCC" = yes; then
9189 case $cc_basename in
9191 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9193 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9197 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9198 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9199 $as_echo_n "(cached) " >&6
9201 lt_cv_prog_compiler_rtti_exceptions=no
9202 ac_outfile=conftest.$ac_objext
9203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204 lt_compiler_flag="-fno-rtti -fno-exceptions"
9205 # Insert the option either (1) after the last *FLAGS variable, or
9206 # (2) before a word containing "conftest.", or (3) at the end.
9207 # Note that $ac_compile itself does not contain backslashes and begins
9208 # with a dollar sign (not a hyphen), so the echo should work correctly.
9209 # The option is referenced via a variable to avoid confusing sed.
9210 lt_compile=`echo "$ac_compile" | $SED \
9211 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213 -e 's:$: $lt_compiler_flag:'`
9214 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215 (eval "$lt_compile" 2>conftest.err)
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 if (exit $ac_status) && test -s "$ac_outfile"; then
9220 # The compiler can only warn and ignore the option if not recognized
9221 # So say no if there are warnings other than the usual output.
9222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9223 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9224 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_rtti_exceptions=yes
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9232 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9235 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9247 lt_prog_compiler_wl=
9248 lt_prog_compiler_pic=
9249 lt_prog_compiler_static=
9252 if test "$GCC" = yes; then
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_static='-static'
9258 # All AIX code is PIC.
9259 if test "$host_cpu" = ia64; then
9260 # AIX 5 now supports IA64 processor
9261 lt_prog_compiler_static='-Bstatic'
9268 # see comment about AmigaOS4 .so support
9269 lt_prog_compiler_pic='-fPIC'
9272 # FIXME: we need at least 68020 code to build shared libraries, but
9273 # adding the `-m68020' flag to GCC prevents building anything better,
9275 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9281 # PIC is the default for these OSes.
9284 mingw* | cygwin* | pw32* | os2* | cegcc*)
9285 # This hack is so that the source file can tell whether it is being
9286 # built for inclusion in a dll (and should export symbols for example).
9287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9288 # (--disable-auto-import) libraries
9289 lt_prog_compiler_pic='-DDLL_EXPORT'
9292 darwin* | rhapsody*)
9293 # PIC is the default on this platform
9294 # Common symbols not allowed in MH_DYLIB files
9295 lt_prog_compiler_pic='-fno-common'
9299 # PIC is the default for Haiku.
9300 # The "-static" flag exists, but is broken.
9301 lt_prog_compiler_static=
9305 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9306 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9307 # sets the default TLS model and affects inlining.
9313 lt_prog_compiler_pic='-fPIC'
9319 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9320 # Instead, we relocate shared libraries at runtime.
9324 # Just because we use GCC doesn't mean we suddenly get shared libraries
9325 # on systems that don't support them.
9326 lt_prog_compiler_can_build_shared=no
9331 # QNX uses GNU C++, but need to define -shared option too, otherwise
9333 lt_prog_compiler_pic='-fPIC -shared'
9337 if test -d /usr/nec; then
9338 lt_prog_compiler_pic=-Kconform_pic
9343 lt_prog_compiler_pic='-fPIC'
9347 case $cc_basename in
9348 nvcc*) # Cuda Compiler Driver 2.2
9349 lt_prog_compiler_wl='-Xlinker '
9350 if test -n "$lt_prog_compiler_pic"; then
9351 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9356 # PORTME Check for flag to pass linker flags through the system compiler.
9359 lt_prog_compiler_wl='-Wl,'
9360 if test "$host_cpu" = ia64; then
9361 # AIX 5 now supports IA64 processor
9362 lt_prog_compiler_static='-Bstatic'
9364 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9368 mingw* | cygwin* | pw32* | os2* | cegcc*)
9369 # This hack is so that the source file can tell whether it is being
9370 # built for inclusion in a dll (and should export symbols for example).
9371 lt_prog_compiler_pic='-DDLL_EXPORT'
9374 hpux9* | hpux10* | hpux11*)
9375 lt_prog_compiler_wl='-Wl,'
9376 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9383 lt_prog_compiler_pic='+Z'
9386 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9387 lt_prog_compiler_static='${wl}-a ${wl}archive'
9390 irix5* | irix6* | nonstopux*)
9391 lt_prog_compiler_wl='-Wl,'
9392 # PIC (with -KPIC) is the default.
9393 lt_prog_compiler_static='-non_shared'
9396 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9397 case $cc_basename in
9398 # old Intel for x86_64 which still supported -KPIC.
9400 lt_prog_compiler_wl='-Wl,'
9401 lt_prog_compiler_pic='-KPIC'
9402 lt_prog_compiler_static='-static'
9404 # icc used to be incompatible with GCC.
9405 # ICC 10 doesn't accept -KPIC any more.
9407 lt_prog_compiler_wl='-Wl,'
9408 lt_prog_compiler_pic='-fPIC'
9409 lt_prog_compiler_static='-static'
9411 # Lahey Fortran 8.1.
9413 lt_prog_compiler_wl='-Wl,'
9414 lt_prog_compiler_pic='--shared'
9415 lt_prog_compiler_static='--static'
9418 # NAG Fortran compiler
9419 lt_prog_compiler_wl='-Wl,-Wl,,'
9420 lt_prog_compiler_pic='-PIC'
9421 lt_prog_compiler_static='-Bstatic'
9423 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9424 # Portland Group compilers (*not* the Pentium gcc compiler,
9425 # which looks to be a dead project)
9426 lt_prog_compiler_wl='-Wl,'
9427 lt_prog_compiler_pic='-fpic'
9428 lt_prog_compiler_static='-Bstatic'
9431 lt_prog_compiler_wl='-Wl,'
9432 # All Alpha code is PIC.
9433 lt_prog_compiler_static='-non_shared'
9435 xl* | bgxl* | bgf* | mpixl*)
9436 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9437 lt_prog_compiler_wl='-Wl,'
9438 lt_prog_compiler_pic='-qpic'
9439 lt_prog_compiler_static='-qstaticlink'
9442 case `$CC -V 2>&1 | sed 5q` in
9443 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9444 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9445 lt_prog_compiler_pic='-KPIC'
9446 lt_prog_compiler_static='-Bstatic'
9447 lt_prog_compiler_wl=''
9449 *Sun\ F* | *Sun*Fortran*)
9450 lt_prog_compiler_pic='-KPIC'
9451 lt_prog_compiler_static='-Bstatic'
9452 lt_prog_compiler_wl='-Qoption ld '
9456 lt_prog_compiler_pic='-KPIC'
9457 lt_prog_compiler_static='-Bstatic'
9458 lt_prog_compiler_wl='-Wl,'
9460 *Intel*\ [CF]*Compiler*)
9461 lt_prog_compiler_wl='-Wl,'
9462 lt_prog_compiler_pic='-fPIC'
9463 lt_prog_compiler_static='-static'
9466 lt_prog_compiler_wl='-Wl,'
9467 lt_prog_compiler_pic='-fpic'
9468 lt_prog_compiler_static='-Bstatic'
9476 lt_prog_compiler_pic='-KPIC'
9477 lt_prog_compiler_static='-Bstatic'
9481 # QNX uses GNU C++, but need to define -shared option too, otherwise
9483 lt_prog_compiler_pic='-fPIC -shared'
9486 osf3* | osf4* | osf5*)
9487 lt_prog_compiler_wl='-Wl,'
9488 # All OSF/1 code is PIC.
9489 lt_prog_compiler_static='-non_shared'
9493 lt_prog_compiler_static='-non_shared'
9497 lt_prog_compiler_pic='-KPIC'
9498 lt_prog_compiler_static='-Bstatic'
9499 case $cc_basename in
9500 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9501 lt_prog_compiler_wl='-Qoption ld ';;
9503 lt_prog_compiler_wl='-Wl,';;
9508 lt_prog_compiler_wl='-Qoption ld '
9509 lt_prog_compiler_pic='-PIC'
9510 lt_prog_compiler_static='-Bstatic'
9513 sysv4 | sysv4.2uw2* | sysv4.3*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-KPIC'
9516 lt_prog_compiler_static='-Bstatic'
9520 if test -d /usr/nec ;then
9521 lt_prog_compiler_pic='-Kconform_pic'
9522 lt_prog_compiler_static='-Bstatic'
9526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-KPIC'
9529 lt_prog_compiler_static='-Bstatic'
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_can_build_shared=no
9538 lt_prog_compiler_pic='-pic'
9539 lt_prog_compiler_static='-Bstatic'
9543 lt_prog_compiler_can_build_shared=no
9549 # For platforms which do not support PIC, -DPIC is meaningless:
9551 lt_prog_compiler_pic=
9554 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9559 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9560 if ${lt_cv_prog_compiler_pic+:} false; then :
9561 $as_echo_n "(cached) " >&6
9563 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9566 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9567 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9570 # Check to make sure the PIC flag actually works.
9572 if test -n "$lt_prog_compiler_pic"; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9574 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9575 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9576 $as_echo_n "(cached) " >&6
9578 lt_cv_prog_compiler_pic_works=no
9579 ac_outfile=conftest.$ac_objext
9580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9581 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9582 # Insert the option either (1) after the last *FLAGS variable, or
9583 # (2) before a word containing "conftest.", or (3) at the end.
9584 # Note that $ac_compile itself does not contain backslashes and begins
9585 # with a dollar sign (not a hyphen), so the echo should work correctly.
9586 # The option is referenced via a variable to avoid confusing sed.
9587 lt_compile=`echo "$ac_compile" | $SED \
9588 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9589 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9590 -e 's:$: $lt_compiler_flag:'`
9591 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9592 (eval "$lt_compile" 2>conftest.err)
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 if (exit $ac_status) && test -s "$ac_outfile"; then
9597 # The compiler can only warn and ignore the option if not recognized
9598 # So say no if there are warnings other than the usual output.
9599 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9600 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9601 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9602 lt_cv_prog_compiler_pic_works=yes
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9609 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9611 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9612 case $lt_prog_compiler_pic in
9614 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9617 lt_prog_compiler_pic=
9618 lt_prog_compiler_can_build_shared=no
9634 # Check to make sure the static flag actually works.
9636 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9638 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9639 if ${lt_cv_prog_compiler_static_works+:} false; then :
9640 $as_echo_n "(cached) " >&6
9642 lt_cv_prog_compiler_static_works=no
9643 save_LDFLAGS="$LDFLAGS"
9644 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9647 # The linker can only warn and ignore the option if not recognized
9648 # So say no if there are warnings
9649 if test -s conftest.err; then
9650 # Append any errors to the config.log.
9651 cat conftest.err 1>&5
9652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9654 if diff conftest.exp conftest.er2 >/dev/null; then
9655 lt_cv_prog_compiler_static_works=yes
9658 lt_cv_prog_compiler_static_works=yes
9662 LDFLAGS="$save_LDFLAGS"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9666 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9668 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9671 lt_prog_compiler_static=
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9682 if ${lt_cv_prog_compiler_c_o+:} false; then :
9683 $as_echo_n "(cached) " >&6
9685 lt_cv_prog_compiler_c_o=no
9686 $RM -r conftest 2>/dev/null
9690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9692 lt_compiler_flag="-o out/conftest2.$ac_objext"
9693 # Insert the option either (1) after the last *FLAGS variable, or
9694 # (2) before a word containing "conftest.", or (3) at the end.
9695 # Note that $ac_compile itself does not contain backslashes and begins
9696 # with a dollar sign (not a hyphen), so the echo should work correctly.
9697 lt_compile=`echo "$ac_compile" | $SED \
9698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9700 -e 's:$: $lt_compiler_flag:'`
9701 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9702 (eval "$lt_compile" 2>out/conftest.err)
9704 cat out/conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9708 # The compiler can only warn and ignore the option if not recognized
9709 # So say no if there are warnings
9710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9713 lt_cv_prog_compiler_c_o=yes
9718 # SGI C++ compiler will create directory out/ii_files/ for
9719 # template instantiation
9720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9721 $RM out/* && rmdir out
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9728 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9736 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9737 if ${lt_cv_prog_compiler_c_o+:} false; then :
9738 $as_echo_n "(cached) " >&6
9740 lt_cv_prog_compiler_c_o=no
9741 $RM -r conftest 2>/dev/null
9745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9747 lt_compiler_flag="-o out/conftest2.$ac_objext"
9748 # Insert the option either (1) after the last *FLAGS variable, or
9749 # (2) before a word containing "conftest.", or (3) at the end.
9750 # Note that $ac_compile itself does not contain backslashes and begins
9751 # with a dollar sign (not a hyphen), so the echo should work correctly.
9752 lt_compile=`echo "$ac_compile" | $SED \
9753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9755 -e 's:$: $lt_compiler_flag:'`
9756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9757 (eval "$lt_compile" 2>out/conftest.err)
9759 cat out/conftest.err >&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9763 # The compiler can only warn and ignore the option if not recognized
9764 # So say no if there are warnings
9765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9768 lt_cv_prog_compiler_c_o=yes
9773 # SGI C++ compiler will create directory out/ii_files/ for
9774 # template instantiation
9775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9776 $RM out/* && rmdir out
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9783 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9788 hard_links="nottested"
9789 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9790 # do not overwrite the value of need_locks provided by the user
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9792 $as_echo_n "checking if we can lock with hard links... " >&6; }
9795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9797 ln conftest.a conftest.b 2>&5 || hard_links=no
9798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9800 $as_echo "$hard_links" >&6; }
9801 if test "$hard_links" = no; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9803 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9819 allow_undefined_flag=
9820 always_export_symbols=no
9822 archive_expsym_cmds=
9823 compiler_needs_object=no
9824 enable_shared_with_static_runtimes=no
9825 export_dynamic_flag_spec=
9826 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9827 hardcode_automatic=no
9829 hardcode_direct_absolute=no
9830 hardcode_libdir_flag_spec=
9831 hardcode_libdir_separator=
9833 hardcode_shlibpath_var=unsupported
9835 link_all_deplibs=unknown
9838 old_archive_from_new_cmds=
9839 old_archive_from_expsyms_cmds=
9840 thread_safe_flag_spec=
9841 whole_archive_flag_spec=
9842 # include_expsyms should be a list of space-separated symbols to be *always*
9843 # included in the symbol list
9845 # exclude_expsyms can be an extended regexp of symbols to exclude
9846 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9847 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9848 # as well as any symbol that contains `d'.
9849 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9850 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9851 # platforms (ab)use it in PIC code, but their linkers get confused if
9852 # the symbol is explicitly referenced. Since portable code cannot
9853 # rely on this symbol name, it's probably fine to never include it in
9854 # preloaded symbol tables.
9855 # Exclude shared library initialization/finalization symbols.
9856 extract_expsyms_cmds=
9859 cygwin* | mingw* | pw32* | cegcc*)
9860 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9861 # When not using gcc, we currently assume that we are using
9862 # Microsoft Visual C++.
9863 if test "$GCC" != yes; then
9868 # we just hope/assume this is gcc and not c89 (= MSVC++)
9874 linux* | k*bsd*-gnu | gnu*)
9881 # On some targets, GNU ld is compatible enough with the native linker
9882 # that we're better off using the native interface for both.
9883 lt_use_gnu_ld_interface=no
9884 if test "$with_gnu_ld" = yes; then
9887 # The AIX port of GNU ld has always aspired to compatibility
9888 # with the native linker. However, as the warning in the GNU ld
9889 # block says, versions before 2.19.5* couldn't really create working
9890 # shared libraries, regardless of the interface used.
9891 case `$LD -v 2>&1` in
9892 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9893 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9894 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9896 lt_use_gnu_ld_interface=yes
9901 lt_use_gnu_ld_interface=yes
9906 if test "$lt_use_gnu_ld_interface" = yes; then
9907 # If archive_cmds runs LD, not CC, wlarc should be empty
9910 # Set some defaults for GNU ld with shared library support. These
9911 # are reset later if shared libraries are not supported. Putting them
9912 # here allows them to be overridden if necessary.
9913 runpath_var=LD_RUN_PATH
9914 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9915 export_dynamic_flag_spec='${wl}--export-dynamic'
9916 # ancient GNU ld didn't support --whole-archive et. al.
9917 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9918 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9920 whole_archive_flag_spec=
9922 supports_anon_versioning=no
9923 case `$LD -v 2>&1` in
9924 *GNU\ gold*) supports_anon_versioning=yes ;;
9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9928 *\ 2.11.*) ;; # other 2.11 versions
9929 *) supports_anon_versioning=yes ;;
9932 # See if GNU ld supports shared libraries.
9935 # On AIX/PPC, the GNU linker is very broken
9936 if test "$host_cpu" != ia64; then
9940 *** Warning: the GNU linker, at least up to release 2.19, is reported
9941 *** to be unable to reliably create shared libraries on AIX.
9942 *** Therefore, libtool is disabling shared libraries support. If you
9943 *** really care for shared libraries, you may want to install binutils
9944 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9945 *** You will then need to restart the configuration process.
9954 # see comment about AmigaOS4 .so support
9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956 archive_expsym_cmds=''
9959 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)'
9960 hardcode_libdir_flag_spec='-L$libdir'
9961 hardcode_minus_L=yes
9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9968 allow_undefined_flag=unsupported
9969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9970 # support --undefined. This deserves some investigation. FIXME
9971 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9977 cygwin* | mingw* | pw32* | cegcc*)
9978 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9979 # as there is no search path for DLLs.
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 export_dynamic_flag_spec='${wl}--export-all-symbols'
9982 allow_undefined_flag=unsupported
9983 always_export_symbols=no
9984 enable_shared_with_static_runtimes=yes
9985 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'
9986 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990 # If the export-symbols file already is a .def file (1st line
9991 # is EXPORTS), use it as is; otherwise, prepend...
9992 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9993 cp $export_symbols $output_objdir/$soname.def;
9995 echo EXPORTS > $output_objdir/$soname.def;
9996 cat $export_symbols >> $output_objdir/$soname.def;
9998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006 link_all_deplibs=yes
10011 hardcode_shlibpath_var=no
10012 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10013 export_dynamic_flag_spec='${wl}-E'
10014 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10015 # Instead, shared libraries are loaded at an image base (0x10000000 by
10016 # default) and relocated if they conflict, which is a slow very memory
10017 # consuming and fragmenting process. To avoid this, we pick a random,
10018 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10019 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10020 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10021 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'
10024 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10026 if test "$host_os" = linux-dietlibc; then
10027 case $cc_basename in
10028 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10031 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10032 && test "$tmp_diet" = no
10034 tmp_addflag=' $pic_flag'
10035 tmp_sharedflag='-shared'
10036 case $cc_basename,$host_cpu in
10037 pgcc*) # Portland Group C compiler
10038 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'
10039 tmp_addflag=' $pic_flag'
10041 pgf77* | pgf90* | pgf95* | pgfortran*)
10042 # Portland Group f77 and f90 compilers
10043 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'
10044 tmp_addflag=' $pic_flag -Mnomain' ;;
10045 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10046 tmp_addflag=' -i_dynamic' ;;
10047 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10048 tmp_addflag=' -i_dynamic -nofor_main' ;;
10049 ifc* | ifort*) # Intel Fortran compiler
10050 tmp_addflag=' -nofor_main' ;;
10051 lf95*) # Lahey Fortran 8.1
10052 whole_archive_flag_spec=
10053 tmp_sharedflag='--shared' ;;
10054 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10055 tmp_sharedflag='-qmkshrobj'
10057 nvcc*) # Cuda Compiler Driver 2.2
10058 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'
10059 compiler_needs_object=yes
10062 case `$CC -V 2>&1 | sed 5q` in
10063 *Sun\ C*) # Sun C 5.9
10064 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'
10065 compiler_needs_object=yes
10066 tmp_sharedflag='-G' ;;
10067 *Sun\ F*) # Sun Fortran 8.3
10068 tmp_sharedflag='-G' ;;
10070 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10072 if test "x$supports_anon_versioning" = xyes; then
10073 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10075 echo "local: *; };" >> $output_objdir/$libname.ver~
10076 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10079 case $cc_basename in
10080 xlf* | bgf* | bgxlf* | mpixlf*)
10081 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10082 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10085 if test "x$supports_anon_versioning" = xyes; then
10086 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10088 echo "local: *; };" >> $output_objdir/$libname.ver~
10089 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10098 netbsd* | netbsdelf*-gnu)
10099 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10100 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10103 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10104 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10109 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10113 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10114 *** create shared libraries on Solaris systems. Therefore, libtool
10115 *** is disabling shared libraries support. We urge you to upgrade GNU
10116 *** binutils to release 2.9.1 or newer. Another option is to modify
10117 *** your PATH or compiler configuration so that the native linker is
10118 *** used, and then restart.
10121 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10130 case `$LD -v 2>&1` in
10131 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10135 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10136 *** reliably create shared libraries on SCO systems. Therefore, libtool
10137 *** is disabling shared libraries support. We urge you to upgrade GNU
10138 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10139 *** your PATH or compiler configuration so that the native linker is
10140 *** used, and then restart.
10145 # For security reasons, it is highly recommended that you always
10146 # use absolute paths for naming shared libraries, and exclude the
10147 # DT_RUNPATH tag from executables and libraries. But doing so
10148 # requires that you compile everything twice, which is a pain.
10149 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10161 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10169 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10170 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10177 if test "$ld_shlibs" = no; then
10179 hardcode_libdir_flag_spec=
10180 export_dynamic_flag_spec=
10181 whole_archive_flag_spec=
10184 # PORTME fill in a description of your system's linker (not GNU ld)
10187 allow_undefined_flag=unsupported
10188 always_export_symbols=yes
10189 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'
10190 # Note: this linker hardcodes the directories in LIBPATH if there
10191 # are no directories specified by -L.
10192 hardcode_minus_L=yes
10193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10194 # Neither direct hardcoding nor static linking is supported with a
10196 hardcode_direct=unsupported
10201 if test "$host_cpu" = ia64; then
10202 # On IA64, the linker does run time linking by default, so we don't
10203 # have to do anything special.
10204 aix_use_runtimelinking=no
10205 exp_sym_flag='-Bexport'
10208 # If we're using GNU nm, then we don't want the "-C" option.
10209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10210 # Also, AIX nm treats weak defined symbols like other global
10211 # defined symbols, whereas GNU nm marks them as "W".
10212 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10213 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10215 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10217 aix_use_runtimelinking=no
10219 # Test if we are trying to use run time linking or normal
10220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10221 # need to do runtime linking.
10222 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10223 for ld_flag in $LDFLAGS; do
10224 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10225 aix_use_runtimelinking=yes
10232 exp_sym_flag='-bexport'
10233 no_entry_flag='-bnoentry'
10236 # When large executables or shared objects are built, AIX ld can
10237 # have problems creating the table of contents. If linking a library
10238 # or program results in "error TOC overflow" add -mminimal-toc to
10239 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10240 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10243 hardcode_direct=yes
10244 hardcode_direct_absolute=yes
10245 hardcode_libdir_separator=':'
10246 link_all_deplibs=yes
10247 file_list_spec='${wl}-f,'
10249 if test "$GCC" = yes; then
10250 case $host_os in aix4.[012]|aix4.[012].*)
10251 # We only want to do this on AIX 4.2 and lower, the check
10252 # below for broken collect2 doesn't work under 4.3+
10253 collect2name=`${CC} -print-prog-name=collect2`
10254 if test -f "$collect2name" &&
10255 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10257 # We have reworked collect2
10260 # We have old collect2
10261 hardcode_direct=unsupported
10262 # It fails to find uninstalled libraries when the uninstalled
10263 # path is not listed in the libpath. Setting hardcode_minus_L
10264 # to unsupported forces relinking
10265 hardcode_minus_L=yes
10266 hardcode_libdir_flag_spec='-L$libdir'
10267 hardcode_libdir_separator=
10271 shared_flag='-shared'
10272 if test "$aix_use_runtimelinking" = yes; then
10273 shared_flag="$shared_flag "'${wl}-G'
10275 link_all_deplibs=no
10278 if test "$host_cpu" = ia64; then
10279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10280 # chokes on -Wl,-G. The following line is correct:
10283 if test "$aix_use_runtimelinking" = yes; then
10284 shared_flag='${wl}-G'
10286 shared_flag='${wl}-bM:SRE'
10291 export_dynamic_flag_spec='${wl}-bexpall'
10292 # It seems that -bexpall does not export symbols beginning with
10293 # underscore (_), so it is better to generate a list of symbols to export.
10294 always_export_symbols=yes
10295 if test "$aix_use_runtimelinking" = yes; then
10296 # Warning - without using the other runtime loading flags (-brtl),
10297 # -berok will link without error, but may produce a broken library.
10298 allow_undefined_flag='-berok'
10299 # Determine the default libpath from the value encoded in an
10300 # empty executable.
10301 if test "${lt_cv_aix_libpath+set}" = set; then
10302 aix_libpath=$lt_cv_aix_libpath
10304 if ${lt_cv_aix_libpath_+:} false; then :
10305 $as_echo_n "(cached) " >&6
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10318 if ac_fn_c_try_link "$LINENO"; then :
10320 lt_aix_libpath_sed='
10321 /Import File Strings/,/^$/ {
10323 s/^0 *\([^ ]*\) *$/\1/
10327 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10328 # Check for a 64-bit object if we didn't find anything.
10329 if test -z "$lt_cv_aix_libpath_"; then
10330 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10333 rm -f core conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10335 if test -z "$lt_cv_aix_libpath_"; then
10336 lt_cv_aix_libpath_="/usr/lib:/lib"
10341 aix_libpath=$lt_cv_aix_libpath_
10344 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10345 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10347 if test "$host_cpu" = ia64; then
10348 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10349 allow_undefined_flag="-z nodefs"
10350 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"
10352 # Determine the default libpath from the value encoded in an
10353 # empty executable.
10354 if test "${lt_cv_aix_libpath+set}" = set; then
10355 aix_libpath=$lt_cv_aix_libpath
10357 if ${lt_cv_aix_libpath_+:} false; then :
10358 $as_echo_n "(cached) " >&6
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10371 if ac_fn_c_try_link "$LINENO"; then :
10373 lt_aix_libpath_sed='
10374 /Import File Strings/,/^$/ {
10376 s/^0 *\([^ ]*\) *$/\1/
10380 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10381 # Check for a 64-bit object if we didn't find anything.
10382 if test -z "$lt_cv_aix_libpath_"; then
10383 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 if test -z "$lt_cv_aix_libpath_"; then
10389 lt_cv_aix_libpath_="/usr/lib:/lib"
10394 aix_libpath=$lt_cv_aix_libpath_
10397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10398 # Warning - without using the other run time loading flags,
10399 # -berok will link without error, but may produce a broken library.
10400 no_undefined_flag=' ${wl}-bernotok'
10401 allow_undefined_flag=' ${wl}-berok'
10402 if test "$with_gnu_ld" = yes; then
10403 # We only use this code for GNU lds that support --whole-archive.
10404 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10406 # Exported symbols can be pulled into shared objects from archives
10407 whole_archive_flag_spec='$convenience'
10409 archive_cmds_need_lc=yes
10410 # This is similar to how AIX traditionally builds its shared libraries.
10411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10419 # see comment about AmigaOS4 .so support
10420 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10421 archive_expsym_cmds=''
10424 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)'
10425 hardcode_libdir_flag_spec='-L$libdir'
10426 hardcode_minus_L=yes
10432 export_dynamic_flag_spec=-rdynamic
10435 cygwin* | mingw* | pw32* | cegcc*)
10436 # When not using gcc, we currently assume that we are using
10437 # Microsoft Visual C++.
10438 # hardcode_libdir_flag_spec is actually meaningless, as there is
10439 # no search path for DLLs.
10440 case $cc_basename in
10443 hardcode_libdir_flag_spec=' '
10444 allow_undefined_flag=unsupported
10445 always_export_symbols=yes
10447 # Tell ltmain to make .lib files, not .a files.
10449 # Tell ltmain to make .dll files, not .so files.
10451 # FIXME: Setting linknames here is a bad hack.
10452 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10454 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10456 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10458 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10460 # The linker will not automatically build a static lib if we build a DLL.
10461 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10462 enable_shared_with_static_runtimes=yes
10463 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10464 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10466 old_postinstall_cmds='chmod 644 $oldlib'
10467 postlink_cmds='lt_outputfile="@OUTPUT@"~
10468 lt_tool_outputfile="@TOOL_OUTPUT@"~
10469 case $lt_outputfile in
10472 lt_outputfile="$lt_outputfile.exe"
10473 lt_tool_outputfile="$lt_tool_outputfile.exe"
10476 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10477 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10478 $RM "$lt_outputfile.manifest";
10482 # Assume MSVC wrapper
10483 hardcode_libdir_flag_spec=' '
10484 allow_undefined_flag=unsupported
10485 # Tell ltmain to make .lib files, not .a files.
10487 # Tell ltmain to make .dll files, not .so files.
10489 # FIXME: Setting linknames here is a bad hack.
10490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10491 # The linker will automatically build a .lib file if we build a DLL.
10492 old_archive_from_new_cmds='true'
10493 # FIXME: Should let the user specify the lib program.
10494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10495 enable_shared_with_static_runtimes=yes
10500 darwin* | rhapsody*)
10503 archive_cmds_need_lc=no
10505 hardcode_automatic=yes
10506 hardcode_shlibpath_var=unsupported
10507 if test "$lt_cv_ld_force_load" = "yes"; then
10508 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\"`'
10511 whole_archive_flag_spec=''
10513 link_all_deplibs=yes
10514 allow_undefined_flag="$_lt_dar_allow_undefined"
10515 case $cc_basename in
10516 ifort*) _lt_dar_can_shared=yes ;;
10517 *) _lt_dar_can_shared=$GCC ;;
10519 if test "$_lt_dar_can_shared" = "yes"; then
10520 output_verbose_link_cmd=func_echo_all
10521 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10522 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10523 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}"
10524 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}"
10533 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10534 hardcode_libdir_flag_spec='-L$libdir'
10535 hardcode_shlibpath_var=no
10538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10539 # support. Future versions do this automatically, but an explicit c++rt0.o
10540 # does not break anything, and helps significantly (at the cost of a little
10543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10544 hardcode_libdir_flag_spec='-R$libdir'
10545 hardcode_direct=yes
10546 hardcode_shlibpath_var=no
10549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10552 hardcode_direct=yes
10553 hardcode_minus_L=yes
10554 hardcode_shlibpath_var=no
10557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10558 freebsd* | dragonfly*)
10559 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10560 hardcode_libdir_flag_spec='-R$libdir'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10566 if test "$GCC" = yes; then
10567 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10569 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10572 hardcode_libdir_separator=:
10573 hardcode_direct=yes
10575 # hardcode_minus_L: Not really in the search PATH,
10576 # but as the default location of the library.
10577 hardcode_minus_L=yes
10578 export_dynamic_flag_spec='${wl}-E'
10582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10583 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10587 if test "$with_gnu_ld" = no; then
10588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10589 hardcode_libdir_separator=:
10590 hardcode_direct=yes
10591 hardcode_direct_absolute=yes
10592 export_dynamic_flag_spec='${wl}-E'
10593 # hardcode_minus_L: Not really in the search PATH,
10594 # but as the default location of the library.
10595 hardcode_minus_L=yes
10600 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10603 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10622 # Older versions of the 11.00 compiler do not understand -b yet
10623 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10625 $as_echo_n "checking if $CC understands -b... " >&6; }
10626 if ${lt_cv_prog_compiler__b+:} false; then :
10627 $as_echo_n "(cached) " >&6
10629 lt_cv_prog_compiler__b=no
10630 save_LDFLAGS="$LDFLAGS"
10631 LDFLAGS="$LDFLAGS -b"
10632 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10633 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10634 # The linker can only warn and ignore the option if not recognized
10635 # So say no if there are warnings
10636 if test -s conftest.err; then
10637 # Append any errors to the config.log.
10638 cat conftest.err 1>&5
10639 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10640 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10641 if diff conftest.exp conftest.er2 >/dev/null; then
10642 lt_cv_prog_compiler__b=yes
10645 lt_cv_prog_compiler__b=yes
10649 LDFLAGS="$save_LDFLAGS"
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10653 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10655 if test x"$lt_cv_prog_compiler__b" = xyes; then
10656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10658 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10664 if test "$with_gnu_ld" = no; then
10665 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10666 hardcode_libdir_separator=:
10671 hardcode_shlibpath_var=no
10674 hardcode_direct=yes
10675 hardcode_direct_absolute=yes
10676 export_dynamic_flag_spec='${wl}-E'
10678 # hardcode_minus_L: Not really in the search PATH,
10679 # but as the default location of the library.
10680 hardcode_minus_L=yes
10686 irix5* | irix6* | nonstopux*)
10687 if test "$GCC" = yes; then
10688 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'
10689 # Try to use the -exported_symbol ld option, if it does not
10690 # work, assume that -exports_file does not work either and
10691 # implicitly export all symbols.
10692 # This should be the same for all languages, so no per-tag cache variable.
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10694 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10695 if ${lt_cv_irix_exported_symbol+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 save_LDFLAGS="$LDFLAGS"
10699 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 int foo (void) { return 0; }
10704 if ac_fn_c_try_link "$LINENO"; then :
10705 lt_cv_irix_exported_symbol=yes
10707 lt_cv_irix_exported_symbol=no
10709 rm -f core conftest.err conftest.$ac_objext \
10710 conftest$ac_exeext conftest.$ac_ext
10711 LDFLAGS="$save_LDFLAGS"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10714 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10715 if test "$lt_cv_irix_exported_symbol" = yes; then
10716 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'
10719 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'
10720 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'
10722 archive_cmds_need_lc='no'
10723 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10724 hardcode_libdir_separator=:
10726 link_all_deplibs=yes
10729 netbsd* | netbsdelf*-gnu)
10730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10733 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10735 hardcode_libdir_flag_spec='-R$libdir'
10736 hardcode_direct=yes
10737 hardcode_shlibpath_var=no
10741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10742 hardcode_direct=yes
10743 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10744 hardcode_libdir_separator=:
10745 hardcode_shlibpath_var=no
10752 if test -f /usr/libexec/ld.so; then
10753 hardcode_direct=yes
10754 hardcode_shlibpath_var=no
10755 hardcode_direct_absolute=yes
10756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10759 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10760 export_dynamic_flag_spec='${wl}-E'
10763 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10764 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10765 hardcode_libdir_flag_spec='-R$libdir'
10768 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10769 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10779 hardcode_libdir_flag_spec='-L$libdir'
10780 hardcode_minus_L=yes
10781 allow_undefined_flag=unsupported
10782 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10783 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10787 if test "$GCC" = yes; then
10788 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10789 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'
10791 allow_undefined_flag=' -expect_unresolved \*'
10792 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'
10794 archive_cmds_need_lc='no'
10795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10796 hardcode_libdir_separator=:
10799 osf4* | osf5*) # as osf3* with the addition of -msym flag
10800 if test "$GCC" = yes; then
10801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10802 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'
10803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10805 allow_undefined_flag=' -expect_unresolved \*'
10806 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'
10807 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~
10808 $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'
10810 # Both c and cxx compiler support -rpath directly
10811 hardcode_libdir_flag_spec='-rpath $libdir'
10813 archive_cmds_need_lc='no'
10814 hardcode_libdir_separator=:
10818 no_undefined_flag=' -z defs'
10819 if test "$GCC" = yes; then
10821 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10823 $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'
10825 case `$CC -V 2>&1` in
10828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10834 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10840 hardcode_libdir_flag_spec='-R$libdir'
10841 hardcode_shlibpath_var=no
10843 solaris2.[0-5] | solaris2.[0-5].*) ;;
10845 # The compiler driver will combine and reorder linker options,
10846 # but understands `-z linker_flag'. GCC discards it without `$wl',
10847 # but is careful enough not to reorder.
10848 # Supported since Solaris 2.6 (maybe 2.5.1?)
10849 if test "$GCC" = yes; then
10850 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10852 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10856 link_all_deplibs=yes
10860 if test "x$host_vendor" = xsequent; then
10861 # Use $CC to link under sequent, because it throws in some extra .o
10862 # files that make .init and .fini sections work.
10863 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10865 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10867 hardcode_libdir_flag_spec='-L$libdir'
10868 hardcode_direct=yes
10869 hardcode_minus_L=yes
10870 hardcode_shlibpath_var=no
10874 case $host_vendor in
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=yes # is this really true???
10880 ## LD is ld it makes a PLAMLIB
10881 ## CC just makes a GrossModule.
10882 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10883 reload_cmds='$CC -r -o $output$reload_objs'
10887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10888 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10891 runpath_var='LD_RUN_PATH'
10892 hardcode_shlibpath_var=no
10896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10897 hardcode_shlibpath_var=no
10898 export_dynamic_flag_spec='-Bexport'
10902 if test -d /usr/nec; then
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var=no
10905 runpath_var=LD_RUN_PATH
10906 hardcode_runpath_var=yes
10911 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10912 no_undefined_flag='${wl}-z,text'
10913 archive_cmds_need_lc=no
10914 hardcode_shlibpath_var=no
10915 runpath_var='LD_RUN_PATH'
10917 if test "$GCC" = yes; then
10918 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 sysv5* | sco3.2v5* | sco5v6*)
10927 # Note: We can NOT use -z defs as we might desire, because we do not
10928 # link with -lc, and that would cause any symbols used from libc to
10929 # always be unresolved, which means just about no library would
10930 # ever link correctly. If we're not using GNU ld we use -z text
10931 # though, which does catch some bad symbols but isn't as heavy-handed
10933 no_undefined_flag='${wl}-z,text'
10934 allow_undefined_flag='${wl}-z,nodefs'
10935 archive_cmds_need_lc=no
10936 hardcode_shlibpath_var=no
10937 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10938 hardcode_libdir_separator=':'
10939 link_all_deplibs=yes
10940 export_dynamic_flag_spec='${wl}-Bexport'
10941 runpath_var='LD_RUN_PATH'
10943 if test "$GCC" = yes; then
10944 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10954 hardcode_libdir_flag_spec='-L$libdir'
10955 hardcode_shlibpath_var=no
10963 if test x$host_vendor = xsni; then
10965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10966 export_dynamic_flag_spec='${wl}-Blargedynsym'
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10973 $as_echo "$ld_shlibs" >&6; }
10974 test "$ld_shlibs" = no && can_build_shared=no
10976 with_gnu_ld=$with_gnu_ld
10993 # Do we need to explicitly link libc?
10995 case "x$archive_cmds_need_lc" in
10997 # Assume -lc should be added
10998 archive_cmds_need_lc=yes
11000 if test "$enable_shared" = yes && test "$GCC" = yes; then
11001 case $archive_cmds in
11003 # FIXME: we may have to deal with multi-command sequences.
11006 # Test whether the compiler implicitly links with -lc since on some
11007 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11008 # to ld, don't add -lc before -lgcc.
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11010 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11011 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11012 $as_echo_n "(cached) " >&6
11015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11018 (eval $ac_compile) 2>&5
11020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11021 test $ac_status = 0; } 2>conftest.err; then
11024 libobjs=conftest.$ac_objext
11026 wl=$lt_prog_compiler_wl
11027 pic_flag=$lt_prog_compiler_pic
11033 lt_save_allow_undefined_flag=$allow_undefined_flag
11034 allow_undefined_flag=
11035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11036 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11039 test $ac_status = 0; }
11041 lt_cv_archive_cmds_need_lc=no
11043 lt_cv_archive_cmds_need_lc=yes
11045 allow_undefined_flag=$lt_save_allow_undefined_flag
11047 cat conftest.err 1>&5
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11053 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11054 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11213 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11215 if test "$GCC" = yes; then
11217 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11218 *) lt_awk_arg="/^libraries:/" ;;
11221 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11222 *) lt_sed_strip_eq="s,=/,/,g" ;;
11224 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11225 case $lt_search_path_spec in
11227 # if the path contains ";" then we assume it to be the separator
11228 # otherwise default to the standard path separator (i.e. ":") - it is
11229 # assumed that no part of a normal pathname contains ";" but that should
11230 # okay in the real world where ";" in dirpaths is itself problematic.
11231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11234 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11237 # Ok, now we have the path, separated by spaces, we can step through it
11238 # and add multilib dir if necessary.
11239 lt_tmp_lt_search_path_spec=
11240 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11241 for lt_sys_path in $lt_search_path_spec; do
11242 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11245 test -d "$lt_sys_path" && \
11246 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11249 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11250 BEGIN {RS=" "; FS="/|\n";} {
11253 for (lt_i = NF; lt_i > 0; lt_i--) {
11254 if ($lt_i != "" && $lt_i != ".") {
11255 if ($lt_i == "..") {
11258 if (lt_count == 0) {
11259 lt_foo="/" $lt_i lt_foo;
11266 if (lt_foo != "") { lt_freq[lt_foo]++; }
11267 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11269 # AWK program above erroneously prepends '/' to C:/dos/paths
11272 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11273 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11275 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11277 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11279 library_names_spec=
11280 libname_spec='lib$name'
11284 postuninstall_cmds=
11288 shlibpath_overrides_runpath=unknown
11290 dynamic_linker="$host_os ld.so"
11291 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11292 need_lib_prefix=unknown
11293 hardcode_into_libs=no
11295 # when you set need_version to no, make sure it does not cause -set_version
11296 # flags to be left without arguments
11297 need_version=unknown
11301 version_type=linux # correct to gnu/linux during the next big refactor
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11303 shlibpath_var=LIBPATH
11305 # AIX 3 has no versioning support, so we append a major version to the name.
11306 soname_spec='${libname}${release}${shared_ext}$major'
11310 version_type=linux # correct to gnu/linux during the next big refactor
11313 hardcode_into_libs=yes
11314 if test "$host_cpu" = ia64; then
11315 # AIX 5 supports IA64
11316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11317 shlibpath_var=LD_LIBRARY_PATH
11319 # With GCC up to 2.95.x, collect2 would create an import file
11320 # for dependence libraries. The import file would start with
11321 # the line `#! .'. This would cause the generated library to
11322 # depend on `.', always an invalid library. This was fixed in
11323 # development snapshots of GCC prior to 3.0.
11325 aix4 | aix4.[01] | aix4.[01].*)
11326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11328 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11331 can_build_shared=no
11335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11336 # soname into executable. Probably we can add versioning support to
11337 # collect2, so additional links can be useful in future.
11338 if test "$aix_use_runtimelinking" = yes; then
11339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11340 # instead of lib<name>.a to let people know that these are not
11341 # typical AIX shared libraries.
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344 # We preserve .a as extension for shared libraries through AIX4.2
11345 # and later when we are not doing run time linking.
11346 library_names_spec='${libname}${release}.a $libname.a'
11347 soname_spec='${libname}${release}${shared_ext}$major'
11349 shlibpath_var=LIBPATH
11356 # Since July 2007 AmigaOS4 officially supports .so libraries.
11357 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 library_names_spec='$libname.ixlibrary $libname.a'
11362 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11363 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11369 library_names_spec='${libname}${shared_ext}'
11370 dynamic_linker="$host_os ld.so"
11371 shlibpath_var=LIBRARY_PATH
11375 version_type=linux # correct to gnu/linux during the next big refactor
11377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 soname_spec='${libname}${release}${shared_ext}$major'
11379 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11382 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11383 # the default ld.so.conf also contains /usr/contrib/lib and
11384 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11385 # libtool to hard-code these into programs
11388 cygwin* | mingw* | pw32* | cegcc*)
11389 version_type=windows
11394 case $GCC,$cc_basename in
11397 library_names_spec='$libname.dll.a'
11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399 postinstall_cmds='base_file=`basename \${file}`~
11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11401 dldir=$destdir/`dirname \$dlpath`~
11402 test -d \$dldir || mkdir -p \$dldir~
11403 $install_prog $dir/$dlname \$dldir/$dlname~
11404 chmod a+x \$dldir/$dlname~
11405 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11406 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11408 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11409 dlpath=$dir/\$dldll~
11411 shlibpath_overrides_runpath=yes
11415 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11416 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11421 # MinGW DLLs use traditional 'lib' prefix
11422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425 # pw32 DLLs use 'pw' prefix rather than 'lib'
11426 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 dynamic_linker='Win32 ld.exe'
11434 libname_spec='$name'
11435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11436 library_names_spec='${libname}.dll.lib'
11440 sys_lib_search_path_spec=
11443 for lt_path in $LIB
11446 # Let DOS variable expansion print the short 8.3 style file name.
11447 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11448 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11451 # Convert to MSYS style.
11452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11455 # Convert to unix form, then to dos form, then back to unix form
11456 # but this time dos style (no spaces!) so that the unix form looks
11457 # like /cygdrive/c/PROGRA~1:/cygdr...
11458 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11459 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11460 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11463 sys_lib_search_path_spec="$LIB"
11464 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11465 # It is most probably a Windows format PATH.
11466 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11470 # FIXME: find the short name or the path components, as spaces are
11471 # common. (e.g. "Program Files" -> "PROGRA~1")
11475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11476 postinstall_cmds='base_file=`basename \${file}`~
11477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11478 dldir=$destdir/`dirname \$dlpath`~
11479 test -d \$dldir || mkdir -p \$dldir~
11480 $install_prog $dir/$dlname \$dldir/$dlname'
11481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482 dlpath=$dir/\$dldll~
11484 shlibpath_overrides_runpath=yes
11485 dynamic_linker='Win32 link.exe'
11489 # Assume MSVC wrapper
11490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11491 dynamic_linker='Win32 ld.exe'
11494 # FIXME: first we should search . and the directory the executable is in
11498 darwin* | rhapsody*)
11499 dynamic_linker="$host_os dyld"
11500 version_type=darwin
11503 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11504 soname_spec='${libname}${release}${major}$shared_ext'
11505 shlibpath_overrides_runpath=yes
11506 shlibpath_var=DYLD_LIBRARY_PATH
11507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11514 version_type=linux # correct to gnu/linux during the next big refactor
11517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11518 soname_spec='${libname}${release}${shared_ext}$major'
11519 shlibpath_var=LD_LIBRARY_PATH
11522 freebsd* | dragonfly*)
11523 # DragonFly does not have aout. When/if they implement a new
11524 # versioning mechanism, adjust this.
11525 if test -x /usr/bin/objformat; then
11526 objformat=`/usr/bin/objformat`
11529 freebsd[23].*) objformat=aout ;;
11530 *) objformat=elf ;;
11533 version_type=freebsd-$objformat
11534 case $version_type in
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11545 shlibpath_var=LD_LIBRARY_PATH
11548 shlibpath_overrides_runpath=yes
11550 freebsd3.[01]* | freebsdelf3.[01]*)
11551 shlibpath_overrides_runpath=yes
11552 hardcode_into_libs=yes
11554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11556 shlibpath_overrides_runpath=no
11557 hardcode_into_libs=yes
11559 *) # from 4.6 on, and DragonFly
11560 shlibpath_overrides_runpath=yes
11561 hardcode_into_libs=yes
11567 version_type=linux # correct to gnu/linux during the next big refactor
11570 dynamic_linker="$host_os runtime_loader"
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11572 soname_spec='${libname}${release}${shared_ext}$major'
11573 shlibpath_var=LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11575 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11576 hardcode_into_libs=yes
11579 hpux9* | hpux10* | hpux11*)
11580 # Give a soname corresponding to the major version so that dld.sl refuses to
11581 # link against other versions.
11588 hardcode_into_libs=yes
11589 dynamic_linker="$host_os dld.so"
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 soname_spec='${libname}${release}${shared_ext}$major'
11594 if test "X$HPUX_IA64_MODE" = X32; then
11595 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11597 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11603 hardcode_into_libs=yes
11604 dynamic_linker="$host_os dld.sl"
11605 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11606 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11614 dynamic_linker="$host_os dld.sl"
11615 shlibpath_var=SHLIB_PATH
11616 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618 soname_spec='${libname}${release}${shared_ext}$major'
11621 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11622 postinstall_cmds='chmod 555 $lib'
11623 # or fails outright, so override atomically:
11624 install_override_mode=555
11628 version_type=linux # correct to gnu/linux during the next big refactor
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11636 hardcode_into_libs=yes
11639 irix5* | irix6* | nonstopux*)
11641 nonstopux*) version_type=nonstopux ;;
11643 if test "$lt_cv_prog_gnu_ld" = yes; then
11644 version_type=linux # correct to gnu/linux during the next big refactor
11651 soname_spec='${libname}${release}${shared_ext}$major'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11654 irix5* | nonstopux*)
11655 libsuff= shlibsuff=
11658 case $LD in # libtool.m4 will add one of these switches to LD
11659 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11660 libsuff= shlibsuff= libmagic=32-bit;;
11661 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11662 libsuff=32 shlibsuff=N32 libmagic=N32;;
11663 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11664 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11665 *) libsuff= shlibsuff= libmagic=never-match;;
11669 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11670 shlibpath_overrides_runpath=no
11671 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11672 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11673 hardcode_into_libs=yes
11676 # No shared lib support for Linux oldld, aout, or coff.
11677 linux*oldld* | linux*aout* | linux*coff*)
11681 # This must be glibc/ELF.
11682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11683 version_type=linux # correct to gnu/linux during the next big refactor
11686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687 soname_spec='${libname}${release}${shared_ext}$major'
11688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11689 shlibpath_var=LD_LIBRARY_PATH
11690 shlibpath_overrides_runpath=no
11692 # Some binutils ld are patched to set DT_RUNPATH
11693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11694 $as_echo_n "(cached) " >&6
11696 lt_cv_shlibpath_overrides_runpath=no
11697 save_LDFLAGS=$LDFLAGS
11698 save_libdir=$libdir
11699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11712 if ac_fn_c_try_link "$LINENO"; then :
11713 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11714 lt_cv_shlibpath_overrides_runpath=yes
11717 rm -f core conftest.err conftest.$ac_objext \
11718 conftest$ac_exeext conftest.$ac_ext
11719 LDFLAGS=$save_LDFLAGS
11720 libdir=$save_libdir
11724 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11726 # This implies no fast_install, which is unacceptable.
11727 # Some rework will be needed to allow for fast_install
11728 # before this can be enabled.
11729 hardcode_into_libs=yes
11731 # Append ld.so.conf contents to the search path
11732 if test -f /etc/ld.so.conf; then
11733 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' ' '`
11734 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11737 # We used to test for /lib/ld.so.1 and disable shared libraries on
11738 # powerpc, because MkLinux only supported shared libraries with the
11739 # GNU dynamic linker. Since this was broken with cross compilers,
11740 # most powerpc-linux boxes support dynamic linking these days and
11741 # people can always --disable-shared, the test was removed, and we
11742 # assume the GNU/Linux dynamic linker is in use.
11743 dynamic_linker='GNU/Linux ld.so'
11750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11753 shlibpath_overrides_runpath=no
11754 hardcode_into_libs=yes
11755 dynamic_linker='NetBSD ld.elf_so'
11762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11765 dynamic_linker='NetBSD (a.out) ld.so'
11767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11768 soname_spec='${libname}${release}${shared_ext}$major'
11769 dynamic_linker='NetBSD ld.elf_so'
11771 shlibpath_var=LD_LIBRARY_PATH
11772 shlibpath_overrides_runpath=yes
11773 hardcode_into_libs=yes
11777 version_type=linux # correct to gnu/linux during the next big refactor
11778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11779 shlibpath_var=LD_LIBRARY_PATH
11780 shlibpath_overrides_runpath=yes
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LD_LIBRARY_PATH
11790 shlibpath_overrides_runpath=no
11791 hardcode_into_libs=yes
11792 dynamic_linker='ldqnx.so'
11797 sys_lib_dlsearch_path_spec="/usr/lib"
11799 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11801 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11802 *) need_version=no ;;
11804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11806 shlibpath_var=LD_LIBRARY_PATH
11807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11809 openbsd2.[89] | openbsd2.[89].*)
11810 shlibpath_overrides_runpath=no
11813 shlibpath_overrides_runpath=yes
11817 shlibpath_overrides_runpath=yes
11822 libname_spec='$name'
11825 library_names_spec='$libname${shared_ext} $libname.a'
11826 dynamic_linker='OS/2 ld.exe'
11827 shlibpath_var=LIBPATH
11830 osf3* | osf4* | osf5*)
11834 soname_spec='${libname}${release}${shared_ext}$major'
11835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836 shlibpath_var=LD_LIBRARY_PATH
11837 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11838 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11846 version_type=linux # correct to gnu/linux during the next big refactor
11849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850 soname_spec='${libname}${release}${shared_ext}$major'
11851 shlibpath_var=LD_LIBRARY_PATH
11852 shlibpath_overrides_runpath=yes
11853 hardcode_into_libs=yes
11854 # ldd complains unless libraries are executable
11855 postinstall_cmds='chmod +x $lib'
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 if test "$with_gnu_ld" = yes; then
11871 version_type=linux # correct to gnu/linux during the next big refactor
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 case $host_vendor in
11877 shlibpath_overrides_runpath=no
11879 runpath_var=LD_RUN_PATH
11887 shlibpath_overrides_runpath=no
11888 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11894 if test -d /usr/nec ;then
11895 version_type=linux # correct to gnu/linux during the next big refactor
11896 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11897 soname_spec='$libname${shared_ext}.$major'
11898 shlibpath_var=LD_LIBRARY_PATH
11902 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11903 version_type=freebsd-elf
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11907 soname_spec='${libname}${release}${shared_ext}$major'
11908 shlibpath_var=LD_LIBRARY_PATH
11909 shlibpath_overrides_runpath=yes
11910 hardcode_into_libs=yes
11911 if test "$with_gnu_ld" = yes; then
11912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11914 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11921 sys_lib_dlsearch_path_spec='/usr/lib'
11925 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11926 version_type=linux # correct to gnu/linux during the next big refactor
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=no
11932 hardcode_into_libs=yes
11936 version_type=linux # correct to gnu/linux during the next big refactor
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11938 soname_spec='${libname}${release}${shared_ext}$major'
11939 shlibpath_var=LD_LIBRARY_PATH
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11947 $as_echo "$dynamic_linker" >&6; }
11948 test "$dynamic_linker" = no && can_build_shared=no
11950 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11951 if test "$GCC" = yes; then
11952 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11955 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11956 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11958 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11959 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12054 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12056 if test -n "$hardcode_libdir_flag_spec" ||
12057 test -n "$runpath_var" ||
12058 test "X$hardcode_automatic" = "Xyes" ; then
12060 # We can hardcode non-existent directories.
12061 if test "$hardcode_direct" != no &&
12062 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12063 # have to relink, otherwise we might link with an installed library
12064 # when we should be linking with a yet-to-be-installed one
12065 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12066 test "$hardcode_minus_L" != no; then
12067 # Linking always hardcodes the temporary library directory.
12068 hardcode_action=relink
12070 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12071 hardcode_action=immediate
12074 # We cannot hardcode anything, or else we can only hardcode existing
12076 hardcode_action=unsupported
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12079 $as_echo "$hardcode_action" >&6; }
12081 if test "$hardcode_action" = relink ||
12082 test "$inherit_rpath" = yes; then
12083 # Fast installation is not supported
12084 enable_fast_install=no
12085 elif test "$shlibpath_overrides_runpath" = yes ||
12086 test "$enable_shared" = no; then
12087 # Fast installation is not necessary
12088 enable_fast_install=needless
12096 if test "x$enable_dlopen" != xyes; then
12097 enable_dlopen=unknown
12098 enable_dlopen_self=unknown
12099 enable_dlopen_self_static=unknown
12106 lt_cv_dlopen="load_add_on"
12108 lt_cv_dlopen_self=yes
12111 mingw* | pw32* | cegcc*)
12112 lt_cv_dlopen="LoadLibrary"
12117 lt_cv_dlopen="dlopen"
12122 # if libdl is installed we need to link against it
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12124 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12125 if ${ac_cv_lib_dl_dlopen+:} false; then :
12126 $as_echo_n "(cached) " >&6
12128 ac_check_lib_save_LIBS=$LIBS
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12133 /* Override any GCC internal prototype to avoid an error.
12134 Use char because int might match the return type of a GCC
12135 builtin and then its argument prototype would still apply. */
12148 if ac_fn_c_try_link "$LINENO"; then :
12149 ac_cv_lib_dl_dlopen=yes
12151 ac_cv_lib_dl_dlopen=no
12153 rm -f core conftest.err conftest.$ac_objext \
12154 conftest$ac_exeext conftest.$ac_ext
12155 LIBS=$ac_check_lib_save_LIBS
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12158 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12159 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12160 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12163 lt_cv_dlopen="dyld"
12165 lt_cv_dlopen_self=yes
12172 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12173 if test "x$ac_cv_func_shl_load" = xyes; then :
12174 lt_cv_dlopen="shl_load"
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12177 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12178 if ${ac_cv_lib_dld_shl_load+:} false; then :
12179 $as_echo_n "(cached) " >&6
12181 ac_check_lib_save_LIBS=$LIBS
12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12196 return shl_load ();
12201 if ac_fn_c_try_link "$LINENO"; then :
12202 ac_cv_lib_dld_shl_load=yes
12204 ac_cv_lib_dld_shl_load=no
12206 rm -f core conftest.err conftest.$ac_objext \
12207 conftest$ac_exeext conftest.$ac_ext
12208 LIBS=$ac_check_lib_save_LIBS
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12211 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12212 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12215 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12216 if test "x$ac_cv_func_dlopen" = xyes; then :
12217 lt_cv_dlopen="dlopen"
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12221 if ${ac_cv_lib_dl_dlopen+:} false; then :
12222 $as_echo_n "(cached) " >&6
12224 ac_check_lib_save_LIBS=$LIBS
12226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227 /* end confdefs.h. */
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12244 if ac_fn_c_try_link "$LINENO"; then :
12245 ac_cv_lib_dl_dlopen=yes
12247 ac_cv_lib_dl_dlopen=no
12249 rm -f core conftest.err conftest.$ac_objext \
12250 conftest$ac_exeext conftest.$ac_ext
12251 LIBS=$ac_check_lib_save_LIBS
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12255 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12256 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12259 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12260 if ${ac_cv_lib_svld_dlopen+:} false; then :
12261 $as_echo_n "(cached) " >&6
12263 ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-lsvld $LIBS"
12265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12283 if ac_fn_c_try_link "$LINENO"; then :
12284 ac_cv_lib_svld_dlopen=yes
12286 ac_cv_lib_svld_dlopen=no
12288 rm -f core conftest.err conftest.$ac_objext \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LIBS=$ac_check_lib_save_LIBS
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12293 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12294 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12298 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12299 if ${ac_cv_lib_dld_dld_link+:} false; then :
12300 $as_echo_n "(cached) " >&6
12302 ac_check_lib_save_LIBS=$LIBS
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12317 return dld_link ();
12322 if ac_fn_c_try_link "$LINENO"; then :
12323 ac_cv_lib_dld_dld_link=yes
12325 ac_cv_lib_dld_dld_link=no
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12332 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12333 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12334 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12355 if test "x$lt_cv_dlopen" != xno; then
12361 case $lt_cv_dlopen in
12363 save_CPPFLAGS="$CPPFLAGS"
12364 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12366 save_LDFLAGS="$LDFLAGS"
12367 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12370 LIBS="$lt_cv_dlopen_libs $LIBS"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12373 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12374 if ${lt_cv_dlopen_self+:} false; then :
12375 $as_echo_n "(cached) " >&6
12377 if test "$cross_compiling" = yes; then :
12378 lt_cv_dlopen_self=cross
12380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12381 lt_status=$lt_dlunknown
12382 cat > conftest.$ac_ext <<_LT_EOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12393 # define LT_DLGLOBAL RTLD_GLOBAL
12396 # define LT_DLGLOBAL DL_GLOBAL
12398 # define LT_DLGLOBAL 0
12402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403 find out it does not work in some platform. */
12404 #ifndef LT_DLLAZY_OR_NOW
12406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12409 # define LT_DLLAZY_OR_NOW DL_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_NOW
12415 # define LT_DLLAZY_OR_NOW DL_NOW
12417 # define LT_DLLAZY_OR_NOW 0
12424 /* When -fvisbility=hidden is used, assume the code has been annotated
12425 correspondingly for the symbols needed. */
12426 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12427 int fnord () __attribute__((visibility("default")));
12430 int fnord () { return 42; }
12433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434 int status = $lt_dlunknown;
12438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442 else puts (dlerror ());
12444 /* dlclose (self); */
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12453 (eval $ac_link) 2>&5
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12457 (./conftest; exit; ) >&5 2>/dev/null
12459 case x$lt_status in
12460 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12461 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12462 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12465 # compilation failed
12466 lt_cv_dlopen_self=no
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12474 $as_echo "$lt_cv_dlopen_self" >&6; }
12476 if test "x$lt_cv_dlopen_self" = xyes; then
12477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12479 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12480 if ${lt_cv_dlopen_self_static+:} false; then :
12481 $as_echo_n "(cached) " >&6
12483 if test "$cross_compiling" = yes; then :
12484 lt_cv_dlopen_self_static=cross
12486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12487 lt_status=$lt_dlunknown
12488 cat > conftest.$ac_ext <<_LT_EOF
12489 #line $LINENO "configure"
12490 #include "confdefs.h"
12499 # define LT_DLGLOBAL RTLD_GLOBAL
12502 # define LT_DLGLOBAL DL_GLOBAL
12504 # define LT_DLGLOBAL 0
12508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12509 find out it does not work in some platform. */
12510 #ifndef LT_DLLAZY_OR_NOW
12512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12515 # define LT_DLLAZY_OR_NOW DL_LAZY
12518 # define LT_DLLAZY_OR_NOW RTLD_NOW
12521 # define LT_DLLAZY_OR_NOW DL_NOW
12523 # define LT_DLLAZY_OR_NOW 0
12530 /* When -fvisbility=hidden is used, assume the code has been annotated
12531 correspondingly for the symbols needed. */
12532 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12533 int fnord () __attribute__((visibility("default")));
12536 int fnord () { return 42; }
12539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540 int status = $lt_dlunknown;
12544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12548 else puts (dlerror ());
12550 /* dlclose (self); */
12558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12559 (eval $ac_link) 2>&5
12561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12562 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12563 (./conftest; exit; ) >&5 2>/dev/null
12565 case x$lt_status in
12566 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12567 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12568 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12571 # compilation failed
12572 lt_cv_dlopen_self_static=no
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12580 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12583 CPPFLAGS="$save_CPPFLAGS"
12584 LDFLAGS="$save_LDFLAGS"
12589 case $lt_cv_dlopen_self in
12590 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12591 *) enable_dlopen_self=unknown ;;
12594 case $lt_cv_dlopen_self_static in
12595 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12596 *) enable_dlopen_self_static=unknown ;;
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12619 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12620 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12621 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12622 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12624 $as_echo "yes" >&6; }
12626 # FIXME - insert some real tests, host_os isn't really good enough
12629 if test -n "$STRIP" ; then
12630 striplib="$STRIP -x"
12631 old_striplib="$STRIP -S"
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641 $as_echo "no" >&6; }
12657 # Report which library types will actually be built
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12659 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12661 $as_echo "$can_build_shared" >&6; }
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12664 $as_echo_n "checking whether to build shared libraries... " >&6; }
12665 test "$can_build_shared" = "no" && enable_shared=no
12667 # On AIX, shared libraries and static libraries use the same namespace, and
12668 # are all built from PIC.
12671 test "$enable_shared" = yes && enable_static=no
12672 if test -n "$RANLIB"; then
12673 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12674 postinstall_cmds='$RANLIB $lib'
12679 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12680 test "$enable_shared" = yes && enable_static=no
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12685 $as_echo "$enable_shared" >&6; }
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12688 $as_echo_n "checking whether to build static libraries... " >&6; }
12689 # Make sure either enable_shared or enable_static is yes.
12690 test "$enable_shared" = yes || enable_static=yes
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12692 $as_echo "$enable_static" >&6; }
12699 ac_cpp='$CPP $CPPFLAGS'
12700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720 ac_config_commands="$ac_config_commands libtool"
12725 # Only expand once:
12735 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12736 if test -n "$ac_tool_prefix"; then
12737 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12738 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12742 $as_echo_n "(cached) " >&6
12744 case $PKG_CONFIG in
12746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12750 for as_dir in $PATH
12753 test -z "$as_dir" && as_dir=.
12754 for ac_exec_ext in '' $ac_executable_extensions; do
12755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12768 if test -n "$PKG_CONFIG"; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12770 $as_echo "$PKG_CONFIG" >&6; }
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12773 $as_echo "no" >&6; }
12778 if test -z "$ac_cv_path_PKG_CONFIG"; then
12779 ac_pt_PKG_CONFIG=$PKG_CONFIG
12780 # Extract the first word of "pkg-config", so it can be a program name with args.
12781 set dummy pkg-config; ac_word=$2
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783 $as_echo_n "checking for $ac_word... " >&6; }
12784 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12785 $as_echo_n "(cached) " >&6
12787 case $ac_pt_PKG_CONFIG in
12789 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793 for as_dir in $PATH
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12799 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12810 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12811 if test -n "$ac_pt_PKG_CONFIG"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12813 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12819 if test "x$ac_pt_PKG_CONFIG" = x; then
12822 case $cross_compiling:$ac_tool_warned in
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12826 ac_tool_warned=yes ;;
12828 PKG_CONFIG=$ac_pt_PKG_CONFIG
12831 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12835 if test -n "$PKG_CONFIG"; then
12836 _pkg_min_version=0.9.0
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12838 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12839 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12849 ac_header_dirent=no
12850 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12851 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12853 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12854 if eval \${$as_ac_Header+:} false; then :
12855 $as_echo_n "(cached) " >&6
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859 #include <sys/types.h>
12871 if ac_fn_c_try_compile "$LINENO"; then :
12872 eval "$as_ac_Header=yes"
12874 eval "$as_ac_Header=no"
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 eval ac_res=\$$as_ac_Header
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12880 $as_echo "$ac_res" >&6; }
12881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12882 cat >>confdefs.h <<_ACEOF
12883 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12886 ac_header_dirent=$ac_hdr; break
12890 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12891 if test $ac_header_dirent = dirent.h; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12893 $as_echo_n "checking for library containing opendir... " >&6; }
12894 if ${ac_cv_search_opendir+:} false; then :
12895 $as_echo_n "(cached) " >&6
12897 ac_func_search_save_LIBS=$LIBS
12898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* end confdefs.h. */
12901 /* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
12916 for ac_lib in '' dir; do
12917 if test -z "$ac_lib"; then
12918 ac_res="none required"
12921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 ac_cv_search_opendir=$ac_res
12926 rm -f core conftest.err conftest.$ac_objext \
12928 if ${ac_cv_search_opendir+:} false; then :
12932 if ${ac_cv_search_opendir+:} false; then :
12935 ac_cv_search_opendir=no
12937 rm conftest.$ac_ext
12938 LIBS=$ac_func_search_save_LIBS
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12941 $as_echo "$ac_cv_search_opendir" >&6; }
12942 ac_res=$ac_cv_search_opendir
12943 if test "$ac_res" != no; then :
12944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12950 $as_echo_n "checking for library containing opendir... " >&6; }
12951 if ${ac_cv_search_opendir+:} false; then :
12952 $as_echo_n "(cached) " >&6
12954 ac_func_search_save_LIBS=$LIBS
12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12956 /* end confdefs.h. */
12958 /* Override any GCC internal prototype to avoid an error.
12959 Use char because int might match the return type of a GCC
12960 builtin and then its argument prototype would still apply. */
12973 for ac_lib in '' x; do
12974 if test -z "$ac_lib"; then
12975 ac_res="none required"
12978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_search_opendir=$ac_res
12983 rm -f core conftest.err conftest.$ac_objext \
12985 if ${ac_cv_search_opendir+:} false; then :
12989 if ${ac_cv_search_opendir+:} false; then :
12992 ac_cv_search_opendir=no
12994 rm conftest.$ac_ext
12995 LIBS=$ac_func_search_save_LIBS
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12998 $as_echo "$ac_cv_search_opendir" >&6; }
12999 ac_res=$ac_cv_search_opendir
13000 if test "$ac_res" != no; then :
13001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13008 $as_echo_n "checking for ANSI C header files... " >&6; }
13009 if ${ac_cv_header_stdc+:} false; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <stdlib.h>
13015 #include <stdarg.h>
13016 #include <string.h>
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028 ac_cv_header_stdc=yes
13030 ac_cv_header_stdc=no
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 if test $ac_cv_header_stdc = yes; then
13035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h. */
13038 #include <string.h>
13041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13042 $EGREP "memchr" >/dev/null 2>&1; then :
13045 ac_cv_header_stdc=no
13051 if test $ac_cv_header_stdc = yes; then
13052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h. */
13055 #include <stdlib.h>
13058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13059 $EGREP "free" >/dev/null 2>&1; then :
13062 ac_cv_header_stdc=no
13068 if test $ac_cv_header_stdc = yes; then
13069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13070 if test "$cross_compiling" = yes; then :
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13076 #include <stdlib.h>
13077 #if ((' ' & 0x0FF) == 0x020)
13078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13081 # define ISLOWER(c) \
13082 (('a' <= (c) && (c) <= 'i') \
13083 || ('j' <= (c) && (c) <= 'r') \
13084 || ('s' <= (c) && (c) <= 'z'))
13085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13093 for (i = 0; i < 256; i++)
13094 if (XOR (islower (i), ISLOWER (i))
13095 || toupper (i) != TOUPPER (i))
13100 if ac_fn_c_try_run "$LINENO"; then :
13103 ac_cv_header_stdc=no
13105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13106 conftest.$ac_objext conftest.beam conftest.$ac_ext
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13112 $as_echo "$ac_cv_header_stdc" >&6; }
13113 if test $ac_cv_header_stdc = yes; then
13115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13119 for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
13120 ctype.h unistd.h locale.h byteswap.h endian.h
13122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13123 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13125 cat >>confdefs.h <<_ACEOF
13126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13134 for ac_header in uuid/uuid.h
13136 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
13138 cat >>confdefs.h <<_ACEOF
13139 #define HAVE_UUID_UUID_H 1
13143 as_fn_error $? "You need the uuid library." "$LINENO" 5
13148 ac_fn_c_check_header_mongrel "$LINENO" "libdevmapper.h" "ac_cv_header_libdevmapper_h" "$ac_includes_default"
13149 if test "x$ac_cv_header_libdevmapper_h" = xyes; then :
13152 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_clear in -luuid" >&5
13159 $as_echo_n "checking for uuid_clear in -luuid... " >&6; }
13160 if ${ac_cv_lib_uuid_uuid_clear+:} false; then :
13161 $as_echo_n "(cached) " >&6
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-luuid $LIBS"
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13168 /* Override any GCC internal prototype to avoid an error.
13169 Use char because int might match the return type of a GCC
13170 builtin and then its argument prototype would still apply. */
13174 char uuid_clear ();
13178 return uuid_clear ();
13183 if ac_fn_c_try_link "$LINENO"; then :
13184 ac_cv_lib_uuid_uuid_clear=yes
13186 ac_cv_lib_uuid_uuid_clear=no
13188 rm -f core conftest.err conftest.$ac_objext \
13189 conftest$ac_exeext conftest.$ac_ext
13190 LIBS=$ac_check_lib_save_LIBS
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_clear" >&5
13193 $as_echo "$ac_cv_lib_uuid_uuid_clear" >&6; }
13194 if test "x$ac_cv_lib_uuid_uuid_clear" = xyes; then :
13195 cat >>confdefs.h <<_ACEOF
13196 #define HAVE_LIBUUID 1
13199 LIBS="-luuid $LIBS"
13202 as_fn_error $? "You need the uuid library." "$LINENO" 5
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13210 $as_echo_n "checking for library containing clock_gettime... " >&6; }
13211 if ${ac_cv_search_clock_gettime+:} false; then :
13212 $as_echo_n "(cached) " >&6
13214 ac_func_search_save_LIBS=$LIBS
13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13224 char clock_gettime ();
13228 return clock_gettime ();
13233 for ac_lib in '' rt posix4; do
13234 if test -z "$ac_lib"; then
13235 ac_res="none required"
13238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13240 if ac_fn_c_try_link "$LINENO"; then :
13241 ac_cv_search_clock_gettime=$ac_res
13243 rm -f core conftest.err conftest.$ac_objext \
13245 if ${ac_cv_search_clock_gettime+:} false; then :
13249 if ${ac_cv_search_clock_gettime+:} false; then :
13252 ac_cv_search_clock_gettime=no
13254 rm conftest.$ac_ext
13255 LIBS=$ac_func_search_save_LIBS
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13258 $as_echo "$ac_cv_search_clock_gettime" >&6; }
13259 ac_res=$ac_cv_search_clock_gettime
13260 if test "$ac_res" != no; then :
13261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13265 for ac_func in posix_memalign clock_gettime
13267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13270 cat >>confdefs.h <<_ACEOF
13271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13278 if test "x$enable_largefile" = "xno" ; then
13279 as_fn_error $? "Building with --disable-largefile is not supported, it can cause data corruption." "$LINENO" 5
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13283 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13284 if ${ac_cv_c_const+:} false; then :
13285 $as_echo_n "(cached) " >&6
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13294 #ifndef __cplusplus
13295 /* Ultrix mips cc rejects this sort of thing. */
13296 typedef int charset[2];
13297 const charset cs = { 0, 0 };
13298 /* SunOS 4.1.1 cc rejects this. */
13299 char const *const *pcpcc;
13301 /* NEC SVR4.0.2 mips cc rejects this. */
13302 struct point {int x, y;};
13303 static struct point const zero = {0,0};
13304 /* AIX XL C 1.02.0.0 rejects this.
13305 It does not let you subtract one const X* pointer from another in
13306 an arm of an if-expression whose if-part is not a constant
13308 const char *g = "string";
13309 pcpcc = &g + (g ? g-g : 0);
13310 /* HPUX 7.0 cc rejects these. */
13312 ppc = (char**) pcpcc;
13313 pcpcc = (char const *const *) ppc;
13314 { /* SCO 3.2v4 cc rejects this sort of thing. */
13317 char const *s = 0 ? (char *) 0 : (char const *) 0;
13322 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13323 int x[] = {25, 17};
13324 const int *foo = &x[0];
13327 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13328 typedef const int *iptr;
13332 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13333 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13334 struct s { int j; const int *ap[3]; } bx;
13335 struct s *b = &bx; b->j = 5;
13337 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13338 const int foo = 10;
13339 if (!foo) return 0;
13341 return !cs[0] && !zero.x;
13348 if ac_fn_c_try_compile "$LINENO"; then :
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13356 $as_echo "$ac_cv_c_const" >&6; }
13357 if test $ac_cv_c_const = no; then
13359 $as_echo "#define const /**/" >>confdefs.h
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13364 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13365 if ${ac_cv_c_bigendian+:} false; then :
13366 $as_echo_n "(cached) " >&6
13368 ac_cv_c_bigendian=unknown
13369 # See if we're dealing with a universal compiler.
13370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13371 /* end confdefs.h. */
13372 #ifndef __APPLE_CC__
13373 not a universal capable compiler
13378 if ac_fn_c_try_compile "$LINENO"; then :
13380 # Check for potential -arch flags. It is not universal unless
13381 # there are at least two -arch flags with different values.
13384 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13385 if test -n "$ac_prev"; then
13387 i?86 | x86_64 | ppc | ppc64)
13388 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13391 ac_cv_c_bigendian=universal
13397 elif test "x$ac_word" = "x-arch"; then
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 if test $ac_cv_c_bigendian = unknown; then
13404 # See if sys/param.h defines the BYTE_ORDER macro.
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <sys/types.h>
13408 #include <sys/param.h>
13413 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13414 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13416 bogus endian macros
13423 if ac_fn_c_try_compile "$LINENO"; then :
13424 # It does; now see whether it defined to BIG_ENDIAN or not.
13425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426 /* end confdefs.h. */
13427 #include <sys/types.h>
13428 #include <sys/param.h>
13433 #if BYTE_ORDER != BIG_ENDIAN
13441 if ac_fn_c_try_compile "$LINENO"; then :
13442 ac_cv_c_bigendian=yes
13444 ac_cv_c_bigendian=no
13446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 if test $ac_cv_c_bigendian = unknown; then
13451 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 #include <limits.h>
13459 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13460 bogus endian macros
13467 if ac_fn_c_try_compile "$LINENO"; then :
13468 # It does; now see whether it defined to _BIG_ENDIAN or not.
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471 #include <limits.h>
13476 #ifndef _BIG_ENDIAN
13484 if ac_fn_c_try_compile "$LINENO"; then :
13485 ac_cv_c_bigendian=yes
13487 ac_cv_c_bigendian=no
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 if test $ac_cv_c_bigendian = unknown; then
13494 # Compile a test program.
13495 if test "$cross_compiling" = yes; then :
13496 # Try to guess by grepping values from an object file.
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 short int ascii_mm[] =
13500 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13501 short int ascii_ii[] =
13502 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13503 int use_ascii (int i) {
13504 return ascii_mm[i] + ascii_ii[i];
13506 short int ebcdic_ii[] =
13507 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13508 short int ebcdic_mm[] =
13509 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13510 int use_ebcdic (int i) {
13511 return ebcdic_mm[i] + ebcdic_ii[i];
13518 return use_ascii (foo) == use_ebcdic (foo);
13523 if ac_fn_c_try_compile "$LINENO"; then :
13524 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13525 ac_cv_c_bigendian=yes
13527 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13528 if test "$ac_cv_c_bigendian" = unknown; then
13529 ac_cv_c_bigendian=no
13531 # finding both strings is unlikely to happen, but who knows?
13532 ac_cv_c_bigendian=unknown
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13540 $ac_includes_default
13545 /* Are we little or big endian? From Harbison&Steele. */
13549 char c[sizeof (long int)];
13552 return u.c[sizeof (long int) - 1] == 1;
13558 if ac_fn_c_try_run "$LINENO"; then :
13559 ac_cv_c_bigendian=no
13561 ac_cv_c_bigendian=yes
13563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13564 conftest.$ac_objext conftest.beam conftest.$ac_ext
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13570 $as_echo "$ac_cv_c_bigendian" >&6; }
13571 case $ac_cv_c_bigendian in #(
13573 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13579 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13583 as_fn_error $? "unknown endianness
13584 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13587 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13588 if test "x$ac_cv_type_off_t" = xyes; then :
13592 cat >>confdefs.h <<_ACEOF
13593 #define off_t long int
13598 # Check whether --enable-largefile was given.
13599 if test "${enable_largefile+set}" = set; then :
13600 enableval=$enable_largefile;
13603 if test "$enable_largefile" != no; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13606 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13607 if ${ac_cv_sys_largefile_CC+:} false; then :
13608 $as_echo_n "(cached) " >&6
13610 ac_cv_sys_largefile_CC=no
13611 if test "$GCC" != yes; then
13614 # IRIX 6.2 and later do not support large files by default,
13615 # so use the C compiler's -n32 option if that helps.
13616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13617 /* end confdefs.h. */
13618 #include <sys/types.h>
13619 /* Check that off_t can represent 2**63 - 1 correctly.
13620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13621 since some C++ compilers masquerading as C compilers
13622 incorrectly reject 9223372036854775807. */
13623 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13625 && LARGE_OFF_T % 2147483647 == 1)
13635 if ac_fn_c_try_compile "$LINENO"; then :
13638 rm -f core conftest.err conftest.$ac_objext
13640 if ac_fn_c_try_compile "$LINENO"; then :
13641 ac_cv_sys_largefile_CC=' -n32'; break
13643 rm -f core conftest.err conftest.$ac_objext
13647 rm -f conftest.$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13651 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13652 if test "$ac_cv_sys_largefile_CC" != no; then
13653 CC=$CC$ac_cv_sys_largefile_CC
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13657 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13658 if ${ac_cv_sys_file_offset_bits+:} false; then :
13659 $as_echo_n "(cached) " >&6
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/types.h>
13665 /* Check that off_t can represent 2**63 - 1 correctly.
13666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13667 since some C++ compilers masquerading as C compilers
13668 incorrectly reject 9223372036854775807. */
13669 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13671 && LARGE_OFF_T % 2147483647 == 1)
13681 if ac_fn_c_try_compile "$LINENO"; then :
13682 ac_cv_sys_file_offset_bits=no; break
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687 #define _FILE_OFFSET_BITS 64
13688 #include <sys/types.h>
13689 /* Check that off_t can represent 2**63 - 1 correctly.
13690 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13691 since some C++ compilers masquerading as C compilers
13692 incorrectly reject 9223372036854775807. */
13693 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13694 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13695 && LARGE_OFF_T % 2147483647 == 1)
13705 if ac_fn_c_try_compile "$LINENO"; then :
13706 ac_cv_sys_file_offset_bits=64; break
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 ac_cv_sys_file_offset_bits=unknown
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13714 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13715 case $ac_cv_sys_file_offset_bits in #(
13718 cat >>confdefs.h <<_ACEOF
13719 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13724 if test $ac_cv_sys_file_offset_bits = unknown; then
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13726 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13727 if ${ac_cv_sys_large_files+:} false; then :
13728 $as_echo_n "(cached) " >&6
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #include <sys/types.h>
13734 /* Check that off_t can represent 2**63 - 1 correctly.
13735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13736 since some C++ compilers masquerading as C compilers
13737 incorrectly reject 9223372036854775807. */
13738 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13740 && LARGE_OFF_T % 2147483647 == 1)
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 ac_cv_sys_large_files=no; break
13753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13756 #define _LARGE_FILES 1
13757 #include <sys/types.h>
13758 /* Check that off_t can represent 2**63 - 1 correctly.
13759 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13760 since some C++ compilers masquerading as C compilers
13761 incorrectly reject 9223372036854775807. */
13762 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13763 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13764 && LARGE_OFF_T % 2147483647 == 1)
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 ac_cv_sys_large_files=1; break
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 ac_cv_sys_large_files=unknown
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13783 $as_echo "$ac_cv_sys_large_files" >&6; }
13784 case $ac_cv_sys_large_files in #(
13787 cat >>confdefs.h <<_ACEOF
13788 #define _LARGE_FILES $ac_cv_sys_large_files
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13799 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13800 if ${ac_cv_sys_largefile_source+:} false; then :
13801 $as_echo_n "(cached) " >&6
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 #include <sys/types.h> /* for off_t */
13811 int (*fp) (FILE *, off_t, int) = fseeko;
13812 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13817 if ac_fn_c_try_link "$LINENO"; then :
13818 ac_cv_sys_largefile_source=no; break
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824 #define _LARGEFILE_SOURCE 1
13825 #include <sys/types.h> /* for off_t */
13830 int (*fp) (FILE *, off_t, int) = fseeko;
13831 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13836 if ac_fn_c_try_link "$LINENO"; then :
13837 ac_cv_sys_largefile_source=1; break
13839 rm -f core conftest.err conftest.$ac_objext \
13840 conftest$ac_exeext conftest.$ac_ext
13841 ac_cv_sys_largefile_source=unknown
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13846 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13847 case $ac_cv_sys_largefile_source in #(
13850 cat >>confdefs.h <<_ACEOF
13851 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13857 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13858 # in glibc 2.1.3, but that breaks too many other things.
13859 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13860 if test $ac_cv_sys_largefile_source != unknown; then
13862 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13866 if test $ac_cv_c_compiler_gnu = yes; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13868 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
13869 if ${ac_cv_prog_gcc_traditional+:} false; then :
13870 $as_echo_n "(cached) " >&6
13872 ac_pattern="Autoconf.*'x'"
13873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13874 /* end confdefs.h. */
13878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13879 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13880 ac_cv_prog_gcc_traditional=yes
13882 ac_cv_prog_gcc_traditional=no
13887 if test $ac_cv_prog_gcc_traditional = no; then
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 #include <termio.h>
13893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13894 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13895 ac_cv_prog_gcc_traditional=yes
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13902 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13903 if test $ac_cv_prog_gcc_traditional = yes; then
13904 CC="$CC -traditional"
13908 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
13909 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_DECL_STRERROR_R $ac_have_decl
13919 for ac_func in strerror_r
13921 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
13922 if test "x$ac_cv_func_strerror_r" = xyes; then :
13923 cat >>confdefs.h <<_ACEOF
13924 #define HAVE_STRERROR_R 1
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
13931 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13932 if ${ac_cv_func_strerror_r_char_p+:} false; then :
13933 $as_echo_n "(cached) " >&6
13936 ac_cv_func_strerror_r_char_p=no
13937 if test $ac_cv_have_decl_strerror_r = yes; then
13938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h. */
13940 $ac_includes_default
13946 char x = *strerror_r (0, buf, sizeof buf);
13947 char *p = strerror_r (0, buf, sizeof buf);
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 ac_cv_func_strerror_r_char_p=yes
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 # strerror_r is not declared. Choose between
13960 # systems that have relatively inaccessible declarations for the
13961 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
13962 # former has a strerror_r that returns char*, while the latter
13963 # has a strerror_r that returns `int'.
13964 # This test should segfault on the DEC system.
13965 if test "$cross_compiling" = yes; then :
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970 $ac_includes_default
13971 extern char *strerror_r ();
13976 char x = *strerror_r (0, buf, sizeof buf);
13977 return ! isalpha (x);
13982 if ac_fn_c_try_run "$LINENO"; then :
13983 ac_cv_func_strerror_r_char_p=yes
13985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13986 conftest.$ac_objext conftest.beam conftest.$ac_ext
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13993 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13994 if test $ac_cv_func_strerror_r_char_p = yes; then
13996 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
14005 [\\/$]* | ?:[\\/]*) ;;
14006 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
14011 $as_echo_n "checking whether NLS is requested... " >&6; }
14012 # Check whether --enable-nls was given.
14013 if test "${enable_nls+set}" = set; then :
14014 enableval=$enable_nls; USE_NLS=$enableval
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14020 $as_echo "$USE_NLS" >&6; }
14027 # Prepare PATH_SEPARATOR.
14028 # The user is always right.
14029 if test "${PATH_SEPARATOR+set}" != set; then
14030 echo "#! /bin/sh" >conf$$.sh
14031 echo "exit 0" >>conf$$.sh
14033 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14041 # Find out how to test for executable files. Don't use a zero-byte file,
14042 # as systems may use methods other than mode bits to determine executability.
14043 cat >conf$$.file <<_ASEOF
14047 chmod +x conf$$.file
14048 if test -x conf$$.file >/dev/null 2>&1; then
14049 ac_executable_p="test -x"
14051 ac_executable_p="test -f"
14055 # Extract the first word of "msgfmt", so it can be a program name with args.
14056 set dummy msgfmt; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_MSGFMT+:} false; then :
14060 $as_echo_n "(cached) " >&6
14064 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14067 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14068 for ac_dir in $PATH; do
14070 test -z "$ac_dir" && ac_dir=.
14071 for ac_exec_ext in '' $ac_executable_extensions; do
14072 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14073 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14074 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
14075 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14076 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
14083 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14087 MSGFMT="$ac_cv_path_MSGFMT"
14088 if test "$MSGFMT" != ":"; then
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
14090 $as_echo "$MSGFMT" >&6; }
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14093 $as_echo "no" >&6; }
14096 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14097 set dummy gmsgfmt; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if ${ac_cv_path_GMSGFMT+:} false; then :
14101 $as_echo_n "(cached) " >&6
14105 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14109 for as_dir in $PATH
14112 test -z "$as_dir" && as_dir=.
14113 for ac_exec_ext in '' $ac_executable_extensions; do
14114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14115 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14123 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14127 GMSGFMT=$ac_cv_path_GMSGFMT
14128 if test -n "$GMSGFMT"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
14130 $as_echo "$GMSGFMT" >&6; }
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14138 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14139 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
14140 *) MSGFMT_015=$MSGFMT ;;
14143 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14144 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
14145 *) GMSGFMT_015=$GMSGFMT ;;
14150 # Prepare PATH_SEPARATOR.
14151 # The user is always right.
14152 if test "${PATH_SEPARATOR+set}" != set; then
14153 echo "#! /bin/sh" >conf$$.sh
14154 echo "exit 0" >>conf$$.sh
14156 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14164 # Find out how to test for executable files. Don't use a zero-byte file,
14165 # as systems may use methods other than mode bits to determine executability.
14166 cat >conf$$.file <<_ASEOF
14170 chmod +x conf$$.file
14171 if test -x conf$$.file >/dev/null 2>&1; then
14172 ac_executable_p="test -x"
14174 ac_executable_p="test -f"
14178 # Extract the first word of "xgettext", so it can be a program name with args.
14179 set dummy xgettext; ac_word=$2
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14181 $as_echo_n "checking for $ac_word... " >&6; }
14182 if ${ac_cv_path_XGETTEXT+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 case "$XGETTEXT" in
14187 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14190 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14191 for ac_dir in $PATH; do
14193 test -z "$ac_dir" && ac_dir=.
14194 for ac_exec_ext in '' $ac_executable_extensions; do
14195 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14196 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14197 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
14198 (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
14199 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
14206 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14210 XGETTEXT="$ac_cv_path_XGETTEXT"
14211 if test "$XGETTEXT" != ":"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
14213 $as_echo "$XGETTEXT" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14221 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
14222 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
14223 *) XGETTEXT_015=$XGETTEXT ;;
14228 # Prepare PATH_SEPARATOR.
14229 # The user is always right.
14230 if test "${PATH_SEPARATOR+set}" != set; then
14231 echo "#! /bin/sh" >conf$$.sh
14232 echo "exit 0" >>conf$$.sh
14234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14242 # Find out how to test for executable files. Don't use a zero-byte file,
14243 # as systems may use methods other than mode bits to determine executability.
14244 cat >conf$$.file <<_ASEOF
14248 chmod +x conf$$.file
14249 if test -x conf$$.file >/dev/null 2>&1; then
14250 ac_executable_p="test -x"
14252 ac_executable_p="test -f"
14256 # Extract the first word of "msgmerge", so it can be a program name with args.
14257 set dummy msgmerge; ac_word=$2
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14259 $as_echo_n "checking for $ac_word... " >&6; }
14260 if ${ac_cv_path_MSGMERGE+:} false; then :
14261 $as_echo_n "(cached) " >&6
14263 case "$MSGMERGE" in
14265 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
14268 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
14269 for ac_dir in $PATH; do
14271 test -z "$ac_dir" && ac_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
14273 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
14274 echo "$as_me: trying $ac_dir/$ac_word..." >&5
14275 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
14276 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
14283 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
14287 MSGMERGE="$ac_cv_path_MSGMERGE"
14288 if test "$MSGMERGE" != ":"; then
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
14290 $as_echo "$MSGMERGE" >&6; }
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14293 $as_echo "no" >&6; }
14297 test -n "$localedir" || localedir='${datadir}/locale'
14300 ac_config_commands="$ac_config_commands po-directories"
14304 if test "X$prefix" = "XNONE"; then
14305 acl_final_prefix="$ac_default_prefix"
14307 acl_final_prefix="$prefix"
14309 if test "X$exec_prefix" = "XNONE"; then
14310 acl_final_exec_prefix='${prefix}'
14312 acl_final_exec_prefix="$exec_prefix"
14314 acl_save_prefix="$prefix"
14315 prefix="$acl_final_prefix"
14316 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14317 prefix="$acl_save_prefix"
14320 # Check whether --with-gnu-ld was given.
14321 if test "${with_gnu_ld+set}" = set; then :
14322 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14327 # Prepare PATH_SEPARATOR.
14328 # The user is always right.
14329 if test "${PATH_SEPARATOR+set}" != set; then
14330 echo "#! /bin/sh" >conf$$.sh
14331 echo "exit 0" >>conf$$.sh
14333 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14341 if test "$GCC" = yes; then
14342 # Check if gcc -print-prog-name=ld gives a path.
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
14344 $as_echo_n "checking for ld used by GCC... " >&6; }
14347 # gcc leaves a trailing carriage return which upsets mingw
14348 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14350 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14353 # Accept absolute paths.
14354 [\\/]* | [A-Za-z]:[\\/]*)
14355 re_direlt='/[^/][^/]*/\.\./'
14356 # Canonicalize the path of ld
14357 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
14358 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14359 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
14361 test -z "$LD" && LD="$ac_prog"
14364 # If it fails, then pretend we aren't using GCC.
14368 # If it is relative, then search for the first ld in PATH.
14369 with_gnu_ld=unknown
14372 elif test "$with_gnu_ld" = yes; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14374 $as_echo_n "checking for GNU ld... " >&6; }
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14377 $as_echo_n "checking for non-GNU ld... " >&6; }
14379 if ${acl_cv_path_LD+:} false; then :
14380 $as_echo_n "(cached) " >&6
14382 if test -z "$LD"; then
14383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
14384 for ac_dir in $PATH; do
14385 test -z "$ac_dir" && ac_dir=.
14386 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14387 acl_cv_path_LD="$ac_dir/$ac_prog"
14388 # Check to see if the program is GNU ld. I'd rather use --version,
14389 # but apparently some GNU ld's only accept -v.
14390 # Break only if it was the GNU/non-GNU ld that we prefer.
14391 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
14392 *GNU* | *'with BFD'*)
14393 test "$with_gnu_ld" != no && break ;;
14395 test "$with_gnu_ld" != yes && break ;;
14401 acl_cv_path_LD="$LD" # Let the user override the test with a path.
14405 LD="$acl_cv_path_LD"
14406 if test -n "$LD"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14408 $as_echo "$LD" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14411 $as_echo "no" >&6; }
14413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14416 if ${acl_cv_prog_gnu_ld+:} false; then :
14417 $as_echo_n "(cached) " >&6
14419 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
14420 case `$LD -v 2>&1 </dev/null` in
14421 *GNU* | *'with BFD'*)
14422 acl_cv_prog_gnu_ld=yes ;;
14424 acl_cv_prog_gnu_ld=no ;;
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14428 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
14429 with_gnu_ld=$acl_cv_prog_gnu_ld
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14435 $as_echo_n "checking for shared library run path origin... " >&6; }
14436 if ${acl_cv_rpath+:} false; then :
14437 $as_echo_n "(cached) " >&6
14440 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14441 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14443 rm -f ./conftest.sh
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14448 $as_echo "$acl_cv_rpath" >&6; }
14450 libext="$acl_cv_libext"
14451 shlibext="$acl_cv_shlibext"
14452 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14453 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14454 hardcode_direct="$acl_cv_hardcode_direct"
14455 hardcode_minus_L="$acl_cv_hardcode_minus_L"
14456 # Check whether --enable-rpath was given.
14457 if test "${enable_rpath+set}" = set; then :
14458 enableval=$enable_rpath; :
14466 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14467 if test -n "$searchpath"; then
14468 acl_save_IFS="${IFS= }"; IFS=":"
14469 for searchdir in $searchpath; do
14470 if test -d "$searchdir"; then
14471 case "$searchdir" in
14472 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14473 *) searchdir=`cd "$searchdir" && pwd`
14474 case "$searchdir" in
14475 */lib64 ) acl_libdirstem=lib64 ;;
14480 IFS="$acl_save_IFS"
14492 acl_save_prefix="$prefix"
14493 prefix="$acl_final_prefix"
14494 acl_save_exec_prefix="$exec_prefix"
14495 exec_prefix="$acl_final_exec_prefix"
14497 eval additional_includedir=\"$includedir\"
14498 eval additional_libdir=\"$libdir\"
14500 exec_prefix="$acl_save_exec_prefix"
14501 prefix="$acl_save_prefix"
14504 # Check whether --with-libiconv-prefix was given.
14505 if test "${with_libiconv_prefix+set}" = set; then :
14506 withval=$with_libiconv_prefix;
14507 if test "X$withval" = "Xno"; then
14510 if test "X$withval" = "X"; then
14512 acl_save_prefix="$prefix"
14513 prefix="$acl_final_prefix"
14514 acl_save_exec_prefix="$exec_prefix"
14515 exec_prefix="$acl_final_exec_prefix"
14517 eval additional_includedir=\"$includedir\"
14518 eval additional_libdir=\"$libdir\"
14520 exec_prefix="$acl_save_exec_prefix"
14521 prefix="$acl_save_prefix"
14524 additional_includedir="$withval/include"
14525 additional_libdir="$withval/$acl_libdirstem"
14536 names_already_handled=
14537 names_next_round='iconv '
14538 while test -n "$names_next_round"; do
14539 names_this_round="$names_next_round"
14541 for name in $names_this_round; do
14543 for n in $names_already_handled; do
14544 if test "$n" = "$name"; then
14545 already_handled=yes
14549 if test -z "$already_handled"; then
14550 names_already_handled="$names_already_handled $name"
14551 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
14552 eval value=\"\$HAVE_LIB$uppername\"
14553 if test -n "$value"; then
14554 if test "$value" = yes; then
14555 eval value=\"\$LIB$uppername\"
14556 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
14557 eval value=\"\$LTLIB$uppername\"
14558 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
14567 if test $use_additional = yes; then
14568 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14569 found_dir="$additional_libdir"
14570 found_so="$additional_libdir/lib$name.$shlibext"
14571 if test -f "$additional_libdir/lib$name.la"; then
14572 found_la="$additional_libdir/lib$name.la"
14575 if test -f "$additional_libdir/lib$name.$libext"; then
14576 found_dir="$additional_libdir"
14577 found_a="$additional_libdir/lib$name.$libext"
14578 if test -f "$additional_libdir/lib$name.la"; then
14579 found_la="$additional_libdir/lib$name.la"
14584 if test "X$found_dir" = "X"; then
14585 for x in $LDFLAGS $LTLIBICONV; do
14587 acl_save_prefix="$prefix"
14588 prefix="$acl_final_prefix"
14589 acl_save_exec_prefix="$exec_prefix"
14590 exec_prefix="$acl_final_exec_prefix"
14592 exec_prefix="$acl_save_exec_prefix"
14593 prefix="$acl_save_prefix"
14597 dir=`echo "X$x" | sed -e 's/^X-L//'`
14598 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14600 found_so="$dir/lib$name.$shlibext"
14601 if test -f "$dir/lib$name.la"; then
14602 found_la="$dir/lib$name.la"
14605 if test -f "$dir/lib$name.$libext"; then
14607 found_a="$dir/lib$name.$libext"
14608 if test -f "$dir/lib$name.la"; then
14609 found_la="$dir/lib$name.la"
14615 if test "X$found_dir" != "X"; then
14620 if test "X$found_dir" != "X"; then
14621 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
14622 if test "X$found_so" != "X"; then
14623 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14624 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14627 for x in $ltrpathdirs; do
14628 if test "X$x" = "X$found_dir"; then
14633 if test -z "$haveit"; then
14634 ltrpathdirs="$ltrpathdirs $found_dir"
14636 if test "$hardcode_direct" = yes; then
14637 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14639 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14642 for x in $rpathdirs; do
14643 if test "X$x" = "X$found_dir"; then
14648 if test -z "$haveit"; then
14649 rpathdirs="$rpathdirs $found_dir"
14653 for x in $LDFLAGS $LIBICONV; do
14655 acl_save_prefix="$prefix"
14656 prefix="$acl_final_prefix"
14657 acl_save_exec_prefix="$exec_prefix"
14658 exec_prefix="$acl_final_exec_prefix"
14660 exec_prefix="$acl_save_exec_prefix"
14661 prefix="$acl_save_prefix"
14663 if test "X$x" = "X-L$found_dir"; then
14668 if test -z "$haveit"; then
14669 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
14671 if test "$hardcode_minus_L" != no; then
14672 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
14674 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14680 if test "X$found_a" != "X"; then
14681 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
14683 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
14686 additional_includedir=
14687 case "$found_dir" in
14688 */$acl_libdirstem | */$acl_libdirstem/)
14689 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14690 additional_includedir="$basedir/include"
14693 if test "X$additional_includedir" != "X"; then
14694 if test "X$additional_includedir" != "X/usr/include"; then
14696 if test "X$additional_includedir" = "X/usr/local/include"; then
14697 if test -n "$GCC"; then
14699 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14703 if test -z "$haveit"; then
14704 for x in $CPPFLAGS $INCICONV; do
14706 acl_save_prefix="$prefix"
14707 prefix="$acl_final_prefix"
14708 acl_save_exec_prefix="$exec_prefix"
14709 exec_prefix="$acl_final_exec_prefix"
14711 exec_prefix="$acl_save_exec_prefix"
14712 prefix="$acl_save_prefix"
14714 if test "X$x" = "X-I$additional_includedir"; then
14719 if test -z "$haveit"; then
14720 if test -d "$additional_includedir"; then
14721 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
14727 if test -n "$found_la"; then
14728 save_libdir="$libdir"
14729 case "$found_la" in
14730 */* | *\\*) . "$found_la" ;;
14731 *) . "./$found_la" ;;
14733 libdir="$save_libdir"
14734 for dep in $dependency_libs; do
14737 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14738 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14740 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14741 if test -n "$GCC"; then
14743 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14747 if test -z "$haveit"; then
14749 for x in $LDFLAGS $LIBICONV; do
14751 acl_save_prefix="$prefix"
14752 prefix="$acl_final_prefix"
14753 acl_save_exec_prefix="$exec_prefix"
14754 exec_prefix="$acl_final_exec_prefix"
14756 exec_prefix="$acl_save_exec_prefix"
14757 prefix="$acl_save_prefix"
14759 if test "X$x" = "X-L$additional_libdir"; then
14764 if test -z "$haveit"; then
14765 if test -d "$additional_libdir"; then
14766 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
14770 for x in $LDFLAGS $LTLIBICONV; do
14772 acl_save_prefix="$prefix"
14773 prefix="$acl_final_prefix"
14774 acl_save_exec_prefix="$exec_prefix"
14775 exec_prefix="$acl_final_exec_prefix"
14777 exec_prefix="$acl_save_exec_prefix"
14778 prefix="$acl_save_prefix"
14780 if test "X$x" = "X-L$additional_libdir"; then
14785 if test -z "$haveit"; then
14786 if test -d "$additional_libdir"; then
14787 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
14794 dir=`echo "X$dep" | sed -e 's/^X-R//'`
14795 if test "$enable_rpath" != no; then
14797 for x in $rpathdirs; do
14798 if test "X$x" = "X$dir"; then
14803 if test -z "$haveit"; then
14804 rpathdirs="$rpathdirs $dir"
14807 for x in $ltrpathdirs; do
14808 if test "X$x" = "X$dir"; then
14813 if test -z "$haveit"; then
14814 ltrpathdirs="$ltrpathdirs $dir"
14819 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14822 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14825 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
14826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
14832 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
14833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
14839 if test "X$rpathdirs" != "X"; then
14840 if test -n "$hardcode_libdir_separator"; then
14842 for found_dir in $rpathdirs; do
14843 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14845 acl_save_libdir="$libdir"
14847 eval flag=\"$hardcode_libdir_flag_spec\"
14848 libdir="$acl_save_libdir"
14849 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14851 for found_dir in $rpathdirs; do
14852 acl_save_libdir="$libdir"
14853 libdir="$found_dir"
14854 eval flag=\"$hardcode_libdir_flag_spec\"
14855 libdir="$acl_save_libdir"
14856 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
14860 if test "X$ltrpathdirs" != "X"; then
14861 for found_dir in $ltrpathdirs; do
14862 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
14884 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
14885 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
14886 $as_echo_n "(cached) " >&6
14888 gt_save_LIBS="$LIBS"
14889 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14891 /* end confdefs.h. */
14892 #include <CoreFoundation/CFPreferences.h>
14896 CFPreferencesCopyAppValue(NULL, NULL)
14901 if ac_fn_c_try_link "$LINENO"; then :
14902 gt_cv_func_CFPreferencesCopyAppValue=yes
14904 gt_cv_func_CFPreferencesCopyAppValue=no
14906 rm -f core conftest.err conftest.$ac_objext \
14907 conftest$ac_exeext conftest.$ac_ext
14908 LIBS="$gt_save_LIBS"
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
14911 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
14912 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
14914 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
14918 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
14919 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
14920 $as_echo_n "(cached) " >&6
14922 gt_save_LIBS="$LIBS"
14923 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <CoreFoundation/CFLocale.h>
14930 CFLocaleCopyCurrent();
14935 if ac_fn_c_try_link "$LINENO"; then :
14936 gt_cv_func_CFLocaleCopyCurrent=yes
14938 gt_cv_func_CFLocaleCopyCurrent=no
14940 rm -f core conftest.err conftest.$ac_objext \
14941 conftest$ac_exeext conftest.$ac_ext
14942 LIBS="$gt_save_LIBS"
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
14945 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
14946 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14948 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
14952 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
14953 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
14965 if test "$USE_NLS" = "yes"; then
14966 gt_use_preinstalled_gnugettext=no
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
14974 $as_echo_n "checking for GNU gettext in libc... " >&6; }
14975 if ${gt_cv_func_gnugettext2_libc+:} false; then :
14976 $as_echo_n "(cached) " >&6
14978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979 /* end confdefs.h. */
14980 #include <libintl.h>
14981 extern int _nl_msg_cat_cntr;
14982 extern int *_nl_domain_bindings;
14986 bindtextdomain ("", "");
14987 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
14992 if ac_fn_c_try_link "$LINENO"; then :
14993 gt_cv_func_gnugettext2_libc=yes
14995 gt_cv_func_gnugettext2_libc=no
14997 rm -f core conftest.err conftest.$ac_objext \
14998 conftest$ac_exeext conftest.$ac_ext
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libc" >&5
15001 $as_echo "$gt_cv_func_gnugettext2_libc" >&6; }
15003 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
15009 am_save_CPPFLAGS="$CPPFLAGS"
15011 for element in $INCICONV; do
15013 for x in $CPPFLAGS; do
15015 acl_save_prefix="$prefix"
15016 prefix="$acl_final_prefix"
15017 acl_save_exec_prefix="$exec_prefix"
15018 exec_prefix="$acl_final_exec_prefix"
15020 exec_prefix="$acl_save_exec_prefix"
15021 prefix="$acl_save_prefix"
15023 if test "X$x" = "X$element"; then
15028 if test -z "$haveit"; then
15029 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
15035 $as_echo_n "checking for iconv... " >&6; }
15036 if ${am_cv_func_iconv+:} false; then :
15037 $as_echo_n "(cached) " >&6
15040 am_cv_func_iconv="no, consider installing GNU libiconv"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 #include <stdlib.h>
15049 iconv_t cd = iconv_open("","");
15050 iconv(cd,NULL,NULL,NULL,NULL);
15056 if ac_fn_c_try_link "$LINENO"; then :
15057 am_cv_func_iconv=yes
15059 rm -f core conftest.err conftest.$ac_objext \
15060 conftest$ac_exeext conftest.$ac_ext
15061 if test "$am_cv_func_iconv" != yes; then
15062 am_save_LIBS="$LIBS"
15063 LIBS="$LIBS $LIBICONV"
15064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065 /* end confdefs.h. */
15066 #include <stdlib.h>
15071 iconv_t cd = iconv_open("","");
15072 iconv(cd,NULL,NULL,NULL,NULL);
15078 if ac_fn_c_try_link "$LINENO"; then :
15079 am_cv_lib_iconv=yes
15080 am_cv_func_iconv=yes
15082 rm -f core conftest.err conftest.$ac_objext \
15083 conftest$ac_exeext conftest.$ac_ext
15084 LIBS="$am_save_LIBS"
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
15089 $as_echo "$am_cv_func_iconv" >&6; }
15090 if test "$am_cv_func_iconv" = yes; then
15092 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
15095 if test "$am_cv_lib_iconv" = yes; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
15097 $as_echo_n "checking how to link with libiconv... " >&6; }
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
15099 $as_echo "$LIBICONV" >&6; }
15101 CPPFLAGS="$am_save_CPPFLAGS"
15114 acl_save_prefix="$prefix"
15115 prefix="$acl_final_prefix"
15116 acl_save_exec_prefix="$exec_prefix"
15117 exec_prefix="$acl_final_exec_prefix"
15119 eval additional_includedir=\"$includedir\"
15120 eval additional_libdir=\"$libdir\"
15122 exec_prefix="$acl_save_exec_prefix"
15123 prefix="$acl_save_prefix"
15126 # Check whether --with-libintl-prefix was given.
15127 if test "${with_libintl_prefix+set}" = set; then :
15128 withval=$with_libintl_prefix;
15129 if test "X$withval" = "Xno"; then
15132 if test "X$withval" = "X"; then
15134 acl_save_prefix="$prefix"
15135 prefix="$acl_final_prefix"
15136 acl_save_exec_prefix="$exec_prefix"
15137 exec_prefix="$acl_final_exec_prefix"
15139 eval additional_includedir=\"$includedir\"
15140 eval additional_libdir=\"$libdir\"
15142 exec_prefix="$acl_save_exec_prefix"
15143 prefix="$acl_save_prefix"
15146 additional_includedir="$withval/include"
15147 additional_libdir="$withval/$acl_libdirstem"
15158 names_already_handled=
15159 names_next_round='intl '
15160 while test -n "$names_next_round"; do
15161 names_this_round="$names_next_round"
15163 for name in $names_this_round; do
15165 for n in $names_already_handled; do
15166 if test "$n" = "$name"; then
15167 already_handled=yes
15171 if test -z "$already_handled"; then
15172 names_already_handled="$names_already_handled $name"
15173 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15174 eval value=\"\$HAVE_LIB$uppername\"
15175 if test -n "$value"; then
15176 if test "$value" = yes; then
15177 eval value=\"\$LIB$uppername\"
15178 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
15179 eval value=\"\$LTLIB$uppername\"
15180 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
15189 if test $use_additional = yes; then
15190 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15191 found_dir="$additional_libdir"
15192 found_so="$additional_libdir/lib$name.$shlibext"
15193 if test -f "$additional_libdir/lib$name.la"; then
15194 found_la="$additional_libdir/lib$name.la"
15197 if test -f "$additional_libdir/lib$name.$libext"; then
15198 found_dir="$additional_libdir"
15199 found_a="$additional_libdir/lib$name.$libext"
15200 if test -f "$additional_libdir/lib$name.la"; then
15201 found_la="$additional_libdir/lib$name.la"
15206 if test "X$found_dir" = "X"; then
15207 for x in $LDFLAGS $LTLIBINTL; do
15209 acl_save_prefix="$prefix"
15210 prefix="$acl_final_prefix"
15211 acl_save_exec_prefix="$exec_prefix"
15212 exec_prefix="$acl_final_exec_prefix"
15214 exec_prefix="$acl_save_exec_prefix"
15215 prefix="$acl_save_prefix"
15219 dir=`echo "X$x" | sed -e 's/^X-L//'`
15220 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15222 found_so="$dir/lib$name.$shlibext"
15223 if test -f "$dir/lib$name.la"; then
15224 found_la="$dir/lib$name.la"
15227 if test -f "$dir/lib$name.$libext"; then
15229 found_a="$dir/lib$name.$libext"
15230 if test -f "$dir/lib$name.la"; then
15231 found_la="$dir/lib$name.la"
15237 if test "X$found_dir" != "X"; then
15242 if test "X$found_dir" != "X"; then
15243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
15244 if test "X$found_so" != "X"; then
15245 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15246 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15249 for x in $ltrpathdirs; do
15250 if test "X$x" = "X$found_dir"; then
15255 if test -z "$haveit"; then
15256 ltrpathdirs="$ltrpathdirs $found_dir"
15258 if test "$hardcode_direct" = yes; then
15259 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15261 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15262 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15264 for x in $rpathdirs; do
15265 if test "X$x" = "X$found_dir"; then
15270 if test -z "$haveit"; then
15271 rpathdirs="$rpathdirs $found_dir"
15275 for x in $LDFLAGS $LIBINTL; do
15277 acl_save_prefix="$prefix"
15278 prefix="$acl_final_prefix"
15279 acl_save_exec_prefix="$exec_prefix"
15280 exec_prefix="$acl_final_exec_prefix"
15282 exec_prefix="$acl_save_exec_prefix"
15283 prefix="$acl_save_prefix"
15285 if test "X$x" = "X-L$found_dir"; then
15290 if test -z "$haveit"; then
15291 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
15293 if test "$hardcode_minus_L" != no; then
15294 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
15296 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15302 if test "X$found_a" != "X"; then
15303 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
15305 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
15308 additional_includedir=
15309 case "$found_dir" in
15310 */$acl_libdirstem | */$acl_libdirstem/)
15311 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15312 additional_includedir="$basedir/include"
15315 if test "X$additional_includedir" != "X"; then
15316 if test "X$additional_includedir" != "X/usr/include"; then
15318 if test "X$additional_includedir" = "X/usr/local/include"; then
15319 if test -n "$GCC"; then
15321 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15325 if test -z "$haveit"; then
15326 for x in $CPPFLAGS $INCINTL; do
15328 acl_save_prefix="$prefix"
15329 prefix="$acl_final_prefix"
15330 acl_save_exec_prefix="$exec_prefix"
15331 exec_prefix="$acl_final_exec_prefix"
15333 exec_prefix="$acl_save_exec_prefix"
15334 prefix="$acl_save_prefix"
15336 if test "X$x" = "X-I$additional_includedir"; then
15341 if test -z "$haveit"; then
15342 if test -d "$additional_includedir"; then
15343 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
15349 if test -n "$found_la"; then
15350 save_libdir="$libdir"
15351 case "$found_la" in
15352 */* | *\\*) . "$found_la" ;;
15353 *) . "./$found_la" ;;
15355 libdir="$save_libdir"
15356 for dep in $dependency_libs; do
15359 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15360 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15362 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15363 if test -n "$GCC"; then
15365 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15369 if test -z "$haveit"; then
15371 for x in $LDFLAGS $LIBINTL; do
15373 acl_save_prefix="$prefix"
15374 prefix="$acl_final_prefix"
15375 acl_save_exec_prefix="$exec_prefix"
15376 exec_prefix="$acl_final_exec_prefix"
15378 exec_prefix="$acl_save_exec_prefix"
15379 prefix="$acl_save_prefix"
15381 if test "X$x" = "X-L$additional_libdir"; then
15386 if test -z "$haveit"; then
15387 if test -d "$additional_libdir"; then
15388 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
15392 for x in $LDFLAGS $LTLIBINTL; do
15394 acl_save_prefix="$prefix"
15395 prefix="$acl_final_prefix"
15396 acl_save_exec_prefix="$exec_prefix"
15397 exec_prefix="$acl_final_exec_prefix"
15399 exec_prefix="$acl_save_exec_prefix"
15400 prefix="$acl_save_prefix"
15402 if test "X$x" = "X-L$additional_libdir"; then
15407 if test -z "$haveit"; then
15408 if test -d "$additional_libdir"; then
15409 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
15416 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15417 if test "$enable_rpath" != no; then
15419 for x in $rpathdirs; do
15420 if test "X$x" = "X$dir"; then
15425 if test -z "$haveit"; then
15426 rpathdirs="$rpathdirs $dir"
15429 for x in $ltrpathdirs; do
15430 if test "X$x" = "X$dir"; then
15435 if test -z "$haveit"; then
15436 ltrpathdirs="$ltrpathdirs $dir"
15441 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15444 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15447 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
15448 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
15454 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
15455 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
15461 if test "X$rpathdirs" != "X"; then
15462 if test -n "$hardcode_libdir_separator"; then
15464 for found_dir in $rpathdirs; do
15465 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15467 acl_save_libdir="$libdir"
15469 eval flag=\"$hardcode_libdir_flag_spec\"
15470 libdir="$acl_save_libdir"
15471 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15473 for found_dir in $rpathdirs; do
15474 acl_save_libdir="$libdir"
15475 libdir="$found_dir"
15476 eval flag=\"$hardcode_libdir_flag_spec\"
15477 libdir="$acl_save_libdir"
15478 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
15482 if test "X$ltrpathdirs" != "X"; then
15483 for found_dir in $ltrpathdirs; do
15484 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
15489 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
15490 if ${gt_cv_func_gnugettext2_libintl+:} false; then :
15491 $as_echo_n "(cached) " >&6
15493 gt_save_CPPFLAGS="$CPPFLAGS"
15494 CPPFLAGS="$CPPFLAGS $INCINTL"
15495 gt_save_LIBS="$LIBS"
15496 LIBS="$LIBS $LIBINTL"
15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15498 /* end confdefs.h. */
15499 #include <libintl.h>
15500 extern int _nl_msg_cat_cntr;
15505 const char *_nl_expand_alias (const char *);
15509 bindtextdomain ("", "");
15510 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15515 if ac_fn_c_try_link "$LINENO"; then :
15516 gt_cv_func_gnugettext2_libintl=yes
15518 gt_cv_func_gnugettext2_libintl=no
15520 rm -f core conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
15523 LIBS="$LIBS $LIBICONV"
15524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15525 /* end confdefs.h. */
15526 #include <libintl.h>
15527 extern int _nl_msg_cat_cntr;
15532 const char *_nl_expand_alias (const char *);
15536 bindtextdomain ("", "");
15537 return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
15542 if ac_fn_c_try_link "$LINENO"; then :
15543 LIBINTL="$LIBINTL $LIBICONV"
15544 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
15545 gt_cv_func_gnugettext2_libintl=yes
15548 rm -f core conftest.err conftest.$ac_objext \
15549 conftest$ac_exeext conftest.$ac_ext
15551 CPPFLAGS="$gt_save_CPPFLAGS"
15552 LIBS="$gt_save_LIBS"
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext2_libintl" >&5
15555 $as_echo "$gt_cv_func_gnugettext2_libintl" >&6; }
15558 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
15559 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
15560 && test "$PACKAGE" != gettext-runtime \
15561 && test "$PACKAGE" != gettext-tools; }; then
15562 gt_use_preinstalled_gnugettext=yes
15571 if test -n "$INTL_MACOSX_LIBS"; then
15572 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15573 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15574 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
15575 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
15579 if test "$gt_use_preinstalled_gnugettext" = "yes" \
15580 || test "$nls_cv_use_gnu_gettext" = "yes"; then
15582 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
15590 $as_echo_n "checking whether to use NLS... " >&6; }
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15592 $as_echo "$USE_NLS" >&6; }
15593 if test "$USE_NLS" = "yes"; then
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
15595 $as_echo_n "checking where the gettext function comes from... " >&6; }
15596 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15597 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15598 gt_source="external libintl"
15603 gt_source="included intl directory"
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
15606 $as_echo "$gt_source" >&6; }
15609 if test "$USE_NLS" = "yes"; then
15611 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
15612 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
15614 $as_echo_n "checking how to link with libintl... " >&6; }
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
15616 $as_echo "$LIBINTL" >&6; }
15618 for element in $INCINTL; do
15620 for x in $CPPFLAGS; do
15622 acl_save_prefix="$prefix"
15623 prefix="$acl_final_prefix"
15624 acl_save_exec_prefix="$exec_prefix"
15625 exec_prefix="$acl_final_exec_prefix"
15627 exec_prefix="$acl_save_exec_prefix"
15628 prefix="$acl_save_prefix"
15630 if test "X$x" = "X$element"; then
15635 if test -z "$haveit"; then
15636 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15643 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
15646 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
15655 INTLLIBS="$LIBINTL"
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptConfigFileToString in -lpopt" >&5
15667 $as_echo_n "checking for poptConfigFileToString in -lpopt... " >&6; }
15668 if ${ac_cv_lib_popt_poptConfigFileToString+:} false; then :
15669 $as_echo_n "(cached) " >&6
15671 ac_check_lib_save_LIBS=$LIBS
15672 LIBS="-lpopt $LIBS"
15673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15674 /* end confdefs.h. */
15676 /* Override any GCC internal prototype to avoid an error.
15677 Use char because int might match the return type of a GCC
15678 builtin and then its argument prototype would still apply. */
15682 char poptConfigFileToString ();
15686 return poptConfigFileToString ();
15691 if ac_fn_c_try_link "$LINENO"; then :
15692 ac_cv_lib_popt_poptConfigFileToString=yes
15694 ac_cv_lib_popt_poptConfigFileToString=no
15696 rm -f core conftest.err conftest.$ac_objext \
15697 conftest$ac_exeext conftest.$ac_ext
15698 LIBS=$ac_check_lib_save_LIBS
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
15701 $as_echo "$ac_cv_lib_popt_poptConfigFileToString" >&6; }
15702 if test "x$ac_cv_lib_popt_poptConfigFileToString" = xyes; then :
15703 cat >>confdefs.h <<_ACEOF
15704 #define HAVE_LIBPOPT 1
15707 LIBS="-lpopt $LIBS"
15710 as_fn_error $? "You need popt 1.7 or newer to compile." "$LINENO" 5
15717 # Check whether --enable-fips was given.
15718 if test "${enable_fips+set}" = set; then :
15719 enableval=$enable_fips; with_fips=$enableval
15725 if test "x$with_fips" = "xyes"; then
15727 $as_echo "#define ENABLE_FIPS 1" >>confdefs.h
15730 if test "x$enable_static" = "xyes" -o "x$enable_static_cryptsetup" = "xyes" ; then
15731 as_fn_error $? "Static build is not compatible with FIPS." "$LINENO" 5
15737 # Check whether --enable-pwquality was given.
15738 if test "${enable_pwquality+set}" = set; then :
15739 enableval=$enable_pwquality; with_pwquality=$enableval
15745 if test "x$with_pwquality" = "xyes"; then
15747 $as_echo "#define ENABLE_PWQUALITY 1" >>confdefs.h
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWQUALITY" >&5
15752 $as_echo_n "checking for PWQUALITY... " >&6; }
15754 if test -n "$PWQUALITY_CFLAGS"; then
15755 pkg_cv_PWQUALITY_CFLAGS="$PWQUALITY_CFLAGS"
15756 elif test -n "$PKG_CONFIG"; then
15757 if test -n "$PKG_CONFIG" && \
15758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
15759 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
15761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15762 test $ac_status = 0; }; then
15763 pkg_cv_PWQUALITY_CFLAGS=`$PKG_CONFIG --cflags "pwquality >= 1.0.0" 2>/dev/null`
15764 test "x$?" != "x0" && pkg_failed=yes
15771 if test -n "$PWQUALITY_LIBS"; then
15772 pkg_cv_PWQUALITY_LIBS="$PWQUALITY_LIBS"
15773 elif test -n "$PKG_CONFIG"; then
15774 if test -n "$PKG_CONFIG" && \
15775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pwquality >= 1.0.0\""; } >&5
15776 ($PKG_CONFIG --exists --print-errors "pwquality >= 1.0.0") 2>&5
15778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15779 test $ac_status = 0; }; then
15780 pkg_cv_PWQUALITY_LIBS=`$PKG_CONFIG --libs "pwquality >= 1.0.0" 2>/dev/null`
15781 test "x$?" != "x0" && pkg_failed=yes
15791 if test $pkg_failed = yes; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15795 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15796 _pkg_short_errors_supported=yes
15798 _pkg_short_errors_supported=no
15800 if test $_pkg_short_errors_supported = yes; then
15801 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
15803 PWQUALITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pwquality >= 1.0.0" 2>&1`
15805 # Put the nasty error message in config.log where it belongs
15806 echo "$PWQUALITY_PKG_ERRORS" >&5
15808 as_fn_error $? "You need pwquality library." "$LINENO" 5
15809 elif test $pkg_failed = untried; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15812 as_fn_error $? "You need pwquality library." "$LINENO" 5
15814 PWQUALITY_CFLAGS=$pkg_cv_PWQUALITY_CFLAGS
15815 PWQUALITY_LIBS=$pkg_cv_PWQUALITY_LIBS
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817 $as_echo "yes" >&6; }
15821 PWQUALITY_STATIC_LIBS="$PWQUALITY_LIBS -lcrack -lz"
15837 # Check whether --enable-static-cryptsetup was given.
15838 if test "${enable_static_cryptsetup+set}" = set; then :
15839 enableval=$enable_static_cryptsetup;
15842 if test x$enable_static_cryptsetup = xyes; then
15843 if test x$enable_static = xno; then
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Requested static cryptsetup build, enabling static library." >&5
15845 $as_echo "$as_me: WARNING: Requested static cryptsetup build, enabling static library." >&2;}
15849 if test x$enable_static_cryptsetup = xyes; then
15851 STATIC_TOOLS_FALSE='#'
15853 STATIC_TOOLS_TRUE='#'
15854 STATIC_TOOLS_FALSE=
15858 # Check whether --enable-veritysetup was given.
15859 if test "${enable_veritysetup+set}" = set; then :
15860 enableval=$enable_veritysetup;
15862 enable_veritysetup=yes
15865 if test x$enable_veritysetup = xyes; then
15867 VERITYSETUP_FALSE='#'
15869 VERITYSETUP_TRUE='#'
15874 # Check whether --enable-cryptsetup-reencrypt was given.
15875 if test "${enable_cryptsetup_reencrypt+set}" = set; then :
15876 enableval=$enable_cryptsetup_reencrypt;
15879 if test x$enable_cryptsetup_reencrypt = xyes; then
15881 REENCRYPT_FALSE='#'
15888 # Check whether --enable-selinux was given.
15889 if test "${enable_selinux+set}" = set; then :
15890 enableval=$enable_selinux;
15894 # Check whether --enable-udev was given.
15895 if test "${enable_udev+set}" = set; then :
15896 enableval=$enable_udev;
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER" >&5
15905 $as_echo_n "checking for DEVMAPPER... " >&6; }
15907 if test -n "$DEVMAPPER_CFLAGS"; then
15908 pkg_cv_DEVMAPPER_CFLAGS="$DEVMAPPER_CFLAGS"
15909 elif test -n "$PKG_CONFIG"; then
15910 if test -n "$PKG_CONFIG" && \
15911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
15912 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
15914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15915 test $ac_status = 0; }; then
15916 pkg_cv_DEVMAPPER_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.03" 2>/dev/null`
15917 test "x$?" != "x0" && pkg_failed=yes
15924 if test -n "$DEVMAPPER_LIBS"; then
15925 pkg_cv_DEVMAPPER_LIBS="$DEVMAPPER_LIBS"
15926 elif test -n "$PKG_CONFIG"; then
15927 if test -n "$PKG_CONFIG" && \
15928 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.03\""; } >&5
15929 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.03") 2>&5
15931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15932 test $ac_status = 0; }; then
15933 pkg_cv_DEVMAPPER_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.03" 2>/dev/null`
15934 test "x$?" != "x0" && pkg_failed=yes
15944 if test $pkg_failed = yes; then
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15948 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15949 _pkg_short_errors_supported=yes
15951 _pkg_short_errors_supported=no
15953 if test $_pkg_short_errors_supported = yes; then
15954 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
15956 DEVMAPPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.03" 2>&1`
15958 # Put the nasty error message in config.log where it belongs
15959 echo "$DEVMAPPER_PKG_ERRORS" >&5
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
15963 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
15964 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 ac_check_lib_save_LIBS=$LIBS
15968 LIBS="-ldevmapper $LIBS"
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15972 /* Override any GCC internal prototype to avoid an error.
15973 Use char because int might match the return type of a GCC
15974 builtin and then its argument prototype would still apply. */
15978 char dm_task_set_name ();
15982 return dm_task_set_name ();
15987 if ac_fn_c_try_link "$LINENO"; then :
15988 ac_cv_lib_devmapper_dm_task_set_name=yes
15990 ac_cv_lib_devmapper_dm_task_set_name=no
15992 rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
15997 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
15998 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_LIBDEVMAPPER 1
16003 LIBS="-ldevmapper $LIBS"
16006 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
16010 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
16011 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
16012 $as_echo_n "(cached) " >&6
16014 ac_check_lib_save_LIBS=$LIBS
16015 LIBS="-ldevmapper $LIBS"
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16019 /* Override any GCC internal prototype to avoid an error.
16020 Use char because int might match the return type of a GCC
16021 builtin and then its argument prototype would still apply. */
16025 char dm_task_set_message ();
16029 return dm_task_set_message ();
16034 if ac_fn_c_try_link "$LINENO"; then :
16035 ac_cv_lib_devmapper_dm_task_set_message=yes
16037 ac_cv_lib_devmapper_dm_task_set_message=no
16039 rm -f core conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
16041 LIBS=$ac_check_lib_save_LIBS
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
16044 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
16045 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
16046 cat >>confdefs.h <<_ACEOF
16047 #define HAVE_LIBDEVMAPPER 1
16050 LIBS="-ldevmapper $LIBS"
16053 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
16056 DEVMAPPER_LIBS=$LIBS
16058 elif test $pkg_failed = untried; then
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 $as_echo "no" >&6; }
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_name in -ldevmapper" >&5
16063 $as_echo_n "checking for dm_task_set_name in -ldevmapper... " >&6; }
16064 if ${ac_cv_lib_devmapper_dm_task_set_name+:} false; then :
16065 $as_echo_n "(cached) " >&6
16067 ac_check_lib_save_LIBS=$LIBS
16068 LIBS="-ldevmapper $LIBS"
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16072 /* Override any GCC internal prototype to avoid an error.
16073 Use char because int might match the return type of a GCC
16074 builtin and then its argument prototype would still apply. */
16078 char dm_task_set_name ();
16082 return dm_task_set_name ();
16087 if ac_fn_c_try_link "$LINENO"; then :
16088 ac_cv_lib_devmapper_dm_task_set_name=yes
16090 ac_cv_lib_devmapper_dm_task_set_name=no
16092 rm -f core conftest.err conftest.$ac_objext \
16093 conftest$ac_exeext conftest.$ac_ext
16094 LIBS=$ac_check_lib_save_LIBS
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
16097 $as_echo "$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
16098 if test "x$ac_cv_lib_devmapper_dm_task_set_name" = xyes; then :
16099 cat >>confdefs.h <<_ACEOF
16100 #define HAVE_LIBDEVMAPPER 1
16103 LIBS="-ldevmapper $LIBS"
16106 as_fn_error $? "You need the device-mapper library." "$LINENO" 5
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_message in -ldevmapper" >&5
16110 $as_echo_n "checking for dm_task_set_message in -ldevmapper... " >&6; }
16111 if ${ac_cv_lib_devmapper_dm_task_set_message+:} false; then :
16112 $as_echo_n "(cached) " >&6
16114 ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-ldevmapper $LIBS"
16116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16117 /* end confdefs.h. */
16119 /* Override any GCC internal prototype to avoid an error.
16120 Use char because int might match the return type of a GCC
16121 builtin and then its argument prototype would still apply. */
16125 char dm_task_set_message ();
16129 return dm_task_set_message ();
16134 if ac_fn_c_try_link "$LINENO"; then :
16135 ac_cv_lib_devmapper_dm_task_set_message=yes
16137 ac_cv_lib_devmapper_dm_task_set_message=no
16139 rm -f core conftest.err conftest.$ac_objext \
16140 conftest$ac_exeext conftest.$ac_ext
16141 LIBS=$ac_check_lib_save_LIBS
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_message" >&5
16144 $as_echo "$ac_cv_lib_devmapper_dm_task_set_message" >&6; }
16145 if test "x$ac_cv_lib_devmapper_dm_task_set_message" = xyes; then :
16146 cat >>confdefs.h <<_ACEOF
16147 #define HAVE_LIBDEVMAPPER 1
16150 LIBS="-ldevmapper $LIBS"
16153 as_fn_error $? "The device-mapper library on your system is too old." "$LINENO" 5
16156 DEVMAPPER_LIBS=$LIBS
16159 DEVMAPPER_CFLAGS=$pkg_cv_DEVMAPPER_CFLAGS
16160 DEVMAPPER_LIBS=$pkg_cv_DEVMAPPER_LIBS
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16162 $as_echo "yes" >&6; }
16167 LIBS="$LIBS $DEVMAPPER_LIBS"
16168 ac_fn_c_check_decl "$LINENO" "dm_task_secure_data" "ac_cv_have_decl_dm_task_secure_data" "#include <libdevmapper.h>
16170 if test "x$ac_cv_have_decl_dm_task_secure_data" = xyes; then :
16176 cat >>confdefs.h <<_ACEOF
16177 #define HAVE_DECL_DM_TASK_SECURE_DATA $ac_have_decl
16180 ac_fn_c_check_decl "$LINENO" "dm_task_retry_remove" "ac_cv_have_decl_dm_task_retry_remove" "#include <libdevmapper.h>
16182 if test "x$ac_cv_have_decl_dm_task_retry_remove" = xyes; then :
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_DECL_DM_TASK_RETRY_REMOVE $ac_have_decl
16192 ac_fn_c_check_decl "$LINENO" "DM_UDEV_DISABLE_DISK_RULES_FLAG" "ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" "#include <libdevmapper.h>
16194 if test "x$ac_cv_have_decl_DM_UDEV_DISABLE_DISK_RULES_FLAG" = xyes; then :
16200 cat >>confdefs.h <<_ACEOF
16201 #define HAVE_DECL_DM_UDEV_DISABLE_DISK_RULES_FLAG $ac_have_decl
16203 if test $ac_have_decl = 1; then :
16209 if test "x$enable_udev" = xyes; then
16210 if test "x$have_cookie" = xno; then
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&5
16212 $as_echo "$as_me: WARNING: The device-mapper library on your system has no udev support, udev support disabled." >&2;}
16215 $as_echo "#define USE_UDEV 1" >>confdefs.h
16222 # Check whether --with-crypto_backend was given.
16223 if test "${with_crypto_backend+set}" = set; then :
16224 withval=$with_crypto_backend;
16226 with_crypto_backend=gcrypt
16231 # Check whether --enable-kernel_crypto was given.
16232 if test "${enable_kernel_crypto+set}" = set; then :
16233 enableval=$enable_kernel_crypto; with_kernel_crypto=$enableval
16235 with_kernel_crypto=yes
16239 if test "x$with_kernel_crypto" = "xyes"; then
16240 for ac_header in linux/if_alg.h
16242 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
16243 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
16244 cat >>confdefs.h <<_ACEOF
16245 #define HAVE_LINUX_IF_ALG_H 1
16249 as_fn_error $? "You need Linux kernel headers with userspace crypto interface. (Or use --disable-kernel_crypto.)" "$LINENO" 5
16255 $as_echo "#define ENABLE_AF_ALG 1" >>confdefs.h
16259 case $with_crypto_backend in
16261 if test "x$with_fips" = "xyes"; then
16262 GCRYPT_REQ_VERSION=1.4.5
16264 GCRYPT_REQ_VERSION=1.1.42
16266 # Check whether --enable-gcrypt-pbkdf2 was given.
16267 if test "${enable_gcrypt_pbkdf2+set}" = set; then :
16268 enableval=$enable_gcrypt_pbkdf2; if test "x$enableval" = "xyes"; then
16269 use_internal_pbkdf2=0
16271 use_internal_pbkdf2=1
16276 # Check whether --with-libgcrypt-prefix was given.
16277 if test "${with_libgcrypt_prefix+set}" = set; then :
16278 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16280 libgcrypt_config_prefix=""
16283 if test x$libgcrypt_config_prefix != x ; then
16284 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16285 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16289 if test -n "$ac_tool_prefix"; then
16290 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16291 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16293 $as_echo_n "checking for $ac_word... " >&6; }
16294 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16295 $as_echo_n "(cached) " >&6
16297 case $LIBGCRYPT_CONFIG in
16299 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16303 for as_dir in $PATH
16306 test -z "$as_dir" && as_dir=.
16307 for ac_exec_ext in '' $ac_executable_extensions; do
16308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16309 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16320 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16321 if test -n "$LIBGCRYPT_CONFIG"; then
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16323 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16326 $as_echo "no" >&6; }
16331 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16332 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16333 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16334 set dummy libgcrypt-config; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16338 $as_echo_n "(cached) " >&6
16340 case $ac_pt_LIBGCRYPT_CONFIG in
16342 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $PATH
16349 test -z "$as_dir" && as_dir=.
16350 for ac_exec_ext in '' $ac_executable_extensions; do
16351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16352 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16363 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16364 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16366 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369 $as_echo "no" >&6; }
16372 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16373 LIBGCRYPT_CONFIG="no"
16375 case $cross_compiling:$ac_tool_warned in
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16379 ac_tool_warned=yes ;;
16381 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16384 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16388 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16389 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16390 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16392 req_libgcrypt_api=0
16393 min_libgcrypt_version="$tmp"
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16397 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16399 if test "$LIBGCRYPT_CONFIG" != "no" ; then
16400 req_major=`echo $min_libgcrypt_version | \
16401 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16402 req_minor=`echo $min_libgcrypt_version | \
16403 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16404 req_micro=`echo $min_libgcrypt_version | \
16405 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16406 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16407 major=`echo $libgcrypt_config_version | \
16408 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16409 minor=`echo $libgcrypt_config_version | \
16410 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16411 micro=`echo $libgcrypt_config_version | \
16412 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16413 if test "$major" -gt "$req_major"; then
16416 if test "$major" -eq "$req_major"; then
16417 if test "$minor" -gt "$req_minor"; then
16420 if test "$minor" -eq "$req_minor"; then
16421 if test "$micro" -ge "$req_micro"; then
16429 if test $ok = yes; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16431 $as_echo "yes ($libgcrypt_config_version)" >&6; }
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16434 $as_echo "no" >&6; }
16436 if test $ok = yes; then
16437 # If we have a recent libgcrypt, we should also check that the
16438 # API is compatible
16439 if test "$req_libgcrypt_api" -gt 0 ; then
16440 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16441 if test "$tmp" -gt 0 ; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16443 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
16444 if test "$req_libgcrypt_api" -eq "$tmp" ; then
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16446 $as_echo "okay" >&6; }
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16450 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16455 if test $ok = yes; then
16456 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16457 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16458 use_internal_pbkdf2=0
16459 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16460 if test x"$libgcrypt_config_host" != xnone ; then
16461 if test x"$libgcrypt_config_host" != x"$host" ; then
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16464 *** The config script $LIBGCRYPT_CONFIG was
16465 *** built for $libgcrypt_config_host and thus may not match the
16466 *** used host $host.
16467 *** You may want to use the configure option --with-libgcrypt-prefix
16468 *** to specify a matching config script.
16470 $as_echo "$as_me: WARNING:
16472 *** The config script $LIBGCRYPT_CONFIG was
16473 *** built for $libgcrypt_config_host and thus may not match the
16474 *** used host $host.
16475 *** You may want to use the configure option --with-libgcrypt-prefix
16476 *** to specify a matching config script.
16481 LIBGCRYPT_CFLAGS=""
16483 use_internal_pbkdf2=1
16492 # Check whether --with-libgcrypt-prefix was given.
16493 if test "${with_libgcrypt_prefix+set}" = set; then :
16494 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
16496 libgcrypt_config_prefix=""
16499 if test x$libgcrypt_config_prefix != x ; then
16500 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
16501 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
16505 if test -n "$ac_tool_prefix"; then
16506 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
16507 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
16511 $as_echo_n "(cached) " >&6
16513 case $LIBGCRYPT_CONFIG in
16515 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16519 for as_dir in $PATH
16522 test -z "$as_dir" && as_dir=.
16523 for ac_exec_ext in '' $ac_executable_extensions; do
16524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16525 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16536 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
16537 if test -n "$LIBGCRYPT_CONFIG"; then
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
16539 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542 $as_echo "no" >&6; }
16547 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
16548 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
16549 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
16550 set dummy libgcrypt-config; ac_word=$2
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16552 $as_echo_n "checking for $ac_word... " >&6; }
16553 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
16554 $as_echo_n "(cached) " >&6
16556 case $ac_pt_LIBGCRYPT_CONFIG in
16558 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16579 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
16580 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
16582 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16585 $as_echo "no" >&6; }
16588 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
16589 LIBGCRYPT_CONFIG="no"
16591 case $cross_compiling:$ac_tool_warned in
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16595 ac_tool_warned=yes ;;
16597 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
16600 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
16603 tmp=$GCRYPT_REQ_VERSION
16604 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
16605 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
16606 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
16608 req_libgcrypt_api=0
16609 min_libgcrypt_version="$tmp"
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
16613 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
16615 if test "$LIBGCRYPT_CONFIG" != "no" ; then
16616 req_major=`echo $min_libgcrypt_version | \
16617 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
16618 req_minor=`echo $min_libgcrypt_version | \
16619 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
16620 req_micro=`echo $min_libgcrypt_version | \
16621 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
16622 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
16623 major=`echo $libgcrypt_config_version | \
16624 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
16625 minor=`echo $libgcrypt_config_version | \
16626 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
16627 micro=`echo $libgcrypt_config_version | \
16628 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
16629 if test "$major" -gt "$req_major"; then
16632 if test "$major" -eq "$req_major"; then
16633 if test "$minor" -gt "$req_minor"; then
16636 if test "$minor" -eq "$req_minor"; then
16637 if test "$micro" -ge "$req_micro"; then
16645 if test $ok = yes; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
16647 $as_echo "yes ($libgcrypt_config_version)" >&6; }
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16652 if test $ok = yes; then
16653 # If we have a recent libgcrypt, we should also check that the
16654 # API is compatible
16655 if test "$req_libgcrypt_api" -gt 0 ; then
16656 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
16657 if test "$tmp" -gt 0 ; then
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
16659 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
16660 if test "$req_libgcrypt_api" -eq "$tmp" ; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
16662 $as_echo "okay" >&6; }
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
16666 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
16671 if test $ok = yes; then
16672 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
16673 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
16675 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
16676 if test x"$libgcrypt_config_host" != xnone ; then
16677 if test x"$libgcrypt_config_host" != x"$host" ; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
16680 *** The config script $LIBGCRYPT_CONFIG was
16681 *** built for $libgcrypt_config_host and thus may not match the
16682 *** used host $host.
16683 *** You may want to use the configure option --with-libgcrypt-prefix
16684 *** to specify a matching config script.
16686 $as_echo "$as_me: WARNING:
16688 *** The config script $LIBGCRYPT_CONFIG was
16689 *** built for $libgcrypt_config_host and thus may not match the
16690 *** used host $host.
16691 *** You may want to use the configure option --with-libgcrypt-prefix
16692 *** to specify a matching config script.
16697 LIBGCRYPT_CFLAGS=""
16699 as_fn_error $? "You need the gcrypt library." "$LINENO" 5
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if internal cryptsetup PBKDF2 is compiled-in" >&5
16706 $as_echo_n "checking if internal cryptsetup PBKDF2 is compiled-in... " >&6; }
16707 if test $use_internal_pbkdf2 = 0; then
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16712 $as_echo "yes" >&6; }
16714 if test "x$with_fips" = "xyes"; then
16715 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
16720 if test x$enable_static_cryptsetup = xyes; then
16722 LIBS="$saved_LIBS $LIBGCRYPT_LIBS -static"
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_check_version in -lgcrypt" >&5
16724 $as_echo_n "checking for gcry_check_version in -lgcrypt... " >&6; }
16725 if ${ac_cv_lib_gcrypt_gcry_check_version+:} false; then :
16726 $as_echo_n "(cached) " >&6
16728 ac_check_lib_save_LIBS=$LIBS
16729 LIBS="-lgcrypt -lgpg-error $LIBS"
16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16731 /* end confdefs.h. */
16733 /* Override any GCC internal prototype to avoid an error.
16734 Use char because int might match the return type of a GCC
16735 builtin and then its argument prototype would still apply. */
16739 char gcry_check_version ();
16743 return gcry_check_version ();
16748 if ac_fn_c_try_link "$LINENO"; then :
16749 ac_cv_lib_gcrypt_gcry_check_version=yes
16751 ac_cv_lib_gcrypt_gcry_check_version=no
16753 rm -f core conftest.err conftest.$ac_objext \
16754 conftest$ac_exeext conftest.$ac_ext
16755 LIBS=$ac_check_lib_save_LIBS
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_check_version" >&5
16758 $as_echo "$ac_cv_lib_gcrypt_gcry_check_version" >&6; }
16759 if test "x$ac_cv_lib_gcrypt_gcry_check_version" = xyes; then :
16760 cat >>confdefs.h <<_ACEOF
16761 #define HAVE_LIBGCRYPT 1
16764 LIBS="-lgcrypt $LIBS"
16767 as_fn_error $? "Cannot find static gcrypt library." "$LINENO" 5
16770 LIBGCRYPT_STATIC_LIBS="$LIBGCRYPT_LIBS -lgpg-error"
16774 CRYPTO_CFLAGS=$LIBGCRYPT_CFLAGS
16775 CRYPTO_LIBS=$LIBGCRYPT_LIBS
16776 CRYPTO_STATIC_LIBS=$LIBGCRYPT_STATIC_LIBS
16779 cat >>confdefs.h <<_ACEOF
16780 #define GCRYPT_REQ_VERSION "$GCRYPT_REQ_VERSION"
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
16788 $as_echo_n "checking for OPENSSL... " >&6; }
16790 if test -n "$OPENSSL_CFLAGS"; then
16791 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
16792 elif test -n "$PKG_CONFIG"; then
16793 if test -n "$PKG_CONFIG" && \
16794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
16795 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
16797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16798 test $ac_status = 0; }; then
16799 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.8" 2>/dev/null`
16800 test "x$?" != "x0" && pkg_failed=yes
16807 if test -n "$OPENSSL_LIBS"; then
16808 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
16809 elif test -n "$PKG_CONFIG"; then
16810 if test -n "$PKG_CONFIG" && \
16811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.8\""; } >&5
16812 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.8") 2>&5
16814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815 test $ac_status = 0; }; then
16816 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.8" 2>/dev/null`
16817 test "x$?" != "x0" && pkg_failed=yes
16827 if test $pkg_failed = yes; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16832 _pkg_short_errors_supported=yes
16834 _pkg_short_errors_supported=no
16836 if test $_pkg_short_errors_supported = yes; then
16837 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
16839 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.8" 2>&1`
16841 # Put the nasty error message in config.log where it belongs
16842 echo "$OPENSSL_PKG_ERRORS" >&5
16844 as_fn_error $? "You need openssl library." "$LINENO" 5
16845 elif test $pkg_failed = untried; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847 $as_echo "no" >&6; }
16848 as_fn_error $? "You need openssl library." "$LINENO" 5
16850 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
16851 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16853 $as_echo "yes" >&6; }
16856 CRYPTO_CFLAGS=$OPENSSL_CFLAGS
16857 CRYPTO_LIBS=$OPENSSL_LIBS
16858 use_internal_pbkdf2=0
16860 if test x$enable_static_cryptsetup = xyes; then
16861 saved_PKG_CONFIG=$PKG_CONFIG
16862 PKG_CONFIG="$PKG_CONFIG --static"
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL_STATIC" >&5
16866 $as_echo_n "checking for OPENSSL_STATIC... " >&6; }
16868 if test -n "$OPENSSL_STATIC_CFLAGS"; then
16869 pkg_cv_OPENSSL_STATIC_CFLAGS="$OPENSSL_STATIC_CFLAGS"
16870 elif test -n "$PKG_CONFIG"; then
16871 if test -n "$PKG_CONFIG" && \
16872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16873 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16876 test $ac_status = 0; }; then
16877 pkg_cv_OPENSSL_STATIC_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null`
16878 test "x$?" != "x0" && pkg_failed=yes
16885 if test -n "$OPENSSL_STATIC_LIBS"; then
16886 pkg_cv_OPENSSL_STATIC_LIBS="$OPENSSL_STATIC_LIBS"
16887 elif test -n "$PKG_CONFIG"; then
16888 if test -n "$PKG_CONFIG" && \
16889 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5
16890 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5
16892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16893 test $ac_status = 0; }; then
16894 pkg_cv_OPENSSL_STATIC_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null`
16895 test "x$?" != "x0" && pkg_failed=yes
16905 if test $pkg_failed = yes; then
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907 $as_echo "no" >&6; }
16909 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16910 _pkg_short_errors_supported=yes
16912 _pkg_short_errors_supported=no
16914 if test $_pkg_short_errors_supported = yes; then
16915 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1`
16917 OPENSSL_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1`
16919 # Put the nasty error message in config.log where it belongs
16920 echo "$OPENSSL_STATIC_PKG_ERRORS" >&5
16922 as_fn_error $? "Package requirements (openssl) were not met:
16924 $OPENSSL_STATIC_PKG_ERRORS
16926 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16927 installed software in a non-standard prefix.
16929 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
16930 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
16931 See the pkg-config man page for more details." "$LINENO" 5
16932 elif test $pkg_failed = untried; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16934 $as_echo "no" >&6; }
16935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16937 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16938 is in your PATH or set the PKG_CONFIG environment variable to the full
16939 path to pkg-config.
16941 Alternatively, you may set the environment variables OPENSSL_STATIC_CFLAGS
16942 and OPENSSL_STATIC_LIBS to avoid the need to call pkg-config.
16943 See the pkg-config man page for more details.
16945 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16946 See \`config.log' for more details" "$LINENO" 5; }
16948 OPENSSL_STATIC_CFLAGS=$pkg_cv_OPENSSL_STATIC_CFLAGS
16949 OPENSSL_STATIC_LIBS=$pkg_cv_OPENSSL_STATIC_LIBS
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16951 $as_echo "yes" >&6; }
16954 CRYPTO_STATIC_LIBS=$OPENSSL_STATIC_LIBS
16955 PKG_CONFIG=$saved_PKG_CONFIG
16958 if test "x$with_fips" = "xyes"; then
16959 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
16964 if test x$enable_static_cryptsetup = xyes; then
16965 as_fn_error $? "Static build of cryptsetup is not supported with NSS." "$LINENO" 5
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&5
16969 $as_echo "$as_me: WARNING: NSS backend does NOT provide backward compatibility (missing ripemd160 hash)." >&2;}
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
16974 $as_echo_n "checking for NSS... " >&6; }
16976 if test -n "$NSS_CFLAGS"; then
16977 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
16978 elif test -n "$PKG_CONFIG"; then
16979 if test -n "$PKG_CONFIG" && \
16980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16981 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
16983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16984 test $ac_status = 0; }; then
16985 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
16986 test "x$?" != "x0" && pkg_failed=yes
16993 if test -n "$NSS_LIBS"; then
16994 pkg_cv_NSS_LIBS="$NSS_LIBS"
16995 elif test -n "$PKG_CONFIG"; then
16996 if test -n "$PKG_CONFIG" && \
16997 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
16998 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
17000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001 test $ac_status = 0; }; then
17002 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
17003 test "x$?" != "x0" && pkg_failed=yes
17013 if test $pkg_failed = yes; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17015 $as_echo "no" >&6; }
17017 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17018 _pkg_short_errors_supported=yes
17020 _pkg_short_errors_supported=no
17022 if test $_pkg_short_errors_supported = yes; then
17023 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
17025 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
17027 # Put the nasty error message in config.log where it belongs
17028 echo "$NSS_PKG_ERRORS" >&5
17030 as_fn_error $? "You need nss library." "$LINENO" 5
17031 elif test $pkg_failed = untried; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17033 $as_echo "no" >&6; }
17034 as_fn_error $? "You need nss library." "$LINENO" 5
17036 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
17037 NSS_LIBS=$pkg_cv_NSS_LIBS
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17039 $as_echo "yes" >&6; }
17043 saved_CFLAGS=$CFLAGS
17044 CFLAGS="$CFLAGS $NSS_CFLAGS"
17045 ac_fn_c_check_decl "$LINENO" "NSS_GetVersion" "ac_cv_have_decl_NSS_GetVersion" "#include <nss.h>
17047 if test "x$ac_cv_have_decl_NSS_GetVersion" = xyes; then :
17053 cat >>confdefs.h <<_ACEOF
17054 #define HAVE_DECL_NSS_GETVERSION $ac_have_decl
17057 CFLAGS=$saved_CFLAGS
17059 CRYPTO_CFLAGS=$NSS_CFLAGS
17060 CRYPTO_LIBS=$NSS_LIBS
17061 use_internal_pbkdf2=1
17063 if test "x$with_fips" = "xyes"; then
17064 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17069 for ac_header in linux/if_alg.h
17071 ac_fn_c_check_header_mongrel "$LINENO" "linux/if_alg.h" "ac_cv_header_linux_if_alg_h" "$ac_includes_default"
17072 if test "x$ac_cv_header_linux_if_alg_h" = xyes; then :
17073 cat >>confdefs.h <<_ACEOF
17074 #define HAVE_LINUX_IF_ALG_H 1
17078 as_fn_error $? "You need Linux kernel headers with userspace crypto interface." "$LINENO" 5
17083 # AC_CHECK_DECLS([AF_ALG],,
17084 # [AC_MSG_ERROR([You need Linux kernel with userspace crypto interface.])],
17085 # [#include <sys/socket.h>])
17086 use_internal_pbkdf2=1
17088 if test "x$with_fips" = "xyes"; then
17089 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17094 for ac_header in nettle/sha.h
17096 ac_fn_c_check_header_mongrel "$LINENO" "nettle/sha.h" "ac_cv_header_nettle_sha_h" "$ac_includes_default"
17097 if test "x$ac_cv_header_nettle_sha_h" = xyes; then :
17098 cat >>confdefs.h <<_ACEOF
17099 #define HAVE_NETTLE_SHA_H 1
17103 as_fn_error $? "You need Nettle cryptographic library." "$LINENO" 5
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_pbkdf2_hmac_sha256 in -lnettle" >&5
17111 $as_echo_n "checking for nettle_pbkdf2_hmac_sha256 in -lnettle... " >&6; }
17112 if ${ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256+:} false; then :
17113 $as_echo_n "(cached) " >&6
17115 ac_check_lib_save_LIBS=$LIBS
17116 LIBS="-lnettle $LIBS"
17117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17118 /* end confdefs.h. */
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17126 char nettle_pbkdf2_hmac_sha256 ();
17130 return nettle_pbkdf2_hmac_sha256 ();
17135 if ac_fn_c_try_link "$LINENO"; then :
17136 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=yes
17138 ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256=no
17140 rm -f core conftest.err conftest.$ac_objext \
17141 conftest$ac_exeext conftest.$ac_ext
17142 LIBS=$ac_check_lib_save_LIBS
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&5
17145 $as_echo "$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" >&6; }
17146 if test "x$ac_cv_lib_nettle_nettle_pbkdf2_hmac_sha256" = xyes; then :
17147 cat >>confdefs.h <<_ACEOF
17148 #define HAVE_LIBNETTLE 1
17151 LIBS="-lnettle $LIBS"
17154 as_fn_error $? "You need Nettle library version 2.6 or more recent." "$LINENO" 5
17160 CRYPTO_STATIC_LIBS=$CRYPTO_LIBS
17161 use_internal_pbkdf2=0
17163 if test "x$with_fips" = "xyes"; then
17164 as_fn_error $? "This option is not compatible with FIPS." "$LINENO" 5
17168 *) as_fn_error $? "Unknown crypto backend." "$LINENO" 5 ;;
17170 if test $with_crypto_backend = gcrypt; then
17171 CRYPTO_BACKEND_GCRYPT_TRUE=
17172 CRYPTO_BACKEND_GCRYPT_FALSE='#'
17174 CRYPTO_BACKEND_GCRYPT_TRUE='#'
17175 CRYPTO_BACKEND_GCRYPT_FALSE=
17178 if test $with_crypto_backend = openssl; then
17179 CRYPTO_BACKEND_OPENSSL_TRUE=
17180 CRYPTO_BACKEND_OPENSSL_FALSE='#'
17182 CRYPTO_BACKEND_OPENSSL_TRUE='#'
17183 CRYPTO_BACKEND_OPENSSL_FALSE=
17186 if test $with_crypto_backend = nss; then
17187 CRYPTO_BACKEND_NSS_TRUE=
17188 CRYPTO_BACKEND_NSS_FALSE='#'
17190 CRYPTO_BACKEND_NSS_TRUE='#'
17191 CRYPTO_BACKEND_NSS_FALSE=
17194 if test $with_crypto_backend = kernel; then
17195 CRYPTO_BACKEND_KERNEL_TRUE=
17196 CRYPTO_BACKEND_KERNEL_FALSE='#'
17198 CRYPTO_BACKEND_KERNEL_TRUE='#'
17199 CRYPTO_BACKEND_KERNEL_FALSE=
17202 if test $with_crypto_backend = nettle; then
17203 CRYPTO_BACKEND_NETTLE_TRUE=
17204 CRYPTO_BACKEND_NETTLE_FALSE='#'
17206 CRYPTO_BACKEND_NETTLE_TRUE='#'
17207 CRYPTO_BACKEND_NETTLE_FALSE=
17211 if test $use_internal_pbkdf2 = 1; then
17212 CRYPTO_INTERNAL_PBKDF2_TRUE=
17213 CRYPTO_INTERNAL_PBKDF2_FALSE='#'
17215 CRYPTO_INTERNAL_PBKDF2_TRUE='#'
17216 CRYPTO_INTERNAL_PBKDF2_FALSE=
17220 cat >>confdefs.h <<_ACEOF
17221 #define USE_INTERNAL_PBKDF2 $use_internal_pbkdf2
17225 if test x$enable_static_cryptsetup = xyes; then
17226 saved_PKG_CONFIG=$PKG_CONFIG
17227 PKG_CONFIG="$PKG_CONFIG --static"
17229 LIBS="$saved_LIBS -static"
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
17231 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
17232 if ${ac_cv_lib_popt_poptGetContext+:} false; then :
17233 $as_echo_n "(cached) " >&6
17235 ac_check_lib_save_LIBS=$LIBS
17236 LIBS="-lpopt $LIBS"
17237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17238 /* end confdefs.h. */
17240 /* Override any GCC internal prototype to avoid an error.
17241 Use char because int might match the return type of a GCC
17242 builtin and then its argument prototype would still apply. */
17246 char poptGetContext ();
17250 return poptGetContext ();
17255 if ac_fn_c_try_link "$LINENO"; then :
17256 ac_cv_lib_popt_poptGetContext=yes
17258 ac_cv_lib_popt_poptGetContext=no
17260 rm -f core conftest.err conftest.$ac_objext \
17261 conftest$ac_exeext conftest.$ac_ext
17262 LIBS=$ac_check_lib_save_LIBS
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
17265 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
17266 if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
17267 cat >>confdefs.h <<_ACEOF
17268 #define HAVE_LIBPOPT 1
17271 LIBS="-lpopt $LIBS"
17274 as_fn_error $? "Cannot find static popt library." "$LINENO" 5
17278 LIBS="$saved_LIBS -static"
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEVMAPPER_STATIC" >&5
17282 $as_echo_n "checking for DEVMAPPER_STATIC... " >&6; }
17284 if test -n "$DEVMAPPER_STATIC_CFLAGS"; then
17285 pkg_cv_DEVMAPPER_STATIC_CFLAGS="$DEVMAPPER_STATIC_CFLAGS"
17286 elif test -n "$PKG_CONFIG"; then
17287 if test -n "$PKG_CONFIG" && \
17288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
17289 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
17291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17292 test $ac_status = 0; }; then
17293 pkg_cv_DEVMAPPER_STATIC_CFLAGS=`$PKG_CONFIG --cflags "devmapper >= 1.02.27" 2>/dev/null`
17294 test "x$?" != "x0" && pkg_failed=yes
17301 if test -n "$DEVMAPPER_STATIC_LIBS"; then
17302 pkg_cv_DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS"
17303 elif test -n "$PKG_CONFIG"; then
17304 if test -n "$PKG_CONFIG" && \
17305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"devmapper >= 1.02.27\""; } >&5
17306 ($PKG_CONFIG --exists --print-errors "devmapper >= 1.02.27") 2>&5
17308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17309 test $ac_status = 0; }; then
17310 pkg_cv_DEVMAPPER_STATIC_LIBS=`$PKG_CONFIG --libs "devmapper >= 1.02.27" 2>/dev/null`
17311 test "x$?" != "x0" && pkg_failed=yes
17321 if test $pkg_failed = yes; then
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17323 $as_echo "no" >&6; }
17325 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17326 _pkg_short_errors_supported=yes
17328 _pkg_short_errors_supported=no
17330 if test $_pkg_short_errors_supported = yes; then
17331 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
17333 DEVMAPPER_STATIC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "devmapper >= 1.02.27" 2>&1`
17335 # Put the nasty error message in config.log where it belongs
17336 echo "$DEVMAPPER_STATIC_PKG_ERRORS" >&5
17339 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
17340 if test "x$enable_selinux" != xno; then
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
17342 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
17343 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
17344 $as_echo_n "(cached) " >&6
17346 ac_check_lib_save_LIBS=$LIBS
17347 LIBS="-lsepol $LIBS"
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17351 /* Override any GCC internal prototype to avoid an error.
17352 Use char because int might match the return type of a GCC
17353 builtin and then its argument prototype would still apply. */
17357 char sepol_bool_set ();
17361 return sepol_bool_set ();
17366 if ac_fn_c_try_link "$LINENO"; then :
17367 ac_cv_lib_sepol_sepol_bool_set=yes
17369 ac_cv_lib_sepol_sepol_bool_set=no
17371 rm -f core conftest.err conftest.$ac_objext \
17372 conftest$ac_exeext conftest.$ac_ext
17373 LIBS=$ac_check_lib_save_LIBS
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
17376 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
17377 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
17378 cat >>confdefs.h <<_ACEOF
17379 #define HAVE_LIBSEPOL 1
17382 LIBS="-lsepol $LIBS"
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17387 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17388 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
17389 $as_echo_n "(cached) " >&6
17391 ac_check_lib_save_LIBS=$LIBS
17392 LIBS="-lselinux $LIBS"
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17402 char is_selinux_enabled ();
17406 return is_selinux_enabled ();
17411 if ac_fn_c_try_link "$LINENO"; then :
17412 ac_cv_lib_selinux_is_selinux_enabled=yes
17414 ac_cv_lib_selinux_is_selinux_enabled=no
17416 rm -f core conftest.err conftest.$ac_objext \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LIBS=$ac_check_lib_save_LIBS
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17421 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17422 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
17423 cat >>confdefs.h <<_ACEOF
17424 #define HAVE_LIBSELINUX 1
17427 LIBS="-lselinux $LIBS"
17431 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
17434 elif test $pkg_failed = untried; then
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17438 DEVMAPPER_STATIC_LIBS=$DEVMAPPER_LIBS
17439 if test "x$enable_selinux" != xno; then
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_bool_set in -lsepol" >&5
17441 $as_echo_n "checking for sepol_bool_set in -lsepol... " >&6; }
17442 if ${ac_cv_lib_sepol_sepol_bool_set+:} false; then :
17443 $as_echo_n "(cached) " >&6
17445 ac_check_lib_save_LIBS=$LIBS
17446 LIBS="-lsepol $LIBS"
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17456 char sepol_bool_set ();
17460 return sepol_bool_set ();
17465 if ac_fn_c_try_link "$LINENO"; then :
17466 ac_cv_lib_sepol_sepol_bool_set=yes
17468 ac_cv_lib_sepol_sepol_bool_set=no
17470 rm -f core conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
17475 $as_echo "$ac_cv_lib_sepol_sepol_bool_set" >&6; }
17476 if test "x$ac_cv_lib_sepol_sepol_bool_set" = xyes; then :
17477 cat >>confdefs.h <<_ACEOF
17478 #define HAVE_LIBSEPOL 1
17481 LIBS="-lsepol $LIBS"
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17486 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17487 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
17488 $as_echo_n "(cached) " >&6
17490 ac_check_lib_save_LIBS=$LIBS
17491 LIBS="-lselinux $LIBS"
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17501 char is_selinux_enabled ();
17505 return is_selinux_enabled ();
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 ac_cv_lib_selinux_is_selinux_enabled=yes
17513 ac_cv_lib_selinux_is_selinux_enabled=no
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 LIBS=$ac_check_lib_save_LIBS
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17520 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17521 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
17522 cat >>confdefs.h <<_ACEOF
17523 #define HAVE_LIBSELINUX 1
17526 LIBS="-lselinux $LIBS"
17530 DEVMAPPER_STATIC_LIBS="$DEVMAPPER_STATIC_LIBS $LIBS"
17534 DEVMAPPER_STATIC_CFLAGS=$pkg_cv_DEVMAPPER_STATIC_CFLAGS
17535 DEVMAPPER_STATIC_LIBS=$pkg_cv_DEVMAPPER_STATIC_LIBS
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17537 $as_echo "yes" >&6; }
17540 LIBS="$saved_LIBS $DEVMAPPER_STATIC_LIBS"
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dm_task_set_uuid in -ldevmapper" >&5
17542 $as_echo_n "checking for dm_task_set_uuid in -ldevmapper... " >&6; }
17543 if ${ac_cv_lib_devmapper_dm_task_set_uuid+:} false; then :
17544 $as_echo_n "(cached) " >&6
17546 ac_check_lib_save_LIBS=$LIBS
17547 LIBS="-ldevmapper $LIBS"
17548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17549 /* end confdefs.h. */
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17557 char dm_task_set_uuid ();
17561 return dm_task_set_uuid ();
17566 if ac_fn_c_try_link "$LINENO"; then :
17567 ac_cv_lib_devmapper_dm_task_set_uuid=yes
17569 ac_cv_lib_devmapper_dm_task_set_uuid=no
17571 rm -f core conftest.err conftest.$ac_objext \
17572 conftest$ac_exeext conftest.$ac_ext
17573 LIBS=$ac_check_lib_save_LIBS
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devmapper_dm_task_set_uuid" >&5
17576 $as_echo "$ac_cv_lib_devmapper_dm_task_set_uuid" >&6; }
17577 if test "x$ac_cv_lib_devmapper_dm_task_set_uuid" = xyes; then :
17578 cat >>confdefs.h <<_ACEOF
17579 #define HAVE_LIBDEVMAPPER 1
17582 LIBS="-ldevmapper $LIBS"
17585 as_fn_error $? "Cannot link with static device-mapper library." "$LINENO" 5
17589 LIBS="$saved_LIBS -static"
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17591 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17592 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
17593 $as_echo_n "(cached) " >&6
17595 ac_check_lib_save_LIBS=$LIBS
17596 LIBS="-luuid $LIBS"
17597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17598 /* end confdefs.h. */
17600 /* Override any GCC internal prototype to avoid an error.
17601 Use char because int might match the return type of a GCC
17602 builtin and then its argument prototype would still apply. */
17606 char uuid_generate ();
17610 return uuid_generate ();
17615 if ac_fn_c_try_link "$LINENO"; then :
17616 ac_cv_lib_uuid_uuid_generate=yes
17618 ac_cv_lib_uuid_uuid_generate=no
17620 rm -f core conftest.err conftest.$ac_objext \
17621 conftest$ac_exeext conftest.$ac_ext
17622 LIBS=$ac_check_lib_save_LIBS
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17625 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17626 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
17627 cat >>confdefs.h <<_ACEOF
17628 #define HAVE_LIBUUID 1
17631 LIBS="-luuid $LIBS"
17634 as_fn_error $? "Cannot find static uuid library." "$LINENO" 5
17639 PKG_CONFIG=$saved_PKG_CONFIG
17655 # Check whether --enable-dev-random was given.
17656 if test "${enable_dev_random+set}" = set; then :
17657 enableval=$enable_dev_random; default_rng=/dev/random
17659 default_rng=/dev/urandom
17663 cat >>confdefs.h <<_ACEOF
17664 #define DEFAULT_RNG "$default_rng"
17674 # Check whether --enable-python was given.
17675 if test "${enable_python+set}" = set; then :
17676 enableval=$enable_python; with_python=$enableval
17683 # Check whether --with-python_version was given.
17684 if test "${with_python_version+set}" = set; then :
17685 withval=$with_python_version; PYTHON_VERSION=$withval
17691 if test "x$with_python" = "xyes"; then
17698 if test -n "$PYTHON"; then
17699 # If the user set $PYTHON, use it and don't search something else.
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= $PYTHON_VERSION" >&5
17701 $as_echo_n "checking whether $PYTHON version is >= $PYTHON_VERSION... " >&6; }
17703 # split strings by '.' and convert to numeric. Append some zeros
17704 # because we need at least 4 digits for the hex conversion.
17705 # map returns an iterator in Python 3.0 and a list in 2.x
17706 minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0]
17708 # xrange is not present in Python 3.0 and range returns an iterator
17709 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17710 sys.exit(sys.hexversion < minverhex)"
17711 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17712 ($PYTHON -c "$prog") >&5 2>&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; then :
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17717 $as_echo "yes" >&6; }
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720 $as_echo "no" >&6; }
17721 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17723 am_display_PYTHON=$PYTHON
17725 # Otherwise, try each interpreter until we find one that satisfies
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= $PYTHON_VERSION" >&5
17728 $as_echo_n "checking for a Python interpreter with version >= $PYTHON_VERSION... " >&6; }
17729 if ${am_cv_pathless_PYTHON+:} false; then :
17730 $as_echo_n "(cached) " >&6
17733 for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
17734 test "$am_cv_pathless_PYTHON" = none && break
17736 # split strings by '.' and convert to numeric. Append some zeros
17737 # because we need at least 4 digits for the hex conversion.
17738 # map returns an iterator in Python 3.0 and a list in 2.x
17739 minver = list(map(int, '$PYTHON_VERSION'.split('.'))) + [0, 0, 0]
17741 # xrange is not present in Python 3.0 and range returns an iterator
17742 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17743 sys.exit(sys.hexversion < minverhex)"
17744 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17745 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; then :
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17754 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17755 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17756 if test "$am_cv_pathless_PYTHON" = none; then
17759 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17760 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17762 $as_echo_n "checking for $ac_word... " >&6; }
17763 if ${ac_cv_path_PYTHON+:} false; then :
17764 $as_echo_n "(cached) " >&6
17768 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17772 for as_dir in $PATH
17775 test -z "$as_dir" && as_dir=.
17776 for ac_exec_ext in '' $ac_executable_extensions; do
17777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17778 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17789 PYTHON=$ac_cv_path_PYTHON
17790 if test -n "$PYTHON"; then
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17792 $as_echo "$PYTHON" >&6; }
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17795 $as_echo "no" >&6; }
17800 am_display_PYTHON=$am_cv_pathless_PYTHON
17804 if test "$PYTHON" = :; then
17805 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17810 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17811 if ${am_cv_python_version+:} false; then :
17812 $as_echo_n "(cached) " >&6
17814 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17817 $as_echo "$am_cv_python_version" >&6; }
17818 PYTHON_VERSION=$am_cv_python_version
17822 PYTHON_PREFIX='${prefix}'
17824 PYTHON_EXEC_PREFIX='${exec_prefix}'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17829 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17830 if ${am_cv_python_platform+:} false; then :
17831 $as_echo_n "(cached) " >&6
17833 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17836 $as_echo "$am_cv_python_platform" >&6; }
17837 PYTHON_PLATFORM=$am_cv_python_platform
17840 # Just factor out some code duplication.
17841 am_python_setup_sysconfig="\
17843 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17844 # with python 3.x. See automake bug#10227.
17847 except ImportError:
17848 can_use_sysconfig = 0
17850 can_use_sysconfig = 1
17851 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17852 # <https://github.com/pypa/virtualenv/issues/118>
17854 from platform import python_implementation
17855 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17856 can_use_sysconfig = 0
17857 except ImportError:
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17862 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17863 if ${am_cv_python_pythondir+:} false; then :
17864 $as_echo_n "(cached) " >&6
17866 if test "x$prefix" = xNONE
17868 am_py_prefix=$ac_default_prefix
17870 am_py_prefix=$prefix
17872 am_cv_python_pythondir=`$PYTHON -c "
17873 $am_python_setup_sysconfig
17874 if can_use_sysconfig:
17875 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17877 from distutils import sysconfig
17878 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17879 sys.stdout.write(sitedir)"`
17880 case $am_cv_python_pythondir in
17882 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17883 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17886 case $am_py_prefix in
17889 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17897 $as_echo "$am_cv_python_pythondir" >&6; }
17898 pythondir=$am_cv_python_pythondir
17902 pkgpythondir=\${pythondir}/$PACKAGE
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17906 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17907 if ${am_cv_python_pyexecdir+:} false; then :
17908 $as_echo_n "(cached) " >&6
17910 if test "x$exec_prefix" = xNONE
17912 am_py_exec_prefix=$am_py_prefix
17914 am_py_exec_prefix=$exec_prefix
17916 am_cv_python_pyexecdir=`$PYTHON -c "
17917 $am_python_setup_sysconfig
17918 if can_use_sysconfig:
17919 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17921 from distutils import sysconfig
17922 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17923 sys.stdout.write(sitedir)"`
17924 case $am_cv_python_pyexecdir in
17925 $am_py_exec_prefix*)
17926 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17927 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17930 case $am_py_exec_prefix in
17933 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17941 $as_echo "$am_cv_python_pyexecdir" >&6; }
17942 pyexecdir=$am_cv_python_pyexecdir
17946 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17954 if ! test -x "$PYTHON-config" ; then
17955 as_fn_error $? "Cannot find python development packages to build bindings" "$LINENO" 5
17958 PYTHON_INCLUDES=$($PYTHON-config --includes)
17961 PYTHON_LIBS=$($PYTHON-config --libs)
17964 if test "x$with_python" = "xyes"; then
17965 PYTHON_CRYPTSETUP_TRUE=
17966 PYTHON_CRYPTSETUP_FALSE='#'
17968 PYTHON_CRYPTSETUP_TRUE='#'
17969 PYTHON_CRYPTSETUP_FALSE=
17974 # Check whether --with-plain-hash was given.
17975 if test "${with_plain_hash+set}" = set; then :
17976 withval=$with_plain_hash;
17977 cat >>confdefs.h <<_ACEOF
17978 #define DEFAULT_PLAIN_HASH "$withval"
17984 cat >>confdefs.h <<_ACEOF
17985 #define DEFAULT_PLAIN_HASH "ripemd160"
17993 # Check whether --with-plain-cipher was given.
17994 if test "${with_plain_cipher+set}" = set; then :
17995 withval=$with_plain_cipher;
17996 cat >>confdefs.h <<_ACEOF
17997 #define DEFAULT_PLAIN_CIPHER "$withval"
18003 cat >>confdefs.h <<_ACEOF
18004 #define DEFAULT_PLAIN_CIPHER "aes"
18012 # Check whether --with-plain-mode was given.
18013 if test "${with_plain_mode+set}" = set; then :
18014 withval=$with_plain_mode;
18015 cat >>confdefs.h <<_ACEOF
18016 #define DEFAULT_PLAIN_MODE "$withval"
18022 cat >>confdefs.h <<_ACEOF
18023 #define DEFAULT_PLAIN_MODE "cbc-essiv:sha256"
18031 # Check whether --with-plain-keybits was given.
18032 if test "${with_plain_keybits+set}" = set; then :
18033 withval=$with_plain_keybits;
18034 cat >>confdefs.h <<_ACEOF
18035 #define DEFAULT_PLAIN_KEYBITS $withval
18041 cat >>confdefs.h <<_ACEOF
18042 #define DEFAULT_PLAIN_KEYBITS 256
18051 # Check whether --with-luks1-hash was given.
18052 if test "${with_luks1_hash+set}" = set; then :
18053 withval=$with_luks1_hash;
18054 cat >>confdefs.h <<_ACEOF
18055 #define DEFAULT_LUKS1_HASH "$withval"
18061 cat >>confdefs.h <<_ACEOF
18062 #define DEFAULT_LUKS1_HASH "sha1"
18070 # Check whether --with-luks1-cipher was given.
18071 if test "${with_luks1_cipher+set}" = set; then :
18072 withval=$with_luks1_cipher;
18073 cat >>confdefs.h <<_ACEOF
18074 #define DEFAULT_LUKS1_CIPHER "$withval"
18080 cat >>confdefs.h <<_ACEOF
18081 #define DEFAULT_LUKS1_CIPHER "aes"
18089 # Check whether --with-luks1-mode was given.
18090 if test "${with_luks1_mode+set}" = set; then :
18091 withval=$with_luks1_mode;
18092 cat >>confdefs.h <<_ACEOF
18093 #define DEFAULT_LUKS1_MODE "$withval"
18099 cat >>confdefs.h <<_ACEOF
18100 #define DEFAULT_LUKS1_MODE "xts-plain64"
18108 # Check whether --with-luks1-keybits was given.
18109 if test "${with_luks1_keybits+set}" = set; then :
18110 withval=$with_luks1_keybits;
18111 cat >>confdefs.h <<_ACEOF
18112 #define DEFAULT_LUKS1_KEYBITS $withval
18118 cat >>confdefs.h <<_ACEOF
18119 #define DEFAULT_LUKS1_KEYBITS 256
18127 # Check whether --with-luks1-iter-time was given.
18128 if test "${with_luks1_iter_time+set}" = set; then :
18129 withval=$with_luks1_iter_time;
18130 cat >>confdefs.h <<_ACEOF
18131 #define DEFAULT_LUKS1_ITER_TIME $withval
18137 cat >>confdefs.h <<_ACEOF
18138 #define DEFAULT_LUKS1_ITER_TIME 1000
18147 # Check whether --with-loopaes-cipher was given.
18148 if test "${with_loopaes_cipher+set}" = set; then :
18149 withval=$with_loopaes_cipher;
18150 cat >>confdefs.h <<_ACEOF
18151 #define DEFAULT_LOOPAES_CIPHER "$withval"
18157 cat >>confdefs.h <<_ACEOF
18158 #define DEFAULT_LOOPAES_CIPHER "aes"
18166 # Check whether --with-loopaes-keybits was given.
18167 if test "${with_loopaes_keybits+set}" = set; then :
18168 withval=$with_loopaes_keybits;
18169 cat >>confdefs.h <<_ACEOF
18170 #define DEFAULT_LOOPAES_KEYBITS $withval
18176 cat >>confdefs.h <<_ACEOF
18177 #define DEFAULT_LOOPAES_KEYBITS 256
18186 # Check whether --with-keyfile-size-maxkb was given.
18187 if test "${with_keyfile_size_maxkb+set}" = set; then :
18188 withval=$with_keyfile_size_maxkb;
18189 cat >>confdefs.h <<_ACEOF
18190 #define DEFAULT_KEYFILE_SIZE_MAXKB $withval
18196 cat >>confdefs.h <<_ACEOF
18197 #define DEFAULT_KEYFILE_SIZE_MAXKB 8192
18205 # Check whether --with-passphrase-size-max was given.
18206 if test "${with_passphrase_size_max+set}" = set; then :
18207 withval=$with_passphrase_size_max;
18208 cat >>confdefs.h <<_ACEOF
18209 #define DEFAULT_PASSPHRASE_SIZE_MAX $withval
18215 cat >>confdefs.h <<_ACEOF
18216 #define DEFAULT_PASSPHRASE_SIZE_MAX 512
18225 # Check whether --with-verity-hash was given.
18226 if test "${with_verity_hash+set}" = set; then :
18227 withval=$with_verity_hash;
18228 cat >>confdefs.h <<_ACEOF
18229 #define DEFAULT_VERITY_HASH "$withval"
18235 cat >>confdefs.h <<_ACEOF
18236 #define DEFAULT_VERITY_HASH "sha256"
18244 # Check whether --with-verity-data-block was given.
18245 if test "${with_verity_data_block+set}" = set; then :
18246 withval=$with_verity_data_block;
18247 cat >>confdefs.h <<_ACEOF
18248 #define DEFAULT_VERITY_DATA_BLOCK $withval
18254 cat >>confdefs.h <<_ACEOF
18255 #define DEFAULT_VERITY_DATA_BLOCK 4096
18263 # Check whether --with-verity-hash-block was given.
18264 if test "${with_verity_hash_block+set}" = set; then :
18265 withval=$with_verity_hash_block;
18266 cat >>confdefs.h <<_ACEOF
18267 #define DEFAULT_VERITY_HASH_BLOCK $withval
18273 cat >>confdefs.h <<_ACEOF
18274 #define DEFAULT_VERITY_HASH_BLOCK 4096
18282 # Check whether --with-verity-salt-size was given.
18283 if test "${with_verity_salt_size+set}" = set; then :
18284 withval=$with_verity_salt_size;
18285 cat >>confdefs.h <<_ACEOF
18286 #define DEFAULT_VERITY_SALT_SIZE $withval
18292 cat >>confdefs.h <<_ACEOF
18293 #define DEFAULT_VERITY_SALT_SIZE 32
18302 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libcryptsetup.pc lib/crypto_backend/Makefile lib/luks1/Makefile lib/loopaes/Makefile lib/verity/Makefile lib/tcrypt/Makefile src/Makefile po/Makefile.in man/Makefile tests/Makefile python/Makefile"
18304 cat >confcache <<\_ACEOF
18305 # This file is a shell script that caches the results of configure
18306 # tests run on this system so they can be shared between configure
18307 # scripts and configure runs, see configure's option --config-cache.
18308 # It is not useful on other systems. If it contains results you don't
18309 # want to keep, you may remove or edit it.
18311 # config.status only pays attention to the cache file if you give it
18312 # the --recheck option to rerun configure.
18314 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18315 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18316 # following values.
18320 # The following way of writing the cache mishandles newlines in values,
18321 # but we know of no workaround that is simple, portable, and efficient.
18322 # So, we kill variables containing newlines.
18323 # Ultrix sh set writes to stderr and can't be redirected directly,
18324 # and sets the high bit in the cache file unless we assign to the vars.
18326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18327 eval ac_val=\$$ac_var
18331 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18335 _ | IFS | as_nl) ;; #(
18336 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18337 *) { eval $ac_var=; unset $ac_var;} ;;
18343 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18344 *${as_nl}ac_space=\ *)
18345 # `set' does not quote correctly, so add quotes: double-quote
18346 # substitution turns \\\\ into \\, and sed turns \\ into \.
18349 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18352 # `set' quotes correctly as required by POSIX, so do not add quotes.
18353 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18364 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18366 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18367 if test -w "$cache_file"; then
18368 if test "x$cache_file" != "x/dev/null"; then
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18370 $as_echo "$as_me: updating cache $cache_file" >&6;}
18371 if test ! -f "$cache_file" || test -h "$cache_file"; then
18372 cat confcache >"$cache_file"
18374 case $cache_file in #(
18376 mv -f confcache "$cache_file"$$ &&
18377 mv -f "$cache_file"$$ "$cache_file" ;; #(
18379 mv -f confcache "$cache_file" ;;
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18391 # Let make expand exec_prefix.
18392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18394 DEFS=-DHAVE_CONFIG_H
18399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18400 # 1. Remove the extension, and $U if already installed.
18401 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18402 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18403 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18404 # will be set to the directory where LIBOBJS objects are built.
18405 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18406 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18408 LIBOBJS=$ac_libobjs
18410 LTLIBOBJS=$ac_ltlibobjs
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18414 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18415 if test -n "$am_sleep_pid"; then
18416 # Hide warnings about reused PIDs.
18417 wait $am_sleep_pid 2>/dev/null
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18420 $as_echo "done" >&6; }
18421 if test -n "$EXEEXT"; then
18423 am__EXEEXT_FALSE='#'
18425 am__EXEEXT_TRUE='#'
18429 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18430 as_fn_error $? "conditional \"AMDEP\" was never defined.
18431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18434 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18438 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18442 if test -z "${STATIC_TOOLS_TRUE}" && test -z "${STATIC_TOOLS_FALSE}"; then
18443 as_fn_error $? "conditional \"STATIC_TOOLS\" was never defined.
18444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18446 if test -z "${VERITYSETUP_TRUE}" && test -z "${VERITYSETUP_FALSE}"; then
18447 as_fn_error $? "conditional \"VERITYSETUP\" was never defined.
18448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18450 if test -z "${REENCRYPT_TRUE}" && test -z "${REENCRYPT_FALSE}"; then
18451 as_fn_error $? "conditional \"REENCRYPT\" was never defined.
18452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18454 if test -z "${CRYPTO_BACKEND_GCRYPT_TRUE}" && test -z "${CRYPTO_BACKEND_GCRYPT_FALSE}"; then
18455 as_fn_error $? "conditional \"CRYPTO_BACKEND_GCRYPT\" was never defined.
18456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18458 if test -z "${CRYPTO_BACKEND_OPENSSL_TRUE}" && test -z "${CRYPTO_BACKEND_OPENSSL_FALSE}"; then
18459 as_fn_error $? "conditional \"CRYPTO_BACKEND_OPENSSL\" was never defined.
18460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18462 if test -z "${CRYPTO_BACKEND_NSS_TRUE}" && test -z "${CRYPTO_BACKEND_NSS_FALSE}"; then
18463 as_fn_error $? "conditional \"CRYPTO_BACKEND_NSS\" was never defined.
18464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18466 if test -z "${CRYPTO_BACKEND_KERNEL_TRUE}" && test -z "${CRYPTO_BACKEND_KERNEL_FALSE}"; then
18467 as_fn_error $? "conditional \"CRYPTO_BACKEND_KERNEL\" was never defined.
18468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18470 if test -z "${CRYPTO_BACKEND_NETTLE_TRUE}" && test -z "${CRYPTO_BACKEND_NETTLE_FALSE}"; then
18471 as_fn_error $? "conditional \"CRYPTO_BACKEND_NETTLE\" was never defined.
18472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18474 if test -z "${CRYPTO_INTERNAL_PBKDF2_TRUE}" && test -z "${CRYPTO_INTERNAL_PBKDF2_FALSE}"; then
18475 as_fn_error $? "conditional \"CRYPTO_INTERNAL_PBKDF2\" was never defined.
18476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18478 if test -z "${PYTHON_CRYPTSETUP_TRUE}" && test -z "${PYTHON_CRYPTSETUP_FALSE}"; then
18479 as_fn_error $? "conditional \"PYTHON_CRYPTSETUP\" was never defined.
18480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18483 : "${CONFIG_STATUS=./config.status}"
18485 ac_clean_files_save=$ac_clean_files
18486 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18488 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18490 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18492 # Generated by $as_me.
18493 # Run this file to recreate the current configuration.
18494 # Compiler output produced by configure, useful for debugging
18495 # configure, is in config.log if it exists.
18498 ac_cs_recheck=false
18501 SHELL=\${CONFIG_SHELL-$SHELL}
18504 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18505 ## -------------------- ##
18506 ## M4sh Initialization. ##
18507 ## -------------------- ##
18509 # Be more Bourne compatible
18510 DUALCASE=1; export DUALCASE # for MKS sh
18511 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18514 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18515 # is contrary to our usage. Disable this feature.
18516 alias -g '${1+"$@"}'='"$@"'
18517 setopt NO_GLOB_SUBST
18519 case `(set -o) 2>/dev/null` in #(
18531 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18532 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18533 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18534 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18535 # Prefer a ksh shell builtin over an external printf program on Solaris,
18536 # but without wasting forks for bash or zsh.
18537 if test -z "$BASH_VERSION$ZSH_VERSION" \
18538 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18539 as_echo='print -r --'
18540 as_echo_n='print -rn --'
18541 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18542 as_echo='printf %s\n'
18543 as_echo_n='printf %s'
18545 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18546 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18547 as_echo_n='/usr/ucb/echo -n'
18549 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18550 as_echo_n_body='eval
18554 expr "X$arg" : "X\\(.*\\)$as_nl";
18555 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18557 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18559 export as_echo_n_body
18560 as_echo_n='sh -c $as_echo_n_body as_echo'
18562 export as_echo_body
18563 as_echo='sh -c $as_echo_body as_echo'
18566 # The user is always right.
18567 if test "${PATH_SEPARATOR+set}" != set; then
18569 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18570 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18577 # We need space, tab and new line, in precisely that order. Quoting is
18578 # there to prevent editors from complaining about space-tab.
18579 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18580 # splitting by setting IFS to empty value.)
18583 # Find who we are. Look in the path if we contain no directory separator.
18586 *[\\/]* ) as_myself=$0 ;;
18587 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18588 for as_dir in $PATH
18591 test -z "$as_dir" && as_dir=.
18592 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18598 # We did not find ourselves, most probably we were run as `sh COMMAND'
18599 # in which case we are not to be found in the path.
18600 if test "x$as_myself" = x; then
18603 if test ! -f "$as_myself"; then
18604 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18608 # Unset variables that we do not need and which cause bugs (e.g. in
18609 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18610 # suppresses any "Segmentation fault" message there. '((' could
18611 # trigger a bug in pdksh 5.2.14.
18612 for as_var in BASH_ENV ENV MAIL MAILPATH
18613 do eval test x\${$as_var+set} = xset \
18614 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18627 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18630 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18631 # ----------------------------------------
18632 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18633 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18634 # script with STATUS, using 1 if that was 0.
18637 as_status=$1; test $as_status -eq 0 && as_status=1
18639 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18640 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18642 $as_echo "$as_me: error: $2" >&2
18643 as_fn_exit $as_status
18647 # as_fn_set_status STATUS
18648 # -----------------------
18649 # Set $? to STATUS, without forking.
18650 as_fn_set_status ()
18653 } # as_fn_set_status
18655 # as_fn_exit STATUS
18656 # -----------------
18657 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18661 as_fn_set_status $1
18667 # Portably unset VAR.
18670 { eval $1=; unset $1;}
18672 as_unset=as_fn_unset
18673 # as_fn_append VAR VALUE
18674 # ----------------------
18675 # Append the text in VALUE to the end of the definition contained in VAR. Take
18676 # advantage of any shell optimizations that allow amortized linear growth over
18677 # repeated appends, instead of the typical quadratic growth present in naive
18679 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18680 eval 'as_fn_append ()
18691 # as_fn_arith ARG...
18692 # ------------------
18693 # Perform arithmetic evaluation on the ARGs, and store the result in the
18694 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18695 # must be portable across $(()) and expr.
18696 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18697 eval 'as_fn_arith ()
18704 as_val=`expr "$@" || test $? -eq 1`
18709 if expr a : '\(a\)' >/dev/null 2>&1 &&
18710 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18716 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18717 as_basename=basename
18722 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18728 as_me=`$as_basename -- "$0" ||
18729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18730 X"$0" : 'X\(//\)$' \| \
18731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18733 sed '/^.*\/\([^/][^/]*\)\/*$/{
18747 # Avoid depending upon Character Ranges.
18748 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18749 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18750 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18751 as_cr_digits='0123456789'
18752 as_cr_alnum=$as_cr_Letters$as_cr_digits
18754 ECHO_C= ECHO_N= ECHO_T=
18755 case `echo -n x` in #(((((
18757 case `echo 'xy\c'` in
18758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18760 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18767 rm -f conf$$ conf$$.exe conf$$.file
18768 if test -d conf$$.dir; then
18769 rm -f conf$$.dir/conf$$.file
18772 mkdir conf$$.dir 2>/dev/null
18774 if (echo >conf$$.file) 2>/dev/null; then
18775 if ln -s conf$$.file conf$$ 2>/dev/null; then
18777 # ... but there are two gotchas:
18778 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18779 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18780 # In both cases, we have to default to `cp -pR'.
18781 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18783 elif ln conf$$.file conf$$ 2>/dev/null; then
18791 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18792 rmdir conf$$.dir 2>/dev/null
18797 # Create "$as_dir" as a directory, including parents if necessary.
18802 -*) as_dir=./$as_dir;;
18804 test -d "$as_dir" || eval $as_mkdir_p || {
18808 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18809 *) as_qdir=$as_dir;;
18811 as_dirs="'$as_qdir' $as_dirs"
18812 as_dir=`$as_dirname -- "$as_dir" ||
18813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18814 X"$as_dir" : 'X\(//\)[^/]' \| \
18815 X"$as_dir" : 'X\(//\)$' \| \
18816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18817 $as_echo X"$as_dir" |
18818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18822 /^X\(\/\/\)[^/].*/{
18835 test -d "$as_dir" && break
18837 test -z "$as_dirs" || eval "mkdir $as_dirs"
18838 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18842 if mkdir -p . 2>/dev/null; then
18843 as_mkdir_p='mkdir -p "$as_dir"'
18845 test -d ./-p && rmdir ./-p
18850 # as_fn_executable_p FILE
18851 # -----------------------
18852 # Test if FILE is an executable regular file.
18853 as_fn_executable_p ()
18855 test -f "$1" && test -x "$1"
18856 } # as_fn_executable_p
18857 as_test_x='test -x'
18858 as_executable_p=as_fn_executable_p
18860 # Sed expression to map a string onto a valid CPP name.
18861 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18863 # Sed expression to map a string onto a valid variable name.
18864 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18868 ## ----------------------------------- ##
18869 ## Main body of $CONFIG_STATUS script. ##
18870 ## ----------------------------------- ##
18872 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18875 # Save the log message, to keep $0 and so on meaningful, and to
18876 # report actual input values of CONFIG_FILES etc. instead of their
18877 # values after options handling.
18879 This file was extended by cryptsetup $as_me 1.6.7, which was
18880 generated by GNU Autoconf 2.69. Invocation command line was
18882 CONFIG_FILES = $CONFIG_FILES
18883 CONFIG_HEADERS = $CONFIG_HEADERS
18884 CONFIG_LINKS = $CONFIG_LINKS
18885 CONFIG_COMMANDS = $CONFIG_COMMANDS
18888 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18893 case $ac_config_files in *"
18894 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18897 case $ac_config_headers in *"
18898 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 # Files that config.status was made for.
18904 config_files="$ac_config_files"
18905 config_headers="$ac_config_headers"
18906 config_commands="$ac_config_commands"
18910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18912 \`$as_me' instantiates files and other configuration actions
18913 from templates according to the current configuration. Unless the files
18914 and actions are specified as TAGs, all are instantiated by default.
18916 Usage: $0 [OPTION]... [TAG]...
18918 -h, --help print this help, then exit
18919 -V, --version print version number and configuration settings, then exit
18920 --config print configuration, then exit
18921 -q, --quiet, --silent
18922 do not print progress messages
18923 -d, --debug don't remove temporary files
18924 --recheck update $as_me by reconfiguring in the same conditions
18925 --file=FILE[:TEMPLATE]
18926 instantiate the configuration file FILE
18927 --header=FILE[:TEMPLATE]
18928 instantiate the configuration header FILE
18930 Configuration files:
18933 Configuration headers:
18936 Configuration commands:
18939 Report bugs to the package provider."
18942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18943 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18945 cryptsetup config.status 1.6.7
18946 configured by $0, generated by GNU Autoconf 2.69,
18947 with options \\"\$ac_cs_config\\"
18949 Copyright (C) 2012 Free Software Foundation, Inc.
18950 This config.status script is free software; the Free Software Foundation
18951 gives unlimited permission to copy, distribute and modify it."
18958 test -n "\$AWK" || AWK=awk
18961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18962 # The default lists apply if the user does not specify any file.
18968 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18969 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18973 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18985 # Handling of the options.
18986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18988 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18989 $as_echo "$ac_cs_version"; exit ;;
18990 --config | --confi | --conf | --con | --co | --c )
18991 $as_echo "$ac_cs_config"; exit ;;
18992 --debug | --debu | --deb | --de | --d | -d )
18994 --file | --fil | --fi | --f )
18997 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18998 '') as_fn_error $? "missing file argument" ;;
19000 as_fn_append CONFIG_FILES " '$ac_optarg'"
19001 ac_need_defaults=false;;
19002 --header | --heade | --head | --hea )
19005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19007 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19008 ac_need_defaults=false;;
19010 # Conflict between --help and --header
19011 as_fn_error $? "ambiguous option: \`$1'
19012 Try \`$0 --help' for more information.";;
19013 --help | --hel | -h )
19014 $as_echo "$ac_cs_usage"; exit ;;
19015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19019 # This is an error.
19020 -*) as_fn_error $? "unrecognized option: \`$1'
19021 Try \`$0 --help' for more information." ;;
19023 *) as_fn_append ac_config_targets " $1"
19024 ac_need_defaults=false ;;
19030 ac_configure_extra_args=
19032 if $ac_cs_silent; then
19034 ac_configure_extra_args="$ac_configure_extra_args --silent"
19038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19039 if \$ac_cs_recheck; then
19040 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19042 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19043 CONFIG_SHELL='$SHELL'
19044 export CONFIG_SHELL
19049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19053 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19054 ## Running $as_me. ##
19060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19064 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19067 # The HP-UX ksh and POSIX shell print the target directory to stdout
19068 # if CDPATH is set.
19069 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19071 sed_quote_subst='$sed_quote_subst'
19072 double_quote_subst='$double_quote_subst'
19073 delay_variable_subst='$delay_variable_subst'
19074 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19075 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19076 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19077 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19078 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19079 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19080 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19081 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19082 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19083 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19084 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19085 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19086 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19087 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19088 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19089 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19090 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19091 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19092 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19093 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19094 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19095 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19096 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19097 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19098 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19099 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19100 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19101 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19102 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19103 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19104 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19105 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19106 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19107 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19108 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19109 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19110 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19111 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19112 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19113 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19114 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19115 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19116 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19117 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19118 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19119 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19120 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19121 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19122 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19123 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19124 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19125 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19126 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19127 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19128 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19129 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19130 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"`'
19131 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19132 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19133 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19134 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19135 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19136 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19137 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19138 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19139 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19140 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19141 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19142 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19143 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19144 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19145 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19146 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19147 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19148 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19149 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19150 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19151 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19152 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19153 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19154 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19155 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19156 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19157 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19158 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19159 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19160 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19161 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19162 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19163 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19164 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19165 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19166 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19167 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19168 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19169 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19170 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19171 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19172 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19173 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19174 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19175 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19176 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19177 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19178 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19179 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19180 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19181 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19182 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19183 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19184 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19185 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19186 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19187 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19188 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19189 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19190 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19191 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19192 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19193 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19194 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19195 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19196 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19197 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19198 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19199 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19200 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19201 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19202 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19203 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19206 LTCFLAGS='$LTCFLAGS'
19207 compiler='$compiler_DEFAULT'
19209 # A function that is used when there is no print builtin or printf.
19210 func_fallback_echo ()
19212 eval 'cat <<_LTECHO_EOF
19217 # Quote evaled strings.
19232 deplibs_check_method \
19237 sharedlib_from_linklib_cmd \
19240 archiver_list_spec \
19246 lt_cv_sys_global_symbol_pipe \
19247 lt_cv_sys_global_symbol_to_cdecl \
19248 lt_cv_sys_global_symbol_to_c_name_address \
19249 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19250 nm_file_list_spec \
19251 lt_prog_compiler_no_builtin_flag \
19252 lt_prog_compiler_pic \
19253 lt_prog_compiler_wl \
19254 lt_prog_compiler_static \
19255 lt_cv_prog_compiler_c_o \
19264 export_dynamic_flag_spec \
19265 whole_archive_flag_spec \
19266 compiler_needs_object \
19268 allow_undefined_flag \
19269 no_undefined_flag \
19270 hardcode_libdir_flag_spec \
19271 hardcode_libdir_separator \
19275 variables_saved_for_relink \
19277 library_names_spec \
19279 install_override_mode \
19283 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19284 *[\\\\\\\`\\"\\\$]*)
19285 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19288 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19293 # Double-quote double-evaled strings.
19294 for var in reload_cmds \
19295 old_postinstall_cmds \
19296 old_postuninstall_cmds \
19298 extract_expsyms_cmds \
19299 old_archive_from_new_cmds \
19300 old_archive_from_expsyms_cmds \
19302 archive_expsym_cmds \
19304 module_expsym_cmds \
19305 export_symbols_cmds \
19309 postuninstall_cmds \
19311 sys_lib_search_path_spec \
19312 sys_lib_dlsearch_path_spec; do
19313 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19314 *[\\\\\\\`\\"\\\$]*)
19315 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19318 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19323 ac_aux_dir='$ac_aux_dir'
19324 xsi_shell='$xsi_shell'
19325 lt_shell_append='$lt_shell_append'
19327 # See if we are running on zsh, and set the options which allow our
19328 # commands through without removal of \ escapes INIT.
19329 if test -n "\${ZSH_VERSION+set}" ; then
19330 setopt NO_GLOB_SUBST
19336 TIMESTAMP='$TIMESTAMP'
19342 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
19343 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
19344 # from automake < 1.5.
19345 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
19346 # Capture the value of LINGUAS because we need it to compute CATALOGS.
19347 LINGUAS="${LINGUAS-%UNSET%}"
19352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19354 # Handling of arguments.
19355 for ac_config_target in $ac_config_targets
19357 case $ac_config_target in
19358 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
19359 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19360 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19361 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
19362 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19363 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19364 "lib/libcryptsetup.pc") CONFIG_FILES="$CONFIG_FILES lib/libcryptsetup.pc" ;;
19365 "lib/crypto_backend/Makefile") CONFIG_FILES="$CONFIG_FILES lib/crypto_backend/Makefile" ;;
19366 "lib/luks1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/luks1/Makefile" ;;
19367 "lib/loopaes/Makefile") CONFIG_FILES="$CONFIG_FILES lib/loopaes/Makefile" ;;
19368 "lib/verity/Makefile") CONFIG_FILES="$CONFIG_FILES lib/verity/Makefile" ;;
19369 "lib/tcrypt/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tcrypt/Makefile" ;;
19370 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19371 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
19372 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19373 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19374 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
19376 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19381 # If the user did not use the arguments to specify the items to instantiate,
19382 # then the envvar interface is used. Set only those that are not.
19383 # We use the long form for the default assignment because of an extremely
19384 # bizarre bug on SunOS 4.1.3.
19385 if $ac_need_defaults; then
19386 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19387 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19388 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19391 # Have a temporary directory for convenience. Make it in the build tree
19392 # simply because there is no reason against having it here, and in addition,
19393 # creating and moving files from /tmp can sometimes cause problems.
19394 # Hook for its removal unless debugging.
19395 # Note that there is a small window in which the directory will not be cleaned:
19396 # after its creation but before its name has been assigned to `$tmp'.
19400 trap 'exit_status=$?
19401 : "${ac_tmp:=$tmp}"
19402 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19404 trap 'as_fn_exit 1' 1 2 13 15
19406 # Create a (secure) tmp directory for tmp files.
19409 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19413 tmp=./conf$$-$RANDOM
19414 (umask 077 && mkdir "$tmp")
19415 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19418 # Set up the scripts for CONFIG_FILES section.
19419 # No need to generate them if there are no CONFIG_FILES.
19420 # This happens for instance with `./config.status config.h'.
19421 if test -n "$CONFIG_FILES"; then
19424 ac_cr=`echo X | tr X '\015'`
19425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19426 # But we know of no other shell where ac_cr would be empty at this
19427 # point, so we can use a bashism as a fallback.
19428 if test "x$ac_cr" = x; then
19429 eval ac_cr=\$\'\\r\'
19431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19435 ac_cs_awk_cr=$ac_cr
19438 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19443 echo "cat >conf$$subs.awk <<_ACEOF" &&
19444 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19446 } >conf$$subs.sh ||
19447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19448 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19450 for ac_last_try in false false false false false :; do
19451 . ./conf$$subs.sh ||
19452 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19454 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19455 if test $ac_delim_n = $ac_delim_num; then
19457 elif $ac_last_try; then
19458 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19460 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19463 rm -f conf$$subs.sh
19465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19466 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19470 s/^/S["/; s/!.*/"]=/
19480 s/\(.\{148\}\)..*/\1/
19482 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19494 s/\(.\{148\}\)..*/\1/
19496 s/["\\]/\\&/g; s/^/"/; s/$/"/
19500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19505 ' <conf$$subs.awk | sed '
19510 ' >>$CONFIG_STATUS || ac_write_fail=1
19511 rm -f conf$$subs.awk
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19514 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19515 for (key in S) S_is_set[key] = 1
19521 nfields = split(line, field, "@")
19523 len = length(field[1])
19524 for (i = 2; i < nfields; i++) {
19526 keylen = length(key)
19527 if (S_is_set[key]) {
19529 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19530 len += length(value) + length(field[++i])
19541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19542 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19543 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19546 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19547 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19550 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19551 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19552 # trailing colons and then remove the whole line if VPATH becomes empty
19553 # (actually we leave an empty line to preserve line numbers).
19554 if test "x$srcdir" = x.; then
19555 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19574 fi # test -n "$CONFIG_FILES"
19576 # Set up the scripts for CONFIG_HEADERS section.
19577 # No need to generate them if there are no CONFIG_HEADERS.
19578 # This happens for instance with `./config.status Makefile'.
19579 if test -n "$CONFIG_HEADERS"; then
19580 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19584 # Transform confdefs.h into an awk script `defines.awk', embedded as
19585 # here-document in config.status, that substitutes the proper values into
19586 # config.h.in to produce config.h.
19588 # Create a delimiter string that does not exist in confdefs.h, to ease
19589 # handling of long lines.
19591 for ac_last_try in false false :; do
19592 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19593 if test -z "$ac_tt"; then
19595 elif $ac_last_try; then
19596 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19602 # For the awk script, D is an array of macro values keyed by name,
19603 # likewise P contains macro parameters if any. Preserve backslash
19604 # newline sequences.
19606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19608 s/.\{148\}/&'"$ac_delim"'/g
19611 s/^[ ]*#[ ]*define[ ][ ]*/ /
19618 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19620 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19625 D["\1"]=" \3\\\\\\n"\\/p
19627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19632 s/.\{148\}/&'"$ac_delim"'/g
19637 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19640 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19642 ' <confdefs.h | sed '
19643 s/'"$ac_delim"'/"\\\
19644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19647 for (key in D) D_is_set[key] = 1
19650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19652 split(line, arg, " ")
19653 if (arg[1] == "#") {
19657 defundef = substr(arg[1], 2)
19660 split(mac1, mac2, "(") #)
19662 prefix = substr(line, 1, index(line, defundef) - 1)
19663 if (D_is_set[macro]) {
19664 # Preserve the white space surrounding the "#".
19665 print prefix "define", macro P[macro] D[macro]
19668 # Replace #undef with comments. This is necessary, for example,
19669 # in the case of _POSIX_SOURCE, which is predefined and required
19670 # on some systems where configure will not decide to define it.
19671 if (defundef == "undef") {
19672 print "/*", prefix defundef, macro, "*/"
19680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19681 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19682 fi # test -n "$CONFIG_HEADERS"
19685 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19690 :[FHLC]) ac_mode=$ac_tag; continue;;
19692 case $ac_mode$ac_tag in
19694 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19695 :[FH]-) ac_tag=-:-;;
19696 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19713 -) ac_f="$ac_tmp/stdin";;
19714 *) # Look for the file first in the build tree, then in the source tree
19715 # (if the path is not absolute). The absolute path cannot be DOS-style,
19716 # because $ac_f cannot contain `:'.
19720 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19722 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19724 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19725 as_fn_append ac_file_inputs " '$ac_f'"
19728 # Let's still pretend it is `configure' which instantiates (i.e., don't
19729 # use $as_me), people would be surprised to read:
19730 # /* config.h. Generated by config.status. */
19731 configure_input='Generated from '`
19732 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19734 if test x"$ac_file" != x-; then
19735 configure_input="$ac_file. $configure_input"
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19737 $as_echo "$as_me: creating $ac_file" >&6;}
19739 # Neutralize special characters interpreted by sed in replacement strings.
19740 case $configure_input in #(
19741 *\&* | *\|* | *\\* )
19742 ac_sed_conf_input=`$as_echo "$configure_input" |
19743 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19744 *) ac_sed_conf_input=$configure_input;;
19748 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19754 ac_dir=`$as_dirname -- "$ac_file" ||
19755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19756 X"$ac_file" : 'X\(//\)[^/]' \| \
19757 X"$ac_file" : 'X\(//\)$' \| \
19758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19759 $as_echo X"$ac_file" |
19760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19764 /^X\(\/\/\)[^/].*/{
19777 as_dir="$ac_dir"; as_fn_mkdir_p
19781 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19783 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19784 # A ".." for each directory in $ac_dir_suffix.
19785 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19786 case $ac_top_builddir_sub in
19787 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19788 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19791 ac_abs_top_builddir=$ac_pwd
19792 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19793 # for backward compatibility:
19794 ac_top_builddir=$ac_top_build_prefix
19797 .) # We are building in place.
19799 ac_top_srcdir=$ac_top_builddir_sub
19800 ac_abs_top_srcdir=$ac_pwd ;;
19801 [\\/]* | ?:[\\/]* ) # Absolute name.
19802 ac_srcdir=$srcdir$ac_dir_suffix;
19803 ac_top_srcdir=$srcdir
19804 ac_abs_top_srcdir=$srcdir ;;
19805 *) # Relative name.
19806 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19807 ac_top_srcdir=$ac_top_build_prefix$srcdir
19808 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19810 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19820 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19821 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19823 ac_MKDIR_P=$MKDIR_P
19825 [\\/$]* | ?:[\\/]* ) ;;
19826 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19831 # If the template does not know about datarootdir, expand it.
19832 # FIXME: This hack should be removed a few years after 2.60.
19833 ac_datarootdir_hack=; ac_datarootdir_seen=
19844 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19845 *datarootdir*) ac_datarootdir_seen=yes;;
19846 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19848 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19851 ac_datarootdir_hack='
19852 s&@datadir@&$datadir&g
19853 s&@docdir@&$docdir&g
19854 s&@infodir@&$infodir&g
19855 s&@localedir@&$localedir&g
19856 s&@mandir@&$mandir&g
19857 s&\\\${datarootdir}&$datarootdir&g' ;;
19861 # Neutralize VPATH when `$srcdir' = `.'.
19862 # Shell code in configure.ac might set extrasub.
19863 # FIXME: do we really want to maintain this feature?
19864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19865 ac_sed_extra="$ac_vpsub
19868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19871 s|@configure_input@|$ac_sed_conf_input|;t t
19872 s&@top_builddir@&$ac_top_builddir_sub&;t t
19873 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19874 s&@srcdir@&$ac_srcdir&;t t
19875 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19876 s&@top_srcdir@&$ac_top_srcdir&;t t
19877 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19878 s&@builddir@&$ac_builddir&;t t
19879 s&@abs_builddir@&$ac_abs_builddir&;t t
19880 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19881 s&@INSTALL@&$ac_INSTALL&;t t
19882 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19883 $ac_datarootdir_hack
19885 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19886 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19889 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19891 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19893 which seems to be undefined. Please make sure it is defined" >&5
19894 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19895 which seems to be undefined. Please make sure it is defined" >&2;}
19897 rm -f "$ac_tmp/stdin"
19899 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19900 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19908 if test x"$ac_file" != x-; then
19910 $as_echo "/* $configure_input */" \
19911 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19912 } >"$ac_tmp/config.h" \
19913 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19914 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19916 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19919 mv "$ac_tmp/config.h" "$ac_file" \
19920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19923 $as_echo "/* $configure_input */" \
19924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19925 || as_fn_error $? "could not create -" "$LINENO" 5
19927 # Compute "$ac_file"'s index in $config_headers.
19930 for _am_header in $config_headers :; do
19931 case $_am_header in
19932 $_am_arg | $_am_arg:* )
19935 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19938 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19939 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19940 X"$_am_arg" : 'X\(//\)[^/]' \| \
19941 X"$_am_arg" : 'X\(//\)$' \| \
19942 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19943 $as_echo X"$_am_arg" |
19944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19948 /^X\(\/\/\)[^/].*/{
19960 s/.*/./; q'`/stamp-h$_am_stamp_count
19963 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19964 $as_echo "$as_me: executing $ac_file commands" >&6;}
19969 case $ac_file$ac_mode in
19970 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19971 # Older Autoconf quotes --file arguments for eval, but not when files
19972 # are listed without --file. Let's play safe and only enable the eval
19973 # if we detect the quoting.
19974 case $CONFIG_FILES in
19975 *\'*) eval set x "$CONFIG_FILES" ;;
19976 *) set x $CONFIG_FILES ;;
19981 # Strip MF so we end up with the name of the file.
19982 mf=`echo "$mf" | sed -e 's/:.*$//'`
19983 # Check whether this is an Automake generated Makefile or not.
19984 # We used to match only the files named 'Makefile.in', but
19985 # some people rename them; so instead we look at the file content.
19986 # Grep'ing the first line is not enough: some people post-process
19987 # each Makefile.in and add a new line on top of each file to say so.
19988 # Grep'ing the whole file is not good either: AIX grep has a line
19989 # limit of 2048, but all sed's we know have understand at least 4000.
19990 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19991 dirpart=`$as_dirname -- "$mf" ||
19992 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19993 X"$mf" : 'X\(//\)[^/]' \| \
19994 X"$mf" : 'X\(//\)$' \| \
19995 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19997 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20001 /^X\(\/\/\)[^/].*/{
20017 # Extract the definition of DEPDIR, am__include, and am__quote
20018 # from the Makefile without running 'make'.
20019 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20020 test -z "$DEPDIR" && continue
20021 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20022 test -z "$am__include" && continue
20023 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20024 # Find all dependency output files, they are included files with
20025 # $(DEPDIR) in their names. We invoke sed twice because it is the
20026 # simplest approach to changing $(DEPDIR) to its actual value in the
20028 for file in `sed -n "
20029 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20030 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20031 # Make sure the directory exists.
20032 test -f "$dirpart/$file" && continue
20033 fdir=`$as_dirname -- "$file" ||
20034 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20035 X"$file" : 'X\(//\)[^/]' \| \
20036 X"$file" : 'X\(//\)$' \| \
20037 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20038 $as_echo X"$file" |
20039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20043 /^X\(\/\/\)[^/].*/{
20056 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20057 # echo "creating $dirpart/$file"
20058 echo '# dummy' > "$dirpart/$file"
20065 # See if we are running on zsh, and set the options which allow our
20066 # commands through without removal of \ escapes.
20067 if test -n "${ZSH_VERSION+set}" ; then
20068 setopt NO_GLOB_SUBST
20071 cfgfile="${ofile}T"
20072 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20075 cat <<_LT_EOF >> "$cfgfile"
20078 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20079 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20081 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20083 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20084 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20086 # Written by Gordon Matzigkeit, 1996
20088 # This file is part of GNU Libtool.
20090 # GNU Libtool is free software; you can redistribute it and/or
20091 # modify it under the terms of the GNU General Public License as
20092 # published by the Free Software Foundation; either version 2 of
20093 # the License, or (at your option) any later version.
20095 # As a special exception to the GNU General Public License,
20096 # if you distribute this file as part of a program or library that
20097 # is built using GNU Libtool, you may include this file under the
20098 # same distribution terms that you use for the rest of that program.
20100 # GNU Libtool is distributed in the hope that it will be useful,
20101 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20103 # GNU General Public License for more details.
20105 # You should have received a copy of the GNU General Public License
20106 # along with GNU Libtool; see the file COPYING. If not, a copy
20107 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20108 # obtained by writing to the Free Software Foundation, Inc.,
20109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20112 # The names of the tagged configurations supported by this script.
20115 # ### BEGIN LIBTOOL CONFIG
20117 # Whether or not to build static libraries.
20118 build_old_libs=$enable_static
20120 # Which release of libtool.m4 was used?
20121 macro_version=$macro_version
20122 macro_revision=$macro_revision
20124 # Whether or not to build shared libraries.
20125 build_libtool_libs=$enable_shared
20127 # What type of objects to build.
20130 # Whether or not to optimize for fast installation.
20131 fast_install=$enable_fast_install
20133 # Shell to use when invoking shell scripts.
20136 # An echo program that protects backslashes.
20139 # The PATH separator for the build system.
20140 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20143 host_alias=$host_alias
20147 # The build system.
20148 build_alias=$build_alias
20152 # A sed program that does not truncate output.
20155 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20156 Xsed="\$SED -e 1s/^X//"
20158 # A grep program that handles long lines.
20164 # A literal string matcher.
20167 # A BSD- or MS-compatible name lister.
20170 # Whether we need soft or hard links.
20173 # What is the maximum length of a command?
20174 max_cmd_len=$max_cmd_len
20176 # Object file suffix (normally "o").
20179 # Executable file suffix (normally "").
20182 # whether the shell understands "unset".
20185 # turn spaces into newlines.
20188 # turn newlines into spaces.
20191 # convert \$build file names to \$host format.
20192 to_host_file_cmd=$lt_cv_to_host_file_cmd
20194 # convert \$build files to toolchain format.
20195 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20197 # An object symbol dumper.
20198 OBJDUMP=$lt_OBJDUMP
20200 # Method to check whether dependent libraries are shared objects.
20201 deplibs_check_method=$lt_deplibs_check_method
20203 # Command to use when deplibs_check_method = "file_magic".
20204 file_magic_cmd=$lt_file_magic_cmd
20206 # How to find potential files when deplibs_check_method = "file_magic".
20207 file_magic_glob=$lt_file_magic_glob
20209 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20210 want_nocaseglob=$lt_want_nocaseglob
20212 # DLL creation program.
20213 DLLTOOL=$lt_DLLTOOL
20215 # Command to associate shared and link libraries.
20216 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20221 # Flags to create an archive.
20222 AR_FLAGS=$lt_AR_FLAGS
20224 # How to feed a file listing to the archiver.
20225 archiver_list_spec=$lt_archiver_list_spec
20227 # A symbol stripping program.
20230 # Commands used to install an old-style archive.
20232 old_postinstall_cmds=$lt_old_postinstall_cmds
20233 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20235 # Whether to use a lock for old archive extraction.
20236 lock_old_archive_extraction=$lock_old_archive_extraction
20241 # LTCC compiler flags.
20242 LTCFLAGS=$lt_CFLAGS
20244 # Take the output of nm and produce a listing of raw symbols and C names.
20245 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20247 # Transform the output of nm in a proper C declaration.
20248 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20250 # Transform the output of nm in a C name address pair.
20251 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20253 # Transform the output of nm in a C name address pair when lib prefix is needed.
20254 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20256 # Specify filename containing input files for \$NM.
20257 nm_file_list_spec=$lt_nm_file_list_spec
20259 # The root where to search for dependent libraries,and in which our libraries should be installed.
20260 lt_sysroot=$lt_sysroot
20262 # The name of the directory that contains temporary libtool files.
20265 # Used to examine libraries when file_magic_cmd begins with "file".
20266 MAGIC_CMD=$MAGIC_CMD
20268 # Must we lock files when doing compilation?
20269 need_locks=$lt_need_locks
20272 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20274 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20275 DSYMUTIL=$lt_DSYMUTIL
20277 # Tool to change global to local symbols on Mac OS X.
20280 # Tool to manipulate fat objects and archives on Mac OS X.
20283 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20286 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20287 OTOOL64=$lt_OTOOL64
20289 # Old archive suffix (normally "a").
20292 # Shared library suffix (normally ".so").
20293 shrext_cmds=$lt_shrext_cmds
20295 # The commands to extract the exported symbol list from a shared archive.
20296 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20298 # Variables whose values should be saved in libtool wrapper scripts and
20299 # restored at link time.
20300 variables_saved_for_relink=$lt_variables_saved_for_relink
20302 # Do we need the "lib" prefix for modules?
20303 need_lib_prefix=$need_lib_prefix
20305 # Do we need a version for libraries?
20306 need_version=$need_version
20308 # Library versioning type.
20309 version_type=$version_type
20311 # Shared library runtime path variable.
20312 runpath_var=$runpath_var
20314 # Shared library path variable.
20315 shlibpath_var=$shlibpath_var
20317 # Is shlibpath searched before the hard-coded library search path?
20318 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20320 # Format of library name prefix.
20321 libname_spec=$lt_libname_spec
20323 # List of archive names. First name is the real one, the rest are links.
20324 # The last name is the one that the linker finds with -lNAME
20325 library_names_spec=$lt_library_names_spec
20327 # The coded name of the library, if different from the real name.
20328 soname_spec=$lt_soname_spec
20330 # Permission mode override for installation of shared libraries.
20331 install_override_mode=$lt_install_override_mode
20333 # Command to use after installation of a shared archive.
20334 postinstall_cmds=$lt_postinstall_cmds
20336 # Command to use after uninstallation of a shared archive.
20337 postuninstall_cmds=$lt_postuninstall_cmds
20339 # Commands used to finish a libtool library installation in a directory.
20340 finish_cmds=$lt_finish_cmds
20342 # As "finish_cmds", except a single script fragment to be evaled but
20344 finish_eval=$lt_finish_eval
20346 # Whether we should hardcode library paths into libraries.
20347 hardcode_into_libs=$hardcode_into_libs
20349 # Compile-time system search path for libraries.
20350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20352 # Run-time system search path for libraries.
20353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20355 # Whether dlopen is supported.
20356 dlopen_support=$enable_dlopen
20358 # Whether dlopen of programs is supported.
20359 dlopen_self=$enable_dlopen_self
20361 # Whether dlopen of statically linked programs is supported.
20362 dlopen_self_static=$enable_dlopen_self_static
20364 # Commands to strip libraries.
20365 old_striplib=$lt_old_striplib
20366 striplib=$lt_striplib
20369 # The linker used to build libraries.
20372 # How to create reloadable object files.
20373 reload_flag=$lt_reload_flag
20374 reload_cmds=$lt_reload_cmds
20376 # Commands used to build an old-style archive.
20377 old_archive_cmds=$lt_old_archive_cmds
20379 # A language specific compiler.
20382 # Is the compiler the GNU compiler?
20385 # Compiler flag to turn off builtin functions.
20386 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20388 # Additional compiler flags for building library objects.
20389 pic_flag=$lt_lt_prog_compiler_pic
20391 # How to pass a linker flag through the compiler.
20392 wl=$lt_lt_prog_compiler_wl
20394 # Compiler flag to prevent dynamic linking.
20395 link_static_flag=$lt_lt_prog_compiler_static
20397 # Does compiler simultaneously support -c and -o options?
20398 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20400 # Whether or not to add -lc for building shared libraries.
20401 build_libtool_need_lc=$archive_cmds_need_lc
20403 # Whether or not to disallow shared libs when runtime libs are static.
20404 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20406 # Compiler flag to allow reflexive dlopens.
20407 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20409 # Compiler flag to generate shared objects directly from archives.
20410 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20412 # Whether the compiler copes with passing no objects directly.
20413 compiler_needs_object=$lt_compiler_needs_object
20415 # Create an old-style archive from a shared archive.
20416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20418 # Create a temporary old-style archive to link instead of a shared archive.
20419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20421 # Commands used to build a shared archive.
20422 archive_cmds=$lt_archive_cmds
20423 archive_expsym_cmds=$lt_archive_expsym_cmds
20425 # Commands used to build a loadable module if different from building
20426 # a shared archive.
20427 module_cmds=$lt_module_cmds
20428 module_expsym_cmds=$lt_module_expsym_cmds
20430 # Whether we are building with GNU ld or not.
20431 with_gnu_ld=$lt_with_gnu_ld
20433 # Flag that allows shared libraries with undefined symbols to be built.
20434 allow_undefined_flag=$lt_allow_undefined_flag
20436 # Flag that enforces no undefined symbols.
20437 no_undefined_flag=$lt_no_undefined_flag
20439 # Flag to hardcode \$libdir into a binary during linking.
20440 # This must work even if \$libdir does not exist
20441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20443 # Whether we need a single "-rpath" flag with a separated argument.
20444 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20446 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20447 # DIR into the resulting binary.
20448 hardcode_direct=$hardcode_direct
20450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20451 # DIR into the resulting binary and the resulting library dependency is
20452 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20453 # library is relocated.
20454 hardcode_direct_absolute=$hardcode_direct_absolute
20456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20457 # into the resulting binary.
20458 hardcode_minus_L=$hardcode_minus_L
20460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20461 # into the resulting binary.
20462 hardcode_shlibpath_var=$hardcode_shlibpath_var
20464 # Set to "yes" if building a shared library automatically hardcodes DIR
20465 # into the library and all subsequent libraries and executables linked
20467 hardcode_automatic=$hardcode_automatic
20469 # Set to yes if linker adds runtime paths of dependent libraries
20470 # to runtime path list.
20471 inherit_rpath=$inherit_rpath
20473 # Whether libtool must link a program against all its dependency libraries.
20474 link_all_deplibs=$link_all_deplibs
20476 # Set to "yes" if exported symbols are required.
20477 always_export_symbols=$always_export_symbols
20479 # The commands to list exported symbols.
20480 export_symbols_cmds=$lt_export_symbols_cmds
20482 # Symbols that should not be listed in the preloaded symbols.
20483 exclude_expsyms=$lt_exclude_expsyms
20485 # Symbols that must always be exported.
20486 include_expsyms=$lt_include_expsyms
20488 # Commands necessary for linking programs (against libraries) with templates.
20489 prelink_cmds=$lt_prelink_cmds
20491 # Commands necessary for finishing linking programs.
20492 postlink_cmds=$lt_postlink_cmds
20494 # Specify filename containing input files.
20495 file_list_spec=$lt_file_list_spec
20497 # How to hardcode a shared library path into an executable.
20498 hardcode_action=$hardcode_action
20500 # ### END LIBTOOL CONFIG
20506 cat <<\_LT_EOF >> "$cfgfile"
20507 # AIX sometimes has problems with the GCC collect2 program. For some
20508 # reason, if we set the COLLECT_NAMES environment variable, the problems
20509 # vanish in a puff of smoke.
20510 if test "X${COLLECT_NAMES+set}" != Xset; then
20512 export COLLECT_NAMES
20519 ltmain="$ac_aux_dir/ltmain.sh"
20522 # We use sed instead of cat because bash on DJGPP gets confused if
20523 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20524 # text mode, it properly converts lines to CR/LF. This bash problem
20525 # is reportedly fixed, but why not run on old versions too?
20526 sed '$q' "$ltmain" >> "$cfgfile" \
20527 || (rm -f "$cfgfile"; exit 1)
20529 if test x"$xsi_shell" = xyes; then
20530 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20534 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20535 \ * ) func_dirname_result="${3}" ;;\
20537 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20538 && mv -f "$cfgfile.tmp" "$cfgfile" \
20539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20540 test 0 -eq $? || _lt_function_replace_fail=:
20543 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20546 \ func_basename_result="${1##*/}"\
20547 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20548 && mv -f "$cfgfile.tmp" "$cfgfile" \
20549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20550 test 0 -eq $? || _lt_function_replace_fail=:
20553 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20554 func_dirname_and_basename ()\
20557 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20558 \ * ) func_dirname_result="${3}" ;;\
20560 \ func_basename_result="${1##*/}"\
20561 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20562 && mv -f "$cfgfile.tmp" "$cfgfile" \
20563 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20564 test 0 -eq $? || _lt_function_replace_fail=:
20567 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20570 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20571 \ # positional parameters, so assign one to ordinary parameter first.\
20572 \ func_stripname_result=${3}\
20573 \ func_stripname_result=${func_stripname_result#"${1}"}\
20574 \ func_stripname_result=${func_stripname_result%"${2}"}\
20575 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20576 && mv -f "$cfgfile.tmp" "$cfgfile" \
20577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20578 test 0 -eq $? || _lt_function_replace_fail=:
20581 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20582 func_split_long_opt ()\
20584 \ func_split_long_opt_name=${1%%=*}\
20585 \ func_split_long_opt_arg=${1#*=}\
20586 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20587 && mv -f "$cfgfile.tmp" "$cfgfile" \
20588 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20589 test 0 -eq $? || _lt_function_replace_fail=:
20592 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20593 func_split_short_opt ()\
20595 \ func_split_short_opt_arg=${1#??}\
20596 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20597 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20598 && mv -f "$cfgfile.tmp" "$cfgfile" \
20599 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20600 test 0 -eq $? || _lt_function_replace_fail=:
20603 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20607 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20608 \ *) func_lo2o_result=${1} ;;\
20610 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20611 && mv -f "$cfgfile.tmp" "$cfgfile" \
20612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20613 test 0 -eq $? || _lt_function_replace_fail=:
20616 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20619 func_xform_result=${1%.*}.lo\
20620 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20621 && mv -f "$cfgfile.tmp" "$cfgfile" \
20622 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20623 test 0 -eq $? || _lt_function_replace_fail=:
20626 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20629 func_arith_result=$(( $* ))\
20630 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20631 && mv -f "$cfgfile.tmp" "$cfgfile" \
20632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20633 test 0 -eq $? || _lt_function_replace_fail=:
20636 sed -e '/^func_len ()$/,/^} # func_len /c\
20639 func_len_result=${#1}\
20640 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20641 && mv -f "$cfgfile.tmp" "$cfgfile" \
20642 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20643 test 0 -eq $? || _lt_function_replace_fail=:
20647 if test x"$lt_shell_append" = xyes; then
20648 sed -e '/^func_append ()$/,/^} # func_append /c\
20651 eval "${1}+=\\${2}"\
20652 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20653 && mv -f "$cfgfile.tmp" "$cfgfile" \
20654 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20655 test 0 -eq $? || _lt_function_replace_fail=:
20658 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20659 func_append_quoted ()\
20661 \ func_quote_for_eval "${2}"\
20662 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20663 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20664 && mv -f "$cfgfile.tmp" "$cfgfile" \
20665 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20666 test 0 -eq $? || _lt_function_replace_fail=:
20669 # Save a `func_append' function call where possible by direct use of '+='
20670 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20671 && mv -f "$cfgfile.tmp" "$cfgfile" \
20672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20673 test 0 -eq $? || _lt_function_replace_fail=:
20675 # Save a `func_append' function call even when '+=' is not available
20676 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20677 && mv -f "$cfgfile.tmp" "$cfgfile" \
20678 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20679 test 0 -eq $? || _lt_function_replace_fail=:
20682 if test x"$_lt_function_replace_fail" = x":"; then
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20684 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20688 mv -f "$cfgfile" "$ofile" ||
20689 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20693 "po-directories":C)
20694 for ac_file in $CONFIG_FILES; do
20695 # Support "outfile[:infile[:infile...]]"
20697 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20699 # PO directories have a Makefile.in generated from Makefile.in.in.
20700 case "$ac_file" in */Makefile.in)
20701 # Adjust a relative srcdir.
20702 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
20703 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
20704 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
20705 # In autoconf-2.13 it is called $ac_given_srcdir.
20706 # In autoconf-2.50 it is called $srcdir.
20707 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
20708 case "$ac_given_srcdir" in
20709 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
20710 /*) top_srcdir="$ac_given_srcdir" ;;
20711 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
20713 # Treat a directory as a PO directory if and only if it has a
20714 # POTFILES.in file. This allows packages to have multiple PO
20715 # directories under different names or in different locations.
20716 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
20717 rm -f "$ac_dir/POTFILES"
20718 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
20719 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
20720 POMAKEFILEDEPS="POTFILES.in"
20721 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
20722 # on $ac_dir but don't depend on user-specified configuration
20724 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
20725 # The LINGUAS file contains the set of available languages.
20726 if test -n "$OBSOLETE_ALL_LINGUAS"; then
20727 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
20729 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
20730 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20731 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
20732 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
20734 # The set of available languages was given in configure.in.
20735 # Hide the ALL_LINGUAS assigment from automake < 1.5.
20736 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
20739 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
20740 # Compute UPDATEPOFILES
20741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
20742 # Compute DUMMYPOFILES
20743 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
20745 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
20746 case "$ac_given_srcdir" in
20748 *) srcdirpre='$(srcdir)/' ;;
20754 for lang in $ALL_LINGUAS; do
20755 POFILES="$POFILES $srcdirpre$lang.po"
20756 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
20757 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
20758 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
20760 # CATALOGS depends on both $ac_dir and the user's LINGUAS
20761 # environment variable.
20763 if test -n "$ALL_LINGUAS"; then
20764 for presentlang in $ALL_LINGUAS; do
20766 if test "%UNSET%" != "$LINGUAS"; then
20767 desiredlanguages="$LINGUAS"
20769 desiredlanguages="$ALL_LINGUAS"
20771 for desiredlang in $desiredlanguages; do
20772 # Use the presentlang catalog if desiredlang is
20773 # a. equal to presentlang, or
20774 # b. a variant of presentlang (because in this case,
20775 # presentlang can be used as a fallback for messages
20776 # which are not translated in the desiredlang catalog).
20777 case "$desiredlang" in
20778 "$presentlang"*) useit=yes;;
20781 if test $useit = yes; then
20782 INST_LINGUAS="$INST_LINGUAS $presentlang"
20787 if test -n "$INST_LINGUAS"; then
20788 for lang in $INST_LINGUAS; do
20789 CATALOGS="$CATALOGS $lang.gmo"
20792 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
20793 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"
20794 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
20795 if test -f "$f"; then
20797 *.orig | *.bak | *~) ;;
20798 *) cat "$f" >> "$ac_dir/Makefile" ;;
20813 ac_clean_files=$ac_clean_files_save
20815 test $ac_write_fail = 0 ||
20816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20819 # configure is writing to config.log, and then calls config.status.
20820 # config.status does its own redirection, appending to config.log.
20821 # Unfortunately, on DOS this fails, as config.log is still kept open
20822 # by configure, so config.status won't be able to write to it; its
20823 # output is simply discarded. So we exec the FD to /dev/null,
20824 # effectively closing config.log, so it can be properly (re)opened and
20825 # appended to by config.status. When coming back to configure, we
20826 # need to make the FD available again.
20827 if test "$no_create" != yes; then
20829 ac_config_status_args=
20830 test "$silent" = yes &&
20831 ac_config_status_args="$ac_config_status_args --quiet"
20833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20836 # would make configure fail if this is the last instruction.
20837 $ac_cs_success || as_fn_exit 1
20839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}