2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for krb5-strength 3.3.
5 # Report bugs to <eagle@eyrie.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and eagle@eyrie.org
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
622 PACKAGE_NAME='krb5-strength'
623 PACKAGE_TARNAME='krb5-strength'
624 PACKAGE_VERSION='3.3'
625 PACKAGE_STRING='krb5-strength 3.3'
626 PACKAGE_BUGREPORT='eagle@eyrie.org'
629 ac_config_libobj_dir=portable
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
674 KRB5_USES_COM_ERR_FALSE
675 KRB5_USES_COM_ERR_TRUE
679 KRB5_CPPFLAGS_WARNINGS
681 EMBEDDED_CRACKLIB_FALSE
682 EMBEDDED_CRACKLIB_TRUE
739 MAINTAINER_MODE_FALSE
756 INSTALL_STRIP_PROGRAM
799 program_transform_name
813 enable_option_checking
815 enable_maintainer_mode
816 enable_dependency_tracking
830 with_cracklib_include
835 enable_reduced_depends
840 ac_precious_vars='build_alias
857 # Initialize some variables set by options.
859 ac_init_version=false
860 ac_unrecognized_opts=
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
871 program_transform_name=s,x,x,
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 runstatedir='${localstatedir}/run'
894 includedir='${prefix}/include'
895 oldincludedir='/usr/include'
896 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
897 infodir='${datarootdir}/info'
902 libdir='${exec_prefix}/lib'
903 localedir='${datarootdir}/locale'
904 mandir='${datarootdir}/man'
910 # If the previous option needs an argument, assign it.
911 if test -n "$ac_prev"; then
912 eval $ac_prev=\$ac_option
918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 case $ac_dashdash$ac_option in
927 -bindir | --bindir | --bindi | --bind | --bin | --bi)
929 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 -build | --build | --buil | --bui | --bu)
933 ac_prev=build_alias ;;
934 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935 build_alias=$ac_optarg ;;
937 -cache-file | --cache-file | --cache-fil | --cache-fi \
938 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939 ac_prev=cache_file ;;
940 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942 cache_file=$ac_optarg ;;
945 cache_file=config.cache ;;
947 -datadir | --datadir | --datadi | --datad)
949 -datadir=* | --datadir=* | --datadi=* | --datad=*)
950 datadir=$ac_optarg ;;
952 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953 | --dataroo | --dataro | --datar)
954 ac_prev=datarootdir ;;
955 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957 datarootdir=$ac_optarg ;;
959 -disable-* | --disable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: \`$ac_useropt'"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=no ;;
975 -docdir | --docdir | --docdi | --doc | --do)
977 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 -enable-* | --enable-*)
986 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
987 # Reject names that are not valid shell variable names.
988 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989 as_fn_error $? "invalid feature name: \`$ac_useropt'"
990 ac_useropt_orig=$ac_useropt
991 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
992 case $ac_user_opts in
996 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
997 ac_unrecognized_sep=', ';;
999 eval enable_$ac_useropt=\$ac_optarg ;;
1001 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1002 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1003 | --exec | --exe | --ex)
1004 ac_prev=exec_prefix ;;
1005 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1006 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1007 | --exec=* | --exe=* | --ex=*)
1008 exec_prefix=$ac_optarg ;;
1010 -gas | --gas | --ga | --g)
1011 # Obsolete; use --with-gas.
1014 -help | --help | --hel | --he | -h)
1015 ac_init_help=long ;;
1016 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1017 ac_init_help=recursive ;;
1018 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1019 ac_init_help=short ;;
1021 -host | --host | --hos | --ho)
1022 ac_prev=host_alias ;;
1023 -host=* | --host=* | --hos=* | --ho=*)
1024 host_alias=$ac_optarg ;;
1026 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030 htmldir=$ac_optarg ;;
1032 -includedir | --includedir | --includedi | --included | --include \
1033 | --includ | --inclu | --incl | --inc)
1034 ac_prev=includedir ;;
1035 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1036 | --includ=* | --inclu=* | --incl=* | --inc=*)
1037 includedir=$ac_optarg ;;
1039 -infodir | --infodir | --infodi | --infod | --info | --inf)
1041 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1042 infodir=$ac_optarg ;;
1044 -libdir | --libdir | --libdi | --libd)
1046 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1047 libdir=$ac_optarg ;;
1049 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1050 | --libexe | --libex | --libe)
1051 ac_prev=libexecdir ;;
1052 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1053 | --libexe=* | --libex=* | --libe=*)
1054 libexecdir=$ac_optarg ;;
1056 -localedir | --localedir | --localedi | --localed | --locale)
1057 ac_prev=localedir ;;
1058 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1059 localedir=$ac_optarg ;;
1061 -localstatedir | --localstatedir | --localstatedi | --localstated \
1062 | --localstate | --localstat | --localsta | --localst | --locals)
1063 ac_prev=localstatedir ;;
1064 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1065 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1066 localstatedir=$ac_optarg ;;
1068 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1071 mandir=$ac_optarg ;;
1073 -nfp | --nfp | --nf)
1074 # Obsolete; use --without-fp.
1077 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1078 | --no-cr | --no-c | -n)
1081 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1082 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1086 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1087 | --oldin | --oldi | --old | --ol | --o)
1088 ac_prev=oldincludedir ;;
1089 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1090 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1091 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1092 oldincludedir=$ac_optarg ;;
1094 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1097 prefix=$ac_optarg ;;
1099 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1100 | --program-pre | --program-pr | --program-p)
1101 ac_prev=program_prefix ;;
1102 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1103 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1104 program_prefix=$ac_optarg ;;
1106 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1107 | --program-suf | --program-su | --program-s)
1108 ac_prev=program_suffix ;;
1109 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1110 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1111 program_suffix=$ac_optarg ;;
1113 -program-transform-name | --program-transform-name \
1114 | --program-transform-nam | --program-transform-na \
1115 | --program-transform-n | --program-transform- \
1116 | --program-transform | --program-transfor \
1117 | --program-transfo | --program-transf \
1118 | --program-trans | --program-tran \
1119 | --progr-tra | --program-tr | --program-t)
1120 ac_prev=program_transform_name ;;
1121 -program-transform-name=* | --program-transform-name=* \
1122 | --program-transform-nam=* | --program-transform-na=* \
1123 | --program-transform-n=* | --program-transform-=* \
1124 | --program-transform=* | --program-transfor=* \
1125 | --program-transfo=* | --program-transf=* \
1126 | --program-trans=* | --program-tran=* \
1127 | --progr-tra=* | --program-tr=* | --program-t=*)
1128 program_transform_name=$ac_optarg ;;
1130 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1133 pdfdir=$ac_optarg ;;
1135 -psdir | --psdir | --psdi | --psd | --ps)
1137 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1141 | -silent | --silent | --silen | --sile | --sil)
1144 -runstatedir | --runstatedir | --runstatedi | --runstated \
1145 | --runstate | --runstat | --runsta | --runst | --runs \
1146 | --run | --ru | --r)
1147 ac_prev=runstatedir ;;
1148 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1149 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1150 | --run=* | --ru=* | --r=*)
1151 runstatedir=$ac_optarg ;;
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error $? "invalid package name: \`$ac_useropt'"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=\$ac_optarg ;;
1214 -without-* | --without-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: \`$ac_useropt'"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1228 eval with_$ac_useropt=no ;;
1231 # Obsolete; use --with-x.
1234 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1235 | --x-incl | --x-inc | --x-in | --x-i)
1236 ac_prev=x_includes ;;
1237 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1238 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1239 x_includes=$ac_optarg ;;
1241 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1242 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1243 ac_prev=x_libraries ;;
1244 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1245 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1246 x_libraries=$ac_optarg ;;
1248 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1249 Try \`$0 --help' for more information"
1253 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254 # Reject names that are not valid shell variable names.
1255 case $ac_envvar in #(
1256 '' | [0-9]* | *[!_$as_cr_alnum]* )
1257 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 eval $ac_envvar=\$ac_optarg
1260 export $ac_envvar ;;
1263 # FIXME: should be removed in autoconf 3.0.
1264 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1265 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1266 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1267 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273 if test -n "$ac_prev"; then
1274 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1275 as_fn_error $? "missing argument to $ac_option"
1278 if test -n "$ac_unrecognized_opts"; then
1279 case $enable_option_checking in
1281 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1282 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286 # Check all directory arguments for consistency.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir runstatedir
1292 eval ac_val=\$$ac_var
1293 # Remove trailing slashes.
1296 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1297 eval $ac_var=\$ac_val;;
1299 # Be sure to have absolute directory names.
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 # There might be people who depend on the old broken behavior: `$host'
1308 # used to hold the argument of --host etc.
1309 # FIXME: To remove some day.
1312 target=$target_alias
1314 # FIXME: To remove some day.
1315 if test "x$host_alias" != x; then
1316 if test "x$build_alias" = x; then
1317 cross_compiling=maybe
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 as_fn_error $? "working directory cannot be determined"
1333 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1334 as_fn_error $? "pwd does not report name of working directory"
1337 # Find the source files, if location was not specified.
1338 if test -z "$srcdir"; then
1339 ac_srcdir_defaulted=yes
1340 # Try the directory containing this script, then the parent directory.
1341 ac_confdir=`$as_dirname -- "$as_myself" ||
1342 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1343 X"$as_myself" : 'X\(//\)[^/]' \| \
1344 X"$as_myself" : 'X\(//\)$' \| \
1345 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1346 printf "%s\n" X"$as_myself" |
1347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1369 ac_srcdir_defaulted=no
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1372 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1373 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures krb5-strength 3.3 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking ...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/krb5-strength]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of krb5-strength 3.3:";;
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1482 --enable-silent-rules less verbose build output (undo: "make V=1")
1483 --disable-silent-rules verbose build output (undo: "make V=0")
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --disable-largefile omit support for large files
1492 --enable-static[=PKGS] build static libraries [default=no]
1493 --enable-shared[=PKGS] build shared libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-reduced-depends
1498 Try to minimize shared library dependencies
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511 --with-tinycdb[=DIR] Location of TinyCDB headers and libraries
1512 --with-tinycdb-include=DIR
1513 Location of TinyCDB headers
1514 --with-tinycdb-lib=DIR Location of TinyCDB libraries
1515 --with-cracklib[=DIR] Use system CrackLib instead of embedded copy
1516 --with-cracklib-include=DIR
1517 Location of CrackLib headers
1518 --with-cracklib-lib=DIR Location of CrackLib libraries
1519 --with-krb5=DIR Location of Kerberos headers and libraries
1520 --with-krb5-include=DIR Location of Kerberos headers
1521 --with-krb5-lib=DIR Location of Kerberos libraries
1522 --with-sqlite3[=DIR] Location of SQLite v3 headers and libraries
1523 --with-sqlite3-include=DIR
1524 Location of SQLite v3 headers
1525 --with-sqlite3-lib=DIR Location of SQLite v3 libraries
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1536 User-defined run-time library search path.
1539 PKG_CONFIG path to pkg-config utility
1541 directories to add to pkg-config's search path
1543 path overriding pkg-config's built-in search path
1545 C compiler flags for SQLITE3, overriding pkg-config
1547 linker flags for SQLITE3, overriding pkg-config
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to <eagle@eyrie.org>.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for configure.gnu first; this name is used for a wrapper for
1599 # Metaconfig's "Configure" on case-insensitive file systems.
1600 if test -f "$ac_srcdir/configure.gnu"; then
1602 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603 elif test -f "$ac_srcdir/configure"; then
1605 $SHELL "$ac_srcdir/configure" --help=recursive
1607 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 cd "$ac_pwd" || { ac_status=$?; break; }
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1616 krb5-strength configure 3.3
1617 generated by GNU Autoconf 2.71
1619 Copyright (C) 2021 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest.beam
1637 if { { ac_try="$ac_compile"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 printf "%s\n" "$ac_try_echo"; } >&5
1644 (eval "$ac_compile") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest.$ac_objext
1659 printf "%s\n" "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_compile
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 printf %s "checking for $2... " >&6; }
1678 if eval test \${$3+y}
1680 printf %s "(cached) " >&6
1682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1683 /* end confdefs.h. */
1687 if ac_fn_c_try_compile "$LINENO"
1693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 printf "%s\n" "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_compile
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest$ac_exeext
1734 printf "%s\n" "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_link
1749 # ac_fn_c_check_func LINENO FUNC VAR
1750 # ----------------------------------
1751 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1752 ac_fn_c_check_func ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 printf %s "checking for $2... " >&6; }
1757 if eval test \${$3+y}
1759 printf %s "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1765 #define $2 innocuous_$2
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char $2 (); below. */
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1795 if ac_fn_c_try_link "$LINENO"
1801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1802 conftest$ac_exeext conftest.$ac_ext
1805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 printf "%s\n" "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 } # ac_fn_c_check_func
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1814 # executables *can* be run.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 printf "%s\n" "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 printf "%s\n" "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }
1842 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1843 printf "%s\n" "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1846 ac_retval=$ac_status
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1854 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1855 # --------------------------------------------
1856 # Tries to find the compile-time value of EXPR in a program that includes
1857 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1859 ac_fn_c_compute_int ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if test "$cross_compiling" = yes; then
1863 # Depending upon the size, compute the lo and hi bounds.
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1870 static int test_array [1 - 2 * !(($2) >= 0)];
1872 return test_array [0];
1878 if ac_fn_c_try_compile "$LINENO"
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1888 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1890 return test_array [0];
1896 if ac_fn_c_try_compile "$LINENO"
1898 ac_hi=$ac_mid; break
1900 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1901 if test $ac_lo -le $ac_mid; then
1905 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1916 static int test_array [1 - 2 * !(($2) < 0)];
1918 return test_array [0];
1924 if ac_fn_c_try_compile "$LINENO"
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1934 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1936 return test_array [0];
1942 if ac_fn_c_try_compile "$LINENO"
1944 ac_lo=$ac_mid; break
1946 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1947 if test $ac_mid -le $ac_hi; then
1951 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1961 # Binary search between lo and hi bounds.
1962 while test "x$ac_lo" != "x$ac_hi"; do
1963 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1970 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1972 return test_array [0];
1978 if ac_fn_c_try_compile "$LINENO"
1982 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1987 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1994 static long int longval (void) { return $2; }
1995 static unsigned long int ulongval (void) { return $2; }
2002 FILE *f = fopen ("conftest.val", "w");
2007 long int i = longval ();
2010 fprintf (f, "%ld", i);
2014 unsigned long int i = ulongval ();
2017 fprintf (f, "%lu", i);
2019 /* Do not output a trailing newline, as this causes \r\n confusion
2020 on some platforms. */
2021 return ferror (f) || fclose (f) != 0;
2027 if ac_fn_c_try_run "$LINENO"
2029 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2034 conftest.$ac_objext conftest.beam conftest.$ac_ext
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 as_fn_set_status $ac_retval
2041 } # ac_fn_c_compute_int
2043 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2044 # -------------------------------------------
2045 # Tests whether TYPE exists after having included INCLUDES, setting cache
2046 # variable VAR accordingly.
2047 ac_fn_c_check_type ()
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051 printf %s "checking for $2... " >&6; }
2052 if eval test \${$3+y}
2054 printf %s "(cached) " >&6
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2069 if ac_fn_c_try_compile "$LINENO"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2083 if ac_fn_c_try_compile "$LINENO"
2089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2095 printf "%s\n" "$ac_res" >&6; }
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098 } # ac_fn_c_check_type
2100 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2101 # ------------------------------------------------------------------
2102 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2103 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 as_decl_name=`echo $2|sed 's/ *(.*//'`
2108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2109 printf %s "checking whether $as_decl_name is declared... " >&6; }
2110 if eval test \${$3+y}
2112 printf %s "(cached) " >&6
2114 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2115 eval ac_save_FLAGS=\$$6
2116 as_fn_append $6 " $5"
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2123 #ifndef $as_decl_name
2125 (void) $as_decl_use;
2127 (void) $as_decl_name;
2135 if ac_fn_c_try_compile "$LINENO"
2141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2142 eval $6=\$ac_save_FLAGS
2146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 printf "%s\n" "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 } # ac_fn_check_decl
2152 # ac_fn_c_find_uintX_t LINENO BITS VAR
2153 # ------------------------------------
2154 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2156 ac_fn_c_find_uintX_t ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2160 printf %s "checking for uint$2_t... " >&6; }
2161 if eval test \${$3+y}
2163 printf %s "(cached) " >&6
2166 # Order is important - never check a type that is potentially smaller
2167 # than half of the expected target width.
2168 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2169 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171 /* end confdefs.h. */
2172 $ac_includes_default
2176 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2178 return test_array [0];
2184 if ac_fn_c_try_compile "$LINENO"
2190 eval "$3=\$ac_type" ;;
2193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 if eval test \"x\$"$3"\" = x"no"
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2204 printf "%s\n" "$ac_res" >&6; }
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 } # ac_fn_c_find_uintX_t
2208 ac_configure_args_raw=
2213 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2215 as_fn_append ac_configure_args_raw " '$ac_arg'"
2218 case $ac_configure_args_raw in
2222 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2223 ac_unsafe_a="$ac_unsafe_z#~"
2224 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2225 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2228 cat >config.log <<_ACEOF
2229 This file contains any messages produced by compilers while
2230 running configure, to aid debugging if configure makes a mistake.
2232 It was created by krb5-strength $as_me 3.3, which was
2233 generated by GNU Autoconf 2.71. Invocation command line was
2235 $ $0$ac_configure_args_raw
2245 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2246 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2247 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2248 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2249 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2251 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2252 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2254 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2255 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2256 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2257 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2258 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2259 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2260 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 case $as_dir in #(((
2271 *) as_dir=$as_dir/ ;;
2273 printf "%s\n" "PATH: $as_dir"
2289 # Keep a trace of the command line.
2290 # Strip out --no-create and --no-recursion so they do not pile up.
2291 # Strip out --silent because we don't want to record it for future runs.
2292 # Also quote any args containing shell meta-characters.
2293 # Make two passes to allow for proper duplicate-argument suppression.
2297 ac_must_keep_next=false
2303 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2305 | -silent | --silent | --silen | --sile | --sil)
2308 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2311 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2313 as_fn_append ac_configure_args1 " '$ac_arg'"
2314 if test $ac_must_keep_next = true; then
2315 ac_must_keep_next=false # Got value, back to normal.
2318 *=* | --config-cache | -C | -disable-* | --disable-* \
2319 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2320 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2321 | -with-* | --with-* | -without-* | --without-* | --x)
2322 case "$ac_configure_args0 " in
2323 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2326 -* ) ac_must_keep_next=true ;;
2329 as_fn_append ac_configure_args " '$ac_arg'"
2334 { ac_configure_args0=; unset ac_configure_args0;}
2335 { ac_configure_args1=; unset ac_configure_args1;}
2337 # When interrupted or exit'd, cleanup temporary files, and complete
2338 # config.log. We remove comments because anyway the quotes in there
2339 # would cause problems or look ugly.
2340 # WARNING: Use '\'' to represent an apostrophe within the trap.
2341 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2342 trap 'exit_status=$?
2345 # Save into config.log some information that might help in debugging.
2349 printf "%s\n" "## ---------------- ##
2350 ## Cache variables. ##
2351 ## ---------------- ##"
2353 # The following way of writing the cache mishandles newlines in values,
2355 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2356 eval ac_val=\$$ac_var
2360 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2361 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2364 _ | IFS | as_nl) ;; #(
2365 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2366 *) { eval $ac_var=; unset $ac_var;} ;;
2371 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2372 *${as_nl}ac_space=\ *)
2374 "s/'\''/'\''\\\\'\'''\''/g;
2375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 printf "%s\n" "## ----------------- ##
2386 ## Output variables. ##
2387 ## ----------------- ##"
2389 for ac_var in $ac_subst_vars
2391 eval ac_val=\$$ac_var
2393 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2395 printf "%s\n" "$ac_var='\''$ac_val'\''"
2399 if test -n "$ac_subst_files"; then
2400 printf "%s\n" "## ------------------- ##
2401 ## File substitutions. ##
2402 ## ------------------- ##"
2404 for ac_var in $ac_subst_files
2406 eval ac_val=\$$ac_var
2408 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2410 printf "%s\n" "$ac_var='\''$ac_val'\''"
2415 if test -s confdefs.h; then
2416 printf "%s\n" "## ----------- ##
2423 test "$ac_signal" != 0 &&
2424 printf "%s\n" "$as_me: caught signal $ac_signal"
2425 printf "%s\n" "$as_me: exit $exit_status"
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2439 printf "%s\n" "/* confdefs.h */" > confdefs.h
2441 # Predefined preprocessor variables.
2443 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2445 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2447 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2449 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2451 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2453 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2456 # Let the site file select an alternate cache file if it wants to.
2457 # Prefer an explicitly selected file to automatically selected ones.
2458 if test -n "$CONFIG_SITE"; then
2459 ac_site_files="$CONFIG_SITE"
2460 elif test "x$prefix" != xNONE; then
2461 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2463 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2466 for ac_site_file in $ac_site_files
2468 case $ac_site_file in #(
2472 ac_site_file=./$ac_site_file ;;
2474 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2476 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2477 sed 's/^/| /' "$ac_site_file" >&5
2479 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2481 as_fn_error $? "failed to load site script $ac_site_file
2482 See \`config.log' for more details" "$LINENO" 5; }
2486 if test -r "$cache_file"; then
2487 # Some versions of bash will fail to source /dev/null (special files
2488 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2489 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2491 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2493 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2494 *) . "./$cache_file";;
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2499 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2503 # Test code for whether the C compiler supports C89 (global declarations)
2504 ac_c_conftest_c89_globals='
2505 /* Does the compiler advertise C89 conformance?
2506 Do not test the value of __STDC__, because some compilers set it to 0
2507 while being otherwise adequately conformant. */
2508 #if !defined __STDC__
2509 # error "Compiler does not advertise C89 conformance"
2515 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2516 struct buf { int x; };
2517 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2518 static char *e (p, i)
2524 static char *f (char * (*g) (char **, int), char **p, ...)
2529 s = g (p, va_arg (v,int));
2534 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2535 function prototypes and stuff, but not \xHH hex character constants.
2536 These do not provoke an error unfortunately, instead are silently treated
2537 as an "x". The following induces an error, until -std is added to get
2538 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2539 array size at least. It is necessary to write \x00 == 0 to get something
2540 that is true only with -std. */
2541 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2543 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2544 inside strings and character constants. */
2545 #define FOO(x) '\''x'\''
2546 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2548 int test (int i, double x);
2549 struct s1 {int (*f) (int a);};
2550 struct s2 {int (*f) (double a);};
2551 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2554 # Test code for whether the C compiler supports C89 (body of main).
2555 ac_c_conftest_c89_main='
2556 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2559 # Test code for whether the C compiler supports C99 (global declarations)
2560 ac_c_conftest_c99_globals='
2561 // Does the compiler advertise C99 conformance?
2562 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2563 # error "Compiler does not advertise C99 conformance"
2566 #include <stdbool.h>
2567 extern int puts (const char *);
2568 extern int printf (const char *, ...);
2569 extern int dprintf (int, const char *, ...);
2570 extern void *malloc (size_t);
2572 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2573 // dprintf is used instead of fprintf to avoid needing to declare
2575 #define debug(...) dprintf (2, __VA_ARGS__)
2576 #define showlist(...) puts (#__VA_ARGS__)
2577 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2579 test_varargs_macros (void)
2584 debug ("X = %d\n", x);
2585 showlist (The first, second, and third items.);
2586 report (x>y, "x is %d but y is %d", x, y);
2589 // Check long long types.
2590 #define BIG64 18446744073709551615ull
2591 #define BIG32 4294967295ul
2592 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2594 #error "your preprocessor is broken"
2598 #error "your preprocessor is broken"
2600 static long long int bignum = -9223372036854775807LL;
2601 static unsigned long long int ubignum = BIG64;
2603 struct incomplete_array
2611 const wchar_t *name;
2615 typedef const char *ccp;
2618 test_restrict (ccp restrict text)
2620 // See if C++-style comments work.
2621 // Iterate through items via the restricted pointer.
2622 // Also check for declarations in for loops.
2623 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2628 // Check varargs and va_copy.
2630 test_varargs (const char *format, ...)
2633 va_start (args, format);
2635 va_copy (args_copy, args);
2637 const char *str = "";
2645 case '\''s'\'': // string
2646 str = va_arg (args_copy, const char *);
2648 case '\''d'\'': // int
2649 number = va_arg (args_copy, int);
2651 case '\''f'\'': // float
2652 fnumber = va_arg (args_copy, double);
2661 return *str && number && fnumber;
2665 # Test code for whether the C compiler supports C99 (body of main).
2666 ac_c_conftest_c99_main='
2668 _Bool success = false;
2669 success |= (argc != 0);
2672 if (test_restrict ("String literal") == 0)
2674 char *restrict newvar = "Another string";
2677 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2678 test_varargs_macros ();
2680 // Check flexible array members.
2681 struct incomplete_array *ia =
2682 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2684 for (int i = 0; i < ia->datasize; ++i)
2685 ia->data[i] = i * 1.234;
2687 // Check named initializers.
2688 struct named_init ni = {
2690 .name = L"Test wide string",
2691 .average = 543.34343,
2696 int dynamic_array[ni.number];
2697 dynamic_array[0] = argv[0][0];
2698 dynamic_array[ni.number - 1] = 543;
2700 // work around unused variable warnings
2701 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2702 || dynamic_array[ni.number - 1] != 543);
2705 # Test code for whether the C compiler supports C11 (global declarations)
2706 ac_c_conftest_c11_globals='
2707 // Does the compiler advertise C11 conformance?
2708 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2709 # error "Compiler does not advertise C11 conformance"
2713 char _Alignas (double) aligned_as_double;
2714 char _Alignas (0) no_special_alignment;
2715 extern char aligned_as_int;
2716 char _Alignas (0) _Alignas (int) aligned_as_int;
2721 int_alignment = _Alignof (int),
2722 int_array_alignment = _Alignof (int[100]),
2723 char_alignment = _Alignof (char)
2725 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2728 int _Noreturn does_not_return (void) { for (;;) continue; }
2730 // Check _Static_assert.
2731 struct test_static_assert
2734 _Static_assert (sizeof (int) <= sizeof (long int),
2735 "_Static_assert does not work in struct");
2739 // Check UTF-8 literals.
2740 #define u8 syntax error!
2741 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2743 // Check duplicate typedefs.
2744 typedef long *long_ptr;
2745 typedef long int *long_ptr;
2746 typedef long_ptr long_ptr;
2748 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2752 struct { int i; int j; };
2753 struct { int k; long int l; } w;
2759 # Test code for whether the C compiler supports C11 (body of main).
2760 ac_c_conftest_c11_main='
2761 _Static_assert ((offsetof (struct anonymous, i)
2762 == offsetof (struct anonymous, w.k)),
2763 "Anonymous union alignment botch");
2769 # Test code for whether the C compiler supports C11 (complete).
2770 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2771 ${ac_c_conftest_c99_globals}
2772 ${ac_c_conftest_c11_globals}
2775 main (int argc, char **argv)
2778 ${ac_c_conftest_c89_main}
2779 ${ac_c_conftest_c99_main}
2780 ${ac_c_conftest_c11_main}
2785 # Test code for whether the C compiler supports C99 (complete).
2786 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2787 ${ac_c_conftest_c99_globals}
2790 main (int argc, char **argv)
2793 ${ac_c_conftest_c89_main}
2794 ${ac_c_conftest_c99_main}
2799 # Test code for whether the C compiler supports C89 (complete).
2800 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2803 main (int argc, char **argv)
2806 ${ac_c_conftest_c89_main}
2811 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2812 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2813 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2814 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2815 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2816 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2817 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2818 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2819 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2820 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2821 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2823 # Auxiliary files required by this configure script.
2824 ac_aux_files="config.guess config.sub ltmain.sh ar-lib compile missing install-sh"
2826 # Locations in which to look for auxiliary files.
2827 ac_aux_dir_candidates="${srcdir}/build-aux"
2829 # Search for a directory containing all of the required auxiliary files,
2830 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2831 # If we don't find one directory that contains all the files we need,
2832 # we report the set of missing files from the *first* directory in
2833 # $ac_aux_dir_candidates and give up.
2834 ac_missing_aux_files=""
2835 ac_first_candidate=:
2836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 for as_dir in $ac_aux_dir_candidates
2842 case $as_dir in #(((
2845 *) as_dir=$as_dir/ ;;
2849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2850 ac_aux_dir_found=yes
2852 for ac_aux in $ac_aux_files
2854 # As a special case, if "install-sh" is required, that requirement
2855 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2856 # and $ac_install_sh is set appropriately for whichever one is found.
2857 if test x"$ac_aux" = x"install-sh"
2859 if test -f "${as_dir}install-sh"; then
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2861 ac_install_sh="${as_dir}install-sh -c"
2862 elif test -f "${as_dir}install.sh"; then
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2864 ac_install_sh="${as_dir}install.sh -c"
2865 elif test -f "${as_dir}shtool"; then
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2867 ac_install_sh="${as_dir}shtool install -c"
2870 if $ac_first_candidate; then
2871 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2877 if test -f "${as_dir}${ac_aux}"; then
2878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2881 if $ac_first_candidate; then
2882 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2889 if test "$ac_aux_dir_found" = yes; then
2890 ac_aux_dir="$as_dir"
2893 ac_first_candidate=false
2902 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2906 # These three variables are undocumented and unsupported,
2907 # and are intended to be withdrawn in a future Autoconf release.
2908 # They can cause serious problems if a builder's source tree is in a directory
2909 # whose full name contains unusual characters.
2910 if test -f "${ac_aux_dir}config.guess"; then
2911 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2913 if test -f "${ac_aux_dir}config.sub"; then
2914 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2916 if test -f "$ac_aux_dir/configure"; then
2917 ac_configure="$SHELL ${ac_aux_dir}configure"
2920 # Check that the precious variables saved in the cache have kept the same
2922 ac_cache_corrupted=false
2923 for ac_var in $ac_precious_vars; do
2924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2925 eval ac_new_set=\$ac_env_${ac_var}_set
2926 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2927 eval ac_new_val=\$ac_env_${ac_var}_value
2928 case $ac_old_set,$ac_new_set in
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2931 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2932 ac_cache_corrupted=: ;;
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2935 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2936 ac_cache_corrupted=: ;;
2939 if test "x$ac_old_val" != "x$ac_new_val"; then
2940 # differences in whitespace do not lead to failure.
2941 ac_old_val_w=`echo x $ac_old_val`
2942 ac_new_val_w=`echo x $ac_new_val`
2943 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2945 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2946 ac_cache_corrupted=:
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2949 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2950 eval $ac_var=\$ac_old_val
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2953 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2955 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2958 # Pass precious variables to config.status.
2959 if test "$ac_new_set" = set; then
2961 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2962 *) ac_arg=$ac_var=$ac_new_val ;;
2964 case " $ac_configure_args " in
2965 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2966 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2970 if $ac_cache_corrupted; then
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2972 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2974 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2975 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2976 and start over" "$LINENO" 5
2978 ## -------------------- ##
2979 ## Main body of script. ##
2980 ## -------------------- ##
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 am__api_version='1.16'
2996 # Find a good install program. We prefer a C program (faster),
2997 # so one script is as good as another. But avoid the broken or
2998 # incompatible versions:
2999 # SysV /etc/install, /usr/sbin/install
3000 # SunOS /usr/etc/install
3001 # IRIX /sbin/install
3003 # AmigaOS /C/install, which installs bootblocks on floppy discs
3004 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3005 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3006 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3007 # OS/2's system install, which has a completely different semantic
3008 # ./install, which can be erroneously created by make from ./install.sh.
3009 # Reject install programs that cannot install multiple files.
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3011 printf %s "checking for a BSD-compatible install... " >&6; }
3012 if test -z "$INSTALL"; then
3013 if test ${ac_cv_path_install+y}
3015 printf %s "(cached) " >&6
3017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 case $as_dir in #(((
3024 *) as_dir=$as_dir/ ;;
3026 # Account for fact that we put trailing slashes in our PATH walk.
3029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3030 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3033 # OSF1 and SCO ODT 3.0 have their own names for install.
3034 # Don't use installbsd from OSF since it installs stuff as root
3036 for ac_prog in ginstall scoinst install; do
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3039 if test $ac_prog = install &&
3040 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3041 # AIX install. It has an incompatible calling convention.
3043 elif test $ac_prog = install &&
3044 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3045 # program-specific install script used by HP pwplus--don't use.
3048 rm -rf conftest.one conftest.two conftest.dir
3049 echo one > conftest.one
3050 echo two > conftest.two
3052 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3053 test -s conftest.one && test -s conftest.two &&
3054 test -s conftest.dir/conftest.one &&
3055 test -s conftest.dir/conftest.two
3057 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3070 rm -rf conftest.one conftest.two conftest.dir
3073 if test ${ac_cv_path_install+y}; then
3074 INSTALL=$ac_cv_path_install
3076 # As a last resort, use the slow shell script. Don't cache a
3077 # value for INSTALL within a source directory, because that will
3078 # break other packages using the cache if that directory is
3079 # removed, or if the value is a relative name.
3080 INSTALL=$ac_install_sh
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3084 printf "%s\n" "$INSTALL" >&6; }
3086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3087 # It thinks the first close brace ends the variable substitution.
3088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3095 printf %s "checking whether build environment is sane... " >&6; }
3096 # Reject unsafe characters in $srcdir or the absolute working directory
3097 # name. Accept space and tab only in the latter.
3101 *[\\\"\#\$\&\'\`$am_lf]*)
3102 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3105 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3106 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3109 # Do 'set' in a subshell so we don't clobber the current shell's
3110 # arguments. Must try -L first in case configure is actually a
3111 # symlink; some systems play weird games with the mod time of symlinks
3112 # (eg FreeBSD returns the mod time of the symlink's containing
3116 for am_try in 1 2; do
3117 echo "timestamp, slept: $am_has_slept" > conftest.file
3118 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3119 if test "$*" = "X"; then
3121 set X `ls -t "$srcdir/configure" conftest.file`
3123 if test "$*" != "X $srcdir/configure conftest.file" \
3124 && test "$*" != "X conftest.file $srcdir/configure"; then
3126 # If neither matched, then we have a broken ls. This can happen
3127 # if, for instance, CONFIG_SHELL is bash and it inherits a
3128 # broken ls alias from the environment. This has actually
3129 # happened. Such a system could not be considered "sane".
3130 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3131 alias in your environment" "$LINENO" 5
3133 if test "$2" = conftest.file || test $am_try -eq 2; then
3140 test "$2" = conftest.file
3146 as_fn_error $? "newly created file is older than distributed files!
3147 Check your system clock" "$LINENO" 5
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 printf "%s\n" "yes" >&6; }
3151 # If we didn't sleep, we still need to ensure time stamps of config.status and
3152 # generated files are strictly newer.
3154 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3172 # Expand $ac_aux_dir to an absolute path.
3173 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3176 if test x"${MISSING+set}" != xset; then
3177 MISSING="\${SHELL} '$am_aux_dir/missing'"
3179 # Use eval to expand $SHELL
3180 if eval "$MISSING --is-lightweight"; then
3181 am_missing_run="$MISSING "
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3185 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3188 if test x"${install_sh+set}" != xset; then
3191 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3193 install_sh="\${SHELL} $am_aux_dir/install-sh"
3197 # Installed binaries are usually stripped using 'strip' when the user
3198 # run "make install-strip". However 'strip' might not be the right
3199 # tool to use in cross-compilation environments, therefore Automake
3200 # will honor the 'STRIP' environment variable to overrule this program.
3201 if test "$cross_compiling" != no; then
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}strip; ac_word=$2
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 printf %s "checking for $ac_word... " >&6; }
3207 if test ${ac_cv_prog_STRIP+y}
3209 printf %s "(cached) " >&6
3211 if test -n "$STRIP"; then
3212 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 case $as_dir in #(((
3221 *) as_dir=$as_dir/ ;;
3223 for ac_exec_ext in '' $ac_executable_extensions; do
3224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3235 STRIP=$ac_cv_prog_STRIP
3236 if test -n "$STRIP"; then
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3238 printf "%s\n" "$STRIP" >&6; }
3240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 printf "%s\n" "no" >&6; }
3246 if test -z "$ac_cv_prog_STRIP"; then
3248 # Extract the first word of "strip", so it can be a program name with args.
3249 set dummy strip; ac_word=$2
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3251 printf %s "checking for $ac_word... " >&6; }
3252 if test ${ac_cv_prog_ac_ct_STRIP+y}
3254 printf %s "(cached) " >&6
3256 if test -n "$ac_ct_STRIP"; then
3257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 case $as_dir in #(((
3266 *) as_dir=$as_dir/ ;;
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3270 ac_cv_prog_ac_ct_STRIP="strip"
3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3281 if test -n "$ac_ct_STRIP"; then
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3283 printf "%s\n" "$ac_ct_STRIP" >&6; }
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286 printf "%s\n" "no" >&6; }
3289 if test "x$ac_ct_STRIP" = x; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3296 ac_tool_warned=yes ;;
3301 STRIP="$ac_cv_prog_STRIP"
3305 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3309 printf %s "checking for a race-free mkdir -p... " >&6; }
3310 if test -z "$MKDIR_P"; then
3311 if test ${ac_cv_path_mkdir+y}
3313 printf %s "(cached) " >&6
3315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3319 case $as_dir in #(((
3322 *) as_dir=$as_dir/ ;;
3324 for ac_prog in mkdir gmkdir; do
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3327 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3328 'mkdir ('*'coreutils) '* | \
3330 'mkdir (fileutils) '4.1*)
3331 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3341 test -d ./--version && rmdir ./--version
3342 if test ${ac_cv_path_mkdir+y}; then
3343 MKDIR_P="$ac_cv_path_mkdir -p"
3345 # As a last resort, use the slow shell script. Don't cache a
3346 # value for MKDIR_P within a source directory, because that will
3347 # break other packages using the cache if that directory is
3348 # removed, or if the value is a relative name.
3349 MKDIR_P="$ac_install_sh -d"
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3353 printf "%s\n" "$MKDIR_P" >&6; }
3355 for ac_prog in gawk mawk nawk awk
3357 # Extract the first word of "$ac_prog", so it can be a program name with args.
3358 set dummy $ac_prog; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_AWK+y}
3363 printf %s "(cached) " >&6
3365 if test -n "$AWK"; then
3366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 case $as_dir in #(((
3375 *) as_dir=$as_dir/ ;;
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_AWK="$ac_prog"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 if test -n "$AWK"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3392 printf "%s\n" "$AWK" >&6; }
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3399 test -n "$AWK" && break
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3403 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3405 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3406 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3408 printf %s "(cached) " >&6
3410 cat >conftest.make <<\_ACEOF
3413 @echo '@@@%%%=$(MAKE)=@@@%%%'
3415 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3416 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3418 eval ac_cv_prog_make_${ac_make}_set=yes;;
3420 eval ac_cv_prog_make_${ac_make}_set=no;;
3424 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3426 printf "%s\n" "yes" >&6; }
3429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 printf "%s\n" "no" >&6; }
3431 SET_MAKE="MAKE=${MAKE-make}"
3434 rm -rf .tst 2>/dev/null
3435 mkdir .tst 2>/dev/null
3436 if test -d .tst; then
3441 rmdir .tst 2>/dev/null
3443 # Check whether --enable-silent-rules was given.
3444 if test ${enable_silent_rules+y}
3446 enableval=$enable_silent_rules;
3449 case $enable_silent_rules in # (((
3450 yes) AM_DEFAULT_VERBOSITY=0;;
3451 no) AM_DEFAULT_VERBOSITY=1;;
3452 *) AM_DEFAULT_VERBOSITY=1;;
3454 am_make=${MAKE-make}
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3456 printf %s "checking whether $am_make supports nested variables... " >&6; }
3457 if test ${am_cv_make_support_nested_variables+y}
3459 printf %s "(cached) " >&6
3461 if printf "%s\n" 'TRUE=$(BAR$(V))
3467 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3468 am_cv_make_support_nested_variables=yes
3470 am_cv_make_support_nested_variables=no
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3474 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3475 if test $am_cv_make_support_nested_variables = yes; then
3477 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3479 AM_V=$AM_DEFAULT_VERBOSITY
3480 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3484 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3485 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3486 # is not polluted with repeated "-I."
3487 am__isrc=' -I$(srcdir)'
3488 # test to see if srcdir already configured
3489 if test -f $srcdir/config.status; then
3490 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3494 # test whether we have cygpath
3495 if test -z "$CYGPATH_W"; then
3496 if (cygpath --version) >/dev/null 2>/dev/null; then
3497 CYGPATH_W='cygpath -w'
3504 # Define the identity of the package.
3505 PACKAGE='krb5-strength'
3509 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3512 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3514 # Some tools Automake needs.
3516 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3519 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3522 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3525 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3528 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3530 # For better backward compatibility. To be removed once Automake 1.9.x
3531 # dies out for good. For more background, see:
3532 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3533 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3534 mkdir_p='$(MKDIR_P)'
3536 # We need awk for the "check" target (and possibly the TAP driver). The
3537 # system "awk" is bad on some platforms.
3538 # Always define AMTAR for backward compatibility. Yes, it's still used
3539 # in the wild :-( We should find a proper way to deprecate it ...
3543 # We'll loop over all known methods to create a tar archive until one works.
3544 _am_tools='gnutar pax cpio none'
3546 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3552 # Variables for tags utilities; see am/tags.am
3553 if test -z "$CTAGS"; then
3557 if test -z "$ETAGS"; then
3561 if test -z "$CSCOPE"; then
3567 # POSIX will say in a future version that running "rm -f" with no argument
3568 # is OK; and we want to be able to make that assumption in our Makefile
3569 # recipes. So use an aggressive probe to check that the usage we want is
3570 # actually supported "in the wild" to an acceptable degree.
3571 # See automake bug#10828.
3572 # To make any issue more visible, cause the running configure to be aborted
3573 # by default if the 'rm' program in use doesn't match our expectations; the
3574 # user can still override this though.
3575 if rm -f && rm -fr && rm -rf; then : OK; else
3579 Your 'rm' program seems unable to run without file operands specified
3580 on the command line, even when the '-f' option is present. This is contrary
3581 to the behaviour of most rm programs out there, and not conforming with
3582 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3584 Please tell bug-automake@gnu.org about your system, including the value
3585 of your $PATH and any error possibly output before this message. This
3586 can help us improve future automake versions.
3589 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3590 echo 'Configuration will proceed anyway, since you have set the' >&2
3591 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3595 Aborting the configuration process, to ensure you take notice of the issue.
3597 You can download and install GNU coreutils to get an 'rm' implementation
3598 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3600 If you want to complete the configuration process using your problematic
3601 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3602 to "yes", and re-run configure.
3605 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3611 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3612 # Check whether --enable-maintainer-mode was given.
3613 if test ${enable_maintainer_mode+y}
3615 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3617 USE_MAINTAINER_MODE=no
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3621 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3622 if test $USE_MAINTAINER_MODE = yes; then
3623 MAINTAINER_MODE_TRUE=
3624 MAINTAINER_MODE_FALSE='#'
3626 MAINTAINER_MODE_TRUE='#'
3627 MAINTAINER_MODE_FALSE=
3630 MAINT=$MAINTAINER_MODE_TRUE
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_CC+y}
3658 printf %s "(cached) " >&6
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 case $as_dir in #(((
3670 *) as_dir=$as_dir/ ;;
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 if test -n "$CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 printf "%s\n" "$CC" >&6; }
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3695 if test -z "$ac_cv_prog_CC"; then
3697 # Extract the first word of "gcc", so it can be a program name with args.
3698 set dummy gcc; ac_word=$2
3699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 printf %s "checking for $ac_word... " >&6; }
3701 if test ${ac_cv_prog_ac_ct_CC+y}
3703 printf %s "(cached) " >&6
3705 if test -n "$ac_ct_CC"; then
3706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 case $as_dir in #(((
3715 *) as_dir=$as_dir/ ;;
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3719 ac_cv_prog_ac_ct_CC="gcc"
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732 printf "%s\n" "$ac_ct_CC" >&6; }
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 printf "%s\n" "no" >&6; }
3738 if test "x$ac_ct_CC" = x; then
3741 case $cross_compiling:$ac_tool_warned in
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3744 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3745 ac_tool_warned=yes ;;
3753 if test -z "$CC"; then
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3756 set dummy ${ac_tool_prefix}cc; ac_word=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s "checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_CC+y}
3761 printf %s "(cached) " >&6
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 case $as_dir in #(((
3773 *) as_dir=$as_dir/ ;;
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_CC="${ac_tool_prefix}cc"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3788 if test -n "$CC"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790 printf "%s\n" "$CC" >&6; }
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3799 if test -z "$CC"; then
3800 # Extract the first word of "cc", so it can be a program name with args.
3801 set dummy cc; ac_word=$2
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 printf %s "checking for $ac_word... " >&6; }
3804 if test ${ac_cv_prog_CC+y}
3806 printf %s "(cached) " >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 case $as_dir in #(((
3819 *) as_dir=$as_dir/ ;;
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3824 ac_prog_rejected=yes
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3835 if test $ac_prog_rejected = yes; then
3836 # We found a bogon in the path, so make sure we never use it.
3837 set dummy $ac_cv_prog_CC
3839 if test $# != 0; then
3840 # We chose a different compiler from the bogus one.
3841 # However, it has the same basename, so the bogon will be chosen
3842 # first if we set CC to just the basename; use the full file name.
3844 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3850 if test -n "$CC"; then
3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3852 printf "%s\n" "$CC" >&6; }
3854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 printf "%s\n" "no" >&6; }
3860 if test -z "$CC"; then
3861 if test -n "$ac_tool_prefix"; then
3862 for ac_prog in cl.exe
3864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_CC+y}
3870 printf %s "(cached) " >&6
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 case $as_dir in #(((
3882 *) as_dir=$as_dir/ ;;
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3897 if test -n "$CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3899 printf "%s\n" "$CC" >&6; }
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3906 test -n "$CC" && break
3909 if test -z "$CC"; then
3911 for ac_prog in cl.exe
3913 # Extract the first word of "$ac_prog", so it can be a program name with args.
3914 set dummy $ac_prog; ac_word=$2
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 printf %s "checking for $ac_word... " >&6; }
3917 if test ${ac_cv_prog_ac_ct_CC+y}
3919 printf %s "(cached) " >&6
3921 if test -n "$ac_ct_CC"; then
3922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 case $as_dir in #(((
3931 *) as_dir=$as_dir/ ;;
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3935 ac_cv_prog_ac_ct_CC="$ac_prog"
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3946 if test -n "$ac_ct_CC"; then
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3948 printf "%s\n" "$ac_ct_CC" >&6; }
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3951 printf "%s\n" "no" >&6; }
3955 test -n "$ac_ct_CC" && break
3958 if test "x$ac_ct_CC" = x; then
3961 case $cross_compiling:$ac_tool_warned in
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3965 ac_tool_warned=yes ;;
3972 if test -z "$CC"; then
3973 if test -n "$ac_tool_prefix"; then
3974 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3975 set dummy ${ac_tool_prefix}clang; ac_word=$2
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 printf %s "checking for $ac_word... " >&6; }
3978 if test ${ac_cv_prog_CC+y}
3980 printf %s "(cached) " >&6
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 case $as_dir in #(((
3992 *) as_dir=$as_dir/ ;;
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_CC="${ac_tool_prefix}clang"
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4007 if test -n "$CC"; then
4008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4009 printf "%s\n" "$CC" >&6; }
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 printf "%s\n" "no" >&6; }
4017 if test -z "$ac_cv_prog_CC"; then
4019 # Extract the first word of "clang", so it can be a program name with args.
4020 set dummy clang; ac_word=$2
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 printf %s "checking for $ac_word... " >&6; }
4023 if test ${ac_cv_prog_ac_ct_CC+y}
4025 printf %s "(cached) " >&6
4027 if test -n "$ac_ct_CC"; then
4028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 case $as_dir in #(((
4037 *) as_dir=$as_dir/ ;;
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4041 ac_cv_prog_ac_ct_CC="clang"
4042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4051 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4052 if test -n "$ac_ct_CC"; then
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4054 printf "%s\n" "$ac_ct_CC" >&6; }
4056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 printf "%s\n" "no" >&6; }
4060 if test "x$ac_ct_CC" = x; then
4063 case $cross_compiling:$ac_tool_warned in
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4066 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4067 ac_tool_warned=yes ;;
4078 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4080 as_fn_error $? "no acceptable C compiler found in \$PATH
4081 See \`config.log' for more details" "$LINENO" 5; }
4083 # Provide some information about the compiler.
4084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4087 for ac_option in --version -v -V -qversion -version; do
4088 { { ac_try="$ac_compiler $ac_option >&5"
4090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091 *) ac_try_echo=$ac_try;;
4093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4094 printf "%s\n" "$ac_try_echo"; } >&5
4095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4097 if test -s conftest.err; then
4099 ... rest of stderr output deleted ...
4100 10q' conftest.err >conftest.er1
4101 cat conftest.er1 >&5
4103 rm -f conftest.er1 conftest.err
4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 ac_clean_files_save=$ac_clean_files
4120 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4121 # Try to create an executable without -o first, disregard a.out.
4122 # It will help us diagnose broken compilers, and finding out an intuition
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4125 printf %s "checking whether the C compiler works... " >&6; }
4126 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4128 # The possible output files:
4129 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4132 for ac_file in $ac_files
4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4136 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4141 if { { ac_try="$ac_link_default"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147 printf "%s\n" "$ac_try_echo"; } >&5
4148 (eval "$ac_link_default") 2>&5
4150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }
4153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4156 # so that the user can short-circuit this test for compilers unknown to
4158 for ac_file in $ac_files ''
4160 test -f "$ac_file" || continue
4162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4165 # We found the default executable, but exeext='' is most
4169 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4173 # We set ac_cv_exeext here because the later test for it is not
4174 # safe: cross compilers may not add the suffix if given an `-o'
4175 # argument, so we may need to know it at that point already.
4176 # Even if this section looks crufty: it has the advantage of
4183 test "$ac_cv_exeext" = no && ac_cv_exeext=
4188 if test -z "$ac_file"
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 printf "%s\n" "no" >&6; }
4192 printf "%s\n" "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4196 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4197 as_fn_error 77 "C compiler cannot create executables
4198 See \`config.log' for more details" "$LINENO" 5; }
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 printf "%s\n" "yes" >&6; }
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4204 printf %s "checking for C compiler default output file name... " >&6; }
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4206 printf "%s\n" "$ac_file" >&6; }
4207 ac_exeext=$ac_cv_exeext
4209 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4210 ac_clean_files=$ac_clean_files_save
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4212 printf %s "checking for suffix of executables... " >&6; }
4213 if { { ac_try="$ac_link"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 printf "%s\n" "$ac_try_echo"; } >&5
4220 (eval "$ac_link") 2>&5
4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }
4225 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe'), while it won't with
4229 for ac_file in conftest.exe conftest conftest.*; do
4230 test -f "$ac_file" || continue
4232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4233 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details" "$LINENO" 5; }
4244 rm -f conftest conftest$ac_cv_exeext
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 printf "%s\n" "$ac_cv_exeext" >&6; }
4248 rm -f conftest.$ac_ext
4249 EXEEXT=$ac_cv_exeext
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4257 FILE *f = fopen ("conftest.out", "w");
4258 return ferror (f) || fclose (f) != 0;
4264 ac_clean_files="$ac_clean_files conftest.out"
4265 # Check that the compiler produces executables we can run. If not, either
4266 # the compiler is broken, or we cross compile.
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4268 printf %s "checking whether we are cross compiling... " >&6; }
4269 if test "$cross_compiling" != yes; then
4270 { { ac_try="$ac_link"
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4276 printf "%s\n" "$ac_try_echo"; } >&5
4277 (eval "$ac_link") 2>&5
4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4280 test $ac_status = 0; }
4281 if { ac_try='./conftest$ac_cv_exeext'
4282 { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 printf "%s\n" "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }; }; then
4294 if test "$cross_compiling" = maybe; then
4297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4298 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4299 as_fn_error 77 "cannot run C compiled programs.
4300 If you meant to cross compile, use \`--host'.
4301 See \`config.log' for more details" "$LINENO" 5; }
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4306 printf "%s\n" "$cross_compiling" >&6; }
4308 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4309 ac_clean_files=$ac_clean_files_save
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4311 printf %s "checking for suffix of object files... " >&6; }
4312 if test ${ac_cv_objext+y}
4314 printf %s "(cached) " >&6
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4327 rm -f conftest.o conftest.obj
4328 if { { ac_try="$ac_compile"
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 printf "%s\n" "$ac_try_echo"; } >&5
4335 (eval "$ac_compile") 2>&5
4337 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; }
4340 for ac_file in conftest.o conftest.obj conftest.*; do
4341 test -f "$ac_file" || continue;
4343 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4344 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4349 printf "%s\n" "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4352 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4353 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4354 as_fn_error $? "cannot compute suffix of object files: cannot compile
4355 See \`config.log' for more details" "$LINENO" 5; }
4357 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4360 printf "%s\n" "$ac_cv_objext" >&6; }
4361 OBJEXT=$ac_cv_objext
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4364 printf %s "checking whether the compiler supports GNU C... " >&6; }
4365 if test ${ac_cv_c_compiler_gnu+y}
4367 printf %s "(cached) " >&6
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4383 if ac_fn_c_try_compile "$LINENO"
4389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4390 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4394 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 if test $ac_compiler_gnu = yes; then
4402 ac_test_CFLAGS=${CFLAGS+y}
4403 ac_save_CFLAGS=$CFLAGS
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4405 printf %s "checking whether $CC accepts -g... " >&6; }
4406 if test ${ac_cv_prog_cc_g+y}
4408 printf %s "(cached) " >&6
4410 ac_save_c_werror_flag=$ac_c_werror_flag
4411 ac_c_werror_flag=yes
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4425 if ac_fn_c_try_compile "$LINENO"
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4441 if ac_fn_c_try_compile "$LINENO"
4445 ac_c_werror_flag=$ac_save_c_werror_flag
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4458 if ac_fn_c_try_compile "$LINENO"
4462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4467 ac_c_werror_flag=$ac_save_c_werror_flag
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4470 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4471 if test $ac_test_CFLAGS; then
4472 CFLAGS=$ac_save_CFLAGS
4473 elif test $ac_cv_prog_cc_g = yes; then
4474 if test "$GCC" = yes; then
4480 if test "$GCC" = yes; then
4487 if test x$ac_prog_cc_stdc = xno
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4490 printf %s "checking for $CC option to enable C11 features... " >&6; }
4491 if test ${ac_cv_prog_cc_c11+y}
4493 printf %s "(cached) " >&6
4495 ac_cv_prog_cc_c11=no
4497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h. */
4499 $ac_c_conftest_c11_program
4501 for ac_arg in '' -std=gnu11
4503 CC="$ac_save_CC $ac_arg"
4504 if ac_fn_c_try_compile "$LINENO"
4506 ac_cv_prog_cc_c11=$ac_arg
4508 rm -f core conftest.err conftest.$ac_objext conftest.beam
4509 test "x$ac_cv_prog_cc_c11" != "xno" && break
4511 rm -f conftest.$ac_ext
4515 if test "x$ac_cv_prog_cc_c11" = xno
4517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4518 printf "%s\n" "unsupported" >&6; }
4520 if test "x$ac_cv_prog_cc_c11" = x
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4523 printf "%s\n" "none needed" >&6; }
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4526 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4527 CC="$CC $ac_cv_prog_cc_c11"
4529 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4533 if test x$ac_prog_cc_stdc = xno
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4536 printf %s "checking for $CC option to enable C99 features... " >&6; }
4537 if test ${ac_cv_prog_cc_c99+y}
4539 printf %s "(cached) " >&6
4541 ac_cv_prog_cc_c99=no
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4545 $ac_c_conftest_c99_program
4547 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4549 CC="$ac_save_CC $ac_arg"
4550 if ac_fn_c_try_compile "$LINENO"
4552 ac_cv_prog_cc_c99=$ac_arg
4554 rm -f core conftest.err conftest.$ac_objext conftest.beam
4555 test "x$ac_cv_prog_cc_c99" != "xno" && break
4557 rm -f conftest.$ac_ext
4561 if test "x$ac_cv_prog_cc_c99" = xno
4563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4564 printf "%s\n" "unsupported" >&6; }
4566 if test "x$ac_cv_prog_cc_c99" = x
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4569 printf "%s\n" "none needed" >&6; }
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4572 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4573 CC="$CC $ac_cv_prog_cc_c99"
4575 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4579 if test x$ac_prog_cc_stdc = xno
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4582 printf %s "checking for $CC option to enable C89 features... " >&6; }
4583 if test ${ac_cv_prog_cc_c89+y}
4585 printf %s "(cached) " >&6
4587 ac_cv_prog_cc_c89=no
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4591 $ac_c_conftest_c89_program
4593 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4595 CC="$ac_save_CC $ac_arg"
4596 if ac_fn_c_try_compile "$LINENO"
4598 ac_cv_prog_cc_c89=$ac_arg
4600 rm -f core conftest.err conftest.$ac_objext conftest.beam
4601 test "x$ac_cv_prog_cc_c89" != "xno" && break
4603 rm -f conftest.$ac_ext
4607 if test "x$ac_cv_prog_cc_c89" = xno
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4610 printf "%s\n" "unsupported" >&6; }
4612 if test "x$ac_cv_prog_cc_c89" = x
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4615 printf "%s\n" "none needed" >&6; }
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4618 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4619 CC="$CC $ac_cv_prog_cc_c89"
4621 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4639 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4640 if test ${am_cv_prog_cc_c_o+y}
4642 printf %s "(cached) " >&6
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4655 # Make sure it works both with $CC and with simple cc.
4656 # Following AC_PROG_CC_C_O, we do the test twice because some
4657 # compilers refuse to overwrite an existing .o file with -o,
4658 # though they will create one.
4659 am_cv_prog_cc_c_o=yes
4661 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4662 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } \
4666 && test -f conftest2.$ac_objext; then
4669 am_cv_prog_cc_c_o=no
4673 rm -f core conftest*
4676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4677 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4678 if test "$am_cv_prog_cc_c_o" != yes; then
4679 # Losing compiler, so override with the script.
4680 # FIXME: It is wrong to rewrite CC.
4681 # But if we don't then we get into trouble of one sort or another.
4682 # A longer-term fix would be to have automake use am__CC in this case,
4683 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4684 CC="$am_aux_dir/compile $CC"
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 DEPDIR="${am__leading_dot}deps"
4694 ac_config_commands="$ac_config_commands depfiles"
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4697 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4698 cat > confinc.mk << 'END'
4700 @echo this is the am__doit target >confinc.out
4705 # BSD make does it like this.
4706 echo '.include "confinc.mk" # ignored' > confmf.BSD
4707 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4708 echo 'include confinc.mk # ignored' > confmf.GNU
4710 for s in GNU BSD; do
4711 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4712 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }
4716 case $?:`cat confinc.out 2>/dev/null` in #(
4717 '0:this is the am__doit target') :
4720 am__include='.include' am__quote='"' ;; #(
4722 am__include='include' am__quote='' ;;
4727 if test "$am__include" != "#"; then
4728 _am_result="yes ($s style)"
4732 rm -f confinc.* confmf.*
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4734 printf "%s\n" "${_am_result}" >&6; }
4736 # Check whether --enable-dependency-tracking was given.
4737 if test ${enable_dependency_tracking+y}
4739 enableval=$enable_dependency_tracking;
4742 if test "x$enable_dependency_tracking" != xno; then
4743 am_depcomp="$ac_aux_dir/depcomp"
4747 if test "x$enable_dependency_tracking" != xno; then
4757 depcc="$CC" am_compiler_list=
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4760 printf %s "checking dependency style of $depcc... " >&6; }
4761 if test ${am_cv_CC_dependencies_compiler_type+y}
4763 printf %s "(cached) " >&6
4765 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4766 # We make a subdir and do the tests there. Otherwise we can end up
4767 # making bogus files that we don't know about and never remove. For
4768 # instance it was reported that on HP-UX the gcc test will end up
4769 # making a dummy file named 'D' -- because '-MD' means "put the output
4773 # Copy depcomp to subdir because otherwise we won't find it if we're
4774 # using a relative directory.
4775 cp "$am_depcomp" conftest.dir
4777 # We will build objects and dependencies in a subdirectory because
4778 # it helps to detect inapplicable dependency modes. For instance
4779 # both Tru64's cc and ICC support -MD to output dependencies as a
4780 # side effect of compilation, but ICC will put the dependencies in
4781 # the current directory while Tru64 will put them in the object
4785 am_cv_CC_dependencies_compiler_type=none
4786 if test "$am_compiler_list" = ""; then
4787 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4790 case " $depcc " in #(
4791 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4794 for depmode in $am_compiler_list; do
4795 # Setup a source with many dependencies, because some compilers
4796 # like to wrap large dependency lists on column 80 (with \), and
4797 # we should not choose a depcomp mode which is confused by this.
4799 # We need to recreate these files for each test, as the compiler may
4800 # overwrite some of them when testing with obscure command lines.
4801 # This happens at least with the AIX C compiler.
4803 for i in 1 2 3 4 5 6; do
4804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4806 # Solaris 10 /bin/sh.
4807 echo '/* dummy */' > sub/conftst$i.h
4809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4811 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4812 # mode. It turns out that the SunPro C++ compiler does not properly
4813 # handle '-M -o', and we need to detect this. Also, some Intel
4814 # versions had trouble with output in subdirs.
4815 am__obj=sub/conftest.${OBJEXT-o}
4816 am__minus_obj="-o $am__obj"
4819 # This depmode causes a compiler race in universal mode.
4820 test "$am__universal" = false || continue
4823 # After this tag, mechanisms are not by side-effect, so they'll
4824 # only be used when explicitly requested.
4825 if test "x$enable_dependency_tracking" = xyes; then
4831 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4832 # This compiler won't grok '-c -o', but also, the minuso test has
4833 # not run yet. These depmodes are late enough in the game, and
4834 # so weak that their functioning should not be impacted.
4835 am__obj=conftest.${OBJEXT-o}
4840 if depmode=$depmode \
4841 source=sub/conftest.c object=$am__obj \
4842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4844 >/dev/null 2>conftest.err &&
4845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4849 # icc doesn't choke on unknown options, it will just issue warnings
4850 # or remarks (even with -Werror). So we grep stderr for any message
4851 # that says an option was ignored or not supported.
4852 # When given -MP, icc 7.0 and 7.1 complain thusly:
4853 # icc: Command line warning: ignoring option '-M'; no argument required
4854 # The diagnosis changed in icc 8.0:
4855 # icc: Command line remark: option '-MP' not supported
4856 if (grep 'ignoring option' conftest.err ||
4857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4858 am_cv_CC_dependencies_compiler_type=$depmode
4867 am_cv_CC_dependencies_compiler_type=none
4871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4872 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4873 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4876 test "x$enable_dependency_tracking" != xno \
4877 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4879 am__fastdepCC_FALSE='#'
4881 am__fastdepCC_TRUE='#'
4882 am__fastdepCC_FALSE=
4887 ac_header= ac_cache=
4888 for ac_item in $ac_header_c_list
4890 if test $ac_cache; then
4891 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4892 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4893 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4895 ac_header= ac_cache=
4896 elif test $ac_header; then
4910 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4913 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4923 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4924 if test ${ac_cv_safe_to_define___extensions__+y}
4926 printf %s "(cached) " >&6
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4931 # define __EXTENSIONS__ 1
4932 $ac_includes_default
4941 if ac_fn_c_try_compile "$LINENO"
4943 ac_cv_safe_to_define___extensions__=yes
4945 ac_cv_safe_to_define___extensions__=no
4947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4950 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4953 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4954 if test ${ac_cv_should_define__xopen_source+y}
4956 printf %s "(cached) " >&6
4958 ac_cv_should_define__xopen_source=no
4959 if test $ac_cv_header_wchar_h = yes
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4974 if ac_fn_c_try_compile "$LINENO"
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 #define _XOPEN_SOURCE 500
4992 if ac_fn_c_try_compile "$LINENO"
4994 ac_cv_should_define__xopen_source=yes
4996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5002 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5004 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5006 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5008 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5010 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5012 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5014 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5016 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5018 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5020 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5022 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5024 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5026 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5028 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5030 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5032 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5034 if test $ac_cv_header_minix_config_h = yes
5037 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5039 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5041 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5046 if test $ac_cv_safe_to_define___extensions__ = yes
5048 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5051 if test $ac_cv_should_define__xopen_source = yes
5053 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the compiler is Clang" >&5
5058 printf %s "checking if the compiler is Clang... " >&6; }
5059 if test ${rra_cv_prog_cc_clang+y}
5061 printf %s "(cached) " >&6
5063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064 /* end confdefs.h. */
5071 if ac_fn_c_try_compile "$LINENO"
5073 rra_cv_prog_cc_clang=yes
5075 rra_cv_prog_cc_clang=no
5077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_prog_cc_clang" >&5
5080 printf "%s\n" "$rra_cv_prog_cc_clang" >&6; }
5081 if test x"$rra_cv_prog_cc_clang" = xyes
5086 if test x"$CLANG" = xyes
5088 WARNINGS_CFLAGS="-Werror"
5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Weverything" >&5
5091 printf %s "checking if $CC supports -Weverything... " >&6; }
5092 if test ${rra_cv_compiler_c__Weverything+y}
5094 printf %s "(cached) " >&6
5097 if test x"$CLANG" = xyes
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5101 case -Weverything in #(
5103 CFLAGS="$CFLAGS `printf "%s\n" "-Weverything" | sed 's/-Wno-/-W/'`" ;; #(
5105 CFLAGS="$CFLAGS -Weverything" ;;
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5118 if ac_fn_c_try_compile "$LINENO"
5120 rra_cv_compiler_c__Weverything=yes
5122 rra_cv_compiler_c__Weverything=no
5124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Weverything" >&5
5129 printf "%s\n" "$rra_cv_compiler_c__Weverything" >&6; }
5130 if test x"$rra_cv_compiler_c__Weverything" = xyes
5132 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Weverything"
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-cast-qual" >&5
5135 printf %s "checking if $CC supports -Wno-cast-qual... " >&6; }
5136 if test ${rra_cv_compiler_c__Wno_cast_qual+y}
5138 printf %s "(cached) " >&6
5141 if test x"$CLANG" = xyes
5143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145 case -Wno-cast-qual in #(
5147 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-cast-qual" | sed 's/-Wno-/-W/'`" ;; #(
5149 CFLAGS="$CFLAGS -Wno-cast-qual" ;;
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5162 if ac_fn_c_try_compile "$LINENO"
5164 rra_cv_compiler_c__Wno_cast_qual=yes
5166 rra_cv_compiler_c__Wno_cast_qual=no
5168 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_cast_qual" >&5
5173 printf "%s\n" "$rra_cv_compiler_c__Wno_cast_qual" >&6; }
5174 if test x"$rra_cv_compiler_c__Wno_cast_qual" = xyes
5176 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-cast-qual"
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-disabled-macro-expansion" >&5
5179 printf %s "checking if $CC supports -Wno-disabled-macro-expansion... " >&6; }
5180 if test ${rra_cv_compiler_c__Wno_disabled_macro_expansion+y}
5182 printf %s "(cached) " >&6
5185 if test x"$CLANG" = xyes
5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 case -Wno-disabled-macro-expansion in #(
5191 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-disabled-macro-expansion" | sed 's/-Wno-/-W/'`" ;; #(
5193 CFLAGS="$CFLAGS -Wno-disabled-macro-expansion" ;;
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5206 if ac_fn_c_try_compile "$LINENO"
5208 rra_cv_compiler_c__Wno_disabled_macro_expansion=yes
5210 rra_cv_compiler_c__Wno_disabled_macro_expansion=no
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_disabled_macro_expansion" >&5
5217 printf "%s\n" "$rra_cv_compiler_c__Wno_disabled_macro_expansion" >&6; }
5218 if test x"$rra_cv_compiler_c__Wno_disabled_macro_expansion" = xyes
5220 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-disabled-macro-expansion"
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-padded" >&5
5223 printf %s "checking if $CC supports -Wno-padded... " >&6; }
5224 if test ${rra_cv_compiler_c__Wno_padded+y}
5226 printf %s "(cached) " >&6
5229 if test x"$CLANG" = xyes
5231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5233 case -Wno-padded in #(
5235 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-padded" | sed 's/-Wno-/-W/'`" ;; #(
5237 CFLAGS="$CFLAGS -Wno-padded" ;;
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5250 if ac_fn_c_try_compile "$LINENO"
5252 rra_cv_compiler_c__Wno_padded=yes
5254 rra_cv_compiler_c__Wno_padded=no
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_padded" >&5
5261 printf "%s\n" "$rra_cv_compiler_c__Wno_padded" >&6; }
5262 if test x"$rra_cv_compiler_c__Wno_padded" = xyes
5264 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-padded"
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
5267 printf %s "checking if $CC supports -Wno-sign-conversion... " >&6; }
5268 if test ${rra_cv_compiler_c__Wno_sign_conversion+y}
5270 printf %s "(cached) " >&6
5273 if test x"$CLANG" = xyes
5275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 case -Wno-sign-conversion in #(
5279 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
5281 CFLAGS="$CFLAGS -Wno-sign-conversion" ;;
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5294 if ac_fn_c_try_compile "$LINENO"
5296 rra_cv_compiler_c__Wno_sign_conversion=yes
5298 rra_cv_compiler_c__Wno_sign_conversion=no
5300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
5305 printf "%s\n" "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
5306 if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes
5308 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-id-macro" >&5
5311 printf %s "checking if $CC supports -Wno-reserved-id-macro... " >&6; }
5312 if test ${rra_cv_compiler_c__Wno_reserved_id_macro+y}
5314 printf %s "(cached) " >&6
5317 if test x"$CLANG" = xyes
5319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321 case -Wno-reserved-id-macro in #(
5323 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-reserved-id-macro" | sed 's/-Wno-/-W/'`" ;; #(
5325 CFLAGS="$CFLAGS -Wno-reserved-id-macro" ;;
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5338 if ac_fn_c_try_compile "$LINENO"
5340 rra_cv_compiler_c__Wno_reserved_id_macro=yes
5342 rra_cv_compiler_c__Wno_reserved_id_macro=no
5344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_id_macro" >&5
5349 printf "%s\n" "$rra_cv_compiler_c__Wno_reserved_id_macro" >&6; }
5350 if test x"$rra_cv_compiler_c__Wno_reserved_id_macro" = xyes
5352 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-id-macro"
5354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-reserved-identifier" >&5
5355 printf %s "checking if $CC supports -Wno-reserved-identifier... " >&6; }
5356 if test ${rra_cv_compiler_c__Wno_reserved_identifier+y}
5358 printf %s "(cached) " >&6
5361 if test x"$CLANG" = xyes
5363 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365 case -Wno-reserved-identifier in #(
5367 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-reserved-identifier" | sed 's/-Wno-/-W/'`" ;; #(
5369 CFLAGS="$CFLAGS -Wno-reserved-identifier" ;;
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5382 if ac_fn_c_try_compile "$LINENO"
5384 rra_cv_compiler_c__Wno_reserved_identifier=yes
5386 rra_cv_compiler_c__Wno_reserved_identifier=no
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_reserved_identifier" >&5
5393 printf "%s\n" "$rra_cv_compiler_c__Wno_reserved_identifier" >&6; }
5394 if test x"$rra_cv_compiler_c__Wno_reserved_identifier" = xyes
5396 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-reserved-identifier"
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-tautological-pointer-compare" >&5
5399 printf %s "checking if $CC supports -Wno-tautological-pointer-compare... " >&6; }
5400 if test ${rra_cv_compiler_c__Wno_tautological_pointer_compare+y}
5402 printf %s "(cached) " >&6
5405 if test x"$CLANG" = xyes
5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5409 case -Wno-tautological-pointer-compare in #(
5411 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-tautological-pointer-compare" | sed 's/-Wno-/-W/'`" ;; #(
5413 CFLAGS="$CFLAGS -Wno-tautological-pointer-compare" ;;
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5426 if ac_fn_c_try_compile "$LINENO"
5428 rra_cv_compiler_c__Wno_tautological_pointer_compare=yes
5430 rra_cv_compiler_c__Wno_tautological_pointer_compare=no
5432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_tautological_pointer_compare" >&5
5437 printf "%s\n" "$rra_cv_compiler_c__Wno_tautological_pointer_compare" >&6; }
5438 if test x"$rra_cv_compiler_c__Wno_tautological_pointer_compare" = xyes
5440 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-tautological-pointer-compare"
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-undef" >&5
5443 printf %s "checking if $CC supports -Wno-undef... " >&6; }
5444 if test ${rra_cv_compiler_c__Wno_undef+y}
5446 printf %s "(cached) " >&6
5449 if test x"$CLANG" = xyes
5451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453 case -Wno-undef in #(
5455 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-undef" | sed 's/-Wno-/-W/'`" ;; #(
5457 CFLAGS="$CFLAGS -Wno-undef" ;;
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5470 if ac_fn_c_try_compile "$LINENO"
5472 rra_cv_compiler_c__Wno_undef=yes
5474 rra_cv_compiler_c__Wno_undef=no
5476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_undef" >&5
5481 printf "%s\n" "$rra_cv_compiler_c__Wno_undef" >&6; }
5482 if test x"$rra_cv_compiler_c__Wno_undef" = xyes
5484 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-undef"
5486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code" >&5
5487 printf %s "checking if $CC supports -Wno-unreachable-code... " >&6; }
5488 if test ${rra_cv_compiler_c__Wno_unreachable_code+y}
5490 printf %s "(cached) " >&6
5493 if test x"$CLANG" = xyes
5495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5497 case -Wno-unreachable-code in #(
5499 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unreachable-code" | sed 's/-Wno-/-W/'`" ;; #(
5501 CFLAGS="$CFLAGS -Wno-unreachable-code" ;;
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5514 if ac_fn_c_try_compile "$LINENO"
5516 rra_cv_compiler_c__Wno_unreachable_code=yes
5518 rra_cv_compiler_c__Wno_unreachable_code=no
5520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code" >&5
5525 printf "%s\n" "$rra_cv_compiler_c__Wno_unreachable_code" >&6; }
5526 if test x"$rra_cv_compiler_c__Wno_unreachable_code" = xyes
5528 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code"
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unreachable-code-return" >&5
5531 printf %s "checking if $CC supports -Wno-unreachable-code-return... " >&6; }
5532 if test ${rra_cv_compiler_c__Wno_unreachable_code_return+y}
5534 printf %s "(cached) " >&6
5537 if test x"$CLANG" = xyes
5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 case -Wno-unreachable-code-return in #(
5543 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unreachable-code-return" | sed 's/-Wno-/-W/'`" ;; #(
5545 CFLAGS="$CFLAGS -Wno-unreachable-code-return" ;;
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5558 if ac_fn_c_try_compile "$LINENO"
5560 rra_cv_compiler_c__Wno_unreachable_code_return=yes
5562 rra_cv_compiler_c__Wno_unreachable_code_return=no
5564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unreachable_code_return" >&5
5569 printf "%s\n" "$rra_cv_compiler_c__Wno_unreachable_code_return" >&6; }
5570 if test x"$rra_cv_compiler_c__Wno_unreachable_code_return" = xyes
5572 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unreachable-code-return"
5574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unsafe-buffer-usage" >&5
5575 printf %s "checking if $CC supports -Wno-unsafe-buffer-usage... " >&6; }
5576 if test ${rra_cv_compiler_c__Wno_unsafe_buffer_usage+y}
5578 printf %s "(cached) " >&6
5581 if test x"$CLANG" = xyes
5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585 case -Wno-unsafe-buffer-usage in #(
5587 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unsafe-buffer-usage" | sed 's/-Wno-/-W/'`" ;; #(
5589 CFLAGS="$CFLAGS -Wno-unsafe-buffer-usage" ;;
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5602 if ac_fn_c_try_compile "$LINENO"
5604 rra_cv_compiler_c__Wno_unsafe_buffer_usage=yes
5606 rra_cv_compiler_c__Wno_unsafe_buffer_usage=no
5608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unsafe_buffer_usage" >&5
5613 printf "%s\n" "$rra_cv_compiler_c__Wno_unsafe_buffer_usage" >&6; }
5614 if test x"$rra_cv_compiler_c__Wno_unsafe_buffer_usage" = xyes
5616 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unsafe-buffer-usage"
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-unused-macros" >&5
5619 printf %s "checking if $CC supports -Wno-unused-macros... " >&6; }
5620 if test ${rra_cv_compiler_c__Wno_unused_macros+y}
5622 printf %s "(cached) " >&6
5625 if test x"$CLANG" = xyes
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5629 case -Wno-unused-macros in #(
5631 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-unused-macros" | sed 's/-Wno-/-W/'`" ;; #(
5633 CFLAGS="$CFLAGS -Wno-unused-macros" ;;
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5646 if ac_fn_c_try_compile "$LINENO"
5648 rra_cv_compiler_c__Wno_unused_macros=yes
5650 rra_cv_compiler_c__Wno_unused_macros=no
5652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_unused_macros" >&5
5657 printf "%s\n" "$rra_cv_compiler_c__Wno_unused_macros" >&6; }
5658 if test x"$rra_cv_compiler_c__Wno_unused_macros" = xyes
5660 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-unused-macros"
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-used-but-marked-unused" >&5
5663 printf %s "checking if $CC supports -Wno-used-but-marked-unused... " >&6; }
5664 if test ${rra_cv_compiler_c__Wno_used_but_marked_unused+y}
5666 printf %s "(cached) " >&6
5669 if test x"$CLANG" = xyes
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 case -Wno-used-but-marked-unused in #(
5675 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-used-but-marked-unused" | sed 's/-Wno-/-W/'`" ;; #(
5677 CFLAGS="$CFLAGS -Wno-used-but-marked-unused" ;;
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5690 if ac_fn_c_try_compile "$LINENO"
5692 rra_cv_compiler_c__Wno_used_but_marked_unused=yes
5694 rra_cv_compiler_c__Wno_used_but_marked_unused=no
5696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_used_but_marked_unused" >&5
5701 printf "%s\n" "$rra_cv_compiler_c__Wno_used_but_marked_unused" >&6; }
5702 if test x"$rra_cv_compiler_c__Wno_used_but_marked_unused" = xyes
5704 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-used-but-marked-unused"
5707 WARNINGS_CFLAGS="-g -O2 -D_FORTIFY_SOURCE=2 -Werror"
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow" >&5
5710 printf %s "checking if $CC supports -fstrict-overflow... " >&6; }
5711 if test ${rra_cv_compiler_c__fstrict_overflow+y}
5713 printf %s "(cached) " >&6
5716 if test x"$CLANG" = xyes
5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5720 case -fstrict-overflow in #(
5722 CFLAGS="$CFLAGS `printf "%s\n" "-fstrict-overflow" | sed 's/-Wno-/-W/'`" ;; #(
5724 CFLAGS="$CFLAGS -fstrict-overflow" ;;
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5737 if ac_fn_c_try_compile "$LINENO"
5739 rra_cv_compiler_c__fstrict_overflow=yes
5741 rra_cv_compiler_c__fstrict_overflow=no
5743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_overflow" >&5
5748 printf "%s\n" "$rra_cv_compiler_c__fstrict_overflow" >&6; }
5749 if test x"$rra_cv_compiler_c__fstrict_overflow" = xyes
5751 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-overflow"
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-aliasing" >&5
5754 printf %s "checking if $CC supports -fstrict-aliasing... " >&6; }
5755 if test ${rra_cv_compiler_c__fstrict_aliasing+y}
5757 printf %s "(cached) " >&6
5760 if test x"$CLANG" = xyes
5762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764 case -fstrict-aliasing in #(
5766 CFLAGS="$CFLAGS `printf "%s\n" "-fstrict-aliasing" | sed 's/-Wno-/-W/'`" ;; #(
5768 CFLAGS="$CFLAGS -fstrict-aliasing" ;;
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5781 if ac_fn_c_try_compile "$LINENO"
5783 rra_cv_compiler_c__fstrict_aliasing=yes
5785 rra_cv_compiler_c__fstrict_aliasing=no
5787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_aliasing" >&5
5792 printf "%s\n" "$rra_cv_compiler_c__fstrict_aliasing" >&6; }
5793 if test x"$rra_cv_compiler_c__fstrict_aliasing" = xyes
5795 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-aliasing"
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-flex-arrays=3" >&5
5798 printf %s "checking if $CC supports -fstrict-flex-arrays=3... " >&6; }
5799 if test ${rra_cv_compiler_c__fstrict_flex_arrays_3+y}
5801 printf %s "(cached) " >&6
5804 if test x"$CLANG" = xyes
5806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808 case -fstrict-flex-arrays=3 in #(
5810 CFLAGS="$CFLAGS `printf "%s\n" "-fstrict-flex-arrays=3" | sed 's/-Wno-/-W/'`" ;; #(
5812 CFLAGS="$CFLAGS -fstrict-flex-arrays=3" ;;
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5825 if ac_fn_c_try_compile "$LINENO"
5827 rra_cv_compiler_c__fstrict_flex_arrays_3=yes
5829 rra_cv_compiler_c__fstrict_flex_arrays_3=no
5831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__fstrict_flex_arrays_3" >&5
5836 printf "%s\n" "$rra_cv_compiler_c__fstrict_flex_arrays_3" >&6; }
5837 if test x"$rra_cv_compiler_c__fstrict_flex_arrays_3" = xyes
5839 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -fstrict-flex-arrays=3"
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5842 printf %s "checking if $CC supports -Wall... " >&6; }
5843 if test ${rra_cv_compiler_c__Wall+y}
5845 printf %s "(cached) " >&6
5848 if test x"$CLANG" = xyes
5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5854 CFLAGS="$CFLAGS `printf "%s\n" "-Wall" | sed 's/-Wno-/-W/'`" ;; #(
5856 CFLAGS="$CFLAGS -Wall" ;;
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_c_try_compile "$LINENO"
5871 rra_cv_compiler_c__Wall=yes
5873 rra_cv_compiler_c__Wall=no
5875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wall" >&5
5880 printf "%s\n" "$rra_cv_compiler_c__Wall" >&6; }
5881 if test x"$rra_cv_compiler_c__Wall" = xyes
5883 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wall"
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wextra" >&5
5886 printf %s "checking if $CC supports -Wextra... " >&6; }
5887 if test ${rra_cv_compiler_c__Wextra+y}
5889 printf %s "(cached) " >&6
5892 if test x"$CLANG" = xyes
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 CFLAGS="$CFLAGS `printf "%s\n" "-Wextra" | sed 's/-Wno-/-W/'`" ;; #(
5900 CFLAGS="$CFLAGS -Wextra" ;;
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5913 if ac_fn_c_try_compile "$LINENO"
5915 rra_cv_compiler_c__Wextra=yes
5917 rra_cv_compiler_c__Wextra=no
5919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wextra" >&5
5924 printf "%s\n" "$rra_cv_compiler_c__Wextra" >&6; }
5925 if test x"$rra_cv_compiler_c__Wextra" = xyes
5927 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wextra"
5929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5930 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5931 if test ${rra_cv_compiler_c__Wformat_2+y}
5933 printf %s "(cached) " >&6
5936 if test x"$CLANG" = xyes
5938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5940 case -Wformat=2 in #(
5942 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat=2" | sed 's/-Wno-/-W/'`" ;; #(
5944 CFLAGS="$CFLAGS -Wformat=2" ;;
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5957 if ac_fn_c_try_compile "$LINENO"
5959 rra_cv_compiler_c__Wformat_2=yes
5961 rra_cv_compiler_c__Wformat_2=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_2" >&5
5968 printf "%s\n" "$rra_cv_compiler_c__Wformat_2" >&6; }
5969 if test x"$rra_cv_compiler_c__Wformat_2" = xyes
5971 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat=2"
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-overflow=2" >&5
5974 printf %s "checking if $CC supports -Wformat-overflow=2... " >&6; }
5975 if test ${rra_cv_compiler_c__Wformat_overflow_2+y}
5977 printf %s "(cached) " >&6
5980 if test x"$CLANG" = xyes
5982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 case -Wformat-overflow=2 in #(
5986 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-overflow=2" | sed 's/-Wno-/-W/'`" ;; #(
5988 CFLAGS="$CFLAGS -Wformat-overflow=2" ;;
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
6001 if ac_fn_c_try_compile "$LINENO"
6003 rra_cv_compiler_c__Wformat_overflow_2=yes
6005 rra_cv_compiler_c__Wformat_overflow_2=no
6007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_overflow_2" >&5
6012 printf "%s\n" "$rra_cv_compiler_c__Wformat_overflow_2" >&6; }
6013 if test x"$rra_cv_compiler_c__Wformat_overflow_2" = xyes
6015 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-overflow=2"
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-signedness" >&5
6018 printf %s "checking if $CC supports -Wformat-signedness... " >&6; }
6019 if test ${rra_cv_compiler_c__Wformat_signedness+y}
6021 printf %s "(cached) " >&6
6024 if test x"$CLANG" = xyes
6026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6028 case -Wformat-signedness in #(
6030 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-signedness" | sed 's/-Wno-/-W/'`" ;; #(
6032 CFLAGS="$CFLAGS -Wformat-signedness" ;;
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6045 if ac_fn_c_try_compile "$LINENO"
6047 rra_cv_compiler_c__Wformat_signedness=yes
6049 rra_cv_compiler_c__Wformat_signedness=no
6051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_signedness" >&5
6056 printf "%s\n" "$rra_cv_compiler_c__Wformat_signedness" >&6; }
6057 if test x"$rra_cv_compiler_c__Wformat_signedness" = xyes
6059 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-signedness"
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat-truncation=2" >&5
6062 printf %s "checking if $CC supports -Wformat-truncation=2... " >&6; }
6063 if test ${rra_cv_compiler_c__Wformat_truncation_2+y}
6065 printf %s "(cached) " >&6
6068 if test x"$CLANG" = xyes
6070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6072 case -Wformat-truncation=2 in #(
6074 CFLAGS="$CFLAGS `printf "%s\n" "-Wformat-truncation=2" | sed 's/-Wno-/-W/'`" ;; #(
6076 CFLAGS="$CFLAGS -Wformat-truncation=2" ;;
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6089 if ac_fn_c_try_compile "$LINENO"
6091 rra_cv_compiler_c__Wformat_truncation_2=yes
6093 rra_cv_compiler_c__Wformat_truncation_2=no
6095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wformat_truncation_2" >&5
6100 printf "%s\n" "$rra_cv_compiler_c__Wformat_truncation_2" >&6; }
6101 if test x"$rra_cv_compiler_c__Wformat_truncation_2" = xyes
6103 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wformat-truncation=2"
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnull-dereference" >&5
6106 printf %s "checking if $CC supports -Wnull-dereference... " >&6; }
6107 if test ${rra_cv_compiler_c__Wnull_dereference+y}
6109 printf %s "(cached) " >&6
6112 if test x"$CLANG" = xyes
6114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6116 case -Wnull-dereference in #(
6118 CFLAGS="$CFLAGS `printf "%s\n" "-Wnull-dereference" | sed 's/-Wno-/-W/'`" ;; #(
6120 CFLAGS="$CFLAGS -Wnull-dereference" ;;
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6133 if ac_fn_c_try_compile "$LINENO"
6135 rra_cv_compiler_c__Wnull_dereference=yes
6137 rra_cv_compiler_c__Wnull_dereference=no
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnull_dereference" >&5
6144 printf "%s\n" "$rra_cv_compiler_c__Wnull_dereference" >&6; }
6145 if test x"$rra_cv_compiler_c__Wnull_dereference" = xyes
6147 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnull-dereference"
6149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
6150 printf %s "checking if $CC supports -Winit-self... " >&6; }
6151 if test ${rra_cv_compiler_c__Winit_self+y}
6153 printf %s "(cached) " >&6
6156 if test x"$CLANG" = xyes
6158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6160 case -Winit-self in #(
6162 CFLAGS="$CFLAGS `printf "%s\n" "-Winit-self" | sed 's/-Wno-/-W/'`" ;; #(
6164 CFLAGS="$CFLAGS -Winit-self" ;;
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6177 if ac_fn_c_try_compile "$LINENO"
6179 rra_cv_compiler_c__Winit_self=yes
6181 rra_cv_compiler_c__Winit_self=no
6183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winit_self" >&5
6188 printf "%s\n" "$rra_cv_compiler_c__Winit_self" >&6; }
6189 if test x"$rra_cv_compiler_c__Winit_self" = xyes
6191 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winit-self"
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wswitch-enum" >&5
6194 printf %s "checking if $CC supports -Wswitch-enum... " >&6; }
6195 if test ${rra_cv_compiler_c__Wswitch_enum+y}
6197 printf %s "(cached) " >&6
6200 if test x"$CLANG" = xyes
6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6204 case -Wswitch-enum in #(
6206 CFLAGS="$CFLAGS `printf "%s\n" "-Wswitch-enum" | sed 's/-Wno-/-W/'`" ;; #(
6208 CFLAGS="$CFLAGS -Wswitch-enum" ;;
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6221 if ac_fn_c_try_compile "$LINENO"
6223 rra_cv_compiler_c__Wswitch_enum=yes
6225 rra_cv_compiler_c__Wswitch_enum=no
6227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wswitch_enum" >&5
6232 printf "%s\n" "$rra_cv_compiler_c__Wswitch_enum" >&6; }
6233 if test x"$rra_cv_compiler_c__Wswitch_enum" = xyes
6235 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wswitch-enum"
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-overflow=5" >&5
6238 printf %s "checking if $CC supports -Wstrict-overflow=5... " >&6; }
6239 if test ${rra_cv_compiler_c__Wstrict_overflow_5+y}
6241 printf %s "(cached) " >&6
6244 if test x"$CLANG" = xyes
6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 case -Wstrict-overflow=5 in #(
6250 CFLAGS="$CFLAGS `printf "%s\n" "-Wstrict-overflow=5" | sed 's/-Wno-/-W/'`" ;; #(
6252 CFLAGS="$CFLAGS -Wstrict-overflow=5" ;;
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6265 if ac_fn_c_try_compile "$LINENO"
6267 rra_cv_compiler_c__Wstrict_overflow_5=yes
6269 rra_cv_compiler_c__Wstrict_overflow_5=no
6271 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_overflow_5" >&5
6276 printf "%s\n" "$rra_cv_compiler_c__Wstrict_overflow_5" >&6; }
6277 if test x"$rra_cv_compiler_c__Wstrict_overflow_5" = xyes
6279 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-overflow=5"
6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6282 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6283 if test ${rra_cv_compiler_c__Wmissing_format_attribute+y}
6285 printf %s "(cached) " >&6
6288 if test x"$CLANG" = xyes
6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6292 case -Wmissing-format-attribute in #(
6294 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-format-attribute" | sed 's/-Wno-/-W/'`" ;; #(
6296 CFLAGS="$CFLAGS -Wmissing-format-attribute" ;;
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6309 if ac_fn_c_try_compile "$LINENO"
6311 rra_cv_compiler_c__Wmissing_format_attribute=yes
6313 rra_cv_compiler_c__Wmissing_format_attribute=no
6315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_format_attribute" >&5
6320 printf "%s\n" "$rra_cv_compiler_c__Wmissing_format_attribute" >&6; }
6321 if test x"$rra_cv_compiler_c__Wmissing_format_attribute" = xyes
6323 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-format-attribute"
6325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Walloc-zero" >&5
6326 printf %s "checking if $CC supports -Walloc-zero... " >&6; }
6327 if test ${rra_cv_compiler_c__Walloc_zero+y}
6329 printf %s "(cached) " >&6
6332 if test x"$CLANG" = xyes
6334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6336 case -Walloc-zero in #(
6338 CFLAGS="$CFLAGS `printf "%s\n" "-Walloc-zero" | sed 's/-Wno-/-W/'`" ;; #(
6340 CFLAGS="$CFLAGS -Walloc-zero" ;;
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6353 if ac_fn_c_try_compile "$LINENO"
6355 rra_cv_compiler_c__Walloc_zero=yes
6357 rra_cv_compiler_c__Walloc_zero=no
6359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Walloc_zero" >&5
6364 printf "%s\n" "$rra_cv_compiler_c__Walloc_zero" >&6; }
6365 if test x"$rra_cv_compiler_c__Walloc_zero" = xyes
6367 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Walloc-zero"
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warith-conversion" >&5
6370 printf %s "checking if $CC supports -Warith-conversion... " >&6; }
6371 if test ${rra_cv_compiler_c__Warith_conversion+y}
6373 printf %s "(cached) " >&6
6376 if test x"$CLANG" = xyes
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380 case -Warith-conversion in #(
6382 CFLAGS="$CFLAGS `printf "%s\n" "-Warith-conversion" | sed 's/-Wno-/-W/'`" ;; #(
6384 CFLAGS="$CFLAGS -Warith-conversion" ;;
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_compile "$LINENO"
6399 rra_cv_compiler_c__Warith_conversion=yes
6401 rra_cv_compiler_c__Warith_conversion=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Warith_conversion" >&5
6408 printf "%s\n" "$rra_cv_compiler_c__Warith_conversion" >&6; }
6409 if test x"$rra_cv_compiler_c__Warith_conversion" = xyes
6411 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Warith-conversion"
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds=3" >&5
6414 printf %s "checking if $CC supports -Warray-bounds=3... " >&6; }
6415 if test ${rra_cv_compiler_c__Warray_bounds_3+y}
6417 printf %s "(cached) " >&6
6420 if test x"$CLANG" = xyes
6422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6424 case -Warray-bounds=3 in #(
6426 CFLAGS="$CFLAGS `printf "%s\n" "-Warray-bounds=3" | sed 's/-Wno-/-W/'`" ;; #(
6428 CFLAGS="$CFLAGS -Warray-bounds=3" ;;
6430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6431 /* end confdefs.h. */
6441 if ac_fn_c_try_compile "$LINENO"
6443 rra_cv_compiler_c__Warray_bounds_3=yes
6445 rra_cv_compiler_c__Warray_bounds_3=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Warray_bounds_3" >&5
6452 printf "%s\n" "$rra_cv_compiler_c__Warray_bounds_3" >&6; }
6453 if test x"$rra_cv_compiler_c__Warray_bounds_3" = xyes
6455 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Warray-bounds=3"
6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-branches" >&5
6458 printf %s "checking if $CC supports -Wduplicated-branches... " >&6; }
6459 if test ${rra_cv_compiler_c__Wduplicated_branches+y}
6461 printf %s "(cached) " >&6
6464 if test x"$CLANG" = xyes
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6468 case -Wduplicated-branches in #(
6470 CFLAGS="$CFLAGS `printf "%s\n" "-Wduplicated-branches" | sed 's/-Wno-/-W/'`" ;; #(
6472 CFLAGS="$CFLAGS -Wduplicated-branches" ;;
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6485 if ac_fn_c_try_compile "$LINENO"
6487 rra_cv_compiler_c__Wduplicated_branches=yes
6489 rra_cv_compiler_c__Wduplicated_branches=no
6491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_branches" >&5
6496 printf "%s\n" "$rra_cv_compiler_c__Wduplicated_branches" >&6; }
6497 if test x"$rra_cv_compiler_c__Wduplicated_branches" = xyes
6499 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-branches"
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wduplicated-cond" >&5
6502 printf %s "checking if $CC supports -Wduplicated-cond... " >&6; }
6503 if test ${rra_cv_compiler_c__Wduplicated_cond+y}
6505 printf %s "(cached) " >&6
6508 if test x"$CLANG" = xyes
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 case -Wduplicated-cond in #(
6514 CFLAGS="$CFLAGS `printf "%s\n" "-Wduplicated-cond" | sed 's/-Wno-/-W/'`" ;; #(
6516 CFLAGS="$CFLAGS -Wduplicated-cond" ;;
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6529 if ac_fn_c_try_compile "$LINENO"
6531 rra_cv_compiler_c__Wduplicated_cond=yes
6533 rra_cv_compiler_c__Wduplicated_cond=no
6535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wduplicated_cond" >&5
6540 printf "%s\n" "$rra_cv_compiler_c__Wduplicated_cond" >&6; }
6541 if test x"$rra_cv_compiler_c__Wduplicated_cond" = xyes
6543 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wduplicated-cond"
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrampolines" >&5
6546 printf %s "checking if $CC supports -Wtrampolines... " >&6; }
6547 if test ${rra_cv_compiler_c__Wtrampolines+y}
6549 printf %s "(cached) " >&6
6552 if test x"$CLANG" = xyes
6554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556 case -Wtrampolines in #(
6558 CFLAGS="$CFLAGS `printf "%s\n" "-Wtrampolines" | sed 's/-Wno-/-W/'`" ;; #(
6560 CFLAGS="$CFLAGS -Wtrampolines" ;;
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6573 if ac_fn_c_try_compile "$LINENO"
6575 rra_cv_compiler_c__Wtrampolines=yes
6577 rra_cv_compiler_c__Wtrampolines=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wtrampolines" >&5
6584 printf "%s\n" "$rra_cv_compiler_c__Wtrampolines" >&6; }
6585 if test x"$rra_cv_compiler_c__Wtrampolines" = xyes
6587 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wtrampolines"
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wfloat-equal" >&5
6590 printf %s "checking if $CC supports -Wfloat-equal... " >&6; }
6591 if test ${rra_cv_compiler_c__Wfloat_equal+y}
6593 printf %s "(cached) " >&6
6596 if test x"$CLANG" = xyes
6598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6600 case -Wfloat-equal in #(
6602 CFLAGS="$CFLAGS `printf "%s\n" "-Wfloat-equal" | sed 's/-Wno-/-W/'`" ;; #(
6604 CFLAGS="$CFLAGS -Wfloat-equal" ;;
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6617 if ac_fn_c_try_compile "$LINENO"
6619 rra_cv_compiler_c__Wfloat_equal=yes
6621 rra_cv_compiler_c__Wfloat_equal=no
6623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wfloat_equal" >&5
6628 printf "%s\n" "$rra_cv_compiler_c__Wfloat_equal" >&6; }
6629 if test x"$rra_cv_compiler_c__Wfloat_equal" = xyes
6631 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wfloat-equal"
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6634 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6635 if test ${rra_cv_compiler_c__Wdeclaration_after_statement+y}
6637 printf %s "(cached) " >&6
6640 if test x"$CLANG" = xyes
6642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 case -Wdeclaration-after-statement in #(
6646 CFLAGS="$CFLAGS `printf "%s\n" "-Wdeclaration-after-statement" | sed 's/-Wno-/-W/'`" ;; #(
6648 CFLAGS="$CFLAGS -Wdeclaration-after-statement" ;;
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6661 if ac_fn_c_try_compile "$LINENO"
6663 rra_cv_compiler_c__Wdeclaration_after_statement=yes
6665 rra_cv_compiler_c__Wdeclaration_after_statement=no
6667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdeclaration_after_statement" >&5
6672 printf "%s\n" "$rra_cv_compiler_c__Wdeclaration_after_statement" >&6; }
6673 if test x"$rra_cv_compiler_c__Wdeclaration_after_statement" = xyes
6675 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdeclaration-after-statement"
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6678 printf %s "checking if $CC supports -Wshadow... " >&6; }
6679 if test ${rra_cv_compiler_c__Wshadow+y}
6681 printf %s "(cached) " >&6
6684 if test x"$CLANG" = xyes
6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6690 CFLAGS="$CFLAGS `printf "%s\n" "-Wshadow" | sed 's/-Wno-/-W/'`" ;; #(
6692 CFLAGS="$CFLAGS -Wshadow" ;;
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6705 if ac_fn_c_try_compile "$LINENO"
6707 rra_cv_compiler_c__Wshadow=yes
6709 rra_cv_compiler_c__Wshadow=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wshadow" >&5
6716 printf "%s\n" "$rra_cv_compiler_c__Wshadow" >&6; }
6717 if test x"$rra_cv_compiler_c__Wshadow" = xyes
6719 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wshadow"
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
6722 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
6723 if test ${rra_cv_compiler_c__Wpointer_arith+y}
6725 printf %s "(cached) " >&6
6728 if test x"$CLANG" = xyes
6730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6732 case -Wpointer-arith in #(
6734 CFLAGS="$CFLAGS `printf "%s\n" "-Wpointer-arith" | sed 's/-Wno-/-W/'`" ;; #(
6736 CFLAGS="$CFLAGS -Wpointer-arith" ;;
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6749 if ac_fn_c_try_compile "$LINENO"
6751 rra_cv_compiler_c__Wpointer_arith=yes
6753 rra_cv_compiler_c__Wpointer_arith=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpointer_arith" >&5
6760 printf "%s\n" "$rra_cv_compiler_c__Wpointer_arith" >&6; }
6761 if test x"$rra_cv_compiler_c__Wpointer_arith" = xyes
6763 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpointer-arith"
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6766 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6767 if test ${rra_cv_compiler_c__Wbad_function_cast+y}
6769 printf %s "(cached) " >&6
6772 if test x"$CLANG" = xyes
6774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6776 case -Wbad-function-cast in #(
6778 CFLAGS="$CFLAGS `printf "%s\n" "-Wbad-function-cast" | sed 's/-Wno-/-W/'`" ;; #(
6780 CFLAGS="$CFLAGS -Wbad-function-cast" ;;
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_c_try_compile "$LINENO"
6795 rra_cv_compiler_c__Wbad_function_cast=yes
6797 rra_cv_compiler_c__Wbad_function_cast=no
6799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wbad_function_cast" >&5
6804 printf "%s\n" "$rra_cv_compiler_c__Wbad_function_cast" >&6; }
6805 if test x"$rra_cv_compiler_c__Wbad_function_cast" = xyes
6807 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wbad-function-cast"
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-align" >&5
6810 printf %s "checking if $CC supports -Wcast-align... " >&6; }
6811 if test ${rra_cv_compiler_c__Wcast_align+y}
6813 printf %s "(cached) " >&6
6816 if test x"$CLANG" = xyes
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6820 case -Wcast-align in #(
6822 CFLAGS="$CFLAGS `printf "%s\n" "-Wcast-align" | sed 's/-Wno-/-W/'`" ;; #(
6824 CFLAGS="$CFLAGS -Wcast-align" ;;
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6837 if ac_fn_c_try_compile "$LINENO"
6839 rra_cv_compiler_c__Wcast_align=yes
6841 rra_cv_compiler_c__Wcast_align=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wcast_align" >&5
6848 printf "%s\n" "$rra_cv_compiler_c__Wcast_align" >&6; }
6849 if test x"$rra_cv_compiler_c__Wcast_align" = xyes
6851 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wcast-align"
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
6854 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
6855 if test ${rra_cv_compiler_c__Wwrite_strings+y}
6857 printf %s "(cached) " >&6
6860 if test x"$CLANG" = xyes
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 case -Wwrite-strings in #(
6866 CFLAGS="$CFLAGS `printf "%s\n" "-Wwrite-strings" | sed 's/-Wno-/-W/'`" ;; #(
6868 CFLAGS="$CFLAGS -Wwrite-strings" ;;
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6881 if ac_fn_c_try_compile "$LINENO"
6883 rra_cv_compiler_c__Wwrite_strings=yes
6885 rra_cv_compiler_c__Wwrite_strings=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wwrite_strings" >&5
6892 printf "%s\n" "$rra_cv_compiler_c__Wwrite_strings" >&6; }
6893 if test x"$rra_cv_compiler_c__Wwrite_strings" = xyes
6895 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wwrite-strings"
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wconversion" >&5
6898 printf %s "checking if $CC supports -Wconversion... " >&6; }
6899 if test ${rra_cv_compiler_c__Wconversion+y}
6901 printf %s "(cached) " >&6
6904 if test x"$CLANG" = xyes
6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6908 case -Wconversion in #(
6910 CFLAGS="$CFLAGS `printf "%s\n" "-Wconversion" | sed 's/-Wno-/-W/'`" ;; #(
6912 CFLAGS="$CFLAGS -Wconversion" ;;
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6925 if ac_fn_c_try_compile "$LINENO"
6927 rra_cv_compiler_c__Wconversion=yes
6929 rra_cv_compiler_c__Wconversion=no
6931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wconversion" >&5
6936 printf "%s\n" "$rra_cv_compiler_c__Wconversion" >&6; }
6937 if test x"$rra_cv_compiler_c__Wconversion" = xyes
6939 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wconversion"
6941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wno-sign-conversion" >&5
6942 printf %s "checking if $CC supports -Wno-sign-conversion... " >&6; }
6943 if test ${rra_cv_compiler_c__Wno_sign_conversion+y}
6945 printf %s "(cached) " >&6
6948 if test x"$CLANG" = xyes
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 case -Wno-sign-conversion in #(
6954 CFLAGS="$CFLAGS `printf "%s\n" "-Wno-sign-conversion" | sed 's/-Wno-/-W/'`" ;; #(
6956 CFLAGS="$CFLAGS -Wno-sign-conversion" ;;
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6969 if ac_fn_c_try_compile "$LINENO"
6971 rra_cv_compiler_c__Wno_sign_conversion=yes
6973 rra_cv_compiler_c__Wno_sign_conversion=no
6975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wno_sign_conversion" >&5
6980 printf "%s\n" "$rra_cv_compiler_c__Wno_sign_conversion" >&6; }
6981 if test x"$rra_cv_compiler_c__Wno_sign_conversion" = xyes
6983 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wno-sign-conversion"
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdate-time" >&5
6986 printf %s "checking if $CC supports -Wdate-time... " >&6; }
6987 if test ${rra_cv_compiler_c__Wdate_time+y}
6989 printf %s "(cached) " >&6
6992 if test x"$CLANG" = xyes
6994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996 case -Wdate-time in #(
6998 CFLAGS="$CFLAGS `printf "%s\n" "-Wdate-time" | sed 's/-Wno-/-W/'`" ;; #(
7000 CFLAGS="$CFLAGS -Wdate-time" ;;
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7013 if ac_fn_c_try_compile "$LINENO"
7015 rra_cv_compiler_c__Wdate_time=yes
7017 rra_cv_compiler_c__Wdate_time=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wdate_time" >&5
7024 printf "%s\n" "$rra_cv_compiler_c__Wdate_time" >&6; }
7025 if test x"$rra_cv_compiler_c__Wdate_time" = xyes
7027 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wdate-time"
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wjump-misses-init" >&5
7030 printf %s "checking if $CC supports -Wjump-misses-init... " >&6; }
7031 if test ${rra_cv_compiler_c__Wjump_misses_init+y}
7033 printf %s "(cached) " >&6
7036 if test x"$CLANG" = xyes
7038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7040 case -Wjump-misses-init in #(
7042 CFLAGS="$CFLAGS `printf "%s\n" "-Wjump-misses-init" | sed 's/-Wno-/-W/'`" ;; #(
7044 CFLAGS="$CFLAGS -Wjump-misses-init" ;;
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h. */
7057 if ac_fn_c_try_compile "$LINENO"
7059 rra_cv_compiler_c__Wjump_misses_init=yes
7061 rra_cv_compiler_c__Wjump_misses_init=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wjump_misses_init" >&5
7068 printf "%s\n" "$rra_cv_compiler_c__Wjump_misses_init" >&6; }
7069 if test x"$rra_cv_compiler_c__Wjump_misses_init" = xyes
7071 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wjump-misses-init"
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7074 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7075 if test ${rra_cv_compiler_c__Wlogical_op+y}
7077 printf %s "(cached) " >&6
7080 if test x"$CLANG" = xyes
7082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 case -Wlogical-op in #(
7086 CFLAGS="$CFLAGS `printf "%s\n" "-Wlogical-op" | sed 's/-Wno-/-W/'`" ;; #(
7088 CFLAGS="$CFLAGS -Wlogical-op" ;;
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7101 if ac_fn_c_try_compile "$LINENO"
7103 rra_cv_compiler_c__Wlogical_op=yes
7105 rra_cv_compiler_c__Wlogical_op=no
7107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wlogical_op" >&5
7112 printf "%s\n" "$rra_cv_compiler_c__Wlogical_op" >&6; }
7113 if test x"$rra_cv_compiler_c__Wlogical_op" = xyes
7115 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wlogical-op"
7117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
7118 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
7119 if test ${rra_cv_compiler_c__Wstrict_prototypes+y}
7121 printf %s "(cached) " >&6
7124 if test x"$CLANG" = xyes
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128 case -Wstrict-prototypes in #(
7130 CFLAGS="$CFLAGS `printf "%s\n" "-Wstrict-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
7132 CFLAGS="$CFLAGS -Wstrict-prototypes" ;;
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7145 if ac_fn_c_try_compile "$LINENO"
7147 rra_cv_compiler_c__Wstrict_prototypes=yes
7149 rra_cv_compiler_c__Wstrict_prototypes=no
7151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wstrict_prototypes" >&5
7156 printf "%s\n" "$rra_cv_compiler_c__Wstrict_prototypes" >&6; }
7157 if test x"$rra_cv_compiler_c__Wstrict_prototypes" = xyes
7159 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wstrict-prototypes"
7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
7162 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
7163 if test ${rra_cv_compiler_c__Wold_style_definition+y}
7165 printf %s "(cached) " >&6
7168 if test x"$CLANG" = xyes
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7172 case -Wold-style-definition in #(
7174 CFLAGS="$CFLAGS `printf "%s\n" "-Wold-style-definition" | sed 's/-Wno-/-W/'`" ;; #(
7176 CFLAGS="$CFLAGS -Wold-style-definition" ;;
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7189 if ac_fn_c_try_compile "$LINENO"
7191 rra_cv_compiler_c__Wold_style_definition=yes
7193 rra_cv_compiler_c__Wold_style_definition=no
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wold_style_definition" >&5
7200 printf "%s\n" "$rra_cv_compiler_c__Wold_style_definition" >&6; }
7201 if test x"$rra_cv_compiler_c__Wold_style_definition" = xyes
7203 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wold-style-definition"
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
7206 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
7207 if test ${rra_cv_compiler_c__Wmissing_prototypes+y}
7209 printf %s "(cached) " >&6
7212 if test x"$CLANG" = xyes
7214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7216 case -Wmissing-prototypes in #(
7218 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-prototypes" | sed 's/-Wno-/-W/'`" ;; #(
7220 CFLAGS="$CFLAGS -Wmissing-prototypes" ;;
7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7233 if ac_fn_c_try_compile "$LINENO"
7235 rra_cv_compiler_c__Wmissing_prototypes=yes
7237 rra_cv_compiler_c__Wmissing_prototypes=no
7239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_prototypes" >&5
7244 printf "%s\n" "$rra_cv_compiler_c__Wmissing_prototypes" >&6; }
7245 if test x"$rra_cv_compiler_c__Wmissing_prototypes" = xyes
7247 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-prototypes"
7249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
7250 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
7251 if test ${rra_cv_compiler_c__Wmissing_declarations+y}
7253 printf %s "(cached) " >&6
7256 if test x"$CLANG" = xyes
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7260 case -Wmissing-declarations in #(
7262 CFLAGS="$CFLAGS `printf "%s\n" "-Wmissing-declarations" | sed 's/-Wno-/-W/'`" ;; #(
7264 CFLAGS="$CFLAGS -Wmissing-declarations" ;;
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7277 if ac_fn_c_try_compile "$LINENO"
7279 rra_cv_compiler_c__Wmissing_declarations=yes
7281 rra_cv_compiler_c__Wmissing_declarations=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wmissing_declarations" >&5
7288 printf "%s\n" "$rra_cv_compiler_c__Wmissing_declarations" >&6; }
7289 if test x"$rra_cv_compiler_c__Wmissing_declarations" = xyes
7291 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wmissing-declarations"
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnormalized=nfc" >&5
7294 printf %s "checking if $CC supports -Wnormalized=nfc... " >&6; }
7295 if test ${rra_cv_compiler_c__Wnormalized_nfc+y}
7297 printf %s "(cached) " >&6
7300 if test x"$CLANG" = xyes
7302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304 case -Wnormalized=nfc in #(
7306 CFLAGS="$CFLAGS `printf "%s\n" "-Wnormalized=nfc" | sed 's/-Wno-/-W/'`" ;; #(
7308 CFLAGS="$CFLAGS -Wnormalized=nfc" ;;
7310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7321 if ac_fn_c_try_compile "$LINENO"
7323 rra_cv_compiler_c__Wnormalized_nfc=yes
7325 rra_cv_compiler_c__Wnormalized_nfc=no
7327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnormalized_nfc" >&5
7332 printf "%s\n" "$rra_cv_compiler_c__Wnormalized_nfc" >&6; }
7333 if test x"$rra_cv_compiler_c__Wnormalized_nfc" = xyes
7335 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnormalized=nfc"
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpacked" >&5
7338 printf %s "checking if $CC supports -Wpacked... " >&6; }
7339 if test ${rra_cv_compiler_c__Wpacked+y}
7341 printf %s "(cached) " >&6
7344 if test x"$CLANG" = xyes
7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350 CFLAGS="$CFLAGS `printf "%s\n" "-Wpacked" | sed 's/-Wno-/-W/'`" ;; #(
7352 CFLAGS="$CFLAGS -Wpacked" ;;
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7365 if ac_fn_c_try_compile "$LINENO"
7367 rra_cv_compiler_c__Wpacked=yes
7369 rra_cv_compiler_c__Wpacked=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wpacked" >&5
7376 printf "%s\n" "$rra_cv_compiler_c__Wpacked" >&6; }
7377 if test x"$rra_cv_compiler_c__Wpacked" = xyes
7379 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wpacked"
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7382 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7383 if test ${rra_cv_compiler_c__Wredundant_decls+y}
7385 printf %s "(cached) " >&6
7388 if test x"$CLANG" = xyes
7390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392 case -Wredundant-decls in #(
7394 CFLAGS="$CFLAGS `printf "%s\n" "-Wredundant-decls" | sed 's/-Wno-/-W/'`" ;; #(
7396 CFLAGS="$CFLAGS -Wredundant-decls" ;;
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7409 if ac_fn_c_try_compile "$LINENO"
7411 rra_cv_compiler_c__Wredundant_decls=yes
7413 rra_cv_compiler_c__Wredundant_decls=no
7415 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wredundant_decls" >&5
7420 printf "%s\n" "$rra_cv_compiler_c__Wredundant_decls" >&6; }
7421 if test x"$rra_cv_compiler_c__Wredundant_decls" = xyes
7423 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wredundant-decls"
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wrestrict" >&5
7426 printf %s "checking if $CC supports -Wrestrict... " >&6; }
7427 if test ${rra_cv_compiler_c__Wrestrict+y}
7429 printf %s "(cached) " >&6
7432 if test x"$CLANG" = xyes
7434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 case -Wrestrict in #(
7438 CFLAGS="$CFLAGS `printf "%s\n" "-Wrestrict" | sed 's/-Wno-/-W/'`" ;; #(
7440 CFLAGS="$CFLAGS -Wrestrict" ;;
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7453 if ac_fn_c_try_compile "$LINENO"
7455 rra_cv_compiler_c__Wrestrict=yes
7457 rra_cv_compiler_c__Wrestrict=no
7459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wrestrict" >&5
7464 printf "%s\n" "$rra_cv_compiler_c__Wrestrict" >&6; }
7465 if test x"$rra_cv_compiler_c__Wrestrict" = xyes
7467 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wrestrict"
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
7470 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
7471 if test ${rra_cv_compiler_c__Wnested_externs+y}
7473 printf %s "(cached) " >&6
7476 if test x"$CLANG" = xyes
7478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7480 case -Wnested-externs in #(
7482 CFLAGS="$CFLAGS `printf "%s\n" "-Wnested-externs" | sed 's/-Wno-/-W/'`" ;; #(
7484 CFLAGS="$CFLAGS -Wnested-externs" ;;
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7497 if ac_fn_c_try_compile "$LINENO"
7499 rra_cv_compiler_c__Wnested_externs=yes
7501 rra_cv_compiler_c__Wnested_externs=no
7503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wnested_externs" >&5
7508 printf "%s\n" "$rra_cv_compiler_c__Wnested_externs" >&6; }
7509 if test x"$rra_cv_compiler_c__Wnested_externs" = xyes
7511 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wnested-externs"
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winline" >&5
7514 printf %s "checking if $CC supports -Winline... " >&6; }
7515 if test ${rra_cv_compiler_c__Winline+y}
7517 printf %s "(cached) " >&6
7520 if test x"$CLANG" = xyes
7522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526 CFLAGS="$CFLAGS `printf "%s\n" "-Winline" | sed 's/-Wno-/-W/'`" ;; #(
7528 CFLAGS="$CFLAGS -Winline" ;;
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7541 if ac_fn_c_try_compile "$LINENO"
7543 rra_cv_compiler_c__Winline=yes
7545 rra_cv_compiler_c__Winline=no
7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Winline" >&5
7552 printf "%s\n" "$rra_cv_compiler_c__Winline" >&6; }
7553 if test x"$rra_cv_compiler_c__Winline" = xyes
7555 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Winline"
7557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wvla" >&5
7558 printf %s "checking if $CC supports -Wvla... " >&6; }
7559 if test ${rra_cv_compiler_c__Wvla+y}
7561 printf %s "(cached) " >&6
7564 if test x"$CLANG" = xyes
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7570 CFLAGS="$CFLAGS `printf "%s\n" "-Wvla" | sed 's/-Wno-/-W/'`" ;; #(
7572 CFLAGS="$CFLAGS -Wvla" ;;
7574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h. */
7585 if ac_fn_c_try_compile "$LINENO"
7587 rra_cv_compiler_c__Wvla=yes
7589 rra_cv_compiler_c__Wvla=no
7591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wvla" >&5
7596 printf "%s\n" "$rra_cv_compiler_c__Wvla" >&6; }
7597 if test x"$rra_cv_compiler_c__Wvla" = xyes
7599 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wvla"
7601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuse-after-free=3" >&5
7602 printf %s "checking if $CC supports -Wuse-after-free=3... " >&6; }
7603 if test ${rra_cv_compiler_c__Wuse_after_free_3+y}
7605 printf %s "(cached) " >&6
7608 if test x"$CLANG" = xyes
7610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612 case -Wuse-after-free=3 in #(
7614 CFLAGS="$CFLAGS `printf "%s\n" "-Wuse-after-free=3" | sed 's/-Wno-/-W/'`" ;; #(
7616 CFLAGS="$CFLAGS -Wuse-after-free=3" ;;
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7629 if ac_fn_c_try_compile "$LINENO"
7631 rra_cv_compiler_c__Wuse_after_free_3=yes
7633 rra_cv_compiler_c__Wuse_after_free_3=no
7635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_compiler_c__Wuse_after_free_3" >&5
7640 printf "%s\n" "$rra_cv_compiler_c__Wuse_after_free_3" >&6; }
7641 if test x"$rra_cv_compiler_c__Wuse_after_free_3" = xyes
7643 WARNINGS_CFLAGS="${WARNINGS_CFLAGS} -Wuse-after-free=3"
7647 # Check whether --enable-largefile was given.
7648 if test ${enable_largefile+y}
7650 enableval=$enable_largefile;
7653 if test "$enable_largefile" != no; then
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7656 printf %s "checking for special C compiler options needed for large files... " >&6; }
7657 if test ${ac_cv_sys_largefile_CC+y}
7659 printf %s "(cached) " >&6
7661 ac_cv_sys_largefile_CC=no
7662 if test "$GCC" != yes; then
7665 # IRIX 6.2 and later do not support large files by default,
7666 # so use the C compiler's -n32 option if that helps.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #include <sys/types.h>
7670 /* Check that off_t can represent 2**63 - 1 correctly.
7671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7672 since some C++ compilers masquerading as C compilers
7673 incorrectly reject 9223372036854775807. */
7674 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7676 && LARGE_OFF_T % 2147483647 == 1)
7686 if ac_fn_c_try_compile "$LINENO"
7690 rm -f core conftest.err conftest.$ac_objext conftest.beam
7692 if ac_fn_c_try_compile "$LINENO"
7694 ac_cv_sys_largefile_CC=' -n32'; break
7696 rm -f core conftest.err conftest.$ac_objext conftest.beam
7700 rm -f conftest.$ac_ext
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7704 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7705 if test "$ac_cv_sys_largefile_CC" != no; then
7706 CC=$CC$ac_cv_sys_largefile_CC
7709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7710 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7711 if test ${ac_cv_sys_file_offset_bits+y}
7713 printf %s "(cached) " >&6
7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7717 /* end confdefs.h. */
7718 #include <sys/types.h>
7719 /* Check that off_t can represent 2**63 - 1 correctly.
7720 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7721 since some C++ compilers masquerading as C compilers
7722 incorrectly reject 9223372036854775807. */
7723 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7724 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7725 && LARGE_OFF_T % 2147483647 == 1)
7735 if ac_fn_c_try_compile "$LINENO"
7737 ac_cv_sys_file_offset_bits=no; break
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742 #define _FILE_OFFSET_BITS 64
7743 #include <sys/types.h>
7744 /* Check that off_t can represent 2**63 - 1 correctly.
7745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7746 since some C++ compilers masquerading as C compilers
7747 incorrectly reject 9223372036854775807. */
7748 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7750 && LARGE_OFF_T % 2147483647 == 1)
7760 if ac_fn_c_try_compile "$LINENO"
7762 ac_cv_sys_file_offset_bits=64; break
7764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7765 ac_cv_sys_file_offset_bits=unknown
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7770 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7771 case $ac_cv_sys_file_offset_bits in #(
7774 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7778 if test $ac_cv_sys_file_offset_bits = unknown; then
7779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7780 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7781 if test ${ac_cv_sys_large_files+y}
7783 printf %s "(cached) " >&6
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <sys/types.h>
7789 /* Check that off_t can represent 2**63 - 1 correctly.
7790 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7791 since some C++ compilers masquerading as C compilers
7792 incorrectly reject 9223372036854775807. */
7793 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7794 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7795 && LARGE_OFF_T % 2147483647 == 1)
7805 if ac_fn_c_try_compile "$LINENO"
7807 ac_cv_sys_large_files=no; break
7809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 #define _LARGE_FILES 1
7813 #include <sys/types.h>
7814 /* Check that off_t can represent 2**63 - 1 correctly.
7815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7816 since some C++ compilers masquerading as C compilers
7817 incorrectly reject 9223372036854775807. */
7818 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7820 && LARGE_OFF_T % 2147483647 == 1)
7830 if ac_fn_c_try_compile "$LINENO"
7832 ac_cv_sys_large_files=1; break
7834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7835 ac_cv_sys_large_files=unknown
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7840 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7841 case $ac_cv_sys_large_files in #(
7844 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7853 if test -n "$ac_tool_prefix"; then
7854 for ac_prog in ar lib "link -lib"
7856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7857 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7859 printf %s "checking for $ac_word... " >&6; }
7860 if test ${ac_cv_prog_AR+y}
7862 printf %s "(cached) " >&6
7864 if test -n "$AR"; then
7865 ac_cv_prog_AR="$AR" # Let the user override the test.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 case $as_dir in #(((
7874 *) as_dir=$as_dir/ ;;
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7878 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7889 if test -n "$AR"; then
7890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7891 printf "%s\n" "$AR" >&6; }
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 printf "%s\n" "no" >&6; }
7898 test -n "$AR" && break
7901 if test -z "$AR"; then
7903 for ac_prog in ar lib "link -lib"
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906 set dummy $ac_prog; ac_word=$2
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 printf %s "checking for $ac_word... " >&6; }
7909 if test ${ac_cv_prog_ac_ct_AR+y}
7911 printf %s "(cached) " >&6
7913 if test -n "$ac_ct_AR"; then
7914 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 case $as_dir in #(((
7923 *) as_dir=$as_dir/ ;;
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7927 ac_cv_prog_ac_ct_AR="$ac_prog"
7928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7937 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7938 if test -n "$ac_ct_AR"; then
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7940 printf "%s\n" "$ac_ct_AR" >&6; }
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 printf "%s\n" "no" >&6; }
7947 test -n "$ac_ct_AR" && break
7950 if test "x$ac_ct_AR" = x; then
7953 case $cross_compiling:$ac_tool_warned in
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned=yes ;;
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7966 printf %s "checking the archiver ($AR) interface... " >&6; }
7967 if test ${am_cv_ar_interface+y}
7969 printf %s "(cached) " >&6
7972 ac_cpp='$CPP $CPPFLAGS'
7973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7977 am_cv_ar_interface=ar
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 int some_variable = 0;
7982 if ac_fn_c_try_compile "$LINENO"
7984 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7986 (eval $am_ar_try) 2>&5
7988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7989 test $ac_status = 0; }
7990 if test "$ac_status" -eq 0; then
7991 am_cv_ar_interface=ar
7993 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7995 (eval $am_ar_try) 2>&5
7997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7998 test $ac_status = 0; }
7999 if test "$ac_status" -eq 0; then
8000 am_cv_ar_interface=lib
8002 am_cv_ar_interface=unknown
8005 rm -f conftest.lib libconftest.a
8008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8010 ac_cpp='$CPP $CPPFLAGS'
8011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8017 printf "%s\n" "$am_cv_ar_interface" >&6; }
8019 case $am_cv_ar_interface in
8023 # Microsoft lib, so override with the ar-lib wrapper script.
8024 # FIXME: It is wrong to rewrite AR.
8025 # But if we don't then we get into trouble of one sort or another.
8026 # A longer-term fix would be to have automake use am__AR in this case,
8027 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8029 AR="$am_aux_dir/ar-lib $AR"
8032 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8037 # Check whether --enable-static was given.
8038 if test ${enable_static+y}
8040 enableval=$enable_static; p=${PACKAGE-default}
8042 yes) enable_static=yes ;;
8043 no) enable_static=no ;;
8046 # Look at the argument we got. We use all the common list separators.
8047 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8048 for pkg in $enableval; do
8050 if test "X$pkg" = "X$p"; then
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8072 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8077 macro_version='2.4.7'
8078 macro_revision='2.4.7'
8093 ltmain=$ac_aux_dir/ltmain.sh
8097 # Make sure we can run config.sub.
8098 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
8099 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
8102 printf %s "checking build system type... " >&6; }
8103 if test ${ac_cv_build+y}
8105 printf %s "(cached) " >&6
8107 ac_build_alias=$build_alias
8108 test "x$ac_build_alias" = x &&
8109 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
8110 test "x$ac_build_alias" = x &&
8111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
8112 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
8113 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
8116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8117 printf "%s\n" "$ac_cv_build" >&6; }
8118 case $ac_cv_build in
8120 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8123 ac_save_IFS=$IFS; IFS='-'
8129 # Remember, the first character of IFS is used to create $*,
8130 # except with old shells:
8133 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8137 printf %s "checking host system type... " >&6; }
8138 if test ${ac_cv_host+y}
8140 printf %s "(cached) " >&6
8142 if test "x$host_alias" = x; then
8143 ac_cv_host=$ac_cv_build
8145 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
8146 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
8150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8151 printf "%s\n" "$ac_cv_host" >&6; }
8154 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8157 ac_save_IFS=$IFS; IFS='-'
8163 # Remember, the first character of IFS is used to create $*,
8164 # except with old shells:
8167 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8170 # Backslashify metacharacters that are still active within
8171 # double-quoted strings.
8172 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8174 # Same as above, but do not quote variable references.
8175 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8177 # Sed substitution to delay expansion of an escaped shell variable in a
8178 # double_quote_subst'ed string.
8179 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8181 # Sed substitution to delay expansion of an escaped single quote.
8182 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8184 # Sed substitution to avoid accidental globbing in evaled expressions
8185 no_glob_subst='s/\*/\\\*/g'
8187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8188 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8192 printf %s "checking how to print strings... " >&6; }
8193 # Test print first, because it will be a builtin if present.
8194 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8195 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8197 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8200 # Use this function as a fallback that always works.
8201 func_fallback_echo ()
8203 eval 'cat <<_LTECHO_EOF
8207 ECHO='func_fallback_echo'
8210 # func_echo_all arg...
8211 # Invoke $ECHO with all args, space-separated.
8218 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8219 printf "%s\n" "printf" >&6; } ;;
8220 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8221 printf "%s\n" "print -r" >&6; } ;;
8222 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8223 printf "%s\n" "cat" >&6; } ;;
8239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8240 printf %s "checking for a sed that does not truncate output... " >&6; }
8241 if test ${ac_cv_path_SED+y}
8243 printf %s "(cached) " >&6
8245 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8246 for ac_i in 1 2 3 4 5 6 7; do
8247 ac_script="$ac_script$as_nl$ac_script"
8249 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8250 { ac_script=; unset ac_script;}
8251 if test -z "$SED"; then
8252 ac_path_SED_found=false
8253 # Loop through the user's path and test for each of PROGNAME-LIST
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 case $as_dir in #(((
8261 *) as_dir=$as_dir/ ;;
8263 for ac_prog in sed gsed
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8267 as_fn_executable_p "$ac_path_SED" || continue
8268 # Check for GNU ac_path_SED and select it if it is found.
8269 # Check for GNU $ac_path_SED
8270 case `"$ac_path_SED" --version 2>&1` in
8272 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8275 printf %s 0123456789 >"conftest.in"
8278 cat "conftest.in" "conftest.in" >"conftest.tmp"
8279 mv "conftest.tmp" "conftest.in"
8280 cp "conftest.in" "conftest.nl"
8281 printf "%s\n" '' >> "conftest.nl"
8282 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8284 as_fn_arith $ac_count + 1 && ac_count=$as_val
8285 if test $ac_count -gt ${ac_path_SED_max-0}; then
8286 # Best one so far, save it but keep looking for a better one
8287 ac_cv_path_SED="$ac_path_SED"
8288 ac_path_SED_max=$ac_count
8290 # 10*(2^10) chars as input seems more than enough
8291 test $ac_count -gt 10 && break
8293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8296 $ac_path_SED_found && break 3
8301 if test -z "$ac_cv_path_SED"; then
8302 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8310 printf "%s\n" "$ac_cv_path_SED" >&6; }
8311 SED="$ac_cv_path_SED"
8314 test -z "$SED" && SED=sed
8315 Xsed="$SED -e 1s/^X//"
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8328 printf %s "checking for grep that handles long lines and -e... " >&6; }
8329 if test ${ac_cv_path_GREP+y}
8331 printf %s "(cached) " >&6
8333 if test -z "$GREP"; then
8334 ac_path_GREP_found=false
8335 # Loop through the user's path and test for each of PROGNAME-LIST
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8340 case $as_dir in #(((
8343 *) as_dir=$as_dir/ ;;
8345 for ac_prog in grep ggrep
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8349 as_fn_executable_p "$ac_path_GREP" || continue
8350 # Check for GNU ac_path_GREP and select it if it is found.
8351 # Check for GNU $ac_path_GREP
8352 case `"$ac_path_GREP" --version 2>&1` in
8354 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8357 printf %s 0123456789 >"conftest.in"
8360 cat "conftest.in" "conftest.in" >"conftest.tmp"
8361 mv "conftest.tmp" "conftest.in"
8362 cp "conftest.in" "conftest.nl"
8363 printf "%s\n" 'GREP' >> "conftest.nl"
8364 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8365 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8366 as_fn_arith $ac_count + 1 && ac_count=$as_val
8367 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8368 # Best one so far, save it but keep looking for a better one
8369 ac_cv_path_GREP="$ac_path_GREP"
8370 ac_path_GREP_max=$ac_count
8372 # 10*(2^10) chars as input seems more than enough
8373 test $ac_count -gt 10 && break
8375 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8378 $ac_path_GREP_found && break 3
8383 if test -z "$ac_cv_path_GREP"; then
8384 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8387 ac_cv_path_GREP=$GREP
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8392 printf "%s\n" "$ac_cv_path_GREP" >&6; }
8393 GREP="$ac_cv_path_GREP"
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8397 printf %s "checking for egrep... " >&6; }
8398 if test ${ac_cv_path_EGREP+y}
8400 printf %s "(cached) " >&6
8402 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8403 then ac_cv_path_EGREP="$GREP -E"
8405 if test -z "$EGREP"; then
8406 ac_path_EGREP_found=false
8407 # Loop through the user's path and test for each of PROGNAME-LIST
8408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8409 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8412 case $as_dir in #(((
8415 *) as_dir=$as_dir/ ;;
8417 for ac_prog in egrep
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8421 as_fn_executable_p "$ac_path_EGREP" || continue
8422 # Check for GNU ac_path_EGREP and select it if it is found.
8423 # Check for GNU $ac_path_EGREP
8424 case `"$ac_path_EGREP" --version 2>&1` in
8426 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8429 printf %s 0123456789 >"conftest.in"
8432 cat "conftest.in" "conftest.in" >"conftest.tmp"
8433 mv "conftest.tmp" "conftest.in"
8434 cp "conftest.in" "conftest.nl"
8435 printf "%s\n" 'EGREP' >> "conftest.nl"
8436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8438 as_fn_arith $ac_count + 1 && ac_count=$as_val
8439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8440 # Best one so far, save it but keep looking for a better one
8441 ac_cv_path_EGREP="$ac_path_EGREP"
8442 ac_path_EGREP_max=$ac_count
8444 # 10*(2^10) chars as input seems more than enough
8445 test $ac_count -gt 10 && break
8447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8450 $ac_path_EGREP_found && break 3
8455 if test -z "$ac_cv_path_EGREP"; then
8456 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8459 ac_cv_path_EGREP=$EGREP
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8465 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8466 EGREP="$ac_cv_path_EGREP"
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8470 printf %s "checking for fgrep... " >&6; }
8471 if test ${ac_cv_path_FGREP+y}
8473 printf %s "(cached) " >&6
8475 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8476 then ac_cv_path_FGREP="$GREP -F"
8478 if test -z "$FGREP"; then
8479 ac_path_FGREP_found=false
8480 # Loop through the user's path and test for each of PROGNAME-LIST
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8485 case $as_dir in #(((
8488 *) as_dir=$as_dir/ ;;
8490 for ac_prog in fgrep
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8494 as_fn_executable_p "$ac_path_FGREP" || continue
8495 # Check for GNU ac_path_FGREP and select it if it is found.
8496 # Check for GNU $ac_path_FGREP
8497 case `"$ac_path_FGREP" --version 2>&1` in
8499 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8502 printf %s 0123456789 >"conftest.in"
8505 cat "conftest.in" "conftest.in" >"conftest.tmp"
8506 mv "conftest.tmp" "conftest.in"
8507 cp "conftest.in" "conftest.nl"
8508 printf "%s\n" 'FGREP' >> "conftest.nl"
8509 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8511 as_fn_arith $ac_count + 1 && ac_count=$as_val
8512 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8513 # Best one so far, save it but keep looking for a better one
8514 ac_cv_path_FGREP="$ac_path_FGREP"
8515 ac_path_FGREP_max=$ac_count
8517 # 10*(2^10) chars as input seems more than enough
8518 test $ac_count -gt 10 && break
8520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8523 $ac_path_FGREP_found && break 3
8528 if test -z "$ac_cv_path_FGREP"; then
8529 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8532 ac_cv_path_FGREP=$FGREP
8537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8538 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8539 FGREP="$ac_cv_path_FGREP"
8542 test -z "$GREP" && GREP=grep
8562 # Check whether --with-gnu-ld was given.
8563 if test ${with_gnu_ld+y}
8565 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8571 if test yes = "$GCC"; then
8572 # Check if gcc -print-prog-name=ld gives a path.
8573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8574 printf %s "checking for ld used by $CC... " >&6; }
8577 # gcc leaves a trailing carriage return, which upsets mingw
8578 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8580 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8583 # Accept absolute paths.
8585 re_direlt='/[^/][^/]*/\.\./'
8586 # Canonicalize the pathname of ld
8587 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8588 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8589 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8591 test -z "$LD" && LD=$ac_prog
8594 # If it fails, then pretend we aren't using GCC.
8598 # If it is relative, then search for the first ld in PATH.
8602 elif test yes = "$with_gnu_ld"; then
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8604 printf %s "checking for GNU ld... " >&6; }
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8607 printf %s "checking for non-GNU ld... " >&6; }
8609 if test ${lt_cv_path_LD+y}
8611 printf %s "(cached) " >&6
8613 if test -z "$LD"; then
8614 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8615 for ac_dir in $PATH; do
8617 test -z "$ac_dir" && ac_dir=.
8618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8619 lt_cv_path_LD=$ac_dir/$ac_prog
8620 # Check to see if the program is GNU ld. I'd rather use --version,
8621 # but apparently some variants of GNU ld only accept -v.
8622 # Break only if it was the GNU/non-GNU ld that we prefer.
8623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8624 *GNU* | *'with BFD'*)
8625 test no != "$with_gnu_ld" && break
8628 test yes != "$with_gnu_ld" && break
8635 lt_cv_path_LD=$LD # Let the user override the test with a path.
8640 if test -n "$LD"; then
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8642 printf "%s\n" "$LD" >&6; }
8644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 printf "%s\n" "no" >&6; }
8647 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8649 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8650 if test ${lt_cv_prog_gnu_ld+y}
8652 printf %s "(cached) " >&6
8654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8655 case `$LD -v 2>&1 </dev/null` in
8656 *GNU* | *'with BFD'*)
8657 lt_cv_prog_gnu_ld=yes
8660 lt_cv_prog_gnu_ld=no
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8665 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8666 with_gnu_ld=$lt_cv_prog_gnu_ld
8676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8677 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8678 if test ${lt_cv_path_NM+y}
8680 printf %s "(cached) " >&6
8682 if test -n "$NM"; then
8683 # Let the user override the test.
8686 lt_nm_to_check=${ac_tool_prefix}nm
8687 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8688 lt_nm_to_check="$lt_nm_to_check nm"
8690 for lt_tmp_nm in $lt_nm_to_check; do
8691 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8692 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8694 test -z "$ac_dir" && ac_dir=.
8695 tmp_nm=$ac_dir/$lt_tmp_nm
8696 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8697 # Check to see if the nm accepts a BSD-compat flag.
8698 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8699 # nm: unknown option "B" ignored
8700 # Tru64's nm complains that /dev/null is an invalid object file
8701 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8703 mingw*) lt_bad_file=conftest.nm/nofile ;;
8704 *) lt_bad_file=/dev/null ;;
8706 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8707 *$lt_bad_file* | *'Invalid file or object type'*)
8708 lt_cv_path_NM="$tmp_nm -B"
8712 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8714 lt_cv_path_NM="$tmp_nm -p"
8718 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8719 continue # so that we can try to find one that supports BSD flags
8728 : ${lt_cv_path_NM=no}
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8732 printf "%s\n" "$lt_cv_path_NM" >&6; }
8733 if test no != "$lt_cv_path_NM"; then
8736 # Didn't find any BSD compatible name lister, look for dumpbin.
8737 if test -n "$DUMPBIN"; then :
8738 # Let the user override the test.
8740 if test -n "$ac_tool_prefix"; then
8741 for ac_prog in dumpbin "link -dump"
8743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8746 printf %s "checking for $ac_word... " >&6; }
8747 if test ${ac_cv_prog_DUMPBIN+y}
8749 printf %s "(cached) " >&6
8751 if test -n "$DUMPBIN"; then
8752 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 case $as_dir in #(((
8761 *) as_dir=$as_dir/ ;;
8763 for ac_exec_ext in '' $ac_executable_extensions; do
8764 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8775 DUMPBIN=$ac_cv_prog_DUMPBIN
8776 if test -n "$DUMPBIN"; then
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8778 printf "%s\n" "$DUMPBIN" >&6; }
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 printf "%s\n" "no" >&6; }
8785 test -n "$DUMPBIN" && break
8788 if test -z "$DUMPBIN"; then
8789 ac_ct_DUMPBIN=$DUMPBIN
8790 for ac_prog in dumpbin "link -dump"
8792 # Extract the first word of "$ac_prog", so it can be a program name with args.
8793 set dummy $ac_prog; ac_word=$2
8794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795 printf %s "checking for $ac_word... " >&6; }
8796 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8798 printf %s "(cached) " >&6
8800 if test -n "$ac_ct_DUMPBIN"; then
8801 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 case $as_dir in #(((
8810 *) as_dir=$as_dir/ ;;
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8814 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8824 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8825 if test -n "$ac_ct_DUMPBIN"; then
8826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8827 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 printf "%s\n" "no" >&6; }
8834 test -n "$ac_ct_DUMPBIN" && break
8837 if test "x$ac_ct_DUMPBIN" = x; then
8840 case $cross_compiling:$ac_tool_warned in
8842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8846 DUMPBIN=$ac_ct_DUMPBIN
8850 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8852 DUMPBIN="$DUMPBIN -symbols -headers"
8860 if test : != "$DUMPBIN"; then
8864 test -z "$NM" && NM=nm
8871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8872 printf %s "checking the name lister ($NM) interface... " >&6; }
8873 if test ${lt_cv_nm_interface+y}
8875 printf %s "(cached) " >&6
8877 lt_cv_nm_interface="BSD nm"
8878 echo "int some_variable = 0;" > conftest.$ac_ext
8879 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8880 (eval "$ac_compile" 2>conftest.err)
8881 cat conftest.err >&5
8882 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8883 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8884 cat conftest.err >&5
8885 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8886 cat conftest.out >&5
8887 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8888 lt_cv_nm_interface="MS dumpbin"
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8893 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8896 printf %s "checking whether ln -s works... " >&6; }
8898 if test "$LN_S" = "ln -s"; then
8899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8900 printf "%s\n" "yes" >&6; }
8902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8903 printf "%s\n" "no, using $LN_S" >&6; }
8906 # find the maximum length of command line arguments
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8908 printf %s "checking the maximum length of command line arguments... " >&6; }
8909 if test ${lt_cv_sys_max_cmd_len+y}
8911 printf %s "(cached) " >&6
8918 # On DJGPP, this test can blow up pretty badly due to problems in libc
8919 # (any single argument exceeding 2000 bytes causes a buffer overrun
8920 # during glob expansion). Even if it were fixed, the result of this
8921 # check would be larger than it should be.
8922 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8926 # Under GNU Hurd, this test is not required because there is
8927 # no limit to the length of command line arguments.
8928 # Libtool will interpret -1 as no limit whatsoever
8929 lt_cv_sys_max_cmd_len=-1;
8932 cygwin* | mingw* | cegcc*)
8933 # On Win9x/ME, this test blows up -- it succeeds, but takes
8934 # about 5 minutes as the teststring grows exponentially.
8935 # Worse, since 9x/ME are not pre-emptively multitasking,
8936 # you end up with a "frozen" computer, even though with patience
8937 # the test eventually succeeds (with a max line length of 256k).
8938 # Instead, let's just punt: use the minimum linelength reported by
8939 # all of the supported platforms: 8192 (on NT/2K/XP).
8940 lt_cv_sys_max_cmd_len=8192;
8944 # On MiNT this can take a long time and run out of memory.
8945 lt_cv_sys_max_cmd_len=8192;
8949 # On AmigaOS with pdksh, this test takes hours, literally.
8950 # So we just punt and use a minimum line length of 8192.
8951 lt_cv_sys_max_cmd_len=8192;
8954 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8955 # This has been around since 386BSD, at least. Likely further.
8956 if test -x /sbin/sysctl; then
8957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8958 elif test -x /usr/sbin/sysctl; then
8959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8963 # And add a safety zone
8964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8969 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8970 lt_cv_sys_max_cmd_len=196608
8974 # The test takes a long time on OS/2.
8975 lt_cv_sys_max_cmd_len=8192
8979 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8980 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8981 # nice to cause kernel panics so lets avoid the loop below.
8982 # First set a reasonable default.
8983 lt_cv_sys_max_cmd_len=16384
8985 if test -x /sbin/sysconfig; then
8986 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8987 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8992 lt_cv_sys_max_cmd_len=102400
8994 sysv5* | sco5v6* | sysv4.2uw2*)
8995 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8996 if test -n "$kargmax"; then
8997 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8999 lt_cv_sys_max_cmd_len=32768
9003 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9004 if test -n "$lt_cv_sys_max_cmd_len" && \
9005 test undefined != "$lt_cv_sys_max_cmd_len"; then
9006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9009 # Make teststring a little bigger before we do anything with it.
9010 # a 1K string should be a reasonable start.
9011 for i in 1 2 3 4 5 6 7 8; do
9012 teststring=$teststring$teststring
9014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9015 # If test is not a shell built-in, we'll probably end up computing a
9016 # maximum length that is only half of the actual maximum length, but
9018 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9019 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9020 test 17 != "$i" # 1/2 MB should be enough
9023 teststring=$teststring$teststring
9025 # Only check the string length outside the loop.
9026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9028 # Add a significant safety factor because C++ compilers can tack on
9029 # massive amounts of additional arguments before passing them to the
9030 # linker. It appears as though 1/2 is a usable value.
9031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9038 if test -n "$lt_cv_sys_max_cmd_len"; then
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9040 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9043 printf "%s\n" "none" >&6; }
9045 max_cmd_len=$lt_cv_sys_max_cmd_len
9056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9066 # test EBCDIC or ASCII
9067 case `echo X|tr X '\101'` in
9068 A) # ASCII based system
9069 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9070 lt_SP2NL='tr \040 \012'
9071 lt_NL2SP='tr \015\012 \040\040'
9073 *) # EBCDIC based system
9074 lt_SP2NL='tr \100 \n'
9075 lt_NL2SP='tr \r\n \100\100'
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9088 printf %s "checking how to convert $build file names to $host format... " >&6; }
9089 if test ${lt_cv_to_host_file_cmd+y}
9091 printf %s "(cached) " >&6
9096 *-*-mingw* ) # actually msys
9097 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9100 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9102 * ) # otherwise, assume *nix
9103 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9109 *-*-mingw* ) # actually msys
9110 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9113 lt_cv_to_host_file_cmd=func_convert_file_noop
9115 * ) # otherwise, assume *nix
9116 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9120 * ) # unhandled hosts (and "normal" native builds)
9121 lt_cv_to_host_file_cmd=func_convert_file_noop
9127 to_host_file_cmd=$lt_cv_to_host_file_cmd
9128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9129 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9136 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9137 if test ${lt_cv_to_tool_file_cmd+y}
9139 printf %s "(cached) " >&6
9141 #assume ordinary cross tools, or native build.
9142 lt_cv_to_tool_file_cmd=func_convert_file_noop
9146 *-*-mingw* ) # actually msys
9147 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9155 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9157 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9164 printf %s "checking for $LD option to reload object files... " >&6; }
9165 if test ${lt_cv_ld_reload_flag+y}
9167 printf %s "(cached) " >&6
9169 lt_cv_ld_reload_flag='-r'
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9172 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9173 reload_flag=$lt_cv_ld_reload_flag
9174 case $reload_flag in
9176 *) reload_flag=" $reload_flag" ;;
9178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9180 cygwin* | mingw* | pw32* | cegcc*)
9181 if test yes != "$GCC"; then
9186 if test yes = "$GCC"; then
9187 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9202 if test -n "$ac_tool_prefix"; then
9203 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9204 set dummy ${ac_tool_prefix}file; ac_word=$2
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 printf %s "checking for $ac_word... " >&6; }
9207 if test ${ac_cv_prog_FILECMD+y}
9209 printf %s "(cached) " >&6
9211 if test -n "$FILECMD"; then
9212 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218 case $as_dir in #(((
9221 *) as_dir=$as_dir/ ;;
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9225 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9235 FILECMD=$ac_cv_prog_FILECMD
9236 if test -n "$FILECMD"; then
9237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9238 printf "%s\n" "$FILECMD" >&6; }
9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241 printf "%s\n" "no" >&6; }
9246 if test -z "$ac_cv_prog_FILECMD"; then
9247 ac_ct_FILECMD=$FILECMD
9248 # Extract the first word of "file", so it can be a program name with args.
9249 set dummy file; ac_word=$2
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 printf %s "checking for $ac_word... " >&6; }
9252 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9254 printf %s "(cached) " >&6
9256 if test -n "$ac_ct_FILECMD"; then
9257 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 case $as_dir in #(((
9266 *) as_dir=$as_dir/ ;;
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9270 ac_cv_prog_ac_ct_FILECMD="file"
9271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9280 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9281 if test -n "$ac_ct_FILECMD"; then
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9283 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 printf "%s\n" "no" >&6; }
9289 if test "x$ac_ct_FILECMD" = x; then
9292 case $cross_compiling:$ac_tool_warned in
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9296 ac_tool_warned=yes ;;
9298 FILECMD=$ac_ct_FILECMD
9301 FILECMD="$ac_cv_prog_FILECMD"
9310 if test -n "$ac_tool_prefix"; then
9311 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9312 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 printf %s "checking for $ac_word... " >&6; }
9315 if test ${ac_cv_prog_OBJDUMP+y}
9317 printf %s "(cached) " >&6
9319 if test -n "$OBJDUMP"; then
9320 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9326 case $as_dir in #(((
9329 *) as_dir=$as_dir/ ;;
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9333 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9343 OBJDUMP=$ac_cv_prog_OBJDUMP
9344 if test -n "$OBJDUMP"; then
9345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9346 printf "%s\n" "$OBJDUMP" >&6; }
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349 printf "%s\n" "no" >&6; }
9354 if test -z "$ac_cv_prog_OBJDUMP"; then
9355 ac_ct_OBJDUMP=$OBJDUMP
9356 # Extract the first word of "objdump", so it can be a program name with args.
9357 set dummy objdump; ac_word=$2
9358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9359 printf %s "checking for $ac_word... " >&6; }
9360 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9362 printf %s "(cached) " >&6
9364 if test -n "$ac_ct_OBJDUMP"; then
9365 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371 case $as_dir in #(((
9374 *) as_dir=$as_dir/ ;;
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9378 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9388 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9389 if test -n "$ac_ct_OBJDUMP"; then
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9391 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 printf "%s\n" "no" >&6; }
9397 if test "x$ac_ct_OBJDUMP" = x; then
9400 case $cross_compiling:$ac_tool_warned in
9402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9404 ac_tool_warned=yes ;;
9406 OBJDUMP=$ac_ct_OBJDUMP
9409 OBJDUMP="$ac_cv_prog_OBJDUMP"
9412 test -z "$OBJDUMP" && OBJDUMP=objdump
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9423 printf %s "checking how to recognize dependent libraries... " >&6; }
9424 if test ${lt_cv_deplibs_check_method+y}
9426 printf %s "(cached) " >&6
9428 lt_cv_file_magic_cmd='$MAGIC_CMD'
9429 lt_cv_file_magic_test_file=
9430 lt_cv_deplibs_check_method='unknown'
9431 # Need to set the preceding variable on all platforms that support
9432 # interlibrary dependencies.
9433 # 'none' -- dependencies not supported.
9434 # 'unknown' -- same as none, but documents that we really don't know.
9435 # 'pass_all' -- all dependencies passed with no checks.
9436 # 'test_compile' -- check by making test program.
9437 # 'file_magic [[regex]]' -- check by looking for files in library path
9438 # that responds to the $file_magic_cmd with a given extended regex.
9439 # If you have 'file' or equivalent on your system and you're not sure
9440 # whether 'pass_all' will *always* work, you probably want this one.
9444 lt_cv_deplibs_check_method=pass_all
9448 lt_cv_deplibs_check_method=pass_all
9452 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9453 lt_cv_file_magic_cmd='$FILECMD -L'
9454 lt_cv_file_magic_test_file=/shlib/libc.so
9458 # func_win32_libid is a shell function defined in ltmain.sh
9459 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9460 lt_cv_file_magic_cmd='func_win32_libid'
9464 # Base MSYS/MinGW do not provide the 'file' command needed by
9465 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9466 # unless we find 'file', for example because we are cross-compiling.
9467 if ( file / ) >/dev/null 2>&1; then
9468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9469 lt_cv_file_magic_cmd='func_win32_libid'
9471 # Keep this pattern in sync with the one in func_win32_libid.
9472 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9473 lt_cv_file_magic_cmd='$OBJDUMP -f'
9478 # use the weaker test based on 'objdump'. See mingw*.
9479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9480 lt_cv_file_magic_cmd='$OBJDUMP -f'
9483 darwin* | rhapsody*)
9484 lt_cv_deplibs_check_method=pass_all
9487 freebsd* | dragonfly* | midnightbsd*)
9488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9491 # Not sure whether the presence of OpenBSD here was a mistake.
9492 # Let's accept both of them until this is cleared up.
9493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9494 lt_cv_file_magic_cmd=$FILECMD
9495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9499 lt_cv_deplibs_check_method=pass_all
9504 lt_cv_deplibs_check_method=pass_all
9507 hpux10.20* | hpux11*)
9508 lt_cv_file_magic_cmd=$FILECMD
9511 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9512 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9515 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]'
9516 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9520 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9526 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9530 irix5* | irix6* | nonstopux*)
9532 *-32|*"-32 ") libmagic=32-bit;;
9533 *-n32|*"-n32 ") libmagic=N32;;
9534 *-64|*"-64 ") libmagic=64-bit;;
9535 *) libmagic=never-match;;
9537 lt_cv_deplibs_check_method=pass_all
9540 # This must be glibc/ELF.
9541 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9542 lt_cv_deplibs_check_method=pass_all
9545 netbsd* | netbsdelf*-gnu)
9546 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9555 lt_cv_file_magic_cmd=$FILECMD
9556 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9560 lt_cv_deplibs_check_method=pass_all
9564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9565 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9567 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9571 osf3* | osf4* | osf5*)
9572 lt_cv_deplibs_check_method=pass_all
9576 lt_cv_deplibs_check_method=pass_all
9580 lt_cv_deplibs_check_method=pass_all
9583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9584 lt_cv_deplibs_check_method=pass_all
9588 case $host_vendor in
9590 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]'
9591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9594 lt_cv_deplibs_check_method=pass_all
9597 lt_cv_file_magic_cmd='/bin/file'
9598 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9601 lt_cv_file_magic_cmd='/bin/file'
9602 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9603 lt_cv_file_magic_test_file=/lib/libc.so
9606 lt_cv_deplibs_check_method=pass_all
9609 lt_cv_deplibs_check_method=pass_all
9615 lt_cv_deplibs_check_method=pass_all
9618 lt_cv_deplibs_check_method=pass_all
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9624 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9628 if test "$build" = "$host"; then
9631 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9634 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9640 file_magic_cmd=$lt_cv_file_magic_cmd
9641 deplibs_check_method=$lt_cv_deplibs_check_method
9642 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9665 if test -n "$ac_tool_prefix"; then
9666 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9667 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 printf %s "checking for $ac_word... " >&6; }
9670 if test ${ac_cv_prog_DLLTOOL+y}
9672 printf %s "(cached) " >&6
9674 if test -n "$DLLTOOL"; then
9675 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681 case $as_dir in #(((
9684 *) as_dir=$as_dir/ ;;
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9698 DLLTOOL=$ac_cv_prog_DLLTOOL
9699 if test -n "$DLLTOOL"; then
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9701 printf "%s\n" "$DLLTOOL" >&6; }
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 printf "%s\n" "no" >&6; }
9709 if test -z "$ac_cv_prog_DLLTOOL"; then
9710 ac_ct_DLLTOOL=$DLLTOOL
9711 # Extract the first word of "dlltool", so it can be a program name with args.
9712 set dummy dlltool; ac_word=$2
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 printf %s "checking for $ac_word... " >&6; }
9715 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9717 printf %s "(cached) " >&6
9719 if test -n "$ac_ct_DLLTOOL"; then
9720 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 case $as_dir in #(((
9729 *) as_dir=$as_dir/ ;;
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9733 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9743 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9744 if test -n "$ac_ct_DLLTOOL"; then
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9746 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 printf "%s\n" "no" >&6; }
9752 if test "x$ac_ct_DLLTOOL" = x; then
9755 case $cross_compiling:$ac_tool_warned in
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9758 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9759 ac_tool_warned=yes ;;
9761 DLLTOOL=$ac_ct_DLLTOOL
9764 DLLTOOL="$ac_cv_prog_DLLTOOL"
9767 test -z "$DLLTOOL" && DLLTOOL=dlltool
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9779 printf %s "checking how to associate runtime and link libraries... " >&6; }
9780 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9782 printf %s "(cached) " >&6
9784 lt_cv_sharedlib_from_linklib_cmd='unknown'
9787 cygwin* | mingw* | pw32* | cegcc*)
9788 # two different shell functions defined in ltmain.sh;
9789 # decide which one to use based on capabilities of $DLLTOOL
9790 case `$DLLTOOL --help 2>&1` in
9791 *--identify-strict*)
9792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9800 # fallback: assume linklib IS sharedlib
9801 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9807 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9808 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9809 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9817 if test -n "$ac_tool_prefix"; then
9820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9823 printf %s "checking for $ac_word... " >&6; }
9824 if test ${ac_cv_prog_AR+y}
9826 printf %s "(cached) " >&6
9828 if test -n "$AR"; then
9829 ac_cv_prog_AR="$AR" # Let the user override the test.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 case $as_dir in #(((
9838 *) as_dir=$as_dir/ ;;
9840 for ac_exec_ext in '' $ac_executable_extensions; do
9841 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9842 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9853 if test -n "$AR"; then
9854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9855 printf "%s\n" "$AR" >&6; }
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 printf "%s\n" "no" >&6; }
9862 test -n "$AR" && break
9865 if test -z "$AR"; then
9869 # Extract the first word of "$ac_prog", so it can be a program name with args.
9870 set dummy $ac_prog; ac_word=$2
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9872 printf %s "checking for $ac_word... " >&6; }
9873 if test ${ac_cv_prog_ac_ct_AR+y}
9875 printf %s "(cached) " >&6
9877 if test -n "$ac_ct_AR"; then
9878 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 case $as_dir in #(((
9887 *) as_dir=$as_dir/ ;;
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9891 ac_cv_prog_ac_ct_AR="$ac_prog"
9892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9901 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9902 if test -n "$ac_ct_AR"; then
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9904 printf "%s\n" "$ac_ct_AR" >&6; }
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907 printf "%s\n" "no" >&6; }
9911 test -n "$ac_ct_AR" && break
9914 if test "x$ac_ct_AR" = x; then
9917 case $cross_compiling:$ac_tool_warned in
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9921 ac_tool_warned=yes ;;
9934 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9935 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9936 # higher priority because thats what people were doing historically (setting
9937 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9938 # variable obsoleted/removed.
9940 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9941 lt_ar_flags=$AR_FLAGS
9948 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9949 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9957 printf %s "checking for archiver @FILE support... " >&6; }
9958 if test ${lt_cv_ar_at_file+y}
9960 printf %s "(cached) " >&6
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9974 if ac_fn_c_try_compile "$LINENO"
9976 echo conftest.$ac_objext > conftest.lst
9977 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9979 (eval $lt_ar_try) 2>&5
9981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9982 test $ac_status = 0; }
9983 if test 0 -eq "$ac_status"; then
9984 # Ensure the archiver fails upon bogus file names.
9985 rm -f conftest.$ac_objext libconftest.a
9986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9987 (eval $lt_ar_try) 2>&5
9989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9990 test $ac_status = 0; }
9991 if test 0 -ne "$ac_status"; then
9995 rm -f conftest.* libconftest.a
9998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10002 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10004 if test no = "$lt_cv_ar_at_file"; then
10005 archiver_list_spec=
10007 archiver_list_spec=$lt_cv_ar_at_file
10016 if test -n "$ac_tool_prefix"; then
10017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10018 set dummy ${ac_tool_prefix}strip; ac_word=$2
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10020 printf %s "checking for $ac_word... " >&6; }
10021 if test ${ac_cv_prog_STRIP+y}
10023 printf %s "(cached) " >&6
10025 if test -n "$STRIP"; then
10026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10032 case $as_dir in #(((
10035 *) as_dir=$as_dir/ ;;
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10049 STRIP=$ac_cv_prog_STRIP
10050 if test -n "$STRIP"; then
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10052 printf "%s\n" "$STRIP" >&6; }
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 printf "%s\n" "no" >&6; }
10060 if test -z "$ac_cv_prog_STRIP"; then
10062 # Extract the first word of "strip", so it can be a program name with args.
10063 set dummy strip; ac_word=$2
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10065 printf %s "checking for $ac_word... " >&6; }
10066 if test ${ac_cv_prog_ac_ct_STRIP+y}
10068 printf %s "(cached) " >&6
10070 if test -n "$ac_ct_STRIP"; then
10071 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10074 for as_dir in $PATH
10077 case $as_dir in #(((
10080 *) as_dir=$as_dir/ ;;
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_ac_ct_STRIP="strip"
10085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10095 if test -n "$ac_ct_STRIP"; then
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10097 printf "%s\n" "$ac_ct_STRIP" >&6; }
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 printf "%s\n" "no" >&6; }
10103 if test "x$ac_ct_STRIP" = x; then
10106 case $cross_compiling:$ac_tool_warned in
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110 ac_tool_warned=yes ;;
10115 STRIP="$ac_cv_prog_STRIP"
10118 test -z "$STRIP" && STRIP=:
10125 if test -n "$ac_tool_prefix"; then
10126 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 printf %s "checking for $ac_word... " >&6; }
10130 if test ${ac_cv_prog_RANLIB+y}
10132 printf %s "(cached) " >&6
10134 if test -n "$RANLIB"; then
10135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10141 case $as_dir in #(((
10144 *) as_dir=$as_dir/ ;;
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10148 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10158 RANLIB=$ac_cv_prog_RANLIB
10159 if test -n "$RANLIB"; then
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10161 printf "%s\n" "$RANLIB" >&6; }
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 printf "%s\n" "no" >&6; }
10169 if test -z "$ac_cv_prog_RANLIB"; then
10170 ac_ct_RANLIB=$RANLIB
10171 # Extract the first word of "ranlib", so it can be a program name with args.
10172 set dummy ranlib; ac_word=$2
10173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174 printf %s "checking for $ac_word... " >&6; }
10175 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10177 printf %s "(cached) " >&6
10179 if test -n "$ac_ct_RANLIB"; then
10180 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183 for as_dir in $PATH
10186 case $as_dir in #(((
10189 *) as_dir=$as_dir/ ;;
10191 for ac_exec_ext in '' $ac_executable_extensions; do
10192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10193 ac_cv_prog_ac_ct_RANLIB="ranlib"
10194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10204 if test -n "$ac_ct_RANLIB"; then
10205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10206 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209 printf "%s\n" "no" >&6; }
10212 if test "x$ac_ct_RANLIB" = x; then
10215 case $cross_compiling:$ac_tool_warned in
10217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10218 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10219 ac_tool_warned=yes ;;
10221 RANLIB=$ac_ct_RANLIB
10224 RANLIB="$ac_cv_prog_RANLIB"
10227 test -z "$RANLIB" && RANLIB=:
10234 # Determine commands to create old-style static archives.
10235 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10236 old_postinstall_cmds='chmod 644 $oldlib'
10237 old_postuninstall_cmds=
10239 if test -n "$RANLIB"; then
10241 bitrig* | openbsd*)
10242 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10248 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10253 lock_old_archive_extraction=yes ;;
10255 lock_old_archive_extraction=no ;;
10296 # If no C compiler was specified, use CC.
10299 # If no C compiler flags were specified, use CFLAGS.
10300 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10302 # Allow CC to be a program name with arguments.
10306 # Check for command to grab the raw symbol name followed by C symbol from nm.
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10308 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10309 if test ${lt_cv_sys_global_symbol_pipe+y}
10311 printf %s "(cached) " >&6
10314 # These are sane defaults that work on at least a few old systems.
10315 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10317 # Character class describing NM global symbol codes.
10318 symcode='[BCDEGRST]'
10320 # Regexp to match symbols that can be accessed directly from C.
10321 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10323 # Define system-specific variables.
10328 cygwin* | mingw* | pw32* | cegcc*)
10329 symcode='[ABCDGISTW]'
10332 if test ia64 = "$host_cpu"; then
10333 symcode='[ABCDEGRST]'
10336 irix* | nonstopux*)
10337 symcode='[BCDEGRST]'
10340 symcode='[BCDEGQRST]'
10351 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10359 # If we're using GNU nm, then use its standard symbol codes.
10360 case `$NM -V 2>&1` in
10361 *GNU* | *'with BFD'*)
10362 symcode='[ABCDGIRSTW]' ;;
10365 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10366 # Gets list of data symbols to import.
10367 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10368 # Adjust the below global symbol transforms to fixup imported variables.
10369 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10370 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10371 lt_c_name_lib_hook="\
10372 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10373 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10375 # Disable hooks by default.
10376 lt_cv_sys_global_symbol_to_import=
10379 lt_c_name_lib_hook=
10382 # Transform an extracted symbol line into a proper C declaration.
10383 # Some systems (esp. on ia64) link data and code symbols differently,
10384 # so use this general approach.
10385 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10387 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10388 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10390 # Transform an extracted symbol line into symbol name and symbol address
10391 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10393 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10394 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10396 # Transform an extracted symbol line into symbol name with lib prefix and
10398 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10399 $lt_c_name_lib_hook\
10400 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10401 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10402 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10404 # Handle CRLF in mingw tool chain
10408 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10412 # Try without a prefix underscore, then with it.
10413 for ac_symprfx in "" "_"; do
10415 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10416 symxfrm="\\1 $ac_symprfx\\2 \\2"
10418 # Write the raw and C identifiers.
10419 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10420 # Fake it for dumpbin and say T for any non-static function,
10421 # D for any global variable and I for any imported variable.
10422 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10423 # which start with @ or ?.
10424 lt_cv_sys_global_symbol_pipe="$AWK '"\
10425 " {last_section=section; section=\$ 3};"\
10426 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10427 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10428 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10429 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10430 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10431 " \$ 0!~/External *\|/{next};"\
10432 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10433 " {if(hide[section]) next};"\
10434 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10435 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10436 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10437 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10438 " ' prfx=^$ac_symprfx"
10440 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10442 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10444 # Check to see that the pipe works correctly.
10448 cat > conftest.$ac_ext <<_LT_EOF
10453 void nm_test_func(void);
10454 void nm_test_func(void){}
10458 int main(){nm_test_var='a';nm_test_func();return(0);}
10461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10462 (eval $ac_compile) 2>&5
10464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10465 test $ac_status = 0; }; then
10466 # Now try to grab the symbols.
10468 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10469 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10470 # Try sorting and uniquifying the output.
10471 if sort "$nlist" | uniq > "$nlist"T; then
10472 mv -f "$nlist"T "$nlist"
10477 # Make sure that we snagged all the symbols we need.
10478 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10479 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10480 cat <<_LT_EOF > conftest.$ac_ext
10481 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10482 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10483 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10484 relocations are performed -- see ld's documentation on pseudo-relocs. */
10485 # define LT_DLSYM_CONST
10486 #elif defined __osf__
10487 /* This system does not cope well with relocations in const data. */
10488 # define LT_DLSYM_CONST
10490 # define LT_DLSYM_CONST const
10498 # Now generate the symbol file.
10499 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10501 cat <<_LT_EOF >> conftest.$ac_ext
10503 /* The mapping between symbol names and symbols. */
10504 LT_DLSYM_CONST struct {
10508 lt__PROGRAM__LTX_preloaded_symbols[] =
10510 { "@PROGRAM@", (void *) 0 },
10512 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10513 cat <<\_LT_EOF >> conftest.$ac_ext
10517 /* This works around a problem in FreeBSD linker */
10518 #ifdef FREEBSD_WORKAROUND
10519 static const void *lt_preloaded_setup() {
10520 return lt__PROGRAM__LTX_preloaded_symbols;
10528 # Now try linking the two files.
10529 mv conftest.$ac_objext conftstm.$ac_objext
10530 lt_globsym_save_LIBS=$LIBS
10531 lt_globsym_save_CFLAGS=$CFLAGS
10532 LIBS=conftstm.$ac_objext
10533 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10535 (eval $ac_link) 2>&5
10537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10538 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10541 LIBS=$lt_globsym_save_LIBS
10542 CFLAGS=$lt_globsym_save_CFLAGS
10544 echo "cannot find nm_test_func in $nlist" >&5
10547 echo "cannot find nm_test_var in $nlist" >&5
10550 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10553 echo "$progname: failed program was:" >&5
10554 cat conftest.$ac_ext >&5
10556 rm -rf conftest* conftst*
10558 # Do not use the global_symbol_pipe unless it works.
10559 if test yes = "$pipe_works"; then
10562 lt_cv_sys_global_symbol_pipe=
10568 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10569 lt_cv_sys_global_symbol_to_cdecl=
10571 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10573 printf "%s\n" "failed" >&6; }
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10576 printf "%s\n" "ok" >&6; }
10579 # Response file support.
10580 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10581 nm_file_list_spec='@'
10582 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10583 nm_file_list_spec='@'
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10623 printf %s "checking for sysroot... " >&6; }
10625 # Check whether --with-sysroot was given.
10626 if test ${with_sysroot+y}
10628 withval=$with_sysroot;
10635 case $with_sysroot in #(
10637 if test yes = "$GCC"; then
10638 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10642 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10648 printf "%s\n" "$with_sysroot" >&6; }
10649 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10654 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10661 printf %s "checking for a working dd... " >&6; }
10662 if test ${ac_cv_path_lt_DD+y}
10664 printf %s "(cached) " >&6
10666 printf 0123456789abcdef0123456789abcdef >conftest.i
10667 cat conftest.i conftest.i >conftest2.i
10669 if test -z "$lt_DD"; then
10670 ac_path_lt_DD_found=false
10671 # Loop through the user's path and test for each of PROGNAME-LIST
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673 for as_dir in $PATH
10676 case $as_dir in #(((
10679 *) as_dir=$as_dir/ ;;
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10685 as_fn_executable_p "$ac_path_lt_DD" || continue
10686 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10687 cmp -s conftest.i conftest.out \
10688 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10690 $ac_path_lt_DD_found && break 3
10695 if test -z "$ac_cv_path_lt_DD"; then
10699 ac_cv_path_lt_DD=$lt_DD
10702 rm -f conftest.i conftest2.i conftest.out
10704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10705 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10709 printf %s "checking how to truncate binary pipes... " >&6; }
10710 if test ${lt_cv_truncate_bin+y}
10712 printf %s "(cached) " >&6
10714 printf 0123456789abcdef0123456789abcdef >conftest.i
10715 cat conftest.i conftest.i >conftest2.i
10716 lt_cv_truncate_bin=
10717 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10718 cmp -s conftest.i conftest.out \
10719 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10721 rm -f conftest.i conftest2.i conftest.out
10722 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10725 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10733 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10734 func_cc_basename ()
10736 for cc_temp in $*""; do
10738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10744 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10747 # Check whether --enable-libtool-lock was given.
10748 if test ${enable_libtool_lock+y}
10750 enableval=$enable_libtool_lock;
10753 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10755 # Some flags need to be propagated to the compiler or linker for good
10759 # Find out what ABI is being produced by ac_compile, and set mode
10760 # options accordingly.
10761 echo 'int i;' > conftest.$ac_ext
10762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10763 (eval $ac_compile) 2>&5
10765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10766 test $ac_status = 0; }; then
10767 case `$FILECMD conftest.$ac_objext` in
10779 # Find out what ABI is being produced by ac_compile, and set linker
10780 # options accordingly.
10781 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10783 (eval $ac_compile) 2>&5
10785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10786 test $ac_status = 0; }; then
10787 if test yes = "$lt_cv_prog_gnu_ld"; then
10788 case `$FILECMD conftest.$ac_objext` in
10790 LD="${LD-ld} -melf32bsmip"
10793 LD="${LD-ld} -melf32bmipn32"
10796 LD="${LD-ld} -melf64bmip"
10800 case `$FILECMD conftest.$ac_objext` in
10817 # Find out what ABI is being produced by ac_compile, and set linker
10818 # options accordingly.
10819 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10821 (eval $ac_compile) 2>&5
10823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; }; then
10826 case `$FILECMD conftest.$ac_objext` in
10834 case `$FILECMD conftest.$ac_objext` in
10836 emul="${emul}btsmip"
10839 emul="${emul}ltsmip"
10842 case `$FILECMD conftest.$ac_objext` in
10847 LD="${LD-ld} -m $emul"
10852 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10853 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10854 # Find out what ABI is being produced by ac_compile, and set linker
10855 # options accordingly. Note that the listed cases only cover the
10856 # situations where additional linker options are needed (such as when
10857 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10858 # vice versa); the common cases where no linker options are needed do
10859 # not appear in the list.
10860 echo 'int i;' > conftest.$ac_ext
10861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10862 (eval $ac_compile) 2>&5
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10865 test $ac_status = 0; }; then
10866 case `$FILECMD conftest.o` in
10869 x86_64-*kfreebsd*-gnu)
10870 LD="${LD-ld} -m elf_i386_fbsd"
10873 case `$FILECMD conftest.o` in
10875 LD="${LD-ld} -m elf32_x86_64"
10878 LD="${LD-ld} -m elf_i386"
10882 powerpc64le-*linux*)
10883 LD="${LD-ld} -m elf32lppclinux"
10886 LD="${LD-ld} -m elf32ppclinux"
10889 LD="${LD-ld} -m elf_s390"
10892 LD="${LD-ld} -m elf32_sparc"
10898 x86_64-*kfreebsd*-gnu)
10899 LD="${LD-ld} -m elf_x86_64_fbsd"
10902 LD="${LD-ld} -m elf_x86_64"
10905 LD="${LD-ld} -m elf64lppc"
10908 LD="${LD-ld} -m elf64ppc"
10910 s390*-*linux*|s390*-*tpf*)
10911 LD="${LD-ld} -m elf64_s390"
10914 LD="${LD-ld} -m elf64_sparc"
10924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10925 SAVE_CFLAGS=$CFLAGS
10926 CFLAGS="$CFLAGS -belf"
10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10928 printf %s "checking whether the C compiler needs -belf... " >&6; }
10929 if test ${lt_cv_cc_needs_belf+y}
10931 printf %s "(cached) " >&6
10934 ac_cpp='$CPP $CPPFLAGS'
10935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10950 if ac_fn_c_try_link "$LINENO"
10952 lt_cv_cc_needs_belf=yes
10954 lt_cv_cc_needs_belf=no
10956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10957 conftest$ac_exeext conftest.$ac_ext
10959 ac_cpp='$CPP $CPPFLAGS'
10960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10966 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10967 if test yes != "$lt_cv_cc_needs_belf"; then
10968 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10969 CFLAGS=$SAVE_CFLAGS
10973 # Find out what ABI is being produced by ac_compile, and set linker
10974 # options accordingly.
10975 echo 'int i;' > conftest.$ac_ext
10976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10977 (eval $ac_compile) 2>&5
10979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; }; then
10981 case `$FILECMD conftest.o` in
10983 case $lt_cv_prog_gnu_ld in
10986 i?86-*-solaris*|x86_64-*-solaris*)
10987 LD="${LD-ld} -m elf_x86_64"
10990 LD="${LD-ld} -m elf64_sparc"
10993 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10994 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10999 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11011 need_locks=$enable_libtool_lock
11013 if test -n "$ac_tool_prefix"; then
11014 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}mt; ac_word=$2
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017 printf %s "checking for $ac_word... " >&6; }
11018 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11020 printf %s "(cached) " >&6
11022 if test -n "$MANIFEST_TOOL"; then
11023 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11026 for as_dir in $PATH
11029 case $as_dir in #(((
11032 *) as_dir=$as_dir/ ;;
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11036 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11046 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11047 if test -n "$MANIFEST_TOOL"; then
11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11049 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052 printf "%s\n" "no" >&6; }
11057 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11058 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11059 # Extract the first word of "mt", so it can be a program name with args.
11060 set dummy mt; ac_word=$2
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 printf %s "checking for $ac_word... " >&6; }
11063 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11065 printf %s "(cached) " >&6
11067 if test -n "$ac_ct_MANIFEST_TOOL"; then
11068 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11074 case $as_dir in #(((
11077 *) as_dir=$as_dir/ ;;
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11091 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11092 if test -n "$ac_ct_MANIFEST_TOOL"; then
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11094 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11097 printf "%s\n" "no" >&6; }
11100 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11103 case $cross_compiling:$ac_tool_warned in
11105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11106 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11107 ac_tool_warned=yes ;;
11109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11115 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11117 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11118 if test ${lt_cv_path_mainfest_tool+y}
11120 printf %s "(cached) " >&6
11122 lt_cv_path_mainfest_tool=no
11123 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11124 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11125 cat conftest.err >&5
11126 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11127 lt_cv_path_mainfest_tool=yes
11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11132 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11133 if test yes != "$lt_cv_path_mainfest_tool"; then
11143 rhapsody* | darwin*)
11144 if test -n "$ac_tool_prefix"; then
11145 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11146 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11148 printf %s "checking for $ac_word... " >&6; }
11149 if test ${ac_cv_prog_DSYMUTIL+y}
11151 printf %s "(cached) " >&6
11153 if test -n "$DSYMUTIL"; then
11154 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11157 for as_dir in $PATH
11160 case $as_dir in #(((
11163 *) as_dir=$as_dir/ ;;
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11177 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11178 if test -n "$DSYMUTIL"; then
11179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11180 printf "%s\n" "$DSYMUTIL" >&6; }
11182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 printf "%s\n" "no" >&6; }
11188 if test -z "$ac_cv_prog_DSYMUTIL"; then
11189 ac_ct_DSYMUTIL=$DSYMUTIL
11190 # Extract the first word of "dsymutil", so it can be a program name with args.
11191 set dummy dsymutil; ac_word=$2
11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193 printf %s "checking for $ac_word... " >&6; }
11194 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11196 printf %s "(cached) " >&6
11198 if test -n "$ac_ct_DSYMUTIL"; then
11199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11205 case $as_dir in #(((
11208 *) as_dir=$as_dir/ ;;
11210 for ac_exec_ext in '' $ac_executable_extensions; do
11211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11223 if test -n "$ac_ct_DSYMUTIL"; then
11224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11225 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228 printf "%s\n" "no" >&6; }
11231 if test "x$ac_ct_DSYMUTIL" = x; then
11234 case $cross_compiling:$ac_tool_warned in
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11238 ac_tool_warned=yes ;;
11240 DSYMUTIL=$ac_ct_DSYMUTIL
11243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11246 if test -n "$ac_tool_prefix"; then
11247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11248 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250 printf %s "checking for $ac_word... " >&6; }
11251 if test ${ac_cv_prog_NMEDIT+y}
11253 printf %s "(cached) " >&6
11255 if test -n "$NMEDIT"; then
11256 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259 for as_dir in $PATH
11262 case $as_dir in #(((
11265 *) as_dir=$as_dir/ ;;
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11279 NMEDIT=$ac_cv_prog_NMEDIT
11280 if test -n "$NMEDIT"; then
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11282 printf "%s\n" "$NMEDIT" >&6; }
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 printf "%s\n" "no" >&6; }
11290 if test -z "$ac_cv_prog_NMEDIT"; then
11291 ac_ct_NMEDIT=$NMEDIT
11292 # Extract the first word of "nmedit", so it can be a program name with args.
11293 set dummy nmedit; ac_word=$2
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11295 printf %s "checking for $ac_word... " >&6; }
11296 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11298 printf %s "(cached) " >&6
11300 if test -n "$ac_ct_NMEDIT"; then
11301 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 case $as_dir in #(((
11310 *) as_dir=$as_dir/ ;;
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11324 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11325 if test -n "$ac_ct_NMEDIT"; then
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11327 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 printf "%s\n" "no" >&6; }
11333 if test "x$ac_ct_NMEDIT" = x; then
11336 case $cross_compiling:$ac_tool_warned in
11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11340 ac_tool_warned=yes ;;
11342 NMEDIT=$ac_ct_NMEDIT
11345 NMEDIT="$ac_cv_prog_NMEDIT"
11348 if test -n "$ac_tool_prefix"; then
11349 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11350 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11352 printf %s "checking for $ac_word... " >&6; }
11353 if test ${ac_cv_prog_LIPO+y}
11355 printf %s "(cached) " >&6
11357 if test -n "$LIPO"; then
11358 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361 for as_dir in $PATH
11364 case $as_dir in #(((
11367 *) as_dir=$as_dir/ ;;
11369 for ac_exec_ext in '' $ac_executable_extensions; do
11370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11371 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11381 LIPO=$ac_cv_prog_LIPO
11382 if test -n "$LIPO"; then
11383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11384 printf "%s\n" "$LIPO" >&6; }
11386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 printf "%s\n" "no" >&6; }
11392 if test -z "$ac_cv_prog_LIPO"; then
11394 # Extract the first word of "lipo", so it can be a program name with args.
11395 set dummy lipo; ac_word=$2
11396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11397 printf %s "checking for $ac_word... " >&6; }
11398 if test ${ac_cv_prog_ac_ct_LIPO+y}
11400 printf %s "(cached) " >&6
11402 if test -n "$ac_ct_LIPO"; then
11403 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 case $as_dir in #(((
11412 *) as_dir=$as_dir/ ;;
11414 for ac_exec_ext in '' $ac_executable_extensions; do
11415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11416 ac_cv_prog_ac_ct_LIPO="lipo"
11417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11426 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11427 if test -n "$ac_ct_LIPO"; then
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11429 printf "%s\n" "$ac_ct_LIPO" >&6; }
11431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 printf "%s\n" "no" >&6; }
11435 if test "x$ac_ct_LIPO" = x; then
11438 case $cross_compiling:$ac_tool_warned in
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11441 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11442 ac_tool_warned=yes ;;
11447 LIPO="$ac_cv_prog_LIPO"
11450 if test -n "$ac_tool_prefix"; then
11451 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11452 set dummy ${ac_tool_prefix}otool; ac_word=$2
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 printf %s "checking for $ac_word... " >&6; }
11455 if test ${ac_cv_prog_OTOOL+y}
11457 printf %s "(cached) " >&6
11459 if test -n "$OTOOL"; then
11460 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463 for as_dir in $PATH
11466 case $as_dir in #(((
11469 *) as_dir=$as_dir/ ;;
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11473 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11483 OTOOL=$ac_cv_prog_OTOOL
11484 if test -n "$OTOOL"; then
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11486 printf "%s\n" "$OTOOL" >&6; }
11488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11489 printf "%s\n" "no" >&6; }
11494 if test -z "$ac_cv_prog_OTOOL"; then
11496 # Extract the first word of "otool", so it can be a program name with args.
11497 set dummy otool; ac_word=$2
11498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11499 printf %s "checking for $ac_word... " >&6; }
11500 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11502 printf %s "(cached) " >&6
11504 if test -n "$ac_ct_OTOOL"; then
11505 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11511 case $as_dir in #(((
11514 *) as_dir=$as_dir/ ;;
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11518 ac_cv_prog_ac_ct_OTOOL="otool"
11519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11528 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11529 if test -n "$ac_ct_OTOOL"; then
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11531 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 printf "%s\n" "no" >&6; }
11537 if test "x$ac_ct_OTOOL" = x; then
11540 case $cross_compiling:$ac_tool_warned in
11542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11543 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11544 ac_tool_warned=yes ;;
11549 OTOOL="$ac_cv_prog_OTOOL"
11552 if test -n "$ac_tool_prefix"; then
11553 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11554 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11556 printf %s "checking for $ac_word... " >&6; }
11557 if test ${ac_cv_prog_OTOOL64+y}
11559 printf %s "(cached) " >&6
11561 if test -n "$OTOOL64"; then
11562 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 case $as_dir in #(((
11571 *) as_dir=$as_dir/ ;;
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11575 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11585 OTOOL64=$ac_cv_prog_OTOOL64
11586 if test -n "$OTOOL64"; then
11587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11588 printf "%s\n" "$OTOOL64" >&6; }
11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591 printf "%s\n" "no" >&6; }
11596 if test -z "$ac_cv_prog_OTOOL64"; then
11597 ac_ct_OTOOL64=$OTOOL64
11598 # Extract the first word of "otool64", so it can be a program name with args.
11599 set dummy otool64; ac_word=$2
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11601 printf %s "checking for $ac_word... " >&6; }
11602 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11604 printf %s "(cached) " >&6
11606 if test -n "$ac_ct_OTOOL64"; then
11607 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11613 case $as_dir in #(((
11616 *) as_dir=$as_dir/ ;;
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11620 ac_cv_prog_ac_ct_OTOOL64="otool64"
11621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11631 if test -n "$ac_ct_OTOOL64"; then
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11633 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 printf "%s\n" "no" >&6; }
11639 if test "x$ac_ct_OTOOL64" = x; then
11642 case $cross_compiling:$ac_tool_warned in
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11645 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11646 ac_tool_warned=yes ;;
11648 OTOOL64=$ac_ct_OTOOL64
11651 OTOOL64="$ac_cv_prog_OTOOL64"
11680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11681 printf %s "checking for -single_module linker flag... " >&6; }
11682 if test ${lt_cv_apple_cc_single_mod+y}
11684 printf %s "(cached) " >&6
11686 lt_cv_apple_cc_single_mod=no
11687 if test -z "$LT_MULTI_MODULE"; then
11688 # By default we will add the -single_module flag. You can override
11689 # by either setting the environment variable LT_MULTI_MODULE
11690 # non-empty at configure time, or by adding -multi_module to the
11692 rm -rf libconftest.dylib*
11693 echo "int foo(void){return 1;}" > conftest.c
11694 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11695 -dynamiclib -Wl,-single_module conftest.c" >&5
11696 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11697 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11699 # If there is a non-empty error log, and "single_module"
11700 # appears in it, assume the flag caused a linker warning
11701 if test -s conftest.err && $GREP single_module conftest.err; then
11702 cat conftest.err >&5
11703 # Otherwise, if the output was created with a 0 exit code from
11704 # the compiler, it worked.
11705 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11706 lt_cv_apple_cc_single_mod=yes
11708 cat conftest.err >&5
11710 rm -rf libconftest.dylib*
11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11715 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11718 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11719 if test ${lt_cv_ld_exported_symbols_list+y}
11721 printf %s "(cached) " >&6
11723 lt_cv_ld_exported_symbols_list=no
11724 save_LDFLAGS=$LDFLAGS
11725 echo "_main" > conftest.sym
11726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11728 /* end confdefs.h. */
11738 if ac_fn_c_try_link "$LINENO"
11740 lt_cv_ld_exported_symbols_list=yes
11742 lt_cv_ld_exported_symbols_list=no
11744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LDFLAGS=$save_LDFLAGS
11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11750 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11753 printf %s "checking for -force_load linker flag... " >&6; }
11754 if test ${lt_cv_ld_force_load+y}
11756 printf %s "(cached) " >&6
11758 lt_cv_ld_force_load=no
11759 cat > conftest.c << _LT_EOF
11760 int forced_loaded() { return 2;}
11762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11764 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11765 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11766 echo "$RANLIB libconftest.a" >&5
11767 $RANLIB libconftest.a 2>&5
11768 cat > conftest.c << _LT_EOF
11769 int main() { return 0;}
11771 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11772 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11774 if test -s conftest.err && $GREP force_load conftest.err; then
11775 cat conftest.err >&5
11776 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11777 lt_cv_ld_force_load=yes
11779 cat conftest.err >&5
11781 rm -f conftest.err libconftest.a conftest conftest.c
11782 rm -rf conftest.dSYM
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11786 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11788 rhapsody* | darwin1.[012])
11789 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11791 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11793 case $MACOSX_DEPLOYMENT_TARGET,$host in
11794 10.[012],*|,*powerpc*-darwin[5-8]*)
11795 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11797 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11801 if test yes = "$lt_cv_apple_cc_single_mod"; then
11802 _lt_dar_single_mod='$single_module'
11804 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11805 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11807 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11809 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11810 _lt_dsymutil='~$DSYMUTIL $lib || :'
11817 # func_munge_path_list VARIABLE PATH
11818 # -----------------------------------
11819 # VARIABLE is name of variable containing _space_ separated list of
11820 # directories to be munged by the contents of PATH, which is string
11823 # string "DIR[ DIR]" will be prepended to VARIABLE
11825 # string "DIR[ DIR]" will be appended to VARIABLE
11826 # "DIRP[:DIRP]::[DIRA:]DIRA"
11827 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11828 # "DIRA[ DIRA]" will be appended to VARIABLE
11830 # VARIABLE will be replaced by "DIR[ DIR]"
11831 func_munge_path_list ()
11837 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11840 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11843 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11844 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11847 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11852 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11854 if test "x$ac_cv_header_dlfcn_h" = xyes
11856 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11871 enable_win32_dll=no
11874 # Check whether --enable-shared was given.
11875 if test ${enable_shared+y}
11877 enableval=$enable_shared; p=${PACKAGE-default}
11879 yes) enable_shared=yes ;;
11880 no) enable_shared=no ;;
11883 # Look at the argument we got. We use all the common list separators.
11884 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11885 for pkg in $enableval; do
11887 if test "X$pkg" = "X$p"; then
11908 # Check whether --with-pic was given.
11909 if test ${with_pic+y}
11911 withval=$with_pic; lt_p=${PACKAGE-default}
11913 yes|no) pic_mode=$withval ;;
11916 # Look at the argument we got. We use all the common list separators.
11917 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11918 for lt_pkg in $withval; do
11920 if test "X$lt_pkg" = "X$lt_p"; then
11938 # Check whether --enable-fast-install was given.
11939 if test ${enable_fast_install+y}
11941 enableval=$enable_fast_install; p=${PACKAGE-default}
11943 yes) enable_fast_install=yes ;;
11944 no) enable_fast_install=no ;;
11946 enable_fast_install=no
11947 # Look at the argument we got. We use all the common list separators.
11948 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11949 for pkg in $enableval; do
11951 if test "X$pkg" = "X$p"; then
11952 enable_fast_install=yes
11959 enable_fast_install=yes
11969 shared_archive_member_spec=
11970 case $host,$enable_shared in
11971 power*-*-aix[5-9]*,yes)
11972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11973 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11975 # Check whether --with-aix-soname was given.
11976 if test ${with_aix_soname+y}
11978 withval=$with_aix_soname; case $withval in
11982 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11985 lt_cv_with_aix_soname=$with_aix_soname
11987 if test ${lt_cv_with_aix_soname+y}
11989 printf %s "(cached) " >&6
11991 lt_cv_with_aix_soname=aix
11994 with_aix_soname=$lt_cv_with_aix_soname
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11998 printf "%s\n" "$with_aix_soname" >&6; }
11999 if test aix != "$with_aix_soname"; then
12000 # For the AIX way of multilib, we name the shared archive member
12001 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12002 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12003 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12004 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12005 if test 64 = "${OBJECT_MODE-32}"; then
12006 shared_archive_member_spec=shr_64
12008 shared_archive_member_spec=shr
12013 with_aix_soname=aix
12026 # This can be used to rebuild libtool when needed
12027 LIBTOOL_DEPS=$ltmain
12029 # Always use our own libtool.
12030 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12061 test -z "$LN_S" && LN_S="ln -s"
12076 if test -n "${ZSH_VERSION+set}"; then
12077 setopt NO_GLOB_SUBST
12080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12081 printf %s "checking for objdir... " >&6; }
12082 if test ${lt_cv_objdir+y}
12084 printf %s "(cached) " >&6
12086 rm -f .libs 2>/dev/null
12087 mkdir .libs 2>/dev/null
12088 if test -d .libs; then
12091 # MS-DOS does not allow filenames that begin with a dot.
12094 rmdir .libs 2>/dev/null
12096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12097 printf "%s\n" "$lt_cv_objdir" >&6; }
12098 objdir=$lt_cv_objdir
12104 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12111 # AIX sometimes has problems with the GCC collect2 program. For some
12112 # reason, if we set the COLLECT_NAMES environment variable, the problems
12113 # vanish in a puff of smoke.
12114 if test set != "${COLLECT_NAMES+set}"; then
12116 export COLLECT_NAMES
12121 # Global variables:
12123 can_build_shared=yes
12125 # All known linkers require a '.a' archive for static linking (except MSVC and
12126 # ICC, which need '.lib').
12129 with_gnu_ld=$lt_cv_prog_gnu_ld
12134 # Set sane defaults for various variables
12135 test -z "$CC" && CC=cc
12136 test -z "$LTCC" && LTCC=$CC
12137 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12138 test -z "$LD" && LD=ld
12139 test -z "$ac_objext" && ac_objext=o
12141 func_cc_basename $compiler
12142 cc_basename=$func_cc_basename_result
12145 # Only perform the check for file, if the check method requires it
12146 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12147 case $deplibs_check_method in
12149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12151 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12152 if test ${lt_cv_path_MAGIC_CMD+y}
12154 printf %s "(cached) " >&6
12158 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12161 lt_save_MAGIC_CMD=$MAGIC_CMD
12162 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12163 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12164 for ac_dir in $ac_dummy; do
12166 test -z "$ac_dir" && ac_dir=.
12167 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12168 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12169 if test -n "$file_magic_test_file"; then
12170 case $deplibs_check_method in
12172 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12173 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12174 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12175 $EGREP "$file_magic_regex" > /dev/null; then
12180 *** Warning: the command libtool uses to detect shared libraries,
12181 *** $file_magic_cmd, produces output that libtool cannot recognize.
12182 *** The result is that libtool may fail to recognize shared libraries
12183 *** as such. This will affect the creation of libtool libraries that
12184 *** depend on shared libraries, but programs linked with such libtool
12185 *** libraries will work regardless of this problem. Nevertheless, you
12186 *** may want to report the problem to your system manager and/or to
12187 *** bug-libtool@gnu.org
12197 MAGIC_CMD=$lt_save_MAGIC_CMD
12202 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12203 if test -n "$MAGIC_CMD"; then
12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12205 printf "%s\n" "$MAGIC_CMD" >&6; }
12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12208 printf "%s\n" "no" >&6; }
12215 if test -z "$lt_cv_path_MAGIC_CMD"; then
12216 if test -n "$ac_tool_prefix"; then
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12218 printf %s "checking for file... " >&6; }
12219 if test ${lt_cv_path_MAGIC_CMD+y}
12221 printf %s "(cached) " >&6
12225 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12228 lt_save_MAGIC_CMD=$MAGIC_CMD
12229 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12230 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12231 for ac_dir in $ac_dummy; do
12233 test -z "$ac_dir" && ac_dir=.
12234 if test -f "$ac_dir/file"; then
12235 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12236 if test -n "$file_magic_test_file"; then
12237 case $deplibs_check_method in
12239 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12240 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12241 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12242 $EGREP "$file_magic_regex" > /dev/null; then
12247 *** Warning: the command libtool uses to detect shared libraries,
12248 *** $file_magic_cmd, produces output that libtool cannot recognize.
12249 *** The result is that libtool may fail to recognize shared libraries
12250 *** as such. This will affect the creation of libtool libraries that
12251 *** depend on shared libraries, but programs linked with such libtool
12252 *** libraries will work regardless of this problem. Nevertheless, you
12253 *** may want to report the problem to your system manager and/or to
12254 *** bug-libtool@gnu.org
12264 MAGIC_CMD=$lt_save_MAGIC_CMD
12269 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12270 if test -n "$MAGIC_CMD"; then
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12272 printf "%s\n" "$MAGIC_CMD" >&6; }
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12275 printf "%s\n" "no" >&6; }
12288 # Use C for the default configuration in the libtool script
12292 ac_cpp='$CPP $CPPFLAGS'
12293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 # Source file extension for C test sources.
12301 # Object file extension for compiled C test sources.
12305 # Code to be used in simple compile tests
12306 lt_simple_compile_test_code="int some_variable = 0;"
12308 # Code to be used in simple link tests
12309 lt_simple_link_test_code='int main(){return(0);}'
12317 # If no C compiler was specified, use CC.
12320 # If no C compiler flags were specified, use CFLAGS.
12321 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12323 # Allow CC to be a program name with arguments.
12326 # Save the default compiler, since it gets overwritten when the other
12327 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12328 compiler_DEFAULT=$CC
12330 # save warnings/boilerplate of simple test code
12331 ac_outfile=conftest.$ac_objext
12332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12334 _lt_compiler_boilerplate=`cat conftest.err`
12337 ac_outfile=conftest.$ac_objext
12338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12340 _lt_linker_boilerplate=`cat conftest.err`
12345 ## There is no encapsulation within the following macros, do not change
12346 ## the running order or otherwise move them around unless you know exactly
12347 ## what you are doing...
12348 if test -n "$compiler"; then
12350 lt_prog_compiler_no_builtin_flag=
12352 if test yes = "$GCC"; then
12353 case $cc_basename in
12355 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12357 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12361 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12362 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12364 printf %s "(cached) " >&6
12366 lt_cv_prog_compiler_rtti_exceptions=no
12367 ac_outfile=conftest.$ac_objext
12368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12369 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12370 # Insert the option either (1) after the last *FLAGS variable, or
12371 # (2) before a word containing "conftest.", or (3) at the end.
12372 # Note that $ac_compile itself does not contain backslashes and begins
12373 # with a dollar sign (not a hyphen), so the echo should work correctly.
12374 # The option is referenced via a variable to avoid confusing sed.
12375 lt_compile=`echo "$ac_compile" | $SED \
12376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12378 -e 's:$: $lt_compiler_flag:'`
12379 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12380 (eval "$lt_compile" 2>conftest.err)
12382 cat conftest.err >&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 if (exit $ac_status) && test -s "$ac_outfile"; then
12385 # The compiler can only warn and ignore the option if not recognized
12386 # So say no if there are warnings other than the usual output.
12387 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12390 lt_cv_prog_compiler_rtti_exceptions=yes
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12397 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12399 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12400 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12412 lt_prog_compiler_wl=
12413 lt_prog_compiler_pic=
12414 lt_prog_compiler_static=
12417 if test yes = "$GCC"; then
12418 lt_prog_compiler_wl='-Wl,'
12419 lt_prog_compiler_static='-static'
12423 # All AIX code is PIC.
12424 if test ia64 = "$host_cpu"; then
12425 # AIX 5 now supports IA64 processor
12426 lt_prog_compiler_static='-Bstatic'
12428 lt_prog_compiler_pic='-fPIC'
12434 # see comment about AmigaOS4 .so support
12435 lt_prog_compiler_pic='-fPIC'
12438 # FIXME: we need at least 68020 code to build shared libraries, but
12439 # adding the '-m68020' flag to GCC prevents building anything better,
12441 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12446 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12447 # PIC is the default for these OSes.
12450 mingw* | cygwin* | pw32* | os2* | cegcc*)
12451 # This hack is so that the source file can tell whether it is being
12452 # built for inclusion in a dll (and should export symbols for example).
12453 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12454 # (--disable-auto-import) libraries
12455 lt_prog_compiler_pic='-DDLL_EXPORT'
12458 lt_prog_compiler_static='$wl-static'
12463 darwin* | rhapsody*)
12464 # PIC is the default on this platform
12465 # Common symbols not allowed in MH_DYLIB files
12466 lt_prog_compiler_pic='-fno-common'
12470 # PIC is the default for Haiku.
12471 # The "-static" flag exists, but is broken.
12472 lt_prog_compiler_static=
12476 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12477 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12478 # sets the default TLS model and affects inlining.
12484 lt_prog_compiler_pic='-fPIC'
12490 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12491 # Instead, we relocate shared libraries at runtime.
12495 # Just because we use GCC doesn't mean we suddenly get shared libraries
12496 # on systems that don't support them.
12497 lt_prog_compiler_can_build_shared=no
12502 # QNX uses GNU C++, but need to define -shared option too, otherwise
12503 # it will coredump.
12504 lt_prog_compiler_pic='-fPIC -shared'
12508 if test -d /usr/nec; then
12509 lt_prog_compiler_pic=-Kconform_pic
12514 lt_prog_compiler_pic='-fPIC'
12518 case $cc_basename in
12519 nvcc*) # Cuda Compiler Driver 2.2
12520 lt_prog_compiler_wl='-Xlinker '
12521 if test -n "$lt_prog_compiler_pic"; then
12522 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12527 # PORTME Check for flag to pass linker flags through the system compiler.
12530 lt_prog_compiler_wl='-Wl,'
12531 if test ia64 = "$host_cpu"; then
12532 # AIX 5 now supports IA64 processor
12533 lt_prog_compiler_static='-Bstatic'
12535 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12539 darwin* | rhapsody*)
12540 # PIC is the default on this platform
12541 # Common symbols not allowed in MH_DYLIB files
12542 lt_prog_compiler_pic='-fno-common'
12543 case $cc_basename in
12545 # NAG Fortran compiler
12546 lt_prog_compiler_wl='-Wl,-Wl,,'
12547 lt_prog_compiler_pic='-PIC'
12548 lt_prog_compiler_static='-Bstatic'
12553 mingw* | cygwin* | pw32* | os2* | cegcc*)
12554 # This hack is so that the source file can tell whether it is being
12555 # built for inclusion in a dll (and should export symbols for example).
12556 lt_prog_compiler_pic='-DDLL_EXPORT'
12559 lt_prog_compiler_static='$wl-static'
12564 hpux9* | hpux10* | hpux11*)
12565 lt_prog_compiler_wl='-Wl,'
12566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12567 # not for PA HP-UX.
12573 lt_prog_compiler_pic='+Z'
12576 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12577 lt_prog_compiler_static='$wl-a ${wl}archive'
12580 irix5* | irix6* | nonstopux*)
12581 lt_prog_compiler_wl='-Wl,'
12582 # PIC (with -KPIC) is the default.
12583 lt_prog_compiler_static='-non_shared'
12586 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12587 case $cc_basename in
12588 # old Intel for x86_64, which still supported -KPIC.
12590 lt_prog_compiler_wl='-Wl,'
12591 lt_prog_compiler_pic='-KPIC'
12592 lt_prog_compiler_static='-static'
12594 # flang / f18. f95 an alias for gfortran or flang on Debian
12595 flang* | f18* | f95*)
12596 lt_prog_compiler_wl='-Wl,'
12597 lt_prog_compiler_pic='-fPIC'
12598 lt_prog_compiler_static='-static'
12600 # icc used to be incompatible with GCC.
12601 # ICC 10 doesn't accept -KPIC any more.
12603 lt_prog_compiler_wl='-Wl,'
12604 lt_prog_compiler_pic='-fPIC'
12605 lt_prog_compiler_static='-static'
12607 # Lahey Fortran 8.1.
12609 lt_prog_compiler_wl='-Wl,'
12610 lt_prog_compiler_pic='--shared'
12611 lt_prog_compiler_static='--static'
12614 # NAG Fortran compiler
12615 lt_prog_compiler_wl='-Wl,-Wl,,'
12616 lt_prog_compiler_pic='-PIC'
12617 lt_prog_compiler_static='-Bstatic'
12620 # Fabrice Bellard et al's Tiny C Compiler
12621 lt_prog_compiler_wl='-Wl,'
12622 lt_prog_compiler_pic='-fPIC'
12623 lt_prog_compiler_static='-static'
12625 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12626 # Portland Group compilers (*not* the Pentium gcc compiler,
12627 # which looks to be a dead project)
12628 lt_prog_compiler_wl='-Wl,'
12629 lt_prog_compiler_pic='-fpic'
12630 lt_prog_compiler_static='-Bstatic'
12633 lt_prog_compiler_wl='-Wl,'
12634 # All Alpha code is PIC.
12635 lt_prog_compiler_static='-non_shared'
12637 xl* | bgxl* | bgf* | mpixl*)
12638 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12639 lt_prog_compiler_wl='-Wl,'
12640 lt_prog_compiler_pic='-qpic'
12641 lt_prog_compiler_static='-qstaticlink'
12644 case `$CC -V 2>&1 | $SED 5q` in
12645 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12646 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12647 lt_prog_compiler_pic='-KPIC'
12648 lt_prog_compiler_static='-Bstatic'
12649 lt_prog_compiler_wl=''
12651 *Sun\ F* | *Sun*Fortran*)
12652 lt_prog_compiler_pic='-KPIC'
12653 lt_prog_compiler_static='-Bstatic'
12654 lt_prog_compiler_wl='-Qoption ld '
12658 lt_prog_compiler_pic='-KPIC'
12659 lt_prog_compiler_static='-Bstatic'
12660 lt_prog_compiler_wl='-Wl,'
12662 *Intel*\ [CF]*Compiler*)
12663 lt_prog_compiler_wl='-Wl,'
12664 lt_prog_compiler_pic='-fPIC'
12665 lt_prog_compiler_static='-static'
12668 lt_prog_compiler_wl='-Wl,'
12669 lt_prog_compiler_pic='-fpic'
12670 lt_prog_compiler_static='-Bstatic'
12678 lt_prog_compiler_pic='-KPIC'
12679 lt_prog_compiler_static='-Bstatic'
12683 # QNX uses GNU C++, but need to define -shared option too, otherwise
12684 # it will coredump.
12685 lt_prog_compiler_pic='-fPIC -shared'
12688 osf3* | osf4* | osf5*)
12689 lt_prog_compiler_wl='-Wl,'
12690 # All OSF/1 code is PIC.
12691 lt_prog_compiler_static='-non_shared'
12695 lt_prog_compiler_static='-non_shared'
12699 lt_prog_compiler_pic='-KPIC'
12700 lt_prog_compiler_static='-Bstatic'
12701 case $cc_basename in
12702 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12703 lt_prog_compiler_wl='-Qoption ld ';;
12705 lt_prog_compiler_wl='-Wl,';;
12710 lt_prog_compiler_wl='-Qoption ld '
12711 lt_prog_compiler_pic='-PIC'
12712 lt_prog_compiler_static='-Bstatic'
12715 sysv4 | sysv4.2uw2* | sysv4.3*)
12716 lt_prog_compiler_wl='-Wl,'
12717 lt_prog_compiler_pic='-KPIC'
12718 lt_prog_compiler_static='-Bstatic'
12722 if test -d /usr/nec; then
12723 lt_prog_compiler_pic='-Kconform_pic'
12724 lt_prog_compiler_static='-Bstatic'
12728 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12729 lt_prog_compiler_wl='-Wl,'
12730 lt_prog_compiler_pic='-KPIC'
12731 lt_prog_compiler_static='-Bstatic'
12735 lt_prog_compiler_wl='-Wl,'
12736 lt_prog_compiler_can_build_shared=no
12740 lt_prog_compiler_pic='-pic'
12741 lt_prog_compiler_static='-Bstatic'
12745 lt_prog_compiler_can_build_shared=no
12751 # For platforms that do not support PIC, -DPIC is meaningless:
12753 lt_prog_compiler_pic=
12756 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12761 printf %s "checking for $compiler option to produce PIC... " >&6; }
12762 if test ${lt_cv_prog_compiler_pic+y}
12764 printf %s "(cached) " >&6
12766 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12769 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12770 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12773 # Check to make sure the PIC flag actually works.
12775 if test -n "$lt_prog_compiler_pic"; then
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12777 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12778 if test ${lt_cv_prog_compiler_pic_works+y}
12780 printf %s "(cached) " >&6
12782 lt_cv_prog_compiler_pic_works=no
12783 ac_outfile=conftest.$ac_objext
12784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12785 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12786 # Insert the option either (1) after the last *FLAGS variable, or
12787 # (2) before a word containing "conftest.", or (3) at the end.
12788 # Note that $ac_compile itself does not contain backslashes and begins
12789 # with a dollar sign (not a hyphen), so the echo should work correctly.
12790 # The option is referenced via a variable to avoid confusing sed.
12791 lt_compile=`echo "$ac_compile" | $SED \
12792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12794 -e 's:$: $lt_compiler_flag:'`
12795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12796 (eval "$lt_compile" 2>conftest.err)
12798 cat conftest.err >&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 if (exit $ac_status) && test -s "$ac_outfile"; then
12801 # The compiler can only warn and ignore the option if not recognized
12802 # So say no if there are warnings other than the usual output.
12803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12806 lt_cv_prog_compiler_pic_works=yes
12812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12813 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12815 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12816 case $lt_prog_compiler_pic in
12818 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12821 lt_prog_compiler_pic=
12822 lt_prog_compiler_can_build_shared=no
12838 # Check to make sure the static flag actually works.
12840 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12842 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12843 if test ${lt_cv_prog_compiler_static_works+y}
12845 printf %s "(cached) " >&6
12847 lt_cv_prog_compiler_static_works=no
12848 save_LDFLAGS=$LDFLAGS
12849 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12850 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12851 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12852 # The linker can only warn and ignore the option if not recognized
12853 # So say no if there are warnings
12854 if test -s conftest.err; then
12855 # Append any errors to the config.log.
12856 cat conftest.err 1>&5
12857 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12859 if diff conftest.exp conftest.er2 >/dev/null; then
12860 lt_cv_prog_compiler_static_works=yes
12863 lt_cv_prog_compiler_static_works=yes
12867 LDFLAGS=$save_LDFLAGS
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12871 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12873 if test yes = "$lt_cv_prog_compiler_static_works"; then
12876 lt_prog_compiler_static=
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12886 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12887 if test ${lt_cv_prog_compiler_c_o+y}
12889 printf %s "(cached) " >&6
12891 lt_cv_prog_compiler_c_o=no
12892 $RM -r conftest 2>/dev/null
12896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12898 lt_compiler_flag="-o out/conftest2.$ac_objext"
12899 # Insert the option either (1) after the last *FLAGS variable, or
12900 # (2) before a word containing "conftest.", or (3) at the end.
12901 # Note that $ac_compile itself does not contain backslashes and begins
12902 # with a dollar sign (not a hyphen), so the echo should work correctly.
12903 lt_compile=`echo "$ac_compile" | $SED \
12904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12906 -e 's:$: $lt_compiler_flag:'`
12907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12908 (eval "$lt_compile" 2>out/conftest.err)
12910 cat out/conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12914 # The compiler can only warn and ignore the option if not recognized
12915 # So say no if there are warnings
12916 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12917 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12918 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12919 lt_cv_prog_compiler_c_o=yes
12924 # SGI C++ compiler will create directory out/ii_files/ for
12925 # template instantiation
12926 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12927 $RM out/* && rmdir out
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12934 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12942 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12943 if test ${lt_cv_prog_compiler_c_o+y}
12945 printf %s "(cached) " >&6
12947 lt_cv_prog_compiler_c_o=no
12948 $RM -r conftest 2>/dev/null
12952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12954 lt_compiler_flag="-o out/conftest2.$ac_objext"
12955 # Insert the option either (1) after the last *FLAGS variable, or
12956 # (2) before a word containing "conftest.", or (3) at the end.
12957 # Note that $ac_compile itself does not contain backslashes and begins
12958 # with a dollar sign (not a hyphen), so the echo should work correctly.
12959 lt_compile=`echo "$ac_compile" | $SED \
12960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12962 -e 's:$: $lt_compiler_flag:'`
12963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12964 (eval "$lt_compile" 2>out/conftest.err)
12966 cat out/conftest.err >&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12970 # The compiler can only warn and ignore the option if not recognized
12971 # So say no if there are warnings
12972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12975 lt_cv_prog_compiler_c_o=yes
12980 # SGI C++ compiler will create directory out/ii_files/ for
12981 # template instantiation
12982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12983 $RM out/* && rmdir out
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12990 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12995 hard_links=nottested
12996 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12997 # do not overwrite the value of need_locks provided by the user
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12999 printf %s "checking if we can lock with hard links... " >&6; }
13002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13004 ln conftest.a conftest.b 2>&5 || hard_links=no
13005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13007 printf "%s\n" "$hard_links" >&6; }
13008 if test no = "$hard_links"; then
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13010 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13023 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13026 allow_undefined_flag=
13027 always_export_symbols=no
13029 archive_expsym_cmds=
13030 compiler_needs_object=no
13031 enable_shared_with_static_runtimes=no
13032 export_dynamic_flag_spec=
13033 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13034 hardcode_automatic=no
13036 hardcode_direct_absolute=no
13037 hardcode_libdir_flag_spec=
13038 hardcode_libdir_separator=
13039 hardcode_minus_L=no
13040 hardcode_shlibpath_var=unsupported
13042 link_all_deplibs=unknown
13044 module_expsym_cmds=
13045 old_archive_from_new_cmds=
13046 old_archive_from_expsyms_cmds=
13047 thread_safe_flag_spec=
13048 whole_archive_flag_spec=
13049 # include_expsyms should be a list of space-separated symbols to be *always*
13050 # included in the symbol list
13052 # exclude_expsyms can be an extended regexp of symbols to exclude
13053 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13054 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13055 # as well as any symbol that contains 'd'.
13056 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13057 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13058 # platforms (ab)use it in PIC code, but their linkers get confused if
13059 # the symbol is explicitly referenced. Since portable code cannot
13060 # rely on this symbol name, it's probably fine to never include it in
13061 # preloaded symbol tables.
13062 # Exclude shared library initialization/finalization symbols.
13063 extract_expsyms_cmds=
13066 cygwin* | mingw* | pw32* | cegcc*)
13067 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13068 # When not using gcc, we currently assume that we are using
13069 # Microsoft Visual C++ or Intel C++ Compiler.
13070 if test yes != "$GCC"; then
13075 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13078 openbsd* | bitrig*)
13081 linux* | k*bsd*-gnu | gnu*)
13082 link_all_deplibs=no
13088 # On some targets, GNU ld is compatible enough with the native linker
13089 # that we're better off using the native interface for both.
13090 lt_use_gnu_ld_interface=no
13091 if test yes = "$with_gnu_ld"; then
13094 # The AIX port of GNU ld has always aspired to compatibility
13095 # with the native linker. However, as the warning in the GNU ld
13096 # block says, versions before 2.19.5* couldn't really create working
13097 # shared libraries, regardless of the interface used.
13098 case `$LD -v 2>&1` in
13099 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13100 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13101 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13103 lt_use_gnu_ld_interface=yes
13108 lt_use_gnu_ld_interface=yes
13113 if test yes = "$lt_use_gnu_ld_interface"; then
13114 # If archive_cmds runs LD, not CC, wlarc should be empty
13117 # Set some defaults for GNU ld with shared library support. These
13118 # are reset later if shared libraries are not supported. Putting them
13119 # here allows them to be overridden if necessary.
13120 runpath_var=LD_RUN_PATH
13121 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13122 export_dynamic_flag_spec='$wl--export-dynamic'
13123 # ancient GNU ld didn't support --whole-archive et. al.
13124 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13125 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13127 whole_archive_flag_spec=
13129 supports_anon_versioning=no
13130 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13131 *GNU\ gold*) supports_anon_versioning=yes ;;
13132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13135 *\ 2.11.*) ;; # other 2.11 versions
13136 *) supports_anon_versioning=yes ;;
13139 # See if GNU ld supports shared libraries.
13142 # On AIX/PPC, the GNU linker is very broken
13143 if test ia64 != "$host_cpu"; then
13147 *** Warning: the GNU linker, at least up to release 2.19, is reported
13148 *** to be unable to reliably create shared libraries on AIX.
13149 *** Therefore, libtool is disabling shared libraries support. If you
13150 *** really care for shared libraries, you may want to install binutils
13151 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13152 *** You will then need to restart the configuration process.
13161 # see comment about AmigaOS4 .so support
13162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13163 archive_expsym_cmds=''
13166 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)'
13167 hardcode_libdir_flag_spec='-L$libdir'
13168 hardcode_minus_L=yes
13174 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13175 allow_undefined_flag=unsupported
13176 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13177 # support --undefined. This deserves some investigation. FIXME
13178 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13184 cygwin* | mingw* | pw32* | cegcc*)
13185 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13186 # as there is no search path for DLLs.
13187 hardcode_libdir_flag_spec='-L$libdir'
13188 export_dynamic_flag_spec='$wl--export-all-symbols'
13189 allow_undefined_flag=unsupported
13190 always_export_symbols=no
13191 enable_shared_with_static_runtimes=yes
13192 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'
13193 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13195 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13197 # If the export-symbols file already is a .def file, use it as
13198 # is; otherwise, prepend EXPORTS...
13199 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13200 cp $export_symbols $output_objdir/$soname.def;
13202 echo EXPORTS > $output_objdir/$soname.def;
13203 cat $export_symbols >> $output_objdir/$soname.def;
13205 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13213 link_all_deplibs=yes
13217 hardcode_libdir_flag_spec='-L$libdir'
13218 hardcode_minus_L=yes
13219 allow_undefined_flag=unsupported
13221 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13222 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13223 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13224 $ECHO EXPORTS >> $output_objdir/$libname.def~
13225 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13226 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13227 emximp -o $lib $output_objdir/$libname.def'
13228 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13229 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13230 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13231 $ECHO EXPORTS >> $output_objdir/$libname.def~
13232 prefix_cmds="$SED"~
13233 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13234 prefix_cmds="$prefix_cmds -e 1d";
13236 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13237 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13238 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13239 emximp -o $lib $output_objdir/$libname.def'
13240 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13241 enable_shared_with_static_runtimes=yes
13247 hardcode_shlibpath_var=no
13248 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13249 export_dynamic_flag_spec='$wl-E'
13250 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13251 # Instead, shared libraries are loaded at an image base (0x10000000 by
13252 # default) and relocated if they conflict, which is a slow very memory
13253 # consuming and fragmenting process. To avoid this, we pick a random,
13254 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13255 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13256 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13257 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'
13260 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13262 if test linux-dietlibc = "$host_os"; then
13263 case $cc_basename in
13264 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13267 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13268 && test no = "$tmp_diet"
13270 tmp_addflag=' $pic_flag'
13271 tmp_sharedflag='-shared'
13272 case $cc_basename,$host_cpu in
13273 pgcc*) # Portland Group C compiler
13274 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'
13275 tmp_addflag=' $pic_flag'
13277 pgf77* | pgf90* | pgf95* | pgfortran*)
13278 # Portland Group f77 and f90 compilers
13279 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'
13280 tmp_addflag=' $pic_flag -Mnomain' ;;
13281 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13282 tmp_addflag=' -i_dynamic' ;;
13283 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13284 tmp_addflag=' -i_dynamic -nofor_main' ;;
13285 ifc* | ifort*) # Intel Fortran compiler
13286 tmp_addflag=' -nofor_main' ;;
13287 lf95*) # Lahey Fortran 8.1
13288 whole_archive_flag_spec=
13289 tmp_sharedflag='--shared' ;;
13290 nagfor*) # NAGFOR 5.3
13291 tmp_sharedflag='-Wl,-shared' ;;
13292 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13293 tmp_sharedflag='-qmkshrobj'
13295 nvcc*) # Cuda Compiler Driver 2.2
13296 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'
13297 compiler_needs_object=yes
13300 case `$CC -V 2>&1 | $SED 5q` in
13301 *Sun\ C*) # Sun C 5.9
13302 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'
13303 compiler_needs_object=yes
13304 tmp_sharedflag='-G' ;;
13305 *Sun\ F*) # Sun Fortran 8.3
13306 tmp_sharedflag='-G' ;;
13308 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13310 if test yes = "$supports_anon_versioning"; then
13311 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13312 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13313 echo "local: *; };" >> $output_objdir/$libname.ver~
13314 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13317 case $cc_basename in
13319 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13320 export_dynamic_flag_spec='-rdynamic'
13322 xlf* | bgf* | bgxlf* | mpixlf*)
13323 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13324 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13326 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13327 if test yes = "$supports_anon_versioning"; then
13328 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13329 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13330 echo "local: *; };" >> $output_objdir/$libname.ver~
13331 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13340 netbsd* | netbsdelf*-gnu)
13341 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13342 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13345 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13346 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13351 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13355 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13356 *** create shared libraries on Solaris systems. Therefore, libtool
13357 *** is disabling shared libraries support. We urge you to upgrade GNU
13358 *** binutils to release 2.9.1 or newer. Another option is to modify
13359 *** your PATH or compiler configuration so that the native linker is
13360 *** used, and then restart.
13363 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13364 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13365 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13371 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13372 case `$LD -v 2>&1` in
13373 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13377 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13378 *** reliably create shared libraries on SCO systems. Therefore, libtool
13379 *** is disabling shared libraries support. We urge you to upgrade GNU
13380 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13381 *** your PATH or compiler configuration so that the native linker is
13382 *** used, and then restart.
13387 # For security reasons, it is highly recommended that you always
13388 # use absolute paths for naming shared libraries, and exclude the
13389 # DT_RUNPATH tag from executables and libraries. But doing so
13390 # requires that you compile everything twice, which is a pain.
13391 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13403 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13405 hardcode_direct=yes
13406 hardcode_shlibpath_var=no
13410 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13411 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13412 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13419 if test no = "$ld_shlibs"; then
13421 hardcode_libdir_flag_spec=
13422 export_dynamic_flag_spec=
13423 whole_archive_flag_spec=
13426 # PORTME fill in a description of your system's linker (not GNU ld)
13429 allow_undefined_flag=unsupported
13430 always_export_symbols=yes
13431 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'
13432 # Note: this linker hardcodes the directories in LIBPATH if there
13433 # are no directories specified by -L.
13434 hardcode_minus_L=yes
13435 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13436 # Neither direct hardcoding nor static linking is supported with a
13438 hardcode_direct=unsupported
13443 if test ia64 = "$host_cpu"; then
13444 # On IA64, the linker does run time linking by default, so we don't
13445 # have to do anything special.
13446 aix_use_runtimelinking=no
13447 exp_sym_flag='-Bexport'
13450 # If we're using GNU nm, then we don't want the "-C" option.
13451 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13452 # Without the "-l" option, or with the "-B" option, AIX nm treats
13453 # weak defined symbols like other global defined symbols, whereas
13454 # GNU nm marks them as "W".
13455 # While the 'weak' keyword is ignored in the Export File, we need
13456 # it in the Import File for the 'aix-soname' feature, so we have
13457 # to replace the "-B" option with "-P" for AIX nm.
13458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13459 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'
13461 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 == "L") || (\$ 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'
13463 aix_use_runtimelinking=no
13465 # Test if we are trying to use run time linking or normal
13466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13467 # have runtime linking enabled, and use it for executables.
13468 # For shared libraries, we enable/disable runtime linking
13469 # depending on the kind of the shared library created -
13470 # when "with_aix_soname,aix_use_runtimelinking" is:
13471 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13472 # "aix,yes" lib.so shared, rtl:yes, for executables
13473 # lib.a static archive
13474 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13475 # lib.a(lib.so.V) shared, rtl:no, for executables
13476 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13477 # lib.a(lib.so.V) shared, rtl:no
13478 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13479 # lib.a static archive
13480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13481 for ld_flag in $LDFLAGS; do
13482 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13483 aix_use_runtimelinking=yes
13487 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13488 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13489 # so we don't have lib.a shared libs to link our executables.
13490 # We have to force runtime linking in this case.
13491 aix_use_runtimelinking=yes
13492 LDFLAGS="$LDFLAGS -Wl,-brtl"
13497 exp_sym_flag='-bexport'
13498 no_entry_flag='-bnoentry'
13501 # When large executables or shared objects are built, AIX ld can
13502 # have problems creating the table of contents. If linking a library
13503 # or program results in "error TOC overflow" add -mminimal-toc to
13504 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13505 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13508 hardcode_direct=yes
13509 hardcode_direct_absolute=yes
13510 hardcode_libdir_separator=':'
13511 link_all_deplibs=yes
13512 file_list_spec='$wl-f,'
13513 case $with_aix_soname,$aix_use_runtimelinking in
13514 aix,*) ;; # traditional, no import file
13515 svr4,* | *,yes) # use import file
13516 # The Import File defines what to hardcode.
13518 hardcode_direct_absolute=no
13522 if test yes = "$GCC"; then
13523 case $host_os in aix4.[012]|aix4.[012].*)
13524 # We only want to do this on AIX 4.2 and lower, the check
13525 # below for broken collect2 doesn't work under 4.3+
13526 collect2name=`$CC -print-prog-name=collect2`
13527 if test -f "$collect2name" &&
13528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13530 # We have reworked collect2
13533 # We have old collect2
13534 hardcode_direct=unsupported
13535 # It fails to find uninstalled libraries when the uninstalled
13536 # path is not listed in the libpath. Setting hardcode_minus_L
13537 # to unsupported forces relinking
13538 hardcode_minus_L=yes
13539 hardcode_libdir_flag_spec='-L$libdir'
13540 hardcode_libdir_separator=
13544 shared_flag='-shared'
13545 if test yes = "$aix_use_runtimelinking"; then
13546 shared_flag="$shared_flag "'$wl-G'
13548 # Need to ensure runtime linking is disabled for the traditional
13549 # shared library, or the linker may eventually find shared libraries
13550 # /with/ Import File - we do not want to mix them.
13551 shared_flag_aix='-shared'
13552 shared_flag_svr4='-shared $wl-G'
13555 if test ia64 = "$host_cpu"; then
13556 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13557 # chokes on -Wl,-G. The following line is correct:
13560 if test yes = "$aix_use_runtimelinking"; then
13561 shared_flag='$wl-G'
13563 shared_flag='$wl-bM:SRE'
13565 shared_flag_aix='$wl-bM:SRE'
13566 shared_flag_svr4='$wl-G'
13570 export_dynamic_flag_spec='$wl-bexpall'
13571 # It seems that -bexpall does not export symbols beginning with
13572 # underscore (_), so it is better to generate a list of symbols to export.
13573 always_export_symbols=yes
13574 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13575 # Warning - without using the other runtime loading flags (-brtl),
13576 # -berok will link without error, but may produce a broken library.
13577 allow_undefined_flag='-berok'
13578 # Determine the default libpath from the value encoded in an
13579 # empty executable.
13580 if test set = "${lt_cv_aix_libpath+set}"; then
13581 aix_libpath=$lt_cv_aix_libpath
13583 if test ${lt_cv_aix_libpath_+y}
13585 printf %s "(cached) " >&6
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13598 if ac_fn_c_try_link "$LINENO"
13601 lt_aix_libpath_sed='
13602 /Import File Strings/,/^$/ {
13604 s/^0 *\([^ ]*\) *$/\1/
13608 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13609 # Check for a 64-bit object if we didn't find anything.
13610 if test -z "$lt_cv_aix_libpath_"; then
13611 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13615 conftest$ac_exeext conftest.$ac_ext
13616 if test -z "$lt_cv_aix_libpath_"; then
13617 lt_cv_aix_libpath_=/usr/lib:/lib
13622 aix_libpath=$lt_cv_aix_libpath_
13625 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13626 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
13628 if test ia64 = "$host_cpu"; then
13629 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13630 allow_undefined_flag="-z nodefs"
13631 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"
13633 # Determine the default libpath from the value encoded in an
13634 # empty executable.
13635 if test set = "${lt_cv_aix_libpath+set}"; then
13636 aix_libpath=$lt_cv_aix_libpath
13638 if test ${lt_cv_aix_libpath_+y}
13640 printf %s "(cached) " >&6
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13653 if ac_fn_c_try_link "$LINENO"
13656 lt_aix_libpath_sed='
13657 /Import File Strings/,/^$/ {
13659 s/^0 *\([^ ]*\) *$/\1/
13663 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13664 # Check for a 64-bit object if we didn't find anything.
13665 if test -z "$lt_cv_aix_libpath_"; then
13666 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13670 conftest$ac_exeext conftest.$ac_ext
13671 if test -z "$lt_cv_aix_libpath_"; then
13672 lt_cv_aix_libpath_=/usr/lib:/lib
13677 aix_libpath=$lt_cv_aix_libpath_
13680 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13681 # Warning - without using the other run time loading flags,
13682 # -berok will link without error, but may produce a broken library.
13683 no_undefined_flag=' $wl-bernotok'
13684 allow_undefined_flag=' $wl-berok'
13685 if test yes = "$with_gnu_ld"; then
13686 # We only use this code for GNU lds that support --whole-archive.
13687 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13689 # Exported symbols can be pulled into shared objects from archives
13690 whole_archive_flag_spec='$convenience'
13692 archive_cmds_need_lc=yes
13693 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13694 # -brtl affects multiple linker settings, -berok does not and is overridden later
13695 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13696 if test svr4 != "$with_aix_soname"; then
13697 # This is similar to how AIX traditionally builds its shared libraries.
13698 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'
13700 if test aix != "$with_aix_soname"; then
13701 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'
13703 # used by -dlpreopen to get the symbols
13704 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13706 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13714 # see comment about AmigaOS4 .so support
13715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13716 archive_expsym_cmds=''
13719 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)'
13720 hardcode_libdir_flag_spec='-L$libdir'
13721 hardcode_minus_L=yes
13727 export_dynamic_flag_spec=-rdynamic
13730 cygwin* | mingw* | pw32* | cegcc*)
13731 # When not using gcc, we currently assume that we are using
13732 # Microsoft Visual C++ or Intel C++ Compiler.
13733 # hardcode_libdir_flag_spec is actually meaningless, as there is
13734 # no search path for DLLs.
13735 case $cc_basename in
13737 # Native MSVC or ICC
13738 hardcode_libdir_flag_spec=' '
13739 allow_undefined_flag=unsupported
13740 always_export_symbols=yes
13742 # Tell ltmain to make .lib files, not .a files.
13744 # Tell ltmain to make .dll files, not .so files.
13746 # FIXME: Setting linknames here is a bad hack.
13747 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13748 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13749 cp "$export_symbols" "$output_objdir/$soname.def";
13750 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13752 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13754 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13756 # The linker will not automatically build a static lib if we build a DLL.
13757 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13758 enable_shared_with_static_runtimes=yes
13759 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13762 old_postinstall_cmds='chmod 644 $oldlib'
13763 postlink_cmds='lt_outputfile="@OUTPUT@"~
13764 lt_tool_outputfile="@TOOL_OUTPUT@"~
13765 case $lt_outputfile in
13768 lt_outputfile=$lt_outputfile.exe
13769 lt_tool_outputfile=$lt_tool_outputfile.exe
13772 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13773 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13774 $RM "$lt_outputfile.manifest";
13778 # Assume MSVC and ICC wrapper
13779 hardcode_libdir_flag_spec=' '
13780 allow_undefined_flag=unsupported
13781 # Tell ltmain to make .lib files, not .a files.
13783 # Tell ltmain to make .dll files, not .so files.
13785 # FIXME: Setting linknames here is a bad hack.
13786 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13787 # The linker will automatically build a .lib file if we build a DLL.
13788 old_archive_from_new_cmds='true'
13789 # FIXME: Should let the user specify the lib program.
13790 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13791 enable_shared_with_static_runtimes=yes
13796 darwin* | rhapsody*)
13799 archive_cmds_need_lc=no
13801 hardcode_automatic=yes
13802 hardcode_shlibpath_var=unsupported
13803 if test yes = "$lt_cv_ld_force_load"; then
13804 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\"`'
13807 whole_archive_flag_spec=''
13809 link_all_deplibs=yes
13810 allow_undefined_flag=$_lt_dar_allow_undefined
13811 case $cc_basename in
13812 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13813 *) _lt_dar_can_shared=$GCC ;;
13815 if test yes = "$_lt_dar_can_shared"; then
13816 output_verbose_link_cmd=func_echo_all
13817 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13818 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13819 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"
13820 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"
13829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13830 hardcode_libdir_flag_spec='-L$libdir'
13831 hardcode_shlibpath_var=no
13834 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13835 # support. Future versions do this automatically, but an explicit c++rt0.o
13836 # does not break anything, and helps significantly (at the cost of a little
13839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13840 hardcode_libdir_flag_spec='-R$libdir'
13841 hardcode_direct=yes
13842 hardcode_shlibpath_var=no
13845 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13848 hardcode_direct=yes
13849 hardcode_minus_L=yes
13850 hardcode_shlibpath_var=no
13853 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13854 freebsd* | dragonfly* | midnightbsd*)
13855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13856 hardcode_libdir_flag_spec='-R$libdir'
13857 hardcode_direct=yes
13858 hardcode_shlibpath_var=no
13862 if test yes = "$GCC"; then
13863 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'
13865 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'
13867 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13868 hardcode_libdir_separator=:
13869 hardcode_direct=yes
13871 # hardcode_minus_L: Not really in the search PATH,
13872 # but as the default location of the library.
13873 hardcode_minus_L=yes
13874 export_dynamic_flag_spec='$wl-E'
13878 if test yes,no = "$GCC,$with_gnu_ld"; then
13879 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13881 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13883 if test no = "$with_gnu_ld"; then
13884 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13885 hardcode_libdir_separator=:
13886 hardcode_direct=yes
13887 hardcode_direct_absolute=yes
13888 export_dynamic_flag_spec='$wl-E'
13889 # hardcode_minus_L: Not really in the search PATH,
13890 # but as the default location of the library.
13891 hardcode_minus_L=yes
13896 if test yes,no = "$GCC,$with_gnu_ld"; then
13899 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13902 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13905 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13911 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13914 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13918 # Older versions of the 11.00 compiler do not understand -b yet
13919 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13921 printf %s "checking if $CC understands -b... " >&6; }
13922 if test ${lt_cv_prog_compiler__b+y}
13924 printf %s "(cached) " >&6
13926 lt_cv_prog_compiler__b=no
13927 save_LDFLAGS=$LDFLAGS
13928 LDFLAGS="$LDFLAGS -b"
13929 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13930 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13931 # The linker can only warn and ignore the option if not recognized
13932 # So say no if there are warnings
13933 if test -s conftest.err; then
13934 # Append any errors to the config.log.
13935 cat conftest.err 1>&5
13936 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13938 if diff conftest.exp conftest.er2 >/dev/null; then
13939 lt_cv_prog_compiler__b=yes
13942 lt_cv_prog_compiler__b=yes
13946 LDFLAGS=$save_LDFLAGS
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13950 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13952 if test yes = "$lt_cv_prog_compiler__b"; then
13953 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13961 if test no = "$with_gnu_ld"; then
13962 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13963 hardcode_libdir_separator=:
13968 hardcode_shlibpath_var=no
13971 hardcode_direct=yes
13972 hardcode_direct_absolute=yes
13973 export_dynamic_flag_spec='$wl-E'
13975 # hardcode_minus_L: Not really in the search PATH,
13976 # but as the default location of the library.
13977 hardcode_minus_L=yes
13983 irix5* | irix6* | nonstopux*)
13984 if test yes = "$GCC"; then
13985 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'
13986 # Try to use the -exported_symbol ld option, if it does not
13987 # work, assume that -exports_file does not work either and
13988 # implicitly export all symbols.
13989 # This should be the same for all languages, so no per-tag cache variable.
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13991 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13992 if test ${lt_cv_irix_exported_symbol+y}
13994 printf %s "(cached) " >&6
13996 save_LDFLAGS=$LDFLAGS
13997 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 int foo (void) { return 0; }
14002 if ac_fn_c_try_link "$LINENO"
14004 lt_cv_irix_exported_symbol=yes
14006 lt_cv_irix_exported_symbol=no
14008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LDFLAGS=$save_LDFLAGS
14012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14013 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14014 if test yes = "$lt_cv_irix_exported_symbol"; then
14015 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'
14017 link_all_deplibs=no
14019 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'
14020 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'
14022 archive_cmds_need_lc='no'
14023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14024 hardcode_libdir_separator=:
14026 link_all_deplibs=yes
14030 case $cc_basename in
14032 # Fabrice Bellard et al's Tiny C Compiler
14034 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14035 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14040 netbsd* | netbsdelf*-gnu)
14041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14046 hardcode_libdir_flag_spec='-R$libdir'
14047 hardcode_direct=yes
14048 hardcode_shlibpath_var=no
14052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14053 hardcode_direct=yes
14054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14055 hardcode_libdir_separator=:
14056 hardcode_shlibpath_var=no
14062 openbsd* | bitrig*)
14063 if test -f /usr/libexec/ld.so; then
14064 hardcode_direct=yes
14065 hardcode_shlibpath_var=no
14066 hardcode_direct_absolute=yes
14067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14070 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14071 export_dynamic_flag_spec='$wl-E'
14073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14074 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14082 hardcode_libdir_flag_spec='-L$libdir'
14083 hardcode_minus_L=yes
14084 allow_undefined_flag=unsupported
14086 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14089 $ECHO EXPORTS >> $output_objdir/$libname.def~
14090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14092 emximp -o $lib $output_objdir/$libname.def'
14093 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14096 $ECHO EXPORTS >> $output_objdir/$libname.def~
14097 prefix_cmds="$SED"~
14098 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14099 prefix_cmds="$prefix_cmds -e 1d";
14101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14104 emximp -o $lib $output_objdir/$libname.def'
14105 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14106 enable_shared_with_static_runtimes=yes
14111 if test yes = "$GCC"; then
14112 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14113 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'
14115 allow_undefined_flag=' -expect_unresolved \*'
14116 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'
14118 archive_cmds_need_lc='no'
14119 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14120 hardcode_libdir_separator=:
14123 osf4* | osf5*) # as osf3* with the addition of -msym flag
14124 if test yes = "$GCC"; then
14125 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14126 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'
14127 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14129 allow_undefined_flag=' -expect_unresolved \*'
14130 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'
14131 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~
14132 $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'
14134 # Both c and cxx compiler support -rpath directly
14135 hardcode_libdir_flag_spec='-rpath $libdir'
14137 archive_cmds_need_lc='no'
14138 hardcode_libdir_separator=:
14142 no_undefined_flag=' -z defs'
14143 if test yes = "$GCC"; then
14145 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14147 $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'
14149 case `$CC -V 2>&1` in
14152 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14158 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14160 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14164 hardcode_libdir_flag_spec='-R$libdir'
14165 hardcode_shlibpath_var=no
14167 solaris2.[0-5] | solaris2.[0-5].*) ;;
14169 # The compiler driver will combine and reorder linker options,
14170 # but understands '-z linker_flag'. GCC discards it without '$wl',
14171 # but is careful enough not to reorder.
14172 # Supported since Solaris 2.6 (maybe 2.5.1?)
14173 if test yes = "$GCC"; then
14174 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14180 link_all_deplibs=yes
14184 if test sequent = "$host_vendor"; then
14185 # Use $CC to link under sequent, because it throws in some extra .o
14186 # files that make .init and .fini sections work.
14187 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14191 hardcode_libdir_flag_spec='-L$libdir'
14192 hardcode_direct=yes
14193 hardcode_minus_L=yes
14194 hardcode_shlibpath_var=no
14198 case $host_vendor in
14200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14201 hardcode_direct=yes # is this really true???
14204 ## LD is ld it makes a PLAMLIB
14205 ## CC just makes a GrossModule.
14206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14207 reload_cmds='$CC -r -o $output$reload_objs'
14211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14215 runpath_var='LD_RUN_PATH'
14216 hardcode_shlibpath_var=no
14220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14221 hardcode_shlibpath_var=no
14222 export_dynamic_flag_spec='-Bexport'
14226 if test -d /usr/nec; then
14227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14228 hardcode_shlibpath_var=no
14229 runpath_var=LD_RUN_PATH
14230 hardcode_runpath_var=yes
14235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14236 no_undefined_flag='$wl-z,text'
14237 archive_cmds_need_lc=no
14238 hardcode_shlibpath_var=no
14239 runpath_var='LD_RUN_PATH'
14241 if test yes = "$GCC"; then
14242 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14243 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14246 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250 sysv5* | sco3.2v5* | sco5v6*)
14251 # Note: We CANNOT use -z defs as we might desire, because we do not
14252 # link with -lc, and that would cause any symbols used from libc to
14253 # always be unresolved, which means just about no library would
14254 # ever link correctly. If we're not using GNU ld we use -z text
14255 # though, which does catch some bad symbols but isn't as heavy-handed
14257 no_undefined_flag='$wl-z,text'
14258 allow_undefined_flag='$wl-z,nodefs'
14259 archive_cmds_need_lc=no
14260 hardcode_shlibpath_var=no
14261 hardcode_libdir_flag_spec='$wl-R,$libdir'
14262 hardcode_libdir_separator=':'
14263 link_all_deplibs=yes
14264 export_dynamic_flag_spec='$wl-Bexport'
14265 runpath_var='LD_RUN_PATH'
14267 if test yes = "$GCC"; then
14268 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14269 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14271 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14272 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14278 hardcode_libdir_flag_spec='-L$libdir'
14279 hardcode_shlibpath_var=no
14287 if test sni = "$host_vendor"; then
14289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14290 export_dynamic_flag_spec='$wl-Blargedynsym'
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14297 printf "%s\n" "$ld_shlibs" >&6; }
14298 test no = "$ld_shlibs" && can_build_shared=no
14300 with_gnu_ld=$with_gnu_ld
14317 # Do we need to explicitly link libc?
14319 case "x$archive_cmds_need_lc" in
14321 # Assume -lc should be added
14322 archive_cmds_need_lc=yes
14324 if test yes,yes = "$GCC,$enable_shared"; then
14325 case $archive_cmds in
14327 # FIXME: we may have to deal with multi-command sequences.
14330 # Test whether the compiler implicitly links with -lc since on some
14331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14332 # to ld, don't add -lc before -lgcc.
14333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14334 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14335 if test ${lt_cv_archive_cmds_need_lc+y}
14337 printf %s "(cached) " >&6
14340 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14342 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14343 (eval $ac_compile) 2>&5
14345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346 test $ac_status = 0; } 2>conftest.err; then
14349 libobjs=conftest.$ac_objext
14351 wl=$lt_prog_compiler_wl
14352 pic_flag=$lt_prog_compiler_pic
14358 lt_save_allow_undefined_flag=$allow_undefined_flag
14359 allow_undefined_flag=
14360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14361 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14364 test $ac_status = 0; }
14366 lt_cv_archive_cmds_need_lc=no
14368 lt_cv_archive_cmds_need_lc=yes
14370 allow_undefined_flag=$lt_save_allow_undefined_flag
14372 cat conftest.err 1>&5
14377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14378 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14379 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14538 printf %s "checking dynamic linker characteristics... " >&6; }
14540 if test yes = "$GCC"; then
14542 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14543 *) lt_awk_arg='/^libraries:/' ;;
14546 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14547 *) lt_sed_strip_eq='s|=/|/|g' ;;
14549 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14550 case $lt_search_path_spec in
14552 # if the path contains ";" then we assume it to be the separator
14553 # otherwise default to the standard path separator (i.e. ":") - it is
14554 # assumed that no part of a normal pathname contains ";" but that should
14555 # okay in the real world where ";" in dirpaths is itself problematic.
14556 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14559 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14562 # Ok, now we have the path, separated by spaces, we can step through it
14563 # and add multilib dir if necessary...
14564 lt_tmp_lt_search_path_spec=
14565 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14566 # ...but if some path component already ends with the multilib dir we assume
14567 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14568 case "$lt_multi_os_dir; $lt_search_path_spec " in
14569 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14573 for lt_sys_path in $lt_search_path_spec; do
14574 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14576 elif test -n "$lt_multi_os_dir"; then
14577 test -d "$lt_sys_path" && \
14578 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14581 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14582 BEGIN {RS = " "; FS = "/|\n";} {
14585 for (lt_i = NF; lt_i > 0; lt_i--) {
14586 if ($lt_i != "" && $lt_i != ".") {
14587 if ($lt_i == "..") {
14590 if (lt_count == 0) {
14591 lt_foo = "/" $lt_i lt_foo;
14598 if (lt_foo != "") { lt_freq[lt_foo]++; }
14599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14601 # AWK program above erroneously prepends '/' to C:/dos/paths
14604 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14605 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14607 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14609 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14611 library_names_spec=
14612 libname_spec='lib$name'
14616 postuninstall_cmds=
14620 shlibpath_overrides_runpath=unknown
14622 dynamic_linker="$host_os ld.so"
14623 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14624 need_lib_prefix=unknown
14625 hardcode_into_libs=no
14627 # when you set need_version to no, make sure it does not cause -set_version
14628 # flags to be left without arguments
14629 need_version=unknown
14635 version_type=linux # correct to gnu/linux during the next big refactor
14636 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14637 shlibpath_var=LIBPATH
14639 # AIX 3 has no versioning support, so we append a major version to the name.
14640 soname_spec='$libname$release$shared_ext$major'
14644 version_type=linux # correct to gnu/linux during the next big refactor
14647 hardcode_into_libs=yes
14648 if test ia64 = "$host_cpu"; then
14649 # AIX 5 supports IA64
14650 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14651 shlibpath_var=LD_LIBRARY_PATH
14653 # With GCC up to 2.95.x, collect2 would create an import file
14654 # for dependence libraries. The import file would start with
14655 # the line '#! .'. This would cause the generated library to
14656 # depend on '.', always an invalid library. This was fixed in
14657 # development snapshots of GCC prior to 3.0.
14659 aix4 | aix4.[01] | aix4.[01].*)
14660 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14662 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14665 can_build_shared=no
14669 # Using Import Files as archive members, it is possible to support
14670 # filename-based versioning of shared library archives on AIX. While
14671 # this would work for both with and without runtime linking, it will
14672 # prevent static linking of such archives. So we do filename-based
14673 # shared library versioning with .so extension only, which is used
14674 # when both runtime linking and shared linking is enabled.
14675 # Unfortunately, runtime linking may impact performance, so we do
14676 # not want this to be the default eventually. Also, we use the
14677 # versioned .so libs for executables only if there is the -brtl
14678 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14679 # To allow for filename-based versioning support, we need to create
14680 # libNAME.so.V as an archive file, containing:
14681 # *) an Import File, referring to the versioned filename of the
14682 # archive as well as the shared archive member, telling the
14683 # bitwidth (32 or 64) of that shared object, and providing the
14684 # list of exported symbols of that shared object, eventually
14685 # decorated with the 'weak' keyword
14686 # *) the shared object with the F_LOADONLY flag set, to really avoid
14687 # it being seen by the linker.
14688 # At run time we better use the real file rather than another symlink,
14689 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14691 case $with_aix_soname,$aix_use_runtimelinking in
14692 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14693 # soname into executable. Probably we can add versioning support to
14694 # collect2, so additional links can be useful in future.
14695 aix,yes) # traditional libtool
14696 dynamic_linker='AIX unversionable lib.so'
14697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14698 # instead of lib<name>.a to let people know that these are not
14699 # typical AIX shared libraries.
14700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14702 aix,no) # traditional AIX only
14703 dynamic_linker='AIX lib.a(lib.so.V)'
14704 # We preserve .a as extension for shared libraries through AIX4.2
14705 # and later when we are not doing run time linking.
14706 library_names_spec='$libname$release.a $libname.a'
14707 soname_spec='$libname$release$shared_ext$major'
14709 svr4,*) # full svr4 only
14710 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14711 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14712 # We do not specify a path in Import Files, so LIBPATH fires.
14713 shlibpath_overrides_runpath=yes
14715 *,yes) # both, prefer svr4
14716 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14717 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14718 # unpreferred sharedlib libNAME.a needs extra handling
14719 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"'
14720 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"'
14721 # We do not specify a path in Import Files, so LIBPATH fires.
14722 shlibpath_overrides_runpath=yes
14724 *,no) # both, prefer aix
14725 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14726 library_names_spec='$libname$release.a $libname.a'
14727 soname_spec='$libname$release$shared_ext$major'
14728 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14729 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)'
14730 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"'
14733 shlibpath_var=LIBPATH
14740 # Since July 2007 AmigaOS4 officially supports .so libraries.
14741 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14745 library_names_spec='$libname.ixlibrary $libname.a'
14746 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14747 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'
14753 library_names_spec='$libname$shared_ext'
14754 dynamic_linker="$host_os ld.so"
14755 shlibpath_var=LIBRARY_PATH
14759 version_type=linux # correct to gnu/linux during the next big refactor
14761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14762 soname_spec='$libname$release$shared_ext$major'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14766 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14767 # the default ld.so.conf also contains /usr/contrib/lib and
14768 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14769 # libtool to hard-code these into programs
14772 cygwin* | mingw* | pw32* | cegcc*)
14773 version_type=windows
14778 case $GCC,$cc_basename in
14781 library_names_spec='$libname.dll.a'
14782 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14783 postinstall_cmds='base_file=`basename \$file`~
14784 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14785 dldir=$destdir/`dirname \$dlpath`~
14786 test -d \$dldir || mkdir -p \$dldir~
14787 $install_prog $dir/$dlname \$dldir/$dlname~
14788 chmod a+x \$dldir/$dlname~
14789 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14790 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14792 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14793 dlpath=$dir/\$dldll~
14795 shlibpath_overrides_runpath=yes
14799 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14800 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14802 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14805 # MinGW DLLs use traditional 'lib' prefix
14806 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14809 # pw32 DLLs use 'pw' prefix rather than 'lib'
14810 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14813 dynamic_linker='Win32 ld.exe'
14817 # Native MSVC or ICC
14818 libname_spec='$name'
14819 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14820 library_names_spec='$libname.dll.lib'
14824 sys_lib_search_path_spec=
14827 for lt_path in $LIB
14830 # Let DOS variable expansion print the short 8.3 style file name.
14831 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14832 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14835 # Convert to MSYS style.
14836 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14839 # Convert to unix form, then to dos form, then back to unix form
14840 # but this time dos style (no spaces!) so that the unix form looks
14841 # like /cygdrive/c/PROGRA~1:/cygdr...
14842 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14843 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14844 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14847 sys_lib_search_path_spec=$LIB
14848 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14849 # It is most probably a Windows format PATH.
14850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14852 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14854 # FIXME: find the short name or the path components, as spaces are
14855 # common. (e.g. "Program Files" -> "PROGRA~1")
14859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14860 postinstall_cmds='base_file=`basename \$file`~
14861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14862 dldir=$destdir/`dirname \$dlpath`~
14863 test -d \$dldir || mkdir -p \$dldir~
14864 $install_prog $dir/$dlname \$dldir/$dlname'
14865 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14866 dlpath=$dir/\$dldll~
14868 shlibpath_overrides_runpath=yes
14869 dynamic_linker='Win32 link.exe'
14873 # Assume MSVC and ICC wrapper
14874 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14875 dynamic_linker='Win32 ld.exe'
14878 # FIXME: first we should search . and the directory the executable is in
14882 darwin* | rhapsody*)
14883 dynamic_linker="$host_os dyld"
14884 version_type=darwin
14887 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14888 soname_spec='$libname$release$major$shared_ext'
14889 shlibpath_overrides_runpath=yes
14890 shlibpath_var=DYLD_LIBRARY_PATH
14891 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14893 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14898 version_type=linux # correct to gnu/linux during the next big refactor
14901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14902 soname_spec='$libname$release$shared_ext$major'
14903 shlibpath_var=LD_LIBRARY_PATH
14906 freebsd* | dragonfly* | midnightbsd*)
14907 # DragonFly does not have aout. When/if they implement a new
14908 # versioning mechanism, adjust this.
14909 if test -x /usr/bin/objformat; then
14910 objformat=`/usr/bin/objformat`
14913 freebsd[23].*) objformat=aout ;;
14914 *) objformat=elf ;;
14917 version_type=freebsd-$objformat
14918 case $version_type in
14920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14921 soname_spec='$libname$release$shared_ext$major'
14926 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14930 shlibpath_var=LD_LIBRARY_PATH
14933 shlibpath_overrides_runpath=yes
14935 freebsd3.[01]* | freebsdelf3.[01]*)
14936 shlibpath_overrides_runpath=yes
14937 hardcode_into_libs=yes
14939 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14940 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14941 shlibpath_overrides_runpath=no
14942 hardcode_into_libs=yes
14944 *) # from 4.6 on, and DragonFly
14945 shlibpath_overrides_runpath=yes
14946 hardcode_into_libs=yes
14952 version_type=linux # correct to gnu/linux during the next big refactor
14955 dynamic_linker="$host_os runtime_loader"
14956 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14957 soname_spec='$libname$release$shared_ext$major'
14958 shlibpath_var=LIBRARY_PATH
14959 shlibpath_overrides_runpath=no
14960 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14961 hardcode_into_libs=yes
14964 hpux9* | hpux10* | hpux11*)
14965 # Give a soname corresponding to the major version so that dld.sl refuses to
14966 # link against other versions.
14973 hardcode_into_libs=yes
14974 dynamic_linker="$host_os dld.so"
14975 shlibpath_var=LD_LIBRARY_PATH
14976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14978 soname_spec='$libname$release$shared_ext$major'
14979 if test 32 = "$HPUX_IA64_MODE"; then
14980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14981 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14984 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14989 hardcode_into_libs=yes
14990 dynamic_linker="$host_os dld.sl"
14991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14994 soname_spec='$libname$release$shared_ext$major'
14995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15000 dynamic_linker="$host_os dld.sl"
15001 shlibpath_var=SHLIB_PATH
15002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15004 soname_spec='$libname$release$shared_ext$major'
15007 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15008 postinstall_cmds='chmod 555 $lib'
15009 # or fails outright, so override atomically:
15010 install_override_mode=555
15014 version_type=linux # correct to gnu/linux during the next big refactor
15017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15018 soname_spec='$libname$release$shared_ext$major'
15019 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15025 irix5* | irix6* | nonstopux*)
15027 nonstopux*) version_type=nonstopux ;;
15029 if test yes = "$lt_cv_prog_gnu_ld"; then
15030 version_type=linux # correct to gnu/linux during the next big refactor
15037 soname_spec='$libname$release$shared_ext$major'
15038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15040 irix5* | nonstopux*)
15041 libsuff= shlibsuff=
15044 case $LD in # libtool.m4 will add one of these switches to LD
15045 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15046 libsuff= shlibsuff= libmagic=32-bit;;
15047 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15048 libsuff=32 shlibsuff=N32 libmagic=N32;;
15049 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15050 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15051 *) libsuff= shlibsuff= libmagic=never-match;;
15055 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15056 shlibpath_overrides_runpath=no
15057 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15058 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15059 hardcode_into_libs=yes
15062 # No shared lib support for Linux oldld, aout, or coff.
15063 linux*oldld* | linux*aout* | linux*coff*)
15068 version_type=none # Android doesn't support versioned libraries.
15071 library_names_spec='$libname$release$shared_ext'
15072 soname_spec='$libname$release$shared_ext'
15074 shlibpath_var=LD_LIBRARY_PATH
15075 shlibpath_overrides_runpath=yes
15077 # This implies no fast_install, which is unacceptable.
15078 # Some rework will be needed to allow for fast_install
15079 # before this can be enabled.
15080 hardcode_into_libs=yes
15082 dynamic_linker='Android linker'
15083 # Don't embed -rpath directories since the linker doesn't support them.
15084 hardcode_libdir_flag_spec='-L$libdir'
15087 # This must be glibc/ELF.
15088 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15089 version_type=linux # correct to gnu/linux during the next big refactor
15092 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15093 soname_spec='$libname$release$shared_ext$major'
15094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 shlibpath_overrides_runpath=no
15098 # Some binutils ld are patched to set DT_RUNPATH
15099 if test ${lt_cv_shlibpath_overrides_runpath+y}
15101 printf %s "(cached) " >&6
15103 lt_cv_shlibpath_overrides_runpath=no
15104 save_LDFLAGS=$LDFLAGS
15105 save_libdir=$libdir
15106 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15107 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15119 if ac_fn_c_try_link "$LINENO"
15121 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15123 lt_cv_shlibpath_overrides_runpath=yes
15126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15127 conftest$ac_exeext conftest.$ac_ext
15128 LDFLAGS=$save_LDFLAGS
15129 libdir=$save_libdir
15133 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15135 # This implies no fast_install, which is unacceptable.
15136 # Some rework will be needed to allow for fast_install
15137 # before this can be enabled.
15138 hardcode_into_libs=yes
15140 # Ideally, we could use ldconfig to report *all* directores which are
15141 # searched for libraries, however this is still not possible. Aside from not
15142 # being certain /sbin/ldconfig is available, command
15143 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15144 # even though it is searched at run-time. Try to do the best guess by
15145 # appending ld.so.conf contents (and includes) to the search path.
15146 if test -f /etc/ld.so.conf; then
15147 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' ' '`
15148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15151 # We used to test for /lib/ld.so.1 and disable shared libraries on
15152 # powerpc, because MkLinux only supported shared libraries with the
15153 # GNU dynamic linker. Since this was broken with cross compilers,
15154 # most powerpc-linux boxes support dynamic linking these days and
15155 # people can always --disable-shared, the test was removed, and we
15156 # assume the GNU/Linux dynamic linker is in use.
15157 dynamic_linker='GNU/Linux ld.so'
15164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15165 soname_spec='${libname}${release}${shared_ext}$major'
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=no
15168 hardcode_into_libs=yes
15169 dynamic_linker='NetBSD ld.elf_so'
15176 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15177 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15178 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15179 dynamic_linker='NetBSD (a.out) ld.so'
15181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15182 soname_spec='$libname$release$shared_ext$major'
15183 dynamic_linker='NetBSD ld.elf_so'
15185 shlibpath_var=LD_LIBRARY_PATH
15186 shlibpath_overrides_runpath=yes
15187 hardcode_into_libs=yes
15191 version_type=linux # correct to gnu/linux during the next big refactor
15192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15193 shlibpath_var=LD_LIBRARY_PATH
15194 shlibpath_overrides_runpath=yes
15201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15202 soname_spec='$libname$release$shared_ext$major'
15203 shlibpath_var=LD_LIBRARY_PATH
15204 shlibpath_overrides_runpath=no
15205 hardcode_into_libs=yes
15206 dynamic_linker='ldqnx.so'
15209 openbsd* | bitrig*)
15211 sys_lib_dlsearch_path_spec=/usr/lib
15213 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15218 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes
15225 libname_spec='$name'
15226 version_type=windows
15230 # OS/2 can only load a DLL with a base name of 8 characters or less.
15231 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15232 v=$($ECHO $release$versuffix | tr -d .-);
15233 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15234 $ECHO $n$v`$shared_ext'
15235 library_names_spec='${libname}_dll.$libext'
15236 dynamic_linker='OS/2 ld.exe'
15237 shlibpath_var=BEGINLIBPATH
15238 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15240 postinstall_cmds='base_file=`basename \$file`~
15241 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15242 dldir=$destdir/`dirname \$dlpath`~
15243 test -d \$dldir || mkdir -p \$dldir~
15244 $install_prog $dir/$dlname \$dldir/$dlname~
15245 chmod a+x \$dldir/$dlname~
15246 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15247 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15249 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15250 dlpath=$dir/\$dldll~
15254 osf3* | osf4* | osf5*)
15258 soname_spec='$libname$release$shared_ext$major'
15259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15270 version_type=linux # correct to gnu/linux during the next big refactor
15273 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15274 soname_spec='$libname$release$shared_ext$major'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=yes
15277 hardcode_into_libs=yes
15278 # ldd complains unless libraries are executable
15279 postinstall_cmds='chmod +x $lib'
15284 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15285 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15286 shlibpath_var=LD_LIBRARY_PATH
15287 shlibpath_overrides_runpath=yes
15288 if test yes = "$with_gnu_ld"; then
15295 version_type=linux # correct to gnu/linux during the next big refactor
15296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15297 soname_spec='$libname$release$shared_ext$major'
15298 shlibpath_var=LD_LIBRARY_PATH
15299 case $host_vendor in
15301 shlibpath_overrides_runpath=no
15303 runpath_var=LD_RUN_PATH
15311 shlibpath_overrides_runpath=no
15312 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15318 if test -d /usr/nec; then
15319 version_type=linux # correct to gnu/linux during the next big refactor
15320 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15321 soname_spec='$libname$shared_ext.$major'
15322 shlibpath_var=LD_LIBRARY_PATH
15326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15331 soname_spec='$libname$release$shared_ext$major'
15332 shlibpath_var=LD_LIBRARY_PATH
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15335 if test yes = "$with_gnu_ld"; then
15336 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15338 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15345 sys_lib_dlsearch_path_spec='/usr/lib'
15349 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15350 version_type=linux # correct to gnu/linux during the next big refactor
15353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=no
15356 hardcode_into_libs=yes
15360 version_type=linux # correct to gnu/linux during the next big refactor
15361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15362 soname_spec='$libname$release$shared_ext$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15371 printf "%s\n" "$dynamic_linker" >&6; }
15372 test no = "$dynamic_linker" && can_build_shared=no
15374 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15375 if test yes = "$GCC"; then
15376 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15379 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15380 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15383 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15384 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15387 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15388 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15390 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15391 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15393 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15394 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15493 printf %s "checking how to hardcode library paths into programs... " >&6; }
15495 if test -n "$hardcode_libdir_flag_spec" ||
15496 test -n "$runpath_var" ||
15497 test yes = "$hardcode_automatic"; then
15499 # We can hardcode non-existent directories.
15500 if test no != "$hardcode_direct" &&
15501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15502 # have to relink, otherwise we might link with an installed library
15503 # when we should be linking with a yet-to-be-installed one
15504 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15505 test no != "$hardcode_minus_L"; then
15506 # Linking always hardcodes the temporary library directory.
15507 hardcode_action=relink
15509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15510 hardcode_action=immediate
15513 # We cannot hardcode anything, or else we can only hardcode existing
15515 hardcode_action=unsupported
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15518 printf "%s\n" "$hardcode_action" >&6; }
15520 if test relink = "$hardcode_action" ||
15521 test yes = "$inherit_rpath"; then
15522 # Fast installation is not supported
15523 enable_fast_install=no
15524 elif test yes = "$shlibpath_overrides_runpath" ||
15525 test no = "$enable_shared"; then
15526 # Fast installation is not necessary
15527 enable_fast_install=needless
15535 if test yes != "$enable_dlopen"; then
15536 enable_dlopen=unknown
15537 enable_dlopen_self=unknown
15538 enable_dlopen_self_static=unknown
15545 lt_cv_dlopen=load_add_on
15547 lt_cv_dlopen_self=yes
15550 mingw* | pw32* | cegcc*)
15551 lt_cv_dlopen=LoadLibrary
15556 lt_cv_dlopen=dlopen
15561 # if libdl is installed we need to link against it
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15563 printf %s "checking for dlopen in -ldl... " >&6; }
15564 if test ${ac_cv_lib_dl_dlopen+y}
15566 printf %s "(cached) " >&6
15568 ac_check_lib_save_LIBS=$LIBS
15570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15571 /* end confdefs.h. */
15573 /* Override any GCC internal prototype to avoid an error.
15574 Use char because int might match the return type of a GCC
15575 builtin and then its argument prototype would still apply. */
15585 if ac_fn_c_try_link "$LINENO"
15587 ac_cv_lib_dl_dlopen=yes
15589 ac_cv_lib_dl_dlopen=no
15591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15592 conftest$ac_exeext conftest.$ac_ext
15593 LIBS=$ac_check_lib_save_LIBS
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15596 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15597 if test "x$ac_cv_lib_dl_dlopen" = xyes
15599 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15604 lt_cv_dlopen_self=yes
15611 # Don't try to run any link tests for TPF. We know it's impossible
15612 # because TPF is a cross-compiler, and we know how we open DSOs.
15613 lt_cv_dlopen=dlopen
15615 lt_cv_dlopen_self=no
15619 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15620 if test "x$ac_cv_func_shl_load" = xyes
15622 lt_cv_dlopen=shl_load
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15625 printf %s "checking for shl_load in -ldld... " >&6; }
15626 if test ${ac_cv_lib_dld_shl_load+y}
15628 printf %s "(cached) " >&6
15630 ac_check_lib_save_LIBS=$LIBS
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15635 /* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15642 return shl_load ();
15647 if ac_fn_c_try_link "$LINENO"
15649 ac_cv_lib_dld_shl_load=yes
15651 ac_cv_lib_dld_shl_load=no
15653 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15654 conftest$ac_exeext conftest.$ac_ext
15655 LIBS=$ac_check_lib_save_LIBS
15657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15658 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15659 if test "x$ac_cv_lib_dld_shl_load" = xyes
15661 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15663 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15664 if test "x$ac_cv_func_dlopen" = xyes
15666 lt_cv_dlopen=dlopen
15668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15669 printf %s "checking for dlopen in -ldl... " >&6; }
15670 if test ${ac_cv_lib_dl_dlopen+y}
15672 printf %s "(cached) " >&6
15674 ac_check_lib_save_LIBS=$LIBS
15676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15677 /* end confdefs.h. */
15679 /* Override any GCC internal prototype to avoid an error.
15680 Use char because int might match the return type of a GCC
15681 builtin and then its argument prototype would still apply. */
15691 if ac_fn_c_try_link "$LINENO"
15693 ac_cv_lib_dl_dlopen=yes
15695 ac_cv_lib_dl_dlopen=no
15697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15702 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15703 if test "x$ac_cv_lib_dl_dlopen" = xyes
15705 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15708 printf %s "checking for dlopen in -lsvld... " >&6; }
15709 if test ${ac_cv_lib_svld_dlopen+y}
15711 printf %s "(cached) " >&6
15713 ac_check_lib_save_LIBS=$LIBS
15714 LIBS="-lsvld $LIBS"
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15718 /* Override any GCC internal prototype to avoid an error.
15719 Use char because int might match the return type of a GCC
15720 builtin and then its argument prototype would still apply. */
15730 if ac_fn_c_try_link "$LINENO"
15732 ac_cv_lib_svld_dlopen=yes
15734 ac_cv_lib_svld_dlopen=no
15736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15737 conftest$ac_exeext conftest.$ac_ext
15738 LIBS=$ac_check_lib_save_LIBS
15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15741 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15742 if test "x$ac_cv_lib_svld_dlopen" = xyes
15744 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15747 printf %s "checking for dld_link in -ldld... " >&6; }
15748 if test ${ac_cv_lib_dld_dld_link+y}
15750 printf %s "(cached) " >&6
15752 ac_check_lib_save_LIBS=$LIBS
15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h. */
15757 /* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15764 return dld_link ();
15769 if ac_fn_c_try_link "$LINENO"
15771 ac_cv_lib_dld_dld_link=yes
15773 ac_cv_lib_dld_dld_link=no
15775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15780 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15781 if test "x$ac_cv_lib_dld_dld_link" = xyes
15783 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15804 if test no = "$lt_cv_dlopen"; then
15810 case $lt_cv_dlopen in
15812 save_CPPFLAGS=$CPPFLAGS
15813 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15815 save_LDFLAGS=$LDFLAGS
15816 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15819 LIBS="$lt_cv_dlopen_libs $LIBS"
15821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15822 printf %s "checking whether a program can dlopen itself... " >&6; }
15823 if test ${lt_cv_dlopen_self+y}
15825 printf %s "(cached) " >&6
15827 if test yes = "$cross_compiling"; then :
15828 lt_cv_dlopen_self=cross
15830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15831 lt_status=$lt_dlunknown
15832 cat > conftest.$ac_ext <<_LT_EOF
15833 #line $LINENO "configure"
15834 #include "confdefs.h"
15843 # define LT_DLGLOBAL RTLD_GLOBAL
15846 # define LT_DLGLOBAL DL_GLOBAL
15848 # define LT_DLGLOBAL 0
15852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15853 find out it does not work in some platform. */
15854 #ifndef LT_DLLAZY_OR_NOW
15856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15859 # define LT_DLLAZY_OR_NOW DL_LAZY
15862 # define LT_DLLAZY_OR_NOW RTLD_NOW
15865 # define LT_DLLAZY_OR_NOW DL_NOW
15867 # define LT_DLLAZY_OR_NOW 0
15874 /* When -fvisibility=hidden is used, assume the code has been annotated
15875 correspondingly for the symbols needed. */
15876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15877 int fnord () __attribute__((visibility("default")));
15880 int fnord () { return 42; }
15883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15884 int status = $lt_dlunknown;
15888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15891 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15892 else puts (dlerror ());
15894 /* dlclose (self); */
15902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15903 (eval $ac_link) 2>&5
15905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15907 (./conftest; exit; ) >&5 2>/dev/null
15909 case x$lt_status in
15910 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15911 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15912 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15915 # compilation failed
15916 lt_cv_dlopen_self=no
15923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15924 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15926 if test yes = "$lt_cv_dlopen_self"; then
15927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15929 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15930 if test ${lt_cv_dlopen_self_static+y}
15932 printf %s "(cached) " >&6
15934 if test yes = "$cross_compiling"; then :
15935 lt_cv_dlopen_self_static=cross
15937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15938 lt_status=$lt_dlunknown
15939 cat > conftest.$ac_ext <<_LT_EOF
15940 #line $LINENO "configure"
15941 #include "confdefs.h"
15950 # define LT_DLGLOBAL RTLD_GLOBAL
15953 # define LT_DLGLOBAL DL_GLOBAL
15955 # define LT_DLGLOBAL 0
15959 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15960 find out it does not work in some platform. */
15961 #ifndef LT_DLLAZY_OR_NOW
15963 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15966 # define LT_DLLAZY_OR_NOW DL_LAZY
15969 # define LT_DLLAZY_OR_NOW RTLD_NOW
15972 # define LT_DLLAZY_OR_NOW DL_NOW
15974 # define LT_DLLAZY_OR_NOW 0
15981 /* When -fvisibility=hidden is used, assume the code has been annotated
15982 correspondingly for the symbols needed. */
15983 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15984 int fnord () __attribute__((visibility("default")));
15987 int fnord () { return 42; }
15990 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15991 int status = $lt_dlunknown;
15995 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15998 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15999 else puts (dlerror ());
16001 /* dlclose (self); */
16009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16010 (eval $ac_link) 2>&5
16012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16013 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16014 (./conftest; exit; ) >&5 2>/dev/null
16016 case x$lt_status in
16017 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16018 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16019 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16022 # compilation failed
16023 lt_cv_dlopen_self_static=no
16030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16031 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16034 CPPFLAGS=$save_CPPFLAGS
16035 LDFLAGS=$save_LDFLAGS
16040 case $lt_cv_dlopen_self in
16041 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16042 *) enable_dlopen_self=unknown ;;
16045 case $lt_cv_dlopen_self_static in
16046 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16047 *) enable_dlopen_self_static=unknown ;;
16069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16070 printf %s "checking whether stripping libraries is possible... " >&6; }
16071 if test -z "$STRIP"; then
16072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16073 printf "%s\n" "no" >&6; }
16075 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16076 old_striplib="$STRIP --strip-debug"
16077 striplib="$STRIP --strip-unneeded"
16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16079 printf "%s\n" "yes" >&6; }
16083 # FIXME - insert some real tests, host_os isn't really good enough
16084 striplib="$STRIP -x"
16085 old_striplib="$STRIP -S"
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16087 printf "%s\n" "yes" >&6; }
16090 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16091 old_striplib="$STRIP --strip-debug"
16092 striplib="$STRIP --strip-unneeded"
16093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16094 printf "%s\n" "yes" >&6; }
16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 printf "%s\n" "no" >&6; }
16101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16102 printf "%s\n" "no" >&6; }
16119 # Report what library types will actually be built
16120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16121 printf %s "checking if libtool supports shared libraries... " >&6; }
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16123 printf "%s\n" "$can_build_shared" >&6; }
16125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16126 printf %s "checking whether to build shared libraries... " >&6; }
16127 test no = "$can_build_shared" && enable_shared=no
16129 # On AIX, shared libraries and static libraries use the same namespace, and
16130 # are all built from PIC.
16133 test yes = "$enable_shared" && enable_static=no
16134 if test -n "$RANLIB"; then
16135 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16136 postinstall_cmds='$RANLIB $lib'
16141 if test ia64 != "$host_cpu"; then
16142 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16143 yes,aix,yes) ;; # shared object as lib.so file only
16144 yes,svr4,*) ;; # shared object as lib.so archive member only
16145 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16151 printf "%s\n" "$enable_shared" >&6; }
16153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16154 printf %s "checking whether to build static libraries... " >&6; }
16155 # Make sure either enable_shared or enable_static is yes.
16156 test yes = "$enable_shared" || enable_static=yes
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16158 printf "%s\n" "$enable_static" >&6; }
16165 ac_cpp='$CPP $CPPFLAGS'
16166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16186 ac_config_commands="$ac_config_commands libtool"
16191 # Only expand once:
16195 # Extract the first word of "valgrind", so it can be a program name with args.
16196 set dummy valgrind; ac_word=$2
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16198 printf %s "checking for $ac_word... " >&6; }
16199 if test ${ac_cv_path_PATH_VALGRIND+y}
16201 printf %s "(cached) " >&6
16203 case $PATH_VALGRIND in
16205 ac_cv_path_PATH_VALGRIND="$PATH_VALGRIND" # Let the user override the test with a path.
16208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16209 for as_dir in $PATH
16212 case $as_dir in #(((
16215 *) as_dir=$as_dir/ ;;
16217 for ac_exec_ext in '' $ac_executable_extensions; do
16218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16219 ac_cv_path_PATH_VALGRIND="$as_dir$ac_word$ac_exec_ext"
16220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16230 PATH_VALGRIND=$ac_cv_path_PATH_VALGRIND
16231 if test -n "$PATH_VALGRIND"; then
16232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_VALGRIND" >&5
16233 printf "%s\n" "$PATH_VALGRIND" >&6; }
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16236 printf "%s\n" "no" >&6; }
16241 rra_lib_arch_name=lib
16242 # The cast to long int works around a bug in the HP C Compiler
16243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16245 # This bug is HP SR number 8606223364.
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16247 printf %s "checking size of long... " >&6; }
16248 if test ${ac_cv_sizeof_long+y}
16250 printf %s "(cached) " >&6
16252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
16256 if test "$ac_cv_type_long" = yes; then
16257 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16258 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16259 as_fn_error 77 "cannot compute sizeof (long)
16260 See \`config.log' for more details" "$LINENO" 5; }
16262 ac_cv_sizeof_long=0
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16268 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
16272 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
16275 if test "$ac_cv_sizeof_long" -eq 4
16277 rra_lib_arch_name=lib32
16279 if test "$ac_cv_sizeof_long" -eq 8
16281 rra_lib_arch_name=lib64
16286 rra_CDB_includedir=
16295 # Check whether --with-tinycdb was given.
16296 if test ${with_tinycdb+y}
16298 withval=$with_tinycdb; if test x"$withval" = xno
16302 if test x"$withval" != xyes
16304 rra_CDB_root="$withval"
16311 # Check whether --with-tinycdb-include was given.
16312 if test ${with_tinycdb_include+y}
16314 withval=$with_tinycdb_include; if test x"$withval" != xyes && test x"$withval" != xno
16316 rra_CDB_includedir="$withval"
16321 # Check whether --with-tinycdb-lib was given.
16322 if test ${with_tinycdb_lib+y}
16324 withval=$with_tinycdb_lib; if test x"$withval" != xyes && test x"$withval" != xno
16326 rra_CDB_libdir="$withval"
16330 if test x"$rra_use_CDB" != xfalse
16332 if test x"$rra_use_CDB" = xtrue
16334 if test x"$rra_CDB_libdir" != x
16336 CDB_LDFLAGS="-L$rra_CDB_libdir"
16338 if test x"$rra_CDB_root" != x
16341 if test -d "${rra_CDB_root}/$rra_lib_arch_name"
16345 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
16347 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
16352 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
16354 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
16357 CDB_LDFLAGS=`printf "%s\n" "$CDB_LDFLAGS" | sed -e 's/^ *//'`
16360 if test x"$rra_CDB_includedir" != x
16362 CDB_CPPFLAGS="-I$rra_CDB_includedir"
16364 if test x"$rra_CDB_root" != x
16366 if test x"$rra_CDB_root" != x/usr
16368 CDB_CPPFLAGS="-I${rra_CDB_root}/include"
16372 rra_CDB_save_CPPFLAGS="$CPPFLAGS"
16373 rra_CDB_save_LDFLAGS="$LDFLAGS"
16374 rra_CDB_save_LIBS="$LIBS"
16375 CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
16376 LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
16377 LIBS="$CDB_LIBS $LIBS"
16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
16379 printf %s "checking for cdb_init in -lcdb... " >&6; }
16380 if test ${ac_cv_lib_cdb_cdb_init+y}
16382 printf %s "(cached) " >&6
16384 ac_check_lib_save_LIBS=$LIBS
16386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16387 /* end confdefs.h. */
16389 /* Override any GCC internal prototype to avoid an error.
16390 Use char because int might match the return type of a GCC
16391 builtin and then its argument prototype would still apply. */
16396 return cdb_init ();
16401 if ac_fn_c_try_link "$LINENO"
16403 ac_cv_lib_cdb_cdb_init=yes
16405 ac_cv_lib_cdb_cdb_init=no
16407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16408 conftest$ac_exeext conftest.$ac_ext
16409 LIBS=$ac_check_lib_save_LIBS
16411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
16412 printf "%s\n" "$ac_cv_lib_cdb_cdb_init" >&6; }
16413 if test "x$ac_cv_lib_cdb_cdb_init" = xyes
16417 if test x"true" = xtrue
16419 as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
16423 ac_fn_c_check_header_compile "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
16424 if test "x$ac_cv_header_cdb_h" = xyes
16426 printf "%s\n" "#define HAVE_CDB_H 1" >>confdefs.h
16430 CPPFLAGS="$rra_CDB_save_CPPFLAGS"
16431 LDFLAGS="$rra_CDB_save_LDFLAGS"
16432 LIBS="$rra_CDB_save_LIBS"
16434 if test x"$rra_CDB_libdir" != x
16436 CDB_LDFLAGS="-L$rra_CDB_libdir"
16438 if test x"$rra_CDB_root" != x
16441 if test -d "${rra_CDB_root}/$rra_lib_arch_name"
16445 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}"
16447 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/${rra_lib_arch_name}/"
16452 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib"
16454 CDB_LDFLAGS="$CDB_LDFLAGS -L${rra_CDB_root}/lib/"
16457 CDB_LDFLAGS=`printf "%s\n" "$CDB_LDFLAGS" | sed -e 's/^ *//'`
16460 if test x"$rra_CDB_includedir" != x
16462 CDB_CPPFLAGS="-I$rra_CDB_includedir"
16464 if test x"$rra_CDB_root" != x
16466 if test x"$rra_CDB_root" != x/usr
16468 CDB_CPPFLAGS="-I${rra_CDB_root}/include"
16472 rra_CDB_save_CPPFLAGS="$CPPFLAGS"
16473 rra_CDB_save_LDFLAGS="$LDFLAGS"
16474 rra_CDB_save_LIBS="$LIBS"
16475 CPPFLAGS="$CDB_CPPFLAGS $CPPFLAGS"
16476 LDFLAGS="$CDB_LDFLAGS $LDFLAGS"
16477 LIBS="$CDB_LIBS $LIBS"
16478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cdb_init in -lcdb" >&5
16479 printf %s "checking for cdb_init in -lcdb... " >&6; }
16480 if test ${ac_cv_lib_cdb_cdb_init+y}
16482 printf %s "(cached) " >&6
16484 ac_check_lib_save_LIBS=$LIBS
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16489 /* Override any GCC internal prototype to avoid an error.
16490 Use char because int might match the return type of a GCC
16491 builtin and then its argument prototype would still apply. */
16496 return cdb_init ();
16501 if ac_fn_c_try_link "$LINENO"
16503 ac_cv_lib_cdb_cdb_init=yes
16505 ac_cv_lib_cdb_cdb_init=no
16507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16508 conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdb_cdb_init" >&5
16512 printf "%s\n" "$ac_cv_lib_cdb_cdb_init" >&6; }
16513 if test "x$ac_cv_lib_cdb_cdb_init" = xyes
16517 if test x"false" = xtrue
16519 as_fn_error $? "cannot find usable TinyCDB library" "$LINENO" 5
16523 ac_fn_c_check_header_compile "$LINENO" "cdb.h" "ac_cv_header_cdb_h" "$ac_includes_default"
16524 if test "x$ac_cv_header_cdb_h" = xyes
16526 printf "%s\n" "#define HAVE_CDB_H 1" >>confdefs.h
16530 CPPFLAGS="$rra_CDB_save_CPPFLAGS"
16531 LDFLAGS="$rra_CDB_save_LDFLAGS"
16532 LIBS="$rra_CDB_save_LIBS"
16535 if test x"$CDB_LIBS" != x
16539 printf "%s\n" "#define HAVE_CDB 1" >>confdefs.h
16543 rra_CRACKLIB_libdir=
16544 rra_CRACKLIB_includedir=
16554 # Check whether --with-cracklib was given.
16555 if test ${with_cracklib+y}
16557 withval=$with_cracklib; if test x"$withval" = xno
16559 rra_use_CRACKLIB=false
16561 rra_use_CRACKLIB=true
16562 if test x"$withval" != xyes
16564 rra_CRACKLIB_root="$withval"
16570 # Check whether --with-cracklib-include was given.
16571 if test ${with_cracklib_include+y}
16573 withval=$with_cracklib_include; if test x"$withval" != xyes && test x"$withval" != xno
16575 rra_CRACKLIB_includedir="$withval"
16580 # Check whether --with-cracklib-lib was given.
16581 if test ${with_cracklib_lib+y}
16583 withval=$with_cracklib_lib; if test x"$withval" != xyes && test x"$withval" != xno
16585 rra_CRACKLIB_libdir="$withval"
16590 if test x"$rra_use_CRACKLIB" != xfalse
16592 if test x"$rra_use_CRACKLIB" != x
16594 if test x"$rra_CRACKLIB_libdir" != x
16596 CRACKLIB_LDFLAGS="-L$rra_CRACKLIB_libdir"
16598 if test x"$rra_CRACKLIB_root" != x
16601 if test -d "${rra_CRACKLIB_root}/$rra_lib_arch_name"
16605 CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/${rra_lib_arch_name}"
16607 CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/${rra_lib_arch_name}/"
16612 CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/lib"
16614 CRACKLIB_LDFLAGS="$CRACKLIB_LDFLAGS -L${rra_CRACKLIB_root}/lib/"
16617 CRACKLIB_LDFLAGS=`printf "%s\n" "$CRACKLIB_LDFLAGS" | sed -e 's/^ *//'`
16620 if test x"$rra_CRACKLIB_includedir" != x
16622 CRACKLIB_CPPFLAGS="-I$rra_CRACKLIB_includedir"
16624 if test x"$rra_CRACKLIB_root" != x
16626 if test x"$rra_CRACKLIB_root" != x/usr
16628 CRACKLIB_CPPFLAGS="-I${rra_CRACKLIB_root}/include"
16632 rra_CRACKLIB_save_CPPFLAGS="$CPPFLAGS"
16633 rra_CRACKLIB_save_LDFLAGS="$LDFLAGS"
16634 rra_CRACKLIB_save_LIBS="$LIBS"
16635 CPPFLAGS="$CRACKLIB_CPPFLAGS $CPPFLAGS"
16636 LDFLAGS="$CRACKLIB_LDFLAGS $LDFLAGS"
16637 LIBS="$CRACKLIB_LIBS $LIBS"
16638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
16639 printf %s "checking for FascistCheck in -lcrack... " >&6; }
16640 if test ${ac_cv_lib_crack_FascistCheck+y}
16642 printf %s "(cached) " >&6
16644 ac_check_lib_save_LIBS=$LIBS
16645 LIBS="-lcrack $LIBS"
16646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647 /* end confdefs.h. */
16649 /* Override any GCC internal prototype to avoid an error.
16650 Use char because int might match the return type of a GCC
16651 builtin and then its argument prototype would still apply. */
16652 char FascistCheck ();
16656 return FascistCheck ();
16661 if ac_fn_c_try_link "$LINENO"
16663 ac_cv_lib_crack_FascistCheck=yes
16665 ac_cv_lib_crack_FascistCheck=no
16667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16668 conftest$ac_exeext conftest.$ac_ext
16669 LIBS=$ac_check_lib_save_LIBS
16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
16672 printf "%s\n" "$ac_cv_lib_crack_FascistCheck" >&6; }
16673 if test "x$ac_cv_lib_crack_FascistCheck" = xyes
16675 CRACKLIB_LIBS=-lcrack
16677 as_fn_error $? "cannot find usable CrackLib library" "$LINENO" 5
16680 ac_fn_c_check_header_compile "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
16681 if test "x$ac_cv_header_crack_h" = xyes
16683 printf "%s\n" "#define HAVE_CRACK_H 1" >>confdefs.h
16688 printf "%s\n" "#define HAVE_SYSTEM_CRACKLIB 1" >>confdefs.h
16690 CPPFLAGS="$rra_CRACKLIB_save_CPPFLAGS"
16691 LDFLAGS="$rra_CRACKLIB_save_LDFLAGS"
16692 LIBS="$rra_CRACKLIB_save_LIBS"
16695 printf "%s\n" "#define HAVE_CRACKLIB 1" >>confdefs.h
16698 if test x"$rra_use_CRACKLIB" = x; then
16699 EMBEDDED_CRACKLIB_TRUE=
16700 EMBEDDED_CRACKLIB_FALSE='#'
16702 EMBEDDED_CRACKLIB_TRUE='#'
16703 EMBEDDED_CRACKLIB_FALSE=
16706 rra_reduced_depends=false
16707 # Check whether --enable-reduced-depends was given.
16708 if test ${enable_reduced_depends+y}
16710 enableval=$enable_reduced_depends; if test x"$enableval" = xyes
16712 rra_reduced_depends=true
16718 rra_krb5_includedir=
16722 # Check whether --with-krb5 was given.
16723 if test ${with_krb5+y}
16725 withval=$with_krb5; if test x"$withval" != xyes && test x"$withval" != xno
16727 rra_krb5_root="$withval"
16732 # Check whether --with-krb5-include was given.
16733 if test ${with_krb5_include+y}
16735 withval=$with_krb5_include; if test x"$withval" != xyes && test x"$withval" != xno
16737 rra_krb5_includedir="$withval"
16742 # Check whether --with-krb5-lib was given.
16743 if test ${with_krb5_lib+y}
16745 withval=$with_krb5_lib; if test x"$withval" != xyes && test x"$withval" != xno
16747 rra_krb5_libdir="$withval"
16757 if test x"$rra_krb5_includedir" != x
16759 rra_krb5_incroot="$rra_krb5_includedir"
16761 if test x"$rra_krb5_root" != x
16763 rra_krb5_incroot="${rra_krb5_root}/include"
16766 if test x"$rra_reduced_depends" = xtrue
16768 if test x"$rra_krb5_libdir" != x
16770 KRB5_LDFLAGS="-L$rra_krb5_libdir"
16772 if test x"$rra_krb5_root" != x
16775 if test -d "$rra_krb5_root/$rra_lib_arch_name"
16779 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
16781 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
16786 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
16788 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
16791 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
16794 if test x"$rra_krb5_includedir" != x
16796 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
16798 if test x"$rra_krb5_root" != x
16800 if test x"$rra_krb5_root" != x/usr
16802 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
16806 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
16807 rra_krb5_save_LDFLAGS="$LDFLAGS"
16808 rra_krb5_save_LIBS="$LIBS"
16809 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
16810 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
16811 LIBS="$KRB5_LIBS $LIBS"
16812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16813 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
16814 if test ${ac_cv_lib_krb5_krb5_init_context+y}
16816 printf %s "(cached) " >&6
16818 ac_check_lib_save_LIBS=$LIBS
16819 LIBS="-lkrb5 $LIBS"
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16826 char krb5_init_context ();
16830 return krb5_init_context ();
16835 if ac_fn_c_try_link "$LINENO"
16837 ac_cv_lib_krb5_krb5_init_context=yes
16839 ac_cv_lib_krb5_krb5_init_context=no
16841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16842 conftest$ac_exeext conftest.$ac_ext
16843 LIBS=$ac_check_lib_save_LIBS
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16846 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16847 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
16850 LIBS="$KRB5_LIBS $LIBS"
16852 for ac_func in krb5_get_error_message
16854 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
16855 if test "x$ac_cv_func_krb5_get_error_message" = xyes
16857 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
16858 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
16859 if test "x$ac_cv_func_krb5_free_error_message" = xyes
16861 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
16867 for ac_func in krb5_get_error_string
16869 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
16870 if test "x$ac_cv_func_krb5_get_error_string" = xyes
16872 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
16876 for ac_func in krb5_get_err_txt
16878 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
16879 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
16881 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
16885 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
16886 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
16888 printf %s "(cached) " >&6
16890 ac_check_lib_save_LIBS=$LIBS
16891 LIBS="-lksvc $LIBS"
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16895 /* Override any GCC internal prototype to avoid an error.
16896 Use char because int might match the return type of a GCC
16897 builtin and then its argument prototype would still apply. */
16898 char krb5_svc_get_msg ();
16902 return krb5_svc_get_msg ();
16907 if ac_fn_c_try_link "$LINENO"
16909 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
16911 ac_cv_lib_ksvc_krb5_svc_get_msg=no
16913 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16914 conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
16918 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
16919 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
16921 KRB5_LIBS="$KRB5_LIBS -lksvc"
16922 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
16924 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
16927 #elif HAVE_KERBEROSV5_KRB5_H
16928 # include <kerberosv5/krb5.h>
16930 # include <krb5/krb5.h>
16934 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
16936 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16942 printf %s "checking for com_err in -lcom_err... " >&6; }
16943 if test ${ac_cv_lib_com_err_com_err+y}
16945 printf %s "(cached) " >&6
16947 ac_check_lib_save_LIBS=$LIBS
16948 LIBS="-lcom_err $LIBS"
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16952 /* Override any GCC internal prototype to avoid an error.
16953 Use char because int might match the return type of a GCC
16954 builtin and then its argument prototype would still apply. */
16964 if ac_fn_c_try_link "$LINENO"
16966 ac_cv_lib_com_err_com_err=yes
16968 ac_cv_lib_com_err_com_err=no
16970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16971 conftest$ac_exeext conftest.$ac_ext
16972 LIBS=$ac_check_lib_save_LIBS
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16975 printf "%s\n" "$ac_cv_lib_com_err_com_err" >&6; }
16976 if test "x$ac_cv_lib_com_err_com_err" = xyes
16978 KRB5_LIBS="$KRB5_LIBS -lcom_err"
16980 if test x"true" = xtrue
16982 as_fn_error $? "cannot find usable com_err library" "$LINENO" 5
16988 if test x"$rra_krb5_incroot" = x
16990 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
16991 if test "x$ac_cv_header_et_com_err_h" = xyes
16993 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
16996 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
16997 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
16999 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
17004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
17005 printf %s "checking for et/com_err.h... " >&6; }
17006 if test -f "${rra_krb5_incroot}/et/com_err.h"
17009 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17012 printf "%s\n" "yes" >&6; }
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17016 printf "%s\n" "no" >&6; }
17018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
17019 printf %s "checking for kerberosv5/com_err.h... " >&6; }
17020 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
17023 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
17025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17026 printf "%s\n" "yes" >&6; }
17029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17030 printf "%s\n" "no" >&6; }
17044 rra_krb5_found_header=
17045 if test x"$rra_krb5_incroot" = x
17047 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17049 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
17050 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17051 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17053 cat >>confdefs.h <<_ACEOF
17054 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
17056 rra_krb5_found_header=true
17061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17062 printf %s "checking for krb5.h... " >&6; }
17063 if test -f "${rra_krb5_incroot}/krb5.h"
17066 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 printf "%s\n" "yes" >&6; }
17070 rra_krb5_found_header=true
17072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073 printf "%s\n" "no" >&6; }
17075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17076 printf %s "checking for kerberosv5/krb5.h... " >&6; }
17077 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
17080 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
17082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17083 printf "%s\n" "yes" >&6; }
17084 rra_krb5_found_header=true
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17087 printf "%s\n" "no" >&6; }
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17090 printf %s "checking for krb5/krb5.h... " >&6; }
17091 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
17094 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17097 printf "%s\n" "yes" >&6; }
17098 rra_krb5_found_header=true
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17101 printf "%s\n" "no" >&6; }
17104 if test x"$rra_krb5_found_header" = xtrue
17110 if test x"true" = xtrue
17112 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
17116 if test x"true" = xtrue
17118 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
17122 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17123 LDFLAGS="$rra_krb5_save_LDFLAGS"
17124 LIBS="$rra_krb5_save_LIBS"
17126 if test x"$rra_krb5_includedir" = x && test x"$rra_krb5_libdir" = x
17128 rra_krb5_config_KRB5=
17129 rra_krb5_config_KRB5_ok=
17130 if test x"${rra_krb5_root}" != x && test -x "${rra_krb5_root}/bin/krb5-config"
17132 rra_krb5_config_KRB5="${rra_krb5_root}/bin/krb5-config"
17135 # Extract the first word of "krb5-config", so it can be a program name with args.
17136 set dummy krb5-config; ac_word=$2
17137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17138 printf %s "checking for $ac_word... " >&6; }
17139 if test ${ac_cv_path_PATH_KRB5_CONFIG+y}
17141 printf %s "(cached) " >&6
17143 case $PATH_KRB5_CONFIG in
17145 ac_cv_path_PATH_KRB5_CONFIG="$PATH_KRB5_CONFIG" # Let the user override the test with a path.
17148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17149 as_dummy="${PATH}:/usr/kerberos/bin"
17150 for as_dir in $as_dummy
17153 case $as_dir in #(((
17156 *) as_dir=$as_dir/ ;;
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17160 ac_cv_path_PATH_KRB5_CONFIG="$as_dir$ac_word$ac_exec_ext"
17161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17171 PATH_KRB5_CONFIG=$ac_cv_path_PATH_KRB5_CONFIG
17172 if test -n "$PATH_KRB5_CONFIG"; then
17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_KRB5_CONFIG" >&5
17174 printf "%s\n" "$PATH_KRB5_CONFIG" >&6; }
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17177 printf "%s\n" "no" >&6; }
17181 rra_krb5_config_KRB5="$PATH_KRB5_CONFIG"
17183 if test x"$rra_krb5_config_KRB5" != x && test -x "$rra_krb5_config_KRB5"
17185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5 support in krb5-config" >&5
17186 printf %s "checking for krb5 support in krb5-config... " >&6; }
17187 if test ${rra_cv_lib_KRB5_config+y}
17189 printf %s "(cached) " >&6
17191 if "$rra_krb5_config_KRB5" 2>&1 | grep krb5 >/dev/null 2>&1
17193 rra_cv_lib_KRB5_config=yes
17195 rra_cv_lib_KRB5_config=no
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_lib_KRB5_config" >&5
17199 printf "%s\n" "$rra_cv_lib_KRB5_config" >&6; }
17200 if test "$rra_cv_lib_KRB5_config" = yes
17202 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags krb5 2>/dev/null`
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --deps support in krb5-config" >&5
17207 printf %s "checking for --deps support in krb5-config... " >&6; }
17208 if test ${rra_cv_krb5_config_deps+y}
17210 printf %s "(cached) " >&6
17212 if "$rra_krb5_config_KRB5" 2>&1 | grep deps >/dev/null 2>&1
17214 rra_cv_krb5_config_deps=yes
17216 rra_cv_krb5_config_deps=no
17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_krb5_config_deps" >&5
17220 printf "%s\n" "$rra_cv_krb5_config_deps" >&6; }
17221 if test x"$rra_reduced_depends" = xfalse \
17222 && test x"$rra_cv_krb5_config_deps" = xyes
17224 KRB5_LIBS=`"$rra_krb5_config_KRB5" --deps --libs krb5 2>/dev/null`
17226 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
17228 rra_krb5_config_KRB5_ok=yes
17230 if test x"krb5" = xkrb5
17232 KRB5_CPPFLAGS=`"$rra_krb5_config_KRB5" --cflags 2>/dev/null`
17233 KRB5_LIBS=`"$rra_krb5_config_KRB5" --libs krb5 2>/dev/null`
17234 rra_krb5_config_KRB5_ok=yes
17238 if test x"$rra_krb5_config_KRB5_ok" = xyes
17240 KRB5_CPPFLAGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's%-I/usr/include %%'`
17241 KRB5_CPPFLAGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's%-I/usr/include$%%'`
17242 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17243 rra_krb5_save_LDFLAGS="$LDFLAGS"
17244 rra_krb5_save_LIBS="$LIBS"
17245 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17246 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17247 LIBS="$KRB5_LIBS $LIBS"
17248 ac_fn_c_check_func "$LINENO" "krb5_init_context" "ac_cv_func_krb5_init_context"
17249 if test "x$ac_cv_func_krb5_init_context" = xyes
17251 rra_krb5_found_header=
17252 if test x"$rra_krb5_incroot" = x
17254 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
17256 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
17257 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17258 if eval test \"x\$"$as_ac_Header"\" = x"yes"
17260 cat >>confdefs.h <<_ACEOF
17261 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
17263 rra_krb5_found_header=true
17268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
17269 printf %s "checking for krb5.h... " >&6; }
17270 if test -f "${rra_krb5_incroot}/krb5.h"
17273 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17276 printf "%s\n" "yes" >&6; }
17277 rra_krb5_found_header=true
17279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17280 printf "%s\n" "no" >&6; }
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
17283 printf %s "checking for kerberosv5/krb5.h... " >&6; }
17284 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
17287 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
17289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17290 printf "%s\n" "yes" >&6; }
17291 rra_krb5_found_header=true
17293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17294 printf "%s\n" "no" >&6; }
17296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
17297 printf %s "checking for krb5/krb5.h... " >&6; }
17298 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
17301 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
17303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17304 printf "%s\n" "yes" >&6; }
17305 rra_krb5_found_header=true
17307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 printf "%s\n" "no" >&6; }
17311 if test x"$rra_krb5_found_header" = xtrue
17313 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17314 LDFLAGS="$rra_krb5_save_LDFLAGS"
17315 LIBS="$rra_krb5_save_LIBS"
17317 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
17318 LDFLAGS="$rra_krb5_save_LDFLAGS"
17319 LIBS="$rra_krb5_save_LIBS"
17322 if test x"$rra_krb5_libdir" != x
17324 KRB5_LDFLAGS="-L$rra_krb5_libdir"
17326 if test x"$rra_krb5_root" != x
17329 if test -d "$rra_krb5_root/$rra_lib_arch_name"
17333 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
17335 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
17340 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
17342 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
17345 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
17348 if test x"$rra_krb5_includedir" != x
17350 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
17352 if test x"$rra_krb5_root" != x
17354 if test x"$rra_krb5_root" != x/usr
17356 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
17360 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
17361 rra_krb5_save_LDFLAGS="$LDFLAGS"
17362 rra_krb5_save_LIBS="$LIBS"
17363 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
17364 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
17365 LIBS="$KRB5_LIBS $LIBS"
17368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
17369 printf %s "checking for library containing res_search... " >&6; }
17370 if test ${ac_cv_search_res_search+y}
17372 printf %s "(cached) " >&6
17374 ac_func_search_save_LIBS=$LIBS
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17378 /* Override any GCC internal prototype to avoid an error.
17379 Use char because int might match the return type of a GCC
17380 builtin and then its argument prototype would still apply. */
17381 char res_search ();
17385 return res_search ();
17390 for ac_lib in '' resolv
17392 if test -z "$ac_lib"; then
17393 ac_res="none required"
17396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17398 if ac_fn_c_try_link "$LINENO"
17400 ac_cv_search_res_search=$ac_res
17402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17404 if test ${ac_cv_search_res_search+y}
17409 if test ${ac_cv_search_res_search+y}
17413 ac_cv_search_res_search=no
17415 rm conftest.$ac_ext
17416 LIBS=$ac_func_search_save_LIBS
17418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
17419 printf "%s\n" "$ac_cv_search_res_search" >&6; }
17420 ac_res=$ac_cv_search_res_search
17421 if test "$ac_res" != no
17423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
17427 printf %s "checking for library containing __res_search... " >&6; }
17428 if test ${ac_cv_search___res_search+y}
17430 printf %s "(cached) " >&6
17432 ac_func_search_save_LIBS=$LIBS
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17436 /* Override any GCC internal prototype to avoid an error.
17437 Use char because int might match the return type of a GCC
17438 builtin and then its argument prototype would still apply. */
17439 char __res_search ();
17443 return __res_search ();
17448 for ac_lib in '' resolv
17450 if test -z "$ac_lib"; then
17451 ac_res="none required"
17454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17456 if ac_fn_c_try_link "$LINENO"
17458 ac_cv_search___res_search=$ac_res
17460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17462 if test ${ac_cv_search___res_search+y}
17467 if test ${ac_cv_search___res_search+y}
17471 ac_cv_search___res_search=no
17473 rm conftest.$ac_ext
17474 LIBS=$ac_func_search_save_LIBS
17476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
17477 printf "%s\n" "$ac_cv_search___res_search" >&6; }
17478 ac_res=$ac_cv_search___res_search
17479 if test "$ac_res" != no
17481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
17488 printf %s "checking for library containing gethostbyname... " >&6; }
17489 if test ${ac_cv_search_gethostbyname+y}
17491 printf %s "(cached) " >&6
17493 ac_func_search_save_LIBS=$LIBS
17494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17495 /* end confdefs.h. */
17497 /* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17500 char gethostbyname ();
17504 return gethostbyname ();
17509 for ac_lib in '' nsl
17511 if test -z "$ac_lib"; then
17512 ac_res="none required"
17515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17517 if ac_fn_c_try_link "$LINENO"
17519 ac_cv_search_gethostbyname=$ac_res
17521 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17523 if test ${ac_cv_search_gethostbyname+y}
17528 if test ${ac_cv_search_gethostbyname+y}
17532 ac_cv_search_gethostbyname=no
17534 rm conftest.$ac_ext
17535 LIBS=$ac_func_search_save_LIBS
17537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
17538 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
17539 ac_res=$ac_cv_search_gethostbyname
17540 if test "$ac_res" != no
17542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
17547 printf %s "checking for library containing socket... " >&6; }
17548 if test ${ac_cv_search_socket+y}
17550 printf %s "(cached) " >&6
17552 ac_func_search_save_LIBS=$LIBS
17553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h. */
17556 /* Override any GCC internal prototype to avoid an error.
17557 Use char because int might match the return type of a GCC
17558 builtin and then its argument prototype would still apply. */
17568 for ac_lib in '' socket
17570 if test -z "$ac_lib"; then
17571 ac_res="none required"
17574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17576 if ac_fn_c_try_link "$LINENO"
17578 ac_cv_search_socket=$ac_res
17580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17582 if test ${ac_cv_search_socket+y}
17587 if test ${ac_cv_search_socket+y}
17591 ac_cv_search_socket=no
17593 rm conftest.$ac_ext
17594 LIBS=$ac_func_search_save_LIBS
17596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
17597 printf "%s\n" "$ac_cv_search_socket" >&6; }
17598 ac_res=$ac_cv_search_socket
17599 if test "$ac_res" != no
17601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
17605 printf %s "checking for socket in -lnsl... " >&6; }
17606 if test ${ac_cv_lib_nsl_socket+y}
17608 printf %s "(cached) " >&6
17610 ac_check_lib_save_LIBS=$LIBS
17611 LIBS="-lnsl -lsocket $LIBS"
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17615 /* Override any GCC internal prototype to avoid an error.
17616 Use char because int might match the return type of a GCC
17617 builtin and then its argument prototype would still apply. */
17627 if ac_fn_c_try_link "$LINENO"
17629 ac_cv_lib_nsl_socket=yes
17631 ac_cv_lib_nsl_socket=no
17633 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17634 conftest$ac_exeext conftest.$ac_ext
17635 LIBS=$ac_check_lib_save_LIBS
17637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
17638 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
17639 if test "x$ac_cv_lib_nsl_socket" = xyes
17641 LIBS="-lnsl -lsocket $LIBS"
17646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
17647 printf %s "checking for library containing crypt... " >&6; }
17648 if test ${ac_cv_search_crypt+y}
17650 printf %s "(cached) " >&6
17652 ac_func_search_save_LIBS=$LIBS
17653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h. */
17656 /* Override any GCC internal prototype to avoid an error.
17657 Use char because int might match the return type of a GCC
17658 builtin and then its argument prototype would still apply. */
17668 for ac_lib in '' crypt
17670 if test -z "$ac_lib"; then
17671 ac_res="none required"
17674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17676 if ac_fn_c_try_link "$LINENO"
17678 ac_cv_search_crypt=$ac_res
17680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17682 if test ${ac_cv_search_crypt+y}
17687 if test ${ac_cv_search_crypt+y}
17691 ac_cv_search_crypt=no
17693 rm conftest.$ac_ext
17694 LIBS=$ac_func_search_save_LIBS
17696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
17697 printf "%s\n" "$ac_cv_search_crypt" >&6; }
17698 ac_res=$ac_cv_search_crypt
17699 if test "$ac_res" != no
17701 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
17706 printf %s "checking for library containing roken_concat... " >&6; }
17707 if test ${ac_cv_search_roken_concat+y}
17709 printf %s "(cached) " >&6
17711 ac_func_search_save_LIBS=$LIBS
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17718 char roken_concat ();
17722 return roken_concat ();
17727 for ac_lib in '' roken
17729 if test -z "$ac_lib"; then
17730 ac_res="none required"
17733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17735 if ac_fn_c_try_link "$LINENO"
17737 ac_cv_search_roken_concat=$ac_res
17739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17741 if test ${ac_cv_search_roken_concat+y}
17746 if test ${ac_cv_search_roken_concat+y}
17750 ac_cv_search_roken_concat=no
17752 rm conftest.$ac_ext
17753 LIBS=$ac_func_search_save_LIBS
17755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
17756 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
17757 ac_res=$ac_cv_search_roken_concat
17758 if test "$ac_res" != no
17760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17764 rra_krb5_extra="$LIBS"
17765 LIBS="$rra_krb5_save_LIBS"
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
17767 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
17768 if test ${ac_cv_lib_krb5_krb5_init_context+y}
17770 printf %s "(cached) " >&6
17772 ac_check_lib_save_LIBS=$LIBS
17773 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
17774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17775 /* end confdefs.h. */
17777 /* Override any GCC internal prototype to avoid an error.
17778 Use char because int might match the return type of a GCC
17779 builtin and then its argument prototype would still apply. */
17780 char krb5_init_context ();
17784 return krb5_init_context ();
17789 if ac_fn_c_try_link "$LINENO"
17791 ac_cv_lib_krb5_krb5_init_context=yes
17793 ac_cv_lib_krb5_krb5_init_context=no
17795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17796 conftest$ac_exeext conftest.$ac_ext
17797 LIBS=$ac_check_lib_save_LIBS
17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
17800 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
17801 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
17803 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
17805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
17806 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
17807 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
17809 printf %s "(cached) " >&6
17811 ac_check_lib_save_LIBS=$LIBS
17812 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
17813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17814 /* end confdefs.h. */
17816 /* Override any GCC internal prototype to avoid an error.
17817 Use char because int might match the return type of a GCC
17818 builtin and then its argument prototype would still apply. */
17819 char krb5int_getspecific ();
17823 return krb5int_getspecific ();
17828 if ac_fn_c_try_link "$LINENO"
17830 ac_cv_lib_krb5support_krb5int_getspecific=yes
17832 ac_cv_lib_krb5support_krb5int_getspecific=no
17834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17835 conftest$ac_exeext conftest.$ac_ext
17836 LIBS=$ac_check_lib_save_LIBS
17838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
17839 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
17840 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
17842 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
17844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
17845 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
17846 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
17848 printf %s "(cached) " >&6
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-lpthreads $LIBS"
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 /* Override any GCC internal prototype to avoid an error.
17856 Use char because int might match the return type of a GCC
17857 builtin and then its argument prototype would still apply. */
17858 char pthread_setspecific ();
17862 return pthread_setspecific ();
17867 if ac_fn_c_try_link "$LINENO"
17869 ac_cv_lib_pthreads_pthread_setspecific=yes
17871 ac_cv_lib_pthreads_pthread_setspecific=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17874 conftest$ac_exeext conftest.$ac_ext
17875 LIBS=$ac_check_lib_save_LIBS
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
17878 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
17879 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
17881 rra_krb5_pthread="-lpthreads"
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
17884 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
17885 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
17887 printf %s "(cached) " >&6
17889 ac_check_lib_save_LIBS=$LIBS
17890 LIBS="-lpthread $LIBS"
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 char pthread_setspecific ();
17901 return pthread_setspecific ();
17906 if ac_fn_c_try_link "$LINENO"
17908 ac_cv_lib_pthread_pthread_setspecific=yes
17910 ac_cv_lib_pthread_pthread_setspecific=no
17912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17913 conftest$ac_exeext conftest.$ac_ext
17914 LIBS=$ac_check_lib_save_LIBS
17916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
17917 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
17918 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
17920 rra_krb5_pthread="-lpthread"
17925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
17926 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
17927 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
17929 printf %s "(cached) " >&6
17931 ac_check_lib_save_LIBS=$LIBS
17932 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
17933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17934 /* end confdefs.h. */
17936 /* Override any GCC internal prototype to avoid an error.
17937 Use char because int might match the return type of a GCC
17938 builtin and then its argument prototype would still apply. */
17939 char krb5int_setspecific ();
17943 return krb5int_setspecific ();
17948 if ac_fn_c_try_link "$LINENO"
17950 ac_cv_lib_krb5support_krb5int_setspecific=yes
17952 ac_cv_lib_krb5support_krb5int_setspecific=no
17954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17955 conftest$ac_exeext conftest.$ac_ext
17956 LIBS=$ac_check_lib_save_LIBS
17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
17959 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
17960 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
17962 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
17968 printf %s "checking for error_message in -lcom_err... " >&6; }
17969 if test ${ac_cv_lib_com_err_error_message+y}
17971 printf %s "(cached) " >&6
17973 ac_check_lib_save_LIBS=$LIBS
17974 LIBS="-lcom_err $rra_krb5_extra $LIBS"
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17978 /* Override any GCC internal prototype to avoid an error.
17979 Use char because int might match the return type of a GCC
17980 builtin and then its argument prototype would still apply. */
17981 char error_message ();
17985 return error_message ();
17990 if ac_fn_c_try_link "$LINENO"
17992 ac_cv_lib_com_err_error_message=yes
17994 ac_cv_lib_com_err_error_message=no
17996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17997 conftest$ac_exeext conftest.$ac_ext
17998 LIBS=$ac_check_lib_save_LIBS
18000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
18001 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
18002 if test "x$ac_cv_lib_com_err_error_message" = xyes
18004 rra_krb5_extra="-lcom_err $rra_krb5_extra"
18007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
18008 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
18009 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
18011 printf %s "(cached) " >&6
18013 ac_check_lib_save_LIBS=$LIBS
18014 LIBS="-lksvc $rra_krb5_extra $LIBS"
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18018 /* Override any GCC internal prototype to avoid an error.
18019 Use char because int might match the return type of a GCC
18020 builtin and then its argument prototype would still apply. */
18021 char krb5_svc_get_msg ();
18025 return krb5_svc_get_msg ();
18030 if ac_fn_c_try_link "$LINENO"
18032 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
18034 ac_cv_lib_ksvc_krb5_svc_get_msg=no
18036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18037 conftest$ac_exeext conftest.$ac_ext
18038 LIBS=$ac_check_lib_save_LIBS
18040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
18041 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
18042 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
18044 rra_krb5_extra="-lksvc $rra_krb5_extra"
18047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
18048 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
18049 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
18051 printf %s "(cached) " >&6
18053 ac_check_lib_save_LIBS=$LIBS
18054 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18058 /* Override any GCC internal prototype to avoid an error.
18059 Use char because int might match the return type of a GCC
18060 builtin and then its argument prototype would still apply. */
18061 char krb5int_hash_md5 ();
18065 return krb5int_hash_md5 ();
18070 if ac_fn_c_try_link "$LINENO"
18072 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
18074 ac_cv_lib_k5crypto_krb5int_hash_md5=no
18076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18077 conftest$ac_exeext conftest.$ac_ext
18078 LIBS=$ac_check_lib_save_LIBS
18080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
18081 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
18082 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
18084 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
18087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
18088 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
18089 if test ${ac_cv_lib_k5profile_profile_get_values+y}
18091 printf %s "(cached) " >&6
18093 ac_check_lib_save_LIBS=$LIBS
18094 LIBS="-lk5profile $rra_krb5_extra $LIBS"
18095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h. */
18098 /* Override any GCC internal prototype to avoid an error.
18099 Use char because int might match the return type of a GCC
18100 builtin and then its argument prototype would still apply. */
18101 char profile_get_values ();
18105 return profile_get_values ();
18110 if ac_fn_c_try_link "$LINENO"
18112 ac_cv_lib_k5profile_profile_get_values=yes
18114 ac_cv_lib_k5profile_profile_get_values=no
18116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18117 conftest$ac_exeext conftest.$ac_ext
18118 LIBS=$ac_check_lib_save_LIBS
18120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
18121 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
18122 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
18124 rra_krb5_extra="-lk5profile $rra_krb5_extra"
18127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
18128 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
18129 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
18131 printf %s "(cached) " >&6
18133 ac_check_lib_save_LIBS=$LIBS
18134 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
18135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18136 /* end confdefs.h. */
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18141 char krb5_cc_default ();
18145 return krb5_cc_default ();
18150 if ac_fn_c_try_link "$LINENO"
18152 ac_cv_lib_krb5_krb5_cc_default=yes
18154 ac_cv_lib_krb5_krb5_cc_default=no
18156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18157 conftest$ac_exeext conftest.$ac_ext
18158 LIBS=$ac_check_lib_save_LIBS
18160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
18161 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
18162 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
18164 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
18166 if test x"true" = xtrue
18168 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
18174 LIBS="$KRB5_LIBS $LIBS"
18176 for ac_func in krb5_get_error_message
18178 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
18179 if test "x$ac_cv_func_krb5_get_error_message" = xyes
18181 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
18182 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
18183 if test "x$ac_cv_func_krb5_free_error_message" = xyes
18185 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
18191 for ac_func in krb5_get_error_string
18193 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
18194 if test "x$ac_cv_func_krb5_get_error_string" = xyes
18196 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
18200 for ac_func in krb5_get_err_txt
18202 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
18203 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
18205 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
18209 for ac_func in krb5_svc_get_msg
18211 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
18212 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
18214 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
18215 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
18218 #elif HAVE_KERBEROSV5_KRB5_H
18219 # include <kerberosv5/krb5.h>
18221 # include <krb5/krb5.h>
18225 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
18227 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
18232 if test x"$rra_krb5_incroot" = x
18234 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
18235 if test "x$ac_cv_header_et_com_err_h" = xyes
18237 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
18240 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
18241 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
18243 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
18248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
18249 printf %s "checking for et/com_err.h... " >&6; }
18250 if test -f "${rra_krb5_incroot}/et/com_err.h"
18253 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
18255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18256 printf "%s\n" "yes" >&6; }
18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260 printf "%s\n" "no" >&6; }
18262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
18263 printf %s "checking for kerberosv5/com_err.h... " >&6; }
18264 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
18267 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
18269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18270 printf "%s\n" "yes" >&6; }
18273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 printf "%s\n" "no" >&6; }
18289 rra_krb5_found_header=
18290 if test x"$rra_krb5_incroot" = x
18292 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
18294 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
18295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18296 if eval test \"x\$"$as_ac_Header"\" = x"yes"
18298 cat >>confdefs.h <<_ACEOF
18299 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
18301 rra_krb5_found_header=true
18306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
18307 printf %s "checking for krb5.h... " >&6; }
18308 if test -f "${rra_krb5_incroot}/krb5.h"
18311 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
18313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18314 printf "%s\n" "yes" >&6; }
18315 rra_krb5_found_header=true
18317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18318 printf "%s\n" "no" >&6; }
18320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
18321 printf %s "checking for kerberosv5/krb5.h... " >&6; }
18322 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
18325 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18328 printf "%s\n" "yes" >&6; }
18329 rra_krb5_found_header=true
18331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 printf "%s\n" "no" >&6; }
18334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
18335 printf %s "checking for krb5/krb5.h... " >&6; }
18336 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
18339 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18342 printf "%s\n" "yes" >&6; }
18343 rra_krb5_found_header=true
18345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18346 printf "%s\n" "no" >&6; }
18349 if test x"$rra_krb5_found_header" = xtrue
18355 if test x"true" = xtrue
18357 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
18360 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18361 LDFLAGS="$rra_krb5_save_LDFLAGS"
18362 LIBS="$rra_krb5_save_LIBS"
18365 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
18366 LDFLAGS="$rra_krb5_save_LDFLAGS"
18367 LIBS="$rra_krb5_save_LIBS"
18370 if test x"$rra_krb5_libdir" != x
18372 KRB5_LDFLAGS="-L$rra_krb5_libdir"
18374 if test x"$rra_krb5_root" != x
18377 if test -d "$rra_krb5_root/$rra_lib_arch_name"
18381 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
18383 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
18388 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
18390 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
18393 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
18396 if test x"$rra_krb5_includedir" != x
18398 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
18400 if test x"$rra_krb5_root" != x
18402 if test x"$rra_krb5_root" != x/usr
18404 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
18408 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
18409 rra_krb5_save_LDFLAGS="$LDFLAGS"
18410 rra_krb5_save_LIBS="$LIBS"
18411 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
18412 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
18413 LIBS="$KRB5_LIBS $LIBS"
18416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
18417 printf %s "checking for library containing res_search... " >&6; }
18418 if test ${ac_cv_search_res_search+y}
18420 printf %s "(cached) " >&6
18422 ac_func_search_save_LIBS=$LIBS
18423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18424 /* end confdefs.h. */
18426 /* Override any GCC internal prototype to avoid an error.
18427 Use char because int might match the return type of a GCC
18428 builtin and then its argument prototype would still apply. */
18429 char res_search ();
18433 return res_search ();
18438 for ac_lib in '' resolv
18440 if test -z "$ac_lib"; then
18441 ac_res="none required"
18444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18446 if ac_fn_c_try_link "$LINENO"
18448 ac_cv_search_res_search=$ac_res
18450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18452 if test ${ac_cv_search_res_search+y}
18457 if test ${ac_cv_search_res_search+y}
18461 ac_cv_search_res_search=no
18463 rm conftest.$ac_ext
18464 LIBS=$ac_func_search_save_LIBS
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
18467 printf "%s\n" "$ac_cv_search_res_search" >&6; }
18468 ac_res=$ac_cv_search_res_search
18469 if test "$ac_res" != no
18471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
18475 printf %s "checking for library containing __res_search... " >&6; }
18476 if test ${ac_cv_search___res_search+y}
18478 printf %s "(cached) " >&6
18480 ac_func_search_save_LIBS=$LIBS
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18487 char __res_search ();
18491 return __res_search ();
18496 for ac_lib in '' resolv
18498 if test -z "$ac_lib"; then
18499 ac_res="none required"
18502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18504 if ac_fn_c_try_link "$LINENO"
18506 ac_cv_search___res_search=$ac_res
18508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18510 if test ${ac_cv_search___res_search+y}
18515 if test ${ac_cv_search___res_search+y}
18519 ac_cv_search___res_search=no
18521 rm conftest.$ac_ext
18522 LIBS=$ac_func_search_save_LIBS
18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
18525 printf "%s\n" "$ac_cv_search___res_search" >&6; }
18526 ac_res=$ac_cv_search___res_search
18527 if test "$ac_res" != no
18529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
18536 printf %s "checking for library containing gethostbyname... " >&6; }
18537 if test ${ac_cv_search_gethostbyname+y}
18539 printf %s "(cached) " >&6
18541 ac_func_search_save_LIBS=$LIBS
18542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543 /* end confdefs.h. */
18545 /* Override any GCC internal prototype to avoid an error.
18546 Use char because int might match the return type of a GCC
18547 builtin and then its argument prototype would still apply. */
18548 char gethostbyname ();
18552 return gethostbyname ();
18557 for ac_lib in '' nsl
18559 if test -z "$ac_lib"; then
18560 ac_res="none required"
18563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18565 if ac_fn_c_try_link "$LINENO"
18567 ac_cv_search_gethostbyname=$ac_res
18569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18571 if test ${ac_cv_search_gethostbyname+y}
18576 if test ${ac_cv_search_gethostbyname+y}
18580 ac_cv_search_gethostbyname=no
18582 rm conftest.$ac_ext
18583 LIBS=$ac_func_search_save_LIBS
18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
18586 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
18587 ac_res=$ac_cv_search_gethostbyname
18588 if test "$ac_res" != no
18590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
18595 printf %s "checking for library containing socket... " >&6; }
18596 if test ${ac_cv_search_socket+y}
18598 printf %s "(cached) " >&6
18600 ac_func_search_save_LIBS=$LIBS
18601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18616 for ac_lib in '' socket
18618 if test -z "$ac_lib"; then
18619 ac_res="none required"
18622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18624 if ac_fn_c_try_link "$LINENO"
18626 ac_cv_search_socket=$ac_res
18628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18630 if test ${ac_cv_search_socket+y}
18635 if test ${ac_cv_search_socket+y}
18639 ac_cv_search_socket=no
18641 rm conftest.$ac_ext
18642 LIBS=$ac_func_search_save_LIBS
18644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
18645 printf "%s\n" "$ac_cv_search_socket" >&6; }
18646 ac_res=$ac_cv_search_socket
18647 if test "$ac_res" != no
18649 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
18653 printf %s "checking for socket in -lnsl... " >&6; }
18654 if test ${ac_cv_lib_nsl_socket+y}
18656 printf %s "(cached) " >&6
18658 ac_check_lib_save_LIBS=$LIBS
18659 LIBS="-lnsl -lsocket $LIBS"
18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18663 /* Override any GCC internal prototype to avoid an error.
18664 Use char because int might match the return type of a GCC
18665 builtin and then its argument prototype would still apply. */
18675 if ac_fn_c_try_link "$LINENO"
18677 ac_cv_lib_nsl_socket=yes
18679 ac_cv_lib_nsl_socket=no
18681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18682 conftest$ac_exeext conftest.$ac_ext
18683 LIBS=$ac_check_lib_save_LIBS
18685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
18686 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
18687 if test "x$ac_cv_lib_nsl_socket" = xyes
18689 LIBS="-lnsl -lsocket $LIBS"
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
18695 printf %s "checking for library containing crypt... " >&6; }
18696 if test ${ac_cv_search_crypt+y}
18698 printf %s "(cached) " >&6
18700 ac_func_search_save_LIBS=$LIBS
18701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18704 /* Override any GCC internal prototype to avoid an error.
18705 Use char because int might match the return type of a GCC
18706 builtin and then its argument prototype would still apply. */
18716 for ac_lib in '' crypt
18718 if test -z "$ac_lib"; then
18719 ac_res="none required"
18722 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18724 if ac_fn_c_try_link "$LINENO"
18726 ac_cv_search_crypt=$ac_res
18728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18730 if test ${ac_cv_search_crypt+y}
18735 if test ${ac_cv_search_crypt+y}
18739 ac_cv_search_crypt=no
18741 rm conftest.$ac_ext
18742 LIBS=$ac_func_search_save_LIBS
18744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
18745 printf "%s\n" "$ac_cv_search_crypt" >&6; }
18746 ac_res=$ac_cv_search_crypt
18747 if test "$ac_res" != no
18749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
18754 printf %s "checking for library containing roken_concat... " >&6; }
18755 if test ${ac_cv_search_roken_concat+y}
18757 printf %s "(cached) " >&6
18759 ac_func_search_save_LIBS=$LIBS
18760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18761 /* end confdefs.h. */
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766 char roken_concat ();
18770 return roken_concat ();
18775 for ac_lib in '' roken
18777 if test -z "$ac_lib"; then
18778 ac_res="none required"
18781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18783 if ac_fn_c_try_link "$LINENO"
18785 ac_cv_search_roken_concat=$ac_res
18787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18789 if test ${ac_cv_search_roken_concat+y}
18794 if test ${ac_cv_search_roken_concat+y}
18798 ac_cv_search_roken_concat=no
18800 rm conftest.$ac_ext
18801 LIBS=$ac_func_search_save_LIBS
18803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
18804 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
18805 ac_res=$ac_cv_search_roken_concat
18806 if test "$ac_res" != no
18808 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18812 rra_krb5_extra="$LIBS"
18813 LIBS="$rra_krb5_save_LIBS"
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
18815 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
18816 if test ${ac_cv_lib_krb5_krb5_init_context+y}
18818 printf %s "(cached) " >&6
18820 ac_check_lib_save_LIBS=$LIBS
18821 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
18822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18823 /* end confdefs.h. */
18825 /* Override any GCC internal prototype to avoid an error.
18826 Use char because int might match the return type of a GCC
18827 builtin and then its argument prototype would still apply. */
18828 char krb5_init_context ();
18832 return krb5_init_context ();
18837 if ac_fn_c_try_link "$LINENO"
18839 ac_cv_lib_krb5_krb5_init_context=yes
18841 ac_cv_lib_krb5_krb5_init_context=no
18843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
18848 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
18849 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
18851 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
18853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
18854 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
18855 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
18857 printf %s "(cached) " >&6
18859 ac_check_lib_save_LIBS=$LIBS
18860 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18864 /* Override any GCC internal prototype to avoid an error.
18865 Use char because int might match the return type of a GCC
18866 builtin and then its argument prototype would still apply. */
18867 char krb5int_getspecific ();
18871 return krb5int_getspecific ();
18876 if ac_fn_c_try_link "$LINENO"
18878 ac_cv_lib_krb5support_krb5int_getspecific=yes
18880 ac_cv_lib_krb5support_krb5int_getspecific=no
18882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18883 conftest$ac_exeext conftest.$ac_ext
18884 LIBS=$ac_check_lib_save_LIBS
18886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
18887 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
18888 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
18890 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
18892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
18893 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
18894 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
18896 printf %s "(cached) " >&6
18898 ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lpthreads $LIBS"
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18906 char pthread_setspecific ();
18910 return pthread_setspecific ();
18915 if ac_fn_c_try_link "$LINENO"
18917 ac_cv_lib_pthreads_pthread_setspecific=yes
18919 ac_cv_lib_pthreads_pthread_setspecific=no
18921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
18926 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
18927 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
18929 rra_krb5_pthread="-lpthreads"
18931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
18932 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
18933 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
18935 printf %s "(cached) " >&6
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lpthread $LIBS"
18939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18940 /* end confdefs.h. */
18942 /* Override any GCC internal prototype to avoid an error.
18943 Use char because int might match the return type of a GCC
18944 builtin and then its argument prototype would still apply. */
18945 char pthread_setspecific ();
18949 return pthread_setspecific ();
18954 if ac_fn_c_try_link "$LINENO"
18956 ac_cv_lib_pthread_pthread_setspecific=yes
18958 ac_cv_lib_pthread_pthread_setspecific=no
18960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18961 conftest$ac_exeext conftest.$ac_ext
18962 LIBS=$ac_check_lib_save_LIBS
18964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
18965 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
18966 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
18968 rra_krb5_pthread="-lpthread"
18973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
18974 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
18975 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
18977 printf %s "(cached) " >&6
18979 ac_check_lib_save_LIBS=$LIBS
18980 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18984 /* Override any GCC internal prototype to avoid an error.
18985 Use char because int might match the return type of a GCC
18986 builtin and then its argument prototype would still apply. */
18987 char krb5int_setspecific ();
18991 return krb5int_setspecific ();
18996 if ac_fn_c_try_link "$LINENO"
18998 ac_cv_lib_krb5support_krb5int_setspecific=yes
19000 ac_cv_lib_krb5support_krb5int_setspecific=no
19002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19003 conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_check_lib_save_LIBS
19006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
19007 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
19008 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
19010 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
19015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
19016 printf %s "checking for error_message in -lcom_err... " >&6; }
19017 if test ${ac_cv_lib_com_err_error_message+y}
19019 printf %s "(cached) " >&6
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lcom_err $rra_krb5_extra $LIBS"
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029 char error_message ();
19033 return error_message ();
19038 if ac_fn_c_try_link "$LINENO"
19040 ac_cv_lib_com_err_error_message=yes
19042 ac_cv_lib_com_err_error_message=no
19044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19045 conftest$ac_exeext conftest.$ac_ext
19046 LIBS=$ac_check_lib_save_LIBS
19048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
19049 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
19050 if test "x$ac_cv_lib_com_err_error_message" = xyes
19052 rra_krb5_extra="-lcom_err $rra_krb5_extra"
19055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
19056 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
19057 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
19059 printf %s "(cached) " >&6
19061 ac_check_lib_save_LIBS=$LIBS
19062 LIBS="-lksvc $rra_krb5_extra $LIBS"
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19066 /* Override any GCC internal prototype to avoid an error.
19067 Use char because int might match the return type of a GCC
19068 builtin and then its argument prototype would still apply. */
19069 char krb5_svc_get_msg ();
19073 return krb5_svc_get_msg ();
19078 if ac_fn_c_try_link "$LINENO"
19080 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
19082 ac_cv_lib_ksvc_krb5_svc_get_msg=no
19084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
19089 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
19090 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
19092 rra_krb5_extra="-lksvc $rra_krb5_extra"
19095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
19096 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
19097 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
19099 printf %s "(cached) " >&6
19101 ac_check_lib_save_LIBS=$LIBS
19102 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
19103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19104 /* end confdefs.h. */
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19109 char krb5int_hash_md5 ();
19113 return krb5int_hash_md5 ();
19118 if ac_fn_c_try_link "$LINENO"
19120 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
19122 ac_cv_lib_k5crypto_krb5int_hash_md5=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19125 conftest$ac_exeext conftest.$ac_ext
19126 LIBS=$ac_check_lib_save_LIBS
19128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
19129 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
19130 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
19132 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
19135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
19136 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
19137 if test ${ac_cv_lib_k5profile_profile_get_values+y}
19139 printf %s "(cached) " >&6
19141 ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lk5profile $rra_krb5_extra $LIBS"
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h. */
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19149 char profile_get_values ();
19153 return profile_get_values ();
19158 if ac_fn_c_try_link "$LINENO"
19160 ac_cv_lib_k5profile_profile_get_values=yes
19162 ac_cv_lib_k5profile_profile_get_values=no
19164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19165 conftest$ac_exeext conftest.$ac_ext
19166 LIBS=$ac_check_lib_save_LIBS
19168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
19169 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
19170 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
19172 rra_krb5_extra="-lk5profile $rra_krb5_extra"
19175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
19176 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
19177 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
19179 printf %s "(cached) " >&6
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19186 /* Override any GCC internal prototype to avoid an error.
19187 Use char because int might match the return type of a GCC
19188 builtin and then its argument prototype would still apply. */
19189 char krb5_cc_default ();
19193 return krb5_cc_default ();
19198 if ac_fn_c_try_link "$LINENO"
19200 ac_cv_lib_krb5_krb5_cc_default=yes
19202 ac_cv_lib_krb5_krb5_cc_default=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19205 conftest$ac_exeext conftest.$ac_ext
19206 LIBS=$ac_check_lib_save_LIBS
19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
19209 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
19210 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
19212 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
19214 if test x"true" = xtrue
19216 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
19222 LIBS="$KRB5_LIBS $LIBS"
19224 for ac_func in krb5_get_error_message
19226 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
19227 if test "x$ac_cv_func_krb5_get_error_message" = xyes
19229 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
19230 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
19231 if test "x$ac_cv_func_krb5_free_error_message" = xyes
19233 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
19239 for ac_func in krb5_get_error_string
19241 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19242 if test "x$ac_cv_func_krb5_get_error_string" = xyes
19244 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
19248 for ac_func in krb5_get_err_txt
19250 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19251 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
19253 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
19257 for ac_func in krb5_svc_get_msg
19259 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19260 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
19262 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
19263 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19266 #elif HAVE_KERBEROSV5_KRB5_H
19267 # include <kerberosv5/krb5.h>
19269 # include <krb5/krb5.h>
19273 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
19275 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
19280 if test x"$rra_krb5_incroot" = x
19282 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
19283 if test "x$ac_cv_header_et_com_err_h" = xyes
19285 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19288 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
19289 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
19291 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
19297 printf %s "checking for et/com_err.h... " >&6; }
19298 if test -f "${rra_krb5_incroot}/et/com_err.h"
19301 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19304 printf "%s\n" "yes" >&6; }
19307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19308 printf "%s\n" "no" >&6; }
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
19311 printf %s "checking for kerberosv5/com_err.h... " >&6; }
19312 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
19315 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 printf "%s\n" "yes" >&6; }
19321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19322 printf "%s\n" "no" >&6; }
19337 rra_krb5_found_header=
19338 if test x"$rra_krb5_incroot" = x
19340 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
19342 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
19343 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19344 if eval test \"x\$"$as_ac_Header"\" = x"yes"
19346 cat >>confdefs.h <<_ACEOF
19347 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
19349 rra_krb5_found_header=true
19354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
19355 printf %s "checking for krb5.h... " >&6; }
19356 if test -f "${rra_krb5_incroot}/krb5.h"
19359 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
19361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19362 printf "%s\n" "yes" >&6; }
19363 rra_krb5_found_header=true
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19366 printf "%s\n" "no" >&6; }
19368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
19369 printf %s "checking for kerberosv5/krb5.h... " >&6; }
19370 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
19373 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
19375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19376 printf "%s\n" "yes" >&6; }
19377 rra_krb5_found_header=true
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380 printf "%s\n" "no" >&6; }
19382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
19383 printf %s "checking for krb5/krb5.h... " >&6; }
19384 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
19387 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19390 printf "%s\n" "yes" >&6; }
19391 rra_krb5_found_header=true
19393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19394 printf "%s\n" "no" >&6; }
19397 if test x"$rra_krb5_found_header" = xtrue
19403 if test x"true" = xtrue
19405 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
19408 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19409 LDFLAGS="$rra_krb5_save_LDFLAGS"
19410 LIBS="$rra_krb5_save_LIBS"
19413 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
19414 rra_krb5_save_LDFLAGS="$LDFLAGS"
19415 rra_krb5_save_LIBS="$LIBS"
19416 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
19417 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
19418 LIBS="$KRB5_LIBS $LIBS"
19420 for ac_func in krb5_get_error_message
19422 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
19423 if test "x$ac_cv_func_krb5_get_error_message" = xyes
19425 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
19426 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
19427 if test "x$ac_cv_func_krb5_free_error_message" = xyes
19429 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
19435 for ac_func in krb5_get_error_string
19437 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
19438 if test "x$ac_cv_func_krb5_get_error_string" = xyes
19440 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
19444 for ac_func in krb5_get_err_txt
19446 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
19447 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
19449 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
19453 for ac_func in krb5_svc_get_msg
19455 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
19456 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
19458 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
19459 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
19462 #elif HAVE_KERBEROSV5_KRB5_H
19463 # include <kerberosv5/krb5.h>
19465 # include <krb5/krb5.h>
19469 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
19471 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
19476 if test x"$rra_krb5_incroot" = x
19478 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
19479 if test "x$ac_cv_header_et_com_err_h" = xyes
19481 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19484 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
19485 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
19487 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
19493 printf %s "checking for et/com_err.h... " >&6; }
19494 if test -f "${rra_krb5_incroot}/et/com_err.h"
19497 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19500 printf "%s\n" "yes" >&6; }
19503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19504 printf "%s\n" "no" >&6; }
19506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
19507 printf %s "checking for kerberosv5/com_err.h... " >&6; }
19508 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
19511 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
19513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19514 printf "%s\n" "yes" >&6; }
19517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19518 printf "%s\n" "no" >&6; }
19533 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
19534 LDFLAGS="$rra_krb5_save_LDFLAGS"
19535 LIBS="$rra_krb5_save_LIBS"
19537 if test x"$rra_krb5_libdir" != x
19539 KRB5_LDFLAGS="-L$rra_krb5_libdir"
19541 if test x"$rra_krb5_root" != x
19544 if test -d "$rra_krb5_root/$rra_lib_arch_name"
19548 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
19550 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
19555 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
19557 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
19560 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
19563 if test x"$rra_krb5_includedir" != x
19565 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
19567 if test x"$rra_krb5_root" != x
19569 if test x"$rra_krb5_root" != x/usr
19571 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
19575 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
19576 rra_krb5_save_LDFLAGS="$LDFLAGS"
19577 rra_krb5_save_LIBS="$LIBS"
19578 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
19579 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
19580 LIBS="$KRB5_LIBS $LIBS"
19583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
19584 printf %s "checking for library containing res_search... " >&6; }
19585 if test ${ac_cv_search_res_search+y}
19587 printf %s "(cached) " >&6
19589 ac_func_search_save_LIBS=$LIBS
19590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19591 /* end confdefs.h. */
19593 /* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19596 char res_search ();
19600 return res_search ();
19605 for ac_lib in '' resolv
19607 if test -z "$ac_lib"; then
19608 ac_res="none required"
19611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19613 if ac_fn_c_try_link "$LINENO"
19615 ac_cv_search_res_search=$ac_res
19617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19619 if test ${ac_cv_search_res_search+y}
19624 if test ${ac_cv_search_res_search+y}
19628 ac_cv_search_res_search=no
19630 rm conftest.$ac_ext
19631 LIBS=$ac_func_search_save_LIBS
19633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
19634 printf "%s\n" "$ac_cv_search_res_search" >&6; }
19635 ac_res=$ac_cv_search_res_search
19636 if test "$ac_res" != no
19638 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
19642 printf %s "checking for library containing __res_search... " >&6; }
19643 if test ${ac_cv_search___res_search+y}
19645 printf %s "(cached) " >&6
19647 ac_func_search_save_LIBS=$LIBS
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19654 char __res_search ();
19658 return __res_search ();
19663 for ac_lib in '' resolv
19665 if test -z "$ac_lib"; then
19666 ac_res="none required"
19669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19671 if ac_fn_c_try_link "$LINENO"
19673 ac_cv_search___res_search=$ac_res
19675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19677 if test ${ac_cv_search___res_search+y}
19682 if test ${ac_cv_search___res_search+y}
19686 ac_cv_search___res_search=no
19688 rm conftest.$ac_ext
19689 LIBS=$ac_func_search_save_LIBS
19691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
19692 printf "%s\n" "$ac_cv_search___res_search" >&6; }
19693 ac_res=$ac_cv_search___res_search
19694 if test "$ac_res" != no
19696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19703 printf %s "checking for library containing gethostbyname... " >&6; }
19704 if test ${ac_cv_search_gethostbyname+y}
19706 printf %s "(cached) " >&6
19708 ac_func_search_save_LIBS=$LIBS
19709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19710 /* end confdefs.h. */
19712 /* Override any GCC internal prototype to avoid an error.
19713 Use char because int might match the return type of a GCC
19714 builtin and then its argument prototype would still apply. */
19715 char gethostbyname ();
19719 return gethostbyname ();
19724 for ac_lib in '' nsl
19726 if test -z "$ac_lib"; then
19727 ac_res="none required"
19730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19732 if ac_fn_c_try_link "$LINENO"
19734 ac_cv_search_gethostbyname=$ac_res
19736 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19738 if test ${ac_cv_search_gethostbyname+y}
19743 if test ${ac_cv_search_gethostbyname+y}
19747 ac_cv_search_gethostbyname=no
19749 rm conftest.$ac_ext
19750 LIBS=$ac_func_search_save_LIBS
19752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19753 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
19754 ac_res=$ac_cv_search_gethostbyname
19755 if test "$ac_res" != no
19757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19762 printf %s "checking for library containing socket... " >&6; }
19763 if test ${ac_cv_search_socket+y}
19765 printf %s "(cached) " >&6
19767 ac_func_search_save_LIBS=$LIBS
19768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h. */
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19783 for ac_lib in '' socket
19785 if test -z "$ac_lib"; then
19786 ac_res="none required"
19789 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19791 if ac_fn_c_try_link "$LINENO"
19793 ac_cv_search_socket=$ac_res
19795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19797 if test ${ac_cv_search_socket+y}
19802 if test ${ac_cv_search_socket+y}
19806 ac_cv_search_socket=no
19808 rm conftest.$ac_ext
19809 LIBS=$ac_func_search_save_LIBS
19811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19812 printf "%s\n" "$ac_cv_search_socket" >&6; }
19813 ac_res=$ac_cv_search_socket
19814 if test "$ac_res" != no
19816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
19820 printf %s "checking for socket in -lnsl... " >&6; }
19821 if test ${ac_cv_lib_nsl_socket+y}
19823 printf %s "(cached) " >&6
19825 ac_check_lib_save_LIBS=$LIBS
19826 LIBS="-lnsl -lsocket $LIBS"
19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19828 /* end confdefs.h. */
19830 /* Override any GCC internal prototype to avoid an error.
19831 Use char because int might match the return type of a GCC
19832 builtin and then its argument prototype would still apply. */
19842 if ac_fn_c_try_link "$LINENO"
19844 ac_cv_lib_nsl_socket=yes
19846 ac_cv_lib_nsl_socket=no
19848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19849 conftest$ac_exeext conftest.$ac_ext
19850 LIBS=$ac_check_lib_save_LIBS
19852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
19853 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
19854 if test "x$ac_cv_lib_nsl_socket" = xyes
19856 LIBS="-lnsl -lsocket $LIBS"
19861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
19862 printf %s "checking for library containing crypt... " >&6; }
19863 if test ${ac_cv_search_crypt+y}
19865 printf %s "(cached) " >&6
19867 ac_func_search_save_LIBS=$LIBS
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19871 /* Override any GCC internal prototype to avoid an error.
19872 Use char because int might match the return type of a GCC
19873 builtin and then its argument prototype would still apply. */
19883 for ac_lib in '' crypt
19885 if test -z "$ac_lib"; then
19886 ac_res="none required"
19889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19891 if ac_fn_c_try_link "$LINENO"
19893 ac_cv_search_crypt=$ac_res
19895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19897 if test ${ac_cv_search_crypt+y}
19902 if test ${ac_cv_search_crypt+y}
19906 ac_cv_search_crypt=no
19908 rm conftest.$ac_ext
19909 LIBS=$ac_func_search_save_LIBS
19911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
19912 printf "%s\n" "$ac_cv_search_crypt" >&6; }
19913 ac_res=$ac_cv_search_crypt
19914 if test "$ac_res" != no
19916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
19921 printf %s "checking for library containing roken_concat... " >&6; }
19922 if test ${ac_cv_search_roken_concat+y}
19924 printf %s "(cached) " >&6
19926 ac_func_search_save_LIBS=$LIBS
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19930 /* Override any GCC internal prototype to avoid an error.
19931 Use char because int might match the return type of a GCC
19932 builtin and then its argument prototype would still apply. */
19933 char roken_concat ();
19937 return roken_concat ();
19942 for ac_lib in '' roken
19944 if test -z "$ac_lib"; then
19945 ac_res="none required"
19948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19950 if ac_fn_c_try_link "$LINENO"
19952 ac_cv_search_roken_concat=$ac_res
19954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19956 if test ${ac_cv_search_roken_concat+y}
19961 if test ${ac_cv_search_roken_concat+y}
19965 ac_cv_search_roken_concat=no
19967 rm conftest.$ac_ext
19968 LIBS=$ac_func_search_save_LIBS
19970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
19971 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
19972 ac_res=$ac_cv_search_roken_concat
19973 if test "$ac_res" != no
19975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19979 rra_krb5_extra="$LIBS"
19980 LIBS="$rra_krb5_save_LIBS"
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
19982 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
19983 if test ${ac_cv_lib_krb5_krb5_init_context+y}
19985 printf %s "(cached) " >&6
19987 ac_check_lib_save_LIBS=$LIBS
19988 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990 /* end confdefs.h. */
19992 /* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19995 char krb5_init_context ();
19999 return krb5_init_context ();
20004 if ac_fn_c_try_link "$LINENO"
20006 ac_cv_lib_krb5_krb5_init_context=yes
20008 ac_cv_lib_krb5_krb5_init_context=no
20010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20011 conftest$ac_exeext conftest.$ac_ext
20012 LIBS=$ac_check_lib_save_LIBS
20014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20015 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
20016 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
20018 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
20020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
20021 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
20022 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
20024 printf %s "(cached) " >&6
20026 ac_check_lib_save_LIBS=$LIBS
20027 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20034 char krb5int_getspecific ();
20038 return krb5int_getspecific ();
20043 if ac_fn_c_try_link "$LINENO"
20045 ac_cv_lib_krb5support_krb5int_getspecific=yes
20047 ac_cv_lib_krb5support_krb5int_getspecific=no
20049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
20054 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
20055 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
20057 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
20059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
20060 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
20061 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
20063 printf %s "(cached) " >&6
20065 ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lpthreads $LIBS"
20067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20068 /* end confdefs.h. */
20070 /* Override any GCC internal prototype to avoid an error.
20071 Use char because int might match the return type of a GCC
20072 builtin and then its argument prototype would still apply. */
20073 char pthread_setspecific ();
20077 return pthread_setspecific ();
20082 if ac_fn_c_try_link "$LINENO"
20084 ac_cv_lib_pthreads_pthread_setspecific=yes
20086 ac_cv_lib_pthreads_pthread_setspecific=no
20088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20089 conftest$ac_exeext conftest.$ac_ext
20090 LIBS=$ac_check_lib_save_LIBS
20092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
20093 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
20094 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
20096 rra_krb5_pthread="-lpthreads"
20098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
20099 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
20100 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
20102 printf %s "(cached) " >&6
20104 ac_check_lib_save_LIBS=$LIBS
20105 LIBS="-lpthread $LIBS"
20106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* end confdefs.h. */
20109 /* Override any GCC internal prototype to avoid an error.
20110 Use char because int might match the return type of a GCC
20111 builtin and then its argument prototype would still apply. */
20112 char pthread_setspecific ();
20116 return pthread_setspecific ();
20121 if ac_fn_c_try_link "$LINENO"
20123 ac_cv_lib_pthread_pthread_setspecific=yes
20125 ac_cv_lib_pthread_pthread_setspecific=no
20127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20128 conftest$ac_exeext conftest.$ac_ext
20129 LIBS=$ac_check_lib_save_LIBS
20131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
20132 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
20133 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
20135 rra_krb5_pthread="-lpthread"
20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
20141 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
20142 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
20144 printf %s "(cached) " >&6
20146 ac_check_lib_save_LIBS=$LIBS
20147 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154 char krb5int_setspecific ();
20158 return krb5int_setspecific ();
20163 if ac_fn_c_try_link "$LINENO"
20165 ac_cv_lib_krb5support_krb5int_setspecific=yes
20167 ac_cv_lib_krb5support_krb5int_setspecific=no
20169 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
20174 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
20175 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
20177 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
20182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
20183 printf %s "checking for error_message in -lcom_err... " >&6; }
20184 if test ${ac_cv_lib_com_err_error_message+y}
20186 printf %s "(cached) " >&6
20188 ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-lcom_err $rra_krb5_extra $LIBS"
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20193 /* Override any GCC internal prototype to avoid an error.
20194 Use char because int might match the return type of a GCC
20195 builtin and then its argument prototype would still apply. */
20196 char error_message ();
20200 return error_message ();
20205 if ac_fn_c_try_link "$LINENO"
20207 ac_cv_lib_com_err_error_message=yes
20209 ac_cv_lib_com_err_error_message=no
20211 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20212 conftest$ac_exeext conftest.$ac_ext
20213 LIBS=$ac_check_lib_save_LIBS
20215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
20216 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
20217 if test "x$ac_cv_lib_com_err_error_message" = xyes
20219 rra_krb5_extra="-lcom_err $rra_krb5_extra"
20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
20223 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
20224 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
20226 printf %s "(cached) " >&6
20228 ac_check_lib_save_LIBS=$LIBS
20229 LIBS="-lksvc $rra_krb5_extra $LIBS"
20230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20231 /* end confdefs.h. */
20233 /* Override any GCC internal prototype to avoid an error.
20234 Use char because int might match the return type of a GCC
20235 builtin and then its argument prototype would still apply. */
20236 char krb5_svc_get_msg ();
20240 return krb5_svc_get_msg ();
20245 if ac_fn_c_try_link "$LINENO"
20247 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
20249 ac_cv_lib_ksvc_krb5_svc_get_msg=no
20251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20252 conftest$ac_exeext conftest.$ac_ext
20253 LIBS=$ac_check_lib_save_LIBS
20255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
20256 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
20257 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
20259 rra_krb5_extra="-lksvc $rra_krb5_extra"
20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
20263 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
20264 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
20266 printf %s "(cached) " >&6
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20276 char krb5int_hash_md5 ();
20280 return krb5int_hash_md5 ();
20285 if ac_fn_c_try_link "$LINENO"
20287 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
20289 ac_cv_lib_k5crypto_krb5int_hash_md5=no
20291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
20296 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
20297 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
20299 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
20302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
20303 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
20304 if test ${ac_cv_lib_k5profile_profile_get_values+y}
20306 printf %s "(cached) " >&6
20308 ac_check_lib_save_LIBS=$LIBS
20309 LIBS="-lk5profile $rra_krb5_extra $LIBS"
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20313 /* Override any GCC internal prototype to avoid an error.
20314 Use char because int might match the return type of a GCC
20315 builtin and then its argument prototype would still apply. */
20316 char profile_get_values ();
20320 return profile_get_values ();
20325 if ac_fn_c_try_link "$LINENO"
20327 ac_cv_lib_k5profile_profile_get_values=yes
20329 ac_cv_lib_k5profile_profile_get_values=no
20331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20332 conftest$ac_exeext conftest.$ac_ext
20333 LIBS=$ac_check_lib_save_LIBS
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
20336 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
20337 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
20339 rra_krb5_extra="-lk5profile $rra_krb5_extra"
20342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
20343 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
20344 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
20346 printf %s "(cached) " >&6
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
20350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h. */
20353 /* Override any GCC internal prototype to avoid an error.
20354 Use char because int might match the return type of a GCC
20355 builtin and then its argument prototype would still apply. */
20356 char krb5_cc_default ();
20360 return krb5_cc_default ();
20365 if ac_fn_c_try_link "$LINENO"
20367 ac_cv_lib_krb5_krb5_cc_default=yes
20369 ac_cv_lib_krb5_krb5_cc_default=no
20371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20372 conftest$ac_exeext conftest.$ac_ext
20373 LIBS=$ac_check_lib_save_LIBS
20375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
20376 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
20377 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
20379 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
20381 if test x"true" = xtrue
20383 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
20389 LIBS="$KRB5_LIBS $LIBS"
20391 for ac_func in krb5_get_error_message
20393 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
20394 if test "x$ac_cv_func_krb5_get_error_message" = xyes
20396 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
20397 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
20398 if test "x$ac_cv_func_krb5_free_error_message" = xyes
20400 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
20406 for ac_func in krb5_get_error_string
20408 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
20409 if test "x$ac_cv_func_krb5_get_error_string" = xyes
20411 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
20415 for ac_func in krb5_get_err_txt
20417 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
20418 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
20420 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
20424 for ac_func in krb5_svc_get_msg
20426 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
20427 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
20429 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
20430 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
20433 #elif HAVE_KERBEROSV5_KRB5_H
20434 # include <kerberosv5/krb5.h>
20436 # include <krb5/krb5.h>
20440 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
20442 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
20447 if test x"$rra_krb5_incroot" = x
20449 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
20450 if test "x$ac_cv_header_et_com_err_h" = xyes
20452 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
20455 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
20456 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
20458 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
20463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
20464 printf %s "checking for et/com_err.h... " >&6; }
20465 if test -f "${rra_krb5_incroot}/et/com_err.h"
20468 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20471 printf "%s\n" "yes" >&6; }
20474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20475 printf "%s\n" "no" >&6; }
20477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
20478 printf %s "checking for kerberosv5/com_err.h... " >&6; }
20479 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
20482 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
20484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20485 printf "%s\n" "yes" >&6; }
20488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20489 printf "%s\n" "no" >&6; }
20504 rra_krb5_found_header=
20505 if test x"$rra_krb5_incroot" = x
20507 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
20509 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
20510 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20511 if eval test \"x\$"$as_ac_Header"\" = x"yes"
20513 cat >>confdefs.h <<_ACEOF
20514 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
20516 rra_krb5_found_header=true
20521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
20522 printf %s "checking for krb5.h... " >&6; }
20523 if test -f "${rra_krb5_incroot}/krb5.h"
20526 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
20528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20529 printf "%s\n" "yes" >&6; }
20530 rra_krb5_found_header=true
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20533 printf "%s\n" "no" >&6; }
20535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
20536 printf %s "checking for kerberosv5/krb5.h... " >&6; }
20537 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
20540 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
20542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543 printf "%s\n" "yes" >&6; }
20544 rra_krb5_found_header=true
20546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20547 printf "%s\n" "no" >&6; }
20549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
20550 printf %s "checking for krb5/krb5.h... " >&6; }
20551 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
20554 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20557 printf "%s\n" "yes" >&6; }
20558 rra_krb5_found_header=true
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 printf "%s\n" "no" >&6; }
20564 if test x"$rra_krb5_found_header" = xtrue
20570 if test x"true" = xtrue
20572 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
20575 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
20576 LDFLAGS="$rra_krb5_save_LDFLAGS"
20577 LIBS="$rra_krb5_save_LIBS"
20580 if test x"$rra_krb5_libdir" != x
20582 KRB5_LDFLAGS="-L$rra_krb5_libdir"
20584 if test x"$rra_krb5_root" != x
20587 if test -d "$rra_krb5_root/$rra_lib_arch_name"
20591 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}"
20593 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/${rra_lib_arch_name}/"
20598 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib"
20600 KRB5_LDFLAGS="$KRB5_LDFLAGS -L$rra_krb5_root/lib/"
20603 KRB5_LDFLAGS=`printf "%s\n" "$KRB5_LDFLAGS" | sed -e 's/^ *//'`
20606 if test x"$rra_krb5_includedir" != x
20608 KRB5_CPPFLAGS="-I$rra_krb5_includedir"
20610 if test x"$rra_krb5_root" != x
20612 if test x"$rra_krb5_root" != x/usr
20614 KRB5_CPPFLAGS="-I${rra_krb5_root}/include"
20618 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
20619 rra_krb5_save_LDFLAGS="$LDFLAGS"
20620 rra_krb5_save_LIBS="$LIBS"
20621 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
20622 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
20623 LIBS="$KRB5_LIBS $LIBS"
20626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_search" >&5
20627 printf %s "checking for library containing res_search... " >&6; }
20628 if test ${ac_cv_search_res_search+y}
20630 printf %s "(cached) " >&6
20632 ac_func_search_save_LIBS=$LIBS
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20636 /* Override any GCC internal prototype to avoid an error.
20637 Use char because int might match the return type of a GCC
20638 builtin and then its argument prototype would still apply. */
20639 char res_search ();
20643 return res_search ();
20648 for ac_lib in '' resolv
20650 if test -z "$ac_lib"; then
20651 ac_res="none required"
20654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20656 if ac_fn_c_try_link "$LINENO"
20658 ac_cv_search_res_search=$ac_res
20660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20662 if test ${ac_cv_search_res_search+y}
20667 if test ${ac_cv_search_res_search+y}
20671 ac_cv_search_res_search=no
20673 rm conftest.$ac_ext
20674 LIBS=$ac_func_search_save_LIBS
20676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_search" >&5
20677 printf "%s\n" "$ac_cv_search_res_search" >&6; }
20678 ac_res=$ac_cv_search_res_search
20679 if test "$ac_res" != no
20681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_search" >&5
20685 printf %s "checking for library containing __res_search... " >&6; }
20686 if test ${ac_cv_search___res_search+y}
20688 printf %s "(cached) " >&6
20690 ac_func_search_save_LIBS=$LIBS
20691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20692 /* end confdefs.h. */
20694 /* Override any GCC internal prototype to avoid an error.
20695 Use char because int might match the return type of a GCC
20696 builtin and then its argument prototype would still apply. */
20697 char __res_search ();
20701 return __res_search ();
20706 for ac_lib in '' resolv
20708 if test -z "$ac_lib"; then
20709 ac_res="none required"
20712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20714 if ac_fn_c_try_link "$LINENO"
20716 ac_cv_search___res_search=$ac_res
20718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20720 if test ${ac_cv_search___res_search+y}
20725 if test ${ac_cv_search___res_search+y}
20729 ac_cv_search___res_search=no
20731 rm conftest.$ac_ext
20732 LIBS=$ac_func_search_save_LIBS
20734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_search" >&5
20735 printf "%s\n" "$ac_cv_search___res_search" >&6; }
20736 ac_res=$ac_cv_search___res_search
20737 if test "$ac_res" != no
20739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
20746 printf %s "checking for library containing gethostbyname... " >&6; }
20747 if test ${ac_cv_search_gethostbyname+y}
20749 printf %s "(cached) " >&6
20751 ac_func_search_save_LIBS=$LIBS
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758 char gethostbyname ();
20762 return gethostbyname ();
20767 for ac_lib in '' nsl
20769 if test -z "$ac_lib"; then
20770 ac_res="none required"
20773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20775 if ac_fn_c_try_link "$LINENO"
20777 ac_cv_search_gethostbyname=$ac_res
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20781 if test ${ac_cv_search_gethostbyname+y}
20786 if test ${ac_cv_search_gethostbyname+y}
20790 ac_cv_search_gethostbyname=no
20792 rm conftest.$ac_ext
20793 LIBS=$ac_func_search_save_LIBS
20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
20796 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
20797 ac_res=$ac_cv_search_gethostbyname
20798 if test "$ac_res" != no
20800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
20805 printf %s "checking for library containing socket... " >&6; }
20806 if test ${ac_cv_search_socket+y}
20808 printf %s "(cached) " >&6
20810 ac_func_search_save_LIBS=$LIBS
20811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h. */
20814 /* Override any GCC internal prototype to avoid an error.
20815 Use char because int might match the return type of a GCC
20816 builtin and then its argument prototype would still apply. */
20826 for ac_lib in '' socket
20828 if test -z "$ac_lib"; then
20829 ac_res="none required"
20832 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20834 if ac_fn_c_try_link "$LINENO"
20836 ac_cv_search_socket=$ac_res
20838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20840 if test ${ac_cv_search_socket+y}
20845 if test ${ac_cv_search_socket+y}
20849 ac_cv_search_socket=no
20851 rm conftest.$ac_ext
20852 LIBS=$ac_func_search_save_LIBS
20854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
20855 printf "%s\n" "$ac_cv_search_socket" >&6; }
20856 ac_res=$ac_cv_search_socket
20857 if test "$ac_res" != no
20859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnsl" >&5
20863 printf %s "checking for socket in -lnsl... " >&6; }
20864 if test ${ac_cv_lib_nsl_socket+y}
20866 printf %s "(cached) " >&6
20868 ac_check_lib_save_LIBS=$LIBS
20869 LIBS="-lnsl -lsocket $LIBS"
20870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20871 /* end confdefs.h. */
20873 /* Override any GCC internal prototype to avoid an error.
20874 Use char because int might match the return type of a GCC
20875 builtin and then its argument prototype would still apply. */
20885 if ac_fn_c_try_link "$LINENO"
20887 ac_cv_lib_nsl_socket=yes
20889 ac_cv_lib_nsl_socket=no
20891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20892 conftest$ac_exeext conftest.$ac_ext
20893 LIBS=$ac_check_lib_save_LIBS
20895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_socket" >&5
20896 printf "%s\n" "$ac_cv_lib_nsl_socket" >&6; }
20897 if test "x$ac_cv_lib_nsl_socket" = xyes
20899 LIBS="-lnsl -lsocket $LIBS"
20904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20905 printf %s "checking for library containing crypt... " >&6; }
20906 if test ${ac_cv_search_crypt+y}
20908 printf %s "(cached) " >&6
20910 ac_func_search_save_LIBS=$LIBS
20911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20912 /* end confdefs.h. */
20914 /* Override any GCC internal prototype to avoid an error.
20915 Use char because int might match the return type of a GCC
20916 builtin and then its argument prototype would still apply. */
20926 for ac_lib in '' crypt
20928 if test -z "$ac_lib"; then
20929 ac_res="none required"
20932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20934 if ac_fn_c_try_link "$LINENO"
20936 ac_cv_search_crypt=$ac_res
20938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20940 if test ${ac_cv_search_crypt+y}
20945 if test ${ac_cv_search_crypt+y}
20949 ac_cv_search_crypt=no
20951 rm conftest.$ac_ext
20952 LIBS=$ac_func_search_save_LIBS
20954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20955 printf "%s\n" "$ac_cv_search_crypt" >&6; }
20956 ac_res=$ac_cv_search_crypt
20957 if test "$ac_res" != no
20959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing roken_concat" >&5
20964 printf %s "checking for library containing roken_concat... " >&6; }
20965 if test ${ac_cv_search_roken_concat+y}
20967 printf %s "(cached) " >&6
20969 ac_func_search_save_LIBS=$LIBS
20970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20971 /* end confdefs.h. */
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20976 char roken_concat ();
20980 return roken_concat ();
20985 for ac_lib in '' roken
20987 if test -z "$ac_lib"; then
20988 ac_res="none required"
20991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20993 if ac_fn_c_try_link "$LINENO"
20995 ac_cv_search_roken_concat=$ac_res
20997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20999 if test ${ac_cv_search_roken_concat+y}
21004 if test ${ac_cv_search_roken_concat+y}
21008 ac_cv_search_roken_concat=no
21010 rm conftest.$ac_ext
21011 LIBS=$ac_func_search_save_LIBS
21013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_roken_concat" >&5
21014 printf "%s\n" "$ac_cv_search_roken_concat" >&6; }
21015 ac_res=$ac_cv_search_roken_concat
21016 if test "$ac_res" != no
21018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21022 rra_krb5_extra="$LIBS"
21023 LIBS="$rra_krb5_save_LIBS"
21024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
21025 printf %s "checking for krb5_init_context in -lkrb5... " >&6; }
21026 if test ${ac_cv_lib_krb5_krb5_init_context+y}
21028 printf %s "(cached) " >&6
21030 ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra $LIBS"
21032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033 /* end confdefs.h. */
21035 /* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21038 char krb5_init_context ();
21042 return krb5_init_context ();
21047 if ac_fn_c_try_link "$LINENO"
21049 ac_cv_lib_krb5_krb5_init_context=yes
21051 ac_cv_lib_krb5_krb5_init_context=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21058 printf "%s\n" "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21059 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes
21061 KRB5_LIBS="-lkrb5 -lasn1 -lcom_err -lcrypto $rra_krb5_extra"
21063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_getspecific in -lkrb5support" >&5
21064 printf %s "checking for krb5int_getspecific in -lkrb5support... " >&6; }
21065 if test ${ac_cv_lib_krb5support_krb5int_getspecific+y}
21067 printf %s "(cached) " >&6
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lkrb5support $rra_krb5_extra $LIBS"
21071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21072 /* end confdefs.h. */
21074 /* Override any GCC internal prototype to avoid an error.
21075 Use char because int might match the return type of a GCC
21076 builtin and then its argument prototype would still apply. */
21077 char krb5int_getspecific ();
21081 return krb5int_getspecific ();
21086 if ac_fn_c_try_link "$LINENO"
21088 ac_cv_lib_krb5support_krb5int_getspecific=yes
21090 ac_cv_lib_krb5support_krb5int_getspecific=no
21092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21093 conftest$ac_exeext conftest.$ac_ext
21094 LIBS=$ac_check_lib_save_LIBS
21096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_getspecific" >&5
21097 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_getspecific" >&6; }
21098 if test "x$ac_cv_lib_krb5support_krb5int_getspecific" = xyes
21100 rra_krb5_extra="-lkrb5support $rra_krb5_extra"
21102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthreads" >&5
21103 printf %s "checking for pthread_setspecific in -lpthreads... " >&6; }
21104 if test ${ac_cv_lib_pthreads_pthread_setspecific+y}
21106 printf %s "(cached) " >&6
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lpthreads $LIBS"
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h. */
21113 /* Override any GCC internal prototype to avoid an error.
21114 Use char because int might match the return type of a GCC
21115 builtin and then its argument prototype would still apply. */
21116 char pthread_setspecific ();
21120 return pthread_setspecific ();
21125 if ac_fn_c_try_link "$LINENO"
21127 ac_cv_lib_pthreads_pthread_setspecific=yes
21129 ac_cv_lib_pthreads_pthread_setspecific=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21132 conftest$ac_exeext conftest.$ac_ext
21133 LIBS=$ac_check_lib_save_LIBS
21135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_setspecific" >&5
21136 printf "%s\n" "$ac_cv_lib_pthreads_pthread_setspecific" >&6; }
21137 if test "x$ac_cv_lib_pthreads_pthread_setspecific" = xyes
21139 rra_krb5_pthread="-lpthreads"
21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setspecific in -lpthread" >&5
21142 printf %s "checking for pthread_setspecific in -lpthread... " >&6; }
21143 if test ${ac_cv_lib_pthread_pthread_setspecific+y}
21145 printf %s "(cached) " >&6
21147 ac_check_lib_save_LIBS=$LIBS
21148 LIBS="-lpthread $LIBS"
21149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21150 /* end confdefs.h. */
21152 /* Override any GCC internal prototype to avoid an error.
21153 Use char because int might match the return type of a GCC
21154 builtin and then its argument prototype would still apply. */
21155 char pthread_setspecific ();
21159 return pthread_setspecific ();
21164 if ac_fn_c_try_link "$LINENO"
21166 ac_cv_lib_pthread_pthread_setspecific=yes
21168 ac_cv_lib_pthread_pthread_setspecific=no
21170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21171 conftest$ac_exeext conftest.$ac_ext
21172 LIBS=$ac_check_lib_save_LIBS
21174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setspecific" >&5
21175 printf "%s\n" "$ac_cv_lib_pthread_pthread_setspecific" >&6; }
21176 if test "x$ac_cv_lib_pthread_pthread_setspecific" = xyes
21178 rra_krb5_pthread="-lpthread"
21183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_setspecific in -lkrb5support" >&5
21184 printf %s "checking for krb5int_setspecific in -lkrb5support... " >&6; }
21185 if test ${ac_cv_lib_krb5support_krb5int_setspecific+y}
21187 printf %s "(cached) " >&6
21189 ac_check_lib_save_LIBS=$LIBS
21190 LIBS="-lkrb5support $rra_krb5_pthread $rra_krb5_extra $LIBS"
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21194 /* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21197 char krb5int_setspecific ();
21201 return krb5int_setspecific ();
21206 if ac_fn_c_try_link "$LINENO"
21208 ac_cv_lib_krb5support_krb5int_setspecific=yes
21210 ac_cv_lib_krb5support_krb5int_setspecific=no
21212 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21213 conftest$ac_exeext conftest.$ac_ext
21214 LIBS=$ac_check_lib_save_LIBS
21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_krb5int_setspecific" >&5
21217 printf "%s\n" "$ac_cv_lib_krb5support_krb5int_setspecific" >&6; }
21218 if test "x$ac_cv_lib_krb5support_krb5int_setspecific" = xyes
21220 rra_krb5_extra="-lkrb5support $rra_krb5_extra $rra_krb5_pthread"
21225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_message in -lcom_err" >&5
21226 printf %s "checking for error_message in -lcom_err... " >&6; }
21227 if test ${ac_cv_lib_com_err_error_message+y}
21229 printf %s "(cached) " >&6
21231 ac_check_lib_save_LIBS=$LIBS
21232 LIBS="-lcom_err $rra_krb5_extra $LIBS"
21233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21234 /* end confdefs.h. */
21236 /* Override any GCC internal prototype to avoid an error.
21237 Use char because int might match the return type of a GCC
21238 builtin and then its argument prototype would still apply. */
21239 char error_message ();
21243 return error_message ();
21248 if ac_fn_c_try_link "$LINENO"
21250 ac_cv_lib_com_err_error_message=yes
21252 ac_cv_lib_com_err_error_message=no
21254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21255 conftest$ac_exeext conftest.$ac_ext
21256 LIBS=$ac_check_lib_save_LIBS
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_error_message" >&5
21259 printf "%s\n" "$ac_cv_lib_com_err_error_message" >&6; }
21260 if test "x$ac_cv_lib_com_err_error_message" = xyes
21262 rra_krb5_extra="-lcom_err $rra_krb5_extra"
21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_svc_get_msg in -lksvc" >&5
21266 printf %s "checking for krb5_svc_get_msg in -lksvc... " >&6; }
21267 if test ${ac_cv_lib_ksvc_krb5_svc_get_msg+y}
21269 printf %s "(cached) " >&6
21271 ac_check_lib_save_LIBS=$LIBS
21272 LIBS="-lksvc $rra_krb5_extra $LIBS"
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21276 /* Override any GCC internal prototype to avoid an error.
21277 Use char because int might match the return type of a GCC
21278 builtin and then its argument prototype would still apply. */
21279 char krb5_svc_get_msg ();
21283 return krb5_svc_get_msg ();
21288 if ac_fn_c_try_link "$LINENO"
21290 ac_cv_lib_ksvc_krb5_svc_get_msg=yes
21292 ac_cv_lib_ksvc_krb5_svc_get_msg=no
21294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21295 conftest$ac_exeext conftest.$ac_ext
21296 LIBS=$ac_check_lib_save_LIBS
21298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ksvc_krb5_svc_get_msg" >&5
21299 printf "%s\n" "$ac_cv_lib_ksvc_krb5_svc_get_msg" >&6; }
21300 if test "x$ac_cv_lib_ksvc_krb5_svc_get_msg" = xyes
21302 rra_krb5_extra="-lksvc $rra_krb5_extra"
21305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5int_hash_md5 in -lk5crypto" >&5
21306 printf %s "checking for krb5int_hash_md5 in -lk5crypto... " >&6; }
21307 if test ${ac_cv_lib_k5crypto_krb5int_hash_md5+y}
21309 printf %s "(cached) " >&6
21311 ac_check_lib_save_LIBS=$LIBS
21312 LIBS="-lk5crypto $rra_krb5_extra $LIBS"
21313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21314 /* end confdefs.h. */
21316 /* Override any GCC internal prototype to avoid an error.
21317 Use char because int might match the return type of a GCC
21318 builtin and then its argument prototype would still apply. */
21319 char krb5int_hash_md5 ();
21323 return krb5int_hash_md5 ();
21328 if ac_fn_c_try_link "$LINENO"
21330 ac_cv_lib_k5crypto_krb5int_hash_md5=yes
21332 ac_cv_lib_k5crypto_krb5int_hash_md5=no
21334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21335 conftest$ac_exeext conftest.$ac_ext
21336 LIBS=$ac_check_lib_save_LIBS
21338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_krb5int_hash_md5" >&5
21339 printf "%s\n" "$ac_cv_lib_k5crypto_krb5int_hash_md5" >&6; }
21340 if test "x$ac_cv_lib_k5crypto_krb5int_hash_md5" = xyes
21342 rra_krb5_extra="-lk5crypto $rra_krb5_extra"
21345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for profile_get_values in -lk5profile" >&5
21346 printf %s "checking for profile_get_values in -lk5profile... " >&6; }
21347 if test ${ac_cv_lib_k5profile_profile_get_values+y}
21349 printf %s "(cached) " >&6
21351 ac_check_lib_save_LIBS=$LIBS
21352 LIBS="-lk5profile $rra_krb5_extra $LIBS"
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21356 /* Override any GCC internal prototype to avoid an error.
21357 Use char because int might match the return type of a GCC
21358 builtin and then its argument prototype would still apply. */
21359 char profile_get_values ();
21363 return profile_get_values ();
21368 if ac_fn_c_try_link "$LINENO"
21370 ac_cv_lib_k5profile_profile_get_values=yes
21372 ac_cv_lib_k5profile_profile_get_values=no
21374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21375 conftest$ac_exeext conftest.$ac_ext
21376 LIBS=$ac_check_lib_save_LIBS
21378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5profile_profile_get_values" >&5
21379 printf "%s\n" "$ac_cv_lib_k5profile_profile_get_values" >&6; }
21380 if test "x$ac_cv_lib_k5profile_profile_get_values" = xyes
21382 rra_krb5_extra="-lk5profile $rra_krb5_extra"
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5_cc_default in -lkrb5" >&5
21386 printf %s "checking for krb5_cc_default in -lkrb5... " >&6; }
21387 if test ${ac_cv_lib_krb5_krb5_cc_default+y}
21389 printf %s "(cached) " >&6
21391 ac_check_lib_save_LIBS=$LIBS
21392 LIBS="-lkrb5 $rra_krb5_extra $LIBS"
21393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21394 /* end confdefs.h. */
21396 /* Override any GCC internal prototype to avoid an error.
21397 Use char because int might match the return type of a GCC
21398 builtin and then its argument prototype would still apply. */
21399 char krb5_cc_default ();
21403 return krb5_cc_default ();
21408 if ac_fn_c_try_link "$LINENO"
21410 ac_cv_lib_krb5_krb5_cc_default=yes
21412 ac_cv_lib_krb5_krb5_cc_default=no
21414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21415 conftest$ac_exeext conftest.$ac_ext
21416 LIBS=$ac_check_lib_save_LIBS
21418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_cc_default" >&5
21419 printf "%s\n" "$ac_cv_lib_krb5_krb5_cc_default" >&6; }
21420 if test "x$ac_cv_lib_krb5_krb5_cc_default" = xyes
21422 KRB5_LIBS="-lkrb5 $rra_krb5_extra"
21424 if test x"true" = xtrue
21426 as_fn_error $? "cannot find usable Kerberos library" "$LINENO" 5
21432 LIBS="$KRB5_LIBS $LIBS"
21434 for ac_func in krb5_get_error_message
21436 ac_fn_c_check_func "$LINENO" "krb5_get_error_message" "ac_cv_func_krb5_get_error_message"
21437 if test "x$ac_cv_func_krb5_get_error_message" = xyes
21439 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_MESSAGE 1" >>confdefs.h
21440 ac_fn_c_check_func "$LINENO" "krb5_free_error_message" "ac_cv_func_krb5_free_error_message"
21441 if test "x$ac_cv_func_krb5_free_error_message" = xyes
21443 printf "%s\n" "#define HAVE_KRB5_FREE_ERROR_MESSAGE 1" >>confdefs.h
21449 for ac_func in krb5_get_error_string
21451 ac_fn_c_check_func "$LINENO" "krb5_get_error_string" "ac_cv_func_krb5_get_error_string"
21452 if test "x$ac_cv_func_krb5_get_error_string" = xyes
21454 printf "%s\n" "#define HAVE_KRB5_GET_ERROR_STRING 1" >>confdefs.h
21458 for ac_func in krb5_get_err_txt
21460 ac_fn_c_check_func "$LINENO" "krb5_get_err_txt" "ac_cv_func_krb5_get_err_txt"
21461 if test "x$ac_cv_func_krb5_get_err_txt" = xyes
21463 printf "%s\n" "#define HAVE_KRB5_GET_ERR_TXT 1" >>confdefs.h
21467 for ac_func in krb5_svc_get_msg
21469 ac_fn_c_check_func "$LINENO" "krb5_svc_get_msg" "ac_cv_func_krb5_svc_get_msg"
21470 if test "x$ac_cv_func_krb5_svc_get_msg" = xyes
21472 printf "%s\n" "#define HAVE_KRB5_SVC_GET_MSG 1" >>confdefs.h
21473 ac_fn_c_check_header_compile "$LINENO" "ibm_svc/krb5_svc.h" "ac_cv_header_ibm_svc_krb5_svc_h" "
21476 #elif HAVE_KERBEROSV5_KRB5_H
21477 # include <kerberosv5/krb5.h>
21479 # include <krb5/krb5.h>
21483 if test "x$ac_cv_header_ibm_svc_krb5_svc_h" = xyes
21485 printf "%s\n" "#define HAVE_IBM_SVC_KRB5_SVC_H 1" >>confdefs.h
21490 if test x"$rra_krb5_incroot" = x
21492 ac_fn_c_check_header_compile "$LINENO" "et/com_err.h" "ac_cv_header_et_com_err_h" "$ac_includes_default"
21493 if test "x$ac_cv_header_et_com_err_h" = xyes
21495 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
21498 ac_fn_c_check_header_compile "$LINENO" "kerberosv5/com_err.h" "ac_cv_header_kerberosv5_com_err_h" "$ac_includes_default"
21499 if test "x$ac_cv_header_kerberosv5_com_err_h" = xyes
21501 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
21506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for et/com_err.h" >&5
21507 printf %s "checking for et/com_err.h... " >&6; }
21508 if test -f "${rra_krb5_incroot}/et/com_err.h"
21511 printf "%s\n" "#define HAVE_ET_COM_ERR_H 1" >>confdefs.h
21513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21514 printf "%s\n" "yes" >&6; }
21517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21518 printf "%s\n" "no" >&6; }
21520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/com_err.h" >&5
21521 printf %s "checking for kerberosv5/com_err.h... " >&6; }
21522 if test -f "${rra_krb5_incroot}/kerberosv5/com_err.h"
21525 printf "%s\n" "#define HAVE_KERBEROSV5_COM_ERR_H 1" >>confdefs.h
21527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 printf "%s\n" "yes" >&6; }
21531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21532 printf "%s\n" "no" >&6; }
21547 rra_krb5_found_header=
21548 if test x"$rra_krb5_incroot" = x
21550 for ac_header in krb5.h kerberosv5/krb5.h krb5/krb5.h
21552 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
21553 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21554 if eval test \"x\$"$as_ac_Header"\" = x"yes"
21556 cat >>confdefs.h <<_ACEOF
21557 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
21559 rra_krb5_found_header=true
21564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5.h" >&5
21565 printf %s "checking for krb5.h... " >&6; }
21566 if test -f "${rra_krb5_incroot}/krb5.h"
21569 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
21571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21572 printf "%s\n" "yes" >&6; }
21573 rra_krb5_found_header=true
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21576 printf "%s\n" "no" >&6; }
21578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kerberosv5/krb5.h" >&5
21579 printf %s "checking for kerberosv5/krb5.h... " >&6; }
21580 if test -f "${rra_krb5_incroot}/kerberosv5/krb5.h"
21583 printf "%s\n" "#define HAVE_KERBEROSV5_KRB5_H 1" >>confdefs.h
21585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21586 printf "%s\n" "yes" >&6; }
21587 rra_krb5_found_header=true
21589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 printf "%s\n" "no" >&6; }
21592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb5/krb5.h" >&5
21593 printf %s "checking for krb5/krb5.h... " >&6; }
21594 if test -f "${rra_krb5_incroot}/krb5/krb5.h"
21597 printf "%s\n" "#define HAVE_KRB5_KRB5_H 1" >>confdefs.h
21599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21600 printf "%s\n" "yes" >&6; }
21601 rra_krb5_found_header=true
21603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21604 printf "%s\n" "no" >&6; }
21607 if test x"$rra_krb5_found_header" = xtrue
21613 if test x"true" = xtrue
21615 as_fn_error $? "cannot find usable Kerberos header" "$LINENO" 5
21618 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
21619 LDFLAGS="$rra_krb5_save_LDFLAGS"
21620 LIBS="$rra_krb5_save_LIBS"
21623 rra_krb5_uses_com_err=false
21624 case $KRB5_LIBS in #(
21626 rra_krb5_uses_com_err=true ;; #(
21630 if test x"$rra_krb5_uses_com_err" = xtrue; then
21631 KRB5_USES_COM_ERR_TRUE=
21632 KRB5_USES_COM_ERR_FALSE='#'
21634 KRB5_USES_COM_ERR_TRUE='#'
21635 KRB5_USES_COM_ERR_FALSE=
21638 KRB5_CPPFLAGS_WARNINGS=`printf "%s\n" "$KRB5_CPPFLAGS" | sed 's/-I/-isystem /g'`
21640 printf "%s\n" "#define HAVE_KRB5 1" >>confdefs.h
21642 rra_krb5_save_CPPFLAGS="$CPPFLAGS"
21643 rra_krb5_save_LDFLAGS="$LDFLAGS"
21644 rra_krb5_save_LIBS="$LIBS"
21645 CPPFLAGS="$KRB5_CPPFLAGS $CPPFLAGS"
21646 LDFLAGS="$KRB5_LDFLAGS $LDFLAGS"
21647 LIBS="$KRB5_LIBS $LIBS"
21648 ac_fn_c_check_header_compile "$LINENO" "krb5/pwqual_plugin.h" "ac_cv_header_krb5_pwqual_plugin_h" "
21651 #elif HAVE_KERBEROSV5_KRB5_H
21652 # include <kerberosv5/krb5.h>
21654 # include <krb5/krb5.h>
21658 if test "x$ac_cv_header_krb5_pwqual_plugin_h" = xyes
21660 printf "%s\n" "#define HAVE_KRB5_PWQUAL_PLUGIN_H 1" >>confdefs.h
21664 ac_fn_c_check_type "$LINENO" "krb5_realm" "ac_cv_type_krb5_realm" "
21667 #elif HAVE_KERBEROSV5_KRB5_H
21668 # include <kerberosv5/krb5.h>
21670 # include <krb5/krb5.h>
21674 if test "x$ac_cv_type_krb5_realm" = xyes
21677 printf "%s\n" "#define HAVE_KRB5_REALM 1" >>confdefs.h
21682 ac_fn_c_check_func "$LINENO" "krb5_free_default_realm" "ac_cv_func_krb5_free_default_realm"
21683 if test "x$ac_cv_func_krb5_free_default_realm" = xyes
21685 printf "%s\n" "#define HAVE_KRB5_FREE_DEFAULT_REALM 1" >>confdefs.h
21688 ac_fn_c_check_func "$LINENO" "krb5_free_string" "ac_cv_func_krb5_free_string"
21689 if test "x$ac_cv_func_krb5_free_string" = xyes
21691 printf "%s\n" "#define HAVE_KRB5_FREE_STRING 1" >>confdefs.h
21694 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
21695 if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes
21697 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1" >>confdefs.h
21700 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_set_default_flags" "ac_cv_func_krb5_get_init_creds_opt_set_default_flags"
21701 if test "x$ac_cv_func_krb5_get_init_creds_opt_set_default_flags" = xyes
21703 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_SET_DEFAULT_FLAGS 1" >>confdefs.h
21706 ac_fn_c_check_func "$LINENO" "krb5_principal_get_realm" "ac_cv_func_krb5_principal_get_realm"
21707 if test "x$ac_cv_func_krb5_principal_get_realm" = xyes
21709 printf "%s\n" "#define HAVE_KRB5_PRINCIPAL_GET_REALM 1" >>confdefs.h
21712 ac_fn_c_check_func "$LINENO" "krb5_xfree" "ac_cv_func_krb5_xfree"
21713 if test "x$ac_cv_func_krb5_xfree" = xyes
21715 printf "%s\n" "#define HAVE_KRB5_XFREE 1" >>confdefs.h
21720 for ac_func in krb5_get_init_creds_opt_free
21722 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_free" "ac_cv_func_krb5_get_init_creds_opt_free"
21723 if test "x$ac_cv_func_krb5_get_init_creds_opt_free" = xyes
21725 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE 1" >>confdefs.h
21726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if krb5_get_init_creds_opt_free takes two arguments" >&5
21727 printf %s "checking if krb5_get_init_creds_opt_free takes two arguments... " >&6; }
21728 if test ${rra_cv_func_krb5_get_init_creds_opt_free_args+y}
21730 printf %s "(cached) " >&6
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21737 #elif HAVE_KERBEROSV5_KRB5_H
21738 # include <kerberosv5/krb5.h>
21740 # include <krb5/krb5.h>
21746 krb5_get_init_creds_opt *opts;
21748 krb5_get_init_creds_opt_free(c, opts);
21752 if ac_fn_c_try_compile "$LINENO"
21754 rra_cv_func_krb5_get_init_creds_opt_free_args=yes
21756 rra_cv_func_krb5_get_init_creds_opt_free_args=no
21758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_func_krb5_get_init_creds_opt_free_args" >&5
21761 printf "%s\n" "$rra_cv_func_krb5_get_init_creds_opt_free_args" >&6; }
21762 if test $rra_cv_func_krb5_get_init_creds_opt_free_args = yes
21765 printf "%s\n" "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_2_ARGS 1" >>confdefs.h
21771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
21772 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
21773 if test ${ac_cv_c_undeclared_builtin_options+y}
21775 printf %s "(cached) " >&6
21777 ac_save_CFLAGS=$CFLAGS
21778 ac_cv_c_undeclared_builtin_options='cannot detect'
21779 for ac_arg in '' -fno-builtin; do
21780 CFLAGS="$ac_save_CFLAGS $ac_arg"
21781 # This test program should *not* compile successfully.
21782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783 /* end confdefs.h. */
21793 if ac_fn_c_try_compile "$LINENO"
21797 # This test program should compile successfully.
21798 # No library function is consistently available on
21799 # freestanding implementations, so test against a dummy
21800 # declaration. Include always-available headers on the
21801 # off chance that they somehow elicit warnings.
21802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21803 /* end confdefs.h. */
21805 #include <limits.h>
21806 #include <stdarg.h>
21807 #include <stddef.h>
21808 extern void ac_decl (int, char *);
21813 (void) ac_decl (0, (char *) 0);
21820 if ac_fn_c_try_compile "$LINENO"
21822 if test x"$ac_arg" = x
21824 ac_cv_c_undeclared_builtin_options='none needed'
21826 ac_cv_c_undeclared_builtin_options=$ac_arg
21830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21834 CFLAGS=$ac_save_CFLAGS
21837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21838 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
21839 case $ac_cv_c_undeclared_builtin_options in #(
21841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21842 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21843 as_fn_error $? "cannot make $CC report undeclared builtins
21844 See \`config.log' for more details" "$LINENO" 5; } ;; #(
21846 ac_c_undeclared_builtin_options='' ;; #(
21848 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21851 ac_fn_check_decl "$LINENO" "krb5_kt_free_entry" "ac_cv_have_decl_krb5_kt_free_entry" "
21854 #elif HAVE_KERBEROSV5_KRB5_H
21855 # include <kerberosv5/krb5.h>
21857 # include <krb5/krb5.h>
21860 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21861 if test "x$ac_cv_have_decl_krb5_kt_free_entry" = xyes
21867 printf "%s\n" "#define HAVE_DECL_KRB5_KT_FREE_ENTRY $ac_have_decl" >>confdefs.h
21870 for ac_func in krb5_appdefault_string
21872 ac_fn_c_check_func "$LINENO" "krb5_appdefault_string" "ac_cv_func_krb5_appdefault_string"
21873 if test "x$ac_cv_func_krb5_appdefault_string" = xyes
21875 printf "%s\n" "#define HAVE_KRB5_APPDEFAULT_STRING 1" >>confdefs.h
21878 ac_fn_c_check_func "$LINENO" "krb5_get_profile" "ac_cv_func_krb5_get_profile"
21879 if test "x$ac_cv_func_krb5_get_profile" = xyes
21881 printf "%s\n" "#define HAVE_KRB5_GET_PROFILE 1" >>confdefs.h
21885 ac_fn_c_check_header_compile "$LINENO" "k5profile.h" "ac_cv_header_k5profile_h" "$ac_includes_default"
21886 if test "x$ac_cv_header_k5profile_h" = xyes
21888 printf "%s\n" "#define HAVE_K5PROFILE_H 1" >>confdefs.h
21891 ac_fn_c_check_header_compile "$LINENO" "profile.h" "ac_cv_header_profile_h" "$ac_includes_default"
21892 if test "x$ac_cv_header_profile_h" = xyes
21894 printf "%s\n" "#define HAVE_PROFILE_H 1" >>confdefs.h
21898 case " $LIBOBJS " in
21899 *" krb5-profile.$ac_objext "* ) ;;
21900 *) LIBOBJS="$LIBOBJS krb5-profile.$ac_objext"
21907 case " $LIBOBJS " in
21908 *" krb5-extra.$ac_objext "* ) ;;
21909 *) LIBOBJS="$LIBOBJS krb5-extra.$ac_objext"
21913 ac_fn_c_check_header_compile "$LINENO" "kadm5/kadm5-pwcheck.h" "ac_cv_header_kadm5_kadm5_pwcheck_h" "
21916 #elif HAVE_KERBEROSV5_KRB5_H
21917 # include <kerberosv5/krb5.h>
21919 # include <krb5/krb5.h>
21923 if test "x$ac_cv_header_kadm5_kadm5_pwcheck_h" = xyes
21925 printf "%s\n" "#define HAVE_KADM5_KADM5_PWCHECK_H 1" >>confdefs.h
21928 ac_fn_c_check_header_compile "$LINENO" "kadm5/kadm5_err.h" "ac_cv_header_kadm5_kadm5_err_h" "
21931 #elif HAVE_KERBEROSV5_KRB5_H
21932 # include <kerberosv5/krb5.h>
21934 # include <krb5/krb5.h>
21938 if test "x$ac_cv_header_kadm5_kadm5_err_h" = xyes
21940 printf "%s\n" "#define HAVE_KADM5_KADM5_ERR_H 1" >>confdefs.h
21944 CPPFLAGS="$rra_krb5_save_CPPFLAGS"
21945 LDFLAGS="$rra_krb5_save_LDFLAGS"
21946 LIBS="$rra_krb5_save_LIBS"
21954 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21955 if test -n "$ac_tool_prefix"; then
21956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21957 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21959 printf %s "checking for $ac_word... " >&6; }
21960 if test ${ac_cv_path_PKG_CONFIG+y}
21962 printf %s "(cached) " >&6
21964 case $PKG_CONFIG in
21966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21970 for as_dir in $PATH
21973 case $as_dir in #(((
21976 *) as_dir=$as_dir/ ;;
21978 for ac_exec_ext in '' $ac_executable_extensions; do
21979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21980 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21991 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21992 if test -n "$PKG_CONFIG"; then
21993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21994 printf "%s\n" "$PKG_CONFIG" >&6; }
21996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21997 printf "%s\n" "no" >&6; }
22002 if test -z "$ac_cv_path_PKG_CONFIG"; then
22003 ac_pt_PKG_CONFIG=$PKG_CONFIG
22004 # Extract the first word of "pkg-config", so it can be a program name with args.
22005 set dummy pkg-config; ac_word=$2
22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22007 printf %s "checking for $ac_word... " >&6; }
22008 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
22010 printf %s "(cached) " >&6
22012 case $ac_pt_PKG_CONFIG in
22014 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22018 for as_dir in $PATH
22021 case $as_dir in #(((
22024 *) as_dir=$as_dir/ ;;
22026 for ac_exec_ext in '' $ac_executable_extensions; do
22027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22028 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
22029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22039 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22040 if test -n "$ac_pt_PKG_CONFIG"; then
22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22042 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
22044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22045 printf "%s\n" "no" >&6; }
22048 if test "x$ac_pt_PKG_CONFIG" = x; then
22051 case $cross_compiling:$ac_tool_warned in
22053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22055 ac_tool_warned=yes ;;
22057 PKG_CONFIG=$ac_pt_PKG_CONFIG
22060 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22064 if test -n "$PKG_CONFIG"; then
22065 _pkg_min_version=0.9.0
22066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22067 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22068 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22070 printf "%s\n" "yes" >&6; }
22072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22073 printf "%s\n" "no" >&6; }
22078 rra_SQLITE3_libdir=
22079 rra_SQLITE3_includedir=
22088 # Check whether --with-sqlite3 was given.
22089 if test ${with_sqlite3+y}
22091 withval=$with_sqlite3; if test x"$withval" = xno
22093 rra_use_SQLITE3=false
22095 if test x"$withval" != xyes
22097 rra_SQLITE3_root="$withval"
22099 rra_use_SQLITE3=true
22104 # Check whether --with-sqlite3-include was given.
22105 if test ${with_sqlite3_include+y}
22107 withval=$with_sqlite3_include; if test x"$withval" != xyes && test x"$withval" != xno
22109 rra_SQLITE3_includedir="$withval"
22114 # Check whether --with-sqlite3-lib was given.
22115 if test ${with_sqlite3_lib+y}
22117 withval=$with_sqlite3_lib; if test x"$withval" != xyes && test x"$withval" != xno
22119 rra_SQLITE3_libdir="$withval"
22123 if test x"$rra_use_SQLITE3" != xfalse
22125 if test x"$rra_use_SQLITE3" = xtrue
22127 if test x"$rra_SQLITE3_libdir" != x
22129 SQLITE3_LDFLAGS="-L$rra_SQLITE3_libdir"
22131 if test x"$rra_SQLITE3_root" != x
22134 if test -d "${rra_SQLITE3_root}/$rra_lib_arch_name"
22138 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/${rra_lib_arch_name}"
22140 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/${rra_lib_arch_name}/"
22145 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/lib"
22147 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/lib/"
22150 SQLITE3_LDFLAGS=`printf "%s\n" "$SQLITE3_LDFLAGS" | sed -e 's/^ *//'`
22153 if test x"$rra_SQLITE3_includedir" != x
22155 SQLITE3_CPPFLAGS="-I$rra_SQLITE3_includedir"
22157 if test x"$rra_SQLITE3_root" != x
22159 if test x"$rra_SQLITE3_root" != x/usr
22161 SQLITE3_CPPFLAGS="-I${rra_SQLITE3_root}/include"
22165 if test x"$SQLITE3_CPPFLAGS" = x && test x"$SQLITE3_LDFLAGS" = x
22167 if test -n "$PKG_CONFIG" && \
22168 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22169 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22172 test $ac_status = 0; }; then
22175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
22176 printf %s "checking for sqlite3... " >&6; }
22178 if test -n "$SQLITE3_CFLAGS"; then
22179 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
22180 elif test -n "$PKG_CONFIG"; then
22181 if test -n "$PKG_CONFIG" && \
22182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22183 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22186 test $ac_status = 0; }; then
22187 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
22188 test "x$?" != "x0" && pkg_failed=yes
22195 if test -n "$SQLITE3_LIBS"; then
22196 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
22197 elif test -n "$PKG_CONFIG"; then
22198 if test -n "$PKG_CONFIG" && \
22199 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22200 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22202 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22203 test $ac_status = 0; }; then
22204 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
22205 test "x$?" != "x0" && pkg_failed=yes
22215 if test $pkg_failed = yes; then
22216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 printf "%s\n" "no" >&6; }
22219 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22220 _pkg_short_errors_supported=yes
22222 _pkg_short_errors_supported=no
22224 if test $_pkg_short_errors_supported = yes; then
22225 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
22227 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
22229 # Put the nasty error message in config.log where it belongs
22230 echo "$SQLITE3_PKG_ERRORS" >&5
22232 as_fn_error $? "Package requirements (sqlite3) were not met:
22234 $SQLITE3_PKG_ERRORS
22236 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22237 installed software in a non-standard prefix.
22239 Alternatively, you may set the environment variables SQLITE3_CFLAGS
22240 and SQLITE3_LIBS to avoid the need to call pkg-config.
22241 See the pkg-config man page for more details." "$LINENO" 5
22242 elif test $pkg_failed = untried; then
22243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22244 printf "%s\n" "no" >&6; }
22245 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22247 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22248 is in your PATH or set the PKG_CONFIG environment variable to the full
22249 path to pkg-config.
22251 Alternatively, you may set the environment variables SQLITE3_CFLAGS
22252 and SQLITE3_LIBS to avoid the need to call pkg-config.
22253 See the pkg-config man page for more details.
22255 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22256 See \`config.log' for more details" "$LINENO" 5; }
22258 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
22259 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
22260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22261 printf "%s\n" "yes" >&6; }
22264 SQLITE3_CPPFLAGS="$SQLITE3_CFLAGS"
22267 if test x"$SQLITE3_LIBS" = x
22269 rra_SQLITE3_save_CPPFLAGS="$CPPFLAGS"
22270 rra_SQLITE3_save_LDFLAGS="$LDFLAGS"
22271 rra_SQLITE3_save_LIBS="$LIBS"
22272 CPPFLAGS="$SQLITE3_CPPFLAGS $CPPFLAGS"
22273 LDFLAGS="$SQLITE3_LDFLAGS $LDFLAGS"
22274 LIBS="$SQLITE3_LIBS $LIBS"
22276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22277 printf %s "checking for library containing sqlite3_open_v2... " >&6; }
22278 if test ${ac_cv_search_sqlite3_open_v2+y}
22280 printf %s "(cached) " >&6
22282 ac_func_search_save_LIBS=$LIBS
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22286 /* Override any GCC internal prototype to avoid an error.
22287 Use char because int might match the return type of a GCC
22288 builtin and then its argument prototype would still apply. */
22289 char sqlite3_open_v2 ();
22293 return sqlite3_open_v2 ();
22298 for ac_lib in '' sqlite3
22300 if test -z "$ac_lib"; then
22301 ac_res="none required"
22304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22306 if ac_fn_c_try_link "$LINENO"
22308 ac_cv_search_sqlite3_open_v2=$ac_res
22310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22312 if test ${ac_cv_search_sqlite3_open_v2+y}
22317 if test ${ac_cv_search_sqlite3_open_v2+y}
22321 ac_cv_search_sqlite3_open_v2=no
22323 rm conftest.$ac_ext
22324 LIBS=$ac_func_search_save_LIBS
22326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22327 printf "%s\n" "$ac_cv_search_sqlite3_open_v2" >&6; }
22328 ac_res=$ac_cv_search_sqlite3_open_v2
22329 if test "$ac_res" != no
22331 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22332 SQLITE3_LIBS="$LIBS"
22334 if test x"true" = xtrue
22336 as_fn_error $? "cannot find usable libsqlite3 library" "$LINENO" 5
22340 CPPFLAGS="$rra_SQLITE3_save_CPPFLAGS"
22341 LDFLAGS="$rra_SQLITE3_save_LDFLAGS"
22342 LIBS="$rra_SQLITE3_save_LIBS"
22344 rra_SQLITE3_save_CPPFLAGS="$CPPFLAGS"
22345 rra_SQLITE3_save_LDFLAGS="$LDFLAGS"
22346 rra_SQLITE3_save_LIBS="$LIBS"
22347 CPPFLAGS="$SQLITE3_CPPFLAGS $CPPFLAGS"
22348 LDFLAGS="$SQLITE3_LDFLAGS $LDFLAGS"
22349 LIBS="$SQLITE3_LIBS $LIBS"
22350 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22351 if test "x$ac_cv_header_sqlite3_h" = xyes
22353 printf "%s\n" "#define HAVE_SQLITE3_H 1" >>confdefs.h
22357 CPPFLAGS="$rra_SQLITE3_save_CPPFLAGS"
22358 LDFLAGS="$rra_SQLITE3_save_LDFLAGS"
22359 LIBS="$rra_SQLITE3_save_LIBS"
22361 if test x"$rra_SQLITE3_libdir" != x
22363 SQLITE3_LDFLAGS="-L$rra_SQLITE3_libdir"
22365 if test x"$rra_SQLITE3_root" != x
22368 if test -d "${rra_SQLITE3_root}/$rra_lib_arch_name"
22372 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/${rra_lib_arch_name}"
22374 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/${rra_lib_arch_name}/"
22379 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/lib"
22381 SQLITE3_LDFLAGS="$SQLITE3_LDFLAGS -L${rra_SQLITE3_root}/lib/"
22384 SQLITE3_LDFLAGS=`printf "%s\n" "$SQLITE3_LDFLAGS" | sed -e 's/^ *//'`
22387 if test x"$rra_SQLITE3_includedir" != x
22389 SQLITE3_CPPFLAGS="-I$rra_SQLITE3_includedir"
22391 if test x"$rra_SQLITE3_root" != x
22393 if test x"$rra_SQLITE3_root" != x/usr
22395 SQLITE3_CPPFLAGS="-I${rra_SQLITE3_root}/include"
22399 if test x"$SQLITE3_CPPFLAGS" = x && test x"$SQLITE3_LDFLAGS" = x
22401 if test -n "$PKG_CONFIG" && \
22402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22403 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22405 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; then
22409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3" >&5
22410 printf %s "checking for sqlite3... " >&6; }
22412 if test -n "$SQLITE3_CFLAGS"; then
22413 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
22414 elif test -n "$PKG_CONFIG"; then
22415 if test -n "$PKG_CONFIG" && \
22416 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22417 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22420 test $ac_status = 0; }; then
22421 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
22422 test "x$?" != "x0" && pkg_failed=yes
22429 if test -n "$SQLITE3_LIBS"; then
22430 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
22431 elif test -n "$PKG_CONFIG"; then
22432 if test -n "$PKG_CONFIG" && \
22433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5
22434 ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
22436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22437 test $ac_status = 0; }; then
22438 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
22439 test "x$?" != "x0" && pkg_failed=yes
22449 if test $pkg_failed = yes; then
22450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22451 printf "%s\n" "no" >&6; }
22453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22454 _pkg_short_errors_supported=yes
22456 _pkg_short_errors_supported=no
22458 if test $_pkg_short_errors_supported = yes; then
22459 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1`
22461 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1`
22463 # Put the nasty error message in config.log where it belongs
22464 echo "$SQLITE3_PKG_ERRORS" >&5
22466 as_fn_error $? "Package requirements (sqlite3) were not met:
22468 $SQLITE3_PKG_ERRORS
22470 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22471 installed software in a non-standard prefix.
22473 Alternatively, you may set the environment variables SQLITE3_CFLAGS
22474 and SQLITE3_LIBS to avoid the need to call pkg-config.
22475 See the pkg-config man page for more details." "$LINENO" 5
22476 elif test $pkg_failed = untried; then
22477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22478 printf "%s\n" "no" >&6; }
22479 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22480 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22481 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22482 is in your PATH or set the PKG_CONFIG environment variable to the full
22483 path to pkg-config.
22485 Alternatively, you may set the environment variables SQLITE3_CFLAGS
22486 and SQLITE3_LIBS to avoid the need to call pkg-config.
22487 See the pkg-config man page for more details.
22489 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22490 See \`config.log' for more details" "$LINENO" 5; }
22492 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
22493 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
22494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22495 printf "%s\n" "yes" >&6; }
22498 SQLITE3_CPPFLAGS="$SQLITE3_CFLAGS"
22501 if test x"$SQLITE3_LIBS" = x
22503 rra_SQLITE3_save_CPPFLAGS="$CPPFLAGS"
22504 rra_SQLITE3_save_LDFLAGS="$LDFLAGS"
22505 rra_SQLITE3_save_LIBS="$LIBS"
22506 CPPFLAGS="$SQLITE3_CPPFLAGS $CPPFLAGS"
22507 LDFLAGS="$SQLITE3_LDFLAGS $LDFLAGS"
22508 LIBS="$SQLITE3_LIBS $LIBS"
22510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_open_v2" >&5
22511 printf %s "checking for library containing sqlite3_open_v2... " >&6; }
22512 if test ${ac_cv_search_sqlite3_open_v2+y}
22514 printf %s "(cached) " >&6
22516 ac_func_search_save_LIBS=$LIBS
22517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22518 /* end confdefs.h. */
22520 /* Override any GCC internal prototype to avoid an error.
22521 Use char because int might match the return type of a GCC
22522 builtin and then its argument prototype would still apply. */
22523 char sqlite3_open_v2 ();
22527 return sqlite3_open_v2 ();
22532 for ac_lib in '' sqlite3
22534 if test -z "$ac_lib"; then
22535 ac_res="none required"
22538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22540 if ac_fn_c_try_link "$LINENO"
22542 ac_cv_search_sqlite3_open_v2=$ac_res
22544 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22546 if test ${ac_cv_search_sqlite3_open_v2+y}
22551 if test ${ac_cv_search_sqlite3_open_v2+y}
22555 ac_cv_search_sqlite3_open_v2=no
22557 rm conftest.$ac_ext
22558 LIBS=$ac_func_search_save_LIBS
22560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_open_v2" >&5
22561 printf "%s\n" "$ac_cv_search_sqlite3_open_v2" >&6; }
22562 ac_res=$ac_cv_search_sqlite3_open_v2
22563 if test "$ac_res" != no
22565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22566 SQLITE3_LIBS="$LIBS"
22568 if test x"false" = xtrue
22570 as_fn_error $? "cannot find usable libsqlite3 library" "$LINENO" 5
22574 CPPFLAGS="$rra_SQLITE3_save_CPPFLAGS"
22575 LDFLAGS="$rra_SQLITE3_save_LDFLAGS"
22576 LIBS="$rra_SQLITE3_save_LIBS"
22578 rra_SQLITE3_save_CPPFLAGS="$CPPFLAGS"
22579 rra_SQLITE3_save_LDFLAGS="$LDFLAGS"
22580 rra_SQLITE3_save_LIBS="$LIBS"
22581 CPPFLAGS="$SQLITE3_CPPFLAGS $CPPFLAGS"
22582 LDFLAGS="$SQLITE3_LDFLAGS $LDFLAGS"
22583 LIBS="$SQLITE3_LIBS $LIBS"
22584 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
22585 if test "x$ac_cv_header_sqlite3_h" = xyes
22587 printf "%s\n" "#define HAVE_SQLITE3_H 1" >>confdefs.h
22591 CPPFLAGS="$rra_SQLITE3_save_CPPFLAGS"
22592 LDFLAGS="$rra_SQLITE3_save_LDFLAGS"
22593 LIBS="$rra_SQLITE3_save_LIBS"
22596 if test x"$SQLITE3_LIBS" = x
22602 rra_use_SQLITE3=true
22604 printf "%s\n" "#define HAVE_SQLITE3 1" >>confdefs.h
22609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22610 printf %s "checking for library containing dlopen... " >&6; }
22611 if test ${ac_cv_search_dlopen+y}
22613 printf %s "(cached) " >&6
22615 ac_func_search_save_LIBS=$LIBS
22616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22617 /* end confdefs.h. */
22619 /* Override any GCC internal prototype to avoid an error.
22620 Use char because int might match the return type of a GCC
22621 builtin and then its argument prototype would still apply. */
22631 for ac_lib in '' dl
22633 if test -z "$ac_lib"; then
22634 ac_res="none required"
22637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22639 if ac_fn_c_try_link "$LINENO"
22641 ac_cv_search_dlopen=$ac_res
22643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22645 if test ${ac_cv_search_dlopen+y}
22650 if test ${ac_cv_search_dlopen+y}
22654 ac_cv_search_dlopen=no
22656 rm conftest.$ac_ext
22657 LIBS=$ac_func_search_save_LIBS
22659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22660 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
22661 ac_res=$ac_cv_search_dlopen
22662 if test "$ac_res" != no
22664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22671 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
22672 if test "x$ac_cv_type__Bool" = xyes
22675 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
22680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
22681 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
22682 if test ${ac_cv_header_stdbool_h+y}
22684 printf %s "(cached) " >&6
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h. */
22688 #include <stdbool.h>
22690 #ifndef __bool_true_false_are_defined
22691 #error "__bool_true_false_are_defined is not defined"
22693 char a[__bool_true_false_are_defined == 1 ? 1 : -1];
22695 /* Regardless of whether this is C++ or "_Bool" is a
22696 valid type name, "true" and "false" should be usable
22697 in #if expressions and integer constant expressions,
22698 and "bool" should be a valid type name. */
22701 #error "'true' is not true"
22704 #error "'true' is not equal to 1"
22706 char b[true == 1 ? 1 : -1];
22710 #error "'false' is not false"
22713 #error "'false' is not equal to 0"
22715 char d[false == 0 ? 1 : -1];
22717 enum { e = false, f = true, g = false * true, h = true * 256 };
22719 char i[(bool) 0.5 == true ? 1 : -1];
22720 char j[(bool) 0.0 == false ? 1 : -1];
22721 char k[sizeof (bool) > 0 ? 1 : -1];
22723 struct sb { bool s: 1; bool t; } s;
22724 char l[sizeof s.t > 0 ? 1 : -1];
22726 /* The following fails for
22727 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22729 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
22730 char o[-1 - (bool) 0 < 0 ? 1 : -1];
22731 /* Catch a bug in an HP-UX C compiler. See
22732 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22733 https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22738 /* C 1999 specifies that bool, true, and false are to be
22739 macros, but C++ 2011 and later overrule this. */
22740 #if __cplusplus < 201103
22742 #error "bool is not defined"
22745 #error "false is not defined"
22748 #error "true is not defined"
22752 /* If _Bool is available, repeat with it all the tests
22753 above that used bool. */
22755 struct sB { _Bool s: 1; _Bool t; } t;
22757 char q[(_Bool) 0.5 == true ? 1 : -1];
22758 char r[(_Bool) 0.0 == false ? 1 : -1];
22759 char u[sizeof (_Bool) > 0 ? 1 : -1];
22760 char v[sizeof t.t > 0 ? 1 : -1];
22763 char x[sizeof m == h * sizeof m[0] ? 1 : -1];
22764 char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
22783 /* Refer to every declared value, so they cannot be
22784 discarded as unused. */
22785 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
22786 + !l + !m + !n + !o + !p + !pp + !ps
22788 + !q + !r + !u + !v + !w + !x + !y + !z + !pt
22796 if ac_fn_c_try_compile "$LINENO"
22798 ac_cv_header_stdbool_h=yes
22800 ac_cv_header_stdbool_h=no
22802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
22805 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
22807 if test $ac_cv_header_stdbool_h = yes; then
22809 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
22813 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
22814 if test "x$ac_cv_header_strings_h" = xyes
22816 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
22819 ac_fn_c_check_header_compile "$LINENO" "sys/bittypes.h" "ac_cv_header_sys_bittypes_h" "$ac_includes_default"
22820 if test "x$ac_cv_header_sys_bittypes_h" = xyes
22822 printf "%s\n" "#define HAVE_SYS_BITTYPES_H 1" >>confdefs.h
22825 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
22826 if test "x$ac_cv_header_sys_select_h" = xyes
22828 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
22831 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22832 if test "x$ac_cv_header_sys_time_h" = xyes
22834 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22837 ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
22838 if test "x$ac_cv_header_syslog_h" = xyes
22840 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
22844 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22845 if test "x$ac_cv_have_decl_reallocarray" = xyes
22851 printf "%s\n" "#define HAVE_DECL_REALLOCARRAY $ac_have_decl" >>confdefs.h
22853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
22854 printf %s "checking for C99 variadic macros... " >&6; }
22855 if test ${rra_cv_c_c99_vamacros+y}
22857 printf %s "(cached) " >&6
22859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h. */
22863 #define error(...) fprintf(stderr, __VA_ARGS__)
22868 error("foo %d", 0);
22873 if ac_fn_c_try_compile "$LINENO"
22875 rra_cv_c_c99_vamacros=yes
22877 rra_cv_c_c99_vamacros=no
22879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_c99_vamacros" >&5
22882 printf "%s\n" "$rra_cv_c_c99_vamacros" >&6; }
22883 if test x"$rra_cv_c_c99_vamacros" = xyes
22886 printf "%s\n" "#define HAVE_C99_VAMACROS 1" >>confdefs.h
22889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU-style variadic macros" >&5
22890 printf %s "checking for GNU-style variadic macros... " >&6; }
22891 if test ${rra_cv_c_gnu_vamacros+y}
22893 printf %s "(cached) " >&6
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22899 #define error(args...) fprintf(stderr, args)
22904 error("foo %d", 0);
22909 if ac_fn_c_try_compile "$LINENO"
22911 rra_cv_c_gnu_vamacros=yes
22913 rra_cv_c_gnu_vamacros=no
22915 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rra_cv_c_gnu_vamacros" >&5
22918 printf "%s\n" "$rra_cv_c_gnu_vamacros" >&6; }
22919 if test x"$rra_cv_c_gnu_vamacros" = xyes
22922 printf "%s\n" "#define HAVE_GNU_VAMACROS 1" >>confdefs.h
22926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22927 printf %s "checking for unsigned long long int... " >&6; }
22928 if test ${ac_cv_type_unsigned_long_long_int+y}
22930 printf %s "(cached) " >&6
22932 ac_cv_type_unsigned_long_long_int=yes
22933 case $ac_prog_cc_stdc in
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 /* For now, do not test the preprocessor; as of 2007 there are too many
22940 implementations with broken preprocessors. Perhaps this can
22941 be revisited in 2012. In the meantime, code should not expect
22942 #if to work with literals wider than 32 bits. */
22943 /* Test literals. */
22944 long long int ll = 9223372036854775807ll;
22945 long long int nll = -9223372036854775807LL;
22946 unsigned long long int ull = 18446744073709551615ULL;
22947 /* Test constant expressions. */
22948 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22950 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22956 /* Test availability of runtime routines for shift and division. */
22957 long long int llmax = 9223372036854775807ll;
22958 unsigned long long int ullmax = 18446744073709551615ull;
22959 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22960 | (llmax / ll) | (llmax % ll)
22961 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22962 | (ullmax / ull) | (ullmax % ull));
22968 if ac_fn_c_try_link "$LINENO"
22972 ac_cv_type_unsigned_long_long_int=no
22974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22975 conftest$ac_exeext conftest.$ac_ext;;
22978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22979 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
22980 if test $ac_cv_type_unsigned_long_long_int = yes; then
22982 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22989 printf %s "checking for long long int... " >&6; }
22990 if test ${ac_cv_type_long_long_int+y}
22992 printf %s "(cached) " >&6
22994 ac_cv_type_long_long_int=yes
22995 case $ac_prog_cc_stdc in
22998 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
22999 if test $ac_cv_type_long_long_int = yes; then
23000 if test "$cross_compiling" = yes
23004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005 /* end confdefs.h. */
23006 #include <limits.h>
23009 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23010 # define LLONG_MAX (HALF - 1 + HALF)
23015 long long int n = 1;
23019 long long int m = n << i;
23022 if (LLONG_MAX / 2 < m)
23030 if ac_fn_c_try_run "$LINENO"
23034 ac_cv_type_long_long_int=no
23036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23037 conftest.$ac_objext conftest.beam conftest.$ac_ext
23043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23044 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
23045 if test $ac_cv_type_long_long_int = yes; then
23047 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23051 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23052 case $ac_cv_c_uint8_t in #(
23056 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
23059 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
23063 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23064 case $ac_cv_c_uint16_t in #(
23069 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
23073 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23074 case $ac_cv_c_uint32_t in #(
23078 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
23081 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
23085 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
23087 if test "x$ac_cv_type_ssize_t" = xyes
23090 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
23095 ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
23096 if test "x$ac_cv_func_explicit_bzero" = xyes
23098 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
23101 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
23102 if test "x$ac_cv_func_setrlimit" = xyes
23104 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
23108 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
23109 if test "x$ac_cv_func_asprintf" = xyes
23111 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
23114 case " $LIBOBJS " in
23115 *" asprintf.$ac_objext "* ) ;;
23116 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
23121 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
23122 if test "x$ac_cv_func_mkstemp" = xyes
23124 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
23127 case " $LIBOBJS " in
23128 *" mkstemp.$ac_objext "* ) ;;
23129 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
23134 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
23135 if test "x$ac_cv_func_reallocarray" = xyes
23137 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
23140 case " $LIBOBJS " in
23141 *" reallocarray.$ac_objext "* ) ;;
23142 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
23147 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
23148 if test "x$ac_cv_func_strndup" = xyes
23150 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
23153 case " $LIBOBJS " in
23154 *" strndup.$ac_objext "* ) ;;
23155 *) LIBOBJS="$LIBOBJS strndup.$ac_objext"
23162 ac_config_files="$ac_config_files Makefile"
23164 ac_config_headers="$ac_config_headers config.h"
23166 cat >confcache <<\_ACEOF
23167 # This file is a shell script that caches the results of configure
23168 # tests run on this system so they can be shared between configure
23169 # scripts and configure runs, see configure's option --config-cache.
23170 # It is not useful on other systems. If it contains results you don't
23171 # want to keep, you may remove or edit it.
23173 # config.status only pays attention to the cache file if you give it
23174 # the --recheck option to rerun configure.
23176 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23177 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23178 # following values.
23182 # The following way of writing the cache mishandles newlines in values,
23183 # but we know of no workaround that is simple, portable, and efficient.
23184 # So, we kill variables containing newlines.
23185 # Ultrix sh set writes to stderr and can't be redirected directly,
23186 # and sets the high bit in the cache file unless we assign to the vars.
23188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23189 eval ac_val=\$$ac_var
23193 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23194 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23197 _ | IFS | as_nl) ;; #(
23198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23199 *) { eval $ac_var=; unset $ac_var;} ;;
23205 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23206 *${as_nl}ac_space=\ *)
23207 # `set' does not quote correctly, so add quotes: double-quote
23208 # substitution turns \\\\ into \\, and sed turns \\ into \.
23211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23214 # `set' quotes correctly as required by POSIX, so do not add quotes.
23215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23224 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23228 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23229 if test -w "$cache_file"; then
23230 if test "x$cache_file" != "x/dev/null"; then
23231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23232 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23233 if test ! -f "$cache_file" || test -h "$cache_file"; then
23234 cat confcache >"$cache_file"
23236 case $cache_file in #(
23238 mv -f confcache "$cache_file"$$ &&
23239 mv -f "$cache_file"$$ "$cache_file" ;; #(
23241 mv -f confcache "$cache_file" ;;
23246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23247 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23252 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23253 # Let make expand exec_prefix.
23254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23256 DEFS=-DHAVE_CONFIG_H
23261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23262 # 1. Remove the extension, and $U if already installed.
23263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23264 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23266 # will be set to the directory where LIBOBJS objects are built.
23267 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23268 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23270 LIBOBJS=$ac_libobjs
23272 LTLIBOBJS=$ac_ltlibobjs
23275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23276 printf %s "checking that generated files are newer than configure... " >&6; }
23277 if test -n "$am_sleep_pid"; then
23278 # Hide warnings about reused PIDs.
23279 wait $am_sleep_pid 2>/dev/null
23281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23282 printf "%s\n" "done" >&6; }
23283 if test -n "$EXEEXT"; then
23285 am__EXEEXT_FALSE='#'
23287 am__EXEEXT_TRUE='#'
23291 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23292 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
23293 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23295 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23296 as_fn_error $? "conditional \"AMDEP\" was never defined.
23297 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23299 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23300 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23301 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23303 if test -z "${EMBEDDED_CRACKLIB_TRUE}" && test -z "${EMBEDDED_CRACKLIB_FALSE}"; then
23304 as_fn_error $? "conditional \"EMBEDDED_CRACKLIB\" was never defined.
23305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23307 if test -z "${KRB5_USES_COM_ERR_TRUE}" && test -z "${KRB5_USES_COM_ERR_FALSE}"; then
23308 as_fn_error $? "conditional \"KRB5_USES_COM_ERR\" was never defined.
23309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23312 : "${CONFIG_STATUS=./config.status}"
23314 ac_clean_files_save=$ac_clean_files
23315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23317 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23321 # Generated by $as_me.
23322 # Run this file to recreate the current configuration.
23323 # Compiler output produced by configure, useful for debugging
23324 # configure, is in config.log if it exists.
23327 ac_cs_recheck=false
23330 SHELL=\${CONFIG_SHELL-$SHELL}
23333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23334 ## -------------------- ##
23335 ## M4sh Initialization. ##
23336 ## -------------------- ##
23338 # Be more Bourne compatible
23339 DUALCASE=1; export DUALCASE # for MKS sh
23341 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23345 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23346 # is contrary to our usage. Disable this feature.
23347 alias -g '${1+"$@"}'='"$@"'
23348 setopt NO_GLOB_SUBST
23350 case `(set -o) 2>/dev/null` in #(
23360 # Reset variables that may have inherited troublesome values from
23363 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23364 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23365 # side effect of setting IFS to empty, thus disabling word splitting.)
23366 # Quoting is to prevent editors from complaining about space-tab.
23376 # Ensure predictable behavior from utilities with locale-dependent output.
23382 # We cannot yet rely on "unset" to work, but we need these variables
23383 # to be unset--not just set to an empty or harmless value--now, to
23384 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23385 # also avoids known problems related to "unset" and subshell syntax
23386 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23387 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23388 do eval test \${$as_var+y} \
23389 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23392 # Ensure that fds 0, 1, and 2 are open.
23393 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23394 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23395 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23397 # The user is always right.
23398 if ${PATH_SEPARATOR+false} :; then
23400 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23401 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23407 # Find who we are. Look in the path if we contain no directory separator.
23410 *[\\/]* ) as_myself=$0 ;;
23411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23412 for as_dir in $PATH
23415 case $as_dir in #(((
23418 *) as_dir=$as_dir/ ;;
23420 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23426 # We did not find ourselves, most probably we were run as `sh COMMAND'
23427 # in which case we are not to be found in the path.
23428 if test "x$as_myself" = x; then
23431 if test ! -f "$as_myself"; then
23432 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23438 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23439 # ----------------------------------------
23440 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23441 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23442 # script with STATUS, using 1 if that was 0.
23445 as_status=$1; test $as_status -eq 0 && as_status=1
23447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23450 printf "%s\n" "$as_me: error: $2" >&2
23451 as_fn_exit $as_status
23456 # as_fn_set_status STATUS
23457 # -----------------------
23458 # Set $? to STATUS, without forking.
23459 as_fn_set_status ()
23462 } # as_fn_set_status
23464 # as_fn_exit STATUS
23465 # -----------------
23466 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23470 as_fn_set_status $1
23476 # Portably unset VAR.
23479 { eval $1=; unset $1;}
23481 as_unset=as_fn_unset
23483 # as_fn_append VAR VALUE
23484 # ----------------------
23485 # Append the text in VALUE to the end of the definition contained in VAR. Take
23486 # advantage of any shell optimizations that allow amortized linear growth over
23487 # repeated appends, instead of the typical quadratic growth present in naive
23489 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23491 eval 'as_fn_append ()
23502 # as_fn_arith ARG...
23503 # ------------------
23504 # Perform arithmetic evaluation on the ARGs, and store the result in the
23505 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23506 # must be portable across $(()) and expr.
23507 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23509 eval 'as_fn_arith ()
23516 as_val=`expr "$@" || test $? -eq 1`
23521 if expr a : '\(a\)' >/dev/null 2>&1 &&
23522 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23528 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23529 as_basename=basename
23534 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23540 as_me=`$as_basename -- "$0" ||
23541 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23542 X"$0" : 'X\(//\)$' \| \
23543 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23544 printf "%s\n" X/"$0" |
23545 sed '/^.*\/\([^/][^/]*\)\/*$/{
23559 # Avoid depending upon Character Ranges.
23560 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23561 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23562 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23563 as_cr_digits='0123456789'
23564 as_cr_alnum=$as_cr_Letters$as_cr_digits
23567 # Determine whether it's possible to make 'echo' print without a newline.
23568 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23569 # for compatibility with existing Makefiles.
23570 ECHO_C= ECHO_N= ECHO_T=
23571 case `echo -n x` in #(((((
23573 case `echo 'xy\c'` in
23574 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23576 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23583 # For backward compatibility with old third-party macros, we provide
23584 # the shell variables $as_echo and $as_echo_n. New code should use
23585 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23586 as_echo='printf %s\n'
23587 as_echo_n='printf %s'
23589 rm -f conf$$ conf$$.exe conf$$.file
23590 if test -d conf$$.dir; then
23591 rm -f conf$$.dir/conf$$.file
23594 mkdir conf$$.dir 2>/dev/null
23596 if (echo >conf$$.file) 2>/dev/null; then
23597 if ln -s conf$$.file conf$$ 2>/dev/null; then
23599 # ... but there are two gotchas:
23600 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23601 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23602 # In both cases, we have to default to `cp -pR'.
23603 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23605 elif ln conf$$.file conf$$ 2>/dev/null; then
23613 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23614 rmdir conf$$.dir 2>/dev/null
23619 # Create "$as_dir" as a directory, including parents if necessary.
23624 -*) as_dir=./$as_dir;;
23626 test -d "$as_dir" || eval $as_mkdir_p || {
23630 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23631 *) as_qdir=$as_dir;;
23633 as_dirs="'$as_qdir' $as_dirs"
23634 as_dir=`$as_dirname -- "$as_dir" ||
23635 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23636 X"$as_dir" : 'X\(//\)[^/]' \| \
23637 X"$as_dir" : 'X\(//\)$' \| \
23638 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23639 printf "%s\n" X"$as_dir" |
23640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23644 /^X\(\/\/\)[^/].*/{
23657 test -d "$as_dir" && break
23659 test -z "$as_dirs" || eval "mkdir $as_dirs"
23660 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23664 if mkdir -p . 2>/dev/null; then
23665 as_mkdir_p='mkdir -p "$as_dir"'
23667 test -d ./-p && rmdir ./-p
23672 # as_fn_executable_p FILE
23673 # -----------------------
23674 # Test if FILE is an executable regular file.
23675 as_fn_executable_p ()
23677 test -f "$1" && test -x "$1"
23678 } # as_fn_executable_p
23679 as_test_x='test -x'
23680 as_executable_p=as_fn_executable_p
23682 # Sed expression to map a string onto a valid CPP name.
23683 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23685 # Sed expression to map a string onto a valid variable name.
23686 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23690 ## ----------------------------------- ##
23691 ## Main body of $CONFIG_STATUS script. ##
23692 ## ----------------------------------- ##
23694 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23697 # Save the log message, to keep $0 and so on meaningful, and to
23698 # report actual input values of CONFIG_FILES etc. instead of their
23699 # values after options handling.
23701 This file was extended by krb5-strength $as_me 3.3, which was
23702 generated by GNU Autoconf 2.71. Invocation command line was
23704 CONFIG_FILES = $CONFIG_FILES
23705 CONFIG_HEADERS = $CONFIG_HEADERS
23706 CONFIG_LINKS = $CONFIG_LINKS
23707 CONFIG_COMMANDS = $CONFIG_COMMANDS
23710 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23715 case $ac_config_files in *"
23716 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23719 case $ac_config_headers in *"
23720 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23725 # Files that config.status was made for.
23726 config_files="$ac_config_files"
23727 config_headers="$ac_config_headers"
23728 config_commands="$ac_config_commands"
23732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23734 \`$as_me' instantiates files and other configuration actions
23735 from templates according to the current configuration. Unless the files
23736 and actions are specified as TAGs, all are instantiated by default.
23738 Usage: $0 [OPTION]... [TAG]...
23740 -h, --help print this help, then exit
23741 -V, --version print version number and configuration settings, then exit
23742 --config print configuration, then exit
23743 -q, --quiet, --silent
23744 do not print progress messages
23745 -d, --debug don't remove temporary files
23746 --recheck update $as_me by reconfiguring in the same conditions
23747 --file=FILE[:TEMPLATE]
23748 instantiate the configuration file FILE
23749 --header=FILE[:TEMPLATE]
23750 instantiate the configuration header FILE
23752 Configuration files:
23755 Configuration headers:
23758 Configuration commands:
23761 Report bugs to <eagle@eyrie.org>."
23764 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23765 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23767 ac_cs_config='$ac_cs_config_escaped'
23769 krb5-strength config.status 3.3
23770 configured by $0, generated by GNU Autoconf 2.71,
23771 with options \\"\$ac_cs_config\\"
23773 Copyright (C) 2021 Free Software Foundation, Inc.
23774 This config.status script is free software; the Free Software Foundation
23775 gives unlimited permission to copy, distribute and modify it."
23782 test -n "\$AWK" || AWK=awk
23785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23786 # The default lists apply if the user does not specify any file.
23792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23809 # Handling of the options.
23810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23813 printf "%s\n" "$ac_cs_version"; exit ;;
23814 --config | --confi | --conf | --con | --co | --c )
23815 printf "%s\n" "$ac_cs_config"; exit ;;
23816 --debug | --debu | --deb | --de | --d | -d )
23818 --file | --fil | --fi | --f )
23821 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23822 '') as_fn_error $? "missing file argument" ;;
23824 as_fn_append CONFIG_FILES " '$ac_optarg'"
23825 ac_need_defaults=false;;
23826 --header | --heade | --head | --hea )
23829 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23832 ac_need_defaults=false;;
23834 # Conflict between --help and --header
23835 as_fn_error $? "ambiguous option: \`$1'
23836 Try \`$0 --help' for more information.";;
23837 --help | --hel | -h )
23838 printf "%s\n" "$ac_cs_usage"; exit ;;
23839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23843 # This is an error.
23844 -*) as_fn_error $? "unrecognized option: \`$1'
23845 Try \`$0 --help' for more information." ;;
23847 *) as_fn_append ac_config_targets " $1"
23848 ac_need_defaults=false ;;
23854 ac_configure_extra_args=
23856 if $ac_cs_silent; then
23858 ac_configure_extra_args="$ac_configure_extra_args --silent"
23862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23863 if \$ac_cs_recheck; then
23864 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23866 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23867 CONFIG_SHELL='$SHELL'
23868 export CONFIG_SHELL
23873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23878 ## Running $as_me. ##
23880 printf "%s\n" "$ac_log"
23884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23888 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23891 # The HP-UX ksh and POSIX shell print the target directory to stdout
23892 # if CDPATH is set.
23893 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23895 sed_quote_subst='$sed_quote_subst'
23896 double_quote_subst='$double_quote_subst'
23897 delay_variable_subst='$delay_variable_subst'
23898 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23899 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23900 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23901 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23902 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23903 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23904 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23905 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23906 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23907 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23908 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23909 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23910 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23911 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23912 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23913 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23914 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23915 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23916 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23917 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23918 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23919 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23920 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23921 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23922 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23923 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23924 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23925 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23926 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23927 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23928 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23929 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23930 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23931 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23932 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23933 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23934 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23935 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23936 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23937 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23938 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23939 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23940 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23941 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23942 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23943 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23944 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23945 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23946 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23947 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23948 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23949 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23950 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23951 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23952 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23953 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23954 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23955 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23956 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23957 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23958 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"`'
23959 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23960 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23961 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23962 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23963 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23964 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23965 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23966 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23967 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23968 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23969 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23970 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23971 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23972 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23973 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23974 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23975 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23976 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23977 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23978 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23979 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23980 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23981 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23982 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23983 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23984 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23985 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23986 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23987 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23988 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23989 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23990 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23991 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23992 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23993 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23994 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23995 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23996 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23997 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23998 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23999 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
24000 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
24001 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
24002 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
24003 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
24004 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
24005 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
24006 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
24007 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
24008 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
24009 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
24010 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
24011 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
24012 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
24013 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
24014 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
24015 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
24016 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
24017 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
24018 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
24019 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
24020 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
24021 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
24022 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
24023 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
24024 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
24025 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
24026 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
24027 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
24028 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
24029 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
24030 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
24031 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
24032 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
24033 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
24034 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
24037 LTCFLAGS='$LTCFLAGS'
24038 compiler='$compiler_DEFAULT'
24040 # A function that is used when there is no print builtin or printf.
24041 func_fallback_echo ()
24043 eval 'cat <<_LTECHO_EOF
24048 # Quote evaled strings.
24064 deplibs_check_method \
24069 sharedlib_from_linklib_cmd \
24071 archiver_list_spec \
24077 lt_cv_sys_global_symbol_pipe \
24078 lt_cv_sys_global_symbol_to_cdecl \
24079 lt_cv_sys_global_symbol_to_import \
24080 lt_cv_sys_global_symbol_to_c_name_address \
24081 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24082 lt_cv_nm_interface \
24083 nm_file_list_spec \
24084 lt_cv_truncate_bin \
24085 lt_prog_compiler_no_builtin_flag \
24086 lt_prog_compiler_pic \
24087 lt_prog_compiler_wl \
24088 lt_prog_compiler_static \
24089 lt_cv_prog_compiler_c_o \
24098 export_dynamic_flag_spec \
24099 whole_archive_flag_spec \
24100 compiler_needs_object \
24102 allow_undefined_flag \
24103 no_undefined_flag \
24104 hardcode_libdir_flag_spec \
24105 hardcode_libdir_separator \
24109 variables_saved_for_relink \
24111 library_names_spec \
24113 install_override_mode \
24117 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24118 *[\\\\\\\`\\"\\\$]*)
24119 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24122 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24127 # Double-quote double-evaled strings.
24128 for var in reload_cmds \
24129 old_postinstall_cmds \
24130 old_postuninstall_cmds \
24132 extract_expsyms_cmds \
24133 old_archive_from_new_cmds \
24134 old_archive_from_expsyms_cmds \
24136 archive_expsym_cmds \
24138 module_expsym_cmds \
24139 export_symbols_cmds \
24143 postuninstall_cmds \
24145 sys_lib_search_path_spec \
24146 configure_time_dlsearch_path \
24147 configure_time_lt_sys_library_path; do
24148 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24149 *[\\\\\\\`\\"\\\$]*)
24150 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24153 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24158 ac_aux_dir='$ac_aux_dir'
24160 # See if we are running on zsh, and set the options that allow our
24161 # commands through without removal of \ escapes INIT.
24162 if test -n "\${ZSH_VERSION+set}"; then
24163 setopt NO_GLOB_SUBST
24177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24179 # Handling of arguments.
24180 for ac_config_target in $ac_config_targets
24182 case $ac_config_target in
24183 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24184 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24185 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24186 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24188 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24193 # If the user did not use the arguments to specify the items to instantiate,
24194 # then the envvar interface is used. Set only those that are not.
24195 # We use the long form for the default assignment because of an extremely
24196 # bizarre bug on SunOS 4.1.3.
24197 if $ac_need_defaults; then
24198 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24199 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24200 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24203 # Have a temporary directory for convenience. Make it in the build tree
24204 # simply because there is no reason against having it here, and in addition,
24205 # creating and moving files from /tmp can sometimes cause problems.
24206 # Hook for its removal unless debugging.
24207 # Note that there is a small window in which the directory will not be cleaned:
24208 # after its creation but before its name has been assigned to `$tmp'.
24212 trap 'exit_status=$?
24213 : "${ac_tmp:=$tmp}"
24214 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24216 trap 'as_fn_exit 1' 1 2 13 15
24218 # Create a (secure) tmp directory for tmp files.
24221 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24225 tmp=./conf$$-$RANDOM
24226 (umask 077 && mkdir "$tmp")
24227 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24230 # Set up the scripts for CONFIG_FILES section.
24231 # No need to generate them if there are no CONFIG_FILES.
24232 # This happens for instance with `./config.status config.h'.
24233 if test -n "$CONFIG_FILES"; then
24236 ac_cr=`echo X | tr X '\015'`
24237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24238 # But we know of no other shell where ac_cr would be empty at this
24239 # point, so we can use a bashism as a fallback.
24240 if test "x$ac_cr" = x; then
24241 eval ac_cr=\$\'\\r\'
24243 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24247 ac_cs_awk_cr=$ac_cr
24250 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24255 echo "cat >conf$$subs.awk <<_ACEOF" &&
24256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24258 } >conf$$subs.sh ||
24259 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24262 for ac_last_try in false false false false false :; do
24263 . ./conf$$subs.sh ||
24264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24267 if test $ac_delim_n = $ac_delim_num; then
24269 elif $ac_last_try; then
24270 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24275 rm -f conf$$subs.sh
24277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24278 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24282 s/^/S["/; s/!.*/"]=/
24292 s/\(.\{148\}\)..*/\1/
24294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24306 s/\(.\{148\}\)..*/\1/
24308 s/["\\]/\\&/g; s/^/"/; s/$/"/
24312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24317 ' <conf$$subs.awk | sed '
24322 ' >>$CONFIG_STATUS || ac_write_fail=1
24323 rm -f conf$$subs.awk
24324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24326 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24327 for (key in S) S_is_set[key] = 1
24333 nfields = split(line, field, "@")
24335 len = length(field[1])
24336 for (i = 2; i < nfields; i++) {
24338 keylen = length(key)
24339 if (S_is_set[key]) {
24341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24342 len += length(value) + length(field[++i])
24353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24354 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24355 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24358 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24359 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24362 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24363 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24364 # trailing colons and then remove the whole line if VPATH becomes empty
24365 # (actually we leave an empty line to preserve line numbers).
24366 if test "x$srcdir" = x.; then
24367 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24386 fi # test -n "$CONFIG_FILES"
24388 # Set up the scripts for CONFIG_HEADERS section.
24389 # No need to generate them if there are no CONFIG_HEADERS.
24390 # This happens for instance with `./config.status Makefile'.
24391 if test -n "$CONFIG_HEADERS"; then
24392 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24396 # Transform confdefs.h into an awk script `defines.awk', embedded as
24397 # here-document in config.status, that substitutes the proper values into
24398 # config.h.in to produce config.h.
24400 # Create a delimiter string that does not exist in confdefs.h, to ease
24401 # handling of long lines.
24403 for ac_last_try in false false :; do
24404 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24405 if test -z "$ac_tt"; then
24407 elif $ac_last_try; then
24408 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24414 # For the awk script, D is an array of macro values keyed by name,
24415 # likewise P contains macro parameters if any. Preserve backslash
24416 # newline sequences.
24418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24420 s/.\{148\}/&'"$ac_delim"'/g
24423 s/^[ ]*#[ ]*define[ ][ ]*/ /
24430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24437 D["\1"]=" \3\\\\\\n"\\/p
24439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24444 s/.\{148\}/&'"$ac_delim"'/g
24449 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24452 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24454 ' <confdefs.h | sed '
24455 s/'"$ac_delim"'/"\\\
24456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24459 for (key in D) D_is_set[key] = 1
24462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24464 split(line, arg, " ")
24465 if (arg[1] == "#") {
24469 defundef = substr(arg[1], 2)
24472 split(mac1, mac2, "(") #)
24474 prefix = substr(line, 1, index(line, defundef) - 1)
24475 if (D_is_set[macro]) {
24476 # Preserve the white space surrounding the "#".
24477 print prefix "define", macro P[macro] D[macro]
24480 # Replace #undef with comments. This is necessary, for example,
24481 # in the case of _POSIX_SOURCE, which is predefined and required
24482 # on some systems where configure will not decide to define it.
24483 if (defundef == "undef") {
24484 print "/*", prefix defundef, macro, "*/"
24492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24493 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24494 fi # test -n "$CONFIG_HEADERS"
24497 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24502 :[FHLC]) ac_mode=$ac_tag; continue;;
24504 case $ac_mode$ac_tag in
24506 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24507 :[FH]-) ac_tag=-:-;;
24508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24525 -) ac_f="$ac_tmp/stdin";;
24526 *) # Look for the file first in the build tree, then in the source tree
24527 # (if the path is not absolute). The absolute path cannot be DOS-style,
24528 # because $ac_f cannot contain `:'.
24532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24534 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24536 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24537 as_fn_append ac_file_inputs " '$ac_f'"
24540 # Let's still pretend it is `configure' which instantiates (i.e., don't
24541 # use $as_me), people would be surprised to read:
24542 # /* config.h. Generated by config.status. */
24543 configure_input='Generated from '`
24544 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24546 if test x"$ac_file" != x-; then
24547 configure_input="$ac_file. $configure_input"
24548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24549 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24551 # Neutralize special characters interpreted by sed in replacement strings.
24552 case $configure_input in #(
24553 *\&* | *\|* | *\\* )
24554 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24556 *) ac_sed_conf_input=$configure_input;;
24560 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24566 ac_dir=`$as_dirname -- "$ac_file" ||
24567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24568 X"$ac_file" : 'X\(//\)[^/]' \| \
24569 X"$ac_file" : 'X\(//\)$' \| \
24570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24571 printf "%s\n" X"$ac_file" |
24572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24576 /^X\(\/\/\)[^/].*/{
24589 as_dir="$ac_dir"; as_fn_mkdir_p
24593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24595 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24596 # A ".." for each directory in $ac_dir_suffix.
24597 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24598 case $ac_top_builddir_sub in
24599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24603 ac_abs_top_builddir=$ac_pwd
24604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24605 # for backward compatibility:
24606 ac_top_builddir=$ac_top_build_prefix
24609 .) # We are building in place.
24611 ac_top_srcdir=$ac_top_builddir_sub
24612 ac_abs_top_srcdir=$ac_pwd ;;
24613 [\\/]* | ?:[\\/]* ) # Absolute name.
24614 ac_srcdir=$srcdir$ac_dir_suffix;
24615 ac_top_srcdir=$srcdir
24616 ac_abs_top_srcdir=$srcdir ;;
24617 *) # Relative name.
24618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24619 ac_top_srcdir=$ac_top_build_prefix$srcdir
24620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24633 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24635 ac_MKDIR_P=$MKDIR_P
24637 [\\/$]* | ?:[\\/]* ) ;;
24638 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24643 # If the template does not know about datarootdir, expand it.
24644 # FIXME: This hack should be removed a few years after 2.60.
24645 ac_datarootdir_hack=; ac_datarootdir_seen=
24656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24657 *datarootdir*) ac_datarootdir_seen=yes;;
24658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24660 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24663 ac_datarootdir_hack='
24664 s&@datadir@&$datadir&g
24665 s&@docdir@&$docdir&g
24666 s&@infodir@&$infodir&g
24667 s&@localedir@&$localedir&g
24668 s&@mandir@&$mandir&g
24669 s&\\\${datarootdir}&$datarootdir&g' ;;
24673 # Neutralize VPATH when `$srcdir' = `.'.
24674 # Shell code in configure.ac might set extrasub.
24675 # FIXME: do we really want to maintain this feature?
24676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24677 ac_sed_extra="$ac_vpsub
24680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24683 s|@configure_input@|$ac_sed_conf_input|;t t
24684 s&@top_builddir@&$ac_top_builddir_sub&;t t
24685 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24686 s&@srcdir@&$ac_srcdir&;t t
24687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24688 s&@top_srcdir@&$ac_top_srcdir&;t t
24689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24690 s&@builddir@&$ac_builddir&;t t
24691 s&@abs_builddir@&$ac_abs_builddir&;t t
24692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24693 s&@INSTALL@&$ac_INSTALL&;t t
24694 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24695 $ac_datarootdir_hack
24697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24698 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24701 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24703 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24705 which seems to be undefined. Please make sure it is defined" >&5
24706 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24707 which seems to be undefined. Please make sure it is defined" >&2;}
24709 rm -f "$ac_tmp/stdin"
24711 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24712 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24720 if test x"$ac_file" != x-; then
24722 printf "%s\n" "/* $configure_input */" >&1 \
24723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24724 } >"$ac_tmp/config.h" \
24725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24726 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24728 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24731 mv "$ac_tmp/config.h" "$ac_file" \
24732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24735 printf "%s\n" "/* $configure_input */" >&1 \
24736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24737 || as_fn_error $? "could not create -" "$LINENO" 5
24739 # Compute "$ac_file"'s index in $config_headers.
24742 for _am_header in $config_headers :; do
24743 case $_am_header in
24744 $_am_arg | $_am_arg:* )
24747 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24752 X"$_am_arg" : 'X\(//\)[^/]' \| \
24753 X"$_am_arg" : 'X\(//\)$' \| \
24754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24755 printf "%s\n" X"$_am_arg" |
24756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24760 /^X\(\/\/\)[^/].*/{
24772 s/.*/./; q'`/stamp-h$_am_stamp_count
24775 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24776 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24781 case $ac_file$ac_mode in
24782 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24783 # Older Autoconf quotes --file arguments for eval, but not when files
24784 # are listed without --file. Let's play safe and only enable the eval
24785 # if we detect the quoting.
24786 # TODO: see whether this extra hack can be removed once we start
24787 # requiring Autoconf 2.70 or later.
24788 case $CONFIG_FILES in #(
24790 eval set x "$CONFIG_FILES" ;; #(
24792 set x $CONFIG_FILES ;; #(
24797 # Used to flag and report bootstrapping failures.
24801 # Strip MF so we end up with the name of the file.
24802 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24803 # Check whether this is an Automake generated Makefile which includes
24804 # dependency-tracking related rules and includes.
24805 # Grep'ing the whole file directly is not great: AIX grep has a line
24806 # limit of 2048, but all sed's we know have understand at least 4000.
24807 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24809 am_dirpart=`$as_dirname -- "$am_mf" ||
24810 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24811 X"$am_mf" : 'X\(//\)[^/]' \| \
24812 X"$am_mf" : 'X\(//\)$' \| \
24813 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24814 printf "%s\n" X"$am_mf" |
24815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24819 /^X\(\/\/\)[^/].*/{
24832 am_filepart=`$as_basename -- "$am_mf" ||
24833 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24834 X"$am_mf" : 'X\(//\)$' \| \
24835 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24836 printf "%s\n" X/"$am_mf" |
24837 sed '/^.*\/\([^/][^/]*\)\/*$/{
24850 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24851 && sed -e '/# am--include-marker/d' "$am_filepart" \
24852 | $MAKE -f - am--depfiles" >&5
24853 (cd "$am_dirpart" \
24854 && sed -e '/# am--include-marker/d' "$am_filepart" \
24855 | $MAKE -f - am--depfiles) >&5 2>&5
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } || am_rc=$?
24860 if test $am_rc -ne 0; then
24861 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24862 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24863 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24864 for automatic dependency tracking. If GNU make was not used, consider
24865 re-running the configure script with MAKE=\"gmake\" (or whatever is
24866 necessary). You can also try re-running configure with the
24867 '--disable-dependency-tracking' option to at least be able to build
24868 the package (albeit without support for automatic dependency tracking).
24869 See \`config.log' for more details" "$LINENO" 5; }
24871 { am_dirpart=; unset am_dirpart;}
24872 { am_filepart=; unset am_filepart;}
24873 { am_mf=; unset am_mf;}
24874 { am_rc=; unset am_rc;}
24875 rm -f conftest-deps.mk
24880 # See if we are running on zsh, and set the options that allow our
24881 # commands through without removal of \ escapes.
24882 if test -n "${ZSH_VERSION+set}"; then
24883 setopt NO_GLOB_SUBST
24887 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24890 cat <<_LT_EOF >> "$cfgfile"
24892 # Generated automatically by $as_me ($PACKAGE) $VERSION
24893 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24895 # Provide generalized library-building support services.
24896 # Written by Gordon Matzigkeit, 1996
24898 # Copyright (C) 2014 Free Software Foundation, Inc.
24899 # This is free software; see the source for copying conditions. There is NO
24900 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24902 # GNU Libtool is free software; you can redistribute it and/or modify
24903 # it under the terms of the GNU General Public License as published by
24904 # the Free Software Foundation; either version 2 of of the License, or
24905 # (at your option) any later version.
24907 # As a special exception to the GNU General Public License, if you
24908 # distribute this file as part of a program or library that is built
24909 # using GNU Libtool, you may include this file under the same
24910 # distribution terms that you use for the rest of that program.
24912 # GNU Libtool is distributed in the hope that it will be useful, but
24913 # WITHOUT ANY WARRANTY; without even the implied warranty of
24914 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24915 # GNU General Public License for more details.
24917 # You should have received a copy of the GNU General Public License
24918 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24921 # The names of the tagged configurations supported by this script.
24924 # Configured defaults for sys_lib_dlsearch_path munging.
24925 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24927 # ### BEGIN LIBTOOL CONFIG
24929 # Whether or not to build static libraries.
24930 build_old_libs=$enable_static
24932 # Which release of libtool.m4 was used?
24933 macro_version=$macro_version
24934 macro_revision=$macro_revision
24936 # Whether or not to build shared libraries.
24937 build_libtool_libs=$enable_shared
24939 # What type of objects to build.
24942 # Whether or not to optimize for fast installation.
24943 fast_install=$enable_fast_install
24945 # Shared archive member basename,for filename based shared library versioning on AIX.
24946 shared_archive_member_spec=$shared_archive_member_spec
24948 # Shell to use when invoking shell scripts.
24951 # An echo program that protects backslashes.
24954 # The PATH separator for the build system.
24955 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24958 host_alias=$host_alias
24962 # The build system.
24963 build_alias=$build_alias
24967 # A sed program that does not truncate output.
24970 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24971 Xsed="\$SED -e 1s/^X//"
24973 # A grep program that handles long lines.
24979 # A literal string matcher.
24982 # A BSD- or MS-compatible name lister.
24985 # Whether we need soft or hard links.
24988 # What is the maximum length of a command?
24989 max_cmd_len=$max_cmd_len
24991 # Object file suffix (normally "o").
24994 # Executable file suffix (normally "").
24997 # whether the shell understands "unset".
25000 # turn spaces into newlines.
25003 # turn newlines into spaces.
25006 # convert \$build file names to \$host format.
25007 to_host_file_cmd=$lt_cv_to_host_file_cmd
25009 # convert \$build files to toolchain format.
25010 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25012 # A file(cmd) program that detects file types.
25013 FILECMD=$lt_FILECMD
25015 # An object symbol dumper.
25016 OBJDUMP=$lt_OBJDUMP
25018 # Method to check whether dependent libraries are shared objects.
25019 deplibs_check_method=$lt_deplibs_check_method
25021 # Command to use when deplibs_check_method = "file_magic".
25022 file_magic_cmd=$lt_file_magic_cmd
25024 # How to find potential files when deplibs_check_method = "file_magic".
25025 file_magic_glob=$lt_file_magic_glob
25027 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25028 want_nocaseglob=$lt_want_nocaseglob
25030 # DLL creation program.
25031 DLLTOOL=$lt_DLLTOOL
25033 # Command to associate shared and link libraries.
25034 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25039 # Flags to create an archive (by configure).
25040 lt_ar_flags=$lt_ar_flags
25042 # Flags to create an archive.
25043 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
25045 # How to feed a file listing to the archiver.
25046 archiver_list_spec=$lt_archiver_list_spec
25048 # A symbol stripping program.
25051 # Commands used to install an old-style archive.
25053 old_postinstall_cmds=$lt_old_postinstall_cmds
25054 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25056 # Whether to use a lock for old archive extraction.
25057 lock_old_archive_extraction=$lock_old_archive_extraction
25062 # LTCC compiler flags.
25063 LTCFLAGS=$lt_CFLAGS
25065 # Take the output of nm and produce a listing of raw symbols and C names.
25066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25068 # Transform the output of nm in a proper C declaration.
25069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25071 # Transform the output of nm into a list of symbols to manually relocate.
25072 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25074 # Transform the output of nm in a C name address pair.
25075 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25077 # Transform the output of nm in a C name address pair when lib prefix is needed.
25078 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25080 # The name lister interface.
25081 nm_interface=$lt_lt_cv_nm_interface
25083 # Specify filename containing input files for \$NM.
25084 nm_file_list_spec=$lt_nm_file_list_spec
25086 # The root where to search for dependent libraries,and where our libraries should be installed.
25087 lt_sysroot=$lt_sysroot
25089 # Command to truncate a binary pipe.
25090 lt_truncate_bin=$lt_lt_cv_truncate_bin
25092 # The name of the directory that contains temporary libtool files.
25095 # Used to examine libraries when file_magic_cmd begins with "file".
25096 MAGIC_CMD=$MAGIC_CMD
25098 # Must we lock files when doing compilation?
25099 need_locks=$lt_need_locks
25102 MANIFEST_TOOL=$lt_MANIFEST_TOOL
25104 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25105 DSYMUTIL=$lt_DSYMUTIL
25107 # Tool to change global to local symbols on Mac OS X.
25110 # Tool to manipulate fat objects and archives on Mac OS X.
25113 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
25116 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25117 OTOOL64=$lt_OTOOL64
25119 # Old archive suffix (normally "a").
25122 # Shared library suffix (normally ".so").
25123 shrext_cmds=$lt_shrext_cmds
25125 # The commands to extract the exported symbol list from a shared archive.
25126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25128 # Variables whose values should be saved in libtool wrapper scripts and
25129 # restored at link time.
25130 variables_saved_for_relink=$lt_variables_saved_for_relink
25132 # Do we need the "lib" prefix for modules?
25133 need_lib_prefix=$need_lib_prefix
25135 # Do we need a version for libraries?
25136 need_version=$need_version
25138 # Library versioning type.
25139 version_type=$version_type
25141 # Shared library runtime path variable.
25142 runpath_var=$runpath_var
25144 # Shared library path variable.
25145 shlibpath_var=$shlibpath_var
25147 # Is shlibpath searched before the hard-coded library search path?
25148 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25150 # Format of library name prefix.
25151 libname_spec=$lt_libname_spec
25153 # List of archive names. First name is the real one, the rest are links.
25154 # The last name is the one that the linker finds with -lNAME
25155 library_names_spec=$lt_library_names_spec
25157 # The coded name of the library, if different from the real name.
25158 soname_spec=$lt_soname_spec
25160 # Permission mode override for installation of shared libraries.
25161 install_override_mode=$lt_install_override_mode
25163 # Command to use after installation of a shared archive.
25164 postinstall_cmds=$lt_postinstall_cmds
25166 # Command to use after uninstallation of a shared archive.
25167 postuninstall_cmds=$lt_postuninstall_cmds
25169 # Commands used to finish a libtool library installation in a directory.
25170 finish_cmds=$lt_finish_cmds
25172 # As "finish_cmds", except a single script fragment to be evaled but
25174 finish_eval=$lt_finish_eval
25176 # Whether we should hardcode library paths into libraries.
25177 hardcode_into_libs=$hardcode_into_libs
25179 # Compile-time system search path for libraries.
25180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25182 # Detected run-time system search path for libraries.
25183 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25185 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25186 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25188 # Whether dlopen is supported.
25189 dlopen_support=$enable_dlopen
25191 # Whether dlopen of programs is supported.
25192 dlopen_self=$enable_dlopen_self
25194 # Whether dlopen of statically linked programs is supported.
25195 dlopen_self_static=$enable_dlopen_self_static
25197 # Commands to strip libraries.
25198 old_striplib=$lt_old_striplib
25199 striplib=$lt_striplib
25202 # The linker used to build libraries.
25205 # How to create reloadable object files.
25206 reload_flag=$lt_reload_flag
25207 reload_cmds=$lt_reload_cmds
25209 # Commands used to build an old-style archive.
25210 old_archive_cmds=$lt_old_archive_cmds
25212 # A language specific compiler.
25215 # Is the compiler the GNU compiler?
25218 # Compiler flag to turn off builtin functions.
25219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25221 # Additional compiler flags for building library objects.
25222 pic_flag=$lt_lt_prog_compiler_pic
25224 # How to pass a linker flag through the compiler.
25225 wl=$lt_lt_prog_compiler_wl
25227 # Compiler flag to prevent dynamic linking.
25228 link_static_flag=$lt_lt_prog_compiler_static
25230 # Does compiler simultaneously support -c and -o options?
25231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25233 # Whether or not to add -lc for building shared libraries.
25234 build_libtool_need_lc=$archive_cmds_need_lc
25236 # Whether or not to disallow shared libs when runtime libs are static.
25237 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25239 # Compiler flag to allow reflexive dlopens.
25240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25242 # Compiler flag to generate shared objects directly from archives.
25243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25245 # Whether the compiler copes with passing no objects directly.
25246 compiler_needs_object=$lt_compiler_needs_object
25248 # Create an old-style archive from a shared archive.
25249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25251 # Create a temporary old-style archive to link instead of a shared archive.
25252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25254 # Commands used to build a shared archive.
25255 archive_cmds=$lt_archive_cmds
25256 archive_expsym_cmds=$lt_archive_expsym_cmds
25258 # Commands used to build a loadable module if different from building
25259 # a shared archive.
25260 module_cmds=$lt_module_cmds
25261 module_expsym_cmds=$lt_module_expsym_cmds
25263 # Whether we are building with GNU ld or not.
25264 with_gnu_ld=$lt_with_gnu_ld
25266 # Flag that allows shared libraries with undefined symbols to be built.
25267 allow_undefined_flag=$lt_allow_undefined_flag
25269 # Flag that enforces no undefined symbols.
25270 no_undefined_flag=$lt_no_undefined_flag
25272 # Flag to hardcode \$libdir into a binary during linking.
25273 # This must work even if \$libdir does not exist
25274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25276 # Whether we need a single "-rpath" flag with a separated argument.
25277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25279 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25280 # DIR into the resulting binary.
25281 hardcode_direct=$hardcode_direct
25283 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25284 # DIR into the resulting binary and the resulting library dependency is
25285 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
25286 # library is relocated.
25287 hardcode_direct_absolute=$hardcode_direct_absolute
25289 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25290 # into the resulting binary.
25291 hardcode_minus_L=$hardcode_minus_L
25293 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25294 # into the resulting binary.
25295 hardcode_shlibpath_var=$hardcode_shlibpath_var
25297 # Set to "yes" if building a shared library automatically hardcodes DIR
25298 # into the library and all subsequent libraries and executables linked
25300 hardcode_automatic=$hardcode_automatic
25302 # Set to yes if linker adds runtime paths of dependent libraries
25303 # to runtime path list.
25304 inherit_rpath=$inherit_rpath
25306 # Whether libtool must link a program against all its dependency libraries.
25307 link_all_deplibs=$link_all_deplibs
25309 # Set to "yes" if exported symbols are required.
25310 always_export_symbols=$always_export_symbols
25312 # The commands to list exported symbols.
25313 export_symbols_cmds=$lt_export_symbols_cmds
25315 # Symbols that should not be listed in the preloaded symbols.
25316 exclude_expsyms=$lt_exclude_expsyms
25318 # Symbols that must always be exported.
25319 include_expsyms=$lt_include_expsyms
25321 # Commands necessary for linking programs (against libraries) with templates.
25322 prelink_cmds=$lt_prelink_cmds
25324 # Commands necessary for finishing linking programs.
25325 postlink_cmds=$lt_postlink_cmds
25327 # Specify filename containing input files.
25328 file_list_spec=$lt_file_list_spec
25330 # How to hardcode a shared library path into an executable.
25331 hardcode_action=$hardcode_action
25333 # ### END LIBTOOL CONFIG
25337 cat <<'_LT_EOF' >> "$cfgfile"
25339 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25341 # func_munge_path_list VARIABLE PATH
25342 # -----------------------------------
25343 # VARIABLE is name of variable containing _space_ separated list of
25344 # directories to be munged by the contents of PATH, which is string
25347 # string "DIR[ DIR]" will be prepended to VARIABLE
25349 # string "DIR[ DIR]" will be appended to VARIABLE
25350 # "DIRP[:DIRP]::[DIRA:]DIRA"
25351 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25352 # "DIRA[ DIRA]" will be appended to VARIABLE
25354 # VARIABLE will be replaced by "DIR[ DIR]"
25355 func_munge_path_list ()
25361 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25364 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25367 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25368 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25371 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25377 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25378 func_cc_basename ()
25380 for cc_temp in $*""; do
25382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25388 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25392 # ### END FUNCTIONS SHARED WITH CONFIGURE
25398 cat <<\_LT_EOF >> "$cfgfile"
25399 # AIX sometimes has problems with the GCC collect2 program. For some
25400 # reason, if we set the COLLECT_NAMES environment variable, the problems
25401 # vanish in a puff of smoke.
25402 if test set != "${COLLECT_NAMES+set}"; then
25404 export COLLECT_NAMES
25412 ltmain=$ac_aux_dir/ltmain.sh
25415 # We use sed instead of cat because bash on DJGPP gets confused if
25416 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25417 # text mode, it properly converts lines to CR/LF. This bash problem
25418 # is reportedly fixed, but why not run on old versions too?
25419 $SED '$q' "$ltmain" >> "$cfgfile" \
25420 || (rm -f "$cfgfile"; exit 1)
25422 mv -f "$cfgfile" "$ofile" ||
25423 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25434 ac_clean_files=$ac_clean_files_save
25436 test $ac_write_fail = 0 ||
25437 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25440 # configure is writing to config.log, and then calls config.status.
25441 # config.status does its own redirection, appending to config.log.
25442 # Unfortunately, on DOS this fails, as config.log is still kept open
25443 # by configure, so config.status won't be able to write to it; its
25444 # output is simply discarded. So we exec the FD to /dev/null,
25445 # effectively closing config.log, so it can be properly (re)opened and
25446 # appended to by config.status. When coming back to configure, we
25447 # need to make the FD available again.
25448 if test "$no_create" != yes; then
25450 ac_config_status_args=
25451 test "$silent" = yes &&
25452 ac_config_status_args="$ac_config_status_args --quiet"
25454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25457 # would make configure fail if this is the last instruction.
25458 $ac_cs_success || as_fn_exit 1
25460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25462 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}