2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ecryptfs-utils 111.
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='ecryptfs-utils'
589 PACKAGE_TARNAME='ecryptfs-utils'
590 PACKAGE_VERSION='111'
591 PACKAGE_STRING='ecryptfs-utils 111'
595 ac_unique_file="src/libecryptfs"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
609 # ifdef HAVE_STDLIB_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
632 ac_subst_vars='am__EXEEXT_FALSE
654 BUILD_PKCS11_HELPER_FALSE
655 BUILD_PKCS11_HELPER_TRUE
672 INTLTOOL_SERVICE_RULE
674 INTLTOOL_SCHEMAS_RULE
676 INTLTOOL_XML_NOMERGE_RULE
681 INTLTOOL_SOUNDLIST_RULE
688 INTLTOOL_DIRECTORY_RULE
689 INTLTOOL_DESKTOP_RULE
690 intltool__v_merge_options_0
691 intltool__v_merge_options_
692 INTLTOOL_V_MERGE_OPTIONS
798 LIBECRYPTFS_LT_REVISION
799 LIBECRYPTFS_LT_CURRENT
813 INSTALL_STRIP_PROGRAM
868 program_transform_name
881 enable_option_checking
898 with_ecryptfskeymoddir
899 enable_dependency_tracking
910 ac_precious_vars='build_alias
941 # Initialize some variables set by options.
943 ac_init_version=false
944 ac_unrecognized_opts=
946 # The variables have the same names as the options, with
947 # dashes changed to underlines.
955 program_transform_name=s,x,x,
963 # Installation directory options.
964 # These are left unexpanded so users can "make install exec_prefix=/foo"
965 # and all the variables that are supposed to be based on exec_prefix
966 # by default will actually change.
967 # Use braces instead of parens because sh, perl, etc. also accept them.
968 # (The list follows the same order as the GNU Coding Standards.)
969 bindir='${exec_prefix}/bin'
970 sbindir='${exec_prefix}/sbin'
971 libexecdir='${exec_prefix}/libexec'
972 datarootdir='${prefix}/share'
973 datadir='${datarootdir}'
974 sysconfdir='${prefix}/etc'
975 sharedstatedir='${prefix}/com'
976 localstatedir='${prefix}/var'
977 runstatedir='${localstatedir}/run'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
994 # If the previous option needs an argument, assign it.
995 if test -n "$ac_prev"; then
996 eval $ac_prev=\$ac_option
1002 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1009 case $ac_dashdash$ac_option in
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1033 -datadir | --datadir | --datadi | --datad)
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_$ac_useropt"
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval enable_$ac_useropt=no ;;
1061 -docdir | --docdir | --docdi | --doc | --do)
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "enable_$ac_useropt"
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 htmldir=$ac_optarg ;;
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1130 -libdir | --libdir | --libdi | --libd)
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1221 -psdir | --psdir | --psdi | --psd | --ps)
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1230 -runstatedir | --runstatedir | --runstatedi | --runstated \
1231 | --runstate | --runstat | --runsta | --runst | --runs \
1232 | --run | --ru | --r)
1233 ac_prev=runstatedir ;;
1234 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1235 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1236 | --run=* | --ru=* | --r=*)
1237 runstatedir=$ac_optarg ;;
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243 sbindir=$ac_optarg ;;
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254 sharedstatedir=$ac_optarg ;;
1256 -site | --site | --sit)
1258 -site=* | --site=* | --sit=*)
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1285 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
1287 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1288 as_fn_error $? "invalid package name: $ac_useropt"
1289 ac_useropt_orig=$ac_useropt
1290 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1291 case $ac_user_opts in
1295 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1296 ac_unrecognized_sep=', ';;
1298 eval with_$ac_useropt=\$ac_optarg ;;
1300 -without-* | --without-*)
1301 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304 as_fn_error $? "invalid package name: $ac_useropt"
1305 ac_useropt_orig=$ac_useropt
1306 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307 case $ac_user_opts in
1311 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1312 ac_unrecognized_sep=', ';;
1314 eval with_$ac_useropt=no ;;
1317 # Obsolete; use --with-x.
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1335 Try \`$0 --help' for more information"
1339 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1340 # Reject names that are not valid shell variable names.
1341 case $ac_envvar in #(
1342 '' | [0-9]* | *[!_$as_cr_alnum]* )
1343 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 as_fn_error $? "missing argument to $ac_option"
1364 if test -n "$ac_unrecognized_opts"; then
1365 case $enable_option_checking in
1367 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir runstatedir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 elif test "x$build_alias" != "x$host_alias"; then
1410 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1412 test "$silent" = yes && exec 6>/dev/null
1415 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1416 ac_ls_di=`ls -di .` &&
1417 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1418 as_fn_error $? "working directory cannot be determined"
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420 as_fn_error $? "pwd does not report name of working directory"
1423 # Find the source files, if location was not specified.
1424 if test -z "$srcdir"; then
1425 ac_srcdir_defaulted=yes
1426 # Try the directory containing this script, then the parent directory.
1427 ac_confdir=`$as_dirname -- "$as_myself" ||
1428 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429 X"$as_myself" : 'X\(//\)[^/]' \| \
1430 X"$as_myself" : 'X\(//\)$' \| \
1431 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432 $as_echo X"$as_myself" |
1433 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1455 ac_srcdir_defaulted=no
1457 if test ! -r "$srcdir/$ac_unique_file"; then
1458 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1465 # When building in place, set srcdir=.
1466 if test "$ac_abs_confdir" = "$ac_pwd"; then
1469 # Remove unnecessary trailing slashes from srcdir.
1470 # Double slashes in file names in object file debugging info
1471 # mess up M-x gdb in Emacs.
1473 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 for ac_var in $ac_precious_vars; do
1476 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_env_${ac_var}_value=\$${ac_var}
1478 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1479 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 # Report the --help message.
1485 if test "$ac_init_help" = "long"; then
1486 # Omit some internal or obsolete options to make the list less imposing.
1487 # This message is too long to be a string in the A/UX 3.1 sh.
1489 \`configure' configures ecryptfs-utils 111 to adapt to many kinds of systems.
1491 Usage: $0 [OPTION]... [VAR=VALUE]...
1493 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1494 VAR=VALUE. See below for descriptions of some of the useful variables.
1496 Defaults for the options are specified in brackets.
1499 -h, --help display this help and exit
1500 --help=short display options specific to this package
1501 --help=recursive display the short help of all the included packages
1502 -V, --version display version information and exit
1503 -q, --quiet, --silent do not print \`checking ...' messages
1504 --cache-file=FILE cache test results in FILE [disabled]
1505 -C, --config-cache alias for \`--cache-file=config.cache'
1506 -n, --no-create do not create output files
1507 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509 Installation directories:
1510 --prefix=PREFIX install architecture-independent files in PREFIX
1511 [$ac_default_prefix]
1512 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1515 By default, \`make install' will install all the files in
1516 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1517 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1518 for instance \`--prefix=\$HOME'.
1520 For better control, use the options below.
1522 Fine tuning of the installation directories:
1523 --bindir=DIR user executables [EPREFIX/bin]
1524 --sbindir=DIR system admin executables [EPREFIX/sbin]
1525 --libexecdir=DIR program executables [EPREFIX/libexec]
1526 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1527 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1528 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1529 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/ecryptfs-utils]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1548 --program-prefix=PREFIX prepend PREFIX to installed program names
1549 --program-suffix=SUFFIX append SUFFIX to installed program names
1550 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1555 --target=TARGET configure for building compilers for TARGET [HOST]
1559 if test -n "$ac_init_help"; then
1560 case $ac_init_help in
1561 short | recursive ) echo "Configuration of ecryptfs-utils 111:";;
1566 --disable-option-checking ignore unrecognized --enable/--with options
1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1569 --enable-silent-rules less verbose build output (undo: "make V=1")
1570 --disable-silent-rules verbose build output (undo: "make V=0")
1571 --enable-static[=PKGS] build static libraries [default=no]
1572 --disable-nss Build against gcrypt rather than NSS
1573 --disable-pywrap Disable build of libecryptfs Python wrappers
1574 --disable-openssl Disable build of OpenSSL key module
1575 --enable-pkcs11-helper Build pkcs11-helper key module
1576 --enable-tspi Build TrouSerS key module
1577 --enable-gpg Build GnuPG key module
1578 --disable-pam Disable build of PAM module
1579 --enable-gui Enable building of GUI components
1580 --enable-docs Enable installing document
1581 --enable-docs-gen Enable generating documents
1582 --enable-tests Enable system specific tests
1583 --enable-mudflap Build with -fmudflap gcc option
1584 --enable-dependency-tracking
1585 do not reject slow dependency extractors
1586 --disable-dependency-tracking
1587 speeds up one-time build
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-fast-install[=PKGS]
1590 optimize for fast installation [default=yes]
1591 --disable-libtool-lock avoid locking (might break parallel builds)
1592 --disable-largefile omit support for large files
1593 --disable-nls do not use Native Language Support
1596 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1597 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1598 --with-gpgme-prefix=PATH
1599 Specify the directory where gpgme install, default
1601 --with-pamdir=PATH Specify the directory where PAM modules are stored
1602 --with-ecryptfskeymoddir=PATH
1603 Specify the directory where key modules are stored
1604 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1606 --with-aix-soname=aix|svr4|both
1607 shared library versioning (aka "SONAME") variant to
1608 provide on AIX, [default=aix].
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1611 compiler's sysroot if not specified).
1613 Some influential environment variables:
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1622 PKG_CONFIG path to pkg-config utility
1624 directories to add to pkg-config's search path
1626 path overriding pkg-config's built-in search path
1628 User-defined run-time library search path.
1630 C compiler flags for keyutils
1632 linker flags for keyutils
1634 C compiler flags for OPENSSL, overriding pkg-config
1636 linker flags for OPENSSL, overriding pkg-config
1637 NSS_CFLAGS C compiler flags for NSS, overriding pkg-config
1638 NSS_LIBS linker flags for NSS, overriding pkg-config
1639 PYTHON the Python interpreter
1641 The installed Python version to use, for example '2.3'. This
1642 string will be appended to the Python interpreter canonical
1644 PKCS11_HELPER_CFLAGS
1645 C compiler flags for PKCS11_HELPER, overriding pkg-config
1647 linker flags for PKCS11_HELPER, overriding pkg-config
1648 TSPI_CFLAGS C compiler flags for tspi
1649 TSPI_LIBS linker flags for tspi
1650 PAM_CFLAGS C compiler flags for pam
1651 PAM_LIBS linker flags for pam
1653 Use these variables to override the choices made by `configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1656 Report bugs to the package provider.
1661 if test "$ac_init_help" = "recursive"; then
1662 # If there are subdirs, report their specific --help.
1663 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1664 test -d "$ac_dir" ||
1665 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1673 # A ".." for each directory in $ac_dir_suffix.
1674 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1675 case $ac_top_builddir_sub in
1676 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1680 ac_abs_top_builddir=$ac_pwd
1681 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1682 # for backward compatibility:
1683 ac_top_builddir=$ac_top_build_prefix
1686 .) # We are building in place.
1688 ac_top_srcdir=$ac_top_builddir_sub
1689 ac_abs_top_srcdir=$ac_pwd ;;
1690 [\\/]* | ?:[\\/]* ) # Absolute name.
1691 ac_srcdir=$srcdir$ac_dir_suffix;
1692 ac_top_srcdir=$srcdir
1693 ac_abs_top_srcdir=$srcdir ;;
1695 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1696 ac_top_srcdir=$ac_top_build_prefix$srcdir
1697 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1699 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1701 cd "$ac_dir" || { ac_status=$?; continue; }
1702 # Check for guested configure.
1703 if test -f "$ac_srcdir/configure.gnu"; then
1705 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1706 elif test -f "$ac_srcdir/configure"; then
1708 $SHELL "$ac_srcdir/configure" --help=recursive
1710 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1712 cd "$ac_pwd" || { ac_status=$?; break; }
1716 test -n "$ac_init_help" && exit $ac_status
1717 if $ac_init_version; then
1719 ecryptfs-utils configure 111
1720 generated by GNU Autoconf 2.69
1722 Copyright (C) 2012 Free Software Foundation, Inc.
1723 This configure script is free software; the Free Software Foundation
1724 gives unlimited permission to copy, distribute and modify it.
1729 ## ------------------------ ##
1730 ## Autoconf initialization. ##
1731 ## ------------------------ ##
1733 # ac_fn_c_try_compile LINENO
1734 # --------------------------
1735 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_compile
1771 # ac_fn_c_try_cpp LINENO
1772 # ----------------------
1773 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_cpp conftest.$ac_ext"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1786 if test -s conftest.err; then
1787 grep -v '^ *+' conftest.err >conftest.er1
1788 cat conftest.er1 >&5
1789 mv -f conftest.er1 conftest.err
1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792 test $ac_status = 0; } > conftest.i && {
1793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1794 test ! -s conftest.err
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 as_fn_set_status $ac_retval
1808 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1809 # -------------------------------------------------------
1810 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1811 # the include files in INCLUDES and setting the cache variable VAR
1813 ac_fn_c_check_header_mongrel ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 if eval \${$3+:} false; then :
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1826 # Is the header compilable?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1828 $as_echo_n "checking $2 usability... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_header_compiler=yes
1837 ac_header_compiler=no
1839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1841 $as_echo "$ac_header_compiler" >&6; }
1843 # Is the header present?
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1845 $as_echo_n "checking $2 presence... " >&6; }
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1850 if ac_fn_c_try_cpp "$LINENO"; then :
1851 ac_header_preproc=yes
1853 ac_header_preproc=no
1855 rm -f conftest.err conftest.i conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1857 $as_echo "$ac_header_preproc" >&6; }
1859 # So? What about this header?
1860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1863 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1869 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1871 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1873 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1875 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1885 eval "$3=\$ac_header_compiler"
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893 } # ac_fn_c_check_header_mongrel
1895 # ac_fn_c_try_run LINENO
1896 # ----------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1898 # that executables *can* be run.
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 if { { ac_try="$ac_link"
1904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>&5
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1913 { { case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_try") 2>&5
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; }; }; then :
1925 $as_echo "$as_me: program exited with status $ac_status" >&5
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1929 ac_retval=$ac_status
1931 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933 as_fn_set_status $ac_retval
1937 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1938 # -------------------------------------------------------
1939 # Tests whether HEADER exists and can be compiled using the include files in
1940 # INCLUDES, setting the cache variable VAR accordingly.
1941 ac_fn_c_check_header_compile ()
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1954 if ac_fn_c_try_compile "$LINENO"; then :
1959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 } # ac_fn_c_check_header_compile
1968 # ac_fn_c_try_link LINENO
1969 # -----------------------
1970 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 rm -f conftest.$ac_objext conftest$ac_exeext
1975 if { { ac_try="$ac_link"
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_link") 2>conftest.err
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } && {
1991 test -z "$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 } && test -s conftest$ac_exeext && {
1994 test "$cross_compiling" = yes ||
1995 test -x conftest$ac_exeext
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2004 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2005 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2006 # interfere with the next link command; also delete a directory that is
2007 # left behind by Apple's compiler. We do this before executing the actions.
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_c_try_link
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2037 # include <limits.h>
2039 # include <assert.h>
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2066 if ac_fn_c_try_link "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_func
2080 cat >config.log <<_ACEOF
2081 This file contains any messages produced by compilers while
2082 running configure, to aid debugging if configure makes a mistake.
2084 It was created by ecryptfs-utils $as_me 111, which was
2085 generated by GNU Autoconf 2.69. Invocation command line was
2097 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2098 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2099 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2100 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2101 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2103 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2104 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2106 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2107 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2108 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2109 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2110 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2111 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2112 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 test -z "$as_dir" && as_dir=.
2121 $as_echo "PATH: $as_dir"
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2145 ac_must_keep_next=false
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2156 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2174 -* ) ac_must_keep_next=true ;;
2177 as_fn_append ac_configure_args " '$ac_arg'"
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Save into config.log some information that might help in debugging.
2195 $as_echo "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2199 # The following way of writing the cache mishandles newlines in values,
2201 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202 eval ac_val=\$$ac_var
2206 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 _ | IFS | as_nl) ;; #(
2211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212 *) { eval $ac_var=; unset $ac_var;} ;;
2217 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218 *${as_nl}ac_space=\ *)
2220 "s/'\''/'\''\\\\'\'''\''/g;
2221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2231 $as_echo "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2235 for ac_var in $ac_subst_vars
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2245 if test -n "$ac_subst_files"; then
2246 $as_echo "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2250 for ac_var in $ac_subst_files
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -s confdefs.h; then
2262 $as_echo "## ----------- ##
2269 test "$ac_signal" != 0 &&
2270 $as_echo "$as_me: caught signal $ac_signal"
2271 $as_echo "$as_me: exit $exit_status"
2273 rm -f core *.core core.conftest.* &&
2274 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 for ac_signal in 1 2 13 15; do
2278 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2285 $as_echo "/* confdefs.h */" > confdefs.h
2287 # Predefined preprocessor variables.
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_NAME "$PACKAGE_NAME"
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_STRING "$PACKAGE_STRING"
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_URL "$PACKAGE_URL"
2314 # Let the site file select an alternate cache file if it wants to.
2315 # Prefer an explicitly selected file to automatically selected ones.
2318 if test -n "$CONFIG_SITE"; then
2319 # We do not want a PATH search for config.site.
2320 case $CONFIG_SITE in #((
2321 -*) ac_site_file1=./$CONFIG_SITE;;
2322 */*) ac_site_file1=$CONFIG_SITE;;
2323 *) ac_site_file1=./$CONFIG_SITE;;
2325 elif test "x$prefix" != xNONE; then
2326 ac_site_file1=$prefix/share/config.site
2327 ac_site_file2=$prefix/etc/config.site
2329 ac_site_file1=$ac_default_prefix/share/config.site
2330 ac_site_file2=$ac_default_prefix/etc/config.site
2332 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2334 test "x$ac_site_file" = xNONE && continue
2335 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2337 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2338 sed 's/^/| /' "$ac_site_file" >&5
2340 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2342 as_fn_error $? "failed to load site script $ac_site_file
2343 See \`config.log' for more details" "$LINENO" 5; }
2347 if test -r "$cache_file"; then
2348 # Some versions of bash will fail to source /dev/null (special files
2349 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2350 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2352 $as_echo "$as_me: loading cache $cache_file" >&6;}
2354 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2355 *) . "./$cache_file";;
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2360 $as_echo "$as_me: creating cache $cache_file" >&6;}
2364 # Check that the precious variables saved in the cache have kept the same
2366 ac_cache_corrupted=false
2367 for ac_var in $ac_precious_vars; do
2368 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2369 eval ac_new_set=\$ac_env_${ac_var}_set
2370 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2371 eval ac_new_val=\$ac_env_${ac_var}_value
2372 case $ac_old_set,$ac_new_set in
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2375 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2379 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2380 ac_cache_corrupted=: ;;
2383 if test "x$ac_old_val" != "x$ac_new_val"; then
2384 # differences in whitespace do not lead to failure.
2385 ac_old_val_w=`echo x $ac_old_val`
2386 ac_new_val_w=`echo x $ac_new_val`
2387 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2389 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2390 ac_cache_corrupted=:
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2393 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2394 eval $ac_var=\$ac_old_val
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2397 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2399 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2402 # Pass precious variables to config.status.
2403 if test "$ac_new_set" = set; then
2405 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2406 *) ac_arg=$ac_var=$ac_new_val ;;
2408 case " $ac_configure_args " in
2409 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2410 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 if $ac_cache_corrupted; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2418 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2419 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2421 ## -------------------- ##
2422 ## Main body of script. ##
2423 ## -------------------- ##
2426 ac_cpp='$CPP $CPPFLAGS'
2427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 if test -f "$ac_dir/install-sh"; then
2436 ac_install_sh="$ac_aux_dir/install-sh -c"
2438 elif test -f "$ac_dir/install.sh"; then
2440 ac_install_sh="$ac_aux_dir/install.sh -c"
2442 elif test -f "$ac_dir/shtool"; then
2444 ac_install_sh="$ac_aux_dir/shtool install -c"
2448 if test -z "$ac_aux_dir"; then
2449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2452 # These three variables are undocumented and unsupported,
2453 # and are intended to be withdrawn in a future Autoconf release.
2454 # They can cause serious problems if a builder's source tree is in a directory
2455 # whose full name contains unusual characters.
2456 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2457 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2458 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2466 $as_echo_n "checking build system type... " >&6; }
2467 if ${ac_cv_build+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 ac_build_alias=$build_alias
2471 test "x$ac_build_alias" = x &&
2472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2473 test "x$ac_build_alias" = x &&
2474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2480 $as_echo "$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2486 ac_save_IFS=$IFS; IFS='-'
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2500 $as_echo_n "checking host system type... " >&6; }
2501 if ${ac_cv_host+:} false; then :
2502 $as_echo_n "(cached) " >&6
2504 if test "x$host_alias" = x; then
2505 ac_cv_host=$ac_cv_build
2507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2513 $as_echo "$ac_cv_host" >&6; }
2516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2519 ac_save_IFS=$IFS; IFS='-'
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2533 $as_echo_n "checking target system type... " >&6; }
2534 if ${ac_cv_target+:} false; then :
2535 $as_echo_n "(cached) " >&6
2537 if test "x$target_alias" = x; then
2538 ac_cv_target=$ac_cv_host
2540 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2546 $as_echo "$ac_cv_target" >&6; }
2547 case $ac_cv_target in
2549 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2551 target=$ac_cv_target
2552 ac_save_IFS=$IFS; IFS='-'
2558 # Remember, the first character of IFS is used to create $*,
2559 # except with old shells:
2562 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2565 # The aliases save the names the user supplied, while $host etc.
2566 # will get canonicalized.
2567 test -n "$target_alias" &&
2568 test "$program_prefix$program_suffix$program_transform_name" = \
2570 program_prefix=${target_alias}-
2571 am__api_version='1.15'
2573 # Find a good install program. We prefer a C program (faster),
2574 # so one script is as good as another. But avoid the broken or
2575 # incompatible versions:
2576 # SysV /etc/install, /usr/sbin/install
2577 # SunOS /usr/etc/install
2578 # IRIX /sbin/install
2580 # AmigaOS /C/install, which installs bootblocks on floppy discs
2581 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2582 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2583 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2584 # OS/2's system install, which has a completely different semantic
2585 # ./install, which can be erroneously created by make from ./install.sh.
2586 # Reject install programs that cannot install multiple files.
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2588 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2589 if test -z "$INSTALL"; then
2590 if ${ac_cv_path_install+:} false; then :
2591 $as_echo_n "(cached) " >&6
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 # Account for people who put trailing slashes in PATH elements.
2599 case $as_dir/ in #((
2600 ./ | .// | /[cC]/* | \
2601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2602 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605 # OSF1 and SCO ODT 3.0 have their own names for install.
2606 # Don't use installbsd from OSF since it installs stuff as root
2608 for ac_prog in ginstall scoinst install; do
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2611 if test $ac_prog = install &&
2612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2613 # AIX install. It has an incompatible calling convention.
2615 elif test $ac_prog = install &&
2616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617 # program-specific install script used by HP pwplus--don't use.
2620 rm -rf conftest.one conftest.two conftest.dir
2621 echo one > conftest.one
2622 echo two > conftest.two
2624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2625 test -s conftest.one && test -s conftest.two &&
2626 test -s conftest.dir/conftest.one &&
2627 test -s conftest.dir/conftest.two
2629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2642 rm -rf conftest.one conftest.two conftest.dir
2645 if test "${ac_cv_path_install+set}" = set; then
2646 INSTALL=$ac_cv_path_install
2648 # As a last resort, use the slow shell script. Don't cache a
2649 # value for INSTALL within a source directory, because that will
2650 # break other packages using the cache if that directory is
2651 # removed, or if the value is a relative name.
2652 INSTALL=$ac_install_sh
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2656 $as_echo "$INSTALL" >&6; }
2658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2659 # It thinks the first close brace ends the variable substitution.
2660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2667 $as_echo_n "checking whether build environment is sane... " >&6; }
2668 # Reject unsafe characters in $srcdir or the absolute working directory
2669 # name. Accept space and tab only in the latter.
2673 *[\\\"\#\$\&\'\`$am_lf]*)
2674 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2677 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2678 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2681 # Do 'set' in a subshell so we don't clobber the current shell's
2682 # arguments. Must try -L first in case configure is actually a
2683 # symlink; some systems play weird games with the mod time of symlinks
2684 # (eg FreeBSD returns the mod time of the symlink's containing
2688 for am_try in 1 2; do
2689 echo "timestamp, slept: $am_has_slept" > conftest.file
2690 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2691 if test "$*" = "X"; then
2693 set X `ls -t "$srcdir/configure" conftest.file`
2695 if test "$*" != "X $srcdir/configure conftest.file" \
2696 && test "$*" != "X conftest.file $srcdir/configure"; then
2698 # If neither matched, then we have a broken ls. This can happen
2699 # if, for instance, CONFIG_SHELL is bash and it inherits a
2700 # broken ls alias from the environment. This has actually
2701 # happened. Such a system could not be considered "sane".
2702 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2703 alias in your environment" "$LINENO" 5
2705 if test "$2" = conftest.file || test $am_try -eq 2; then
2712 test "$2" = conftest.file
2718 as_fn_error $? "newly created file is older than distributed files!
2719 Check your system clock" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722 $as_echo "yes" >&6; }
2723 # If we didn't sleep, we still need to ensure time stamps of config.status and
2724 # generated files are strictly newer.
2726 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2733 test "$program_prefix" != NONE &&
2734 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2735 # Use a double $ so make ignores it.
2736 test "$program_suffix" != NONE &&
2737 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2738 # Double any \ or $.
2739 # By default was `s,x,x', remove it if useless.
2740 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2741 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2743 # Expand $ac_aux_dir to an absolute path.
2744 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2746 if test x"${MISSING+set}" != xset; then
2749 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2751 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2754 # Use eval to expand $SHELL
2755 if eval "$MISSING --is-lightweight"; then
2756 am_missing_run="$MISSING "
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2760 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2763 if test x"${install_sh+set}" != xset; then
2766 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2768 install_sh="\${SHELL} $am_aux_dir/install-sh"
2772 # Installed binaries are usually stripped using 'strip' when the user
2773 # run "make install-strip". However 'strip' might not be the right
2774 # tool to use in cross-compilation environments, therefore Automake
2775 # will honor the 'STRIP' environment variable to overrule this program.
2776 if test "$cross_compiling" != no; then
2777 if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2779 set dummy ${ac_tool_prefix}strip; ac_word=$2
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 $as_echo_n "checking for $ac_word... " >&6; }
2782 if ${ac_cv_prog_STRIP+:} false; then :
2783 $as_echo_n "(cached) " >&6
2785 if test -n "$STRIP"; then
2786 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 STRIP=$ac_cv_prog_STRIP
2806 if test -n "$STRIP"; then
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2808 $as_echo "$STRIP" >&6; }
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2811 $as_echo "no" >&6; }
2816 if test -z "$ac_cv_prog_STRIP"; then
2818 # Extract the first word of "strip", so it can be a program name with args.
2819 set dummy strip; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$ac_ct_STRIP"; then
2826 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_ac_ct_STRIP="strip"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2846 if test -n "$ac_ct_STRIP"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2848 $as_echo "$ac_ct_STRIP" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2854 if test "x$ac_ct_STRIP" = x; then
2857 case $cross_compiling:$ac_tool_warned in
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2861 ac_tool_warned=yes ;;
2866 STRIP="$ac_cv_prog_STRIP"
2870 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2873 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2874 if test -z "$MKDIR_P"; then
2875 if ${ac_cv_path_mkdir+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2882 test -z "$as_dir" && as_dir=.
2883 for ac_prog in mkdir gmkdir; do
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2886 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2887 'mkdir (GNU coreutils) '* | \
2888 'mkdir (coreutils) '* | \
2889 'mkdir (fileutils) '4.1*)
2890 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2900 test -d ./--version && rmdir ./--version
2901 if test "${ac_cv_path_mkdir+set}" = set; then
2902 MKDIR_P="$ac_cv_path_mkdir -p"
2904 # As a last resort, use the slow shell script. Don't cache a
2905 # value for MKDIR_P within a source directory, because that will
2906 # break other packages using the cache if that directory is
2907 # removed, or if the value is a relative name.
2908 MKDIR_P="$ac_install_sh -d"
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2912 $as_echo "$MKDIR_P" >&6; }
2914 for ac_prog in gawk mawk nawk awk
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_AWK+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test -n "$AWK"; then
2924 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_AWK="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$AWK"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2946 $as_echo "$AWK" >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2953 test -n "$AWK" && break
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2957 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2959 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2960 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 cat >conftest.make <<\_ACEOF
2966 @echo '@@@%%%=$(MAKE)=@@@%%%'
2968 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2969 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2971 eval ac_cv_prog_make_${ac_make}_set=yes;;
2973 eval ac_cv_prog_make_${ac_make}_set=no;;
2977 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 SET_MAKE="MAKE=${MAKE-make}"
2987 rm -rf .tst 2>/dev/null
2988 mkdir .tst 2>/dev/null
2989 if test -d .tst; then
2994 rmdir .tst 2>/dev/null
2996 # Check whether --enable-silent-rules was given.
2997 if test "${enable_silent_rules+set}" = set; then :
2998 enableval=$enable_silent_rules;
3001 case $enable_silent_rules in # (((
3002 yes) AM_DEFAULT_VERBOSITY=0;;
3003 no) AM_DEFAULT_VERBOSITY=1;;
3004 *) AM_DEFAULT_VERBOSITY=1;;
3006 am_make=${MAKE-make}
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3008 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3009 if ${am_cv_make_support_nested_variables+:} false; then :
3010 $as_echo_n "(cached) " >&6
3012 if $as_echo 'TRUE=$(BAR$(V))
3018 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3019 am_cv_make_support_nested_variables=yes
3021 am_cv_make_support_nested_variables=no
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3025 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3026 if test $am_cv_make_support_nested_variables = yes; then
3028 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3030 AM_V=$AM_DEFAULT_VERBOSITY
3031 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3035 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3036 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3037 # is not polluted with repeated "-I."
3038 am__isrc=' -I$(srcdir)'
3039 # test to see if srcdir already configured
3040 if test -f $srcdir/config.status; then
3041 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3045 # test whether we have cygpath
3046 if test -z "$CYGPATH_W"; then
3047 if (cygpath --version) >/dev/null 2>/dev/null; then
3048 CYGPATH_W='cygpath -w'
3055 # Define the identity of the package.
3057 PACKAGE=${PACKAGE_NAME}
3058 VERSION=${PACKAGE_VERSION}
3061 cat >>confdefs.h <<_ACEOF
3062 #define PACKAGE "$PACKAGE"
3066 cat >>confdefs.h <<_ACEOF
3067 #define VERSION "$VERSION"
3070 # Some tools Automake needs.
3072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3086 # For better backward compatibility. To be removed once Automake 1.9.x
3087 # dies out for good. For more background, see:
3088 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3089 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3090 mkdir_p='$(MKDIR_P)'
3092 # We need awk for the "check" target (and possibly the TAP driver). The
3093 # system "awk" is bad on some platforms.
3094 # Always define AMTAR for backward compatibility. Yes, it's still used
3095 # in the wild :-( We should find a proper way to deprecate it ...
3099 # We'll loop over all known methods to create a tar archive until one works.
3100 _am_tools='gnutar pax cpio none'
3102 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3109 # POSIX will say in a future version that running "rm -f" with no argument
3110 # is OK; and we want to be able to make that assumption in our Makefile
3111 # recipes. So use an aggressive probe to check that the usage we want is
3112 # actually supported "in the wild" to an acceptable degree.
3113 # See automake bug#10828.
3114 # To make any issue more visible, cause the running configure to be aborted
3115 # by default if the 'rm' program in use doesn't match our expectations; the
3116 # user can still override this though.
3117 if rm -f && rm -fr && rm -rf; then : OK; else
3121 Your 'rm' program seems unable to run without file operands specified
3122 on the command line, even when the '-f' option is present. This is contrary
3123 to the behaviour of most rm programs out there, and not conforming with
3124 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3126 Please tell bug-automake@gnu.org about your system, including the value
3127 of your $PATH and any error possibly output before this message. This
3128 can help us improve future automake versions.
3131 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3132 echo 'Configuration will proceed anyway, since you have set the' >&2
3133 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3137 Aborting the configuration process, to ensure you take notice of the issue.
3139 You can download and install GNU coreutils to get an 'rm' implementation
3140 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3142 If you want to complete the configuration process using your problematic
3143 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3144 to "yes", and re-run configure.
3147 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3152 ac_config_headers="$ac_config_headers config.h"
3154 AM_CPPFLAGS='-include $(top_builddir)/config.h'
3158 # Check whether --enable-static was given.
3159 if test "${enable_static+set}" = set; then :
3160 enableval=$enable_static; p=${PACKAGE-default}
3162 yes) enable_static=yes ;;
3163 no) enable_static=no ;;
3166 # Look at the argument we got. We use all the common list separators.
3167 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3168 for pkg in $enableval; do
3170 if test "X$pkg" = "X$p"; then
3190 # libecryptfs versioning instructions
3192 # Update the version information only once per public release of
3193 # ecryptfs-utils. More frequent updates are unnecessary, and only guarantee
3194 # that the current interface number gets larger faster.
3196 # 1. If the library source code has changed at all since the last update, then
3197 # increment LIBECRYPTFS_LT_REVISION.
3198 # 2. If any interfaces have been added, removed, or changed since the last
3199 # update, increment LIBECRYPTFS_LT_CURRENT, and set LIBECRYPTFS_LT_REVISION to 0.
3200 # 3. If any interfaces have been added since the last public release, then
3201 # increment LIBECRYPTFS_LT_AGE.
3202 # 4. If any interfaces have been removed or changed since the last public
3203 # release, then set LIBECRYPTFS_LT_AGE to 0.
3206 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3207 LIBECRYPTFS_LT_CURRENT="1"
3208 LIBECRYPTFS_LT_REVISION="0"
3209 LIBECRYPTFS_LT_AGE="0"
3214 # Check whether --enable-nss was given.
3215 if test "${enable_nss+set}" = set; then :
3216 enableval=$enable_nss;
3223 # Check whether --enable-pywrap was given.
3224 if test "${enable_pywrap+set}" = set; then :
3225 enableval=$enable_pywrap;
3227 enable_pywrap="detect"
3232 # Check whether --enable-openssl was given.
3233 if test "${enable_openssl+set}" = set; then :
3234 enableval=$enable_openssl;
3236 enable_openssl="detect"
3241 # Check whether --enable-pkcs11-helper was given.
3242 if test "${enable_pkcs11_helper+set}" = set; then :
3243 enableval=$enable_pkcs11_helper;
3245 enable_pkcs11_helper="no"
3250 # Check whether --enable-tspi was given.
3251 if test "${enable_tspi+set}" = set; then :
3252 enableval=$enable_tspi;
3259 # Check whether --enable-gpg was given.
3260 if test "${enable_gpg+set}" = set; then :
3261 enableval=$enable_gpg;
3268 # Check whether --enable-pam was given.
3269 if test "${enable_pam+set}" = set; then :
3270 enableval=$enable_pam;
3277 # Check whether --enable-gui was given.
3278 if test "${enable_gui+set}" = set; then :
3279 enableval=$enable_gui;
3286 # Check whether --enable-docs was given.
3287 if test "${enable_docs+set}" = set; then :
3288 enableval=$enable_docs;
3295 # Check whether --enable-docs-gen was given.
3296 if test "${enable_docs_gen+set}" = set; then :
3297 enableval=$enable_docs_gen;
3299 enable_docs_gen="no"
3303 test "${enable_docs_gen}" = "yes" && enable_docs="yes"
3305 # Check whether --enable-tests was given.
3306 if test "${enable_tests+set}" = set; then :
3307 enableval=$enable_tests;
3314 # Check whether --enable-mudflap was given.
3315 if test "${enable_mudflap+set}" = set; then :
3316 enableval=$enable_mudflap;
3317 if "${enableval}" = "yes"; then
3318 CFLAGS="$CFLAGS -fmudflap"
3319 LDFLAGS="$LDFLAGS -lmudflap"
3327 # Check whether --with-gpgme-prefix was given.
3328 if test "${with_gpgme_prefix+set}" = set; then :
3329 withval=$with_gpgme_prefix;
3331 with_gpgme_prefix="/usr"
3337 # Check whether --with-pamdir was given.
3338 if test "${with_pamdir+set}" = set; then :
3339 withval=$with_pamdir; pamdir="${withval}"
3342 if test "${prefix}" = "/usr"; then
3343 pamdir="/lib${libdir##*/lib}/security"
3345 pamdir="\$(libdir)/security"
3353 # Check whether --with-ecryptfskeymoddir was given.
3354 if test "${with_ecryptfskeymoddir+set}" = set; then :
3355 withval=$with_ecryptfskeymoddir;
3356 ecryptfskeymoddir="${withval}"
3357 full_ecryptfskeymoddir="${ecryptfskeymoddir}"
3361 full_ecryptfskeymoddir=`eval eval eval eval eval echo "${libdir}/ecryptfs" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
3362 ecryptfskeymoddir="\$(libdir)/ecryptfs"
3368 cat >>confdefs.h <<_ACEOF
3369 #define ECRYPTFS_DEFAULT_KEY_MOD_DIR "$full_ecryptfskeymoddir"
3373 DEPDIR="${am__leading_dot}deps"
3375 ac_config_commands="$ac_config_commands depfiles"
3378 am_make=${MAKE-make}
3379 cat > confinc << 'END'
3381 @echo this is the am__doit target
3384 # If we don't find an include directive, just comment out the code.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3386 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3390 # First try GNU make style include.
3391 echo "include confinc" > confmf
3392 # Ignore all kinds of additional output from 'make'.
3393 case `$am_make -s -f confmf 2> /dev/null` in #(
3394 *the\ am__doit\ target*)
3400 # Now try BSD make style include.
3401 if test "$am__include" = "#"; then
3402 echo '.include "confinc"' > confmf
3403 case `$am_make -s -f confmf 2> /dev/null` in #(
3404 *the\ am__doit\ target*)
3405 am__include=.include
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3414 $as_echo "$_am_result" >&6; }
3415 rm -f confinc confmf
3417 # Check whether --enable-dependency-tracking was given.
3418 if test "${enable_dependency_tracking+set}" = set; then :
3419 enableval=$enable_dependency_tracking;
3422 if test "x$enable_dependency_tracking" != xno; then
3423 am_depcomp="$ac_aux_dir/depcomp"
3427 if test "x$enable_dependency_tracking" != xno; then
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441 if test -n "$ac_tool_prefix"; then
3442 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3443 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3459 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 if test -n "$CC"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3472 $as_echo "$CC" >&6; }
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3480 if test -z "$ac_cv_prog_CC"; then
3482 # Extract the first word of "gcc", so it can be a program name with args.
3483 set dummy gcc; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3487 $as_echo_n "(cached) " >&6
3489 if test -n "$ac_ct_CC"; then
3490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499 ac_cv_prog_ac_ct_CC="gcc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512 $as_echo "$ac_ct_CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3518 if test "x$ac_ct_CC" = x; then
3521 case $cross_compiling:$ac_tool_warned in
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3536 set dummy ${ac_tool_prefix}cc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_CC+:} false; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552 ac_cv_prog_CC="${ac_tool_prefix}cc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 if test -n "$CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3565 $as_echo "$CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3574 if test -z "$CC"; then
3575 # Extract the first word of "cc", so it can be a program name with args.
3576 set dummy cc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3594 ac_prog_rejected=yes
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 if test $ac_prog_rejected = yes; then
3606 # We found a bogon in the path, so make sure we never use it.
3607 set dummy $ac_cv_prog_CC
3609 if test $# != 0; then
3610 # We chose a different compiler from the bogus one.
3611 # However, it has the same basename, so the bogon will be chosen
3612 # first if we set CC to just the basename; use the full file name.
3614 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3620 if test -n "$CC"; then
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3630 if test -z "$CC"; then
3631 if test -n "$ac_tool_prefix"; then
3632 for ac_prog in cl.exe
3634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_CC+:} false; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$CC"; then
3642 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3651 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 if test -n "$CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3664 $as_echo "$CC" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3671 test -n "$CC" && break
3674 if test -z "$CC"; then
3676 for ac_prog in cl.exe
3678 # Extract the first word of "$ac_prog", so it can be a program name with args.
3679 set dummy $ac_prog; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$ac_ct_CC"; then
3686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_ac_ct_CC="$ac_prog"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3706 if test -n "$ac_ct_CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3708 $as_echo "$ac_ct_CC" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3715 test -n "$ac_ct_CC" && break
3718 if test "x$ac_ct_CC" = x; then
3721 case $cross_compiling:$ac_tool_warned in
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3725 ac_tool_warned=yes ;;
3734 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error $? "no acceptable C compiler found in \$PATH
3737 See \`config.log' for more details" "$LINENO" 5; }
3739 # Provide some information about the compiler.
3740 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3743 for ac_option in --version -v -V -qversion; do
3744 { { ac_try="$ac_compiler $ac_option >&5"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750 $as_echo "$ac_try_echo"; } >&5
3751 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3753 if test -s conftest.err; then
3755 ... rest of stderr output deleted ...
3756 10q' conftest.err >conftest.er1
3757 cat conftest.er1 >&5
3759 rm -f conftest.er1 conftest.err
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3781 $as_echo_n "checking whether the C compiler works... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3788 for ac_file in $ac_files
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3797 if { { ac_try="$ac_link_default"
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_link_default") 2>&5
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3813 for ac_file in $ac_files ''
3815 test -f "$ac_file" || continue
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3820 # We found the default executable, but exeext='' is most
3824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3828 # We set ac_cv_exeext here because the later test for it is not
3829 # safe: cross compilers may not add the suffix if given an `-o'
3830 # argument, so we may need to know it at that point already.
3831 # Even if this section looks crufty: it has the advantage of
3838 test "$ac_cv_exeext" = no && ac_cv_exeext=
3843 if test -z "$ac_file"; then :
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error 77 "C compiler cannot create executables
3852 See \`config.log' for more details" "$LINENO" 5; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3855 $as_echo "yes" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3858 $as_echo_n "checking for C compiler default output file name... " >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3860 $as_echo "$ac_file" >&6; }
3861 ac_exeext=$ac_cv_exeext
3863 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3864 ac_clean_files=$ac_clean_files_save
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3866 $as_echo_n "checking for suffix of executables... " >&6; }
3867 if { { ac_try="$ac_link"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link") 2>&5
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3879 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3880 # work properly (i.e., refer to `conftest.exe'), while it won't with
3882 for ac_file in conftest.exe conftest conftest.*; do
3883 test -f "$ac_file" || continue
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3895 See \`config.log' for more details" "$LINENO" 5; }
3897 rm -f conftest conftest$ac_cv_exeext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899 $as_echo "$ac_cv_exeext" >&6; }
3901 rm -f conftest.$ac_ext
3902 EXEEXT=$ac_cv_exeext
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3910 FILE *f = fopen ("conftest.out", "w");
3911 return ferror (f) || fclose (f) != 0;
3917 ac_clean_files="$ac_clean_files conftest.out"
3918 # Check that the compiler produces executables we can run. If not, either
3919 # the compiler is broken, or we cross compile.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3921 $as_echo_n "checking whether we are cross compiling... " >&6; }
3922 if test "$cross_compiling" != yes; then
3923 { { ac_try="$ac_link"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_link") 2>&5
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }
3934 if { ac_try='./conftest$ac_cv_exeext'
3935 { { case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_try") 2>&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; }; then
3947 if test "$cross_compiling" = maybe; then
3950 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3951 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3952 as_fn_error $? "cannot run C compiled programs.
3953 If you meant to cross compile, use \`--host'.
3954 See \`config.log' for more details" "$LINENO" 5; }
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3959 $as_echo "$cross_compiling" >&6; }
3961 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3962 ac_clean_files=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3964 $as_echo_n "checking for suffix of object files... " >&6; }
3965 if ${ac_cv_objext+:} false; then :
3966 $as_echo_n "(cached) " >&6
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3979 rm -f conftest.o conftest.obj
3980 if { { ac_try="$ac_compile"
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3986 $as_echo "$ac_try_echo"; } >&5
3987 (eval "$ac_compile") 2>&5
3989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 test $ac_status = 0; }; then :
3991 for ac_file in conftest.o conftest.obj conftest.*; do
3992 test -f "$ac_file" || continue;
3994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4000 $as_echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4005 as_fn_error $? "cannot compute suffix of object files: cannot compile
4006 See \`config.log' for more details" "$LINENO" 5; }
4008 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4011 $as_echo "$ac_cv_objext" >&6; }
4012 OBJEXT=$ac_cv_objext
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4015 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4016 if ${ac_cv_c_compiler_gnu+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4033 if ac_fn_c_try_compile "$LINENO"; then :
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4043 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4044 if test $ac_compiler_gnu = yes; then
4049 ac_test_CFLAGS=${CFLAGS+set}
4050 ac_save_CFLAGS=$CFLAGS
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4052 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4053 if ${ac_cv_prog_cc_g+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 ac_save_c_werror_flag=$ac_c_werror_flag
4057 ac_c_werror_flag=yes
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_c_try_compile "$LINENO"; then :
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_c_werror_flag=$ac_save_c_werror_flag
4091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4113 $as_echo "$ac_cv_prog_cc_g" >&6; }
4114 if test "$ac_test_CFLAGS" = set; then
4115 CFLAGS=$ac_save_CFLAGS
4116 elif test $ac_cv_prog_cc_g = yes; then
4117 if test "$GCC" = yes; then
4123 if test "$GCC" = yes; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4130 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4131 if ${ac_cv_prog_cc_c89+:} false; then :
4132 $as_echo_n "(cached) " >&6
4134 ac_cv_prog_cc_c89=no
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4142 struct buf { int x; };
4143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4144 static char *e (p, i)
4150 static char *f (char * (*g) (char **, int), char **p, ...)
4155 s = g (p, va_arg (v,int));
4160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4161 function prototypes and stuff, but not '\xHH' hex character constants.
4162 These don't provoke an error unfortunately, instead are silently treated
4163 as 'x'. The following induces an error, until -std is added to get
4164 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4165 array size at least. It's necessary to write '\x00'==0 to get something
4166 that's true only with -std. */
4167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4170 inside strings and character constants. */
4172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4174 int test (int i, double x);
4175 struct s1 {int (*f) (int a);};
4176 struct s2 {int (*f) (double a);};
4177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4183 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4189 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4191 CC="$ac_save_CC $ac_arg"
4192 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_cv_prog_cc_c89=$ac_arg
4195 rm -f core conftest.err conftest.$ac_objext
4196 test "x$ac_cv_prog_cc_c89" != "xno" && break
4198 rm -f conftest.$ac_ext
4203 case "x$ac_cv_prog_cc_c89" in
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4206 $as_echo "none needed" >&6; } ;;
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4209 $as_echo "unsupported" >&6; } ;;
4211 CC="$CC $ac_cv_prog_cc_c89"
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4215 if test "x$ac_cv_prog_cc_c89" != xno; then :
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4231 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4232 if ${am_cv_prog_cc_c_o+:} false; then :
4233 $as_echo_n "(cached) " >&6
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 # Make sure it works both with $CC and with simple cc.
4247 # Following AC_PROG_CC_C_O, we do the test twice because some
4248 # compilers refuse to overwrite an existing .o file with -o,
4249 # though they will create one.
4250 am_cv_prog_cc_c_o=yes
4252 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4253 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } \
4257 && test -f conftest2.$ac_objext; then
4260 am_cv_prog_cc_c_o=no
4264 rm -f core conftest*
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4268 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4269 if test "$am_cv_prog_cc_c_o" != yes; then
4270 # Losing compiler, so override with the script.
4271 # FIXME: It is wrong to rewrite CC.
4272 # But if we don't then we get into trouble of one sort or another.
4273 # A longer-term fix would be to have automake use am__CC in this case,
4274 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4275 CC="$am_aux_dir/compile $CC"
4278 ac_cpp='$CPP $CPPFLAGS'
4279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284 depcc="$CC" am_compiler_list=
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4287 $as_echo_n "checking dependency style of $depcc... " >&6; }
4288 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4289 $as_echo_n "(cached) " >&6
4291 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4292 # We make a subdir and do the tests there. Otherwise we can end up
4293 # making bogus files that we don't know about and never remove. For
4294 # instance it was reported that on HP-UX the gcc test will end up
4295 # making a dummy file named 'D' -- because '-MD' means "put the output
4299 # Copy depcomp to subdir because otherwise we won't find it if we're
4300 # using a relative directory.
4301 cp "$am_depcomp" conftest.dir
4303 # We will build objects and dependencies in a subdirectory because
4304 # it helps to detect inapplicable dependency modes. For instance
4305 # both Tru64's cc and ICC support -MD to output dependencies as a
4306 # side effect of compilation, but ICC will put the dependencies in
4307 # the current directory while Tru64 will put them in the object
4311 am_cv_CC_dependencies_compiler_type=none
4312 if test "$am_compiler_list" = ""; then
4313 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4316 case " $depcc " in #(
4317 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4320 for depmode in $am_compiler_list; do
4321 # Setup a source with many dependencies, because some compilers
4322 # like to wrap large dependency lists on column 80 (with \), and
4323 # we should not choose a depcomp mode which is confused by this.
4325 # We need to recreate these files for each test, as the compiler may
4326 # overwrite some of them when testing with obscure command lines.
4327 # This happens at least with the AIX C compiler.
4329 for i in 1 2 3 4 5 6; do
4330 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4331 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4332 # Solaris 10 /bin/sh.
4333 echo '/* dummy */' > sub/conftst$i.h
4335 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4337 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4338 # mode. It turns out that the SunPro C++ compiler does not properly
4339 # handle '-M -o', and we need to detect this. Also, some Intel
4340 # versions had trouble with output in subdirs.
4341 am__obj=sub/conftest.${OBJEXT-o}
4342 am__minus_obj="-o $am__obj"
4345 # This depmode causes a compiler race in universal mode.
4346 test "$am__universal" = false || continue
4349 # After this tag, mechanisms are not by side-effect, so they'll
4350 # only be used when explicitly requested.
4351 if test "x$enable_dependency_tracking" = xyes; then
4357 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4358 # This compiler won't grok '-c -o', but also, the minuso test has
4359 # not run yet. These depmodes are late enough in the game, and
4360 # so weak that their functioning should not be impacted.
4361 am__obj=conftest.${OBJEXT-o}
4366 if depmode=$depmode \
4367 source=sub/conftest.c object=$am__obj \
4368 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4369 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4370 >/dev/null 2>conftest.err &&
4371 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4372 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4373 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4374 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375 # icc doesn't choke on unknown options, it will just issue warnings
4376 # or remarks (even with -Werror). So we grep stderr for any message
4377 # that says an option was ignored or not supported.
4378 # When given -MP, icc 7.0 and 7.1 complain thusly:
4379 # icc: Command line warning: ignoring option '-M'; no argument required
4380 # The diagnosis changed in icc 8.0:
4381 # icc: Command line remark: option '-MP' not supported
4382 if (grep 'ignoring option' conftest.err ||
4383 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384 am_cv_CC_dependencies_compiler_type=$depmode
4393 am_cv_CC_dependencies_compiler_type=none
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4402 test "x$enable_dependency_tracking" != xno \
4403 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4405 am__fastdepCC_FALSE='#'
4407 am__fastdepCC_TRUE='#'
4408 am__fastdepCC_FALSE=
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4420 # On Suns, sometimes $CPP names a directory.
4421 if test -n "$CPP" && test -d "$CPP"; then
4424 if test -z "$CPP"; then
4425 if ${ac_cv_prog_CPP+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 # Double quotes because CPP needs to be expanded
4429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4432 for ac_c_preproc_warn_flag in '' yes
4434 # Use a header file that comes with gcc, so configuring glibc
4435 # with a fresh cross-compiler works.
4436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4437 # <limits.h> exists even on freestanding compilers.
4438 # On the NeXT, cc -E runs the code through the compiler's parser,
4439 # not just through cpp. "Syntax error" is here to catch this case.
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4443 # include <limits.h>
4445 # include <assert.h>
4449 if ac_fn_c_try_cpp "$LINENO"; then :
4452 # Broken: fails on valid input.
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4457 # OK, works on sane cases. Now check whether nonexistent headers
4458 # can be detected and how.
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 #include <ac_nonexistent.h>
4463 if ac_fn_c_try_cpp "$LINENO"; then :
4464 # Broken: success on invalid input.
4467 # Passes both tests.
4471 rm -f conftest.err conftest.i conftest.$ac_ext
4474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4475 rm -f conftest.i conftest.err conftest.$ac_ext
4476 if $ac_preproc_ok; then :
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4489 $as_echo "$CPP" >&6; }
4491 for ac_c_preproc_warn_flag in '' yes
4493 # Use a header file that comes with gcc, so configuring glibc
4494 # with a fresh cross-compiler works.
4495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4496 # <limits.h> exists even on freestanding compilers.
4497 # On the NeXT, cc -E runs the code through the compiler's parser,
4498 # not just through cpp. "Syntax error" is here to catch this case.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4502 # include <limits.h>
4504 # include <assert.h>
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4511 # Broken: fails on valid input.
4514 rm -f conftest.err conftest.i conftest.$ac_ext
4516 # OK, works on sane cases. Now check whether nonexistent headers
4517 # can be detected and how.
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <ac_nonexistent.h>
4522 if ac_fn_c_try_cpp "$LINENO"; then :
4523 # Broken: success on invalid input.
4526 # Passes both tests.
4530 rm -f conftest.err conftest.i conftest.$ac_ext
4533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4534 rm -f conftest.i conftest.err conftest.$ac_ext
4535 if $ac_preproc_ok; then :
4538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4540 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4541 See \`config.log' for more details" "$LINENO" 5; }
4545 ac_cpp='$CPP $CPPFLAGS'
4546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4553 if ${ac_cv_path_GREP+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 if test -z "$GREP"; then
4557 ac_path_GREP_found=false
4558 # Loop through the user's path and test for each of PROGNAME-LIST
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563 test -z "$as_dir" && as_dir=.
4564 for ac_prog in grep ggrep; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4567 as_fn_executable_p "$ac_path_GREP" || continue
4568 # Check for GNU ac_path_GREP and select it if it is found.
4569 # Check for GNU $ac_path_GREP
4570 case `"$ac_path_GREP" --version 2>&1` in
4572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4575 $as_echo_n 0123456789 >"conftest.in"
4578 cat "conftest.in" "conftest.in" >"conftest.tmp"
4579 mv "conftest.tmp" "conftest.in"
4580 cp "conftest.in" "conftest.nl"
4581 $as_echo 'GREP' >> "conftest.nl"
4582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584 as_fn_arith $ac_count + 1 && ac_count=$as_val
4585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4587 ac_cv_path_GREP="$ac_path_GREP"
4588 ac_path_GREP_max=$ac_count
4590 # 10*(2^10) chars as input seems more than enough
4591 test $ac_count -gt 10 && break
4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 $ac_path_GREP_found && break 3
4601 if test -z "$ac_cv_path_GREP"; then
4602 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605 ac_cv_path_GREP=$GREP
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4610 $as_echo "$ac_cv_path_GREP" >&6; }
4611 GREP="$ac_cv_path_GREP"
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4615 $as_echo_n "checking for egrep... " >&6; }
4616 if ${ac_cv_path_EGREP+:} false; then :
4617 $as_echo_n "(cached) " >&6
4619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4620 then ac_cv_path_EGREP="$GREP -E"
4622 if test -z "$EGREP"; then
4623 ac_path_EGREP_found=false
4624 # Loop through the user's path and test for each of PROGNAME-LIST
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629 test -z "$as_dir" && as_dir=.
4630 for ac_prog in egrep; do
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4633 as_fn_executable_p "$ac_path_EGREP" || continue
4634 # Check for GNU ac_path_EGREP and select it if it is found.
4635 # Check for GNU $ac_path_EGREP
4636 case `"$ac_path_EGREP" --version 2>&1` in
4638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4641 $as_echo_n 0123456789 >"conftest.in"
4644 cat "conftest.in" "conftest.in" >"conftest.tmp"
4645 mv "conftest.tmp" "conftest.in"
4646 cp "conftest.in" "conftest.nl"
4647 $as_echo 'EGREP' >> "conftest.nl"
4648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4650 as_fn_arith $ac_count + 1 && ac_count=$as_val
4651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4652 # Best one so far, save it but keep looking for a better one
4653 ac_cv_path_EGREP="$ac_path_EGREP"
4654 ac_path_EGREP_max=$ac_count
4656 # 10*(2^10) chars as input seems more than enough
4657 test $ac_count -gt 10 && break
4659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662 $ac_path_EGREP_found && break 3
4667 if test -z "$ac_cv_path_EGREP"; then
4668 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 ac_cv_path_EGREP=$EGREP
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4677 $as_echo "$ac_cv_path_EGREP" >&6; }
4678 EGREP="$ac_cv_path_EGREP"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4682 $as_echo_n "checking for ANSI C header files... " >&6; }
4683 if ${ac_cv_header_stdc+:} false; then :
4684 $as_echo_n "(cached) " >&6
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4701 if ac_fn_c_try_compile "$LINENO"; then :
4702 ac_cv_header_stdc=yes
4704 ac_cv_header_stdc=no
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4708 if test $ac_cv_header_stdc = yes; then
4709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4716 $EGREP "memchr" >/dev/null 2>&1; then :
4719 ac_cv_header_stdc=no
4725 if test $ac_cv_header_stdc = yes; then
4726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733 $EGREP "free" >/dev/null 2>&1; then :
4736 ac_cv_header_stdc=no
4742 if test $ac_cv_header_stdc = yes; then
4743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4744 if test "$cross_compiling" = yes; then :
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 #if ((' ' & 0x0FF) == 0x020)
4752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4755 # define ISLOWER(c) \
4756 (('a' <= (c) && (c) <= 'i') \
4757 || ('j' <= (c) && (c) <= 'r') \
4758 || ('s' <= (c) && (c) <= 'z'))
4759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4767 for (i = 0; i < 256; i++)
4768 if (XOR (islower (i), ISLOWER (i))
4769 || toupper (i) != TOUPPER (i))
4774 if ac_fn_c_try_run "$LINENO"; then :
4777 ac_cv_header_stdc=no
4779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4780 conftest.$ac_objext conftest.beam conftest.$ac_ext
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4786 $as_echo "$ac_cv_header_stdc" >&6; }
4787 if test $ac_cv_header_stdc = yes; then
4789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4795 inttypes.h stdint.h unistd.h
4797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4800 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4801 cat >>confdefs.h <<_ACEOF
4802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4811 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4812 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4819 if test "$MINIX" = yes; then
4821 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4824 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4827 $as_echo "#define _MINIX 1" >>confdefs.h
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4833 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4834 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4835 $as_echo_n "(cached) " >&6
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4840 # define __EXTENSIONS__ 1
4841 $ac_includes_default
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_safe_to_define___extensions__=yes
4853 ac_cv_safe_to_define___extensions__=no
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859 test $ac_cv_safe_to_define___extensions__ = yes &&
4860 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4862 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4864 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4866 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4868 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_CC+:} false; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -n "$CC"; then
4887 ac_cv_prog_CC="$CC" # Let the user override the test.
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir=.
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 if test -n "$CC"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4909 $as_echo "$CC" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_CC"; then
4919 # Extract the first word of "gcc", so it can be a program name with args.
4920 set dummy gcc; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$ac_ct_CC"; then
4927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_ac_ct_CC="gcc"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4947 if test -n "$ac_ct_CC"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4949 $as_echo "$ac_ct_CC" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_CC" = x; then
4958 case $cross_compiling:$ac_tool_warned in
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4970 if test -z "$CC"; then
4971 if test -n "$ac_tool_prefix"; then
4972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4973 set dummy ${ac_tool_prefix}cc; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_prog_CC+:} false; then :
4977 $as_echo_n "(cached) " >&6
4979 if test -n "$CC"; then
4980 ac_cv_prog_CC="$CC" # Let the user override the test.
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 test -z "$as_dir" && as_dir=.
4987 for ac_exec_ext in '' $ac_executable_extensions; do
4988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4989 ac_cv_prog_CC="${ac_tool_prefix}cc"
4990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 if test -n "$CC"; then
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5002 $as_echo "$CC" >&6; }
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5005 $as_echo "no" >&6; }
5011 if test -z "$CC"; then
5012 # Extract the first word of "cc", so it can be a program name with args.
5013 set dummy cc; ac_word=$2
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 $as_echo_n "checking for $ac_word... " >&6; }
5016 if ${ac_cv_prog_CC+:} false; then :
5017 $as_echo_n "(cached) " >&6
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5031 ac_prog_rejected=yes
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test $ac_prog_rejected = yes; then
5043 # We found a bogon in the path, so make sure we never use it.
5044 set dummy $ac_cv_prog_CC
5046 if test $# != 0; then
5047 # We chose a different compiler from the bogus one.
5048 # However, it has the same basename, so the bogon will be chosen
5049 # first if we set CC to just the basename; use the full file name.
5051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5057 if test -n "$CC"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5059 $as_echo "$CC" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5067 if test -z "$CC"; then
5068 if test -n "$ac_tool_prefix"; then
5069 for ac_prog in cl.exe
5071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_CC+:} false; then :
5076 $as_echo_n "(cached) " >&6
5078 if test -n "$CC"; then
5079 ac_cv_prog_CC="$CC" # Let the user override the test.
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 if test -n "$CC"; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5101 $as_echo "$CC" >&6; }
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5108 test -n "$CC" && break
5111 if test -z "$CC"; then
5113 for ac_prog in cl.exe
5115 # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5120 $as_echo_n "(cached) " >&6
5122 if test -n "$ac_ct_CC"; then
5123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132 ac_cv_prog_ac_ct_CC="$ac_prog"
5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5143 if test -n "$ac_ct_CC"; then
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5145 $as_echo "$ac_ct_CC" >&6; }
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5152 test -n "$ac_ct_CC" && break
5155 if test "x$ac_ct_CC" = x; then
5158 case $cross_compiling:$ac_tool_warned in
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error $? "no acceptable C compiler found in \$PATH
5174 See \`config.log' for more details" "$LINENO" 5; }
5176 # Provide some information about the compiler.
5177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5180 for ac_option in --version -v -V -qversion; do
5181 { { ac_try="$ac_compiler $ac_option >&5"
5183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5184 *) ac_try_echo=$ac_try;;
5186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5187 $as_echo "$ac_try_echo"; } >&5
5188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5190 if test -s conftest.err; then
5192 ... rest of stderr output deleted ...
5193 10q' conftest.err >conftest.er1
5194 cat conftest.er1 >&5
5196 rm -f conftest.er1 conftest.err
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; }
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5202 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5203 if ${ac_cv_c_compiler_gnu+:} false; then :
5204 $as_echo_n "(cached) " >&6
5206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h. */
5220 if ac_fn_c_try_compile "$LINENO"; then :
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5230 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5231 if test $ac_compiler_gnu = yes; then
5236 ac_test_CFLAGS=${CFLAGS+set}
5237 ac_save_CFLAGS=$CFLAGS
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5239 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5240 if ${ac_cv_prog_cc_g+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 ac_save_c_werror_flag=$ac_c_werror_flag
5244 ac_c_werror_flag=yes
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5258 if ac_fn_c_try_compile "$LINENO"; then :
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5273 if ac_fn_c_try_compile "$LINENO"; then :
5276 ac_c_werror_flag=$ac_save_c_werror_flag
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5289 if ac_fn_c_try_compile "$LINENO"; then :
5292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 ac_c_werror_flag=$ac_save_c_werror_flag
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5300 $as_echo "$ac_cv_prog_cc_g" >&6; }
5301 if test "$ac_test_CFLAGS" = set; then
5302 CFLAGS=$ac_save_CFLAGS
5303 elif test $ac_cv_prog_cc_g = yes; then
5304 if test "$GCC" = yes; then
5310 if test "$GCC" = yes; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5317 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5318 if ${ac_cv_prog_cc_c89+:} false; then :
5319 $as_echo_n "(cached) " >&6
5321 ac_cv_prog_cc_c89=no
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5329 struct buf { int x; };
5330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5331 static char *e (p, i)
5337 static char *f (char * (*g) (char **, int), char **p, ...)
5342 s = g (p, va_arg (v,int));
5347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5348 function prototypes and stuff, but not '\xHH' hex character constants.
5349 These don't provoke an error unfortunately, instead are silently treated
5350 as 'x'. The following induces an error, until -std is added to get
5351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5352 array size at least. It's necessary to write '\x00'==0 to get something
5353 that's true only with -std. */
5354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5357 inside strings and character constants. */
5359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5361 int test (int i, double x);
5362 struct s1 {int (*f) (int a);};
5363 struct s2 {int (*f) (double a);};
5364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5378 CC="$ac_save_CC $ac_arg"
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_prog_cc_c89=$ac_arg
5382 rm -f core conftest.err conftest.$ac_objext
5383 test "x$ac_cv_prog_cc_c89" != "xno" && break
5385 rm -f conftest.$ac_ext
5390 case "x$ac_cv_prog_cc_c89" in
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5393 $as_echo "none needed" >&6; } ;;
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5396 $as_echo "unsupported" >&6; } ;;
5398 CC="$CC $ac_cv_prog_cc_c89"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5402 if test "x$ac_cv_prog_cc_c89" != xno; then :
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5418 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5419 if ${am_cv_prog_cc_c_o+:} false; then :
5420 $as_echo_n "(cached) " >&6
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5433 # Make sure it works both with $CC and with simple cc.
5434 # Following AC_PROG_CC_C_O, we do the test twice because some
5435 # compilers refuse to overwrite an existing .o file with -o,
5436 # though they will create one.
5437 am_cv_prog_cc_c_o=yes
5439 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5440 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443 (exit $ac_status); } \
5444 && test -f conftest2.$ac_objext; then
5447 am_cv_prog_cc_c_o=no
5451 rm -f core conftest*
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5455 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5456 if test "$am_cv_prog_cc_c_o" != yes; then
5457 # Losing compiler, so override with the script.
5458 # FIXME: It is wrong to rewrite CC.
5459 # But if we don't then we get into trouble of one sort or another.
5460 # A longer-term fix would be to have automake use am__CC in this case,
5461 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5462 CC="$am_aux_dir/compile $CC"
5465 ac_cpp='$CPP $CPPFLAGS'
5466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5471 depcc="$CC" am_compiler_list=
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5474 $as_echo_n "checking dependency style of $depcc... " >&6; }
5475 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479 # We make a subdir and do the tests there. Otherwise we can end up
5480 # making bogus files that we don't know about and never remove. For
5481 # instance it was reported that on HP-UX the gcc test will end up
5482 # making a dummy file named 'D' -- because '-MD' means "put the output
5486 # Copy depcomp to subdir because otherwise we won't find it if we're
5487 # using a relative directory.
5488 cp "$am_depcomp" conftest.dir
5490 # We will build objects and dependencies in a subdirectory because
5491 # it helps to detect inapplicable dependency modes. For instance
5492 # both Tru64's cc and ICC support -MD to output dependencies as a
5493 # side effect of compilation, but ICC will put the dependencies in
5494 # the current directory while Tru64 will put them in the object
5498 am_cv_CC_dependencies_compiler_type=none
5499 if test "$am_compiler_list" = ""; then
5500 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5503 case " $depcc " in #(
5504 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5507 for depmode in $am_compiler_list; do
5508 # Setup a source with many dependencies, because some compilers
5509 # like to wrap large dependency lists on column 80 (with \), and
5510 # we should not choose a depcomp mode which is confused by this.
5512 # We need to recreate these files for each test, as the compiler may
5513 # overwrite some of them when testing with obscure command lines.
5514 # This happens at least with the AIX C compiler.
5516 for i in 1 2 3 4 5 6; do
5517 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5518 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5519 # Solaris 10 /bin/sh.
5520 echo '/* dummy */' > sub/conftst$i.h
5522 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5524 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5525 # mode. It turns out that the SunPro C++ compiler does not properly
5526 # handle '-M -o', and we need to detect this. Also, some Intel
5527 # versions had trouble with output in subdirs.
5528 am__obj=sub/conftest.${OBJEXT-o}
5529 am__minus_obj="-o $am__obj"
5532 # This depmode causes a compiler race in universal mode.
5533 test "$am__universal" = false || continue
5536 # After this tag, mechanisms are not by side-effect, so they'll
5537 # only be used when explicitly requested.
5538 if test "x$enable_dependency_tracking" = xyes; then
5544 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5545 # This compiler won't grok '-c -o', but also, the minuso test has
5546 # not run yet. These depmodes are late enough in the game, and
5547 # so weak that their functioning should not be impacted.
5548 am__obj=conftest.${OBJEXT-o}
5553 if depmode=$depmode \
5554 source=sub/conftest.c object=$am__obj \
5555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5556 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5557 >/dev/null 2>conftest.err &&
5558 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5559 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5560 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5561 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5562 # icc doesn't choke on unknown options, it will just issue warnings
5563 # or remarks (even with -Werror). So we grep stderr for any message
5564 # that says an option was ignored or not supported.
5565 # When given -MP, icc 7.0 and 7.1 complain thusly:
5566 # icc: Command line warning: ignoring option '-M'; no argument required
5567 # The diagnosis changed in icc 8.0:
5568 # icc: Command line remark: option '-MP' not supported
5569 if (grep 'ignoring option' conftest.err ||
5570 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5571 am_cv_CC_dependencies_compiler_type=$depmode
5580 am_cv_CC_dependencies_compiler_type=none
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5585 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5586 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5589 test "x$enable_dependency_tracking" != xno \
5590 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5592 am__fastdepCC_FALSE='#'
5594 am__fastdepCC_TRUE='#'
5595 am__fastdepCC_FALSE=
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5602 $as_echo_n "checking whether ln -s works... " >&6; }
5604 if test "$LN_S" = "ln -s"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5606 $as_echo "yes" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5609 $as_echo "no, using $LN_S" >&6; }
5619 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5620 if test -n "$ac_tool_prefix"; then
5621 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5622 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5626 $as_echo_n "(cached) " >&6
5630 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 test -z "$as_dir" && as_dir=.
5638 for ac_exec_ext in '' $ac_executable_extensions; do
5639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5640 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5652 if test -n "$PKG_CONFIG"; then
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5654 $as_echo "$PKG_CONFIG" >&6; }
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5662 if test -z "$ac_cv_path_PKG_CONFIG"; then
5663 ac_pt_PKG_CONFIG=$PKG_CONFIG
5664 # Extract the first word of "pkg-config", so it can be a program name with args.
5665 set dummy pkg-config; ac_word=$2
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667 $as_echo_n "checking for $ac_word... " >&6; }
5668 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 case $ac_pt_PKG_CONFIG in
5673 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5683 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5694 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5695 if test -n "$ac_pt_PKG_CONFIG"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5697 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5703 if test "x$ac_pt_PKG_CONFIG" = x; then
5706 case $cross_compiling:$ac_tool_warned in
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5710 ac_tool_warned=yes ;;
5712 PKG_CONFIG=$ac_pt_PKG_CONFIG
5715 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5719 if test -n "$PKG_CONFIG"; then
5720 _pkg_min_version=0.9.0
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5722 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5723 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725 $as_echo "yes" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5736 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5741 macro_version='2.4.6'
5742 macro_revision='2.4.6'
5756 ltmain=$ac_aux_dir/ltmain.sh
5758 # Backslashify metacharacters that are still active within
5759 # double-quoted strings.
5760 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5762 # Same as above, but do not quote variable references.
5763 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5765 # Sed substitution to delay expansion of an escaped shell variable in a
5766 # double_quote_subst'ed string.
5767 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5769 # Sed substitution to delay expansion of an escaped single quote.
5770 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5772 # Sed substitution to avoid accidental globbing in evaled expressions
5773 no_glob_subst='s/\*/\\\*/g'
5775 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5776 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5777 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5780 $as_echo_n "checking how to print strings... " >&6; }
5781 # Test print first, because it will be a builtin if present.
5782 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5783 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5785 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5788 # Use this function as a fallback that always works.
5789 func_fallback_echo ()
5791 eval 'cat <<_LTECHO_EOF
5795 ECHO='func_fallback_echo'
5798 # func_echo_all arg...
5799 # Invoke $ECHO with all args, space-separated.
5806 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5807 $as_echo "printf" >&6; } ;;
5808 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5809 $as_echo "print -r" >&6; } ;;
5810 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5811 $as_echo "cat" >&6; } ;;
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5828 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5829 if ${ac_cv_path_SED+:} false; then :
5830 $as_echo_n "(cached) " >&6
5832 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5833 for ac_i in 1 2 3 4 5 6 7; do
5834 ac_script="$ac_script$as_nl$ac_script"
5836 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5837 { ac_script=; unset ac_script;}
5838 if test -z "$SED"; then
5839 ac_path_SED_found=false
5840 # Loop through the user's path and test for each of PROGNAME-LIST
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_prog in sed gsed; do
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5849 as_fn_executable_p "$ac_path_SED" || continue
5850 # Check for GNU ac_path_SED and select it if it is found.
5851 # Check for GNU $ac_path_SED
5852 case `"$ac_path_SED" --version 2>&1` in
5854 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5857 $as_echo_n 0123456789 >"conftest.in"
5860 cat "conftest.in" "conftest.in" >"conftest.tmp"
5861 mv "conftest.tmp" "conftest.in"
5862 cp "conftest.in" "conftest.nl"
5863 $as_echo '' >> "conftest.nl"
5864 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5866 as_fn_arith $ac_count + 1 && ac_count=$as_val
5867 if test $ac_count -gt ${ac_path_SED_max-0}; then
5868 # Best one so far, save it but keep looking for a better one
5869 ac_cv_path_SED="$ac_path_SED"
5870 ac_path_SED_max=$ac_count
5872 # 10*(2^10) chars as input seems more than enough
5873 test $ac_count -gt 10 && break
5875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878 $ac_path_SED_found && break 3
5883 if test -z "$ac_cv_path_SED"; then
5884 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5892 $as_echo "$ac_cv_path_SED" >&6; }
5893 SED="$ac_cv_path_SED"
5896 test -z "$SED" && SED=sed
5897 Xsed="$SED -e 1s/^X//"
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5910 $as_echo_n "checking for fgrep... " >&6; }
5911 if ${ac_cv_path_FGREP+:} false; then :
5912 $as_echo_n "(cached) " >&6
5914 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5915 then ac_cv_path_FGREP="$GREP -F"
5917 if test -z "$FGREP"; then
5918 ac_path_FGREP_found=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5924 test -z "$as_dir" && as_dir=.
5925 for ac_prog in fgrep; do
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5928 as_fn_executable_p "$ac_path_FGREP" || continue
5929 # Check for GNU ac_path_FGREP and select it if it is found.
5930 # Check for GNU $ac_path_FGREP
5931 case `"$ac_path_FGREP" --version 2>&1` in
5933 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5936 $as_echo_n 0123456789 >"conftest.in"
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'FGREP' >> "conftest.nl"
5943 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945 as_fn_arith $ac_count + 1 && ac_count=$as_val
5946 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_FGREP="$ac_path_FGREP"
5949 ac_path_FGREP_max=$ac_count
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5957 $ac_path_FGREP_found && break 3
5962 if test -z "$ac_cv_path_FGREP"; then
5963 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5966 ac_cv_path_FGREP=$FGREP
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5972 $as_echo "$ac_cv_path_FGREP" >&6; }
5973 FGREP="$ac_cv_path_FGREP"
5976 test -z "$GREP" && GREP=grep
5996 # Check whether --with-gnu-ld was given.
5997 if test "${with_gnu_ld+set}" = set; then :
5998 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6004 if test yes = "$GCC"; then
6005 # Check if gcc -print-prog-name=ld gives a path.
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6007 $as_echo_n "checking for ld used by $CC... " >&6; }
6010 # gcc leaves a trailing carriage return, which upsets mingw
6011 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6013 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6016 # Accept absolute paths.
6018 re_direlt='/[^/][^/]*/\.\./'
6019 # Canonicalize the pathname of ld
6020 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6021 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6022 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6024 test -z "$LD" && LD=$ac_prog
6027 # If it fails, then pretend we aren't using GCC.
6031 # If it is relative, then search for the first ld in PATH.
6035 elif test yes = "$with_gnu_ld"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6037 $as_echo_n "checking for GNU ld... " >&6; }
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6040 $as_echo_n "checking for non-GNU ld... " >&6; }
6042 if ${lt_cv_path_LD+:} false; then :
6043 $as_echo_n "(cached) " >&6
6045 if test -z "$LD"; then
6046 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6047 for ac_dir in $PATH; do
6049 test -z "$ac_dir" && ac_dir=.
6050 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6051 lt_cv_path_LD=$ac_dir/$ac_prog
6052 # Check to see if the program is GNU ld. I'd rather use --version,
6053 # but apparently some variants of GNU ld only accept -v.
6054 # Break only if it was the GNU/non-GNU ld that we prefer.
6055 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6056 *GNU* | *'with BFD'*)
6057 test no != "$with_gnu_ld" && break
6060 test yes != "$with_gnu_ld" && break
6067 lt_cv_path_LD=$LD # Let the user override the test with a path.
6072 if test -n "$LD"; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6074 $as_echo "$LD" >&6; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077 $as_echo "no" >&6; }
6079 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6082 if ${lt_cv_prog_gnu_ld+:} false; then :
6083 $as_echo_n "(cached) " >&6
6085 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6086 case `$LD -v 2>&1 </dev/null` in
6087 *GNU* | *'with BFD'*)
6088 lt_cv_prog_gnu_ld=yes
6091 lt_cv_prog_gnu_ld=no
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6096 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6097 with_gnu_ld=$lt_cv_prog_gnu_ld
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6108 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6109 if ${lt_cv_path_NM+:} false; then :
6110 $as_echo_n "(cached) " >&6
6112 if test -n "$NM"; then
6113 # Let the user override the test.
6116 lt_nm_to_check=${ac_tool_prefix}nm
6117 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6118 lt_nm_to_check="$lt_nm_to_check nm"
6120 for lt_tmp_nm in $lt_nm_to_check; do
6121 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6122 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6124 test -z "$ac_dir" && ac_dir=.
6125 tmp_nm=$ac_dir/$lt_tmp_nm
6126 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6127 # Check to see if the nm accepts a BSD-compat flag.
6128 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6129 # nm: unknown option "B" ignored
6130 # Tru64's nm complains that /dev/null is an invalid object file
6131 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6133 mingw*) lt_bad_file=conftest.nm/nofile ;;
6134 *) lt_bad_file=/dev/null ;;
6136 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6137 *$lt_bad_file* | *'Invalid file or object type'*)
6138 lt_cv_path_NM="$tmp_nm -B"
6142 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6144 lt_cv_path_NM="$tmp_nm -p"
6148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6149 continue # so that we can try to find one that supports BSD flags
6158 : ${lt_cv_path_NM=no}
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6162 $as_echo "$lt_cv_path_NM" >&6; }
6163 if test no != "$lt_cv_path_NM"; then
6166 # Didn't find any BSD compatible name lister, look for dumpbin.
6167 if test -n "$DUMPBIN"; then :
6168 # Let the user override the test.
6170 if test -n "$ac_tool_prefix"; then
6171 for ac_prog in dumpbin "link -dump"
6173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_DUMPBIN+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$DUMPBIN"; then
6181 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 DUMPBIN=$ac_cv_prog_DUMPBIN
6201 if test -n "$DUMPBIN"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6203 $as_echo "$DUMPBIN" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6210 test -n "$DUMPBIN" && break
6213 if test -z "$DUMPBIN"; then
6214 ac_ct_DUMPBIN=$DUMPBIN
6215 for ac_prog in dumpbin "link -dump"
6217 # Extract the first word of "$ac_prog", so it can be a program name with args.
6218 set dummy $ac_prog; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 if test -n "$ac_ct_DUMPBIN"; then
6225 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6245 if test -n "$ac_ct_DUMPBIN"; then
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6247 $as_echo "$ac_ct_DUMPBIN" >&6; }
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6254 test -n "$ac_ct_DUMPBIN" && break
6257 if test "x$ac_ct_DUMPBIN" = x; then
6260 case $cross_compiling:$ac_tool_warned in
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6266 DUMPBIN=$ac_ct_DUMPBIN
6270 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6272 DUMPBIN="$DUMPBIN -symbols -headers"
6280 if test : != "$DUMPBIN"; then
6284 test -z "$NM" && NM=nm
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6292 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6293 if ${lt_cv_nm_interface+:} false; then :
6294 $as_echo_n "(cached) " >&6
6296 lt_cv_nm_interface="BSD nm"
6297 echo "int some_variable = 0;" > conftest.$ac_ext
6298 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6299 (eval "$ac_compile" 2>conftest.err)
6300 cat conftest.err >&5
6301 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6302 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6303 cat conftest.err >&5
6304 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6305 cat conftest.out >&5
6306 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6307 lt_cv_nm_interface="MS dumpbin"
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6312 $as_echo "$lt_cv_nm_interface" >&6; }
6314 # find the maximum length of command line arguments
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6316 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6317 if ${lt_cv_sys_max_cmd_len+:} false; then :
6318 $as_echo_n "(cached) " >&6
6325 # On DJGPP, this test can blow up pretty badly due to problems in libc
6326 # (any single argument exceeding 2000 bytes causes a buffer overrun
6327 # during glob expansion). Even if it were fixed, the result of this
6328 # check would be larger than it should be.
6329 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6333 # Under GNU Hurd, this test is not required because there is
6334 # no limit to the length of command line arguments.
6335 # Libtool will interpret -1 as no limit whatsoever
6336 lt_cv_sys_max_cmd_len=-1;
6339 cygwin* | mingw* | cegcc*)
6340 # On Win9x/ME, this test blows up -- it succeeds, but takes
6341 # about 5 minutes as the teststring grows exponentially.
6342 # Worse, since 9x/ME are not pre-emptively multitasking,
6343 # you end up with a "frozen" computer, even though with patience
6344 # the test eventually succeeds (with a max line length of 256k).
6345 # Instead, let's just punt: use the minimum linelength reported by
6346 # all of the supported platforms: 8192 (on NT/2K/XP).
6347 lt_cv_sys_max_cmd_len=8192;
6351 # On MiNT this can take a long time and run out of memory.
6352 lt_cv_sys_max_cmd_len=8192;
6356 # On AmigaOS with pdksh, this test takes hours, literally.
6357 # So we just punt and use a minimum line length of 8192.
6358 lt_cv_sys_max_cmd_len=8192;
6361 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6362 # This has been around since 386BSD, at least. Likely further.
6363 if test -x /sbin/sysctl; then
6364 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6365 elif test -x /usr/sbin/sysctl; then
6366 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6368 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6370 # And add a safety zone
6371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6376 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6377 lt_cv_sys_max_cmd_len=196608
6381 # The test takes a long time on OS/2.
6382 lt_cv_sys_max_cmd_len=8192
6386 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6387 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6388 # nice to cause kernel panics so lets avoid the loop below.
6389 # First set a reasonable default.
6390 lt_cv_sys_max_cmd_len=16384
6392 if test -x /sbin/sysconfig; then
6393 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6394 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6399 lt_cv_sys_max_cmd_len=102400
6401 sysv5* | sco5v6* | sysv4.2uw2*)
6402 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6403 if test -n "$kargmax"; then
6404 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6406 lt_cv_sys_max_cmd_len=32768
6410 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6411 if test -n "$lt_cv_sys_max_cmd_len" && \
6412 test undefined != "$lt_cv_sys_max_cmd_len"; then
6413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6416 # Make teststring a little bigger before we do anything with it.
6417 # a 1K string should be a reasonable start.
6418 for i in 1 2 3 4 5 6 7 8; do
6419 teststring=$teststring$teststring
6421 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6422 # If test is not a shell built-in, we'll probably end up computing a
6423 # maximum length that is only half of the actual maximum length, but
6425 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6426 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6427 test 17 != "$i" # 1/2 MB should be enough
6430 teststring=$teststring$teststring
6432 # Only check the string length outside the loop.
6433 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6435 # Add a significant safety factor because C++ compilers can tack on
6436 # massive amounts of additional arguments before passing them to the
6437 # linker. It appears as though 1/2 is a usable value.
6438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6445 if test -n "$lt_cv_sys_max_cmd_len"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6447 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6450 $as_echo "none" >&6; }
6452 max_cmd_len=$lt_cv_sys_max_cmd_len
6463 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6473 # test EBCDIC or ASCII
6474 case `echo X|tr X '\101'` in
6475 A) # ASCII based system
6476 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6477 lt_SP2NL='tr \040 \012'
6478 lt_NL2SP='tr \015\012 \040\040'
6480 *) # EBCDIC based system
6481 lt_SP2NL='tr \100 \n'
6482 lt_NL2SP='tr \r\n \100\100'
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6495 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6496 if ${lt_cv_to_host_file_cmd+:} false; then :
6497 $as_echo_n "(cached) " >&6
6502 *-*-mingw* ) # actually msys
6503 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6506 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6508 * ) # otherwise, assume *nix
6509 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6515 *-*-mingw* ) # actually msys
6516 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6519 lt_cv_to_host_file_cmd=func_convert_file_noop
6521 * ) # otherwise, assume *nix
6522 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6526 * ) # unhandled hosts (and "normal" native builds)
6527 lt_cv_to_host_file_cmd=func_convert_file_noop
6533 to_host_file_cmd=$lt_cv_to_host_file_cmd
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6535 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6542 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6543 if ${lt_cv_to_tool_file_cmd+:} false; then :
6544 $as_echo_n "(cached) " >&6
6546 #assume ordinary cross tools, or native build.
6547 lt_cv_to_tool_file_cmd=func_convert_file_noop
6551 *-*-mingw* ) # actually msys
6552 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6560 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6562 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6569 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6570 if ${lt_cv_ld_reload_flag+:} false; then :
6571 $as_echo_n "(cached) " >&6
6573 lt_cv_ld_reload_flag='-r'
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6576 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6577 reload_flag=$lt_cv_ld_reload_flag
6578 case $reload_flag in
6580 *) reload_flag=" $reload_flag" ;;
6582 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6584 cygwin* | mingw* | pw32* | cegcc*)
6585 if test yes != "$GCC"; then
6590 if test yes = "$GCC"; then
6591 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6593 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6606 if test -n "$ac_tool_prefix"; then
6607 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_OBJDUMP+:} false; then :
6612 $as_echo_n "(cached) " >&6
6614 if test -n "$OBJDUMP"; then
6615 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 OBJDUMP=$ac_cv_prog_OBJDUMP
6635 if test -n "$OBJDUMP"; then
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6637 $as_echo "$OBJDUMP" >&6; }
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6645 if test -z "$ac_cv_prog_OBJDUMP"; then
6646 ac_ct_OBJDUMP=$OBJDUMP
6647 # Extract the first word of "objdump", so it can be a program name with args.
6648 set dummy objdump; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 if test -n "$ac_ct_OBJDUMP"; then
6655 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6675 if test -n "$ac_ct_OBJDUMP"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6677 $as_echo "$ac_ct_OBJDUMP" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6683 if test "x$ac_ct_OBJDUMP" = x; then
6686 case $cross_compiling:$ac_tool_warned in
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6692 OBJDUMP=$ac_ct_OBJDUMP
6695 OBJDUMP="$ac_cv_prog_OBJDUMP"
6698 test -z "$OBJDUMP" && OBJDUMP=objdump
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6709 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6710 if ${lt_cv_deplibs_check_method+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 lt_cv_file_magic_cmd='$MAGIC_CMD'
6714 lt_cv_file_magic_test_file=
6715 lt_cv_deplibs_check_method='unknown'
6716 # Need to set the preceding variable on all platforms that support
6717 # interlibrary dependencies.
6718 # 'none' -- dependencies not supported.
6719 # 'unknown' -- same as none, but documents that we really don't know.
6720 # 'pass_all' -- all dependencies passed with no checks.
6721 # 'test_compile' -- check by making test program.
6722 # 'file_magic [[regex]]' -- check by looking for files in library path
6723 # that responds to the $file_magic_cmd with a given extended regex.
6724 # If you have 'file' or equivalent on your system and you're not sure
6725 # whether 'pass_all' will *always* work, you probably want this one.
6729 lt_cv_deplibs_check_method=pass_all
6733 lt_cv_deplibs_check_method=pass_all
6737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6738 lt_cv_file_magic_cmd='/usr/bin/file -L'
6739 lt_cv_file_magic_test_file=/shlib/libc.so
6743 # func_win32_libid is a shell function defined in ltmain.sh
6744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6745 lt_cv_file_magic_cmd='func_win32_libid'
6749 # Base MSYS/MinGW do not provide the 'file' command needed by
6750 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6751 # unless we find 'file', for example because we are cross-compiling.
6752 if ( file / ) >/dev/null 2>&1; then
6753 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6754 lt_cv_file_magic_cmd='func_win32_libid'
6756 # Keep this pattern in sync with the one in func_win32_libid.
6757 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6758 lt_cv_file_magic_cmd='$OBJDUMP -f'
6763 # use the weaker test based on 'objdump'. See mingw*.
6764 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6765 lt_cv_file_magic_cmd='$OBJDUMP -f'
6768 darwin* | rhapsody*)
6769 lt_cv_deplibs_check_method=pass_all
6772 freebsd* | dragonfly*)
6773 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6776 # Not sure whether the presence of OpenBSD here was a mistake.
6777 # Let's accept both of them until this is cleared up.
6778 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6779 lt_cv_file_magic_cmd=/usr/bin/file
6780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6784 lt_cv_deplibs_check_method=pass_all
6789 lt_cv_deplibs_check_method=pass_all
6792 hpux10.20* | hpux11*)
6793 lt_cv_file_magic_cmd=/usr/bin/file
6796 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6797 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6800 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]'
6801 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6804 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6805 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6811 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6812 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6815 irix5* | irix6* | nonstopux*)
6817 *-32|*"-32 ") libmagic=32-bit;;
6818 *-n32|*"-n32 ") libmagic=N32;;
6819 *-64|*"-64 ") libmagic=64-bit;;
6820 *) libmagic=never-match;;
6822 lt_cv_deplibs_check_method=pass_all
6825 # This must be glibc/ELF.
6826 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6827 lt_cv_deplibs_check_method=pass_all
6830 netbsd* | netbsdelf*-gnu)
6831 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6840 lt_cv_file_magic_cmd=/usr/bin/file
6841 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6845 lt_cv_deplibs_check_method=pass_all
6849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6850 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6856 osf3* | osf4* | osf5*)
6857 lt_cv_deplibs_check_method=pass_all
6861 lt_cv_deplibs_check_method=pass_all
6865 lt_cv_deplibs_check_method=pass_all
6868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6869 lt_cv_deplibs_check_method=pass_all
6873 case $host_vendor in
6875 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]'
6876 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6879 lt_cv_deplibs_check_method=pass_all
6882 lt_cv_file_magic_cmd='/bin/file'
6883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6886 lt_cv_file_magic_cmd='/bin/file'
6887 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6888 lt_cv_file_magic_test_file=/lib/libc.so
6891 lt_cv_deplibs_check_method=pass_all
6894 lt_cv_deplibs_check_method=pass_all
6900 lt_cv_deplibs_check_method=pass_all
6903 lt_cv_deplibs_check_method=pass_all
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6909 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6913 if test "$build" = "$host"; then
6916 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6919 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6925 file_magic_cmd=$lt_cv_file_magic_cmd
6926 deplibs_check_method=$lt_cv_deplibs_check_method
6927 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6950 if test -n "$ac_tool_prefix"; then
6951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if ${ac_cv_prog_DLLTOOL+:} false; then :
6956 $as_echo_n "(cached) " >&6
6958 if test -n "$DLLTOOL"; then
6959 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 DLLTOOL=$ac_cv_prog_DLLTOOL
6979 if test -n "$DLLTOOL"; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6981 $as_echo "$DLLTOOL" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6989 if test -z "$ac_cv_prog_DLLTOOL"; then
6990 ac_ct_DLLTOOL=$DLLTOOL
6991 # Extract the first word of "dlltool", so it can be a program name with args.
6992 set dummy dlltool; ac_word=$2
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6994 $as_echo_n "checking for $ac_word... " >&6; }
6995 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6996 $as_echo_n "(cached) " >&6
6998 if test -n "$ac_ct_DLLTOOL"; then
6999 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7008 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7019 if test -n "$ac_ct_DLLTOOL"; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7021 $as_echo "$ac_ct_DLLTOOL" >&6; }
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7024 $as_echo "no" >&6; }
7027 if test "x$ac_ct_DLLTOOL" = x; then
7030 case $cross_compiling:$ac_tool_warned in
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7034 ac_tool_warned=yes ;;
7036 DLLTOOL=$ac_ct_DLLTOOL
7039 DLLTOOL="$ac_cv_prog_DLLTOOL"
7042 test -z "$DLLTOOL" && DLLTOOL=dlltool
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7054 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7055 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 lt_cv_sharedlib_from_linklib_cmd='unknown'
7061 cygwin* | mingw* | pw32* | cegcc*)
7062 # two different shell functions defined in ltmain.sh;
7063 # decide which one to use based on capabilities of $DLLTOOL
7064 case `$DLLTOOL --help 2>&1` in
7065 *--identify-strict*)
7066 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7069 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7074 # fallback: assume linklib IS sharedlib
7075 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7081 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7082 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7083 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7091 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7095 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_AR+:} false; then :
7099 $as_echo_n "(cached) " >&6
7101 if test -n "$AR"; then
7102 ac_cv_prog_AR="$AR" # Let the user override the test.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 if test -n "$AR"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7124 $as_echo "$AR" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7131 test -n "$AR" && break
7134 if test -z "$AR"; then
7138 # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7143 $as_echo_n "(cached) " >&6
7145 if test -n "$ac_ct_AR"; then
7146 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7155 ac_cv_prog_ac_ct_AR="$ac_prog"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7166 if test -n "$ac_ct_AR"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7168 $as_echo "$ac_ct_AR" >&6; }
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7175 test -n "$ac_ct_AR" && break
7178 if test "x$ac_ct_AR" = x; then
7181 case $cross_compiling:$ac_tool_warned in
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7205 $as_echo_n "checking for archiver @FILE support... " >&6; }
7206 if ${lt_cv_ar_at_file+:} false; then :
7207 $as_echo_n "(cached) " >&6
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7221 if ac_fn_c_try_compile "$LINENO"; then :
7222 echo conftest.$ac_objext > conftest.lst
7223 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7225 (eval $lt_ar_try) 2>&5
7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; }
7229 if test 0 -eq "$ac_status"; then
7230 # Ensure the archiver fails upon bogus file names.
7231 rm -f conftest.$ac_objext libconftest.a
7232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7233 (eval $lt_ar_try) 2>&5
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }
7237 if test 0 -ne "$ac_status"; then
7241 rm -f conftest.* libconftest.a
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7248 $as_echo "$lt_cv_ar_at_file" >&6; }
7250 if test no = "$lt_cv_ar_at_file"; then
7253 archiver_list_spec=$lt_cv_ar_at_file
7262 if test -n "$ac_tool_prefix"; then
7263 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}strip; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if ${ac_cv_prog_STRIP+:} false; then :
7268 $as_echo_n "(cached) " >&6
7270 if test -n "$STRIP"; then
7271 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7280 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7290 STRIP=$ac_cv_prog_STRIP
7291 if test -n "$STRIP"; then
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7293 $as_echo "$STRIP" >&6; }
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7301 if test -z "$ac_cv_prog_STRIP"; then
7303 # Extract the first word of "strip", so it can be a program name with args.
7304 set dummy strip; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7308 $as_echo_n "(cached) " >&6
7310 if test -n "$ac_ct_STRIP"; then
7311 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_ac_ct_STRIP="strip"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7331 if test -n "$ac_ct_STRIP"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7333 $as_echo "$ac_ct_STRIP" >&6; }
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7339 if test "x$ac_ct_STRIP" = x; then
7342 case $cross_compiling:$ac_tool_warned in
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7351 STRIP="$ac_cv_prog_STRIP"
7354 test -z "$STRIP" && STRIP=:
7361 if test -n "$ac_tool_prefix"; then
7362 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_RANLIB+:} false; then :
7367 $as_echo_n "(cached) " >&6
7369 if test -n "$RANLIB"; then
7370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 RANLIB=$ac_cv_prog_RANLIB
7390 if test -n "$RANLIB"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7392 $as_echo "$RANLIB" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7400 if test -z "$ac_cv_prog_RANLIB"; then
7401 ac_ct_RANLIB=$RANLIB
7402 # Extract the first word of "ranlib", so it can be a program name with args.
7403 set dummy ranlib; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7407 $as_echo_n "(cached) " >&6
7409 if test -n "$ac_ct_RANLIB"; then
7410 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_ac_ct_RANLIB="ranlib"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7430 if test -n "$ac_ct_RANLIB"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7432 $as_echo "$ac_ct_RANLIB" >&6; }
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7438 if test "x$ac_ct_RANLIB" = x; then
7441 case $cross_compiling:$ac_tool_warned in
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445 ac_tool_warned=yes ;;
7447 RANLIB=$ac_ct_RANLIB
7450 RANLIB="$ac_cv_prog_RANLIB"
7453 test -z "$RANLIB" && RANLIB=:
7460 # Determine commands to create old-style static archives.
7461 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7462 old_postinstall_cmds='chmod 644 $oldlib'
7463 old_postuninstall_cmds=
7465 if test -n "$RANLIB"; then
7468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7471 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7474 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7479 lock_old_archive_extraction=yes ;;
7481 lock_old_archive_extraction=no ;;
7522 # If no C compiler was specified, use CC.
7525 # If no C compiler flags were specified, use CFLAGS.
7526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7528 # Allow CC to be a program name with arguments.
7532 # Check for command to grab the raw symbol name followed by C symbol from nm.
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7534 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7535 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7536 $as_echo_n "(cached) " >&6
7539 # These are sane defaults that work on at least a few old systems.
7540 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7542 # Character class describing NM global symbol codes.
7543 symcode='[BCDEGRST]'
7545 # Regexp to match symbols that can be accessed directly from C.
7546 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7548 # Define system-specific variables.
7553 cygwin* | mingw* | pw32* | cegcc*)
7554 symcode='[ABCDGISTW]'
7557 if test ia64 = "$host_cpu"; then
7558 symcode='[ABCDEGRST]'
7562 symcode='[BCDEGRST]'
7565 symcode='[BCDEGQRST]'
7576 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7584 # If we're using GNU nm, then use its standard symbol codes.
7585 case `$NM -V 2>&1` in
7586 *GNU* | *'with BFD'*)
7587 symcode='[ABCDGIRSTW]' ;;
7590 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7591 # Gets list of data symbols to import.
7592 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7593 # Adjust the below global symbol transforms to fixup imported variables.
7594 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7595 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7596 lt_c_name_lib_hook="\
7597 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7598 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7600 # Disable hooks by default.
7601 lt_cv_sys_global_symbol_to_import=
7607 # Transform an extracted symbol line into a proper C declaration.
7608 # Some systems (esp. on ia64) link data and code symbols differently,
7609 # so use this general approach.
7610 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7612 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7613 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7615 # Transform an extracted symbol line into symbol name and symbol address
7616 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7618 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7619 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7621 # Transform an extracted symbol line into symbol name with lib prefix and
7623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7624 $lt_c_name_lib_hook\
7625 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7626 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7627 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7629 # Handle CRLF in mingw tool chain
7633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7637 # Try without a prefix underscore, then with it.
7638 for ac_symprfx in "" "_"; do
7640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7641 symxfrm="\\1 $ac_symprfx\\2 \\2"
7643 # Write the raw and C identifiers.
7644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7645 # Fake it for dumpbin and say T for any non-static function,
7646 # D for any global variable and I for any imported variable.
7647 # Also find C++ and __fastcall symbols from MSVC++,
7648 # which start with @ or ?.
7649 lt_cv_sys_global_symbol_pipe="$AWK '"\
7650 " {last_section=section; section=\$ 3};"\
7651 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7652 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7653 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7654 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7655 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7656 " \$ 0!~/External *\|/{next};"\
7657 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7658 " {if(hide[section]) next};"\
7659 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7660 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7661 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7662 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7663 " ' prfx=^$ac_symprfx"
7665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7667 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7669 # Check to see that the pipe works correctly.
7673 cat > conftest.$ac_ext <<_LT_EOF
7678 void nm_test_func(void);
7679 void nm_test_func(void){}
7683 int main(){nm_test_var='a';nm_test_func();return(0);}
7686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7687 (eval $ac_compile) 2>&5
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; }; then
7691 # Now try to grab the symbols.
7693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697 test $ac_status = 0; } && test -s "$nlist"; then
7698 # Try sorting and uniquifying the output.
7699 if sort "$nlist" | uniq > "$nlist"T; then
7700 mv -f "$nlist"T "$nlist"
7705 # Make sure that we snagged all the symbols we need.
7706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7708 cat <<_LT_EOF > conftest.$ac_ext
7709 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7710 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7711 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7712 relocations are performed -- see ld's documentation on pseudo-relocs. */
7713 # define LT_DLSYM_CONST
7714 #elif defined __osf__
7715 /* This system does not cope well with relocations in const data. */
7716 # define LT_DLSYM_CONST
7718 # define LT_DLSYM_CONST const
7726 # Now generate the symbol file.
7727 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7729 cat <<_LT_EOF >> conftest.$ac_ext
7731 /* The mapping between symbol names and symbols. */
7732 LT_DLSYM_CONST struct {
7736 lt__PROGRAM__LTX_preloaded_symbols[] =
7738 { "@PROGRAM@", (void *) 0 },
7740 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7741 cat <<\_LT_EOF >> conftest.$ac_ext
7745 /* This works around a problem in FreeBSD linker */
7746 #ifdef FREEBSD_WORKAROUND
7747 static const void *lt_preloaded_setup() {
7748 return lt__PROGRAM__LTX_preloaded_symbols;
7756 # Now try linking the two files.
7757 mv conftest.$ac_objext conftstm.$ac_objext
7758 lt_globsym_save_LIBS=$LIBS
7759 lt_globsym_save_CFLAGS=$CFLAGS
7760 LIBS=conftstm.$ac_objext
7761 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7763 (eval $ac_link) 2>&5
7765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7766 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7769 LIBS=$lt_globsym_save_LIBS
7770 CFLAGS=$lt_globsym_save_CFLAGS
7772 echo "cannot find nm_test_func in $nlist" >&5
7775 echo "cannot find nm_test_var in $nlist" >&5
7778 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7781 echo "$progname: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 rm -rf conftest* conftst*
7786 # Do not use the global_symbol_pipe unless it works.
7787 if test yes = "$pipe_works"; then
7790 lt_cv_sys_global_symbol_pipe=
7796 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7797 lt_cv_sys_global_symbol_to_cdecl=
7799 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7801 $as_echo "failed" >&6; }
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7804 $as_echo "ok" >&6; }
7807 # Response file support.
7808 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7809 nm_file_list_spec='@'
7810 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7811 nm_file_list_spec='@'
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7851 $as_echo_n "checking for sysroot... " >&6; }
7853 # Check whether --with-sysroot was given.
7854 if test "${with_sysroot+set}" = set; then :
7855 withval=$with_sysroot;
7862 case $with_sysroot in #(
7864 if test yes = "$GCC"; then
7865 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7869 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7875 $as_echo "$with_sysroot" >&6; }
7876 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7881 $as_echo "${lt_sysroot:-no}" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7888 $as_echo_n "checking for a working dd... " >&6; }
7889 if ${ac_cv_path_lt_DD+:} false; then :
7890 $as_echo_n "(cached) " >&6
7892 printf 0123456789abcdef0123456789abcdef >conftest.i
7893 cat conftest.i conftest.i >conftest2.i
7895 if test -z "$lt_DD"; then
7896 ac_path_lt_DD_found=false
7897 # Loop through the user's path and test for each of PROGNAME-LIST
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 test -z "$as_dir" && as_dir=.
7903 for ac_prog in dd; do
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7906 as_fn_executable_p "$ac_path_lt_DD" || continue
7907 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7908 cmp -s conftest.i conftest.out \
7909 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7911 $ac_path_lt_DD_found && break 3
7916 if test -z "$ac_cv_path_lt_DD"; then
7920 ac_cv_path_lt_DD=$lt_DD
7923 rm -f conftest.i conftest2.i conftest.out
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7926 $as_echo "$ac_cv_path_lt_DD" >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7930 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7931 if ${lt_cv_truncate_bin+:} false; then :
7932 $as_echo_n "(cached) " >&6
7934 printf 0123456789abcdef0123456789abcdef >conftest.i
7935 cat conftest.i conftest.i >conftest2.i
7937 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7938 cmp -s conftest.i conftest.out \
7939 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7941 rm -f conftest.i conftest2.i conftest.out
7942 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7945 $as_echo "$lt_cv_truncate_bin" >&6; }
7953 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7956 for cc_temp in $*""; do
7958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7964 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7967 # Check whether --enable-libtool-lock was given.
7968 if test "${enable_libtool_lock+set}" = set; then :
7969 enableval=$enable_libtool_lock;
7972 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7974 # Some flags need to be propagated to the compiler or linker for good
7978 # Find out what ABI is being produced by ac_compile, and set mode
7979 # options accordingly.
7980 echo 'int i;' > conftest.$ac_ext
7981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7982 (eval $ac_compile) 2>&5
7984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7985 test $ac_status = 0; }; then
7986 case `/usr/bin/file conftest.$ac_objext` in
7998 # Find out what ABI is being produced by ac_compile, and set linker
7999 # options accordingly.
8000 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8002 (eval $ac_compile) 2>&5
8004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8005 test $ac_status = 0; }; then
8006 if test yes = "$lt_cv_prog_gnu_ld"; then
8007 case `/usr/bin/file conftest.$ac_objext` in
8009 LD="${LD-ld} -melf32bsmip"
8012 LD="${LD-ld} -melf32bmipn32"
8015 LD="${LD-ld} -melf64bmip"
8019 case `/usr/bin/file conftest.$ac_objext` in
8036 # Find out what ABI is being produced by ac_compile, and set linker
8037 # options accordingly.
8038 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8040 (eval $ac_compile) 2>&5
8042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8043 test $ac_status = 0; }; then
8045 case `/usr/bin/file conftest.$ac_objext` in
8053 case `/usr/bin/file conftest.$ac_objext` in
8055 emul="${emul}btsmip"
8058 emul="${emul}ltsmip"
8061 case `/usr/bin/file conftest.$ac_objext` in
8066 LD="${LD-ld} -m $emul"
8071 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8072 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8073 # Find out what ABI is being produced by ac_compile, and set linker
8074 # options accordingly. Note that the listed cases only cover the
8075 # situations where additional linker options are needed (such as when
8076 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8077 # vice versa); the common cases where no linker options are needed do
8078 # not appear in the list.
8079 echo 'int i;' > conftest.$ac_ext
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8081 (eval $ac_compile) 2>&5
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }; then
8085 case `/usr/bin/file conftest.o` in
8088 x86_64-*kfreebsd*-gnu)
8089 LD="${LD-ld} -m elf_i386_fbsd"
8092 case `/usr/bin/file conftest.o` in
8094 LD="${LD-ld} -m elf32_x86_64"
8097 LD="${LD-ld} -m elf_i386"
8101 powerpc64le-*linux*)
8102 LD="${LD-ld} -m elf32lppclinux"
8105 LD="${LD-ld} -m elf32ppclinux"
8108 LD="${LD-ld} -m elf_s390"
8111 LD="${LD-ld} -m elf32_sparc"
8117 x86_64-*kfreebsd*-gnu)
8118 LD="${LD-ld} -m elf_x86_64_fbsd"
8121 LD="${LD-ld} -m elf_x86_64"
8124 LD="${LD-ld} -m elf64lppc"
8127 LD="${LD-ld} -m elf64ppc"
8129 s390*-*linux*|s390*-*tpf*)
8130 LD="${LD-ld} -m elf64_s390"
8133 LD="${LD-ld} -m elf64_sparc"
8143 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8145 CFLAGS="$CFLAGS -belf"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8147 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8148 if ${lt_cv_cc_needs_belf+:} false; then :
8149 $as_echo_n "(cached) " >&6
8152 ac_cpp='$CPP $CPPFLAGS'
8153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h. */
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 lt_cv_cc_needs_belf=yes
8171 lt_cv_cc_needs_belf=no
8173 rm -f core conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8176 ac_cpp='$CPP $CPPFLAGS'
8177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8183 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8184 if test yes != "$lt_cv_cc_needs_belf"; then
8185 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8190 # Find out what ABI is being produced by ac_compile, and set linker
8191 # options accordingly.
8192 echo 'int i;' > conftest.$ac_ext
8193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8194 (eval $ac_compile) 2>&5
8196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8197 test $ac_status = 0; }; then
8198 case `/usr/bin/file conftest.o` in
8200 case $lt_cv_prog_gnu_ld in
8203 i?86-*-solaris*|x86_64-*-solaris*)
8204 LD="${LD-ld} -m elf_x86_64"
8207 LD="${LD-ld} -m elf64_sparc"
8210 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8211 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8216 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8228 need_locks=$enable_libtool_lock
8230 if test -n "$ac_tool_prefix"; then
8231 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8232 set dummy ${ac_tool_prefix}mt; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8236 $as_echo_n "(cached) " >&6
8238 if test -n "$MANIFEST_TOOL"; then
8239 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8258 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8259 if test -n "$MANIFEST_TOOL"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8261 $as_echo "$MANIFEST_TOOL" >&6; }
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8269 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8270 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8271 # Extract the first word of "mt", so it can be a program name with args.
8272 set dummy mt; ac_word=$2
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274 $as_echo_n "checking for $ac_word... " >&6; }
8275 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8276 $as_echo_n "(cached) " >&6
8278 if test -n "$ac_ct_MANIFEST_TOOL"; then
8279 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8298 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8299 if test -n "$ac_ct_MANIFEST_TOOL"; then
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8301 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8307 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8310 case $cross_compiling:$ac_tool_warned in
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8314 ac_tool_warned=yes ;;
8316 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8319 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8322 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8324 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8325 if ${lt_cv_path_mainfest_tool+:} false; then :
8326 $as_echo_n "(cached) " >&6
8328 lt_cv_path_mainfest_tool=no
8329 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8330 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8331 cat conftest.err >&5
8332 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8333 lt_cv_path_mainfest_tool=yes
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8338 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8339 if test yes != "$lt_cv_path_mainfest_tool"; then
8349 rhapsody* | darwin*)
8350 if test -n "$ac_tool_prefix"; then
8351 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8352 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354 $as_echo_n "checking for $ac_word... " >&6; }
8355 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8356 $as_echo_n "(cached) " >&6
8358 if test -n "$DSYMUTIL"; then
8359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 test -z "$as_dir" && as_dir=.
8366 for ac_exec_ext in '' $ac_executable_extensions; do
8367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8368 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8379 if test -n "$DSYMUTIL"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8381 $as_echo "$DSYMUTIL" >&6; }
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8389 if test -z "$ac_cv_prog_DSYMUTIL"; then
8390 ac_ct_DSYMUTIL=$DSYMUTIL
8391 # Extract the first word of "dsymutil", so it can be a program name with args.
8392 set dummy dsymutil; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8396 $as_echo_n "(cached) " >&6
8398 if test -n "$ac_ct_DSYMUTIL"; then
8399 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8408 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8419 if test -n "$ac_ct_DSYMUTIL"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8421 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8427 if test "x$ac_ct_DSYMUTIL" = x; then
8430 case $cross_compiling:$ac_tool_warned in
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8434 ac_tool_warned=yes ;;
8436 DSYMUTIL=$ac_ct_DSYMUTIL
8439 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8442 if test -n "$ac_tool_prefix"; then
8443 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8444 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if ${ac_cv_prog_NMEDIT+:} false; then :
8448 $as_echo_n "(cached) " >&6
8450 if test -n "$NMEDIT"; then
8451 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 test -z "$as_dir" && as_dir=.
8458 for ac_exec_ext in '' $ac_executable_extensions; do
8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8460 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 NMEDIT=$ac_cv_prog_NMEDIT
8471 if test -n "$NMEDIT"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8473 $as_echo "$NMEDIT" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8481 if test -z "$ac_cv_prog_NMEDIT"; then
8482 ac_ct_NMEDIT=$NMEDIT
8483 # Extract the first word of "nmedit", so it can be a program name with args.
8484 set dummy nmedit; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8488 $as_echo_n "(cached) " >&6
8490 if test -n "$ac_ct_NMEDIT"; then
8491 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 test -z "$as_dir" && as_dir=.
8498 for ac_exec_ext in '' $ac_executable_extensions; do
8499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8500 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8511 if test -n "$ac_ct_NMEDIT"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8513 $as_echo "$ac_ct_NMEDIT" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8519 if test "x$ac_ct_NMEDIT" = x; then
8522 case $cross_compiling:$ac_tool_warned in
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526 ac_tool_warned=yes ;;
8528 NMEDIT=$ac_ct_NMEDIT
8531 NMEDIT="$ac_cv_prog_NMEDIT"
8534 if test -n "$ac_tool_prefix"; then
8535 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8536 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8538 $as_echo_n "checking for $ac_word... " >&6; }
8539 if ${ac_cv_prog_LIPO+:} false; then :
8540 $as_echo_n "(cached) " >&6
8542 if test -n "$LIPO"; then
8543 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 test -z "$as_dir" && as_dir=.
8550 for ac_exec_ext in '' $ac_executable_extensions; do
8551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8552 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 LIPO=$ac_cv_prog_LIPO
8563 if test -n "$LIPO"; then
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8565 $as_echo "$LIPO" >&6; }
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8568 $as_echo "no" >&6; }
8573 if test -z "$ac_cv_prog_LIPO"; then
8575 # Extract the first word of "lipo", so it can be a program name with args.
8576 set dummy lipo; ac_word=$2
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578 $as_echo_n "checking for $ac_word... " >&6; }
8579 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8580 $as_echo_n "(cached) " >&6
8582 if test -n "$ac_ct_LIPO"; then
8583 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_LIPO="lipo"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8603 if test -n "$ac_ct_LIPO"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8605 $as_echo "$ac_ct_LIPO" >&6; }
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 $as_echo "no" >&6; }
8611 if test "x$ac_ct_LIPO" = x; then
8614 case $cross_compiling:$ac_tool_warned in
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8623 LIPO="$ac_cv_prog_LIPO"
8626 if test -n "$ac_tool_prefix"; then
8627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8628 set dummy ${ac_tool_prefix}otool; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_prog_OTOOL+:} false; then :
8632 $as_echo_n "(cached) " >&6
8634 if test -n "$OTOOL"; then
8635 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 test -z "$as_dir" && as_dir=.
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8644 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 OTOOL=$ac_cv_prog_OTOOL
8655 if test -n "$OTOOL"; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8657 $as_echo "$OTOOL" >&6; }
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8665 if test -z "$ac_cv_prog_OTOOL"; then
8667 # Extract the first word of "otool", so it can be a program name with args.
8668 set dummy otool; ac_word=$2
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8670 $as_echo_n "checking for $ac_word... " >&6; }
8671 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 if test -n "$ac_ct_OTOOL"; then
8675 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 test -z "$as_dir" && as_dir=.
8682 for ac_exec_ext in '' $ac_executable_extensions; do
8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8684 ac_cv_prog_ac_ct_OTOOL="otool"
8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8694 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8695 if test -n "$ac_ct_OTOOL"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8697 $as_echo "$ac_ct_OTOOL" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8703 if test "x$ac_ct_OTOOL" = x; then
8706 case $cross_compiling:$ac_tool_warned in
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8710 ac_tool_warned=yes ;;
8715 OTOOL="$ac_cv_prog_OTOOL"
8718 if test -n "$ac_tool_prefix"; then
8719 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8720 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722 $as_echo_n "checking for $ac_word... " >&6; }
8723 if ${ac_cv_prog_OTOOL64+:} false; then :
8724 $as_echo_n "(cached) " >&6
8726 if test -n "$OTOOL64"; then
8727 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 test -z "$as_dir" && as_dir=.
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8736 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 OTOOL64=$ac_cv_prog_OTOOL64
8747 if test -n "$OTOOL64"; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8749 $as_echo "$OTOOL64" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752 $as_echo "no" >&6; }
8757 if test -z "$ac_cv_prog_OTOOL64"; then
8758 ac_ct_OTOOL64=$OTOOL64
8759 # Extract the first word of "otool64", so it can be a program name with args.
8760 set dummy otool64; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8764 $as_echo_n "(cached) " >&6
8766 if test -n "$ac_ct_OTOOL64"; then
8767 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8776 ac_cv_prog_ac_ct_OTOOL64="otool64"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8786 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8787 if test -n "$ac_ct_OTOOL64"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8789 $as_echo "$ac_ct_OTOOL64" >&6; }
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792 $as_echo "no" >&6; }
8795 if test "x$ac_ct_OTOOL64" = x; then
8798 case $cross_compiling:$ac_tool_warned in
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8802 ac_tool_warned=yes ;;
8804 OTOOL64=$ac_ct_OTOOL64
8807 OTOOL64="$ac_cv_prog_OTOOL64"
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8837 $as_echo_n "checking for -single_module linker flag... " >&6; }
8838 if ${lt_cv_apple_cc_single_mod+:} false; then :
8839 $as_echo_n "(cached) " >&6
8841 lt_cv_apple_cc_single_mod=no
8842 if test -z "$LT_MULTI_MODULE"; then
8843 # By default we will add the -single_module flag. You can override
8844 # by either setting the environment variable LT_MULTI_MODULE
8845 # non-empty at configure time, or by adding -multi_module to the
8847 rm -rf libconftest.dylib*
8848 echo "int foo(void){return 1;}" > conftest.c
8849 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8850 -dynamiclib -Wl,-single_module conftest.c" >&5
8851 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8852 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8854 # If there is a non-empty error log, and "single_module"
8855 # appears in it, assume the flag caused a linker warning
8856 if test -s conftest.err && $GREP single_module conftest.err; then
8857 cat conftest.err >&5
8858 # Otherwise, if the output was created with a 0 exit code from
8859 # the compiler, it worked.
8860 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8861 lt_cv_apple_cc_single_mod=yes
8863 cat conftest.err >&5
8865 rm -rf libconftest.dylib*
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8870 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8873 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8874 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8875 $as_echo_n "(cached) " >&6
8877 lt_cv_ld_exported_symbols_list=no
8878 save_LDFLAGS=$LDFLAGS
8879 echo "_main" > conftest.sym
8880 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8892 if ac_fn_c_try_link "$LINENO"; then :
8893 lt_cv_ld_exported_symbols_list=yes
8895 lt_cv_ld_exported_symbols_list=no
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 LDFLAGS=$save_LDFLAGS
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8903 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8906 $as_echo_n "checking for -force_load linker flag... " >&6; }
8907 if ${lt_cv_ld_force_load+:} false; then :
8908 $as_echo_n "(cached) " >&6
8910 lt_cv_ld_force_load=no
8911 cat > conftest.c << _LT_EOF
8912 int forced_loaded() { return 2;}
8914 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8915 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8916 echo "$AR cru libconftest.a conftest.o" >&5
8917 $AR cru libconftest.a conftest.o 2>&5
8918 echo "$RANLIB libconftest.a" >&5
8919 $RANLIB libconftest.a 2>&5
8920 cat > conftest.c << _LT_EOF
8921 int main() { return 0;}
8923 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8924 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8926 if test -s conftest.err && $GREP force_load conftest.err; then
8927 cat conftest.err >&5
8928 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8929 lt_cv_ld_force_load=yes
8931 cat conftest.err >&5
8933 rm -f conftest.err libconftest.a conftest conftest.c
8934 rm -rf conftest.dSYM
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8938 $as_echo "$lt_cv_ld_force_load" >&6; }
8940 rhapsody* | darwin1.[012])
8941 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8943 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8944 darwin*) # darwin 5.x on
8945 # if running on 10.5 or later, the deployment target defaults
8946 # to the OS version, if on x86, and 10.4, the deployment
8947 # target defaults to 10.4. Don't you love it?
8948 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8949 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8950 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8952 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8954 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8958 if test yes = "$lt_cv_apple_cc_single_mod"; then
8959 _lt_dar_single_mod='$single_module'
8961 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8962 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8964 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8966 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8967 _lt_dsymutil='~$DSYMUTIL $lib || :'
8974 # func_munge_path_list VARIABLE PATH
8975 # -----------------------------------
8976 # VARIABLE is name of variable containing _space_ separated list of
8977 # directories to be munged by the contents of PATH, which is string
8980 # string "DIR[ DIR]" will be prepended to VARIABLE
8982 # string "DIR[ DIR]" will be appended to VARIABLE
8983 # "DIRP[:DIRP]::[DIRA:]DIRA"
8984 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8985 # "DIRA[ DIRA]" will be appended to VARIABLE
8987 # VARIABLE will be replaced by "DIR[ DIR]"
8988 func_munge_path_list ()
8994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8997 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9000 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9001 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9004 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9009 for ac_header in dlfcn.h
9011 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9013 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9014 cat >>confdefs.h <<_ACEOF
9015 #define HAVE_DLFCN_H 1
9036 # Check whether --enable-shared was given.
9037 if test "${enable_shared+set}" = set; then :
9038 enableval=$enable_shared; p=${PACKAGE-default}
9040 yes) enable_shared=yes ;;
9041 no) enable_shared=no ;;
9044 # Look at the argument we got. We use all the common list separators.
9045 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9046 for pkg in $enableval; do
9048 if test "X$pkg" = "X$p"; then
9069 # Check whether --with-pic was given.
9070 if test "${with_pic+set}" = set; then :
9071 withval=$with_pic; lt_p=${PACKAGE-default}
9073 yes|no) pic_mode=$withval ;;
9076 # Look at the argument we got. We use all the common list separators.
9077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9078 for lt_pkg in $withval; do
9080 if test "X$lt_pkg" = "X$lt_p"; then
9098 # Check whether --enable-fast-install was given.
9099 if test "${enable_fast_install+set}" = set; then :
9100 enableval=$enable_fast_install; p=${PACKAGE-default}
9102 yes) enable_fast_install=yes ;;
9103 no) enable_fast_install=no ;;
9105 enable_fast_install=no
9106 # Look at the argument we got. We use all the common list separators.
9107 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9108 for pkg in $enableval; do
9110 if test "X$pkg" = "X$p"; then
9111 enable_fast_install=yes
9118 enable_fast_install=yes
9128 shared_archive_member_spec=
9129 case $host,$enable_shared in
9130 power*-*-aix[5-9]*,yes)
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9132 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9134 # Check whether --with-aix-soname was given.
9135 if test "${with_aix_soname+set}" = set; then :
9136 withval=$with_aix_soname; case $withval in
9140 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9143 lt_cv_with_aix_soname=$with_aix_soname
9145 if ${lt_cv_with_aix_soname+:} false; then :
9146 $as_echo_n "(cached) " >&6
9148 lt_cv_with_aix_soname=aix
9151 with_aix_soname=$lt_cv_with_aix_soname
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9155 $as_echo "$with_aix_soname" >&6; }
9156 if test aix != "$with_aix_soname"; then
9157 # For the AIX way of multilib, we name the shared archive member
9158 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9159 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9160 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9161 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9162 if test 64 = "${OBJECT_MODE-32}"; then
9163 shared_archive_member_spec=shr_64
9165 shared_archive_member_spec=shr
9183 # This can be used to rebuild libtool when needed
9184 LIBTOOL_DEPS=$ltmain
9186 # Always use our own libtool.
9187 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9218 test -z "$LN_S" && LN_S="ln -s"
9233 if test -n "${ZSH_VERSION+set}"; then
9234 setopt NO_GLOB_SUBST
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9238 $as_echo_n "checking for objdir... " >&6; }
9239 if ${lt_cv_objdir+:} false; then :
9240 $as_echo_n "(cached) " >&6
9242 rm -f .libs 2>/dev/null
9243 mkdir .libs 2>/dev/null
9244 if test -d .libs; then
9247 # MS-DOS does not allow filenames that begin with a dot.
9250 rmdir .libs 2>/dev/null
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9253 $as_echo "$lt_cv_objdir" >&6; }
9254 objdir=$lt_cv_objdir
9260 cat >>confdefs.h <<_ACEOF
9261 #define LT_OBJDIR "$lt_cv_objdir/"
9269 # AIX sometimes has problems with the GCC collect2 program. For some
9270 # reason, if we set the COLLECT_NAMES environment variable, the problems
9271 # vanish in a puff of smoke.
9272 if test set != "${COLLECT_NAMES+set}"; then
9274 export COLLECT_NAMES
9281 can_build_shared=yes
9283 # All known linkers require a '.a' archive for static linking (except MSVC,
9284 # which needs '.lib').
9287 with_gnu_ld=$lt_cv_prog_gnu_ld
9292 # Set sane defaults for various variables
9293 test -z "$CC" && CC=cc
9294 test -z "$LTCC" && LTCC=$CC
9295 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9296 test -z "$LD" && LD=ld
9297 test -z "$ac_objext" && ac_objext=o
9299 func_cc_basename $compiler
9300 cc_basename=$func_cc_basename_result
9303 # Only perform the check for file, if the check method requires it
9304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9305 case $deplibs_check_method in
9307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9310 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9311 $as_echo_n "(cached) " >&6
9315 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9318 lt_save_MAGIC_CMD=$MAGIC_CMD
9319 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9321 for ac_dir in $ac_dummy; do
9323 test -z "$ac_dir" && ac_dir=.
9324 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9325 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9326 if test -n "$file_magic_test_file"; then
9327 case $deplibs_check_method in
9329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9330 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9332 $EGREP "$file_magic_regex" > /dev/null; then
9337 *** Warning: the command libtool uses to detect shared libraries,
9338 *** $file_magic_cmd, produces output that libtool cannot recognize.
9339 *** The result is that libtool may fail to recognize shared libraries
9340 *** as such. This will affect the creation of libtool libraries that
9341 *** depend on shared libraries, but programs linked with such libtool
9342 *** libraries will work regardless of this problem. Nevertheless, you
9343 *** may want to report the problem to your system manager and/or to
9344 *** bug-libtool@gnu.org
9354 MAGIC_CMD=$lt_save_MAGIC_CMD
9359 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9360 if test -n "$MAGIC_CMD"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9362 $as_echo "$MAGIC_CMD" >&6; }
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9372 if test -z "$lt_cv_path_MAGIC_CMD"; then
9373 if test -n "$ac_tool_prefix"; then
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9375 $as_echo_n "checking for file... " >&6; }
9376 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9377 $as_echo_n "(cached) " >&6
9381 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9384 lt_save_MAGIC_CMD=$MAGIC_CMD
9385 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9386 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9387 for ac_dir in $ac_dummy; do
9389 test -z "$ac_dir" && ac_dir=.
9390 if test -f "$ac_dir/file"; then
9391 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9392 if test -n "$file_magic_test_file"; then
9393 case $deplibs_check_method in
9395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9396 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9398 $EGREP "$file_magic_regex" > /dev/null; then
9403 *** Warning: the command libtool uses to detect shared libraries,
9404 *** $file_magic_cmd, produces output that libtool cannot recognize.
9405 *** The result is that libtool may fail to recognize shared libraries
9406 *** as such. This will affect the creation of libtool libraries that
9407 *** depend on shared libraries, but programs linked with such libtool
9408 *** libraries will work regardless of this problem. Nevertheless, you
9409 *** may want to report the problem to your system manager and/or to
9410 *** bug-libtool@gnu.org
9420 MAGIC_CMD=$lt_save_MAGIC_CMD
9425 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9426 if test -n "$MAGIC_CMD"; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9428 $as_echo "$MAGIC_CMD" >&6; }
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9431 $as_echo "no" >&6; }
9444 # Use C for the default configuration in the libtool script
9448 ac_cpp='$CPP $CPPFLAGS'
9449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9454 # Source file extension for C test sources.
9457 # Object file extension for compiled C test sources.
9461 # Code to be used in simple compile tests
9462 lt_simple_compile_test_code="int some_variable = 0;"
9464 # Code to be used in simple link tests
9465 lt_simple_link_test_code='int main(){return(0);}'
9473 # If no C compiler was specified, use CC.
9476 # If no C compiler flags were specified, use CFLAGS.
9477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9479 # Allow CC to be a program name with arguments.
9482 # Save the default compiler, since it gets overwritten when the other
9483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9484 compiler_DEFAULT=$CC
9486 # save warnings/boilerplate of simple test code
9487 ac_outfile=conftest.$ac_objext
9488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9490 _lt_compiler_boilerplate=`cat conftest.err`
9493 ac_outfile=conftest.$ac_objext
9494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9496 _lt_linker_boilerplate=`cat conftest.err`
9501 ## There is no encapsulation within the following macros, do not change
9502 ## the running order or otherwise move them around unless you know exactly
9503 ## what you are doing...
9504 if test -n "$compiler"; then
9506 lt_prog_compiler_no_builtin_flag=
9508 if test yes = "$GCC"; then
9509 case $cc_basename in
9511 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9513 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9517 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9518 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9519 $as_echo_n "(cached) " >&6
9521 lt_cv_prog_compiler_rtti_exceptions=no
9522 ac_outfile=conftest.$ac_objext
9523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9524 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9525 # Insert the option either (1) after the last *FLAGS variable, or
9526 # (2) before a word containing "conftest.", or (3) at the end.
9527 # Note that $ac_compile itself does not contain backslashes and begins
9528 # with a dollar sign (not a hyphen), so the echo should work correctly.
9529 # The option is referenced via a variable to avoid confusing sed.
9530 lt_compile=`echo "$ac_compile" | $SED \
9531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9533 -e 's:$: $lt_compiler_flag:'`
9534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9535 (eval "$lt_compile" 2>conftest.err)
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 if (exit $ac_status) && test -s "$ac_outfile"; then
9540 # The compiler can only warn and ignore the option if not recognized
9541 # So say no if there are warnings other than the usual output.
9542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9545 lt_cv_prog_compiler_rtti_exceptions=yes
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9552 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9554 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9567 lt_prog_compiler_wl=
9568 lt_prog_compiler_pic=
9569 lt_prog_compiler_static=
9572 if test yes = "$GCC"; then
9573 lt_prog_compiler_wl='-Wl,'
9574 lt_prog_compiler_static='-static'
9578 # All AIX code is PIC.
9579 if test ia64 = "$host_cpu"; then
9580 # AIX 5 now supports IA64 processor
9581 lt_prog_compiler_static='-Bstatic'
9583 lt_prog_compiler_pic='-fPIC'
9589 # see comment about AmigaOS4 .so support
9590 lt_prog_compiler_pic='-fPIC'
9593 # FIXME: we need at least 68020 code to build shared libraries, but
9594 # adding the '-m68020' flag to GCC prevents building anything better,
9596 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9601 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9602 # PIC is the default for these OSes.
9605 mingw* | cygwin* | pw32* | os2* | cegcc*)
9606 # This hack is so that the source file can tell whether it is being
9607 # built for inclusion in a dll (and should export symbols for example).
9608 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9609 # (--disable-auto-import) libraries
9610 lt_prog_compiler_pic='-DDLL_EXPORT'
9613 lt_prog_compiler_static='$wl-static'
9618 darwin* | rhapsody*)
9619 # PIC is the default on this platform
9620 # Common symbols not allowed in MH_DYLIB files
9621 lt_prog_compiler_pic='-fno-common'
9625 # PIC is the default for Haiku.
9626 # The "-static" flag exists, but is broken.
9627 lt_prog_compiler_static=
9631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9633 # sets the default TLS model and affects inlining.
9639 lt_prog_compiler_pic='-fPIC'
9645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9646 # Instead, we relocate shared libraries at runtime.
9650 # Just because we use GCC doesn't mean we suddenly get shared libraries
9651 # on systems that don't support them.
9652 lt_prog_compiler_can_build_shared=no
9657 # QNX uses GNU C++, but need to define -shared option too, otherwise
9659 lt_prog_compiler_pic='-fPIC -shared'
9663 if test -d /usr/nec; then
9664 lt_prog_compiler_pic=-Kconform_pic
9669 lt_prog_compiler_pic='-fPIC'
9673 case $cc_basename in
9674 nvcc*) # Cuda Compiler Driver 2.2
9675 lt_prog_compiler_wl='-Xlinker '
9676 if test -n "$lt_prog_compiler_pic"; then
9677 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9682 # PORTME Check for flag to pass linker flags through the system compiler.
9685 lt_prog_compiler_wl='-Wl,'
9686 if test ia64 = "$host_cpu"; then
9687 # AIX 5 now supports IA64 processor
9688 lt_prog_compiler_static='-Bstatic'
9690 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9694 darwin* | rhapsody*)
9695 # PIC is the default on this platform
9696 # Common symbols not allowed in MH_DYLIB files
9697 lt_prog_compiler_pic='-fno-common'
9698 case $cc_basename in
9700 # NAG Fortran compiler
9701 lt_prog_compiler_wl='-Wl,-Wl,,'
9702 lt_prog_compiler_pic='-PIC'
9703 lt_prog_compiler_static='-Bstatic'
9708 mingw* | cygwin* | pw32* | os2* | cegcc*)
9709 # This hack is so that the source file can tell whether it is being
9710 # built for inclusion in a dll (and should export symbols for example).
9711 lt_prog_compiler_pic='-DDLL_EXPORT'
9714 lt_prog_compiler_static='$wl-static'
9719 hpux9* | hpux10* | hpux11*)
9720 lt_prog_compiler_wl='-Wl,'
9721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9728 lt_prog_compiler_pic='+Z'
9731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9732 lt_prog_compiler_static='$wl-a ${wl}archive'
9735 irix5* | irix6* | nonstopux*)
9736 lt_prog_compiler_wl='-Wl,'
9737 # PIC (with -KPIC) is the default.
9738 lt_prog_compiler_static='-non_shared'
9741 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9742 case $cc_basename in
9743 # old Intel for x86_64, which still supported -KPIC.
9745 lt_prog_compiler_wl='-Wl,'
9746 lt_prog_compiler_pic='-KPIC'
9747 lt_prog_compiler_static='-static'
9749 # icc used to be incompatible with GCC.
9750 # ICC 10 doesn't accept -KPIC any more.
9752 lt_prog_compiler_wl='-Wl,'
9753 lt_prog_compiler_pic='-fPIC'
9754 lt_prog_compiler_static='-static'
9756 # Lahey Fortran 8.1.
9758 lt_prog_compiler_wl='-Wl,'
9759 lt_prog_compiler_pic='--shared'
9760 lt_prog_compiler_static='--static'
9763 # NAG Fortran compiler
9764 lt_prog_compiler_wl='-Wl,-Wl,,'
9765 lt_prog_compiler_pic='-PIC'
9766 lt_prog_compiler_static='-Bstatic'
9769 # Fabrice Bellard et al's Tiny C Compiler
9770 lt_prog_compiler_wl='-Wl,'
9771 lt_prog_compiler_pic='-fPIC'
9772 lt_prog_compiler_static='-static'
9774 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9775 # Portland Group compilers (*not* the Pentium gcc compiler,
9776 # which looks to be a dead project)
9777 lt_prog_compiler_wl='-Wl,'
9778 lt_prog_compiler_pic='-fpic'
9779 lt_prog_compiler_static='-Bstatic'
9782 lt_prog_compiler_wl='-Wl,'
9783 # All Alpha code is PIC.
9784 lt_prog_compiler_static='-non_shared'
9786 xl* | bgxl* | bgf* | mpixl*)
9787 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9788 lt_prog_compiler_wl='-Wl,'
9789 lt_prog_compiler_pic='-qpic'
9790 lt_prog_compiler_static='-qstaticlink'
9793 case `$CC -V 2>&1 | sed 5q` in
9794 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9795 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9796 lt_prog_compiler_pic='-KPIC'
9797 lt_prog_compiler_static='-Bstatic'
9798 lt_prog_compiler_wl=''
9800 *Sun\ F* | *Sun*Fortran*)
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-Bstatic'
9803 lt_prog_compiler_wl='-Qoption ld '
9807 lt_prog_compiler_pic='-KPIC'
9808 lt_prog_compiler_static='-Bstatic'
9809 lt_prog_compiler_wl='-Wl,'
9811 *Intel*\ [CF]*Compiler*)
9812 lt_prog_compiler_wl='-Wl,'
9813 lt_prog_compiler_pic='-fPIC'
9814 lt_prog_compiler_static='-static'
9817 lt_prog_compiler_wl='-Wl,'
9818 lt_prog_compiler_pic='-fpic'
9819 lt_prog_compiler_static='-Bstatic'
9827 lt_prog_compiler_pic='-KPIC'
9828 lt_prog_compiler_static='-Bstatic'
9832 # QNX uses GNU C++, but need to define -shared option too, otherwise
9834 lt_prog_compiler_pic='-fPIC -shared'
9837 osf3* | osf4* | osf5*)
9838 lt_prog_compiler_wl='-Wl,'
9839 # All OSF/1 code is PIC.
9840 lt_prog_compiler_static='-non_shared'
9844 lt_prog_compiler_static='-non_shared'
9848 lt_prog_compiler_pic='-KPIC'
9849 lt_prog_compiler_static='-Bstatic'
9850 case $cc_basename in
9851 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9852 lt_prog_compiler_wl='-Qoption ld ';;
9854 lt_prog_compiler_wl='-Wl,';;
9859 lt_prog_compiler_wl='-Qoption ld '
9860 lt_prog_compiler_pic='-PIC'
9861 lt_prog_compiler_static='-Bstatic'
9864 sysv4 | sysv4.2uw2* | sysv4.3*)
9865 lt_prog_compiler_wl='-Wl,'
9866 lt_prog_compiler_pic='-KPIC'
9867 lt_prog_compiler_static='-Bstatic'
9871 if test -d /usr/nec; then
9872 lt_prog_compiler_pic='-Kconform_pic'
9873 lt_prog_compiler_static='-Bstatic'
9877 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9878 lt_prog_compiler_wl='-Wl,'
9879 lt_prog_compiler_pic='-KPIC'
9880 lt_prog_compiler_static='-Bstatic'
9884 lt_prog_compiler_wl='-Wl,'
9885 lt_prog_compiler_can_build_shared=no
9889 lt_prog_compiler_pic='-pic'
9890 lt_prog_compiler_static='-Bstatic'
9894 lt_prog_compiler_can_build_shared=no
9900 # For platforms that do not support PIC, -DPIC is meaningless:
9902 lt_prog_compiler_pic=
9905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9910 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9911 if ${lt_cv_prog_compiler_pic+:} false; then :
9912 $as_echo_n "(cached) " >&6
9914 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9917 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9918 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9921 # Check to make sure the PIC flag actually works.
9923 if test -n "$lt_prog_compiler_pic"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9925 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9926 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9927 $as_echo_n "(cached) " >&6
9929 lt_cv_prog_compiler_pic_works=no
9930 ac_outfile=conftest.$ac_objext
9931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9932 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9933 # Insert the option either (1) after the last *FLAGS variable, or
9934 # (2) before a word containing "conftest.", or (3) at the end.
9935 # Note that $ac_compile itself does not contain backslashes and begins
9936 # with a dollar sign (not a hyphen), so the echo should work correctly.
9937 # The option is referenced via a variable to avoid confusing sed.
9938 lt_compile=`echo "$ac_compile" | $SED \
9939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9941 -e 's:$: $lt_compiler_flag:'`
9942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9943 (eval "$lt_compile" 2>conftest.err)
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 if (exit $ac_status) && test -s "$ac_outfile"; then
9948 # The compiler can only warn and ignore the option if not recognized
9949 # So say no if there are warnings other than the usual output.
9950 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9952 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9953 lt_cv_prog_compiler_pic_works=yes
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9960 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9962 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9963 case $lt_prog_compiler_pic in
9965 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9968 lt_prog_compiler_pic=
9969 lt_prog_compiler_can_build_shared=no
9985 # Check to make sure the static flag actually works.
9987 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9990 if ${lt_cv_prog_compiler_static_works+:} false; then :
9991 $as_echo_n "(cached) " >&6
9993 lt_cv_prog_compiler_static_works=no
9994 save_LDFLAGS=$LDFLAGS
9995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9998 # The linker can only warn and ignore the option if not recognized
9999 # So say no if there are warnings
10000 if test -s conftest.err; then
10001 # Append any errors to the config.log.
10002 cat conftest.err 1>&5
10003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10005 if diff conftest.exp conftest.er2 >/dev/null; then
10006 lt_cv_prog_compiler_static_works=yes
10009 lt_cv_prog_compiler_static_works=yes
10013 LDFLAGS=$save_LDFLAGS
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10017 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10019 if test yes = "$lt_cv_prog_compiler_static_works"; then
10022 lt_prog_compiler_static=
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10032 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10033 if ${lt_cv_prog_compiler_c_o+:} false; then :
10034 $as_echo_n "(cached) " >&6
10036 lt_cv_prog_compiler_c_o=no
10037 $RM -r conftest 2>/dev/null
10041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10043 lt_compiler_flag="-o out/conftest2.$ac_objext"
10044 # Insert the option either (1) after the last *FLAGS variable, or
10045 # (2) before a word containing "conftest.", or (3) at the end.
10046 # Note that $ac_compile itself does not contain backslashes and begins
10047 # with a dollar sign (not a hyphen), so the echo should work correctly.
10048 lt_compile=`echo "$ac_compile" | $SED \
10049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10051 -e 's:$: $lt_compiler_flag:'`
10052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10053 (eval "$lt_compile" 2>out/conftest.err)
10055 cat out/conftest.err >&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10059 # The compiler can only warn and ignore the option if not recognized
10060 # So say no if there are warnings
10061 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10062 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10063 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler_c_o=yes
10069 # SGI C++ compiler will create directory out/ii_files/ for
10070 # template instantiation
10071 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10072 $RM out/* && rmdir out
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10079 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10088 if ${lt_cv_prog_compiler_c_o+:} false; then :
10089 $as_echo_n "(cached) " >&6
10091 lt_cv_prog_compiler_c_o=no
10092 $RM -r conftest 2>/dev/null
10096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10098 lt_compiler_flag="-o out/conftest2.$ac_objext"
10099 # Insert the option either (1) after the last *FLAGS variable, or
10100 # (2) before a word containing "conftest.", or (3) at the end.
10101 # Note that $ac_compile itself does not contain backslashes and begins
10102 # with a dollar sign (not a hyphen), so the echo should work correctly.
10103 lt_compile=`echo "$ac_compile" | $SED \
10104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10106 -e 's:$: $lt_compiler_flag:'`
10107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10108 (eval "$lt_compile" 2>out/conftest.err)
10110 cat out/conftest.err >&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10114 # The compiler can only warn and ignore the option if not recognized
10115 # So say no if there are warnings
10116 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10117 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10118 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10119 lt_cv_prog_compiler_c_o=yes
10124 # SGI C++ compiler will create directory out/ii_files/ for
10125 # template instantiation
10126 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10127 $RM out/* && rmdir out
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10139 hard_links=nottested
10140 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10141 # do not overwrite the value of need_locks provided by the user
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10143 $as_echo_n "checking if we can lock with hard links... " >&6; }
10146 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10148 ln conftest.a conftest.b 2>&5 || hard_links=no
10149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10151 $as_echo "$hard_links" >&6; }
10152 if test no = "$hard_links"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10154 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10167 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10170 allow_undefined_flag=
10171 always_export_symbols=no
10173 archive_expsym_cmds=
10174 compiler_needs_object=no
10175 enable_shared_with_static_runtimes=no
10176 export_dynamic_flag_spec=
10177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10178 hardcode_automatic=no
10180 hardcode_direct_absolute=no
10181 hardcode_libdir_flag_spec=
10182 hardcode_libdir_separator=
10183 hardcode_minus_L=no
10184 hardcode_shlibpath_var=unsupported
10186 link_all_deplibs=unknown
10188 module_expsym_cmds=
10189 old_archive_from_new_cmds=
10190 old_archive_from_expsyms_cmds=
10191 thread_safe_flag_spec=
10192 whole_archive_flag_spec=
10193 # include_expsyms should be a list of space-separated symbols to be *always*
10194 # included in the symbol list
10196 # exclude_expsyms can be an extended regexp of symbols to exclude
10197 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10198 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10199 # as well as any symbol that contains 'd'.
10200 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10201 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10202 # platforms (ab)use it in PIC code, but their linkers get confused if
10203 # the symbol is explicitly referenced. Since portable code cannot
10204 # rely on this symbol name, it's probably fine to never include it in
10205 # preloaded symbol tables.
10206 # Exclude shared library initialization/finalization symbols.
10207 extract_expsyms_cmds=
10210 cygwin* | mingw* | pw32* | cegcc*)
10211 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10212 # When not using gcc, we currently assume that we are using
10213 # Microsoft Visual C++.
10214 if test yes != "$GCC"; then
10219 # we just hope/assume this is gcc and not c89 (= MSVC++)
10222 openbsd* | bitrig*)
10225 linux* | k*bsd*-gnu | gnu*)
10226 link_all_deplibs=no
10232 # On some targets, GNU ld is compatible enough with the native linker
10233 # that we're better off using the native interface for both.
10234 lt_use_gnu_ld_interface=no
10235 if test yes = "$with_gnu_ld"; then
10238 # The AIX port of GNU ld has always aspired to compatibility
10239 # with the native linker. However, as the warning in the GNU ld
10240 # block says, versions before 2.19.5* couldn't really create working
10241 # shared libraries, regardless of the interface used.
10242 case `$LD -v 2>&1` in
10243 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10244 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10245 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10247 lt_use_gnu_ld_interface=yes
10252 lt_use_gnu_ld_interface=yes
10257 if test yes = "$lt_use_gnu_ld_interface"; then
10258 # If archive_cmds runs LD, not CC, wlarc should be empty
10261 # Set some defaults for GNU ld with shared library support. These
10262 # are reset later if shared libraries are not supported. Putting them
10263 # here allows them to be overridden if necessary.
10264 runpath_var=LD_RUN_PATH
10265 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10266 export_dynamic_flag_spec='$wl--export-dynamic'
10267 # ancient GNU ld didn't support --whole-archive et. al.
10268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10269 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10271 whole_archive_flag_spec=
10273 supports_anon_versioning=no
10274 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10275 *GNU\ gold*) supports_anon_versioning=yes ;;
10276 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10279 *\ 2.11.*) ;; # other 2.11 versions
10280 *) supports_anon_versioning=yes ;;
10283 # See if GNU ld supports shared libraries.
10286 # On AIX/PPC, the GNU linker is very broken
10287 if test ia64 != "$host_cpu"; then
10291 *** Warning: the GNU linker, at least up to release 2.19, is reported
10292 *** to be unable to reliably create shared libraries on AIX.
10293 *** Therefore, libtool is disabling shared libraries support. If you
10294 *** really care for shared libraries, you may want to install binutils
10295 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10296 *** You will then need to restart the configuration process.
10305 # see comment about AmigaOS4 .so support
10306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10307 archive_expsym_cmds=''
10310 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)'
10311 hardcode_libdir_flag_spec='-L$libdir'
10312 hardcode_minus_L=yes
10318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10319 allow_undefined_flag=unsupported
10320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10321 # support --undefined. This deserves some investigation. FIXME
10322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10328 cygwin* | mingw* | pw32* | cegcc*)
10329 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10330 # as there is no search path for DLLs.
10331 hardcode_libdir_flag_spec='-L$libdir'
10332 export_dynamic_flag_spec='$wl--export-all-symbols'
10333 allow_undefined_flag=unsupported
10334 always_export_symbols=no
10335 enable_shared_with_static_runtimes=yes
10336 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'
10337 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10341 # If the export-symbols file already is a .def file, use it as
10342 # is; otherwise, prepend EXPORTS...
10343 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10344 cp $export_symbols $output_objdir/$soname.def;
10346 echo EXPORTS > $output_objdir/$soname.def;
10347 cat $export_symbols >> $output_objdir/$soname.def;
10349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10357 link_all_deplibs=yes
10361 hardcode_libdir_flag_spec='-L$libdir'
10362 hardcode_minus_L=yes
10363 allow_undefined_flag=unsupported
10365 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10368 $ECHO EXPORTS >> $output_objdir/$libname.def~
10369 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10370 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10371 emximp -o $lib $output_objdir/$libname.def'
10372 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10373 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10374 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10375 $ECHO EXPORTS >> $output_objdir/$libname.def~
10376 prefix_cmds="$SED"~
10377 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10378 prefix_cmds="$prefix_cmds -e 1d";
10380 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10381 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10382 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10383 emximp -o $lib $output_objdir/$libname.def'
10384 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10385 enable_shared_with_static_runtimes=yes
10390 hardcode_shlibpath_var=no
10391 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10392 export_dynamic_flag_spec='$wl-E'
10393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10394 # Instead, shared libraries are loaded at an image base (0x10000000 by
10395 # default) and relocated if they conflict, which is a slow very memory
10396 # consuming and fragmenting process. To avoid this, we pick a random,
10397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10399 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10400 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'
10403 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10405 if test linux-dietlibc = "$host_os"; then
10406 case $cc_basename in
10407 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10410 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10411 && test no = "$tmp_diet"
10413 tmp_addflag=' $pic_flag'
10414 tmp_sharedflag='-shared'
10415 case $cc_basename,$host_cpu in
10416 pgcc*) # Portland Group C compiler
10417 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'
10418 tmp_addflag=' $pic_flag'
10420 pgf77* | pgf90* | pgf95* | pgfortran*)
10421 # Portland Group f77 and f90 compilers
10422 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'
10423 tmp_addflag=' $pic_flag -Mnomain' ;;
10424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10425 tmp_addflag=' -i_dynamic' ;;
10426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10427 tmp_addflag=' -i_dynamic -nofor_main' ;;
10428 ifc* | ifort*) # Intel Fortran compiler
10429 tmp_addflag=' -nofor_main' ;;
10430 lf95*) # Lahey Fortran 8.1
10431 whole_archive_flag_spec=
10432 tmp_sharedflag='--shared' ;;
10433 nagfor*) # NAGFOR 5.3
10434 tmp_sharedflag='-Wl,-shared' ;;
10435 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10436 tmp_sharedflag='-qmkshrobj'
10438 nvcc*) # Cuda Compiler Driver 2.2
10439 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'
10440 compiler_needs_object=yes
10443 case `$CC -V 2>&1 | sed 5q` in
10444 *Sun\ C*) # Sun C 5.9
10445 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'
10446 compiler_needs_object=yes
10447 tmp_sharedflag='-G' ;;
10448 *Sun\ F*) # Sun Fortran 8.3
10449 tmp_sharedflag='-G' ;;
10451 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10453 if test yes = "$supports_anon_versioning"; then
10454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10456 echo "local: *; };" >> $output_objdir/$libname.ver~
10457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10460 case $cc_basename in
10462 export_dynamic_flag_spec='-rdynamic'
10464 xlf* | bgf* | bgxlf* | mpixlf*)
10465 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10466 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10467 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10468 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10469 if test yes = "$supports_anon_versioning"; then
10470 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10471 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10472 echo "local: *; };" >> $output_objdir/$libname.ver~
10473 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10482 netbsd* | netbsdelf*-gnu)
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10487 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10488 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10493 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10497 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10498 *** create shared libraries on Solaris systems. Therefore, libtool
10499 *** is disabling shared libraries support. We urge you to upgrade GNU
10500 *** binutils to release 2.9.1 or newer. Another option is to modify
10501 *** your PATH or compiler configuration so that the native linker is
10502 *** used, and then restart.
10505 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10506 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10507 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10513 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10514 case `$LD -v 2>&1` in
10515 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10519 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10520 *** reliably create shared libraries on SCO systems. Therefore, libtool
10521 *** is disabling shared libraries support. We urge you to upgrade GNU
10522 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10523 *** your PATH or compiler configuration so that the native linker is
10524 *** used, and then restart.
10529 # For security reasons, it is highly recommended that you always
10530 # use absolute paths for naming shared libraries, and exclude the
10531 # DT_RUNPATH tag from executables and libraries. But doing so
10532 # requires that you compile everything twice, which is a pain.
10533 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10545 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10547 hardcode_direct=yes
10548 hardcode_shlibpath_var=no
10552 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10553 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10554 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10561 if test no = "$ld_shlibs"; then
10563 hardcode_libdir_flag_spec=
10564 export_dynamic_flag_spec=
10565 whole_archive_flag_spec=
10568 # PORTME fill in a description of your system's linker (not GNU ld)
10571 allow_undefined_flag=unsupported
10572 always_export_symbols=yes
10573 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'
10574 # Note: this linker hardcodes the directories in LIBPATH if there
10575 # are no directories specified by -L.
10576 hardcode_minus_L=yes
10577 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10578 # Neither direct hardcoding nor static linking is supported with a
10580 hardcode_direct=unsupported
10585 if test ia64 = "$host_cpu"; then
10586 # On IA64, the linker does run time linking by default, so we don't
10587 # have to do anything special.
10588 aix_use_runtimelinking=no
10589 exp_sym_flag='-Bexport'
10592 # If we're using GNU nm, then we don't want the "-C" option.
10593 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10594 # Without the "-l" option, or with the "-B" option, AIX nm treats
10595 # weak defined symbols like other global defined symbols, whereas
10596 # GNU nm marks them as "W".
10597 # While the 'weak' keyword is ignored in the Export File, we need
10598 # it in the Import File for the 'aix-soname' feature, so we have
10599 # to replace the "-B" option with "-P" for AIX nm.
10600 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10601 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10603 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10605 aix_use_runtimelinking=no
10607 # Test if we are trying to use run time linking or normal
10608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10609 # have runtime linking enabled, and use it for executables.
10610 # For shared libraries, we enable/disable runtime linking
10611 # depending on the kind of the shared library created -
10612 # when "with_aix_soname,aix_use_runtimelinking" is:
10613 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10614 # "aix,yes" lib.so shared, rtl:yes, for executables
10615 # lib.a static archive
10616 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10617 # lib.a(lib.so.V) shared, rtl:no, for executables
10618 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10619 # lib.a(lib.so.V) shared, rtl:no
10620 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10621 # lib.a static archive
10622 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10623 for ld_flag in $LDFLAGS; do
10624 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10625 aix_use_runtimelinking=yes
10629 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10630 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10631 # so we don't have lib.a shared libs to link our executables.
10632 # We have to force runtime linking in this case.
10633 aix_use_runtimelinking=yes
10634 LDFLAGS="$LDFLAGS -Wl,-brtl"
10639 exp_sym_flag='-bexport'
10640 no_entry_flag='-bnoentry'
10643 # When large executables or shared objects are built, AIX ld can
10644 # have problems creating the table of contents. If linking a library
10645 # or program results in "error TOC overflow" add -mminimal-toc to
10646 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10647 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10650 hardcode_direct=yes
10651 hardcode_direct_absolute=yes
10652 hardcode_libdir_separator=':'
10653 link_all_deplibs=yes
10654 file_list_spec='$wl-f,'
10655 case $with_aix_soname,$aix_use_runtimelinking in
10656 aix,*) ;; # traditional, no import file
10657 svr4,* | *,yes) # use import file
10658 # The Import File defines what to hardcode.
10660 hardcode_direct_absolute=no
10664 if test yes = "$GCC"; then
10665 case $host_os in aix4.[012]|aix4.[012].*)
10666 # We only want to do this on AIX 4.2 and lower, the check
10667 # below for broken collect2 doesn't work under 4.3+
10668 collect2name=`$CC -print-prog-name=collect2`
10669 if test -f "$collect2name" &&
10670 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10672 # We have reworked collect2
10675 # We have old collect2
10676 hardcode_direct=unsupported
10677 # It fails to find uninstalled libraries when the uninstalled
10678 # path is not listed in the libpath. Setting hardcode_minus_L
10679 # to unsupported forces relinking
10680 hardcode_minus_L=yes
10681 hardcode_libdir_flag_spec='-L$libdir'
10682 hardcode_libdir_separator=
10686 shared_flag='-shared'
10687 if test yes = "$aix_use_runtimelinking"; then
10688 shared_flag="$shared_flag "'$wl-G'
10690 # Need to ensure runtime linking is disabled for the traditional
10691 # shared library, or the linker may eventually find shared libraries
10692 # /with/ Import File - we do not want to mix them.
10693 shared_flag_aix='-shared'
10694 shared_flag_svr4='-shared $wl-G'
10697 if test ia64 = "$host_cpu"; then
10698 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10699 # chokes on -Wl,-G. The following line is correct:
10702 if test yes = "$aix_use_runtimelinking"; then
10703 shared_flag='$wl-G'
10705 shared_flag='$wl-bM:SRE'
10707 shared_flag_aix='$wl-bM:SRE'
10708 shared_flag_svr4='$wl-G'
10712 export_dynamic_flag_spec='$wl-bexpall'
10713 # It seems that -bexpall does not export symbols beginning with
10714 # underscore (_), so it is better to generate a list of symbols to export.
10715 always_export_symbols=yes
10716 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10717 # Warning - without using the other runtime loading flags (-brtl),
10718 # -berok will link without error, but may produce a broken library.
10719 allow_undefined_flag='-berok'
10720 # Determine the default libpath from the value encoded in an
10721 # empty executable.
10722 if test set = "${lt_cv_aix_libpath+set}"; then
10723 aix_libpath=$lt_cv_aix_libpath
10725 if ${lt_cv_aix_libpath_+:} false; then :
10726 $as_echo_n "(cached) " >&6
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10739 if ac_fn_c_try_link "$LINENO"; then :
10741 lt_aix_libpath_sed='
10742 /Import File Strings/,/^$/ {
10744 s/^0 *\([^ ]*\) *$/\1/
10748 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749 # Check for a 64-bit object if we didn't find anything.
10750 if test -z "$lt_cv_aix_libpath_"; then
10751 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test -z "$lt_cv_aix_libpath_"; then
10757 lt_cv_aix_libpath_=/usr/lib:/lib
10762 aix_libpath=$lt_cv_aix_libpath_
10765 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10766 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10768 if test ia64 = "$host_cpu"; then
10769 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10770 allow_undefined_flag="-z nodefs"
10771 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"
10773 # Determine the default libpath from the value encoded in an
10774 # empty executable.
10775 if test set = "${lt_cv_aix_libpath+set}"; then
10776 aix_libpath=$lt_cv_aix_libpath
10778 if ${lt_cv_aix_libpath_+:} false; then :
10779 $as_echo_n "(cached) " >&6
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10792 if ac_fn_c_try_link "$LINENO"; then :
10794 lt_aix_libpath_sed='
10795 /Import File Strings/,/^$/ {
10797 s/^0 *\([^ ]*\) *$/\1/
10801 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10802 # Check for a 64-bit object if we didn't find anything.
10803 if test -z "$lt_cv_aix_libpath_"; then
10804 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807 rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10809 if test -z "$lt_cv_aix_libpath_"; then
10810 lt_cv_aix_libpath_=/usr/lib:/lib
10815 aix_libpath=$lt_cv_aix_libpath_
10818 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10819 # Warning - without using the other run time loading flags,
10820 # -berok will link without error, but may produce a broken library.
10821 no_undefined_flag=' $wl-bernotok'
10822 allow_undefined_flag=' $wl-berok'
10823 if test yes = "$with_gnu_ld"; then
10824 # We only use this code for GNU lds that support --whole-archive.
10825 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10827 # Exported symbols can be pulled into shared objects from archives
10828 whole_archive_flag_spec='$convenience'
10830 archive_cmds_need_lc=yes
10831 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10832 # -brtl affects multiple linker settings, -berok does not and is overridden later
10833 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10834 if test svr4 != "$with_aix_soname"; then
10835 # This is similar to how AIX traditionally builds its shared libraries.
10836 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10838 if test aix != "$with_aix_soname"; then
10839 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10841 # used by -dlpreopen to get the symbols
10842 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10844 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10852 # see comment about AmigaOS4 .so support
10853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10854 archive_expsym_cmds=''
10857 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)'
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10865 export_dynamic_flag_spec=-rdynamic
10868 cygwin* | mingw* | pw32* | cegcc*)
10869 # When not using gcc, we currently assume that we are using
10870 # Microsoft Visual C++.
10871 # hardcode_libdir_flag_spec is actually meaningless, as there is
10872 # no search path for DLLs.
10873 case $cc_basename in
10876 hardcode_libdir_flag_spec=' '
10877 allow_undefined_flag=unsupported
10878 always_export_symbols=yes
10880 # Tell ltmain to make .lib files, not .a files.
10882 # Tell ltmain to make .dll files, not .so files.
10884 # FIXME: Setting linknames here is a bad hack.
10885 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10886 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10887 cp "$export_symbols" "$output_objdir/$soname.def";
10888 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10890 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10892 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10894 # The linker will not automatically build a static lib if we build a DLL.
10895 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10896 enable_shared_with_static_runtimes=yes
10897 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10900 old_postinstall_cmds='chmod 644 $oldlib'
10901 postlink_cmds='lt_outputfile="@OUTPUT@"~
10902 lt_tool_outputfile="@TOOL_OUTPUT@"~
10903 case $lt_outputfile in
10906 lt_outputfile=$lt_outputfile.exe
10907 lt_tool_outputfile=$lt_tool_outputfile.exe
10910 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10911 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10912 $RM "$lt_outputfile.manifest";
10916 # Assume MSVC wrapper
10917 hardcode_libdir_flag_spec=' '
10918 allow_undefined_flag=unsupported
10919 # Tell ltmain to make .lib files, not .a files.
10921 # Tell ltmain to make .dll files, not .so files.
10923 # FIXME: Setting linknames here is a bad hack.
10924 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10925 # The linker will automatically build a .lib file if we build a DLL.
10926 old_archive_from_new_cmds='true'
10927 # FIXME: Should let the user specify the lib program.
10928 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10929 enable_shared_with_static_runtimes=yes
10934 darwin* | rhapsody*)
10937 archive_cmds_need_lc=no
10939 hardcode_automatic=yes
10940 hardcode_shlibpath_var=unsupported
10941 if test yes = "$lt_cv_ld_force_load"; then
10942 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\"`'
10945 whole_archive_flag_spec=''
10947 link_all_deplibs=yes
10948 allow_undefined_flag=$_lt_dar_allow_undefined
10949 case $cc_basename in
10950 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10951 *) _lt_dar_can_shared=$GCC ;;
10953 if test yes = "$_lt_dar_can_shared"; then
10954 output_verbose_link_cmd=func_echo_all
10955 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10956 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10957 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"
10958 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"
10967 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10968 hardcode_libdir_flag_spec='-L$libdir'
10969 hardcode_shlibpath_var=no
10972 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10973 # support. Future versions do this automatically, but an explicit c++rt0.o
10974 # does not break anything, and helps significantly (at the cost of a little
10977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10978 hardcode_libdir_flag_spec='-R$libdir'
10979 hardcode_direct=yes
10980 hardcode_shlibpath_var=no
10983 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10985 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10986 hardcode_direct=yes
10987 hardcode_minus_L=yes
10988 hardcode_shlibpath_var=no
10991 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10992 freebsd* | dragonfly*)
10993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10994 hardcode_libdir_flag_spec='-R$libdir'
10995 hardcode_direct=yes
10996 hardcode_shlibpath_var=no
11000 if test yes = "$GCC"; then
11001 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11003 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11005 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11006 hardcode_libdir_separator=:
11007 hardcode_direct=yes
11009 # hardcode_minus_L: Not really in the search PATH,
11010 # but as the default location of the library.
11011 hardcode_minus_L=yes
11012 export_dynamic_flag_spec='$wl-E'
11016 if test yes,no = "$GCC,$with_gnu_ld"; then
11017 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11019 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11021 if test no = "$with_gnu_ld"; then
11022 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11023 hardcode_libdir_separator=:
11024 hardcode_direct=yes
11025 hardcode_direct_absolute=yes
11026 export_dynamic_flag_spec='$wl-E'
11027 # hardcode_minus_L: Not really in the search PATH,
11028 # but as the default location of the library.
11029 hardcode_minus_L=yes
11034 if test yes,no = "$GCC,$with_gnu_ld"; then
11037 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11040 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11043 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11052 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11056 # Older versions of the 11.00 compiler do not understand -b yet
11057 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11059 $as_echo_n "checking if $CC understands -b... " >&6; }
11060 if ${lt_cv_prog_compiler__b+:} false; then :
11061 $as_echo_n "(cached) " >&6
11063 lt_cv_prog_compiler__b=no
11064 save_LDFLAGS=$LDFLAGS
11065 LDFLAGS="$LDFLAGS -b"
11066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11068 # The linker can only warn and ignore the option if not recognized
11069 # So say no if there are warnings
11070 if test -s conftest.err; then
11071 # Append any errors to the config.log.
11072 cat conftest.err 1>&5
11073 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11075 if diff conftest.exp conftest.er2 >/dev/null; then
11076 lt_cv_prog_compiler__b=yes
11079 lt_cv_prog_compiler__b=yes
11083 LDFLAGS=$save_LDFLAGS
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11087 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11089 if test yes = "$lt_cv_prog_compiler__b"; then
11090 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11092 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11098 if test no = "$with_gnu_ld"; then
11099 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11100 hardcode_libdir_separator=:
11105 hardcode_shlibpath_var=no
11108 hardcode_direct=yes
11109 hardcode_direct_absolute=yes
11110 export_dynamic_flag_spec='$wl-E'
11112 # hardcode_minus_L: Not really in the search PATH,
11113 # but as the default location of the library.
11114 hardcode_minus_L=yes
11120 irix5* | irix6* | nonstopux*)
11121 if test yes = "$GCC"; then
11122 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'
11123 # Try to use the -exported_symbol ld option, if it does not
11124 # work, assume that -exports_file does not work either and
11125 # implicitly export all symbols.
11126 # This should be the same for all languages, so no per-tag cache variable.
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11128 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11129 if ${lt_cv_irix_exported_symbol+:} false; then :
11130 $as_echo_n "(cached) " >&6
11132 save_LDFLAGS=$LDFLAGS
11133 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135 /* end confdefs.h. */
11136 int foo (void) { return 0; }
11138 if ac_fn_c_try_link "$LINENO"; then :
11139 lt_cv_irix_exported_symbol=yes
11141 lt_cv_irix_exported_symbol=no
11143 rm -f core conftest.err conftest.$ac_objext \
11144 conftest$ac_exeext conftest.$ac_ext
11145 LDFLAGS=$save_LDFLAGS
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11148 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11149 if test yes = "$lt_cv_irix_exported_symbol"; then
11150 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'
11152 link_all_deplibs=no
11154 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'
11155 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'
11157 archive_cmds_need_lc='no'
11158 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11159 hardcode_libdir_separator=:
11161 link_all_deplibs=yes
11165 case $cc_basename in
11167 # Fabrice Bellard et al's Tiny C Compiler
11169 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11174 netbsd* | netbsdelf*-gnu)
11175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11180 hardcode_libdir_flag_spec='-R$libdir'
11181 hardcode_direct=yes
11182 hardcode_shlibpath_var=no
11186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187 hardcode_direct=yes
11188 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11189 hardcode_libdir_separator=:
11190 hardcode_shlibpath_var=no
11196 openbsd* | bitrig*)
11197 if test -f /usr/libexec/ld.so; then
11198 hardcode_direct=yes
11199 hardcode_shlibpath_var=no
11200 hardcode_direct_absolute=yes
11201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11204 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11205 export_dynamic_flag_spec='$wl-E'
11207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11208 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11216 hardcode_libdir_flag_spec='-L$libdir'
11217 hardcode_minus_L=yes
11218 allow_undefined_flag=unsupported
11220 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11223 $ECHO EXPORTS >> $output_objdir/$libname.def~
11224 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11225 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11226 emximp -o $lib $output_objdir/$libname.def'
11227 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11228 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11229 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11230 $ECHO EXPORTS >> $output_objdir/$libname.def~
11231 prefix_cmds="$SED"~
11232 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11233 prefix_cmds="$prefix_cmds -e 1d";
11235 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11236 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11237 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11238 emximp -o $lib $output_objdir/$libname.def'
11239 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11240 enable_shared_with_static_runtimes=yes
11244 if test yes = "$GCC"; then
11245 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11246 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'
11248 allow_undefined_flag=' -expect_unresolved \*'
11249 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'
11251 archive_cmds_need_lc='no'
11252 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11253 hardcode_libdir_separator=:
11256 osf4* | osf5*) # as osf3* with the addition of -msym flag
11257 if test yes = "$GCC"; then
11258 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11259 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'
11260 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11262 allow_undefined_flag=' -expect_unresolved \*'
11263 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'
11264 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~
11265 $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'
11267 # Both c and cxx compiler support -rpath directly
11268 hardcode_libdir_flag_spec='-rpath $libdir'
11270 archive_cmds_need_lc='no'
11271 hardcode_libdir_separator=:
11275 no_undefined_flag=' -z defs'
11276 if test yes = "$GCC"; then
11278 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11280 $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'
11282 case `$CC -V 2>&1` in
11285 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11287 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11291 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11292 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11293 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11297 hardcode_libdir_flag_spec='-R$libdir'
11298 hardcode_shlibpath_var=no
11300 solaris2.[0-5] | solaris2.[0-5].*) ;;
11302 # The compiler driver will combine and reorder linker options,
11303 # but understands '-z linker_flag'. GCC discards it without '$wl',
11304 # but is careful enough not to reorder.
11305 # Supported since Solaris 2.6 (maybe 2.5.1?)
11306 if test yes = "$GCC"; then
11307 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11309 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11313 link_all_deplibs=yes
11317 if test sequent = "$host_vendor"; then
11318 # Use $CC to link under sequent, because it throws in some extra .o
11319 # files that make .init and .fini sections work.
11320 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11322 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11324 hardcode_libdir_flag_spec='-L$libdir'
11325 hardcode_direct=yes
11326 hardcode_minus_L=yes
11327 hardcode_shlibpath_var=no
11331 case $host_vendor in
11333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11334 hardcode_direct=yes # is this really true???
11337 ## LD is ld it makes a PLAMLIB
11338 ## CC just makes a GrossModule.
11339 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11340 reload_cmds='$CC -r -o $output$reload_objs'
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11348 runpath_var='LD_RUN_PATH'
11349 hardcode_shlibpath_var=no
11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_shlibpath_var=no
11355 export_dynamic_flag_spec='-Bexport'
11359 if test -d /usr/nec; then
11360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361 hardcode_shlibpath_var=no
11362 runpath_var=LD_RUN_PATH
11363 hardcode_runpath_var=yes
11368 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11369 no_undefined_flag='$wl-z,text'
11370 archive_cmds_need_lc=no
11371 hardcode_shlibpath_var=no
11372 runpath_var='LD_RUN_PATH'
11374 if test yes = "$GCC"; then
11375 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383 sysv5* | sco3.2v5* | sco5v6*)
11384 # Note: We CANNOT use -z defs as we might desire, because we do not
11385 # link with -lc, and that would cause any symbols used from libc to
11386 # always be unresolved, which means just about no library would
11387 # ever link correctly. If we're not using GNU ld we use -z text
11388 # though, which does catch some bad symbols but isn't as heavy-handed
11390 no_undefined_flag='$wl-z,text'
11391 allow_undefined_flag='$wl-z,nodefs'
11392 archive_cmds_need_lc=no
11393 hardcode_shlibpath_var=no
11394 hardcode_libdir_flag_spec='$wl-R,$libdir'
11395 hardcode_libdir_separator=':'
11396 link_all_deplibs=yes
11397 export_dynamic_flag_spec='$wl-Bexport'
11398 runpath_var='LD_RUN_PATH'
11400 if test yes = "$GCC"; then
11401 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411 hardcode_libdir_flag_spec='-L$libdir'
11412 hardcode_shlibpath_var=no
11420 if test sni = "$host_vendor"; then
11422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11423 export_dynamic_flag_spec='$wl-Blargedynsym'
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11430 $as_echo "$ld_shlibs" >&6; }
11431 test no = "$ld_shlibs" && can_build_shared=no
11433 with_gnu_ld=$with_gnu_ld
11450 # Do we need to explicitly link libc?
11452 case "x$archive_cmds_need_lc" in
11454 # Assume -lc should be added
11455 archive_cmds_need_lc=yes
11457 if test yes,yes = "$GCC,$enable_shared"; then
11458 case $archive_cmds in
11460 # FIXME: we may have to deal with multi-command sequences.
11463 # Test whether the compiler implicitly links with -lc since on some
11464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11465 # to ld, don't add -lc before -lgcc.
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11467 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11468 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11469 $as_echo_n "(cached) " >&6
11472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11475 (eval $ac_compile) 2>&5
11477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11478 test $ac_status = 0; } 2>conftest.err; then
11481 libobjs=conftest.$ac_objext
11483 wl=$lt_prog_compiler_wl
11484 pic_flag=$lt_prog_compiler_pic
11490 lt_save_allow_undefined_flag=$allow_undefined_flag
11491 allow_undefined_flag=
11492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11493 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11496 test $ac_status = 0; }
11498 lt_cv_archive_cmds_need_lc=no
11500 lt_cv_archive_cmds_need_lc=yes
11502 allow_undefined_flag=$lt_save_allow_undefined_flag
11504 cat conftest.err 1>&5
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11510 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11511 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11670 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11672 if test yes = "$GCC"; then
11674 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11675 *) lt_awk_arg='/^libraries:/' ;;
11678 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11679 *) lt_sed_strip_eq='s|=/|/|g' ;;
11681 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11682 case $lt_search_path_spec in
11684 # if the path contains ";" then we assume it to be the separator
11685 # otherwise default to the standard path separator (i.e. ":") - it is
11686 # assumed that no part of a normal pathname contains ";" but that should
11687 # okay in the real world where ";" in dirpaths is itself problematic.
11688 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11691 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11694 # Ok, now we have the path, separated by spaces, we can step through it
11695 # and add multilib dir if necessary...
11696 lt_tmp_lt_search_path_spec=
11697 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11698 # ...but if some path component already ends with the multilib dir we assume
11699 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11700 case "$lt_multi_os_dir; $lt_search_path_spec " in
11701 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11705 for lt_sys_path in $lt_search_path_spec; do
11706 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11707 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11708 elif test -n "$lt_multi_os_dir"; then
11709 test -d "$lt_sys_path" && \
11710 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11713 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11714 BEGIN {RS = " "; FS = "/|\n";} {
11717 for (lt_i = NF; lt_i > 0; lt_i--) {
11718 if ($lt_i != "" && $lt_i != ".") {
11719 if ($lt_i == "..") {
11722 if (lt_count == 0) {
11723 lt_foo = "/" $lt_i lt_foo;
11730 if (lt_foo != "") { lt_freq[lt_foo]++; }
11731 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11733 # AWK program above erroneously prepends '/' to C:/dos/paths
11736 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11737 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11739 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11741 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11743 library_names_spec=
11744 libname_spec='lib$name'
11748 postuninstall_cmds=
11752 shlibpath_overrides_runpath=unknown
11754 dynamic_linker="$host_os ld.so"
11755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11767 version_type=linux # correct to gnu/linux during the next big refactor
11768 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11769 shlibpath_var=LIBPATH
11771 # AIX 3 has no versioning support, so we append a major version to the name.
11772 soname_spec='$libname$release$shared_ext$major'
11776 version_type=linux # correct to gnu/linux during the next big refactor
11779 hardcode_into_libs=yes
11780 if test ia64 = "$host_cpu"; then
11781 # AIX 5 supports IA64
11782 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11783 shlibpath_var=LD_LIBRARY_PATH
11785 # With GCC up to 2.95.x, collect2 would create an import file
11786 # for dependence libraries. The import file would start with
11787 # the line '#! .'. This would cause the generated library to
11788 # depend on '.', always an invalid library. This was fixed in
11789 # development snapshots of GCC prior to 3.0.
11791 aix4 | aix4.[01] | aix4.[01].*)
11792 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11794 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11797 can_build_shared=no
11801 # Using Import Files as archive members, it is possible to support
11802 # filename-based versioning of shared library archives on AIX. While
11803 # this would work for both with and without runtime linking, it will
11804 # prevent static linking of such archives. So we do filename-based
11805 # shared library versioning with .so extension only, which is used
11806 # when both runtime linking and shared linking is enabled.
11807 # Unfortunately, runtime linking may impact performance, so we do
11808 # not want this to be the default eventually. Also, we use the
11809 # versioned .so libs for executables only if there is the -brtl
11810 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11811 # To allow for filename-based versioning support, we need to create
11812 # libNAME.so.V as an archive file, containing:
11813 # *) an Import File, referring to the versioned filename of the
11814 # archive as well as the shared archive member, telling the
11815 # bitwidth (32 or 64) of that shared object, and providing the
11816 # list of exported symbols of that shared object, eventually
11817 # decorated with the 'weak' keyword
11818 # *) the shared object with the F_LOADONLY flag set, to really avoid
11819 # it being seen by the linker.
11820 # At run time we better use the real file rather than another symlink,
11821 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11823 case $with_aix_soname,$aix_use_runtimelinking in
11824 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11825 # soname into executable. Probably we can add versioning support to
11826 # collect2, so additional links can be useful in future.
11827 aix,yes) # traditional libtool
11828 dynamic_linker='AIX unversionable lib.so'
11829 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11830 # instead of lib<name>.a to let people know that these are not
11831 # typical AIX shared libraries.
11832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11834 aix,no) # traditional AIX only
11835 dynamic_linker='AIX lib.a(lib.so.V)'
11836 # We preserve .a as extension for shared libraries through AIX4.2
11837 # and later when we are not doing run time linking.
11838 library_names_spec='$libname$release.a $libname.a'
11839 soname_spec='$libname$release$shared_ext$major'
11841 svr4,*) # full svr4 only
11842 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11843 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11844 # We do not specify a path in Import Files, so LIBPATH fires.
11845 shlibpath_overrides_runpath=yes
11847 *,yes) # both, prefer svr4
11848 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11849 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11850 # unpreferred sharedlib libNAME.a needs extra handling
11851 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11852 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11853 # We do not specify a path in Import Files, so LIBPATH fires.
11854 shlibpath_overrides_runpath=yes
11856 *,no) # both, prefer aix
11857 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11858 library_names_spec='$libname$release.a $libname.a'
11859 soname_spec='$libname$release$shared_ext$major'
11860 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11861 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11862 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11865 shlibpath_var=LIBPATH
11872 # Since July 2007 AmigaOS4 officially supports .so libraries.
11873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11877 library_names_spec='$libname.ixlibrary $libname.a'
11878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11879 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11885 library_names_spec='$libname$shared_ext'
11886 dynamic_linker="$host_os ld.so"
11887 shlibpath_var=LIBRARY_PATH
11891 version_type=linux # correct to gnu/linux during the next big refactor
11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11894 soname_spec='$libname$release$shared_ext$major'
11895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11896 shlibpath_var=LD_LIBRARY_PATH
11897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11899 # the default ld.so.conf also contains /usr/contrib/lib and
11900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11901 # libtool to hard-code these into programs
11904 cygwin* | mingw* | pw32* | cegcc*)
11905 version_type=windows
11910 case $GCC,$cc_basename in
11913 library_names_spec='$libname.dll.a'
11914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11915 postinstall_cmds='base_file=`basename \$file`~
11916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11917 dldir=$destdir/`dirname \$dlpath`~
11918 test -d \$dldir || mkdir -p \$dldir~
11919 $install_prog $dir/$dlname \$dldir/$dlname~
11920 chmod a+x \$dldir/$dlname~
11921 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11922 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11925 dlpath=$dir/\$dldll~
11927 shlibpath_overrides_runpath=yes
11931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11932 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11934 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11937 # MinGW DLLs use traditional 'lib' prefix
11938 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11941 # pw32 DLLs use 'pw' prefix rather than 'lib'
11942 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11945 dynamic_linker='Win32 ld.exe'
11950 libname_spec='$name'
11951 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11952 library_names_spec='$libname.dll.lib'
11956 sys_lib_search_path_spec=
11959 for lt_path in $LIB
11962 # Let DOS variable expansion print the short 8.3 style file name.
11963 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11964 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11967 # Convert to MSYS style.
11968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11971 # Convert to unix form, then to dos form, then back to unix form
11972 # but this time dos style (no spaces!) so that the unix form looks
11973 # like /cygdrive/c/PROGRA~1:/cygdr...
11974 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11975 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11976 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11979 sys_lib_search_path_spec=$LIB
11980 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11981 # It is most probably a Windows format PATH.
11982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11986 # FIXME: find the short name or the path components, as spaces are
11987 # common. (e.g. "Program Files" -> "PROGRA~1")
11991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11992 postinstall_cmds='base_file=`basename \$file`~
11993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11994 dldir=$destdir/`dirname \$dlpath`~
11995 test -d \$dldir || mkdir -p \$dldir~
11996 $install_prog $dir/$dlname \$dldir/$dlname'
11997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11998 dlpath=$dir/\$dldll~
12000 shlibpath_overrides_runpath=yes
12001 dynamic_linker='Win32 link.exe'
12005 # Assume MSVC wrapper
12006 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12007 dynamic_linker='Win32 ld.exe'
12010 # FIXME: first we should search . and the directory the executable is in
12014 darwin* | rhapsody*)
12015 dynamic_linker="$host_os dyld"
12016 version_type=darwin
12019 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12020 soname_spec='$libname$release$major$shared_ext'
12021 shlibpath_overrides_runpath=yes
12022 shlibpath_var=DYLD_LIBRARY_PATH
12023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12025 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12030 version_type=linux # correct to gnu/linux during the next big refactor
12033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12034 soname_spec='$libname$release$shared_ext$major'
12035 shlibpath_var=LD_LIBRARY_PATH
12038 freebsd* | dragonfly*)
12039 # DragonFly does not have aout. When/if they implement a new
12040 # versioning mechanism, adjust this.
12041 if test -x /usr/bin/objformat; then
12042 objformat=`/usr/bin/objformat`
12045 freebsd[23].*) objformat=aout ;;
12046 *) objformat=elf ;;
12049 version_type=freebsd-$objformat
12050 case $version_type in
12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12053 soname_spec='$libname$release$shared_ext$major'
12058 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12062 shlibpath_var=LD_LIBRARY_PATH
12065 shlibpath_overrides_runpath=yes
12067 freebsd3.[01]* | freebsdelf3.[01]*)
12068 shlibpath_overrides_runpath=yes
12069 hardcode_into_libs=yes
12071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12073 shlibpath_overrides_runpath=no
12074 hardcode_into_libs=yes
12076 *) # from 4.6 on, and DragonFly
12077 shlibpath_overrides_runpath=yes
12078 hardcode_into_libs=yes
12084 version_type=linux # correct to gnu/linux during the next big refactor
12087 dynamic_linker="$host_os runtime_loader"
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089 soname_spec='$libname$release$shared_ext$major'
12090 shlibpath_var=LIBRARY_PATH
12091 shlibpath_overrides_runpath=no
12092 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12093 hardcode_into_libs=yes
12096 hpux9* | hpux10* | hpux11*)
12097 # Give a soname corresponding to the major version so that dld.sl refuses to
12098 # link against other versions.
12105 hardcode_into_libs=yes
12106 dynamic_linker="$host_os dld.so"
12107 shlibpath_var=LD_LIBRARY_PATH
12108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12110 soname_spec='$libname$release$shared_ext$major'
12111 if test 32 = "$HPUX_IA64_MODE"; then
12112 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12113 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12115 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12116 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12121 hardcode_into_libs=yes
12122 dynamic_linker="$host_os dld.sl"
12123 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12124 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12125 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12126 soname_spec='$libname$release$shared_ext$major'
12127 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12128 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12132 dynamic_linker="$host_os dld.sl"
12133 shlibpath_var=SHLIB_PATH
12134 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12136 soname_spec='$libname$release$shared_ext$major'
12139 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12140 postinstall_cmds='chmod 555 $lib'
12141 # or fails outright, so override atomically:
12142 install_override_mode=555
12146 version_type=linux # correct to gnu/linux during the next big refactor
12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12150 soname_spec='$libname$release$shared_ext$major'
12151 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12152 shlibpath_var=LD_LIBRARY_PATH
12153 shlibpath_overrides_runpath=no
12154 hardcode_into_libs=yes
12157 irix5* | irix6* | nonstopux*)
12159 nonstopux*) version_type=nonstopux ;;
12161 if test yes = "$lt_cv_prog_gnu_ld"; then
12162 version_type=linux # correct to gnu/linux during the next big refactor
12169 soname_spec='$libname$release$shared_ext$major'
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12172 irix5* | nonstopux*)
12173 libsuff= shlibsuff=
12176 case $LD in # libtool.m4 will add one of these switches to LD
12177 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12178 libsuff= shlibsuff= libmagic=32-bit;;
12179 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12180 libsuff=32 shlibsuff=N32 libmagic=N32;;
12181 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12182 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12183 *) libsuff= shlibsuff= libmagic=never-match;;
12187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12188 shlibpath_overrides_runpath=no
12189 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12190 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12191 hardcode_into_libs=yes
12194 # No shared lib support for Linux oldld, aout, or coff.
12195 linux*oldld* | linux*aout* | linux*coff*)
12200 version_type=none # Android doesn't support versioned libraries.
12203 library_names_spec='$libname$release$shared_ext'
12204 soname_spec='$libname$release$shared_ext'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=yes
12209 # This implies no fast_install, which is unacceptable.
12210 # Some rework will be needed to allow for fast_install
12211 # before this can be enabled.
12212 hardcode_into_libs=yes
12214 dynamic_linker='Android linker'
12215 # Don't embed -rpath directories since the linker doesn't support them.
12216 hardcode_libdir_flag_spec='-L$libdir'
12219 # This must be glibc/ELF.
12220 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12221 version_type=linux # correct to gnu/linux during the next big refactor
12224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12225 soname_spec='$libname$release$shared_ext$major'
12226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12227 shlibpath_var=LD_LIBRARY_PATH
12228 shlibpath_overrides_runpath=no
12230 # Some binutils ld are patched to set DT_RUNPATH
12231 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12232 $as_echo_n "(cached) " >&6
12234 lt_cv_shlibpath_overrides_runpath=no
12235 save_LDFLAGS=$LDFLAGS
12236 save_libdir=$libdir
12237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12252 lt_cv_shlibpath_overrides_runpath=yes
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LDFLAGS=$save_LDFLAGS
12258 libdir=$save_libdir
12262 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12264 # This implies no fast_install, which is unacceptable.
12265 # Some rework will be needed to allow for fast_install
12266 # before this can be enabled.
12267 hardcode_into_libs=yes
12269 # Ideally, we could use ldconfig to report *all* directores which are
12270 # searched for libraries, however this is still not possible. Aside from not
12271 # being certain /sbin/ldconfig is available, command
12272 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12273 # even though it is searched at run-time. Try to do the best guess by
12274 # appending ld.so.conf contents (and includes) to the search path.
12275 if test -f /etc/ld.so.conf; then
12276 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' ' '`
12277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12280 # We used to test for /lib/ld.so.1 and disable shared libraries on
12281 # powerpc, because MkLinux only supported shared libraries with the
12282 # GNU dynamic linker. Since this was broken with cross compilers,
12283 # most powerpc-linux boxes support dynamic linking these days and
12284 # people can always --disable-shared, the test was removed, and we
12285 # assume the GNU/Linux dynamic linker is in use.
12286 dynamic_linker='GNU/Linux ld.so'
12293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12294 soname_spec='${libname}${release}${shared_ext}$major'
12295 shlibpath_var=LD_LIBRARY_PATH
12296 shlibpath_overrides_runpath=no
12297 hardcode_into_libs=yes
12298 dynamic_linker='NetBSD ld.elf_so'
12305 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12306 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12308 dynamic_linker='NetBSD (a.out) ld.so'
12310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12311 soname_spec='$libname$release$shared_ext$major'
12312 dynamic_linker='NetBSD ld.elf_so'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 shlibpath_overrides_runpath=yes
12316 hardcode_into_libs=yes
12320 version_type=linux # correct to gnu/linux during the next big refactor
12321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12322 shlibpath_var=LD_LIBRARY_PATH
12323 shlibpath_overrides_runpath=yes
12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12331 soname_spec='$libname$release$shared_ext$major'
12332 shlibpath_var=LD_LIBRARY_PATH
12333 shlibpath_overrides_runpath=no
12334 hardcode_into_libs=yes
12335 dynamic_linker='ldqnx.so'
12338 openbsd* | bitrig*)
12340 sys_lib_dlsearch_path_spec=/usr/lib
12342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12347 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12349 shlibpath_var=LD_LIBRARY_PATH
12350 shlibpath_overrides_runpath=yes
12354 libname_spec='$name'
12355 version_type=windows
12359 # OS/2 can only load a DLL with a base name of 8 characters or less.
12360 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12361 v=$($ECHO $release$versuffix | tr -d .-);
12362 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12363 $ECHO $n$v`$shared_ext'
12364 library_names_spec='${libname}_dll.$libext'
12365 dynamic_linker='OS/2 ld.exe'
12366 shlibpath_var=BEGINLIBPATH
12367 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12369 postinstall_cmds='base_file=`basename \$file`~
12370 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12371 dldir=$destdir/`dirname \$dlpath`~
12372 test -d \$dldir || mkdir -p \$dldir~
12373 $install_prog $dir/$dlname \$dldir/$dlname~
12374 chmod a+x \$dldir/$dlname~
12375 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12376 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12379 dlpath=$dir/\$dldll~
12383 osf3* | osf4* | osf5*)
12387 soname_spec='$libname$release$shared_ext$major'
12388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12389 shlibpath_var=LD_LIBRARY_PATH
12390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12399 version_type=linux # correct to gnu/linux during the next big refactor
12402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12403 soname_spec='$libname$release$shared_ext$major'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=yes
12406 hardcode_into_libs=yes
12407 # ldd complains unless libraries are executable
12408 postinstall_cmds='chmod +x $lib'
12413 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12414 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 shlibpath_overrides_runpath=yes
12417 if test yes = "$with_gnu_ld"; then
12424 version_type=linux # correct to gnu/linux during the next big refactor
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426 soname_spec='$libname$release$shared_ext$major'
12427 shlibpath_var=LD_LIBRARY_PATH
12428 case $host_vendor in
12430 shlibpath_overrides_runpath=no
12432 runpath_var=LD_RUN_PATH
12440 shlibpath_overrides_runpath=no
12441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12447 if test -d /usr/nec; then
12448 version_type=linux # correct to gnu/linux during the next big refactor
12449 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12450 soname_spec='$libname$shared_ext.$major'
12451 shlibpath_var=LD_LIBRARY_PATH
12455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12460 soname_spec='$libname$release$shared_ext$major'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=yes
12463 hardcode_into_libs=yes
12464 if test yes = "$with_gnu_ld"; then
12465 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12467 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12470 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12474 sys_lib_dlsearch_path_spec='/usr/lib'
12478 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12479 version_type=linux # correct to gnu/linux during the next big refactor
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 shlibpath_var=LD_LIBRARY_PATH
12484 shlibpath_overrides_runpath=no
12485 hardcode_into_libs=yes
12489 version_type=linux # correct to gnu/linux during the next big refactor
12490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12491 soname_spec='$libname$release$shared_ext$major'
12492 shlibpath_var=LD_LIBRARY_PATH
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12500 $as_echo "$dynamic_linker" >&6; }
12501 test no = "$dynamic_linker" && can_build_shared=no
12503 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12504 if test yes = "$GCC"; then
12505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12508 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12509 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12512 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12513 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12516 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12517 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12519 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12520 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12522 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12523 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12622 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12624 if test -n "$hardcode_libdir_flag_spec" ||
12625 test -n "$runpath_var" ||
12626 test yes = "$hardcode_automatic"; then
12628 # We can hardcode non-existent directories.
12629 if test no != "$hardcode_direct" &&
12630 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12631 # have to relink, otherwise we might link with an installed library
12632 # when we should be linking with a yet-to-be-installed one
12633 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12634 test no != "$hardcode_minus_L"; then
12635 # Linking always hardcodes the temporary library directory.
12636 hardcode_action=relink
12638 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12639 hardcode_action=immediate
12642 # We cannot hardcode anything, or else we can only hardcode existing
12644 hardcode_action=unsupported
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12647 $as_echo "$hardcode_action" >&6; }
12649 if test relink = "$hardcode_action" ||
12650 test yes = "$inherit_rpath"; then
12651 # Fast installation is not supported
12652 enable_fast_install=no
12653 elif test yes = "$shlibpath_overrides_runpath" ||
12654 test no = "$enable_shared"; then
12655 # Fast installation is not necessary
12656 enable_fast_install=needless
12664 if test yes != "$enable_dlopen"; then
12665 enable_dlopen=unknown
12666 enable_dlopen_self=unknown
12667 enable_dlopen_self_static=unknown
12674 lt_cv_dlopen=load_add_on
12676 lt_cv_dlopen_self=yes
12679 mingw* | pw32* | cegcc*)
12680 lt_cv_dlopen=LoadLibrary
12685 lt_cv_dlopen=dlopen
12690 # if libdl is installed we need to link against it
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12692 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12693 if ${ac_cv_lib_dl_dlopen+:} false; then :
12694 $as_echo_n "(cached) " >&6
12696 ac_check_lib_save_LIBS=$LIBS
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h. */
12701 /* Override any GCC internal prototype to avoid an error.
12702 Use char because int might match the return type of a GCC
12703 builtin and then its argument prototype would still apply. */
12716 if ac_fn_c_try_link "$LINENO"; then :
12717 ac_cv_lib_dl_dlopen=yes
12719 ac_cv_lib_dl_dlopen=no
12721 rm -f core conftest.err conftest.$ac_objext \
12722 conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12726 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12727 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12728 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12733 lt_cv_dlopen_self=yes
12740 # Don't try to run any link tests for TPF. We know it's impossible
12741 # because TPF is a cross-compiler, and we know how we open DSOs.
12742 lt_cv_dlopen=dlopen
12744 lt_cv_dlopen_self=no
12748 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12749 if test "x$ac_cv_func_shl_load" = xyes; then :
12750 lt_cv_dlopen=shl_load
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12753 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12754 if ${ac_cv_lib_dld_shl_load+:} false; then :
12755 $as_echo_n "(cached) " >&6
12757 ac_check_lib_save_LIBS=$LIBS
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12772 return shl_load ();
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_dld_shl_load=yes
12780 ac_cv_lib_dld_shl_load=no
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12787 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12788 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12789 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12791 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12792 if test "x$ac_cv_func_dlopen" = xyes; then :
12793 lt_cv_dlopen=dlopen
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12796 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12797 if ${ac_cv_lib_dl_dlopen+:} false; then :
12798 $as_echo_n "(cached) " >&6
12800 ac_check_lib_save_LIBS=$LIBS
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12805 /* Override any GCC internal prototype to avoid an error.
12806 Use char because int might match the return type of a GCC
12807 builtin and then its argument prototype would still apply. */
12820 if ac_fn_c_try_link "$LINENO"; then :
12821 ac_cv_lib_dl_dlopen=yes
12823 ac_cv_lib_dl_dlopen=no
12825 rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12830 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12831 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12832 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12835 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12836 if ${ac_cv_lib_svld_dlopen+:} false; then :
12837 $as_echo_n "(cached) " >&6
12839 ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-lsvld $LIBS"
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12859 if ac_fn_c_try_link "$LINENO"; then :
12860 ac_cv_lib_svld_dlopen=yes
12862 ac_cv_lib_svld_dlopen=no
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12869 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12870 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12871 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12874 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12875 if ${ac_cv_lib_dld_dld_link+:} false; then :
12876 $as_echo_n "(cached) " >&6
12878 ac_check_lib_save_LIBS=$LIBS
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12883 /* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
12893 return dld_link ();
12898 if ac_fn_c_try_link "$LINENO"; then :
12899 ac_cv_lib_dld_dld_link=yes
12901 ac_cv_lib_dld_dld_link=no
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LIBS=$ac_check_lib_save_LIBS
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12908 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12909 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12910 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12931 if test no = "$lt_cv_dlopen"; then
12937 case $lt_cv_dlopen in
12939 save_CPPFLAGS=$CPPFLAGS
12940 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12942 save_LDFLAGS=$LDFLAGS
12943 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12946 LIBS="$lt_cv_dlopen_libs $LIBS"
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12949 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12950 if ${lt_cv_dlopen_self+:} false; then :
12951 $as_echo_n "(cached) " >&6
12953 if test yes = "$cross_compiling"; then :
12954 lt_cv_dlopen_self=cross
12956 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12957 lt_status=$lt_dlunknown
12958 cat > conftest.$ac_ext <<_LT_EOF
12959 #line $LINENO "configure"
12960 #include "confdefs.h"
12969 # define LT_DLGLOBAL RTLD_GLOBAL
12972 # define LT_DLGLOBAL DL_GLOBAL
12974 # define LT_DLGLOBAL 0
12978 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12979 find out it does not work in some platform. */
12980 #ifndef LT_DLLAZY_OR_NOW
12982 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12985 # define LT_DLLAZY_OR_NOW DL_LAZY
12988 # define LT_DLLAZY_OR_NOW RTLD_NOW
12991 # define LT_DLLAZY_OR_NOW DL_NOW
12993 # define LT_DLLAZY_OR_NOW 0
13000 /* When -fvisibility=hidden is used, assume the code has been annotated
13001 correspondingly for the symbols needed. */
13002 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13003 int fnord () __attribute__((visibility("default")));
13006 int fnord () { return 42; }
13009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13010 int status = $lt_dlunknown;
13014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13017 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13018 else puts (dlerror ());
13020 /* dlclose (self); */
13028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13029 (eval $ac_link) 2>&5
13031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13032 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13033 (./conftest; exit; ) >&5 2>/dev/null
13035 case x$lt_status in
13036 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13037 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13038 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13041 # compilation failed
13042 lt_cv_dlopen_self=no
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13050 $as_echo "$lt_cv_dlopen_self" >&6; }
13052 if test yes = "$lt_cv_dlopen_self"; then
13053 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13055 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13056 if ${lt_cv_dlopen_self_static+:} false; then :
13057 $as_echo_n "(cached) " >&6
13059 if test yes = "$cross_compiling"; then :
13060 lt_cv_dlopen_self_static=cross
13062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13063 lt_status=$lt_dlunknown
13064 cat > conftest.$ac_ext <<_LT_EOF
13065 #line $LINENO "configure"
13066 #include "confdefs.h"
13075 # define LT_DLGLOBAL RTLD_GLOBAL
13078 # define LT_DLGLOBAL DL_GLOBAL
13080 # define LT_DLGLOBAL 0
13084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13085 find out it does not work in some platform. */
13086 #ifndef LT_DLLAZY_OR_NOW
13088 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13091 # define LT_DLLAZY_OR_NOW DL_LAZY
13094 # define LT_DLLAZY_OR_NOW RTLD_NOW
13097 # define LT_DLLAZY_OR_NOW DL_NOW
13099 # define LT_DLLAZY_OR_NOW 0
13106 /* When -fvisibility=hidden is used, assume the code has been annotated
13107 correspondingly for the symbols needed. */
13108 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13109 int fnord () __attribute__((visibility("default")));
13112 int fnord () { return 42; }
13115 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13116 int status = $lt_dlunknown;
13120 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13123 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13124 else puts (dlerror ());
13126 /* dlclose (self); */
13134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13135 (eval $ac_link) 2>&5
13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13139 (./conftest; exit; ) >&5 2>/dev/null
13141 case x$lt_status in
13142 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13143 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13144 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13147 # compilation failed
13148 lt_cv_dlopen_self_static=no
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13156 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13159 CPPFLAGS=$save_CPPFLAGS
13160 LDFLAGS=$save_LDFLAGS
13165 case $lt_cv_dlopen_self in
13166 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13167 *) enable_dlopen_self=unknown ;;
13170 case $lt_cv_dlopen_self_static in
13171 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13172 *) enable_dlopen_self_static=unknown ;;
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13195 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13196 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13197 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13198 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13200 $as_echo "yes" >&6; }
13202 # FIXME - insert some real tests, host_os isn't really good enough
13205 if test -n "$STRIP"; then
13206 striplib="$STRIP -x"
13207 old_striplib="$STRIP -S"
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13209 $as_echo "yes" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13233 # Report what library types will actually be built
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13235 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13237 $as_echo "$can_build_shared" >&6; }
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13240 $as_echo_n "checking whether to build shared libraries... " >&6; }
13241 test no = "$can_build_shared" && enable_shared=no
13243 # On AIX, shared libraries and static libraries use the same namespace, and
13244 # are all built from PIC.
13247 test yes = "$enable_shared" && enable_static=no
13248 if test -n "$RANLIB"; then
13249 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13250 postinstall_cmds='$RANLIB $lib'
13255 if test ia64 != "$host_cpu"; then
13256 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13257 yes,aix,yes) ;; # shared object as lib.so file only
13258 yes,svr4,*) ;; # shared object as lib.so archive member only
13259 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13265 $as_echo "$enable_shared" >&6; }
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13268 $as_echo_n "checking whether to build static libraries... " >&6; }
13269 # Make sure either enable_shared or enable_static is yes.
13270 test yes = "$enable_shared" || enable_static=yes
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13272 $as_echo "$enable_static" >&6; }
13279 ac_cpp='$CPP $CPPFLAGS'
13280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13300 ac_config_commands="$ac_config_commands libtool"
13305 # Only expand once:
13309 # Check whether --enable-largefile was given.
13310 if test "${enable_largefile+set}" = set; then :
13311 enableval=$enable_largefile;
13314 if test "$enable_largefile" != no; then
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13317 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13318 if ${ac_cv_sys_largefile_CC+:} false; then :
13319 $as_echo_n "(cached) " >&6
13321 ac_cv_sys_largefile_CC=no
13322 if test "$GCC" != yes; then
13325 # IRIX 6.2 and later do not support large files by default,
13326 # so use the C compiler's -n32 option if that helps.
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13329 #include <sys/types.h>
13330 /* Check that off_t can represent 2**63 - 1 correctly.
13331 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13332 since some C++ compilers masquerading as C compilers
13333 incorrectly reject 9223372036854775807. */
13334 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13335 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13336 && LARGE_OFF_T % 2147483647 == 1)
13346 if ac_fn_c_try_compile "$LINENO"; then :
13349 rm -f core conftest.err conftest.$ac_objext
13351 if ac_fn_c_try_compile "$LINENO"; then :
13352 ac_cv_sys_largefile_CC=' -n32'; break
13354 rm -f core conftest.err conftest.$ac_objext
13358 rm -f conftest.$ac_ext
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13362 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13363 if test "$ac_cv_sys_largefile_CC" != no; then
13364 CC=$CC$ac_cv_sys_largefile_CC
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13368 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13369 if ${ac_cv_sys_file_offset_bits+:} false; then :
13370 $as_echo_n "(cached) " >&6
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 #include <sys/types.h>
13376 /* Check that off_t can represent 2**63 - 1 correctly.
13377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13378 since some C++ compilers masquerading as C compilers
13379 incorrectly reject 9223372036854775807. */
13380 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13382 && LARGE_OFF_T % 2147483647 == 1)
13392 if ac_fn_c_try_compile "$LINENO"; then :
13393 ac_cv_sys_file_offset_bits=no; break
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398 #define _FILE_OFFSET_BITS 64
13399 #include <sys/types.h>
13400 /* Check that off_t can represent 2**63 - 1 correctly.
13401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13402 since some C++ compilers masquerading as C compilers
13403 incorrectly reject 9223372036854775807. */
13404 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13406 && LARGE_OFF_T % 2147483647 == 1)
13416 if ac_fn_c_try_compile "$LINENO"; then :
13417 ac_cv_sys_file_offset_bits=64; break
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13420 ac_cv_sys_file_offset_bits=unknown
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
13425 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13426 case $ac_cv_sys_file_offset_bits in #(
13429 cat >>confdefs.h <<_ACEOF
13430 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13435 if test $ac_cv_sys_file_offset_bits = unknown; then
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
13437 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13438 if ${ac_cv_sys_large_files+:} false; then :
13439 $as_echo_n "(cached) " >&6
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444 #include <sys/types.h>
13445 /* Check that off_t can represent 2**63 - 1 correctly.
13446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13447 since some C++ compilers masquerading as C compilers
13448 incorrectly reject 9223372036854775807. */
13449 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13451 && LARGE_OFF_T % 2147483647 == 1)
13461 if ac_fn_c_try_compile "$LINENO"; then :
13462 ac_cv_sys_large_files=no; break
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 #define _LARGE_FILES 1
13468 #include <sys/types.h>
13469 /* Check that off_t can represent 2**63 - 1 correctly.
13470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13471 since some C++ compilers masquerading as C compilers
13472 incorrectly reject 9223372036854775807. */
13473 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13475 && LARGE_OFF_T % 2147483647 == 1)
13485 if ac_fn_c_try_compile "$LINENO"; then :
13486 ac_cv_sys_large_files=1; break
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489 ac_cv_sys_large_files=unknown
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
13494 $as_echo "$ac_cv_sys_large_files" >&6; }
13495 case $ac_cv_sys_large_files in #(
13498 cat >>confdefs.h <<_ACEOF
13499 #define _LARGE_FILES $ac_cv_sys_large_files
13510 for ac_prog in pod2man
13512 # Extract the first word of "$ac_prog", so it can be a program name with args.
13513 set dummy $ac_prog; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_path_POD2MAN+:} false; then :
13517 $as_echo_n "(cached) " >&6
13521 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
13524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13525 for as_dir in $PATH
13528 test -z "$as_dir" && as_dir=.
13529 for ac_exec_ext in '' $ac_executable_extensions; do
13530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13531 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
13532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13542 POD2MAN=$ac_cv_path_POD2MAN
13543 if test -n "$POD2MAN"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
13545 $as_echo "$POD2MAN" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13548 $as_echo "no" >&6; }
13552 test -n "$POD2MAN" && break
13555 test -z "${POD2MAN}" && as_fn_error $? "I couldn't find pod2man; make sure it's installed and in your path" "$LINENO" 5
13559 # Extract the first word of "$ac_prog", so it can be a program name with args.
13560 set dummy $ac_prog; ac_word=$2
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13562 $as_echo_n "checking for $ac_word... " >&6; }
13563 if ${ac_cv_path_TAR+:} false; then :
13564 $as_echo_n "(cached) " >&6
13568 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13578 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13589 TAR=$ac_cv_path_TAR
13590 if test -n "$TAR"; then
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
13592 $as_echo "$TAR" >&6; }
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595 $as_echo "no" >&6; }
13599 test -n "$TAR" && break
13602 for ac_prog in ps2pdf
13604 # Extract the first word of "$ac_prog", so it can be a program name with args.
13605 set dummy $ac_prog; ac_word=$2
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13607 $as_echo_n "checking for $ac_word... " >&6; }
13608 if ${ac_cv_path_PS2PDF+:} false; then :
13609 $as_echo_n "(cached) " >&6
13613 ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 PS2PDF=$ac_cv_path_PS2PDF
13635 if test -n "$PS2PDF"; then
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS2PDF" >&5
13637 $as_echo "$PS2PDF" >&6; }
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13640 $as_echo "no" >&6; }
13644 test -n "$PS2PDF" && break
13647 for ac_prog in dvips
13649 # Extract the first word of "$ac_prog", so it can be a program name with args.
13650 set dummy $ac_prog; ac_word=$2
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652 $as_echo_n "checking for $ac_word... " >&6; }
13653 if ${ac_cv_path_DVIPS+:} false; then :
13654 $as_echo_n "(cached) " >&6
13658 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668 ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 DVIPS=$ac_cv_path_DVIPS
13680 if test -n "$DVIPS"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
13682 $as_echo "$DVIPS" >&6; }
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13689 test -n "$DVIPS" && break
13692 for ac_prog in latex2html
13694 # Extract the first word of "$ac_prog", so it can be a program name with args.
13695 set dummy $ac_prog; ac_word=$2
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13697 $as_echo_n "checking for $ac_word... " >&6; }
13698 if ${ac_cv_path_LATEX2HTML+:} false; then :
13699 $as_echo_n "(cached) " >&6
13701 case $LATEX2HTML in
13703 ac_cv_path_LATEX2HTML="$LATEX2HTML" # Let the user override the test with a path.
13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13707 for as_dir in $PATH
13710 test -z "$as_dir" && as_dir=.
13711 for ac_exec_ext in '' $ac_executable_extensions; do
13712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13713 ac_cv_path_LATEX2HTML="$as_dir/$ac_word$ac_exec_ext"
13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13724 LATEX2HTML=$ac_cv_path_LATEX2HTML
13725 if test -n "$LATEX2HTML"; then
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX2HTML" >&5
13727 $as_echo "$LATEX2HTML" >&6; }
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13730 $as_echo "no" >&6; }
13734 test -n "$LATEX2HTML" && break
13737 for ac_prog in latex
13739 # Extract the first word of "$ac_prog", so it can be a program name with args.
13740 set dummy $ac_prog; ac_word=$2
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13742 $as_echo_n "checking for $ac_word... " >&6; }
13743 if ${ac_cv_path_LATEX+:} false; then :
13744 $as_echo_n "(cached) " >&6
13748 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 LATEX=$ac_cv_path_LATEX
13770 if test -n "$LATEX"; then
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
13772 $as_echo "$LATEX" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13775 $as_echo "no" >&6; }
13779 test -n "$LATEX" && break
13782 if test "${enable_docs_gen}" = "yes"; then
13783 test -z "${TAR}" && as_fn_error $? "Couldn't find tar" "$LINENO" 5
13784 test -z "${PS2PDF}" && as_fn_error $? "Couldn't find ps2pdf" "$LINENO" 5
13785 test -z "${DVIPS}" && as_fn_error $? "Couldn't find dvips" "$LINENO" 5
13786 test -z "${LATEX2HTML}" && as_fn_error $? "Couldn't find latex2html" "$LINENO" 5
13787 test -z "${LATEX}" && as_fn_error $? "Couldn't find latex" "$LINENO" 5
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
13791 $as_echo_n "checking for library containing strerror... " >&6; }
13792 if ${ac_cv_search_strerror+:} false; then :
13793 $as_echo_n "(cached) " >&6
13795 ac_func_search_save_LIBS=$LIBS
13796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797 /* end confdefs.h. */
13799 /* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
13809 return strerror ();
13814 for ac_lib in '' cposix; do
13815 if test -z "$ac_lib"; then
13816 ac_res="none required"
13819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13821 if ac_fn_c_try_link "$LINENO"; then :
13822 ac_cv_search_strerror=$ac_res
13824 rm -f core conftest.err conftest.$ac_objext \
13826 if ${ac_cv_search_strerror+:} false; then :
13830 if ${ac_cv_search_strerror+:} false; then :
13833 ac_cv_search_strerror=no
13835 rm conftest.$ac_ext
13836 LIBS=$ac_func_search_save_LIBS
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
13839 $as_echo "$ac_cv_search_strerror" >&6; }
13840 ac_res=$ac_cv_search_strerror
13841 if test "$ac_res" != no; then :
13842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13847 $as_echo_n "checking for ANSI C header files... " >&6; }
13848 if ${ac_cv_header_stdc+:} false; then :
13849 $as_echo_n "(cached) " >&6
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <stdlib.h>
13854 #include <stdarg.h>
13855 #include <string.h>
13866 if ac_fn_c_try_compile "$LINENO"; then :
13867 ac_cv_header_stdc=yes
13869 ac_cv_header_stdc=no
13871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13873 if test $ac_cv_header_stdc = yes; then
13874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877 #include <string.h>
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "memchr" >/dev/null 2>&1; then :
13884 ac_cv_header_stdc=no
13890 if test $ac_cv_header_stdc = yes; then
13891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13894 #include <stdlib.h>
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 $EGREP "free" >/dev/null 2>&1; then :
13901 ac_cv_header_stdc=no
13907 if test $ac_cv_header_stdc = yes; then
13908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13909 if test "$cross_compiling" = yes; then :
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13915 #include <stdlib.h>
13916 #if ((' ' & 0x0FF) == 0x020)
13917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13920 # define ISLOWER(c) \
13921 (('a' <= (c) && (c) <= 'i') \
13922 || ('j' <= (c) && (c) <= 'r') \
13923 || ('s' <= (c) && (c) <= 'z'))
13924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13932 for (i = 0; i < 256; i++)
13933 if (XOR (islower (i), ISLOWER (i))
13934 || toupper (i) != TOUPPER (i))
13939 if ac_fn_c_try_run "$LINENO"; then :
13942 ac_cv_header_stdc=no
13944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13945 conftest.$ac_objext conftest.beam conftest.$ac_ext
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13951 $as_echo "$ac_cv_header_stdc" >&6; }
13952 if test $ac_cv_header_stdc = yes; then
13954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13959 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13960 if ${ac_cv_lib_dl_dlopen+:} false; then :
13961 $as_echo_n "(cached) " >&6
13963 ac_check_lib_save_LIBS=$LIBS
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13968 /* Override any GCC internal prototype to avoid an error.
13969 Use char because int might match the return type of a GCC
13970 builtin and then its argument prototype would still apply. */
13983 if ac_fn_c_try_link "$LINENO"; then :
13984 ac_cv_lib_dl_dlopen=yes
13986 ac_cv_lib_dl_dlopen=no
13988 rm -f core conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
13990 LIBS=$ac_check_lib_save_LIBS
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13993 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13994 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13995 cat >>confdefs.h <<_ACEOF
13996 #define HAVE_LIBDL 1
14004 # Verify keyutils version 1.0 or higher
14005 if test -z "${KEYUTILS_LIBS}"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for keyctl_search in -lkeyutils" >&5
14009 $as_echo_n "checking for keyctl_search in -lkeyutils... " >&6; }
14010 if ${ac_cv_lib_keyutils_keyctl_search+:} false; then :
14011 $as_echo_n "(cached) " >&6
14013 ac_check_lib_save_LIBS=$LIBS
14014 LIBS="-lkeyutils $LIBS"
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14024 char keyctl_search ();
14028 return keyctl_search ();
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_lib_keyutils_keyctl_search=yes
14036 ac_cv_lib_keyutils_keyctl_search=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_keyutils_keyctl_search" >&5
14043 $as_echo "$ac_cv_lib_keyutils_keyctl_search" >&6; }
14044 if test "x$ac_cv_lib_keyutils_keyctl_search" = xyes; then :
14045 KEYUTILS_LIBS="-lkeyutils"
14047 as_fn_error $? "eCryptfs userspace tools require Keyutils version 1.0 or higher.
14048 You might find the package at:
14049 http://people.redhat.com/~dhowells/keyutils/
14057 if test -z "${OPENSSL_LIBS}"; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14061 $as_echo_n "checking for OPENSSL... " >&6; }
14063 if test -n "$OPENSSL_CFLAGS"; then
14064 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14065 elif test -n "$PKG_CONFIG"; then
14066 if test -n "$PKG_CONFIG" && \
14067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14068 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; then
14072 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "libcrypto >= 0.9.7" 2>/dev/null`
14073 test "x$?" != "x0" && pkg_failed=yes
14080 if test -n "$OPENSSL_LIBS"; then
14081 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14082 elif test -n "$PKG_CONFIG"; then
14083 if test -n "$PKG_CONFIG" && \
14084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcrypto >= 0.9.7\""; } >&5
14085 ($PKG_CONFIG --exists --print-errors "libcrypto >= 0.9.7") 2>&5
14087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14088 test $ac_status = 0; }; then
14089 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "libcrypto >= 0.9.7" 2>/dev/null`
14090 test "x$?" != "x0" && pkg_failed=yes
14100 if test $pkg_failed = yes; then
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102 $as_echo "no" >&6; }
14104 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14105 _pkg_short_errors_supported=yes
14107 _pkg_short_errors_supported=no
14109 if test $_pkg_short_errors_supported = yes; then
14110 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14112 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcrypto >= 0.9.7" 2>&1`
14114 # Put the nasty error message in config.log where it belongs
14115 echo "$OPENSSL_PKG_ERRORS" >&5
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14120 $as_echo_n "checking for OPENSSL... " >&6; }
14122 if test -n "$OPENSSL_CFLAGS"; then
14123 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14124 elif test -n "$PKG_CONFIG"; then
14125 if test -n "$PKG_CONFIG" && \
14126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14127 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14130 test $ac_status = 0; }; then
14131 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
14132 test "x$?" != "x0" && pkg_failed=yes
14139 if test -n "$OPENSSL_LIBS"; then
14140 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14141 elif test -n "$PKG_CONFIG"; then
14142 if test -n "$PKG_CONFIG" && \
14143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14144 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14147 test $ac_status = 0; }; then
14148 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
14149 test "x$?" != "x0" && pkg_failed=yes
14159 if test $pkg_failed = yes; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14163 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14164 _pkg_short_errors_supported=yes
14166 _pkg_short_errors_supported=no
14168 if test $_pkg_short_errors_supported = yes; then
14169 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14171 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14173 # Put the nasty error message in config.log where it belongs
14174 echo "$OPENSSL_PKG_ERRORS" >&5
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14177 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14178 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14179 $as_echo_n "(cached) " >&6
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lcrypto $LIBS"
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14186 /* Override any GCC internal prototype to avoid an error.
14187 Use char because int might match the return type of a GCC
14188 builtin and then its argument prototype would still apply. */
14192 char RSA_version ();
14196 return RSA_version ();
14201 if ac_fn_c_try_link "$LINENO"; then :
14202 ac_cv_lib_crypto_RSA_version=yes
14204 ac_cv_lib_crypto_RSA_version=no
14206 rm -f core conftest.err conftest.$ac_objext \
14207 conftest$ac_exeext conftest.$ac_ext
14208 LIBS=$ac_check_lib_save_LIBS
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14211 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14212 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14215 OPENSSL_LIBS="-lcrypto"
14223 elif test $pkg_failed = untried; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14227 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14228 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14229 $as_echo_n "(cached) " >&6
14231 ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-lcrypto $LIBS"
14233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14234 /* end confdefs.h. */
14236 /* Override any GCC internal prototype to avoid an error.
14237 Use char because int might match the return type of a GCC
14238 builtin and then its argument prototype would still apply. */
14242 char RSA_version ();
14246 return RSA_version ();
14251 if ac_fn_c_try_link "$LINENO"; then :
14252 ac_cv_lib_crypto_RSA_version=yes
14254 ac_cv_lib_crypto_RSA_version=no
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 LIBS=$ac_check_lib_save_LIBS
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14261 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14262 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14265 OPENSSL_LIBS="-lcrypto"
14274 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14275 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14277 $as_echo "yes" >&6; }
14281 elif test $pkg_failed = untried; then
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14283 $as_echo "no" >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
14287 $as_echo_n "checking for OPENSSL... " >&6; }
14289 if test -n "$OPENSSL_CFLAGS"; then
14290 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
14291 elif test -n "$PKG_CONFIG"; then
14292 if test -n "$PKG_CONFIG" && \
14293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14294 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14297 test $ac_status = 0; }; then
14298 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= 0.9.7" 2>/dev/null`
14299 test "x$?" != "x0" && pkg_failed=yes
14306 if test -n "$OPENSSL_LIBS"; then
14307 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
14308 elif test -n "$PKG_CONFIG"; then
14309 if test -n "$PKG_CONFIG" && \
14310 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= 0.9.7\""; } >&5
14311 ($PKG_CONFIG --exists --print-errors "openssl >= 0.9.7") 2>&5
14313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14314 test $ac_status = 0; }; then
14315 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= 0.9.7" 2>/dev/null`
14316 test "x$?" != "x0" && pkg_failed=yes
14326 if test $pkg_failed = yes; then
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14328 $as_echo "no" >&6; }
14330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14331 _pkg_short_errors_supported=yes
14333 _pkg_short_errors_supported=no
14335 if test $_pkg_short_errors_supported = yes; then
14336 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14338 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= 0.9.7" 2>&1`
14340 # Put the nasty error message in config.log where it belongs
14341 echo "$OPENSSL_PKG_ERRORS" >&5
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14344 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14345 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14346 $as_echo_n "(cached) " >&6
14348 ac_check_lib_save_LIBS=$LIBS
14349 LIBS="-lcrypto $LIBS"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14359 char RSA_version ();
14363 return RSA_version ();
14368 if ac_fn_c_try_link "$LINENO"; then :
14369 ac_cv_lib_crypto_RSA_version=yes
14371 ac_cv_lib_crypto_RSA_version=no
14373 rm -f core conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
14375 LIBS=$ac_check_lib_save_LIBS
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14378 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14379 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14382 OPENSSL_LIBS="-lcrypto"
14390 elif test $pkg_failed = untried; then
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14392 $as_echo "no" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_version in -lcrypto" >&5
14394 $as_echo_n "checking for RSA_version in -lcrypto... " >&6; }
14395 if ${ac_cv_lib_crypto_RSA_version+:} false; then :
14396 $as_echo_n "(cached) " >&6
14398 ac_check_lib_save_LIBS=$LIBS
14399 LIBS="-lcrypto $LIBS"
14400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14401 /* end confdefs.h. */
14403 /* Override any GCC internal prototype to avoid an error.
14404 Use char because int might match the return type of a GCC
14405 builtin and then its argument prototype would still apply. */
14409 char RSA_version ();
14413 return RSA_version ();
14418 if ac_fn_c_try_link "$LINENO"; then :
14419 ac_cv_lib_crypto_RSA_version=yes
14421 ac_cv_lib_crypto_RSA_version=no
14423 rm -f core conftest.err conftest.$ac_objext \
14424 conftest$ac_exeext conftest.$ac_ext
14425 LIBS=$ac_check_lib_save_LIBS
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_version" >&5
14428 $as_echo "$ac_cv_lib_crypto_RSA_version" >&6; }
14429 if test "x$ac_cv_lib_crypto_RSA_version" = xyes; then :
14432 OPENSSL_LIBS="-lcrypto"
14441 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14442 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14444 $as_echo "yes" >&6; }
14449 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
14450 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
14463 $as_echo_n "checking for NSS... " >&6; }
14465 if test -n "$NSS_CFLAGS"; then
14466 pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
14467 elif test -n "$PKG_CONFIG"; then
14468 if test -n "$PKG_CONFIG" && \
14469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
14470 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
14472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14473 test $ac_status = 0; }; then
14474 pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
14475 test "x$?" != "x0" && pkg_failed=yes
14482 if test -n "$NSS_LIBS"; then
14483 pkg_cv_NSS_LIBS="$NSS_LIBS"
14484 elif test -n "$PKG_CONFIG"; then
14485 if test -n "$PKG_CONFIG" && \
14486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
14487 ($PKG_CONFIG --exists --print-errors "nss") 2>&5
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; }; then
14491 pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
14492 test "x$?" != "x0" && pkg_failed=yes
14502 if test $pkg_failed = yes; then
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14506 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14507 _pkg_short_errors_supported=yes
14509 _pkg_short_errors_supported=no
14511 if test $_pkg_short_errors_supported = yes; then
14512 NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
14514 NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
14516 # Put the nasty error message in config.log where it belongs
14517 echo "$NSS_PKG_ERRORS" >&5
14520 elif test $pkg_failed = untried; then
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14522 $as_echo "no" >&6; }
14525 NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
14526 NSS_LIBS=$pkg_cv_NSS_LIBS
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14528 $as_echo "yes" >&6; }
14530 NSS_CFLAGS="${NSS_CFLAGS} -DENABLE_NSS"
14533 if test "${enable_nss}" = "detect" ; then
14534 if test "$have_nss" == "yes" ; then
14541 OLD_CFLAGS="${CFLAGS}"
14542 CFLAGS="${CFLAGS} ${OPENSSL_CFLAGS}"
14543 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
14544 if test "x$ac_cv_header_openssl_rsa_h" = xyes; then :
14551 CFLAGS="${OLD_CFLAGS}"
14553 if test "${enable_pywrap}" != "no" ; then
14560 if test -n "$PYTHON"; then
14561 # If the user set $PYTHON, use it and don't search something else.
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
14563 $as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
14565 # split strings by '.' and convert to numeric. Append some zeros
14566 # because we need at least 4 digits for the hex conversion.
14567 # map returns an iterator in Python 3.0 and a list in 2.x
14568 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14570 # xrange is not present in Python 3.0 and range returns an iterator
14571 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14572 sys.exit(sys.hexversion < minverhex)"
14573 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14574 ($PYTHON -c "$prog") >&5 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; then :
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14579 $as_echo "yes" >&6; }
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14582 $as_echo "no" >&6; }
14583 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14585 am_display_PYTHON=$PYTHON
14587 # Otherwise, try each interpreter until we find one that satisfies
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
14590 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
14591 if ${am_cv_pathless_PYTHON+:} false; then :
14592 $as_echo_n "(cached) " >&6
14595 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
14596 test "$am_cv_pathless_PYTHON" = none && break
14598 # split strings by '.' and convert to numeric. Append some zeros
14599 # because we need at least 4 digits for the hex conversion.
14600 # map returns an iterator in Python 3.0 and a list in 2.x
14601 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
14603 # xrange is not present in Python 3.0 and range returns an iterator
14604 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14605 sys.exit(sys.hexversion < minverhex)"
14606 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14607 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; then :
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14616 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14617 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14618 if test "$am_cv_pathless_PYTHON" = none; then
14621 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14622 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14624 $as_echo_n "checking for $ac_word... " >&6; }
14625 if ${ac_cv_path_PYTHON+:} false; then :
14626 $as_echo_n "(cached) " >&6
14630 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14634 for as_dir in $PATH
14637 test -z "$as_dir" && as_dir=.
14638 for ac_exec_ext in '' $ac_executable_extensions; do
14639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14640 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14651 PYTHON=$ac_cv_path_PYTHON
14652 if test -n "$PYTHON"; then
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14654 $as_echo "$PYTHON" >&6; }
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657 $as_echo "no" >&6; }
14662 am_display_PYTHON=$am_cv_pathless_PYTHON
14666 if test "$PYTHON" = :; then
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14672 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14673 if ${am_cv_python_version+:} false; then :
14674 $as_echo_n "(cached) " >&6
14676 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14679 $as_echo "$am_cv_python_version" >&6; }
14680 PYTHON_VERSION=$am_cv_python_version
14684 PYTHON_PREFIX='${prefix}'
14686 PYTHON_EXEC_PREFIX='${exec_prefix}'
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14691 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14692 if ${am_cv_python_platform+:} false; then :
14693 $as_echo_n "(cached) " >&6
14695 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14698 $as_echo "$am_cv_python_platform" >&6; }
14699 PYTHON_PLATFORM=$am_cv_python_platform
14702 # Just factor out some code duplication.
14703 am_python_setup_sysconfig="\
14705 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14706 # with python 3.x. See automake bug#10227.
14709 except ImportError:
14710 can_use_sysconfig = 0
14712 can_use_sysconfig = 1
14713 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14714 # <https://github.com/pypa/virtualenv/issues/118>
14716 from platform import python_implementation
14717 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14718 can_use_sysconfig = 0
14719 except ImportError:
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14724 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14725 if ${am_cv_python_pythondir+:} false; then :
14726 $as_echo_n "(cached) " >&6
14728 if test "x$prefix" = xNONE
14730 am_py_prefix=$ac_default_prefix
14732 am_py_prefix=$prefix
14734 am_cv_python_pythondir=`$PYTHON -c "
14735 $am_python_setup_sysconfig
14736 if can_use_sysconfig:
14737 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14739 from distutils import sysconfig
14740 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14741 sys.stdout.write(sitedir)"`
14742 case $am_cv_python_pythondir in
14744 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14745 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14748 case $am_py_prefix in
14751 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14759 $as_echo "$am_cv_python_pythondir" >&6; }
14760 pythondir=$am_cv_python_pythondir
14764 pkgpythondir=\${pythondir}/$PACKAGE
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14768 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14769 if ${am_cv_python_pyexecdir+:} false; then :
14770 $as_echo_n "(cached) " >&6
14772 if test "x$exec_prefix" = xNONE
14774 am_py_exec_prefix=$am_py_prefix
14776 am_py_exec_prefix=$exec_prefix
14778 am_cv_python_pyexecdir=`$PYTHON -c "
14779 $am_python_setup_sysconfig
14780 if can_use_sysconfig:
14781 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14783 from distutils import sysconfig
14784 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14785 sys.stdout.write(sitedir)"`
14786 case $am_cv_python_pyexecdir in
14787 $am_py_exec_prefix*)
14788 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14789 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14792 case $am_py_exec_prefix in
14795 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14803 $as_echo "$am_cv_python_pyexecdir" >&6; }
14804 pyexecdir=$am_cv_python_pyexecdir
14808 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14816 # Extract the first word of "swig", so it can be a program name with args.
14817 set dummy swig; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14819 $as_echo_n "checking for $ac_word... " >&6; }
14820 if ${ac_cv_path_SWIG+:} false; then :
14821 $as_echo_n "(cached) " >&6
14825 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
14828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14829 for as_dir in $PATH
14832 test -z "$as_dir" && as_dir=.
14833 for ac_exec_ext in '' $ac_executable_extensions; do
14834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14835 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
14836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14846 SWIG=$ac_cv_path_SWIG
14847 if test -n "$SWIG"; then
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
14849 $as_echo "$SWIG" >&6; }
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14852 $as_echo "no" >&6; }
14856 if test -z "$SWIG" ; then
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
14858 $as_echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
14859 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
14860 elif test -n "1.3.31" ; then
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG version" >&5
14862 $as_echo_n "checking for SWIG version... " >&6; }
14863 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
14865 $as_echo "$swig_version" >&6; }
14866 if test -n "$swig_version" ; then
14867 # Calculate the required version number components
14869 required_major=`echo $required | sed 's/[^0-9].*//'`
14870 if test -z "$required_major" ; then
14873 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14874 required_minor=`echo $required | sed 's/[^0-9].*//'`
14875 if test -z "$required_minor" ; then
14878 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
14879 required_patch=`echo $required | sed 's/[^0-9].*//'`
14880 if test -z "$required_patch" ; then
14883 # Calculate the available version number components
14884 available=$swig_version
14885 available_major=`echo $available | sed 's/[^0-9].*//'`
14886 if test -z "$available_major" ; then
14889 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14890 available_minor=`echo $available | sed 's/[^0-9].*//'`
14891 if test -z "$available_minor" ; then
14894 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
14895 available_patch=`echo $available | sed 's/[^0-9].*//'`
14896 if test -z "$available_patch" ; then
14899 if test $available_major -ne $required_major \
14900 -o $available_minor -ne $required_minor \
14901 -o $available_patch -lt $required_patch ; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= 1.3.31 is required. You have $swig_version. You should look at http://www.swig.org" >&5
14903 $as_echo "$as_me: WARNING: SWIG version >= 1.3.31 is required. You have $swig_version. You should look at http://www.swig.org" >&2;}
14904 SWIG='echo "Error: SWIG version >= 1.3.31 is required. You have '"$swig_version"'. You should look at http://www.swig.org" ; false'
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG executable is '$SWIG'" >&5
14907 $as_echo "$as_me: SWIG executable is '$SWIG'" >&6;}
14908 SWIG_LIB=`$SWIG -swiglib`
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: SWIG library directory is '$SWIG_LIB'" >&5
14910 $as_echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
14914 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
14915 SWIG='echo "Error: Cannot determine SWIG version. You should look at http://www.swig.org" ; false'
14922 # Allow the use of a (user set) custom python version
14926 # Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
14927 set dummy python$PYTHON_VERSION; ac_word=$2
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14929 $as_echo_n "checking for $ac_word... " >&6; }
14930 if ${ac_cv_path_PYTHON+:} false; then :
14931 $as_echo_n "(cached) " >&6
14935 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939 for as_dir in $PATH
14942 test -z "$as_dir" && as_dir=.
14943 for ac_exec_ext in '' $ac_executable_extensions; do
14944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14945 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14956 PYTHON=$ac_cv_path_PYTHON
14957 if test -n "$PYTHON"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14959 $as_echo "$PYTHON" >&6; }
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962 $as_echo "no" >&6; }
14966 if test -z "$PYTHON"; then
14967 as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
14972 # Check for a version of Python >= 2.1.0
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
14975 $as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
14976 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
14977 ver = string.split(sys.version)[0]; \
14978 print ver >= '2.1.0'"`
14979 if test "$ac_supports_python_ver" != "True"; then
14980 if test -z "$PYTHON_NOVERSIONCHECK"; then
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14986 This version of the AC_PYTHON_DEVEL macro
14987 doesn't work properly with versions of Python before
14988 2.1.0. You may need to re-run configure, setting the
14989 variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
14990 PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
14991 Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
14992 to something else than an empty string.
14994 See \`config.log' for more details" "$LINENO" 5; }
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
14997 $as_echo "skip at user request" >&6; }
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15005 # if the macro parameter ``version'' is set, honour it
15007 if test -n ""; then
15008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
15009 $as_echo_n "checking for a version of Python ... " >&6; }
15010 ac_supports_python_ver=`$PYTHON -c "import sys, string; \
15011 ver = string.split(sys.version)[0]; \
15013 if test "$ac_supports_python_ver" = "True"; then
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15015 $as_echo "yes" >&6; }
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15018 $as_echo "no" >&6; }
15019 as_fn_error $? "this package requires Python .
15020 If you have it installed, but it isn't the default Python
15021 interpreter in your system path, please pass the PYTHON_VERSION
15022 variable to configure. See \`\`configure --help'' for reference.
15029 # Check if you have distutils, else fail
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
15032 $as_echo_n "checking for the distutils Python package... " >&6; }
15033 ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
15034 if test -z "$ac_distutils_result"; then
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15036 $as_echo "yes" >&6; }
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039 $as_echo "no" >&6; }
15040 as_fn_error $? "cannot import Python module \"distutils\".
15041 Please check your Python installation. The error was:
15042 $ac_distutils_result" "$LINENO" 5
15047 # Check for Python include path
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
15050 $as_echo_n "checking for Python include path... " >&6; }
15051 if test -z "$PYTHON_CPPFLAGS"; then
15052 python_path=`$PYTHON -c "import distutils.sysconfig; \
15053 print distutils.sysconfig.get_python_inc();"`
15054 if test -n "${python_path}"; then
15055 python_path="-I$python_path"
15057 python_plat_path=`$PYTHON -c "import distutils.sysconfig; \
15058 print distutils.sysconfig.get_python_inc(plat_specific=True);"`
15059 if test -n "${python_plat_path}"; then
15060 python_plat_path="-I$python_plat_path"
15062 PYTHON_CPPFLAGS="$python_path $python_plat_path"
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
15065 $as_echo "$PYTHON_CPPFLAGS" >&6; }
15069 # Check for Python library path
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
15072 $as_echo_n "checking for Python library path... " >&6; }
15073 if test -z "$PYTHON_LDFLAGS"; then
15074 # (makes two attempts to ensure we've got a version number
15075 # from the interpreter)
15076 py_version=`$PYTHON -c "from distutils.sysconfig import *; \
15077 from string import join; \
15078 print join(get_config_vars('VERSION'))"`
15079 if test "$py_version" == "None"; then
15080 if test -n "$PYTHON_VERSION"; then
15081 py_version=$PYTHON_VERSION
15083 py_version=`$PYTHON -c "import sys; \
15084 print sys.version[:3]"`
15088 PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
15089 from string import join; \
15090 print '-L' + get_python_lib(0,1), \
15091 '-lpython';"`$py_version
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
15094 $as_echo "$PYTHON_LDFLAGS" >&6; }
15098 # Check for site packages
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
15101 $as_echo_n "checking for Python site-packages path... " >&6; }
15102 if test -z "$PYTHON_SITE_PKG"; then
15103 PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
15104 print distutils.sysconfig.get_python_lib(0,0);"`
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
15107 $as_echo "$PYTHON_SITE_PKG" >&6; }
15111 # libraries which must be linked in when embedding
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
15114 $as_echo_n "checking python extra libraries... " >&6; }
15115 if test -z "$PYTHON_EXTRA_LIBS"; then
15116 PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
15117 conf = distutils.sysconfig.get_config_var; \
15118 print conf('LOCALMODLIBS'), conf('LIBS')"`
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
15121 $as_echo "$PYTHON_EXTRA_LIBS" >&6; }
15125 # linking flags needed when embedding
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
15128 $as_echo_n "checking python extra linking flags... " >&6; }
15129 if test -z "$PYTHON_EXTRA_LDFLAGS"; then
15130 PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
15131 conf = distutils.sysconfig.get_config_var; \
15132 print conf('LINKFORSHARED')"`
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
15135 $as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
15139 # final check to see if everything compiles alright
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
15142 $as_echo_n "checking consistency of all components of python development environment... " >&6; }
15144 ac_cpp='$CPP $CPPFLAGS'
15145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15149 # save current global flags
15150 ac_save_LIBS="$LIBS"
15151 ac_save_CPPFLAGS="$CPPFLAGS"
15152 LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
15153 CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15157 #include <Python.h>
15169 if ac_fn_c_try_link "$LINENO"; then :
15174 rm -f core conftest.err conftest.$ac_objext \
15175 conftest$ac_exeext conftest.$ac_ext
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
15178 $as_echo "$pythonexists" >&6; }
15180 if test ! "$pythonexists" = "yes"; then
15184 ac_cpp='$CPP $CPPFLAGS'
15185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15189 # turn back to default flags
15190 CPPFLAGS="$ac_save_CPPFLAGS"
15191 LIBS="$ac_save_LIBS"
15200 test "x" != "xno" || swig_shadow=" -noproxy"
15201 SWIG_PYTHON_OPT=-python$swig_shadow
15203 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
15208 if test "x${SWIG}" != "x" ; then
15214 if test "${enable_pywrap}" = "detect" ; then
15215 if test "${have_python}" = "yes" ; then
15216 if test "${have_swig}" = "yes" ; then
15217 enable_pywrap="yes"
15222 if test "${enable_pywrap}" = "yes" ; then
15223 test "${have_python}" != "yes" && as_fn_error $? "Python not found" "$LINENO" 5
15224 test "${have_swig}" != "yes" && as_fn_error $? "SWIG not found" "$LINENO" 5
15227 test "${enable_openssl}" = "detect" && enable_openssl="${have_openssl}"
15229 if test "${enable_openssl}" = "yes" ; then
15230 test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
15233 if test "${enable_pkcs11_helper}" = "yes" ; then
15234 test "${have_openssl}" != "yes" && as_fn_error $? "OpenSSL not found" "$LINENO" 5
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKCS11_HELPER" >&5
15238 $as_echo_n "checking for PKCS11_HELPER... " >&6; }
15240 if test -n "$PKCS11_HELPER_CFLAGS"; then
15241 pkg_cv_PKCS11_HELPER_CFLAGS="$PKCS11_HELPER_CFLAGS"
15242 elif test -n "$PKG_CONFIG"; then
15243 if test -n "$PKG_CONFIG" && \
15244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
15245 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; then
15249 pkg_cv_PKCS11_HELPER_CFLAGS=`$PKG_CONFIG --cflags "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
15250 test "x$?" != "x0" && pkg_failed=yes
15257 if test -n "$PKCS11_HELPER_LIBS"; then
15258 pkg_cv_PKCS11_HELPER_LIBS="$PKCS11_HELPER_LIBS"
15259 elif test -n "$PKG_CONFIG"; then
15260 if test -n "$PKG_CONFIG" && \
15261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpkcs11-helper-1 >= 1.04\""; } >&5
15262 ($PKG_CONFIG --exists --print-errors "libpkcs11-helper-1 >= 1.04") 2>&5
15264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15265 test $ac_status = 0; }; then
15266 pkg_cv_PKCS11_HELPER_LIBS=`$PKG_CONFIG --libs "libpkcs11-helper-1 >= 1.04" 2>/dev/null`
15267 test "x$?" != "x0" && pkg_failed=yes
15277 if test $pkg_failed = yes; then
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15282 _pkg_short_errors_supported=yes
15284 _pkg_short_errors_supported=no
15286 if test $_pkg_short_errors_supported = yes; then
15287 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
15289 PKCS11_HELPER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpkcs11-helper-1 >= 1.04" 2>&1`
15291 # Put the nasty error message in config.log where it belongs
15292 echo "$PKCS11_HELPER_PKG_ERRORS" >&5
15294 as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
15295 elif test $pkg_failed = untried; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15298 as_fn_error $? "Cannot locate pkcs11-helper" "$LINENO" 5
15300 PKCS11_HELPER_CFLAGS=$pkg_cv_PKCS11_HELPER_CFLAGS
15301 PKCS11_HELPER_LIBS=$pkg_cv_PKCS11_HELPER_LIBS
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15303 $as_echo "yes" >&6; }
15308 if test "${enable_tspi}" = "yes" ; then
15309 if test -z "${TSPI_LIBS}"; then
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tspi_Context_Create in -ltspi" >&5
15313 $as_echo_n "checking for Tspi_Context_Create in -ltspi... " >&6; }
15314 if ${ac_cv_lib_tspi_Tspi_Context_Create+:} false; then :
15315 $as_echo_n "(cached) " >&6
15317 ac_check_lib_save_LIBS=$LIBS
15318 LIBS="-ltspi $LIBS"
15319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15322 /* Override any GCC internal prototype to avoid an error.
15323 Use char because int might match the return type of a GCC
15324 builtin and then its argument prototype would still apply. */
15328 char Tspi_Context_Create ();
15332 return Tspi_Context_Create ();
15337 if ac_fn_c_try_link "$LINENO"; then :
15338 ac_cv_lib_tspi_Tspi_Context_Create=yes
15340 ac_cv_lib_tspi_Tspi_Context_Create=no
15342 rm -f core conftest.err conftest.$ac_objext \
15343 conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tspi_Tspi_Context_Create" >&5
15347 $as_echo "$ac_cv_lib_tspi_Tspi_Context_Create" >&6; }
15348 if test "x$ac_cv_lib_tspi_Tspi_Context_Create" = xyes; then :
15351 as_fn_error $? "Cannot find tspi" "$LINENO" 5
15358 if test "${enable_gpg}" = "yes" ; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpgme" >&5
15360 $as_echo_n "checking for gpgme... " >&6; }
15361 if ! test -x "${with_gpgme_prefix}/bin/gpgme-config"; then
15362 as_fn_error $? "Cannot locate gpgme" "$LINENO" 5
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15365 $as_echo "found" >&6; }
15366 GPGME_CFLAGS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --cflags`"
15367 GPGME_LIBS="`\"${with_gpgme_prefix}/bin/gpgme-config\" --libs`"
15371 if test "${enable_pam}" = "yes" ; then
15372 if test -z "${PAM_LIBS}"; then
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_authenticate in -lpam" >&5
15376 $as_echo_n "checking for pam_authenticate in -lpam... " >&6; }
15377 if ${ac_cv_lib_pam_pam_authenticate+:} false; then :
15378 $as_echo_n "(cached) " >&6
15380 ac_check_lib_save_LIBS=$LIBS
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15391 char pam_authenticate ();
15395 return pam_authenticate ();
15400 if ac_fn_c_try_link "$LINENO"; then :
15401 ac_cv_lib_pam_pam_authenticate=yes
15403 ac_cv_lib_pam_pam_authenticate=no
15405 rm -f core conftest.err conftest.$ac_objext \
15406 conftest$ac_exeext conftest.$ac_ext
15407 LIBS=$ac_check_lib_save_LIBS
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_authenticate" >&5
15410 $as_echo "$ac_cv_lib_pam_pam_authenticate" >&6; }
15411 if test "x$ac_cv_lib_pam_pam_authenticate" = xyes; then :
15414 as_fn_error $? "Cannot find pam" "$LINENO" 5
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_misc_setenv in -lpam_misc" >&5
15419 $as_echo_n "checking for pam_misc_setenv in -lpam_misc... " >&6; }
15420 if ${ac_cv_lib_pam_misc_pam_misc_setenv+:} false; then :
15421 $as_echo_n "(cached) " >&6
15423 ac_check_lib_save_LIBS=$LIBS
15424 LIBS="-lpam_misc $LIBS"
15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15426 /* end confdefs.h. */
15428 /* Override any GCC internal prototype to avoid an error.
15429 Use char because int might match the return type of a GCC
15430 builtin and then its argument prototype would still apply. */
15434 char pam_misc_setenv ();
15438 return pam_misc_setenv ();
15443 if ac_fn_c_try_link "$LINENO"; then :
15444 ac_cv_lib_pam_misc_pam_misc_setenv=yes
15446 ac_cv_lib_pam_misc_pam_misc_setenv=no
15448 rm -f core conftest.err conftest.$ac_objext \
15449 conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_misc_pam_misc_setenv" >&5
15453 $as_echo "$ac_cv_lib_pam_misc_pam_misc_setenv" >&6; }
15454 if test "x$ac_cv_lib_pam_misc_pam_misc_setenv" = xyes; then :
15455 PAM_LIBS="${PAM_LIBS} ${TSPI_LIBS} -lpam_misc"
15457 as_fn_error $? "Cannot find pam_misc" "$LINENO" 5
15464 if test "${enable_gui}" = "yes"; then
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15468 $as_echo_n "checking for GTK... " >&6; }
15470 if test -n "$GTK_CFLAGS"; then
15471 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15472 elif test -n "$PKG_CONFIG"; then
15473 if test -n "$PKG_CONFIG" && \
15474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
15475 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
15477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478 test $ac_status = 0; }; then
15479 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0" 2>/dev/null`
15480 test "x$?" != "x0" && pkg_failed=yes
15487 if test -n "$GTK_LIBS"; then
15488 pkg_cv_GTK_LIBS="$GTK_LIBS"
15489 elif test -n "$PKG_CONFIG"; then
15490 if test -n "$PKG_CONFIG" && \
15491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.0\""; } >&5
15492 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.0") 2>&5
15494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15495 test $ac_status = 0; }; then
15496 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0" 2>/dev/null`
15497 test "x$?" != "x0" && pkg_failed=yes
15507 if test $pkg_failed = yes; then
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15512 _pkg_short_errors_supported=yes
15514 _pkg_short_errors_supported=no
15516 if test $_pkg_short_errors_supported = yes; then
15517 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
15519 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.0" 2>&1`
15521 # Put the nasty error message in config.log where it belongs
15522 echo "$GTK_PKG_ERRORS" >&5
15524 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
15525 GTK_LIBS linker flags for GTK, overriding pkg-config
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15529 $as_echo_n "checking for GTK... " >&6; }
15531 if test -n "$GTK_CFLAGS"; then
15532 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15533 elif test -n "$PKG_CONFIG"; then
15534 if test -n "$PKG_CONFIG" && \
15535 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15536 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15539 test $ac_status = 0; }; then
15540 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15541 test "x$?" != "x0" && pkg_failed=yes
15548 if test -n "$GTK_LIBS"; then
15549 pkg_cv_GTK_LIBS="$GTK_LIBS"
15550 elif test -n "$PKG_CONFIG"; then
15551 if test -n "$PKG_CONFIG" && \
15552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15553 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; }; then
15557 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15558 test "x$?" != "x0" && pkg_failed=yes
15568 if test $pkg_failed = yes; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15570 $as_echo "no" >&6; }
15572 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15573 _pkg_short_errors_supported=yes
15575 _pkg_short_errors_supported=no
15577 if test $_pkg_short_errors_supported = yes; then
15578 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15580 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15582 # Put the nasty error message in config.log where it belongs
15583 echo "$GTK_PKG_ERRORS" >&5
15585 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15587 elif test $pkg_failed = untried; then
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15589 $as_echo "no" >&6; }
15590 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15593 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15594 GTK_LIBS=$pkg_cv_GTK_LIBS
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15596 $as_echo "yes" >&6; }
15600 elif test $pkg_failed = untried; then
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15603 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
15604 GTK_LIBS linker flags for GTK, overriding pkg-config
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
15608 $as_echo_n "checking for GTK... " >&6; }
15610 if test -n "$GTK_CFLAGS"; then
15611 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
15612 elif test -n "$PKG_CONFIG"; then
15613 if test -n "$PKG_CONFIG" && \
15614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15615 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 test $ac_status = 0; }; then
15619 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.0" 2>/dev/null`
15620 test "x$?" != "x0" && pkg_failed=yes
15627 if test -n "$GTK_LIBS"; then
15628 pkg_cv_GTK_LIBS="$GTK_LIBS"
15629 elif test -n "$PKG_CONFIG"; then
15630 if test -n "$PKG_CONFIG" && \
15631 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+ >= 1.0\""; } >&5
15632 ($PKG_CONFIG --exists --print-errors "gtk+ >= 1.0") 2>&5
15634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15635 test $ac_status = 0; }; then
15636 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.0" 2>/dev/null`
15637 test "x$?" != "x0" && pkg_failed=yes
15647 if test $pkg_failed = yes; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15651 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15652 _pkg_short_errors_supported=yes
15654 _pkg_short_errors_supported=no
15656 if test $_pkg_short_errors_supported = yes; then
15657 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15659 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+ >= 1.0" 2>&1`
15661 # Put the nasty error message in config.log where it belongs
15662 echo "$GTK_PKG_ERRORS" >&5
15664 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15666 elif test $pkg_failed = untried; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15668 $as_echo "no" >&6; }
15669 as_fn_error $? "Cannot locate gtk+" "$LINENO" 5
15672 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15673 GTK_LIBS=$pkg_cv_GTK_LIBS
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15675 $as_echo "yes" >&6; }
15680 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
15681 GTK_LIBS=$pkg_cv_GTK_LIBS
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15683 $as_echo "yes" >&6; }
15688 pkgconfigdir="\$(libdir)/pkgconfig"
15689 if test "${prefix}" = "/usr"; then
15690 rootsbindir="/sbin"
15692 rootsbindir="\$(sbindir)"
15695 GETTEXT_PACKAGE=ecryptfs-utils
15698 cat >>confdefs.h <<_ACEOF
15699 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
15704 for ac_header in locale.h
15706 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
15707 if test "x$ac_cv_header_locale_h" = xyes; then :
15708 cat >>confdefs.h <<_ACEOF
15709 #define HAVE_LOCALE_H 1
15716 if test $ac_cv_header_locale_h = yes; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
15718 $as_echo_n "checking for LC_MESSAGES... " >&6; }
15719 if ${am_cv_val_LC_MESSAGES+:} false; then :
15720 $as_echo_n "(cached) " >&6
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15724 #include <locale.h>
15733 if ac_fn_c_try_link "$LINENO"; then :
15734 am_cv_val_LC_MESSAGES=yes
15736 am_cv_val_LC_MESSAGES=no
15738 rm -f core conftest.err conftest.$ac_objext \
15739 conftest$ac_exeext conftest.$ac_ext
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
15742 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
15743 if test $am_cv_val_LC_MESSAGES = yes; then
15745 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
15752 gt_cv_have_gettext=no
15758 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
15759 if test "x$ac_cv_header_libintl_h" = xyes; then :
15760 gt_cv_func_dgettext_libintl="no"
15761 libintl_extra_libs=""
15764 # First check in libc
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
15767 $as_echo_n "checking for ngettext in libc... " >&6; }
15768 if ${gt_cv_func_ngettext_libc+:} false; then :
15769 $as_echo_n "(cached) " >&6
15771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h. */
15774 #include <libintl.h>
15779 return !ngettext ("","", 1)
15784 if ac_fn_c_try_link "$LINENO"; then :
15785 gt_cv_func_ngettext_libc=yes
15787 gt_cv_func_ngettext_libc=no
15789 rm -f core conftest.err conftest.$ac_objext \
15790 conftest$ac_exeext conftest.$ac_ext
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
15794 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
15796 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
15798 $as_echo_n "checking for dgettext in libc... " >&6; }
15799 if ${gt_cv_func_dgettext_libc+:} false; then :
15800 $as_echo_n "(cached) " >&6
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15805 #include <libintl.h>
15810 return !dgettext ("","")
15815 if ac_fn_c_try_link "$LINENO"; then :
15816 gt_cv_func_dgettext_libc=yes
15818 gt_cv_func_dgettext_libc=no
15820 rm -f core conftest.err conftest.$ac_objext \
15821 conftest$ac_exeext conftest.$ac_ext
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
15825 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
15828 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
15829 for ac_func in bind_textdomain_codeset
15831 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
15832 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
15833 cat >>confdefs.h <<_ACEOF
15834 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15843 # If we don't have everything we want, check in libintl
15845 if test "$gt_cv_func_dgettext_libc" != "yes" \
15846 || test "$gt_cv_func_ngettext_libc" != "yes" \
15847 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
15850 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
15851 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
15852 $as_echo_n "(cached) " >&6
15854 ac_check_lib_save_LIBS=$LIBS
15855 LIBS="-lintl $LIBS"
15856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857 /* end confdefs.h. */
15859 /* Override any GCC internal prototype to avoid an error.
15860 Use char because int might match the return type of a GCC
15861 builtin and then its argument prototype would still apply. */
15865 char bindtextdomain ();
15869 return bindtextdomain ();
15874 if ac_fn_c_try_link "$LINENO"; then :
15875 ac_cv_lib_intl_bindtextdomain=yes
15877 ac_cv_lib_intl_bindtextdomain=no
15879 rm -f core conftest.err conftest.$ac_objext \
15880 conftest$ac_exeext conftest.$ac_ext
15881 LIBS=$ac_check_lib_save_LIBS
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
15884 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
15885 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15887 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15888 if ${ac_cv_lib_intl_ngettext+:} false; then :
15889 $as_echo_n "(cached) " >&6
15891 ac_check_lib_save_LIBS=$LIBS
15892 LIBS="-lintl $LIBS"
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15896 /* Override any GCC internal prototype to avoid an error.
15897 Use char because int might match the return type of a GCC
15898 builtin and then its argument prototype would still apply. */
15906 return ngettext ();
15911 if ac_fn_c_try_link "$LINENO"; then :
15912 ac_cv_lib_intl_ngettext=yes
15914 ac_cv_lib_intl_ngettext=no
15916 rm -f core conftest.err conftest.$ac_objext \
15917 conftest$ac_exeext conftest.$ac_ext
15918 LIBS=$ac_check_lib_save_LIBS
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
15921 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
15922 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
15924 $as_echo_n "checking for dgettext in -lintl... " >&6; }
15925 if ${ac_cv_lib_intl_dgettext+:} false; then :
15926 $as_echo_n "(cached) " >&6
15928 ac_check_lib_save_LIBS=$LIBS
15929 LIBS="-lintl $LIBS"
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931 /* end confdefs.h. */
15933 /* Override any GCC internal prototype to avoid an error.
15934 Use char because int might match the return type of a GCC
15935 builtin and then its argument prototype would still apply. */
15943 return dgettext ();
15948 if ac_fn_c_try_link "$LINENO"; then :
15949 ac_cv_lib_intl_dgettext=yes
15951 ac_cv_lib_intl_dgettext=no
15953 rm -f core conftest.err conftest.$ac_objext \
15954 conftest$ac_exeext conftest.$ac_ext
15955 LIBS=$ac_check_lib_save_LIBS
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
15958 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
15959 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
15960 gt_cv_func_dgettext_libintl=yes
15968 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
15970 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
15974 $as_echo_n "checking for ngettext in -lintl... " >&6; }
15975 if ${ac_cv_lib_intl_ngettext+:} false; then :
15976 $as_echo_n "(cached) " >&6
15978 ac_check_lib_save_LIBS=$LIBS
15979 LIBS="-lintl -liconv $LIBS"
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15983 /* Override any GCC internal prototype to avoid an error.
15984 Use char because int might match the return type of a GCC
15985 builtin and then its argument prototype would still apply. */
15993 return ngettext ();
15998 if ac_fn_c_try_link "$LINENO"; then :
15999 ac_cv_lib_intl_ngettext=yes
16001 ac_cv_lib_intl_ngettext=no
16003 rm -f core conftest.err conftest.$ac_objext \
16004 conftest$ac_exeext conftest.$ac_ext
16005 LIBS=$ac_check_lib_save_LIBS
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16008 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
16009 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
16011 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
16012 if ${ac_cv_lib_intl_dcgettext+:} false; then :
16013 $as_echo_n "(cached) " >&6
16015 ac_check_lib_save_LIBS=$LIBS
16016 LIBS="-lintl -liconv $LIBS"
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16030 return dcgettext ();
16035 if ac_fn_c_try_link "$LINENO"; then :
16036 ac_cv_lib_intl_dcgettext=yes
16038 ac_cv_lib_intl_dcgettext=no
16040 rm -f core conftest.err conftest.$ac_objext \
16041 conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_lib_save_LIBS
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
16045 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
16046 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
16047 gt_cv_func_dgettext_libintl=yes
16048 libintl_extra_libs=-liconv
16060 # If we found libintl, then check in it for bind_textdomain_codeset();
16061 # we'll prefer libc if neither have bind_textdomain_codeset(),
16062 # and both have dgettext and ngettext
16064 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16065 glib_save_LIBS="$LIBS"
16066 LIBS="$LIBS -lintl $libintl_extra_libs"
16067 unset ac_cv_func_bind_textdomain_codeset
16068 for ac_func in bind_textdomain_codeset
16070 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16071 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16072 cat >>confdefs.h <<_ACEOF
16073 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16079 LIBS="$glib_save_LIBS"
16081 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16082 gt_cv_func_dgettext_libc=no
16084 if test "$gt_cv_func_dgettext_libc" = "yes" \
16085 && test "$gt_cv_func_ngettext_libc" = "yes"; then
16086 gt_cv_func_dgettext_libintl=no
16092 if test "$gt_cv_func_dgettext_libc" = "yes" \
16093 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
16094 gt_cv_have_gettext=yes
16097 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16098 INTLLIBS="-lintl $libintl_extra_libs"
16101 if test "$gt_cv_have_gettext" = "yes"; then
16103 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16105 # Extract the first word of "msgfmt", so it can be a program name with args.
16106 set dummy msgfmt; ac_word=$2
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16108 $as_echo_n "checking for $ac_word... " >&6; }
16109 if ${ac_cv_path_MSGFMT+:} false; then :
16110 $as_echo_n "(cached) " >&6
16114 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16118 for ac_dir in $PATH; do
16119 test -z "$ac_dir" && ac_dir=.
16120 if test -f $ac_dir/$ac_word; then
16121 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16122 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16128 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16132 MSGFMT="$ac_cv_path_MSGFMT"
16133 if test "$MSGFMT" != "no"; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16135 $as_echo "$MSGFMT" >&6; }
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16140 if test "$MSGFMT" != "no"; then
16141 glib_save_LIBS="$LIBS"
16142 LIBS="$LIBS $INTLLIBS"
16143 for ac_func in dcgettext
16145 ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16146 if test "x$ac_cv_func_dcgettext" = xyes; then :
16147 cat >>confdefs.h <<_ACEOF
16148 #define HAVE_DCGETTEXT 1
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
16156 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
16157 cat >conftest.foo <<_ACEOF
16161 "Content-Type: text/plain; charset=UTF-8\n"
16162 "Project-Id-Version: test 1.0\n"
16163 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
16164 "Last-Translator: test <foo@bar.xx>\n"
16165 "Language-Team: C <LL@li.org>\n"
16166 "MIME-Version: 1.0\n"
16167 "Content-Transfer-Encoding: 8bit\n"
16170 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
16171 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16174 test $ac_status = 0; }; then
16175 MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16176 $as_echo "yes" >&6; }
16177 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16179 echo "$as_me: failed input was:" >&5
16180 sed 's/^/| /' conftest.foo >&5
16183 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16184 set dummy gmsgfmt; ac_word=$2
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186 $as_echo_n "checking for $ac_word... " >&6; }
16187 if ${ac_cv_path_GMSGFMT+:} false; then :
16188 $as_echo_n "(cached) " >&6
16192 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16196 for as_dir in $PATH
16199 test -z "$as_dir" && as_dir=.
16200 for ac_exec_ext in '' $ac_executable_extensions; do
16201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16202 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16210 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16214 GMSGFMT=$ac_cv_path_GMSGFMT
16215 if test -n "$GMSGFMT"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16217 $as_echo "$GMSGFMT" >&6; }
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16224 # Extract the first word of "xgettext", so it can be a program name with args.
16225 set dummy xgettext; ac_word=$2
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16227 $as_echo_n "checking for $ac_word... " >&6; }
16228 if ${ac_cv_path_XGETTEXT+:} false; then :
16229 $as_echo_n "(cached) " >&6
16231 case "$XGETTEXT" in
16233 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16236 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16237 for ac_dir in $PATH; do
16238 test -z "$ac_dir" && ac_dir=.
16239 if test -f $ac_dir/$ac_word; then
16240 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16241 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16247 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16251 XGETTEXT="$ac_cv_path_XGETTEXT"
16252 if test "$XGETTEXT" != ":"; then
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16254 $as_echo "$XGETTEXT" >&6; }
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16257 $as_echo "no" >&6; }
16260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16261 /* end confdefs.h. */
16266 extern int _nl_msg_cat_cntr;
16267 return _nl_msg_cat_cntr
16272 if ac_fn_c_try_link "$LINENO"; then :
16278 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16279 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300 LIBS="$glib_save_LIBS"
16303 gt_cv_have_gettext=no
16311 if test "$gt_cv_have_gettext" = "yes" ; then
16313 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16317 if test "$XGETTEXT" != ":"; then
16318 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16322 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16327 # We need to process the po/ directory.
16330 ac_config_commands="$ac_config_commands default-1"
16333 for lang in $ALL_LINGUAS; do
16334 GMOFILES="$GMOFILES $lang.gmo"
16335 POFILES="$POFILES $lang.po"
16350 if test "$gt_cv_have_gettext" = "yes"; then
16351 if test "x$ALL_LINGUAS" = "x"; then
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16355 $as_echo_n "checking for catalogs to be installed... " >&6; }
16357 for presentlang in $ALL_LINGUAS; do
16359 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16360 desiredlanguages="$LINGUAS"
16362 desiredlanguages="$ALL_LINGUAS"
16364 for desiredlang in $desiredlanguages; do
16365 # Use the presentlang catalog if desiredlang is
16366 # a. equal to presentlang, or
16367 # b. a variant of presentlang (because in this case,
16368 # presentlang can be used as a fallback for messages
16369 # which are not translated in the desiredlang catalog).
16370 case "$desiredlang" in
16371 "$presentlang"*) useit=yes;;
16374 if test $useit = yes; then
16375 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16378 LINGUAS=$NEW_LINGUAS
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16380 $as_echo "$LINGUAS" >&6; }
16383 if test -n "$LINGUAS"; then
16384 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16389 if test -n "$ac_aux_dir"; then
16390 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16392 if test -z "$MKINSTALLDIRS"; then
16393 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16397 test -d po || mkdir po
16398 if test "x$srcdir" != "x."; then
16399 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16400 posrcprefix="$srcdir/"
16402 posrcprefix="../$srcdir/"
16408 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16409 < $srcdir/po/POTFILES.in > po/POTFILES
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16414 $as_echo_n "checking whether NLS is requested... " >&6; }
16415 # Check whether --enable-nls was given.
16416 if test "${enable_nls+set}" = set; then :
16417 enableval=$enable_nls; USE_NLS=$enableval
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16423 $as_echo "$USE_NLS" >&6; }
16428 case "$am__api_version" in
16430 as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
16436 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16437 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
16438 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
16439 if test -n "0.41.0"; then
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
16441 $as_echo_n "checking for intltool >= 0.41.0... " >&6; }
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
16443 $as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
16444 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
16445 as_fn_error $? "Your intltool is too old. You need intltool 0.41.0 or later." "$LINENO" 5
16448 # Extract the first word of "intltool-update", so it can be a program name with args.
16449 set dummy intltool-update; ac_word=$2
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16451 $as_echo_n "checking for $ac_word... " >&6; }
16452 if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
16453 $as_echo_n "(cached) " >&6
16455 case $INTLTOOL_UPDATE in
16457 ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
16460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16461 for as_dir in $PATH
16464 test -z "$as_dir" && as_dir=.
16465 for ac_exec_ext in '' $ac_executable_extensions; do
16466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16467 ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
16468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16478 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
16479 if test -n "$INTLTOOL_UPDATE"; then
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
16481 $as_echo "$INTLTOOL_UPDATE" >&6; }
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16488 # Extract the first word of "intltool-merge", so it can be a program name with args.
16489 set dummy intltool-merge; ac_word=$2
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16491 $as_echo_n "checking for $ac_word... " >&6; }
16492 if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
16493 $as_echo_n "(cached) " >&6
16495 case $INTLTOOL_MERGE in
16497 ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
16500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16501 for as_dir in $PATH
16504 test -z "$as_dir" && as_dir=.
16505 for ac_exec_ext in '' $ac_executable_extensions; do
16506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16507 ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
16508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16518 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
16519 if test -n "$INTLTOOL_MERGE"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
16521 $as_echo "$INTLTOOL_MERGE" >&6; }
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16524 $as_echo "no" >&6; }
16528 # Extract the first word of "intltool-extract", so it can be a program name with args.
16529 set dummy intltool-extract; ac_word=$2
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16531 $as_echo_n "checking for $ac_word... " >&6; }
16532 if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
16533 $as_echo_n "(cached) " >&6
16535 case $INTLTOOL_EXTRACT in
16537 ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
16540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16544 test -z "$as_dir" && as_dir=.
16545 for ac_exec_ext in '' $ac_executable_extensions; do
16546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16547 ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
16548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16558 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
16559 if test -n "$INTLTOOL_EXTRACT"; then
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
16561 $as_echo "$INTLTOOL_EXTRACT" >&6; }
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16564 $as_echo "no" >&6; }
16568 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
16569 as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
16572 if test -z "$AM_DEFAULT_VERBOSITY"; then
16573 AM_DEFAULT_VERBOSITY=1
16577 INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
16578 INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
16579 INTLTOOL__v_MERGE_0='@echo " ITMRG " $@;'
16584 INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
16585 intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
16586 intltool__v_merge_options_0='-q'
16591 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16592 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16593 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16594 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16595 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
16596 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16597 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16598 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16599 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16600 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16601 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16602 if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
16603 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
16605 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
16607 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16608 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16609 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16610 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16611 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16612 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16613 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
16711 # Check the gettext tools to make sure they are GNU
16712 # Extract the first word of "xgettext", so it can be a program name with args.
16713 set dummy xgettext; ac_word=$2
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16715 $as_echo_n "checking for $ac_word... " >&6; }
16716 if ${ac_cv_path_XGETTEXT+:} false; then :
16717 $as_echo_n "(cached) " >&6
16721 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16725 for as_dir in $PATH
16728 test -z "$as_dir" && as_dir=.
16729 for ac_exec_ext in '' $ac_executable_extensions; do
16730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16731 ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
16732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16742 XGETTEXT=$ac_cv_path_XGETTEXT
16743 if test -n "$XGETTEXT"; then
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16745 $as_echo "$XGETTEXT" >&6; }
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16748 $as_echo "no" >&6; }
16752 # Extract the first word of "msgmerge", so it can be a program name with args.
16753 set dummy msgmerge; ac_word=$2
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16755 $as_echo_n "checking for $ac_word... " >&6; }
16756 if ${ac_cv_path_MSGMERGE+:} false; then :
16757 $as_echo_n "(cached) " >&6
16761 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16765 for as_dir in $PATH
16768 test -z "$as_dir" && as_dir=.
16769 for ac_exec_ext in '' $ac_executable_extensions; do
16770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16771 ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
16772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16782 MSGMERGE=$ac_cv_path_MSGMERGE
16783 if test -n "$MSGMERGE"; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16785 $as_echo "$MSGMERGE" >&6; }
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16788 $as_echo "no" >&6; }
16792 # Extract the first word of "msgfmt", so it can be a program name with args.
16793 set dummy msgfmt; ac_word=$2
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16795 $as_echo_n "checking for $ac_word... " >&6; }
16796 if ${ac_cv_path_MSGFMT+:} false; then :
16797 $as_echo_n "(cached) " >&6
16801 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16805 for as_dir in $PATH
16808 test -z "$as_dir" && as_dir=.
16809 for ac_exec_ext in '' $ac_executable_extensions; do
16810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16811 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
16812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16822 MSGFMT=$ac_cv_path_MSGFMT
16823 if test -n "$MSGFMT"; then
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16825 $as_echo "$MSGFMT" >&6; }
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16828 $as_echo "no" >&6; }
16832 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16833 set dummy gmsgfmt; ac_word=$2
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16835 $as_echo_n "checking for $ac_word... " >&6; }
16836 if ${ac_cv_path_GMSGFMT+:} false; then :
16837 $as_echo_n "(cached) " >&6
16841 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16845 for as_dir in $PATH
16848 test -z "$as_dir" && as_dir=.
16849 for ac_exec_ext in '' $ac_executable_extensions; do
16850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16851 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16859 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16863 GMSGFMT=$ac_cv_path_GMSGFMT
16864 if test -n "$GMSGFMT"; then
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16866 $as_echo "$GMSGFMT" >&6; }
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16869 $as_echo "no" >&6; }
16873 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16874 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16876 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16877 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16878 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16879 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16880 as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16883 # Extract the first word of "perl", so it can be a program name with args.
16884 set dummy perl; ac_word=$2
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16886 $as_echo_n "checking for $ac_word... " >&6; }
16887 if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
16888 $as_echo_n "(cached) " >&6
16890 case $INTLTOOL_PERL in
16892 ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16896 for as_dir in $PATH
16899 test -z "$as_dir" && as_dir=.
16900 for ac_exec_ext in '' $ac_executable_extensions; do
16901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16902 ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
16903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16913 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16914 if test -n "$INTLTOOL_PERL"; then
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16916 $as_echo "$INTLTOOL_PERL" >&6; }
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16919 $as_echo "no" >&6; }
16923 if test -z "$INTLTOOL_PERL"; then
16924 as_fn_error $? "perl not found" "$LINENO" 5
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16927 $as_echo_n "checking for perl >= 5.8.1... " >&6; }
16928 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16929 if test $? -ne 0; then
16930 as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16932 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16934 $as_echo "$IT_PERL_VERSION" >&6; }
16936 if test "x" != "xno-xml"; then
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16938 $as_echo_n "checking for XML::Parser... " >&6; }
16939 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16941 $as_echo "ok" >&6; }
16943 as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16947 # Substitute ALL_LINGUAS so we can use it in po/Makefile
16954 LOCALEDIR='${prefix}/${datadir}/locale'
16958 CRYPTO_CFLAGS=${NSS_CFLAGS}
16959 CRYPTO_LIBS=${NSS_LIBS}
16970 if test "${enable_openssl}" = "yes"; then
16971 BUILD_OPENSSL_TRUE=
16972 BUILD_OPENSSL_FALSE='#'
16974 BUILD_OPENSSL_TRUE='#'
16975 BUILD_OPENSSL_FALSE=
16978 if test "${enable_pkcs11_helper}" = "yes"; then
16979 BUILD_PKCS11_HELPER_TRUE=
16980 BUILD_PKCS11_HELPER_FALSE='#'
16982 BUILD_PKCS11_HELPER_TRUE='#'
16983 BUILD_PKCS11_HELPER_FALSE=
16986 if test "${enable_tspi}" = "yes"; then
16988 BUILD_TSPI_FALSE='#'
16990 BUILD_TSPI_TRUE='#'
16994 if test "${enable_gpg}" = "yes"; then
16996 BUILD_GPG_FALSE='#'
17002 if test "${enable_pam}" = "yes"; then
17004 BUILD_PAM_FALSE='#'
17010 if test "${enable_pywrap}" = "yes"; then
17012 BUILD_PYWRAP_FALSE='#'
17014 BUILD_PYWRAP_TRUE='#'
17015 BUILD_PYWRAP_FALSE=
17018 if test "${enable_nss}" = "yes"; then
17020 BUILD_NSS_FALSE='#'
17026 if test "${enable_gui}" = "yes"; then
17028 BUILD_GUI_FALSE='#'
17034 if test "${enable_docs}" = "yes"; then
17036 BUILD_DOCS_FALSE='#'
17038 BUILD_DOCS_TRUE='#'
17042 if test "${enable_docs_gen}" = "yes"; then
17043 BUILD_DOCS_GEN_TRUE=
17044 BUILD_DOCS_GEN_FALSE='#'
17046 BUILD_DOCS_GEN_TRUE='#'
17047 BUILD_DOCS_GEN_FALSE=
17050 if test "${enable_tests}" = "yes"; then
17052 ENABLE_TESTS_FALSE='#'
17054 ENABLE_TESTS_TRUE='#'
17055 ENABLE_TESTS_FALSE=
17059 # workaround for <autoconf-2.60
17060 if test -z "${docdir}"; then
17061 docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)"
17064 if test -z "${htmldir}"; then
17065 htmldir="\$(docdir)"
17069 # workaround for <automake-1.10
17070 if test -z "${MKDIR_P}"; then
17071 MKDIR_P="\$(mkdir_p)"
17076 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/libecryptfs/Makefile src/utils/Makefile src/key_mod/Makefile src/daemon/Makefile src/desktop/Makefile src/desktop/ecryptfs-mount-private.desktop src/desktop/ecryptfs-setup-private.desktop src/include/Makefile doc/manpage/Makefile src/pam_ecryptfs/Makefile src/libecryptfs/libecryptfs.pc src/libecryptfs-swig/Makefile tests/Makefile tests/lib/Makefile tests/kernel/Makefile tests/userspace/Makefile po/Makefile.in"
17078 cat >confcache <<\_ACEOF
17079 # This file is a shell script that caches the results of configure
17080 # tests run on this system so they can be shared between configure
17081 # scripts and configure runs, see configure's option --config-cache.
17082 # It is not useful on other systems. If it contains results you don't
17083 # want to keep, you may remove or edit it.
17085 # config.status only pays attention to the cache file if you give it
17086 # the --recheck option to rerun configure.
17088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17090 # following values.
17094 # The following way of writing the cache mishandles newlines in values,
17095 # but we know of no workaround that is simple, portable, and efficient.
17096 # So, we kill variables containing newlines.
17097 # Ultrix sh set writes to stderr and can't be redirected directly,
17098 # and sets the high bit in the cache file unless we assign to the vars.
17100 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17101 eval ac_val=\$$ac_var
17105 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17109 _ | IFS | as_nl) ;; #(
17110 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17111 *) { eval $ac_var=; unset $ac_var;} ;;
17117 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17118 *${as_nl}ac_space=\ *)
17119 # `set' does not quote correctly, so add quotes: double-quote
17120 # substitution turns \\\\ into \\, and sed turns \\ into \.
17123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17126 # `set' quotes correctly as required by POSIX, so do not add quotes.
17127 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17138 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17141 if test -w "$cache_file"; then
17142 if test "x$cache_file" != "x/dev/null"; then
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17144 $as_echo "$as_me: updating cache $cache_file" >&6;}
17145 if test ! -f "$cache_file" || test -h "$cache_file"; then
17146 cat confcache >"$cache_file"
17148 case $cache_file in #(
17150 mv -f confcache "$cache_file"$$ &&
17151 mv -f "$cache_file"$$ "$cache_file" ;; #(
17153 mv -f confcache "$cache_file" ;;
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17165 # Let make expand exec_prefix.
17166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17168 DEFS=-DHAVE_CONFIG_H
17173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17174 # 1. Remove the extension, and $U if already installed.
17175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17178 # will be set to the directory where LIBOBJS objects are built.
17179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17182 LIBOBJS=$ac_libobjs
17184 LTLIBOBJS=$ac_ltlibobjs
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17188 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17189 if test -n "$am_sleep_pid"; then
17190 # Hide warnings about reused PIDs.
17191 wait $am_sleep_pid 2>/dev/null
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17194 $as_echo "done" >&6; }
17195 if test -n "$EXEEXT"; then
17197 am__EXEEXT_FALSE='#'
17199 am__EXEEXT_TRUE='#'
17203 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17204 as_fn_error $? "conditional \"AMDEP\" was never defined.
17205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17207 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17208 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17211 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17212 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17216 ac_config_commands="$ac_config_commands po/stamp-it"
17219 if test -z "${BUILD_OPENSSL_TRUE}" && test -z "${BUILD_OPENSSL_FALSE}"; then
17220 as_fn_error $? "conditional \"BUILD_OPENSSL\" was never defined.
17221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17223 if test -z "${BUILD_PKCS11_HELPER_TRUE}" && test -z "${BUILD_PKCS11_HELPER_FALSE}"; then
17224 as_fn_error $? "conditional \"BUILD_PKCS11_HELPER\" was never defined.
17225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17227 if test -z "${BUILD_TSPI_TRUE}" && test -z "${BUILD_TSPI_FALSE}"; then
17228 as_fn_error $? "conditional \"BUILD_TSPI\" was never defined.
17229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17231 if test -z "${BUILD_GPG_TRUE}" && test -z "${BUILD_GPG_FALSE}"; then
17232 as_fn_error $? "conditional \"BUILD_GPG\" was never defined.
17233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17235 if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
17236 as_fn_error $? "conditional \"BUILD_PAM\" was never defined.
17237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17239 if test -z "${BUILD_PYWRAP_TRUE}" && test -z "${BUILD_PYWRAP_FALSE}"; then
17240 as_fn_error $? "conditional \"BUILD_PYWRAP\" was never defined.
17241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17243 if test -z "${BUILD_NSS_TRUE}" && test -z "${BUILD_NSS_FALSE}"; then
17244 as_fn_error $? "conditional \"BUILD_NSS\" was never defined.
17245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17247 if test -z "${BUILD_GUI_TRUE}" && test -z "${BUILD_GUI_FALSE}"; then
17248 as_fn_error $? "conditional \"BUILD_GUI\" was never defined.
17249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17251 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
17252 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
17253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17255 if test -z "${BUILD_DOCS_GEN_TRUE}" && test -z "${BUILD_DOCS_GEN_FALSE}"; then
17256 as_fn_error $? "conditional \"BUILD_DOCS_GEN\" was never defined.
17257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17259 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
17260 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
17261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17264 : "${CONFIG_STATUS=./config.status}"
17266 ac_clean_files_save=$ac_clean_files
17267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17273 # Generated by $as_me.
17274 # Run this file to recreate the current configuration.
17275 # Compiler output produced by configure, useful for debugging
17276 # configure, is in config.log if it exists.
17279 ac_cs_recheck=false
17282 SHELL=\${CONFIG_SHELL-$SHELL}
17285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17286 ## -------------------- ##
17287 ## M4sh Initialization. ##
17288 ## -------------------- ##
17290 # Be more Bourne compatible
17291 DUALCASE=1; export DUALCASE # for MKS sh
17292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17296 # is contrary to our usage. Disable this feature.
17297 alias -g '${1+"$@"}'='"$@"'
17298 setopt NO_GLOB_SUBST
17300 case `(set -o) 2>/dev/null` in #(
17312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17316 # Prefer a ksh shell builtin over an external printf program on Solaris,
17317 # but without wasting forks for bash or zsh.
17318 if test -z "$BASH_VERSION$ZSH_VERSION" \
17319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17320 as_echo='print -r --'
17321 as_echo_n='print -rn --'
17322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17323 as_echo='printf %s\n'
17324 as_echo_n='printf %s'
17326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17328 as_echo_n='/usr/ucb/echo -n'
17330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17331 as_echo_n_body='eval
17335 expr "X$arg" : "X\\(.*\\)$as_nl";
17336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17340 export as_echo_n_body
17341 as_echo_n='sh -c $as_echo_n_body as_echo'
17343 export as_echo_body
17344 as_echo='sh -c $as_echo_body as_echo'
17347 # The user is always right.
17348 if test "${PATH_SEPARATOR+set}" != set; then
17350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17358 # We need space, tab and new line, in precisely that order. Quoting is
17359 # there to prevent editors from complaining about space-tab.
17360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17361 # splitting by setting IFS to empty value.)
17364 # Find who we are. Look in the path if we contain no directory separator.
17367 *[\\/]* ) as_myself=$0 ;;
17368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17369 for as_dir in $PATH
17372 test -z "$as_dir" && as_dir=.
17373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17379 # We did not find ourselves, most probably we were run as `sh COMMAND'
17380 # in which case we are not to be found in the path.
17381 if test "x$as_myself" = x; then
17384 if test ! -f "$as_myself"; then
17385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17389 # Unset variables that we do not need and which cause bugs (e.g. in
17390 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17391 # suppresses any "Segmentation fault" message there. '((' could
17392 # trigger a bug in pdksh 5.2.14.
17393 for as_var in BASH_ENV ENV MAIL MAILPATH
17394 do eval test x\${$as_var+set} = xset \
17395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17408 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17412 # ----------------------------------------
17413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17415 # script with STATUS, using 1 if that was 0.
17418 as_status=$1; test $as_status -eq 0 && as_status=1
17420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17423 $as_echo "$as_me: error: $2" >&2
17424 as_fn_exit $as_status
17428 # as_fn_set_status STATUS
17429 # -----------------------
17430 # Set $? to STATUS, without forking.
17431 as_fn_set_status ()
17434 } # as_fn_set_status
17436 # as_fn_exit STATUS
17437 # -----------------
17438 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17442 as_fn_set_status $1
17448 # Portably unset VAR.
17451 { eval $1=; unset $1;}
17453 as_unset=as_fn_unset
17454 # as_fn_append VAR VALUE
17455 # ----------------------
17456 # Append the text in VALUE to the end of the definition contained in VAR. Take
17457 # advantage of any shell optimizations that allow amortized linear growth over
17458 # repeated appends, instead of the typical quadratic growth present in naive
17460 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17461 eval 'as_fn_append ()
17472 # as_fn_arith ARG...
17473 # ------------------
17474 # Perform arithmetic evaluation on the ARGs, and store the result in the
17475 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17476 # must be portable across $(()) and expr.
17477 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17478 eval 'as_fn_arith ()
17485 as_val=`expr "$@" || test $? -eq 1`
17490 if expr a : '\(a\)' >/dev/null 2>&1 &&
17491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17498 as_basename=basename
17503 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17509 as_me=`$as_basename -- "$0" ||
17510 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17511 X"$0" : 'X\(//\)$' \| \
17512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17514 sed '/^.*\/\([^/][^/]*\)\/*$/{
17528 # Avoid depending upon Character Ranges.
17529 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17530 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17531 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17532 as_cr_digits='0123456789'
17533 as_cr_alnum=$as_cr_Letters$as_cr_digits
17535 ECHO_C= ECHO_N= ECHO_T=
17536 case `echo -n x` in #(((((
17538 case `echo 'xy\c'` in
17539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17548 rm -f conf$$ conf$$.exe conf$$.file
17549 if test -d conf$$.dir; then
17550 rm -f conf$$.dir/conf$$.file
17553 mkdir conf$$.dir 2>/dev/null
17555 if (echo >conf$$.file) 2>/dev/null; then
17556 if ln -s conf$$.file conf$$ 2>/dev/null; then
17558 # ... but there are two gotchas:
17559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17561 # In both cases, we have to default to `cp -pR'.
17562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17564 elif ln conf$$.file conf$$ 2>/dev/null; then
17572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17573 rmdir conf$$.dir 2>/dev/null
17578 # Create "$as_dir" as a directory, including parents if necessary.
17583 -*) as_dir=./$as_dir;;
17585 test -d "$as_dir" || eval $as_mkdir_p || {
17589 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17590 *) as_qdir=$as_dir;;
17592 as_dirs="'$as_qdir' $as_dirs"
17593 as_dir=`$as_dirname -- "$as_dir" ||
17594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17595 X"$as_dir" : 'X\(//\)[^/]' \| \
17596 X"$as_dir" : 'X\(//\)$' \| \
17597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17598 $as_echo X"$as_dir" |
17599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17603 /^X\(\/\/\)[^/].*/{
17616 test -d "$as_dir" && break
17618 test -z "$as_dirs" || eval "mkdir $as_dirs"
17619 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17623 if mkdir -p . 2>/dev/null; then
17624 as_mkdir_p='mkdir -p "$as_dir"'
17626 test -d ./-p && rmdir ./-p
17631 # as_fn_executable_p FILE
17632 # -----------------------
17633 # Test if FILE is an executable regular file.
17634 as_fn_executable_p ()
17636 test -f "$1" && test -x "$1"
17637 } # as_fn_executable_p
17638 as_test_x='test -x'
17639 as_executable_p=as_fn_executable_p
17641 # Sed expression to map a string onto a valid CPP name.
17642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17644 # Sed expression to map a string onto a valid variable name.
17645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17649 ## ----------------------------------- ##
17650 ## Main body of $CONFIG_STATUS script. ##
17651 ## ----------------------------------- ##
17653 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17656 # Save the log message, to keep $0 and so on meaningful, and to
17657 # report actual input values of CONFIG_FILES etc. instead of their
17658 # values after options handling.
17660 This file was extended by ecryptfs-utils $as_me 111, which was
17661 generated by GNU Autoconf 2.69. Invocation command line was
17663 CONFIG_FILES = $CONFIG_FILES
17664 CONFIG_HEADERS = $CONFIG_HEADERS
17665 CONFIG_LINKS = $CONFIG_LINKS
17666 CONFIG_COMMANDS = $CONFIG_COMMANDS
17669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17674 case $ac_config_files in *"
17675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17678 case $ac_config_headers in *"
17679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17684 # Files that config.status was made for.
17685 config_files="$ac_config_files"
17686 config_headers="$ac_config_headers"
17687 config_commands="$ac_config_commands"
17691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17693 \`$as_me' instantiates files and other configuration actions
17694 from templates according to the current configuration. Unless the files
17695 and actions are specified as TAGs, all are instantiated by default.
17697 Usage: $0 [OPTION]... [TAG]...
17699 -h, --help print this help, then exit
17700 -V, --version print version number and configuration settings, then exit
17701 --config print configuration, then exit
17702 -q, --quiet, --silent
17703 do not print progress messages
17704 -d, --debug don't remove temporary files
17705 --recheck update $as_me by reconfiguring in the same conditions
17706 --file=FILE[:TEMPLATE]
17707 instantiate the configuration file FILE
17708 --header=FILE[:TEMPLATE]
17709 instantiate the configuration header FILE
17711 Configuration files:
17714 Configuration headers:
17717 Configuration commands:
17720 Report bugs to the package provider."
17723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17724 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17726 ecryptfs-utils config.status 111
17727 configured by $0, generated by GNU Autoconf 2.69,
17728 with options \\"\$ac_cs_config\\"
17730 Copyright (C) 2012 Free Software Foundation, Inc.
17731 This config.status script is free software; the Free Software Foundation
17732 gives unlimited permission to copy, distribute and modify it."
17739 test -n "\$AWK" || AWK=awk
17742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17743 # The default lists apply if the user does not specify any file.
17749 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17750 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17754 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17766 # Handling of the options.
17767 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17769 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17770 $as_echo "$ac_cs_version"; exit ;;
17771 --config | --confi | --conf | --con | --co | --c )
17772 $as_echo "$ac_cs_config"; exit ;;
17773 --debug | --debu | --deb | --de | --d | -d )
17775 --file | --fil | --fi | --f )
17778 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17779 '') as_fn_error $? "missing file argument" ;;
17781 as_fn_append CONFIG_FILES " '$ac_optarg'"
17782 ac_need_defaults=false;;
17783 --header | --heade | --head | --hea )
17786 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17788 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17789 ac_need_defaults=false;;
17791 # Conflict between --help and --header
17792 as_fn_error $? "ambiguous option: \`$1'
17793 Try \`$0 --help' for more information.";;
17794 --help | --hel | -h )
17795 $as_echo "$ac_cs_usage"; exit ;;
17796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17797 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17800 # This is an error.
17801 -*) as_fn_error $? "unrecognized option: \`$1'
17802 Try \`$0 --help' for more information." ;;
17804 *) as_fn_append ac_config_targets " $1"
17805 ac_need_defaults=false ;;
17811 ac_configure_extra_args=
17813 if $ac_cs_silent; then
17815 ac_configure_extra_args="$ac_configure_extra_args --silent"
17819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17820 if \$ac_cs_recheck; then
17821 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17823 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17824 CONFIG_SHELL='$SHELL'
17825 export CONFIG_SHELL
17830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17835 ## Running $as_me. ##
17841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17845 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17848 # The HP-UX ksh and POSIX shell print the target directory to stdout
17849 # if CDPATH is set.
17850 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17852 sed_quote_subst='$sed_quote_subst'
17853 double_quote_subst='$double_quote_subst'
17854 delay_variable_subst='$delay_variable_subst'
17855 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17856 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17857 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17858 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17859 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17860 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17861 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17862 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17863 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17864 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17865 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17866 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17867 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17868 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17869 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17870 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17871 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17872 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17873 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17874 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17875 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17876 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17877 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17878 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17879 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17880 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17881 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17882 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17883 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17884 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17885 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17886 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17887 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17888 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17889 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17890 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17891 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17892 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17893 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17894 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17895 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17896 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17897 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17898 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17899 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17900 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17901 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17902 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17903 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17904 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17905 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17906 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17907 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17908 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17909 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17910 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17911 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17912 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17913 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"`'
17914 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17915 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17916 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17917 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17918 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17919 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17920 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17921 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17922 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17923 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17924 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17925 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17926 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17927 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17928 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17929 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17930 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17931 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17932 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17933 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17934 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17935 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17936 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17937 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17938 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17939 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17940 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17941 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17942 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17943 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17944 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17945 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17946 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17947 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17948 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17949 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17950 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17951 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17952 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17953 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17954 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17955 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17956 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17957 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17958 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17959 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17960 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17961 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17962 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17963 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17964 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17965 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17966 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17967 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17968 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17969 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17970 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17971 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17972 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17973 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17974 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17975 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17976 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17977 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17978 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17979 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17980 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17981 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17982 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17983 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17984 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17985 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17986 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17987 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17988 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17989 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17992 LTCFLAGS='$LTCFLAGS'
17993 compiler='$compiler_DEFAULT'
17995 # A function that is used when there is no print builtin or printf.
17996 func_fallback_echo ()
17998 eval 'cat <<_LTECHO_EOF
18003 # Quote evaled strings.
18018 deplibs_check_method \
18023 sharedlib_from_linklib_cmd \
18026 archiver_list_spec \
18032 lt_cv_sys_global_symbol_pipe \
18033 lt_cv_sys_global_symbol_to_cdecl \
18034 lt_cv_sys_global_symbol_to_import \
18035 lt_cv_sys_global_symbol_to_c_name_address \
18036 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18037 lt_cv_nm_interface \
18038 nm_file_list_spec \
18039 lt_cv_truncate_bin \
18040 lt_prog_compiler_no_builtin_flag \
18041 lt_prog_compiler_pic \
18042 lt_prog_compiler_wl \
18043 lt_prog_compiler_static \
18044 lt_cv_prog_compiler_c_o \
18053 export_dynamic_flag_spec \
18054 whole_archive_flag_spec \
18055 compiler_needs_object \
18057 allow_undefined_flag \
18058 no_undefined_flag \
18059 hardcode_libdir_flag_spec \
18060 hardcode_libdir_separator \
18064 variables_saved_for_relink \
18066 library_names_spec \
18068 install_override_mode \
18072 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18073 *[\\\\\\\`\\"\\\$]*)
18074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18082 # Double-quote double-evaled strings.
18083 for var in reload_cmds \
18084 old_postinstall_cmds \
18085 old_postuninstall_cmds \
18087 extract_expsyms_cmds \
18088 old_archive_from_new_cmds \
18089 old_archive_from_expsyms_cmds \
18091 archive_expsym_cmds \
18093 module_expsym_cmds \
18094 export_symbols_cmds \
18098 postuninstall_cmds \
18100 sys_lib_search_path_spec \
18101 configure_time_dlsearch_path \
18102 configure_time_lt_sys_library_path; do
18103 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18104 *[\\\\\\\`\\"\\\$]*)
18105 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18108 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18113 ac_aux_dir='$ac_aux_dir'
18115 # See if we are running on zsh, and set the options that allow our
18116 # commands through without removal of \ escapes INIT.
18117 if test -n "\${ZSH_VERSION+set}"; then
18118 setopt NO_GLOB_SUBST
18133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18135 # Handling of arguments.
18136 for ac_config_target in $ac_config_targets
18138 case $ac_config_target in
18139 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18140 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18141 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18142 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18143 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18144 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18145 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18146 "src/libecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/Makefile" ;;
18147 "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
18148 "src/key_mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/key_mod/Makefile" ;;
18149 "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
18150 "src/desktop/Makefile") CONFIG_FILES="$CONFIG_FILES src/desktop/Makefile" ;;
18151 "src/desktop/ecryptfs-mount-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-mount-private.desktop" ;;
18152 "src/desktop/ecryptfs-setup-private.desktop") CONFIG_FILES="$CONFIG_FILES src/desktop/ecryptfs-setup-private.desktop" ;;
18153 "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
18154 "doc/manpage/Makefile") CONFIG_FILES="$CONFIG_FILES doc/manpage/Makefile" ;;
18155 "src/pam_ecryptfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/pam_ecryptfs/Makefile" ;;
18156 "src/libecryptfs/libecryptfs.pc") CONFIG_FILES="$CONFIG_FILES src/libecryptfs/libecryptfs.pc" ;;
18157 "src/libecryptfs-swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/libecryptfs-swig/Makefile" ;;
18158 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18159 "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;;
18160 "tests/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/kernel/Makefile" ;;
18161 "tests/userspace/Makefile") CONFIG_FILES="$CONFIG_FILES tests/userspace/Makefile" ;;
18162 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18163 "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
18165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18170 # If the user did not use the arguments to specify the items to instantiate,
18171 # then the envvar interface is used. Set only those that are not.
18172 # We use the long form for the default assignment because of an extremely
18173 # bizarre bug on SunOS 4.1.3.
18174 if $ac_need_defaults; then
18175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18176 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18177 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18180 # Have a temporary directory for convenience. Make it in the build tree
18181 # simply because there is no reason against having it here, and in addition,
18182 # creating and moving files from /tmp can sometimes cause problems.
18183 # Hook for its removal unless debugging.
18184 # Note that there is a small window in which the directory will not be cleaned:
18185 # after its creation but before its name has been assigned to `$tmp'.
18189 trap 'exit_status=$?
18190 : "${ac_tmp:=$tmp}"
18191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18193 trap 'as_fn_exit 1' 1 2 13 15
18195 # Create a (secure) tmp directory for tmp files.
18198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18202 tmp=./conf$$-$RANDOM
18203 (umask 077 && mkdir "$tmp")
18204 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18207 # Set up the scripts for CONFIG_FILES section.
18208 # No need to generate them if there are no CONFIG_FILES.
18209 # This happens for instance with `./config.status config.h'.
18210 if test -n "$CONFIG_FILES"; then
18213 ac_cr=`echo X | tr X '\015'`
18214 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18215 # But we know of no other shell where ac_cr would be empty at this
18216 # point, so we can use a bashism as a fallback.
18217 if test "x$ac_cr" = x; then
18218 eval ac_cr=\$\'\\r\'
18220 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18221 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18224 ac_cs_awk_cr=$ac_cr
18227 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18232 echo "cat >conf$$subs.awk <<_ACEOF" &&
18233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18235 } >conf$$subs.sh ||
18236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18237 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18239 for ac_last_try in false false false false false :; do
18240 . ./conf$$subs.sh ||
18241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18244 if test $ac_delim_n = $ac_delim_num; then
18246 elif $ac_last_try; then
18247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18252 rm -f conf$$subs.sh
18254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18255 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18259 s/^/S["/; s/!.*/"]=/
18269 s/\(.\{148\}\)..*/\1/
18271 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18283 s/\(.\{148\}\)..*/\1/
18285 s/["\\]/\\&/g; s/^/"/; s/$/"/
18289 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18294 ' <conf$$subs.awk | sed '
18299 ' >>$CONFIG_STATUS || ac_write_fail=1
18300 rm -f conf$$subs.awk
18301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18303 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18304 for (key in S) S_is_set[key] = 1
18310 nfields = split(line, field, "@")
18312 len = length(field[1])
18313 for (i = 2; i < nfields; i++) {
18315 keylen = length(key)
18316 if (S_is_set[key]) {
18318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18319 len += length(value) + length(field[++i])
18330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18331 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18335 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18339 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18340 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18341 # trailing colons and then remove the whole line if VPATH becomes empty
18342 # (actually we leave an empty line to preserve line numbers).
18343 if test "x$srcdir" = x.; then
18344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 fi # test -n "$CONFIG_FILES"
18365 # Set up the scripts for CONFIG_HEADERS section.
18366 # No need to generate them if there are no CONFIG_HEADERS.
18367 # This happens for instance with `./config.status Makefile'.
18368 if test -n "$CONFIG_HEADERS"; then
18369 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18373 # Transform confdefs.h into an awk script `defines.awk', embedded as
18374 # here-document in config.status, that substitutes the proper values into
18375 # config.h.in to produce config.h.
18377 # Create a delimiter string that does not exist in confdefs.h, to ease
18378 # handling of long lines.
18380 for ac_last_try in false false :; do
18381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18382 if test -z "$ac_tt"; then
18384 elif $ac_last_try; then
18385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18391 # For the awk script, D is an array of macro values keyed by name,
18392 # likewise P contains macro parameters if any. Preserve backslash
18393 # newline sequences.
18395 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18397 s/.\{148\}/&'"$ac_delim"'/g
18400 s/^[ ]*#[ ]*define[ ][ ]*/ /
18407 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18409 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18413 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18414 D["\1"]=" \3\\\\\\n"\\/p
18416 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18421 s/.\{148\}/&'"$ac_delim"'/g
18426 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18429 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18431 ' <confdefs.h | sed '
18432 s/'"$ac_delim"'/"\\\
18433 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18436 for (key in D) D_is_set[key] = 1
18439 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18441 split(line, arg, " ")
18442 if (arg[1] == "#") {
18446 defundef = substr(arg[1], 2)
18449 split(mac1, mac2, "(") #)
18451 prefix = substr(line, 1, index(line, defundef) - 1)
18452 if (D_is_set[macro]) {
18453 # Preserve the white space surrounding the "#".
18454 print prefix "define", macro P[macro] D[macro]
18457 # Replace #undef with comments. This is necessary, for example,
18458 # in the case of _POSIX_SOURCE, which is predefined and required
18459 # on some systems where configure will not decide to define it.
18460 if (defundef == "undef") {
18461 print "/*", prefix defundef, macro, "*/"
18469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18471 fi # test -n "$CONFIG_HEADERS"
18474 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18479 :[FHLC]) ac_mode=$ac_tag; continue;;
18481 case $ac_mode$ac_tag in
18483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18484 :[FH]-) ac_tag=-:-;;
18485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18502 -) ac_f="$ac_tmp/stdin";;
18503 *) # Look for the file first in the build tree, then in the source tree
18504 # (if the path is not absolute). The absolute path cannot be DOS-style,
18505 # because $ac_f cannot contain `:'.
18509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18514 as_fn_append ac_file_inputs " '$ac_f'"
18517 # Let's still pretend it is `configure' which instantiates (i.e., don't
18518 # use $as_me), people would be surprised to read:
18519 # /* config.h. Generated by config.status. */
18520 configure_input='Generated from '`
18521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18523 if test x"$ac_file" != x-; then
18524 configure_input="$ac_file. $configure_input"
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18526 $as_echo "$as_me: creating $ac_file" >&6;}
18528 # Neutralize special characters interpreted by sed in replacement strings.
18529 case $configure_input in #(
18530 *\&* | *\|* | *\\* )
18531 ac_sed_conf_input=`$as_echo "$configure_input" |
18532 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18533 *) ac_sed_conf_input=$configure_input;;
18537 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18543 ac_dir=`$as_dirname -- "$ac_file" ||
18544 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18545 X"$ac_file" : 'X\(//\)[^/]' \| \
18546 X"$ac_file" : 'X\(//\)$' \| \
18547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18548 $as_echo X"$ac_file" |
18549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18553 /^X\(\/\/\)[^/].*/{
18566 as_dir="$ac_dir"; as_fn_mkdir_p
18570 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18573 # A ".." for each directory in $ac_dir_suffix.
18574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18575 case $ac_top_builddir_sub in
18576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18580 ac_abs_top_builddir=$ac_pwd
18581 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18582 # for backward compatibility:
18583 ac_top_builddir=$ac_top_build_prefix
18586 .) # We are building in place.
18588 ac_top_srcdir=$ac_top_builddir_sub
18589 ac_abs_top_srcdir=$ac_pwd ;;
18590 [\\/]* | ?:[\\/]* ) # Absolute name.
18591 ac_srcdir=$srcdir$ac_dir_suffix;
18592 ac_top_srcdir=$srcdir
18593 ac_abs_top_srcdir=$srcdir ;;
18594 *) # Relative name.
18595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18596 ac_top_srcdir=$ac_top_build_prefix$srcdir
18597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18599 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18612 ac_MKDIR_P=$MKDIR_P
18614 [\\/$]* | ?:[\\/]* ) ;;
18615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18620 # If the template does not know about datarootdir, expand it.
18621 # FIXME: This hack should be removed a few years after 2.60.
18622 ac_datarootdir_hack=; ac_datarootdir_seen=
18633 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18634 *datarootdir*) ac_datarootdir_seen=yes;;
18635 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18637 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18640 ac_datarootdir_hack='
18641 s&@datadir@&$datadir&g
18642 s&@docdir@&$docdir&g
18643 s&@infodir@&$infodir&g
18644 s&@localedir@&$localedir&g
18645 s&@mandir@&$mandir&g
18646 s&\\\${datarootdir}&$datarootdir&g' ;;
18650 # Neutralize VPATH when `$srcdir' = `.'.
18651 # Shell code in configure.ac might set extrasub.
18652 # FIXME: do we really want to maintain this feature?
18653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18654 ac_sed_extra="$ac_vpsub
18657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18660 s|@configure_input@|$ac_sed_conf_input|;t t
18661 s&@top_builddir@&$ac_top_builddir_sub&;t t
18662 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18663 s&@srcdir@&$ac_srcdir&;t t
18664 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18665 s&@top_srcdir@&$ac_top_srcdir&;t t
18666 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18667 s&@builddir@&$ac_builddir&;t t
18668 s&@abs_builddir@&$ac_abs_builddir&;t t
18669 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18670 s&@INSTALL@&$ac_INSTALL&;t t
18671 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18672 $ac_datarootdir_hack
18674 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18677 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18680 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18682 which seems to be undefined. Please make sure it is defined" >&5
18683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18684 which seems to be undefined. Please make sure it is defined" >&2;}
18686 rm -f "$ac_tmp/stdin"
18688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18697 if test x"$ac_file" != x-; then
18699 $as_echo "/* $configure_input */" \
18700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18701 } >"$ac_tmp/config.h" \
18702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18708 mv "$ac_tmp/config.h" "$ac_file" \
18709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18712 $as_echo "/* $configure_input */" \
18713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18714 || as_fn_error $? "could not create -" "$LINENO" 5
18716 # Compute "$ac_file"'s index in $config_headers.
18719 for _am_header in $config_headers :; do
18720 case $_am_header in
18721 $_am_arg | $_am_arg:* )
18724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18729 X"$_am_arg" : 'X\(//\)[^/]' \| \
18730 X"$_am_arg" : 'X\(//\)$' \| \
18731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18732 $as_echo X"$_am_arg" |
18733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18737 /^X\(\/\/\)[^/].*/{
18749 s/.*/./; q'`/stamp-h$_am_stamp_count
18752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18753 $as_echo "$as_me: executing $ac_file commands" >&6;}
18758 case $ac_file$ac_mode in
18759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18760 # Older Autoconf quotes --file arguments for eval, but not when files
18761 # are listed without --file. Let's play safe and only enable the eval
18762 # if we detect the quoting.
18763 case $CONFIG_FILES in
18764 *\'*) eval set x "$CONFIG_FILES" ;;
18765 *) set x $CONFIG_FILES ;;
18770 # Strip MF so we end up with the name of the file.
18771 mf=`echo "$mf" | sed -e 's/:.*$//'`
18772 # Check whether this is an Automake generated Makefile or not.
18773 # We used to match only the files named 'Makefile.in', but
18774 # some people rename them; so instead we look at the file content.
18775 # Grep'ing the first line is not enough: some people post-process
18776 # each Makefile.in and add a new line on top of each file to say so.
18777 # Grep'ing the whole file is not good either: AIX grep has a line
18778 # limit of 2048, but all sed's we know have understand at least 4000.
18779 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18780 dirpart=`$as_dirname -- "$mf" ||
18781 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18782 X"$mf" : 'X\(//\)[^/]' \| \
18783 X"$mf" : 'X\(//\)$' \| \
18784 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18790 /^X\(\/\/\)[^/].*/{
18806 # Extract the definition of DEPDIR, am__include, and am__quote
18807 # from the Makefile without running 'make'.
18808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18809 test -z "$DEPDIR" && continue
18810 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18811 test -z "$am__include" && continue
18812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18813 # Find all dependency output files, they are included files with
18814 # $(DEPDIR) in their names. We invoke sed twice because it is the
18815 # simplest approach to changing $(DEPDIR) to its actual value in the
18817 for file in `sed -n "
18818 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18819 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18820 # Make sure the directory exists.
18821 test -f "$dirpart/$file" && continue
18822 fdir=`$as_dirname -- "$file" ||
18823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18824 X"$file" : 'X\(//\)[^/]' \| \
18825 X"$file" : 'X\(//\)$' \| \
18826 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18827 $as_echo X"$file" |
18828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18832 /^X\(\/\/\)[^/].*/{
18845 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18846 # echo "creating $dirpart/$file"
18847 echo '# dummy' > "$dirpart/$file"
18854 # See if we are running on zsh, and set the options that allow our
18855 # commands through without removal of \ escapes.
18856 if test -n "${ZSH_VERSION+set}"; then
18857 setopt NO_GLOB_SUBST
18861 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18864 cat <<_LT_EOF >> "$cfgfile"
18866 # Generated automatically by $as_me ($PACKAGE) $VERSION
18867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18870 # Provide generalized library-building support services.
18871 # Written by Gordon Matzigkeit, 1996
18873 # Copyright (C) 2014 Free Software Foundation, Inc.
18874 # This is free software; see the source for copying conditions. There is NO
18875 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18877 # GNU Libtool is free software; you can redistribute it and/or modify
18878 # it under the terms of the GNU General Public License as published by
18879 # the Free Software Foundation; either version 2 of of the License, or
18880 # (at your option) any later version.
18882 # As a special exception to the GNU General Public License, if you
18883 # distribute this file as part of a program or library that is built
18884 # using GNU Libtool, you may include this file under the same
18885 # distribution terms that you use for the rest of that program.
18887 # GNU Libtool is distributed in the hope that it will be useful, but
18888 # WITHOUT ANY WARRANTY; without even the implied warranty of
18889 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18890 # GNU General Public License for more details.
18892 # You should have received a copy of the GNU General Public License
18893 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18896 # The names of the tagged configurations supported by this script.
18899 # Configured defaults for sys_lib_dlsearch_path munging.
18900 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18902 # ### BEGIN LIBTOOL CONFIG
18904 # Whether or not to build static libraries.
18905 build_old_libs=$enable_static
18907 # Which release of libtool.m4 was used?
18908 macro_version=$macro_version
18909 macro_revision=$macro_revision
18911 # Whether or not to build shared libraries.
18912 build_libtool_libs=$enable_shared
18914 # What type of objects to build.
18917 # Whether or not to optimize for fast installation.
18918 fast_install=$enable_fast_install
18920 # Shared archive member basename,for filename based shared library versioning on AIX.
18921 shared_archive_member_spec=$shared_archive_member_spec
18923 # Shell to use when invoking shell scripts.
18926 # An echo program that protects backslashes.
18929 # The PATH separator for the build system.
18930 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18933 host_alias=$host_alias
18937 # The build system.
18938 build_alias=$build_alias
18942 # A sed program that does not truncate output.
18945 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18946 Xsed="\$SED -e 1s/^X//"
18948 # A grep program that handles long lines.
18954 # A literal string matcher.
18957 # A BSD- or MS-compatible name lister.
18960 # Whether we need soft or hard links.
18963 # What is the maximum length of a command?
18964 max_cmd_len=$max_cmd_len
18966 # Object file suffix (normally "o").
18969 # Executable file suffix (normally "").
18972 # whether the shell understands "unset".
18975 # turn spaces into newlines.
18978 # turn newlines into spaces.
18981 # convert \$build file names to \$host format.
18982 to_host_file_cmd=$lt_cv_to_host_file_cmd
18984 # convert \$build files to toolchain format.
18985 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18987 # An object symbol dumper.
18988 OBJDUMP=$lt_OBJDUMP
18990 # Method to check whether dependent libraries are shared objects.
18991 deplibs_check_method=$lt_deplibs_check_method
18993 # Command to use when deplibs_check_method = "file_magic".
18994 file_magic_cmd=$lt_file_magic_cmd
18996 # How to find potential files when deplibs_check_method = "file_magic".
18997 file_magic_glob=$lt_file_magic_glob
18999 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19000 want_nocaseglob=$lt_want_nocaseglob
19002 # DLL creation program.
19003 DLLTOOL=$lt_DLLTOOL
19005 # Command to associate shared and link libraries.
19006 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19011 # Flags to create an archive.
19012 AR_FLAGS=$lt_AR_FLAGS
19014 # How to feed a file listing to the archiver.
19015 archiver_list_spec=$lt_archiver_list_spec
19017 # A symbol stripping program.
19020 # Commands used to install an old-style archive.
19022 old_postinstall_cmds=$lt_old_postinstall_cmds
19023 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19025 # Whether to use a lock for old archive extraction.
19026 lock_old_archive_extraction=$lock_old_archive_extraction
19031 # LTCC compiler flags.
19032 LTCFLAGS=$lt_CFLAGS
19034 # Take the output of nm and produce a listing of raw symbols and C names.
19035 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19037 # Transform the output of nm in a proper C declaration.
19038 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19040 # Transform the output of nm into a list of symbols to manually relocate.
19041 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19043 # Transform the output of nm in a C name address pair.
19044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19046 # Transform the output of nm in a C name address pair when lib prefix is needed.
19047 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19049 # The name lister interface.
19050 nm_interface=$lt_lt_cv_nm_interface
19052 # Specify filename containing input files for \$NM.
19053 nm_file_list_spec=$lt_nm_file_list_spec
19055 # The root where to search for dependent libraries,and where our libraries should be installed.
19056 lt_sysroot=$lt_sysroot
19058 # Command to truncate a binary pipe.
19059 lt_truncate_bin=$lt_lt_cv_truncate_bin
19061 # The name of the directory that contains temporary libtool files.
19064 # Used to examine libraries when file_magic_cmd begins with "file".
19065 MAGIC_CMD=$MAGIC_CMD
19067 # Must we lock files when doing compilation?
19068 need_locks=$lt_need_locks
19071 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19073 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19074 DSYMUTIL=$lt_DSYMUTIL
19076 # Tool to change global to local symbols on Mac OS X.
19079 # Tool to manipulate fat objects and archives on Mac OS X.
19082 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19085 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19086 OTOOL64=$lt_OTOOL64
19088 # Old archive suffix (normally "a").
19091 # Shared library suffix (normally ".so").
19092 shrext_cmds=$lt_shrext_cmds
19094 # The commands to extract the exported symbol list from a shared archive.
19095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19097 # Variables whose values should be saved in libtool wrapper scripts and
19098 # restored at link time.
19099 variables_saved_for_relink=$lt_variables_saved_for_relink
19101 # Do we need the "lib" prefix for modules?
19102 need_lib_prefix=$need_lib_prefix
19104 # Do we need a version for libraries?
19105 need_version=$need_version
19107 # Library versioning type.
19108 version_type=$version_type
19110 # Shared library runtime path variable.
19111 runpath_var=$runpath_var
19113 # Shared library path variable.
19114 shlibpath_var=$shlibpath_var
19116 # Is shlibpath searched before the hard-coded library search path?
19117 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19119 # Format of library name prefix.
19120 libname_spec=$lt_libname_spec
19122 # List of archive names. First name is the real one, the rest are links.
19123 # The last name is the one that the linker finds with -lNAME
19124 library_names_spec=$lt_library_names_spec
19126 # The coded name of the library, if different from the real name.
19127 soname_spec=$lt_soname_spec
19129 # Permission mode override for installation of shared libraries.
19130 install_override_mode=$lt_install_override_mode
19132 # Command to use after installation of a shared archive.
19133 postinstall_cmds=$lt_postinstall_cmds
19135 # Command to use after uninstallation of a shared archive.
19136 postuninstall_cmds=$lt_postuninstall_cmds
19138 # Commands used to finish a libtool library installation in a directory.
19139 finish_cmds=$lt_finish_cmds
19141 # As "finish_cmds", except a single script fragment to be evaled but
19143 finish_eval=$lt_finish_eval
19145 # Whether we should hardcode library paths into libraries.
19146 hardcode_into_libs=$hardcode_into_libs
19148 # Compile-time system search path for libraries.
19149 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19151 # Detected run-time system search path for libraries.
19152 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19154 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19155 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19157 # Whether dlopen is supported.
19158 dlopen_support=$enable_dlopen
19160 # Whether dlopen of programs is supported.
19161 dlopen_self=$enable_dlopen_self
19163 # Whether dlopen of statically linked programs is supported.
19164 dlopen_self_static=$enable_dlopen_self_static
19166 # Commands to strip libraries.
19167 old_striplib=$lt_old_striplib
19168 striplib=$lt_striplib
19171 # The linker used to build libraries.
19174 # How to create reloadable object files.
19175 reload_flag=$lt_reload_flag
19176 reload_cmds=$lt_reload_cmds
19178 # Commands used to build an old-style archive.
19179 old_archive_cmds=$lt_old_archive_cmds
19181 # A language specific compiler.
19184 # Is the compiler the GNU compiler?
19187 # Compiler flag to turn off builtin functions.
19188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19190 # Additional compiler flags for building library objects.
19191 pic_flag=$lt_lt_prog_compiler_pic
19193 # How to pass a linker flag through the compiler.
19194 wl=$lt_lt_prog_compiler_wl
19196 # Compiler flag to prevent dynamic linking.
19197 link_static_flag=$lt_lt_prog_compiler_static
19199 # Does compiler simultaneously support -c and -o options?
19200 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19202 # Whether or not to add -lc for building shared libraries.
19203 build_libtool_need_lc=$archive_cmds_need_lc
19205 # Whether or not to disallow shared libs when runtime libs are static.
19206 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19208 # Compiler flag to allow reflexive dlopens.
19209 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19211 # Compiler flag to generate shared objects directly from archives.
19212 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19214 # Whether the compiler copes with passing no objects directly.
19215 compiler_needs_object=$lt_compiler_needs_object
19217 # Create an old-style archive from a shared archive.
19218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19220 # Create a temporary old-style archive to link instead of a shared archive.
19221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19223 # Commands used to build a shared archive.
19224 archive_cmds=$lt_archive_cmds
19225 archive_expsym_cmds=$lt_archive_expsym_cmds
19227 # Commands used to build a loadable module if different from building
19228 # a shared archive.
19229 module_cmds=$lt_module_cmds
19230 module_expsym_cmds=$lt_module_expsym_cmds
19232 # Whether we are building with GNU ld or not.
19233 with_gnu_ld=$lt_with_gnu_ld
19235 # Flag that allows shared libraries with undefined symbols to be built.
19236 allow_undefined_flag=$lt_allow_undefined_flag
19238 # Flag that enforces no undefined symbols.
19239 no_undefined_flag=$lt_no_undefined_flag
19241 # Flag to hardcode \$libdir into a binary during linking.
19242 # This must work even if \$libdir does not exist
19243 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19245 # Whether we need a single "-rpath" flag with a separated argument.
19246 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19248 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19249 # DIR into the resulting binary.
19250 hardcode_direct=$hardcode_direct
19252 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19253 # DIR into the resulting binary and the resulting library dependency is
19254 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19255 # library is relocated.
19256 hardcode_direct_absolute=$hardcode_direct_absolute
19258 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19259 # into the resulting binary.
19260 hardcode_minus_L=$hardcode_minus_L
19262 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19263 # into the resulting binary.
19264 hardcode_shlibpath_var=$hardcode_shlibpath_var
19266 # Set to "yes" if building a shared library automatically hardcodes DIR
19267 # into the library and all subsequent libraries and executables linked
19269 hardcode_automatic=$hardcode_automatic
19271 # Set to yes if linker adds runtime paths of dependent libraries
19272 # to runtime path list.
19273 inherit_rpath=$inherit_rpath
19275 # Whether libtool must link a program against all its dependency libraries.
19276 link_all_deplibs=$link_all_deplibs
19278 # Set to "yes" if exported symbols are required.
19279 always_export_symbols=$always_export_symbols
19281 # The commands to list exported symbols.
19282 export_symbols_cmds=$lt_export_symbols_cmds
19284 # Symbols that should not be listed in the preloaded symbols.
19285 exclude_expsyms=$lt_exclude_expsyms
19287 # Symbols that must always be exported.
19288 include_expsyms=$lt_include_expsyms
19290 # Commands necessary for linking programs (against libraries) with templates.
19291 prelink_cmds=$lt_prelink_cmds
19293 # Commands necessary for finishing linking programs.
19294 postlink_cmds=$lt_postlink_cmds
19296 # Specify filename containing input files.
19297 file_list_spec=$lt_file_list_spec
19299 # How to hardcode a shared library path into an executable.
19300 hardcode_action=$hardcode_action
19302 # ### END LIBTOOL CONFIG
19306 cat <<'_LT_EOF' >> "$cfgfile"
19308 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19310 # func_munge_path_list VARIABLE PATH
19311 # -----------------------------------
19312 # VARIABLE is name of variable containing _space_ separated list of
19313 # directories to be munged by the contents of PATH, which is string
19316 # string "DIR[ DIR]" will be prepended to VARIABLE
19318 # string "DIR[ DIR]" will be appended to VARIABLE
19319 # "DIRP[:DIRP]::[DIRA:]DIRA"
19320 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19321 # "DIRA[ DIRA]" will be appended to VARIABLE
19323 # VARIABLE will be replaced by "DIR[ DIR]"
19324 func_munge_path_list ()
19330 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19333 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19336 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19337 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19340 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19346 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19347 func_cc_basename ()
19349 for cc_temp in $*""; do
19351 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19352 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19357 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19361 # ### END FUNCTIONS SHARED WITH CONFIGURE
19367 cat <<\_LT_EOF >> "$cfgfile"
19368 # AIX sometimes has problems with the GCC collect2 program. For some
19369 # reason, if we set the COLLECT_NAMES environment variable, the problems
19370 # vanish in a puff of smoke.
19371 if test set != "${COLLECT_NAMES+set}"; then
19373 export COLLECT_NAMES
19380 ltmain=$ac_aux_dir/ltmain.sh
19383 # We use sed instead of cat because bash on DJGPP gets confused if
19384 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19385 # text mode, it properly converts lines to CR/LF. This bash problem
19386 # is reportedly fixed, but why not run on old versions too?
19387 sed '$q' "$ltmain" >> "$cfgfile" \
19388 || (rm -f "$cfgfile"; exit 1)
19390 mv -f "$cfgfile" "$ofile" ||
19391 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19395 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
19396 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
19399 if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
19400 as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
19402 rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
19407 '"s|^| $ac_top_srcdir/|" \
19408 "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
19410 sed '/^POTFILES =/,/[^\\]$/ {
19414 ' "po/Makefile.in" >"po/Makefile"
19415 rm -f "po/Makefile.tmp"
19416 mv "po/stamp-it.tmp" "po/stamp-it"
19425 ac_clean_files=$ac_clean_files_save
19427 test $ac_write_fail = 0 ||
19428 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19431 # configure is writing to config.log, and then calls config.status.
19432 # config.status does its own redirection, appending to config.log.
19433 # Unfortunately, on DOS this fails, as config.log is still kept open
19434 # by configure, so config.status won't be able to write to it; its
19435 # output is simply discarded. So we exec the FD to /dev/null,
19436 # effectively closing config.log, so it can be properly (re)opened and
19437 # appended to by config.status. When coming back to configure, we
19438 # need to make the FD available again.
19439 if test "$no_create" != yes; then
19441 ac_config_status_args=
19442 test "$silent" = yes &&
19443 ac_config_status_args="$ac_config_status_args --quiet"
19445 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19447 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19448 # would make configure fail if this is the last instruction.
19449 $ac_cs_success || as_fn_exit 1
19451 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19453 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19457 if test "${prefix}" != "/usr"; then
19459 echo "Warning: install prefix is $prefix"
19461 echo "Most mount applications expect the mount helper to install to"
19462 echo "/sbin. You can install the mount helper to that location by "
19463 echo "running the configure script again with --prefix=/usr:"
19465 echo "./configure --prefix=/usr"