2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 ac_unique_file="conf/pam_conv1/pam_conv_y.y"
751 ac_default_prefix=/usr
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
789 ac_subst_vars='LTLIBOBJS
790 HAVE_KEY_MANAGEMENT_FALSE
791 HAVE_KEY_MANAGEMENT_TRUE
800 XGETTEXT_EXTRA_OPTIONS
808 GETTEXT_MACRO_VERSION
810 ENABLE_GENERATE_PDF_FALSE
811 ENABLE_GENERATE_PDF_TRUE
812 ENABLE_REGENERATE_MAN_FALSE
813 ENABLE_REGENERATE_MAN_TRUE
823 HAVE_LIBSELINUX_FALSE
835 HAVE_AUDIT_TTY_STATUS_FALSE
836 HAVE_AUDIT_TTY_STATUS_TRUE
845 LIBPRELUDE_CONFIG_PREFIX
849 LIBPRELUDE_PTHREAD_CFLAGS
855 HAVE_VERSIONING_FALSE
861 pam_cv_ld_no_undefined
922 INSTALL_STRIP_PROGRAM
964 program_transform_name
976 enable_option_checking
977 enable_static_modules
980 enable_dependency_tracking
988 with_libprelude_prefix
994 enable_read_both_confs
1005 enable_regenerate_docu
1009 with_libiconv_prefix
1012 ac_precious_vars='build_alias
1028 # Initialize some variables set by options.
1030 ac_init_version=false
1031 ac_unrecognized_opts=
1032 ac_unrecognized_sep=
1033 # The variables have the same names as the options, with
1034 # dashes changed to underlines.
1035 cache_file=/dev/null
1042 program_transform_name=s,x,x,
1050 # Installation directory options.
1051 # These are left unexpanded so users can "make install exec_prefix=/foo"
1052 # and all the variables that are supposed to be based on exec_prefix
1053 # by default will actually change.
1054 # Use braces instead of parens because sh, perl, etc. also accept them.
1055 # (The list follows the same order as the GNU Coding Standards.)
1056 bindir='${exec_prefix}/bin'
1057 sbindir='${exec_prefix}/sbin'
1058 libexecdir='${exec_prefix}/libexec'
1059 datarootdir='${prefix}/share'
1060 datadir='${datarootdir}'
1061 sysconfdir='${prefix}/etc'
1062 sharedstatedir='${prefix}/com'
1063 localstatedir='${prefix}/var'
1064 includedir='${prefix}/include'
1065 oldincludedir='/usr/include'
1066 docdir='${datarootdir}/doc/${PACKAGE}'
1067 infodir='${datarootdir}/info'
1072 libdir='${exec_prefix}/lib'
1073 localedir='${datarootdir}/locale'
1074 mandir='${datarootdir}/man'
1080 # If the previous option needs an argument, assign it.
1081 if test -n "$ac_prev"; then
1082 eval $ac_prev=\$ac_option
1088 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1092 # Accept the important Cygnus configure options, so we can diagnose typos.
1094 case $ac_dashdash$ac_option in
1098 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1100 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1101 bindir=$ac_optarg ;;
1103 -build | --build | --buil | --bui | --bu)
1104 ac_prev=build_alias ;;
1105 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1106 build_alias=$ac_optarg ;;
1108 -cache-file | --cache-file | --cache-fil | --cache-fi \
1109 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1110 ac_prev=cache_file ;;
1111 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1112 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1113 cache_file=$ac_optarg ;;
1115 --config-cache | -C)
1116 cache_file=config.cache ;;
1118 -datadir | --datadir | --datadi | --datad)
1120 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1121 datadir=$ac_optarg ;;
1123 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1124 | --dataroo | --dataro | --datar)
1125 ac_prev=datarootdir ;;
1126 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1127 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1128 datarootdir=$ac_optarg ;;
1130 -disable-* | --disable-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "enable_$ac_useropt"
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1145 eval enable_$ac_useropt=no ;;
1147 -docdir | --docdir | --docdi | --doc | --do)
1149 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1150 docdir=$ac_optarg ;;
1152 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1155 dvidir=$ac_optarg ;;
1157 -enable-* | --enable-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "enable_$ac_useropt"
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1172 eval enable_$ac_useropt=\$ac_optarg ;;
1174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176 | --exec | --exe | --ex)
1177 ac_prev=exec_prefix ;;
1178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180 | --exec=* | --exe=* | --ex=*)
1181 exec_prefix=$ac_optarg ;;
1183 -gas | --gas | --ga | --g)
1184 # Obsolete; use --with-gas.
1187 -help | --help | --hel | --he | -h)
1188 ac_init_help=long ;;
1189 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190 ac_init_help=recursive ;;
1191 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192 ac_init_help=short ;;
1194 -host | --host | --hos | --ho)
1195 ac_prev=host_alias ;;
1196 -host=* | --host=* | --hos=* | --ho=*)
1197 host_alias=$ac_optarg ;;
1199 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1201 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1203 htmldir=$ac_optarg ;;
1205 -includedir | --includedir | --includedi | --included | --include \
1206 | --includ | --inclu | --incl | --inc)
1207 ac_prev=includedir ;;
1208 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209 | --includ=* | --inclu=* | --incl=* | --inc=*)
1210 includedir=$ac_optarg ;;
1212 -infodir | --infodir | --infodi | --infod | --info | --inf)
1214 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215 infodir=$ac_optarg ;;
1217 -libdir | --libdir | --libdi | --libd)
1219 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220 libdir=$ac_optarg ;;
1222 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223 | --libexe | --libex | --libe)
1224 ac_prev=libexecdir ;;
1225 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226 | --libexe=* | --libex=* | --libe=*)
1227 libexecdir=$ac_optarg ;;
1229 -localedir | --localedir | --localedi | --localed | --locale)
1230 ac_prev=localedir ;;
1231 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232 localedir=$ac_optarg ;;
1234 -localstatedir | --localstatedir | --localstatedi | --localstated \
1235 | --localstate | --localstat | --localsta | --localst | --locals)
1236 ac_prev=localstatedir ;;
1237 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239 localstatedir=$ac_optarg ;;
1241 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1243 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244 mandir=$ac_optarg ;;
1246 -nfp | --nfp | --nf)
1247 # Obsolete; use --without-fp.
1250 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251 | --no-cr | --no-c | -n)
1254 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1258 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260 | --oldin | --oldi | --old | --ol | --o)
1261 ac_prev=oldincludedir ;;
1262 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265 oldincludedir=$ac_optarg ;;
1267 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1269 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270 prefix=$ac_optarg ;;
1272 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273 | --program-pre | --program-pr | --program-p)
1274 ac_prev=program_prefix ;;
1275 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277 program_prefix=$ac_optarg ;;
1279 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280 | --program-suf | --program-su | --program-s)
1281 ac_prev=program_suffix ;;
1282 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284 program_suffix=$ac_optarg ;;
1286 -program-transform-name | --program-transform-name \
1287 | --program-transform-nam | --program-transform-na \
1288 | --program-transform-n | --program-transform- \
1289 | --program-transform | --program-transfor \
1290 | --program-transfo | --program-transf \
1291 | --program-trans | --program-tran \
1292 | --progr-tra | --program-tr | --program-t)
1293 ac_prev=program_transform_name ;;
1294 -program-transform-name=* | --program-transform-name=* \
1295 | --program-transform-nam=* | --program-transform-na=* \
1296 | --program-transform-n=* | --program-transform-=* \
1297 | --program-transform=* | --program-transfor=* \
1298 | --program-transfo=* | --program-transf=* \
1299 | --program-trans=* | --program-tran=* \
1300 | --progr-tra=* | --program-tr=* | --program-t=*)
1301 program_transform_name=$ac_optarg ;;
1303 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1305 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306 pdfdir=$ac_optarg ;;
1308 -psdir | --psdir | --psdi | --psd | --ps)
1310 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314 | -silent | --silent | --silen | --sile | --sil)
1317 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1319 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1321 sbindir=$ac_optarg ;;
1323 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325 | --sharedst | --shareds | --shared | --share | --shar \
1327 ac_prev=sharedstatedir ;;
1328 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1332 sharedstatedir=$ac_optarg ;;
1334 -site | --site | --sit)
1336 -site=* | --site=* | --sit=*)
1339 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1341 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342 srcdir=$ac_optarg ;;
1344 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345 | --syscon | --sysco | --sysc | --sys | --sy)
1346 ac_prev=sysconfdir ;;
1347 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349 sysconfdir=$ac_optarg ;;
1351 -target | --target | --targe | --targ | --tar | --ta | --t)
1352 ac_prev=target_alias ;;
1353 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354 target_alias=$ac_optarg ;;
1356 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1359 -version | --version | --versio | --versi | --vers | -V)
1360 ac_init_version=: ;;
1363 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1367 { (exit 1); exit 1; }; }
1368 ac_useropt_orig=$ac_useropt
1369 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1370 case $ac_user_opts in
1374 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1375 ac_unrecognized_sep=', ';;
1377 eval with_$ac_useropt=\$ac_optarg ;;
1379 -without-* | --without-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1384 { (exit 1); exit 1; }; }
1385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1394 eval with_$ac_useropt=no ;;
1397 # Obsolete; use --with-x.
1400 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1401 | --x-incl | --x-inc | --x-in | --x-i)
1402 ac_prev=x_includes ;;
1403 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1404 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1405 x_includes=$ac_optarg ;;
1407 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1408 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1409 ac_prev=x_libraries ;;
1410 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1411 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1412 x_libraries=$ac_optarg ;;
1414 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1415 Try \`$0 --help' for more information." >&2
1416 { (exit 1); exit 1; }; }
1420 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421 # Reject names that are not valid shell variable names.
1422 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1423 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1424 { (exit 1); exit 1; }; }
1425 eval $ac_envvar=\$ac_optarg
1426 export $ac_envvar ;;
1429 # FIXME: should be removed in autoconf 3.0.
1430 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1431 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1432 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1433 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1439 if test -n "$ac_prev"; then
1440 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1441 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1442 { (exit 1); exit 1; }; }
1445 if test -n "$ac_unrecognized_opts"; then
1446 case $enable_option_checking in
1448 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1449 { (exit 1); exit 1; }; } ;;
1450 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1454 # Check all directory arguments for consistency.
1455 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456 datadir sysconfdir sharedstatedir localstatedir includedir \
1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458 libdir localedir mandir
1460 eval ac_val=\$$ac_var
1461 # Remove trailing slashes.
1464 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1465 eval $ac_var=\$ac_val;;
1467 # Be sure to have absolute directory names.
1469 [\\/$]* | ?:[\\/]* ) continue;;
1470 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1472 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1473 { (exit 1); exit 1; }; }
1476 # There might be people who depend on the old broken behavior: `$host'
1477 # used to hold the argument of --host etc.
1478 # FIXME: To remove some day.
1481 target=$target_alias
1483 # FIXME: To remove some day.
1484 if test "x$host_alias" != x; then
1485 if test "x$build_alias" = x; then
1486 cross_compiling=maybe
1487 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1488 If a cross compiler is detected then cross compile mode will be used." >&2
1489 elif test "x$build_alias" != "x$host_alias"; then
1495 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1497 test "$silent" = yes && exec 6>/dev/null
1500 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1501 ac_ls_di=`ls -di .` &&
1502 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1503 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1504 { (exit 1); exit 1; }; }
1505 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1506 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1507 { (exit 1); exit 1; }; }
1510 # Find the source files, if location was not specified.
1511 if test -z "$srcdir"; then
1512 ac_srcdir_defaulted=yes
1513 # Try the directory containing this script, then the parent directory.
1514 ac_confdir=`$as_dirname -- "$as_myself" ||
1515 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516 X"$as_myself" : 'X\(//\)[^/]' \| \
1517 X"$as_myself" : 'X\(//\)$' \| \
1518 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519 $as_echo X"$as_myself" |
1520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1542 ac_srcdir_defaulted=no
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1545 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1547 { (exit 1); exit 1; }; }
1549 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1551 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1552 { (exit 1); exit 1; }; }
1554 # When building in place, set srcdir=.
1555 if test "$ac_abs_confdir" = "$ac_pwd"; then
1558 # Remove unnecessary trailing slashes from srcdir.
1559 # Double slashes in file names in object file debugging info
1560 # mess up M-x gdb in Emacs.
1562 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1564 for ac_var in $ac_precious_vars; do
1565 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_env_${ac_var}_value=\$${ac_var}
1567 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1568 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1572 # Report the --help message.
1574 if test "$ac_init_help" = "long"; then
1575 # Omit some internal or obsolete options to make the list less imposing.
1576 # This message is too long to be a string in the A/UX 3.1 sh.
1578 \`configure' configures this package to adapt to many kinds of systems.
1580 Usage: $0 [OPTION]... [VAR=VALUE]...
1582 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1583 VAR=VALUE. See below for descriptions of some of the useful variables.
1585 Defaults for the options are specified in brackets.
1588 -h, --help display this help and exit
1589 --help=short display options specific to this package
1590 --help=recursive display the short help of all the included packages
1591 -V, --version display version information and exit
1592 -q, --quiet, --silent do not print \`checking...' messages
1593 --cache-file=FILE cache test results in FILE [disabled]
1594 -C, --config-cache alias for \`--cache-file=config.cache'
1595 -n, --no-create do not create output files
1596 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1598 Installation directories:
1599 --prefix=PREFIX install architecture-independent files in PREFIX
1600 [$ac_default_prefix]
1601 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1604 By default, \`make install' will install all the files in
1605 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1606 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1607 for instance \`--prefix=\$HOME'.
1609 For better control, use the options below.
1611 Fine tuning of the installation directories:
1612 --bindir=DIR user executables [EPREFIX/bin]
1613 --sbindir=DIR system admin executables [EPREFIX/sbin]
1614 --libexecdir=DIR program executables [EPREFIX/libexec]
1615 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1616 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1617 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1618 --libdir=DIR object code libraries [EPREFIX/lib]
1619 --includedir=DIR C header files [PREFIX/include]
1620 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1621 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1622 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1623 --infodir=DIR info documentation [DATAROOTDIR/info]
1624 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1625 --mandir=DIR man documentation [DATAROOTDIR/man]
1626 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1627 --htmldir=DIR html documentation [DOCDIR]
1628 --dvidir=DIR dvi documentation [DOCDIR]
1629 --pdfdir=DIR pdf documentation [DOCDIR]
1630 --psdir=DIR ps documentation [DOCDIR]
1636 --program-prefix=PREFIX prepend PREFIX to installed program names
1637 --program-suffix=SUFFIX append SUFFIX to installed program names
1638 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1641 --build=BUILD configure for building on BUILD [guessed]
1642 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1646 if test -n "$ac_init_help"; then
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-static-modules do not make the modules dynamically loadable
1655 --enable-static[=PKGS] build static libraries [default=yes]
1656 --enable-shared[=PKGS] build shared libraries [default=no]
1657 --disable-dependency-tracking speeds up one-time build
1658 --enable-dependency-tracking do not reject slow dependency extractors
1659 --enable-fast-install[=PKGS]
1660 optimize for fast installation [default=yes]
1661 --disable-libtool-lock avoid locking (might break parallel builds)
1662 --disable-largefile omit support for large files
1663 --disable-pie disable position-independent executeables (PIE)
1664 --disable-prelude do not use prelude
1665 --enable-debug specify you are building with debugging on
1666 --enable-securedir=DIR path to location of PAMs [default=$libdir/security]
1667 --enable-isadir=DIR path to arch-specific module files
1668 [default=../../(basename of $libdir)/security]
1669 --enable-sconfigdir=DIR path to module conf files
1670 [default=$sysconfdir/security]
1671 --enable-pamlocking configure libpam to observe a global authentication
1673 --enable-read-both-confs
1674 read both /etc/pam.d and /etc/pam.conf files
1675 --disable-lckpwdf do not use the lckpwdf function
1676 --disable-cracklib do not use cracklib
1677 --disable-audit do not enable audit support
1678 --enable-db=(db|ndbm|yes|no)
1679 Default behavior 'yes', which is to check for libdb
1680 first, followed by ndbm. Use 'no' to disable db
1682 -disable-nis Disable building NIS/YP support in pam_unix and
1684 --disable-selinux do not use SELinux
1685 --disable-regenerate-docu
1686 Don't re-build documentation from XML souces
1687 --disable-nls do not use Native Language Support
1688 --disable-rpath do not hardcode runtime library paths
1691 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1692 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1693 --with-pic try to use only PIC/non-PIC objects [default=use
1695 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1696 --with-libprelude-prefix=PFX
1697 Prefix where libprelude is installed (optional)
1698 --with-mailspool path to mail spool directory
1699 default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
1700 --with-xauth additional path to check for xauth when it is called from pam_xauth
1701 added to the default of /usr/X11R6/bin/xauth, /usr/bin/xauth, /usr/bin/X11/xauth
1702 --with-randomdev=(<path>|yes|no)
1703 use specified random device instead of /dev/urandom
1705 --with-db-uniquename=extension
1706 Unique name for db libraries and functions.
1707 --with-xml-catalog=CATALOG
1708 path to xml catalog to use
1709 --with-gnu-ld assume the C compiler uses GNU ld default=no
1710 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1711 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1712 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1713 --without-libintl-prefix don't search for libintl in includedir and libdir
1715 Some influential environment variables:
1716 CC C compiler command
1717 CFLAGS C compiler flags
1718 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1719 nonstandard directory <lib dir>
1720 LIBS libraries to pass to the linker, e.g. -l<library>
1721 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1722 you have headers in a nonstandard directory <include dir>
1724 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1725 the first program found out of: `bison -y', `byacc', `yacc'.
1726 YFLAGS The list of arguments that will be passed by default to $YACC.
1727 This script will default YFLAGS to the empty string to avoid a
1728 default value of `-d' given by some make applications.
1729 PKG_CONFIG path to pkg-config utility
1731 C compiler flags for libtirpc, overriding pkg-config
1733 linker flags for libtirpc, overriding pkg-config
1735 Use these variables to override the choices made by `configure' or to help
1736 it to find libraries and programs with nonstandard names/locations.
1742 if test "$ac_init_help" = "recursive"; then
1743 # If there are subdirs, report their specific --help.
1744 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1745 test -d "$ac_dir" ||
1746 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1751 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1754 # A ".." for each directory in $ac_dir_suffix.
1755 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1756 case $ac_top_builddir_sub in
1757 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1758 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1761 ac_abs_top_builddir=$ac_pwd
1762 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1763 # for backward compatibility:
1764 ac_top_builddir=$ac_top_build_prefix
1767 .) # We are building in place.
1769 ac_top_srcdir=$ac_top_builddir_sub
1770 ac_abs_top_srcdir=$ac_pwd ;;
1771 [\\/]* | ?:[\\/]* ) # Absolute name.
1772 ac_srcdir=$srcdir$ac_dir_suffix;
1773 ac_top_srcdir=$srcdir
1774 ac_abs_top_srcdir=$srcdir ;;
1776 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1777 ac_top_srcdir=$ac_top_build_prefix$srcdir
1778 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1780 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1782 cd "$ac_dir" || { ac_status=$?; continue; }
1783 # Check for guested configure.
1784 if test -f "$ac_srcdir/configure.gnu"; then
1786 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1787 elif test -f "$ac_srcdir/configure"; then
1789 $SHELL "$ac_srcdir/configure" --help=recursive
1791 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1793 cd "$ac_pwd" || { ac_status=$?; break; }
1797 test -n "$ac_init_help" && exit $ac_status
1798 if $ac_init_version; then
1801 generated by GNU Autoconf 2.63
1803 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1804 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1805 This configure script is free software; the Free Software Foundation
1806 gives unlimited permission to copy, distribute and modify it.
1810 cat >config.log <<_ACEOF
1811 This file contains any messages produced by compilers while
1812 running configure, to aid debugging if configure makes a mistake.
1814 It was created by $as_me, which was
1815 generated by GNU Autoconf 2.63. Invocation command line was
1827 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1828 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1829 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1830 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1831 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1834 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1836 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1837 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1838 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1839 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1840 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1841 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1842 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 test -z "$as_dir" && as_dir=.
1851 $as_echo "PATH: $as_dir"
1867 # Keep a trace of the command line.
1868 # Strip out --no-create and --no-recursion so they do not pile up.
1869 # Strip out --silent because we don't want to record it for future runs.
1870 # Also quote any args containing shell meta-characters.
1871 # Make two passes to allow for proper duplicate-argument suppression.
1875 ac_must_keep_next=false
1881 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1882 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1883 | -silent | --silent | --silen | --sile | --sil)
1886 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1891 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1892 if test $ac_must_keep_next = true; then
1893 ac_must_keep_next=false # Got value, back to normal.
1896 *=* | --config-cache | -C | -disable-* | --disable-* \
1897 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1898 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1899 | -with-* | --with-* | -without-* | --without-* | --x)
1900 case "$ac_configure_args0 " in
1901 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1904 -* ) ac_must_keep_next=true ;;
1907 ac_configure_args="$ac_configure_args '$ac_arg'"
1912 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1913 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1915 # When interrupted or exit'd, cleanup temporary files, and complete
1916 # config.log. We remove comments because anyway the quotes in there
1917 # would cause problems or look ugly.
1918 # WARNING: Use '\'' to represent an apostrophe within the trap.
1919 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1920 trap 'exit_status=$?
1921 # Save into config.log some information that might help in debugging.
1926 ## ---------------- ##
1927 ## Cache variables. ##
1928 ## ---------------- ##
1931 # The following way of writing the cache mishandles newlines in values,
1933 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1934 eval ac_val=\$$ac_var
1938 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1939 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1942 _ | IFS | as_nl) ;; #(
1943 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1944 *) $as_unset $ac_var ;;
1949 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1950 *${as_nl}ac_space=\ *)
1952 "s/'\''/'\''\\\\'\'''\''/g;
1953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1964 ## ----------------- ##
1965 ## Output variables. ##
1966 ## ----------------- ##
1969 for ac_var in $ac_subst_vars
1971 eval ac_val=\$$ac_var
1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1975 $as_echo "$ac_var='\''$ac_val'\''"
1979 if test -n "$ac_subst_files"; then
1981 ## ------------------- ##
1982 ## File substitutions. ##
1983 ## ------------------- ##
1986 for ac_var in $ac_subst_files
1988 eval ac_val=\$$ac_var
1990 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 $as_echo "$ac_var='\''$ac_val'\''"
1997 if test -s confdefs.h; then
2007 test "$ac_signal" != 0 &&
2008 $as_echo "$as_me: caught signal $ac_signal"
2009 $as_echo "$as_me: exit $exit_status"
2011 rm -f core *.core core.conftest.* &&
2012 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2015 for ac_signal in 1 2 13 15; do
2016 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2020 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2021 rm -f -r conftest* confdefs.h
2023 # Predefined preprocessor variables.
2025 cat >>confdefs.h <<_ACEOF
2026 #define PACKAGE_NAME "$PACKAGE_NAME"
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2035 cat >>confdefs.h <<_ACEOF
2036 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_STRING "$PACKAGE_STRING"
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050 # Let the site file select an alternate cache file if it wants to.
2051 # Prefer an explicitly selected file to automatically selected ones.
2054 if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
2063 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2065 test "x$ac_site_file" = xNONE && continue
2066 if test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2068 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2074 if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
2078 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2079 $as_echo "$as_me: loading cache $cache_file" >&6;}
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2086 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2087 $as_echo "$as_me: creating cache $cache_file" >&6;}
2091 gt_needs="$gt_needs "
2092 # Check that the precious variables saved in the cache have kept the same
2094 ac_cache_corrupted=false
2095 for ac_var in $ac_precious_vars; do
2096 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2097 eval ac_new_set=\$ac_env_${ac_var}_set
2098 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2099 eval ac_new_val=\$ac_env_${ac_var}_value
2100 case $ac_old_set,$ac_new_set in
2102 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2103 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2104 ac_cache_corrupted=: ;;
2106 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2107 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2108 ac_cache_corrupted=: ;;
2111 if test "x$ac_old_val" != "x$ac_new_val"; then
2112 # differences in whitespace do not lead to failure.
2113 ac_old_val_w=`echo x $ac_old_val`
2114 ac_new_val_w=`echo x $ac_new_val`
2115 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2116 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2117 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2118 ac_cache_corrupted=:
2120 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2121 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2122 eval $ac_var=\$ac_old_val
2124 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2125 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2126 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2127 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2130 # Pass precious variables to config.status.
2131 if test "$ac_new_set" = set; then
2133 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2134 *) ac_arg=$ac_var=$ac_new_val ;;
2136 case " $ac_configure_args " in
2137 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2138 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2142 if $ac_cache_corrupted; then
2143 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2145 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2146 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2147 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2148 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2149 { (exit 1); exit 1; }; }
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2176 am__api_version='1.10'
2179 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2180 if test -f "$ac_dir/install-sh"; then
2182 ac_install_sh="$ac_aux_dir/install-sh -c"
2184 elif test -f "$ac_dir/install.sh"; then
2186 ac_install_sh="$ac_aux_dir/install.sh -c"
2188 elif test -f "$ac_dir/shtool"; then
2190 ac_install_sh="$ac_aux_dir/shtool install -c"
2194 if test -z "$ac_aux_dir"; then
2195 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2196 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2197 { (exit 1); exit 1; }; }
2200 # These three variables are undocumented and unsupported,
2201 # and are intended to be withdrawn in a future Autoconf release.
2202 # They can cause serious problems if a builder's source tree is in a directory
2203 # whose full name contains unusual characters.
2204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209 # Find a good install program. We prefer a C program (faster),
2210 # so one script is as good as another. But avoid the broken or
2211 # incompatible versions:
2212 # SysV /etc/install, /usr/sbin/install
2213 # SunOS /usr/etc/install
2214 # IRIX /sbin/install
2216 # AmigaOS /C/install, which installs bootblocks on floppy discs
2217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220 # OS/2's system install, which has a completely different semantic
2221 # ./install, which can be erroneously created by make from ./install.sh.
2222 # Reject install programs that cannot install multiple files.
2223 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2224 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2225 if test -z "$INSTALL"; then
2226 if test "${ac_cv_path_install+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 test -z "$as_dir" && as_dir=.
2234 # Account for people who put trailing slashes in PATH elements.
2236 ./ | .// | /cC/* | \
2237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2241 # OSF1 and SCO ODT 3.0 have their own names for install.
2242 # Don't use installbsd from OSF since it installs stuff as root
2244 for ac_prog in ginstall scoinst install; do
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2247 if test $ac_prog = install &&
2248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # AIX install. It has an incompatible calling convention.
2251 elif test $ac_prog = install &&
2252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # program-specific install script used by HP pwplus--don't use.
2256 rm -rf conftest.one conftest.two conftest.dir
2257 echo one > conftest.one
2258 echo two > conftest.two
2260 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261 test -s conftest.one && test -s conftest.two &&
2262 test -s conftest.dir/conftest.one &&
2263 test -s conftest.dir/conftest.two
2265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2278 rm -rf conftest.one conftest.two conftest.dir
2281 if test "${ac_cv_path_install+set}" = set; then
2282 INSTALL=$ac_cv_path_install
2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for INSTALL within a source directory, because that will
2286 # break other packages using the cache if that directory is
2287 # removed, or if the value is a relative name.
2288 INSTALL=$ac_install_sh
2291 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2292 $as_echo "$INSTALL" >&6; }
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2302 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303 $as_echo_n "checking whether build environment is sane... " >&6; }
2306 echo timestamp > conftest.file
2307 # Do `set' in a subshell so we don't clobber the current shell's
2308 # arguments. Must try -L first in case configure is actually a
2309 # symlink; some systems play weird games with the mod time of symlinks
2310 # (eg FreeBSD returns the mod time of the symlink's containing
2313 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2314 if test "$*" = "X"; then
2316 set X `ls -t $srcdir/configure conftest.file`
2319 if test "$*" != "X $srcdir/configure conftest.file" \
2320 && test "$*" != "X conftest.file $srcdir/configure"; then
2322 # If neither matched, then we have a broken ls. This can happen
2323 # if, for instance, CONFIG_SHELL is bash and it inherits a
2324 # broken ls alias from the environment. This has actually
2325 # happened. Such a system could not be considered "sane".
2326 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2327 alias in your environment" >&5
2328 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2329 alias in your environment" >&2;}
2330 { (exit 1); exit 1; }; }
2333 test "$2" = conftest.file
2339 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2340 Check your system clock" >&5
2341 $as_echo "$as_me: error: newly created file is older than distributed files!
2342 Check your system clock" >&2;}
2343 { (exit 1); exit 1; }; }
2345 { $as_echo "$as_me:$LINENO: result: yes" >&5
2346 $as_echo "yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $.
2353 # By default was `s,x,x', remove it if useless.
2354 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2355 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2357 # expand $ac_aux_dir to an absolute path
2358 am_aux_dir=`cd $ac_aux_dir && pwd`
2360 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2361 # Use eval to expand $SHELL
2362 if eval "$MISSING --run true"; then
2363 am_missing_run="$MISSING --run "
2366 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2367 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2370 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2371 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2372 if test -z "$MKDIR_P"; then
2373 if test "${ac_cv_path_mkdir+set}" = set; then
2374 $as_echo_n "(cached) " >&6
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2380 test -z "$as_dir" && as_dir=.
2381 for ac_prog in mkdir gmkdir; do
2382 for ac_exec_ext in '' $ac_executable_extensions; do
2383 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2384 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2385 'mkdir (GNU coreutils) '* | \
2386 'mkdir (coreutils) '* | \
2387 'mkdir (fileutils) '4.1*)
2388 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2398 if test "${ac_cv_path_mkdir+set}" = set; then
2399 MKDIR_P="$ac_cv_path_mkdir -p"
2401 # As a last resort, use the slow shell script. Don't cache a
2402 # value for MKDIR_P within a source directory, because that will
2403 # break other packages using the cache if that directory is
2404 # removed, or if the value is a relative name.
2405 test -d ./--version && rmdir ./--version
2406 MKDIR_P="$ac_install_sh -d"
2409 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2410 $as_echo "$MKDIR_P" >&6; }
2414 [\\/$]* | ?:[\\/]*) ;;
2415 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2418 for ac_prog in gawk mawk nawk awk
2420 # Extract the first word of "$ac_prog", so it can be a program name with args.
2421 set dummy $ac_prog; ac_word=$2
2422 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_AWK+set}" = set; then
2425 $as_echo_n "(cached) " >&6
2427 if test -n "$AWK"; then
2428 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_AWK="$ac_prog"
2438 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$AWK"; then
2449 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2450 $as_echo "$AWK" >&6; }
2452 { $as_echo "$as_me:$LINENO: result: no" >&5
2453 $as_echo "no" >&6; }
2457 test -n "$AWK" && break
2460 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2465 $as_echo_n "(cached) " >&6
2467 cat >conftest.make <<\_ACEOF
2470 @echo '@@@%%%=$(MAKE)=@@@%%%'
2472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2475 eval ac_cv_prog_make_${ac_make}_set=yes;;
2477 eval ac_cv_prog_make_${ac_make}_set=no;;
2481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2482 { $as_echo "$as_me:$LINENO: result: yes" >&5
2483 $as_echo "yes" >&6; }
2486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487 $as_echo "no" >&6; }
2488 SET_MAKE="MAKE=${MAKE-make}"
2491 rm -rf .tst 2>/dev/null
2492 mkdir .tst 2>/dev/null
2493 if test -d .tst; then
2498 rmdir .tst 2>/dev/null
2500 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2501 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2502 # is not polluted with repeated "-I."
2503 am__isrc=' -I$(srcdir)'
2504 # test to see if srcdir already configured
2505 if test -f $srcdir/config.status; then
2506 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2507 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2508 { (exit 1); exit 1; }; }
2512 # test whether we have cygpath
2513 if test -z "$CYGPATH_W"; then
2514 if (cygpath --version) >/dev/null 2>/dev/null; then
2515 CYGPATH_W='cygpath -w'
2522 # Define the identity of the package.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE "$PACKAGE"
2532 cat >>confdefs.h <<_ACEOF
2533 #define VERSION "$VERSION"
2536 # Some tools Automake needs.
2538 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2541 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2544 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2547 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2550 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2552 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'. However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_STRIP+set}" = set; then
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$STRIP"; then
2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2592 { $as_echo "$as_me:$LINENO: result: no" >&5
2593 $as_echo "no" >&6; }
2598 if test -z "$ac_cv_prog_STRIP"; then
2600 # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2605 $as_echo_n "(cached) " >&6
2607 if test -n "$ac_ct_STRIP"; then
2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_STRIP="strip"
2618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2632 { $as_echo "$as_me:$LINENO: result: no" >&5
2633 $as_echo "no" >&6; }
2636 if test "x$ac_ct_STRIP" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2648 STRIP="$ac_cv_prog_STRIP"
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654 # We need awk for the "check" target. The system "awk" is bad on
2656 # Always define AMTAR for backward compatibility.
2658 AMTAR=${AMTAR-"${am_missing_run}tar"}
2660 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2667 ac_config_headers="$ac_config_headers config.h"
2670 # Make sure we can run config.sub.
2671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2672 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2673 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2674 { (exit 1); exit 1; }; }
2676 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2677 $as_echo_n "checking build system type... " >&6; }
2678 if test "${ac_cv_build+set}" = set; then
2679 $as_echo_n "(cached) " >&6
2681 ac_build_alias=$build_alias
2682 test "x$ac_build_alias" = x &&
2683 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2684 test "x$ac_build_alias" = x &&
2685 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2686 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2687 { (exit 1); exit 1; }; }
2688 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2689 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2690 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2691 { (exit 1); exit 1; }; }
2694 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2695 $as_echo "$ac_cv_build" >&6; }
2696 case $ac_cv_build in
2698 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2699 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2700 { (exit 1); exit 1; }; };;
2703 ac_save_IFS=$IFS; IFS='-'
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if test "${ac_cv_host+set}" = set; then
2719 $as_echo_n "(cached) " >&6
2721 if test "x$host_alias" = x; then
2722 ac_cv_host=$ac_cv_build
2724 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2726 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2727 { (exit 1); exit 1; }; }
2731 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2732 $as_echo "$ac_cv_host" >&6; }
2735 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2736 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2737 { (exit 1); exit 1; }; };;
2740 ac_save_IFS=$IFS; IFS='-'
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2750 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759 test "${prefix}" = "NONE" && prefix="/usr"
2760 if test ${prefix} = '/usr'
2762 if test ${sysconfdir} = '${prefix}/etc'
2766 if test ${libdir} = '${exec_prefix}/lib'
2768 case "`uname -m`" in
2769 x86_64|ppc64|s390x|sparc64)
2775 if test ${sbindir} = '${exec_prefix}/sbin'
2779 if test ${mandir} = '${prefix}/man'
2781 mandir='${prefix}/share/man'
2783 if test ${includedir} = '${prefix}/include'
2785 includedir="${prefix}/include/security"
2788 if test ${localstatedir} = '${prefix}/var'
2790 localstatedir="/var"
2795 # Check whether --enable-static-modules was given.
2796 if test "${enable_static_modules+set}" = set; then
2797 enableval=$enable_static_modules; STATIC_MODULES=$enableval
2802 if test "$STATIC_MODULES" != "no" ; then
2803 CFLAGS="$CFLAGS -DPAM_STATIC"
2804 # Check whether --enable-static was given.
2805 if test "${enable_static+set}" = set; then
2806 enableval=$enable_static; p=${PACKAGE-default}
2808 yes) enable_static=yes ;;
2809 no) enable_static=no ;;
2812 # Look at the argument we got. We use all the common list separators.
2813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2814 for pkg in $enableval; do
2816 if test "X$pkg" = "X$p"; then
2835 # Check whether --enable-shared was given.
2836 if test "${enable_shared+set}" = set; then
2837 enableval=$enable_shared; p=${PACKAGE-default}
2839 yes) enable_shared=yes ;;
2840 no) enable_shared=no ;;
2843 # Look at the argument we got. We use all the common list separators.
2844 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2845 for pkg in $enableval; do
2847 if test "X$pkg" = "X$p"; then
2867 # per default don't build static libraries
2868 # Check whether --enable-static was given.
2869 if test "${enable_static+set}" = set; then
2870 enableval=$enable_static; p=${PACKAGE-default}
2872 yes) enable_static=yes ;;
2873 no) enable_static=no ;;
2876 # Look at the argument we got. We use all the common list separators.
2877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2878 for pkg in $enableval; do
2880 if test "X$pkg" = "X$p"; then
2896 # Check whether --enable-shared was given.
2897 if test "${enable_shared+set}" = set; then
2898 enableval=$enable_shared; p=${PACKAGE-default}
2900 yes) enable_shared=yes ;;
2901 no) enable_shared=no ;;
2904 # Look at the argument we got. We use all the common list separators.
2905 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2906 for pkg in $enableval; do
2908 if test "X$pkg" = "X$p"; then
2925 if test "$STATIC_MODULES" != "no"; then
2926 STATIC_MODULES_TRUE=
2927 STATIC_MODULES_FALSE='#'
2929 STATIC_MODULES_TRUE='#'
2930 STATIC_MODULES_FALSE=
2934 DEPDIR="${am__leading_dot}deps"
2936 ac_config_commands="$ac_config_commands depfiles"
2939 am_make=${MAKE-make}
2940 cat > confinc << 'END'
2945 # If we don't find an include directive, just comment out the code.
2946 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2951 # First try GNU make style include.
2952 echo "include confinc" > confmf
2953 # We grep out `Entering directory' and `Leaving directory'
2954 # messages which can occur if `w' ends up in MAKEFLAGS.
2955 # In particular we don't look at `^make:' because GNU make might
2956 # be invoked under some other name (usually "gmake"), in which
2957 # case it prints its new name instead of `make'.
2958 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2963 # Now try BSD make style include.
2964 if test "$am__include" = "#"; then
2965 echo '.include "confinc"' > confmf
2966 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2967 am__include=.include
2974 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2975 $as_echo "$_am_result" >&6; }
2976 rm -f confinc confmf
2978 # Check whether --enable-dependency-tracking was given.
2979 if test "${enable_dependency_tracking+set}" = set; then
2980 enableval=$enable_dependency_tracking;
2983 if test "x$enable_dependency_tracking" != xno; then
2984 am_depcomp="$ac_aux_dir/depcomp"
2987 if test "x$enable_dependency_tracking" != xno; then
2997 ac_cpp='$CPP $CPPFLAGS'
2998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3004 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_CC+set}" = set; then
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3020 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:$LINENO: result: no" >&5
3035 $as_echo "no" >&6; }
3040 if test -z "$ac_cv_prog_CC"; then
3042 # Extract the first word of "gcc", so it can be a program name with args.
3043 set dummy gcc; ac_word=$2
3044 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$ac_ct_CC"; then
3050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_ac_ct_CC="gcc"
3060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 $as_echo "$ac_ct_CC" >&6; }
3074 { $as_echo "$as_me:$LINENO: result: no" >&5
3075 $as_echo "no" >&6; }
3078 if test "x$ac_ct_CC" = x; then
3081 case $cross_compiling:$ac_tool_warned in
3083 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3085 ac_tool_warned=yes ;;
3093 if test -z "$CC"; then
3094 if test -n "$ac_tool_prefix"; then
3095 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3096 set dummy ${ac_tool_prefix}cc; ac_word=$2
3097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112 ac_cv_prog_CC="${ac_tool_prefix}cc"
3113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 if test -n "$CC"; then
3124 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3125 $as_echo "$CC" >&6; }
3127 { $as_echo "$as_me:$LINENO: result: no" >&5
3128 $as_echo "no" >&6; }
3134 if test -z "$CC"; then
3135 # Extract the first word of "cc", so it can be a program name with args.
3136 set dummy cc; ac_word=$2
3137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3138 $as_echo_n "checking for $ac_word... " >&6; }
3139 if test "${ac_cv_prog_CC+set}" = set; then
3140 $as_echo_n "(cached) " >&6
3142 if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3154 ac_prog_rejected=yes
3158 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test $ac_prog_rejected = yes; then
3166 # We found a bogon in the path, so make sure we never use it.
3167 set dummy $ac_cv_prog_CC
3169 if test $# != 0; then
3170 # We chose a different compiler from the bogus one.
3171 # However, it has the same basename, so the bogon will be chosen
3172 # first if we set CC to just the basename; use the full file name.
3174 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3184 { $as_echo "$as_me:$LINENO: result: no" >&5
3185 $as_echo "no" >&6; }
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 for ac_prog in cl.exe
3194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if test "${ac_cv_prog_CC+set}" = set; then
3199 $as_echo_n "(cached) " >&6
3201 if test -n "$CC"; then
3202 ac_cv_prog_CC="$CC" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 if test -n "$CC"; then
3223 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3226 { $as_echo "$as_me:$LINENO: result: no" >&5
3227 $as_echo "no" >&6; }
3231 test -n "$CC" && break
3234 if test -z "$CC"; then
3236 for ac_prog in cl.exe
3238 # Extract the first word of "$ac_prog", so it can be a program name with args.
3239 set dummy $ac_prog; ac_word=$2
3240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$ac_ct_CC"; then
3246 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255 ac_cv_prog_ac_ct_CC="$ac_prog"
3256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3266 if test -n "$ac_ct_CC"; then
3267 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3268 $as_echo "$ac_ct_CC" >&6; }
3270 { $as_echo "$as_me:$LINENO: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$ac_ct_CC" && break
3278 if test "x$ac_ct_CC" = x; then
3281 case $cross_compiling:$ac_tool_warned in
3283 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3285 ac_tool_warned=yes ;;
3294 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3297 See \`config.log' for more details." >&5
3298 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3299 See \`config.log' for more details." >&2;}
3300 { (exit 1); exit 1; }; }; }
3302 # Provide some information about the compiler.
3303 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3306 { (ac_try="$ac_compiler --version >&5"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3312 $as_echo "$ac_try_echo") >&5
3313 (eval "$ac_compiler --version >&5") 2>&5
3315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }
3317 { (ac_try="$ac_compiler -v >&5"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compiler -v >&5") 2>&5
3326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328 { (ac_try="$ac_compiler -V >&5"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3334 $as_echo "$ac_try_echo") >&5
3335 (eval "$ac_compiler -V >&5") 2>&5
3337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }
3340 cat >conftest.$ac_ext <<_ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3355 ac_clean_files_save=$ac_clean_files
3356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3357 # Try to create an executable without -o first, disregard a.out.
3358 # It will help us diagnose broken compilers, and finding out an intuition
3360 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3361 $as_echo_n "checking for C compiler default output file name... " >&6; }
3362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3364 # The possible output files:
3365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3368 for ac_file in $ac_files
3371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3377 if { (ac_try="$ac_link_default"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_link_default") 2>&5
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; then
3388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3391 # so that the user can short-circuit this test for compilers unknown to
3393 for ac_file in $ac_files ''
3395 test -f "$ac_file" || continue
3397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3400 # We found the default executable, but exeext='' is most
3404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408 # We set ac_cv_exeext here because the later test for it is not
3409 # safe: cross compilers may not add the suffix if given an `-o'
3410 # argument, so we may need to know it at that point already.
3411 # Even if this section looks crufty: it has the advantage of
3418 test "$ac_cv_exeext" = no && ac_cv_exeext=
3424 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3425 $as_echo "$ac_file" >&6; }
3426 if test -z "$ac_file"; then
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3430 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3433 See \`config.log' for more details." >&5
3434 $as_echo "$as_me: error: C compiler cannot create executables
3435 See \`config.log' for more details." >&2;}
3436 { (exit 77); exit 77; }; }; }
3439 ac_exeext=$ac_cv_exeext
3441 # Check that the compiler produces executables we can run. If not, either
3442 # the compiler is broken, or we cross compile.
3443 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3444 $as_echo_n "checking whether the C compiler works... " >&6; }
3445 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3446 # If not cross compiling, check that we can run a simple program.
3447 if test "$cross_compiling" != yes; then
3448 if { ac_try='./$ac_file'
3449 { (case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3454 $as_echo "$ac_try_echo") >&5
3455 (eval "$ac_try") 2>&5
3457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3461 if test "$cross_compiling" = maybe; then
3464 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details." >&5
3469 $as_echo "$as_me: error: cannot run C compiled programs.
3470 If you meant to cross compile, use \`--host'.
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }; }
3476 { $as_echo "$as_me:$LINENO: result: yes" >&5
3477 $as_echo "yes" >&6; }
3479 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3480 ac_clean_files=$ac_clean_files_save
3481 # Check that the compiler produces executables we can run. If not, either
3482 # the compiler is broken, or we cross compile.
3483 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3484 $as_echo_n "checking whether we are cross compiling... " >&6; }
3485 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3486 $as_echo "$cross_compiling" >&6; }
3488 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3489 $as_echo_n "checking for suffix of executables... " >&6; }
3490 if { (ac_try="$ac_link"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496 $as_echo "$ac_try_echo") >&5
3497 (eval "$ac_link") 2>&5
3499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; then
3501 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3502 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3503 # work properly (i.e., refer to `conftest.exe'), while it won't with
3505 for ac_file in conftest.exe conftest conftest.*; do
3506 test -f "$ac_file" || continue
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3517 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3518 See \`config.log' for more details." >&5
3519 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3524 rm -f conftest$ac_cv_exeext
3525 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3526 $as_echo "$ac_cv_exeext" >&6; }
3528 rm -f conftest.$ac_ext
3529 EXEEXT=$ac_cv_exeext
3531 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3532 $as_echo_n "checking for suffix of object files... " >&6; }
3533 if test "${ac_cv_objext+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3551 rm -f conftest.o conftest.obj
3552 if { (ac_try="$ac_compile"
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3558 $as_echo "$ac_try_echo") >&5
3559 (eval "$ac_compile") 2>&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; then
3563 for ac_file in conftest.o conftest.obj conftest.*; do
3564 test -f "$ac_file" || continue;
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3572 $as_echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3578 See \`config.log' for more details." >&5
3579 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3580 See \`config.log' for more details." >&2;}
3581 { (exit 1); exit 1; }; }; }
3584 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3587 $as_echo "$ac_cv_objext" >&6; }
3588 OBJEXT=$ac_cv_objext
3590 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3591 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3592 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3593 $as_echo_n "(cached) " >&6
3595 cat >conftest.$ac_ext <<_ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h. */
3613 rm -f conftest.$ac_objext
3614 if { (ac_try="$ac_compile"
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3620 $as_echo "$ac_try_echo") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3640 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3643 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3644 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3645 if test $ac_compiler_gnu = yes; then
3650 ac_test_CFLAGS=${CFLAGS+set}
3651 ac_save_CFLAGS=$CFLAGS
3652 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3653 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3654 if test "${ac_cv_prog_cc_g+set}" = set; then
3655 $as_echo_n "(cached) " >&6
3657 ac_save_c_werror_flag=$ac_c_werror_flag
3658 ac_c_werror_flag=yes
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3676 rm -f conftest.$ac_objext
3677 if { (ac_try="$ac_compile"
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3683 $as_echo "$ac_try_echo") >&5
3684 (eval "$ac_compile") 2>conftest.er1
3686 grep -v '^ *+' conftest.er1 >conftest.err
3688 cat conftest.err >&5
3689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); } && {
3691 test -z "$ac_c_werror_flag" ||
3692 test ! -s conftest.err
3693 } && test -s conftest.$ac_objext; then
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3700 cat >conftest.$ac_ext <<_ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3715 rm -f conftest.$ac_objext
3716 if { (ac_try="$ac_compile"
3718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719 *) ac_try_echo=$ac_try;;
3721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3722 $as_echo "$ac_try_echo") >&5
3723 (eval "$ac_compile") 2>conftest.er1
3725 grep -v '^ *+' conftest.er1 >conftest.err
3727 cat conftest.err >&5
3728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); } && {
3730 test -z "$ac_c_werror_flag" ||
3731 test ! -s conftest.err
3732 } && test -s conftest.$ac_objext; then
3735 $as_echo "$as_me: failed program was:" >&5
3736 sed 's/^/| /' conftest.$ac_ext >&5
3738 ac_c_werror_flag=$ac_save_c_werror_flag
3740 cat >conftest.$ac_ext <<_ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3755 rm -f conftest.$ac_objext
3756 if { (ac_try="$ac_compile"
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3762 $as_echo "$ac_try_echo") >&5
3763 (eval "$ac_compile") 2>conftest.er1
3765 grep -v '^ *+' conftest.er1 >conftest.err
3767 cat conftest.err >&5
3768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); } && {
3770 test -z "$ac_c_werror_flag" ||
3771 test ! -s conftest.err
3772 } && test -s conftest.$ac_objext; then
3775 $as_echo "$as_me: failed program was:" >&5
3776 sed 's/^/| /' conftest.$ac_ext >&5
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3790 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3791 $as_echo "$ac_cv_prog_cc_g" >&6; }
3792 if test "$ac_test_CFLAGS" = set; then
3793 CFLAGS=$ac_save_CFLAGS
3794 elif test $ac_cv_prog_cc_g = yes; then
3795 if test "$GCC" = yes; then
3801 if test "$GCC" = yes; then
3807 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3808 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809 if test "${ac_cv_prog_cc_c89+set}" = set; then
3810 $as_echo_n "(cached) " >&6
3812 ac_cv_prog_cc_c89=no
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3822 #include <sys/types.h>
3823 #include <sys/stat.h>
3824 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3825 struct buf { int x; };
3826 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3827 static char *e (p, i)
3833 static char *f (char * (*g) (char **, int), char **p, ...)
3838 s = g (p, va_arg (v,int));
3843 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3844 function prototypes and stuff, but not '\xHH' hex character constants.
3845 These don't provoke an error unfortunately, instead are silently treated
3846 as 'x'. The following induces an error, until -std is added to get
3847 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3848 array size at least. It's necessary to write '\x00'==0 to get something
3849 that's true only with -std. */
3850 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3853 inside strings and character constants. */
3855 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857 int test (int i, double x);
3858 struct s1 {int (*f) (int a);};
3859 struct s2 {int (*f) (double a);};
3860 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3866 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3871 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3872 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 CC="$ac_save_CC $ac_arg"
3875 rm -f conftest.$ac_objext
3876 if { (ac_try="$ac_compile"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3882 $as_echo "$ac_try_echo") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } && {
3890 test -z "$ac_c_werror_flag" ||
3891 test ! -s conftest.err
3892 } && test -s conftest.$ac_objext; then
3893 ac_cv_prog_cc_c89=$ac_arg
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3901 rm -f core conftest.err conftest.$ac_objext
3902 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 rm -f conftest.$ac_ext
3909 case "x$ac_cv_prog_cc_c89" in
3911 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3912 $as_echo "none needed" >&6; } ;;
3914 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3915 $as_echo "unsupported" >&6; } ;;
3917 CC="$CC $ac_cv_prog_cc_c89"
3918 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3924 ac_cpp='$CPP $CPPFLAGS'
3925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 depcc="$CC" am_compiler_list=
3931 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3932 $as_echo_n "checking dependency style of $depcc... " >&6; }
3933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3934 $as_echo_n "(cached) " >&6
3936 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3937 # We make a subdir and do the tests there. Otherwise we can end up
3938 # making bogus files that we don't know about and never remove. For
3939 # instance it was reported that on HP-UX the gcc test will end up
3940 # making a dummy file named `D' -- because `-MD' means `put the output
3943 # Copy depcomp to subdir because otherwise we won't find it if we're
3944 # using a relative directory.
3945 cp "$am_depcomp" conftest.dir
3947 # We will build objects and dependencies in a subdirectory because
3948 # it helps to detect inapplicable dependency modes. For instance
3949 # both Tru64's cc and ICC support -MD to output dependencies as a
3950 # side effect of compilation, but ICC will put the dependencies in
3951 # the current directory while Tru64 will put them in the object
3955 am_cv_CC_dependencies_compiler_type=none
3956 if test "$am_compiler_list" = ""; then
3957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3959 for depmode in $am_compiler_list; do
3960 # Setup a source with many dependencies, because some compilers
3961 # like to wrap large dependency lists on column 80 (with \), and
3962 # we should not choose a depcomp mode which is confused by this.
3964 # We need to recreate these files for each test, as the compiler may
3965 # overwrite some of them when testing with obscure command lines.
3966 # This happens at least with the AIX C compiler.
3968 for i in 1 2 3 4 5 6; do
3969 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3970 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3971 # Solaris 8's {/usr,}/bin/sh.
3972 touch sub/conftst$i.h
3974 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3978 # after this tag, mechanisms are not by side-effect, so they'll
3979 # only be used when explicitly requested
3980 if test "x$enable_dependency_tracking" = xyes; then
3988 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3989 # mode. It turns out that the SunPro C++ compiler does not properly
3990 # handle `-M -o', and we need to detect this.
3991 if depmode=$depmode \
3992 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3993 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3994 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3995 >/dev/null 2>conftest.err &&
3996 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3997 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3998 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3999 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4000 # icc doesn't choke on unknown options, it will just issue warnings
4001 # or remarks (even with -Werror). So we grep stderr for any message
4002 # that says an option was ignored or not supported.
4003 # When given -MP, icc 7.0 and 7.1 complain thusly:
4004 # icc: Command line warning: ignoring option '-M'; no argument required
4005 # The diagnosis changed in icc 8.0:
4006 # icc: Command line remark: option '-MP' not supported
4007 if (grep 'ignoring option' conftest.err ||
4008 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4009 am_cv_CC_dependencies_compiler_type=$depmode
4018 am_cv_CC_dependencies_compiler_type=none
4022 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4023 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4024 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4027 test "x$enable_dependency_tracking" != xno \
4028 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4030 am__fastdepCC_FALSE='#'
4032 am__fastdepCC_TRUE='#'
4033 am__fastdepCC_FALSE=
4039 ac_cpp='$CPP $CPPFLAGS'
4040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4045 # On Suns, sometimes $CPP names a directory.
4046 if test -n "$CPP" && test -d "$CPP"; then
4049 if test -z "$CPP"; then
4050 if test "${ac_cv_prog_CPP+set}" = set; then
4051 $as_echo_n "(cached) " >&6
4053 # Double quotes because CPP needs to be expanded
4054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4057 for ac_c_preproc_warn_flag in '' yes
4059 # Use a header file that comes with gcc, so configuring glibc
4060 # with a fresh cross-compiler works.
4061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4062 # <limits.h> exists even on freestanding compilers.
4063 # On the NeXT, cc -E runs the code through the compiler's parser,
4064 # not just through cpp. "Syntax error" is here to catch this case.
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4072 # include <limits.h>
4074 # include <assert.h>
4078 if { (ac_try="$ac_cpp conftest.$ac_ext"
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4084 $as_echo "$ac_try_echo") >&5
4085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4087 grep -v '^ *+' conftest.er1 >conftest.err
4089 cat conftest.err >&5
4090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } >/dev/null && {
4092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4097 $as_echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 # Broken: fails on valid input.
4104 rm -f conftest.err conftest.$ac_ext
4106 # OK, works on sane cases. Now check whether nonexistent headers
4107 # can be detected and how.
4108 cat >conftest.$ac_ext <<_ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #include <ac_nonexistent.h>
4116 if { (ac_try="$ac_cpp conftest.$ac_ext"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4122 $as_echo "$ac_try_echo") >&5
4123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4125 grep -v '^ *+' conftest.er1 >conftest.err
4127 cat conftest.err >&5
4128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); } >/dev/null && {
4130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4131 test ! -s conftest.err
4133 # Broken: success on invalid input.
4136 $as_echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4139 # Passes both tests.
4144 rm -f conftest.err conftest.$ac_ext
4147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4148 rm -f conftest.err conftest.$ac_ext
4149 if $ac_preproc_ok; then
4161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4162 $as_echo "$CPP" >&6; }
4164 for ac_c_preproc_warn_flag in '' yes
4166 # Use a header file that comes with gcc, so configuring glibc
4167 # with a fresh cross-compiler works.
4168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4169 # <limits.h> exists even on freestanding compilers.
4170 # On the NeXT, cc -E runs the code through the compiler's parser,
4171 # not just through cpp. "Syntax error" is here to catch this case.
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4179 # include <limits.h>
4181 # include <assert.h>
4185 if { (ac_try="$ac_cpp conftest.$ac_ext"
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } >/dev/null && {
4199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4200 test ! -s conftest.err
4204 $as_echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4207 # Broken: fails on valid input.
4211 rm -f conftest.err conftest.$ac_ext
4213 # OK, works on sane cases. Now check whether nonexistent headers
4214 # can be detected and how.
4215 cat >conftest.$ac_ext <<_ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #include <ac_nonexistent.h>
4223 if { (ac_try="$ac_cpp conftest.$ac_ext"
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4229 $as_echo "$ac_try_echo") >&5
4230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4232 grep -v '^ *+' conftest.er1 >conftest.err
4234 cat conftest.err >&5
4235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } >/dev/null && {
4237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4238 test ! -s conftest.err
4240 # Broken: success on invalid input.
4243 $as_echo "$as_me: failed program was:" >&5
4244 sed 's/^/| /' conftest.$ac_ext >&5
4246 # Passes both tests.
4251 rm -f conftest.err conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then
4259 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4261 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4262 See \`config.log' for more details." >&5
4263 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4264 See \`config.log' for more details." >&2;}
4265 { (exit 1); exit 1; }; }; }
4269 ac_cpp='$CPP $CPPFLAGS'
4270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4276 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4277 if test "${ac_cv_path_GREP+set}" = set; then
4278 $as_echo_n "(cached) " >&6
4280 if test -z "$GREP"; then
4281 ac_path_GREP_found=false
4282 # Loop through the user's path and test for each of PROGNAME-LIST
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in grep ggrep; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4291 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4292 # Check for GNU ac_path_GREP and select it if it is found.
4293 # Check for GNU $ac_path_GREP
4294 case `"$ac_path_GREP" --version 2>&1` in
4296 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4299 $as_echo_n 0123456789 >"conftest.in"
4302 cat "conftest.in" "conftest.in" >"conftest.tmp"
4303 mv "conftest.tmp" "conftest.in"
4304 cp "conftest.in" "conftest.nl"
4305 $as_echo 'GREP' >> "conftest.nl"
4306 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308 ac_count=`expr $ac_count + 1`
4309 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4310 # Best one so far, save it but keep looking for a better one
4311 ac_cv_path_GREP="$ac_path_GREP"
4312 ac_path_GREP_max=$ac_count
4314 # 10*(2^10) chars as input seems more than enough
4315 test $ac_count -gt 10 && break
4317 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4320 $ac_path_GREP_found && break 3
4325 if test -z "$ac_cv_path_GREP"; then
4326 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4327 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4328 { (exit 1); exit 1; }; }
4331 ac_cv_path_GREP=$GREP
4335 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4336 $as_echo "$ac_cv_path_GREP" >&6; }
4337 GREP="$ac_cv_path_GREP"
4340 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4341 $as_echo_n "checking for egrep... " >&6; }
4342 if test "${ac_cv_path_EGREP+set}" = set; then
4343 $as_echo_n "(cached) " >&6
4345 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4346 then ac_cv_path_EGREP="$GREP -E"
4348 if test -z "$EGREP"; then
4349 ac_path_EGREP_found=false
4350 # Loop through the user's path and test for each of PROGNAME-LIST
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4355 test -z "$as_dir" && as_dir=.
4356 for ac_prog in egrep; do
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4359 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4360 # Check for GNU ac_path_EGREP and select it if it is found.
4361 # Check for GNU $ac_path_EGREP
4362 case `"$ac_path_EGREP" --version 2>&1` in
4364 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4367 $as_echo_n 0123456789 >"conftest.in"
4370 cat "conftest.in" "conftest.in" >"conftest.tmp"
4371 mv "conftest.tmp" "conftest.in"
4372 cp "conftest.in" "conftest.nl"
4373 $as_echo 'EGREP' >> "conftest.nl"
4374 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4375 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4376 ac_count=`expr $ac_count + 1`
4377 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4378 # Best one so far, save it but keep looking for a better one
4379 ac_cv_path_EGREP="$ac_path_EGREP"
4380 ac_path_EGREP_max=$ac_count
4382 # 10*(2^10) chars as input seems more than enough
4383 test $ac_count -gt 10 && break
4385 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4388 $ac_path_EGREP_found && break 3
4393 if test -z "$ac_cv_path_EGREP"; then
4394 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4395 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4396 { (exit 1); exit 1; }; }
4399 ac_cv_path_EGREP=$EGREP
4404 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4405 $as_echo "$ac_cv_path_EGREP" >&6; }
4406 EGREP="$ac_cv_path_EGREP"
4409 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4410 $as_echo_n "checking for ANSI C header files... " >&6; }
4411 if test "${ac_cv_header_stdc+set}" = set; then
4412 $as_echo_n "(cached) " >&6
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4433 rm -f conftest.$ac_objext
4434 if { (ac_try="$ac_compile"
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4440 $as_echo "$ac_try_echo") >&5
4441 (eval "$ac_compile") 2>conftest.er1
4443 grep -v '^ *+' conftest.er1 >conftest.err
4445 cat conftest.err >&5
4446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); } && {
4448 test -z "$ac_c_werror_flag" ||
4449 test ! -s conftest.err
4450 } && test -s conftest.$ac_objext; then
4451 ac_cv_header_stdc=yes
4453 $as_echo "$as_me: failed program was:" >&5
4454 sed 's/^/| /' conftest.$ac_ext >&5
4456 ac_cv_header_stdc=no
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4461 if test $ac_cv_header_stdc = yes; then
4462 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4473 $EGREP "memchr" >/dev/null 2>&1; then
4476 ac_cv_header_stdc=no
4482 if test $ac_cv_header_stdc = yes; then
4483 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4484 cat >conftest.$ac_ext <<_ACEOF
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4494 $EGREP "free" >/dev/null 2>&1; then
4497 ac_cv_header_stdc=no
4503 if test $ac_cv_header_stdc = yes; then
4504 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4505 if test "$cross_compiling" = yes; then
4508 cat >conftest.$ac_ext <<_ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4516 #if ((' ' & 0x0FF) == 0x020)
4517 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4518 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4520 # define ISLOWER(c) \
4521 (('a' <= (c) && (c) <= 'i') \
4522 || ('j' <= (c) && (c) <= 'r') \
4523 || ('s' <= (c) && (c) <= 'z'))
4524 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4527 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4532 for (i = 0; i < 256; i++)
4533 if (XOR (islower (i), ISLOWER (i))
4534 || toupper (i) != TOUPPER (i))
4539 rm -f conftest$ac_exeext
4540 if { (ac_try="$ac_link"
4542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4543 *) ac_try_echo=$ac_try;;
4545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4546 $as_echo "$ac_try_echo") >&5
4547 (eval "$ac_link") 2>&5
4549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4551 { (case "(($ac_try" in
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4553 *) ac_try_echo=$ac_try;;
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4556 $as_echo "$ac_try_echo") >&5
4557 (eval "$ac_try") 2>&5
4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560 (exit $ac_status); }; }; then
4563 $as_echo "$as_me: program exited with status $ac_status" >&5
4564 $as_echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4568 ac_cv_header_stdc=no
4570 rm -rf conftest.dSYM
4571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4577 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4578 $as_echo "$ac_cv_header_stdc" >&6; }
4579 if test $ac_cv_header_stdc = yes; then
4581 cat >>confdefs.h <<\_ACEOF
4582 #define STDC_HEADERS 1
4587 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4597 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4598 inttypes.h stdint.h unistd.h
4600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4601 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4602 $as_echo_n "checking for $ac_header... " >&6; }
4603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4604 $as_echo_n "(cached) " >&6
4606 cat >conftest.$ac_ext <<_ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h. */
4612 $ac_includes_default
4614 #include <$ac_header>
4616 rm -f conftest.$ac_objext
4617 if { (ac_try="$ac_compile"
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4623 $as_echo "$ac_try_echo") >&5
4624 (eval "$ac_compile") 2>conftest.er1
4626 grep -v '^ *+' conftest.er1 >conftest.err
4628 cat conftest.err >&5
4629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); } && {
4631 test -z "$ac_c_werror_flag" ||
4632 test ! -s conftest.err
4633 } && test -s conftest.$ac_objext; then
4634 eval "$as_ac_Header=yes"
4636 $as_echo "$as_me: failed program was:" >&5
4637 sed 's/^/| /' conftest.$ac_ext >&5
4639 eval "$as_ac_Header=no"
4642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644 ac_res=`eval 'as_val=${'$as_ac_Header'}
4645 $as_echo "$as_val"'`
4646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4647 $as_echo "$ac_res" >&6; }
4648 as_val=`eval 'as_val=${'$as_ac_Header'}
4649 $as_echo "$as_val"'`
4650 if test "x$as_val" = x""yes; then
4651 cat >>confdefs.h <<_ACEOF
4652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4661 if test "${ac_cv_header_minix_config_h+set}" = set; then
4662 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4663 $as_echo_n "checking for minix/config.h... " >&6; }
4664 if test "${ac_cv_header_minix_config_h+set}" = set; then
4665 $as_echo_n "(cached) " >&6
4667 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4668 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4670 # Is the header compilable?
4671 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4672 $as_echo_n "checking minix/config.h usability... " >&6; }
4673 cat >conftest.$ac_ext <<_ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 $ac_includes_default
4680 #include <minix/config.h>
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4689 $as_echo "$ac_try_echo") >&5
4690 (eval "$ac_compile") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } && {
4697 test -z "$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4699 } && test -s conftest.$ac_objext; then
4700 ac_header_compiler=yes
4702 $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 ac_header_compiler=no
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4710 $as_echo "$ac_header_compiler" >&6; }
4712 # Is the header present?
4713 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4714 $as_echo_n "checking minix/config.h presence... " >&6; }
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <minix/config.h>
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } >/dev/null && {
4737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4740 ac_header_preproc=yes
4742 $as_echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 ac_header_preproc=no
4748 rm -f conftest.err conftest.$ac_ext
4749 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4750 $as_echo "$ac_header_preproc" >&6; }
4752 # So? What about this header?
4753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4755 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4756 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4757 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4758 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4759 ac_header_preproc=yes
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4767 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4768 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4769 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4770 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4771 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4773 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4777 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4778 $as_echo_n "checking for minix/config.h... " >&6; }
4779 if test "${ac_cv_header_minix_config_h+set}" = set; then
4780 $as_echo_n "(cached) " >&6
4782 ac_cv_header_minix_config_h=$ac_header_preproc
4784 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4785 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4788 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4795 if test "$MINIX" = yes; then
4797 cat >>confdefs.h <<\_ACEOF
4798 #define _POSIX_SOURCE 1
4802 cat >>confdefs.h <<\_ACEOF
4803 #define _POSIX_1_SOURCE 2
4807 cat >>confdefs.h <<\_ACEOF
4815 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4816 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4817 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4818 $as_echo_n "(cached) " >&6
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4827 # define __EXTENSIONS__ 1
4828 $ac_includes_default
4837 rm -f conftest.$ac_objext
4838 if { (ac_try="$ac_compile"
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844 $as_echo "$ac_try_echo") >&5
4845 (eval "$ac_compile") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
4855 ac_cv_safe_to_define___extensions__=yes
4857 $as_echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4860 ac_cv_safe_to_define___extensions__=no
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4866 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4867 test $ac_cv_safe_to_define___extensions__ = yes &&
4868 cat >>confdefs.h <<\_ACEOF
4869 #define __EXTENSIONS__ 1
4872 cat >>confdefs.h <<\_ACEOF
4873 #define _ALL_SOURCE 1
4876 cat >>confdefs.h <<\_ACEOF
4877 #define _GNU_SOURCE 1
4880 cat >>confdefs.h <<\_ACEOF
4881 #define _POSIX_PTHREAD_SEMANTICS 1
4884 cat >>confdefs.h <<\_ACEOF
4885 #define _TANDEM_SOURCE 1
4890 ac_cpp='$CPP $CPPFLAGS'
4891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4894 if test -n "$ac_tool_prefix"; then
4895 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4896 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_CC+set}" = set; then
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$CC"; then
4903 ac_cv_prog_CC="$CC" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 if test -n "$CC"; then
4924 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4925 $as_echo "$CC" >&6; }
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4933 if test -z "$ac_cv_prog_CC"; then
4935 # Extract the first word of "gcc", so it can be a program name with args.
4936 set dummy gcc; ac_word=$2
4937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4940 $as_echo_n "(cached) " >&6
4942 if test -n "$ac_ct_CC"; then
4943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_ac_ct_CC="gcc"
4953 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4963 if test -n "$ac_ct_CC"; then
4964 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4965 $as_echo "$ac_ct_CC" >&6; }
4967 { $as_echo "$as_me:$LINENO: result: no" >&5
4968 $as_echo "no" >&6; }
4971 if test "x$ac_ct_CC" = x; then
4974 case $cross_compiling:$ac_tool_warned in
4976 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4978 ac_tool_warned=yes ;;
4986 if test -z "$CC"; then
4987 if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4989 set dummy ${ac_tool_prefix}cc; ac_word=$2
4990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if test "${ac_cv_prog_CC+set}" = set; then
4993 $as_echo_n "(cached) " >&6
4995 if test -n "$CC"; then
4996 ac_cv_prog_CC="$CC" # Let the user override the test.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_CC="${ac_tool_prefix}cc"
5006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 if test -n "$CC"; then
5017 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5018 $as_echo "$CC" >&6; }
5020 { $as_echo "$as_me:$LINENO: result: no" >&5
5021 $as_echo "no" >&6; }
5027 if test -z "$CC"; then
5028 # Extract the first word of "cc", so it can be a program name with args.
5029 set dummy cc; ac_word=$2
5030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_prog_CC+set}" = set; then
5033 $as_echo_n "(cached) " >&6
5035 if test -n "$CC"; then
5036 ac_cv_prog_CC="$CC" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5047 ac_prog_rejected=yes
5051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058 if test $ac_prog_rejected = yes; then
5059 # We found a bogon in the path, so make sure we never use it.
5060 set dummy $ac_cv_prog_CC
5062 if test $# != 0; then
5063 # We chose a different compiler from the bogus one.
5064 # However, it has the same basename, so the bogon will be chosen
5065 # first if we set CC to just the basename; use the full file name.
5067 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5073 if test -n "$CC"; then
5074 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5075 $as_echo "$CC" >&6; }
5077 { $as_echo "$as_me:$LINENO: result: no" >&5
5078 $as_echo "no" >&6; }
5083 if test -z "$CC"; then
5084 if test -n "$ac_tool_prefix"; then
5085 for ac_prog in cl.exe
5087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5089 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if test "${ac_cv_prog_CC+set}" = set; then
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$CC"; then
5095 ac_cv_prog_CC="$CC" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5105 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 if test -n "$CC"; then
5116 { $as_echo "$as_me:$LINENO: result: $CC" >&5
5117 $as_echo "$CC" >&6; }
5119 { $as_echo "$as_me:$LINENO: result: no" >&5
5120 $as_echo "no" >&6; }
5124 test -n "$CC" && break
5127 if test -z "$CC"; then
5129 for ac_prog in cl.exe
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5136 $as_echo_n "(cached) " >&6
5138 if test -n "$ac_ct_CC"; then
5139 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_ac_ct_CC="$ac_prog"
5149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5159 if test -n "$ac_ct_CC"; then
5160 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5161 $as_echo "$ac_ct_CC" >&6; }
5163 { $as_echo "$as_me:$LINENO: result: no" >&5
5164 $as_echo "no" >&6; }
5168 test -n "$ac_ct_CC" && break
5171 if test "x$ac_ct_CC" = x; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5187 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5189 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }; }
5195 # Provide some information about the compiler.
5196 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5199 { (ac_try="$ac_compiler --version >&5"
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5205 $as_echo "$ac_try_echo") >&5
5206 (eval "$ac_compiler --version >&5") 2>&5
5208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }
5210 { (ac_try="$ac_compiler -v >&5"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5216 $as_echo "$ac_try_echo") >&5
5217 (eval "$ac_compiler -v >&5") 2>&5
5219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }
5221 { (ac_try="$ac_compiler -V >&5"
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5227 $as_echo "$ac_try_echo") >&5
5228 (eval "$ac_compiler -V >&5") 2>&5
5230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }
5233 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5236 $as_echo_n "(cached) " >&6
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5263 $as_echo "$ac_try_echo") >&5
5264 (eval "$ac_compile") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest.$ac_objext; then
5276 $as_echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5286 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5287 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5288 if test $ac_compiler_gnu = yes; then
5293 ac_test_CFLAGS=${CFLAGS+set}
5294 ac_save_CFLAGS=$CFLAGS
5295 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5296 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5297 if test "${ac_cv_prog_cc_g+set}" = set; then
5298 $as_echo_n "(cached) " >&6
5300 ac_save_c_werror_flag=$ac_c_werror_flag
5301 ac_c_werror_flag=yes
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5319 rm -f conftest.$ac_objext
5320 if { (ac_try="$ac_compile"
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5326 $as_echo "$ac_try_echo") >&5
5327 (eval "$ac_compile") 2>conftest.er1
5329 grep -v '^ *+' conftest.er1 >conftest.err
5331 cat conftest.err >&5
5332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } && {
5334 test -z "$ac_c_werror_flag" ||
5335 test ! -s conftest.err
5336 } && test -s conftest.$ac_objext; then
5339 $as_echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5343 cat >conftest.$ac_ext <<_ACEOF
5346 cat confdefs.h >>conftest.$ac_ext
5347 cat >>conftest.$ac_ext <<_ACEOF
5348 /* end confdefs.h. */
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366 (eval "$ac_compile") 2>conftest.er1
5368 grep -v '^ *+' conftest.er1 >conftest.err
5370 cat conftest.err >&5
5371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest.$ac_objext; then
5378 $as_echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 ac_c_werror_flag=$ac_save_c_werror_flag
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5405 $as_echo "$ac_try_echo") >&5
5406 (eval "$ac_compile") 2>conftest.er1
5408 grep -v '^ *+' conftest.er1 >conftest.err
5410 cat conftest.err >&5
5411 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } && {
5413 test -z "$ac_c_werror_flag" ||
5414 test ! -s conftest.err
5415 } && test -s conftest.$ac_objext; then
5418 $as_echo "$as_me: failed program was:" >&5
5419 sed 's/^/| /' conftest.$ac_ext >&5
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 ac_c_werror_flag=$ac_save_c_werror_flag
5433 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5434 $as_echo "$ac_cv_prog_cc_g" >&6; }
5435 if test "$ac_test_CFLAGS" = set; then
5436 CFLAGS=$ac_save_CFLAGS
5437 elif test $ac_cv_prog_cc_g = yes; then
5438 if test "$GCC" = yes; then
5444 if test "$GCC" = yes; then
5450 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5451 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5452 if test "${ac_cv_prog_cc_c89+set}" = set; then
5453 $as_echo_n "(cached) " >&6
5455 ac_cv_prog_cc_c89=no
5457 cat >conftest.$ac_ext <<_ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5465 #include <sys/types.h>
5466 #include <sys/stat.h>
5467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5468 struct buf { int x; };
5469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5470 static char *e (p, i)
5476 static char *f (char * (*g) (char **, int), char **p, ...)
5481 s = g (p, va_arg (v,int));
5486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5487 function prototypes and stuff, but not '\xHH' hex character constants.
5488 These don't provoke an error unfortunately, instead are silently treated
5489 as 'x'. The following induces an error, until -std is added to get
5490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5491 array size at least. It's necessary to write '\x00'==0 to get something
5492 that's true only with -std. */
5493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5496 inside strings and character constants. */
5498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5500 int test (int i, double x);
5501 struct s1 {int (*f) (int a);};
5502 struct s2 {int (*f) (double a);};
5503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5517 CC="$ac_save_CC $ac_arg"
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5525 $as_echo "$ac_try_echo") >&5
5526 (eval "$ac_compile") 2>conftest.er1
5528 grep -v '^ *+' conftest.er1 >conftest.err
5530 cat conftest.err >&5
5531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } && {
5533 test -z "$ac_c_werror_flag" ||
5534 test ! -s conftest.err
5535 } && test -s conftest.$ac_objext; then
5536 ac_cv_prog_cc_c89=$ac_arg
5538 $as_echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5544 rm -f core conftest.err conftest.$ac_objext
5545 test "x$ac_cv_prog_cc_c89" != "xno" && break
5547 rm -f conftest.$ac_ext
5552 case "x$ac_cv_prog_cc_c89" in
5554 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5555 $as_echo "none needed" >&6; } ;;
5557 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5558 $as_echo "unsupported" >&6; } ;;
5560 CC="$CC $ac_cv_prog_cc_c89"
5561 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5562 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5567 ac_cpp='$CPP $CPPFLAGS'
5568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572 depcc="$CC" am_compiler_list=
5574 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5575 $as_echo_n "checking dependency style of $depcc... " >&6; }
5576 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5577 $as_echo_n "(cached) " >&6
5579 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5580 # We make a subdir and do the tests there. Otherwise we can end up
5581 # making bogus files that we don't know about and never remove. For
5582 # instance it was reported that on HP-UX the gcc test will end up
5583 # making a dummy file named `D' -- because `-MD' means `put the output
5586 # Copy depcomp to subdir because otherwise we won't find it if we're
5587 # using a relative directory.
5588 cp "$am_depcomp" conftest.dir
5590 # We will build objects and dependencies in a subdirectory because
5591 # it helps to detect inapplicable dependency modes. For instance
5592 # both Tru64's cc and ICC support -MD to output dependencies as a
5593 # side effect of compilation, but ICC will put the dependencies in
5594 # the current directory while Tru64 will put them in the object
5598 am_cv_CC_dependencies_compiler_type=none
5599 if test "$am_compiler_list" = ""; then
5600 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5602 for depmode in $am_compiler_list; do
5603 # Setup a source with many dependencies, because some compilers
5604 # like to wrap large dependency lists on column 80 (with \), and
5605 # we should not choose a depcomp mode which is confused by this.
5607 # We need to recreate these files for each test, as the compiler may
5608 # overwrite some of them when testing with obscure command lines.
5609 # This happens at least with the AIX C compiler.
5611 for i in 1 2 3 4 5 6; do
5612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5614 # Solaris 8's {/usr,}/bin/sh.
5615 touch sub/conftst$i.h
5617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5621 # after this tag, mechanisms are not by side-effect, so they'll
5622 # only be used when explicitly requested
5623 if test "x$enable_dependency_tracking" = xyes; then
5631 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5632 # mode. It turns out that the SunPro C++ compiler does not properly
5633 # handle `-M -o', and we need to detect this.
5634 if depmode=$depmode \
5635 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5636 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5637 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5638 >/dev/null 2>conftest.err &&
5639 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5640 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5641 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5642 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5643 # icc doesn't choke on unknown options, it will just issue warnings
5644 # or remarks (even with -Werror). So we grep stderr for any message
5645 # that says an option was ignored or not supported.
5646 # When given -MP, icc 7.0 and 7.1 complain thusly:
5647 # icc: Command line warning: ignoring option '-M'; no argument required
5648 # The diagnosis changed in icc 8.0:
5649 # icc: Command line remark: option '-MP' not supported
5650 if (grep 'ignoring option' conftest.err ||
5651 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5652 am_cv_CC_dependencies_compiler_type=$depmode
5661 am_cv_CC_dependencies_compiler_type=none
5665 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5666 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5667 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5670 test "x$enable_dependency_tracking" != xno \
5671 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5673 am__fastdepCC_FALSE='#'
5675 am__fastdepCC_TRUE='#'
5676 am__fastdepCC_FALSE=
5680 for ac_prog in 'bison -y' byacc
5682 # Extract the first word of "$ac_prog", so it can be a program name with args.
5683 set dummy $ac_prog; ac_word=$2
5684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if test "${ac_cv_prog_YACC+set}" = set; then
5687 $as_echo_n "(cached) " >&6
5689 if test -n "$YACC"; then
5690 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_YACC="$ac_prog"
5700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 YACC=$ac_cv_prog_YACC
5710 if test -n "$YACC"; then
5711 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5712 $as_echo "$YACC" >&6; }
5714 { $as_echo "$as_me:$LINENO: result: no" >&5
5715 $as_echo "no" >&6; }
5719 test -n "$YACC" && break
5721 test -n "$YACC" || YACC="yacc"
5723 for ac_prog in flex lex
5725 # Extract the first word of "$ac_prog", so it can be a program name with args.
5726 set dummy $ac_prog; ac_word=$2
5727 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if test "${ac_cv_prog_LEX+set}" = set; then
5730 $as_echo_n "(cached) " >&6
5732 if test -n "$LEX"; then
5733 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 test -z "$as_dir" && as_dir=.
5740 for ac_exec_ext in '' $ac_executable_extensions; do
5741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742 ac_cv_prog_LEX="$ac_prog"
5743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 if test -n "$LEX"; then
5754 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
5755 $as_echo "$LEX" >&6; }
5757 { $as_echo "$as_me:$LINENO: result: no" >&5
5758 $as_echo "no" >&6; }
5762 test -n "$LEX" && break
5764 test -n "$LEX" || LEX=":"
5766 if test "x$LEX" != "x:"; then
5767 cat >conftest.l <<_ACEOF
5773 e { yyless (input () != 0); }
5774 f { unput (yytext[0]); }
5775 . { BEGIN INITIAL; }
5777 #ifdef YYTEXT_POINTER
5778 extern char *yytext;
5783 return ! yylex () + ! yywrap ();
5786 { (ac_try="$LEX conftest.l"
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792 $as_echo "$ac_try_echo") >&5
5793 (eval "$LEX conftest.l") 2>&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); }
5797 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
5798 $as_echo_n "checking lex output file root... " >&6; }
5799 if test "${ac_cv_prog_lex_root+set}" = set; then
5800 $as_echo_n "(cached) " >&6
5803 if test -f lex.yy.c; then
5804 ac_cv_prog_lex_root=lex.yy
5805 elif test -f lexyy.c; then
5806 ac_cv_prog_lex_root=lexyy
5808 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5809 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5810 { (exit 1); exit 1; }; }
5813 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5814 $as_echo "$ac_cv_prog_lex_root" >&6; }
5815 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5817 if test -z "${LEXLIB+set}"; then
5818 { $as_echo "$as_me:$LINENO: checking lex library" >&5
5819 $as_echo_n "checking lex library... " >&6; }
5820 if test "${ac_cv_lib_lex+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5825 ac_cv_lib_lex='none needed'
5826 for ac_lib in '' -lfl -ll; do
5827 LIBS="$ac_lib $ac_save_LIBS"
5828 cat >conftest.$ac_ext <<_ACEOF
5829 `cat $LEX_OUTPUT_ROOT.c`
5831 rm -f conftest.$ac_objext conftest$ac_exeext
5832 if { (ac_try="$ac_link"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838 $as_echo "$ac_try_echo") >&5
5839 (eval "$ac_link") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest$ac_exeext && {
5849 test "$cross_compiling" = yes ||
5850 $as_test_x conftest$ac_exeext
5852 ac_cv_lib_lex=$ac_lib
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5860 rm -rf conftest.dSYM
5861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5862 conftest$ac_exeext conftest.$ac_ext
5863 test "$ac_cv_lib_lex" != 'none needed' && break
5868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5869 $as_echo "$ac_cv_lib_lex" >&6; }
5870 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5874 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5875 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5876 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5877 $as_echo_n "(cached) " >&6
5879 # POSIX says lex can declare yytext either as a pointer or an array; the
5880 # default is implementation-dependent. Figure out which it is, since
5881 # not all implementations provide the %pointer and %array declarations.
5882 ac_cv_prog_lex_yytext_pointer=no
5884 LIBS="$LEXLIB $ac_save_LIBS"
5885 cat >conftest.$ac_ext <<_ACEOF
5886 #define YYTEXT_POINTER 1
5887 `cat $LEX_OUTPUT_ROOT.c`
5889 rm -f conftest.$ac_objext conftest$ac_exeext
5890 if { (ac_try="$ac_link"
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5896 $as_echo "$ac_try_echo") >&5
5897 (eval "$ac_link") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest$ac_exeext && {
5907 test "$cross_compiling" = yes ||
5908 $as_test_x conftest$ac_exeext
5910 ac_cv_prog_lex_yytext_pointer=yes
5912 $as_echo "$as_me: failed program was:" >&5
5913 sed 's/^/| /' conftest.$ac_ext >&5
5918 rm -rf conftest.dSYM
5919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5920 conftest$ac_exeext conftest.$ac_ext
5924 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5925 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5926 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5928 cat >>confdefs.h <<\_ACEOF
5929 #define YYTEXT_POINTER 1
5933 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5936 if test "$LEX" = :; then
5937 LEX=${am_missing_run}flex
5939 # Find a good install program. We prefer a C program (faster),
5940 # so one script is as good as another. But avoid the broken or
5941 # incompatible versions:
5942 # SysV /etc/install, /usr/sbin/install
5943 # SunOS /usr/etc/install
5944 # IRIX /sbin/install
5946 # AmigaOS /C/install, which installs bootblocks on floppy discs
5947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5950 # OS/2's system install, which has a completely different semantic
5951 # ./install, which can be erroneously created by make from ./install.sh.
5952 # Reject install programs that cannot install multiple files.
5953 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5954 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5955 if test -z "$INSTALL"; then
5956 if test "${ac_cv_path_install+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 test -z "$as_dir" && as_dir=.
5964 # Account for people who put trailing slashes in PATH elements.
5966 ./ | .// | /cC/* | \
5967 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5968 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5971 # OSF1 and SCO ODT 3.0 have their own names for install.
5972 # Don't use installbsd from OSF since it installs stuff as root
5974 for ac_prog in ginstall scoinst install; do
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5977 if test $ac_prog = install &&
5978 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5979 # AIX install. It has an incompatible calling convention.
5981 elif test $ac_prog = install &&
5982 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5983 # program-specific install script used by HP pwplus--don't use.
5986 rm -rf conftest.one conftest.two conftest.dir
5987 echo one > conftest.one
5988 echo two > conftest.two
5990 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5991 test -s conftest.one && test -s conftest.two &&
5992 test -s conftest.dir/conftest.one &&
5993 test -s conftest.dir/conftest.two
5995 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6008 rm -rf conftest.one conftest.two conftest.dir
6011 if test "${ac_cv_path_install+set}" = set; then
6012 INSTALL=$ac_cv_path_install
6014 # As a last resort, use the slow shell script. Don't cache a
6015 # value for INSTALL within a source directory, because that will
6016 # break other packages using the cache if that directory is
6017 # removed, or if the value is a relative name.
6018 INSTALL=$ac_install_sh
6021 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6022 $as_echo "$INSTALL" >&6; }
6024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6025 # It thinks the first close brace ends the variable substitution.
6026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6032 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6033 $as_echo_n "checking whether ln -s works... " >&6; }
6035 if test "$LN_S" = "ln -s"; then
6036 { $as_echo "$as_me:$LINENO: result: yes" >&5
6037 $as_echo "yes" >&6; }
6039 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6040 $as_echo "no, using $LN_S" >&6; }
6043 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6044 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6046 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6047 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6048 $as_echo_n "(cached) " >&6
6050 cat >conftest.make <<\_ACEOF
6053 @echo '@@@%%%=$(MAKE)=@@@%%%'
6055 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6056 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6058 eval ac_cv_prog_make_${ac_make}_set=yes;;
6060 eval ac_cv_prog_make_${ac_make}_set=no;;
6064 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6065 { $as_echo "$as_me:$LINENO: result: yes" >&5
6066 $as_echo "yes" >&6; }
6069 { $as_echo "$as_me:$LINENO: result: no" >&5
6070 $as_echo "no" >&6; }
6071 SET_MAKE="MAKE=${MAKE-make}"
6076 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6077 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6082 macro_version='2.2.6'
6083 macro_revision='1.3012'
6097 ltmain="$ac_aux_dir/ltmain.sh"
6099 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6100 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6101 if test "${ac_cv_path_SED+set}" = set; then
6102 $as_echo_n "(cached) " >&6
6104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6105 for ac_i in 1 2 3 4 5 6 7; do
6106 ac_script="$ac_script$as_nl$ac_script"
6108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6109 $as_unset ac_script || ac_script=
6110 if test -z "$SED"; then
6111 ac_path_SED_found=false
6112 # Loop through the user's path and test for each of PROGNAME-LIST
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_prog in sed gsed; do
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6121 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6122 # Check for GNU ac_path_SED and select it if it is found.
6123 # Check for GNU $ac_path_SED
6124 case `"$ac_path_SED" --version 2>&1` in
6126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6129 $as_echo_n 0123456789 >"conftest.in"
6132 cat "conftest.in" "conftest.in" >"conftest.tmp"
6133 mv "conftest.tmp" "conftest.in"
6134 cp "conftest.in" "conftest.nl"
6135 $as_echo '' >> "conftest.nl"
6136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6138 ac_count=`expr $ac_count + 1`
6139 if test $ac_count -gt ${ac_path_SED_max-0}; then
6140 # Best one so far, save it but keep looking for a better one
6141 ac_cv_path_SED="$ac_path_SED"
6142 ac_path_SED_max=$ac_count
6144 # 10*(2^10) chars as input seems more than enough
6145 test $ac_count -gt 10 && break
6147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6150 $ac_path_SED_found && break 3
6155 if test -z "$ac_cv_path_SED"; then
6156 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
6157 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
6158 { (exit 1); exit 1; }; }
6165 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
6166 $as_echo "$ac_cv_path_SED" >&6; }
6167 SED="$ac_cv_path_SED"
6170 test -z "$SED" && SED=sed
6171 Xsed="$SED -e 1s/^X//"
6183 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6184 $as_echo_n "checking for fgrep... " >&6; }
6185 if test "${ac_cv_path_FGREP+set}" = set; then
6186 $as_echo_n "(cached) " >&6
6188 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6189 then ac_cv_path_FGREP="$GREP -F"
6191 if test -z "$FGREP"; then
6192 ac_path_FGREP_found=false
6193 # Loop through the user's path and test for each of PROGNAME-LIST
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6198 test -z "$as_dir" && as_dir=.
6199 for ac_prog in fgrep; do
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6202 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6203 # Check for GNU ac_path_FGREP and select it if it is found.
6204 # Check for GNU $ac_path_FGREP
6205 case `"$ac_path_FGREP" --version 2>&1` in
6207 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6210 $as_echo_n 0123456789 >"conftest.in"
6213 cat "conftest.in" "conftest.in" >"conftest.tmp"
6214 mv "conftest.tmp" "conftest.in"
6215 cp "conftest.in" "conftest.nl"
6216 $as_echo 'FGREP' >> "conftest.nl"
6217 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6219 ac_count=`expr $ac_count + 1`
6220 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6221 # Best one so far, save it but keep looking for a better one
6222 ac_cv_path_FGREP="$ac_path_FGREP"
6223 ac_path_FGREP_max=$ac_count
6225 # 10*(2^10) chars as input seems more than enough
6226 test $ac_count -gt 10 && break
6228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6231 $ac_path_FGREP_found && break 3
6236 if test -z "$ac_cv_path_FGREP"; then
6237 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6238 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6239 { (exit 1); exit 1; }; }
6242 ac_cv_path_FGREP=$FGREP
6247 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6248 $as_echo "$ac_cv_path_FGREP" >&6; }
6249 FGREP="$ac_cv_path_FGREP"
6252 test -z "$GREP" && GREP=grep
6272 # Check whether --with-gnu-ld was given.
6273 if test "${with_gnu_ld+set}" = set; then
6274 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6280 if test "$GCC" = yes; then
6281 # Check if gcc -print-prog-name=ld gives a path.
6282 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6283 $as_echo_n "checking for ld used by $CC... " >&6; }
6286 # gcc leaves a trailing carriage return which upsets mingw
6287 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6289 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6292 # Accept absolute paths.
6294 re_direlt='/[^/][^/]*/\.\./'
6295 # Canonicalize the pathname of ld
6296 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6297 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6298 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6300 test -z "$LD" && LD="$ac_prog"
6303 # If it fails, then pretend we aren't using GCC.
6307 # If it is relative, then search for the first ld in PATH.
6311 elif test "$with_gnu_ld" = yes; then
6312 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6313 $as_echo_n "checking for GNU ld... " >&6; }
6315 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6316 $as_echo_n "checking for non-GNU ld... " >&6; }
6318 if test "${lt_cv_path_LD+set}" = set; then
6319 $as_echo_n "(cached) " >&6
6321 if test -z "$LD"; then
6322 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6323 for ac_dir in $PATH; do
6325 test -z "$ac_dir" && ac_dir=.
6326 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6327 lt_cv_path_LD="$ac_dir/$ac_prog"
6328 # Check to see if the program is GNU ld. I'd rather use --version,
6329 # but apparently some variants of GNU ld only accept -v.
6330 # Break only if it was the GNU/non-GNU ld that we prefer.
6331 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6332 *GNU* | *'with BFD'*)
6333 test "$with_gnu_ld" != no && break
6336 test "$with_gnu_ld" != yes && break
6343 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6348 if test -n "$LD"; then
6349 { $as_echo "$as_me:$LINENO: result: $LD" >&5
6350 $as_echo "$LD" >&6; }
6352 { $as_echo "$as_me:$LINENO: result: no" >&5
6353 $as_echo "no" >&6; }
6355 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6356 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6357 { (exit 1); exit 1; }; }
6358 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6360 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6361 $as_echo_n "(cached) " >&6
6363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6364 case `$LD -v 2>&1 </dev/null` in
6365 *GNU* | *'with BFD'*)
6366 lt_cv_prog_gnu_ld=yes
6369 lt_cv_prog_gnu_ld=no
6373 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6375 with_gnu_ld=$lt_cv_prog_gnu_ld
6385 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6387 if test "${lt_cv_path_NM+set}" = set; then
6388 $as_echo_n "(cached) " >&6
6390 if test -n "$NM"; then
6391 # Let the user override the test.
6394 lt_nm_to_check="${ac_tool_prefix}nm"
6395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6396 lt_nm_to_check="$lt_nm_to_check nm"
6398 for lt_tmp_nm in $lt_nm_to_check; do
6399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6402 test -z "$ac_dir" && ac_dir=.
6403 tmp_nm="$ac_dir/$lt_tmp_nm"
6404 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6405 # Check to see if the nm accepts a BSD-compat flag.
6406 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6407 # nm: unknown option "B" ignored
6408 # Tru64's nm complains that /dev/null is an invalid object file
6409 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6410 */dev/null* | *'Invalid file or object type'*)
6411 lt_cv_path_NM="$tmp_nm -B"
6415 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6417 lt_cv_path_NM="$tmp_nm -p"
6421 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6422 continue # so that we can try to find one that supports BSD flags
6431 : ${lt_cv_path_NM=no}
6434 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6435 $as_echo "$lt_cv_path_NM" >&6; }
6436 if test "$lt_cv_path_NM" != "no"; then
6439 # Didn't find any BSD compatible name lister, look for dumpbin.
6440 if test -n "$ac_tool_prefix"; then
6441 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6445 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6448 $as_echo_n "(cached) " >&6
6450 if test -n "$DUMPBIN"; then
6451 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 DUMPBIN=$ac_cv_prog_DUMPBIN
6471 if test -n "$DUMPBIN"; then
6472 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6473 $as_echo "$DUMPBIN" >&6; }
6475 { $as_echo "$as_me:$LINENO: result: no" >&5
6476 $as_echo "no" >&6; }
6480 test -n "$DUMPBIN" && break
6483 if test -z "$DUMPBIN"; then
6484 ac_ct_DUMPBIN=$DUMPBIN
6485 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6487 # Extract the first word of "$ac_prog", so it can be a program name with args.
6488 set dummy $ac_prog; ac_word=$2
6489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6492 $as_echo_n "(cached) " >&6
6494 if test -n "$ac_ct_DUMPBIN"; then
6495 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6505 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6515 if test -n "$ac_ct_DUMPBIN"; then
6516 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6517 $as_echo "$ac_ct_DUMPBIN" >&6; }
6519 { $as_echo "$as_me:$LINENO: result: no" >&5
6520 $as_echo "no" >&6; }
6524 test -n "$ac_ct_DUMPBIN" && break
6527 if test "x$ac_ct_DUMPBIN" = x; then
6530 case $cross_compiling:$ac_tool_warned in
6532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6536 DUMPBIN=$ac_ct_DUMPBIN
6541 if test "$DUMPBIN" != ":"; then
6545 test -z "$NM" && NM=nm
6552 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6554 if test "${lt_cv_nm_interface+set}" = set; then
6555 $as_echo_n "(cached) " >&6
6557 lt_cv_nm_interface="BSD nm"
6558 echo "int some_variable = 0;" > conftest.$ac_ext
6559 (eval echo "\"\$as_me:6559: $ac_compile\"" >&5)
6560 (eval "$ac_compile" 2>conftest.err)
6561 cat conftest.err >&5
6562 (eval echo "\"\$as_me:6562: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6564 cat conftest.err >&5
6565 (eval echo "\"\$as_me:6565: output\"" >&5)
6566 cat conftest.out >&5
6567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6568 lt_cv_nm_interface="MS dumpbin"
6572 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6573 $as_echo "$lt_cv_nm_interface" >&6; }
6575 # find the maximum length of command line arguments
6576 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6579 $as_echo_n "(cached) " >&6
6586 # On DJGPP, this test can blow up pretty badly due to problems in libc
6587 # (any single argument exceeding 2000 bytes causes a buffer overrun
6588 # during glob expansion). Even if it were fixed, the result of this
6589 # check would be larger than it should be.
6590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6594 # Under GNU Hurd, this test is not required because there is
6595 # no limit to the length of command line arguments.
6596 # Libtool will interpret -1 as no limit whatsoever
6597 lt_cv_sys_max_cmd_len=-1;
6600 cygwin* | mingw* | cegcc*)
6601 # On Win9x/ME, this test blows up -- it succeeds, but takes
6602 # about 5 minutes as the teststring grows exponentially.
6603 # Worse, since 9x/ME are not pre-emptively multitasking,
6604 # you end up with a "frozen" computer, even though with patience
6605 # the test eventually succeeds (with a max line length of 256k).
6606 # Instead, let's just punt: use the minimum linelength reported by
6607 # all of the supported platforms: 8192 (on NT/2K/XP).
6608 lt_cv_sys_max_cmd_len=8192;
6612 # On AmigaOS with pdksh, this test takes hours, literally.
6613 # So we just punt and use a minimum line length of 8192.
6614 lt_cv_sys_max_cmd_len=8192;
6617 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6618 # This has been around since 386BSD, at least. Likely further.
6619 if test -x /sbin/sysctl; then
6620 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6621 elif test -x /usr/sbin/sysctl; then
6622 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6624 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6626 # And add a safety zone
6627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6632 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6633 lt_cv_sys_max_cmd_len=196608
6637 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6638 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6639 # nice to cause kernel panics so lets avoid the loop below.
6640 # First set a reasonable default.
6641 lt_cv_sys_max_cmd_len=16384
6643 if test -x /sbin/sysconfig; then
6644 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6645 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6650 lt_cv_sys_max_cmd_len=102400
6652 sysv5* | sco5v6* | sysv4.2uw2*)
6653 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6654 if test -n "$kargmax"; then
6655 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6657 lt_cv_sys_max_cmd_len=32768
6661 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6662 if test -n "$lt_cv_sys_max_cmd_len"; then
6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6666 # Make teststring a little bigger before we do anything with it.
6667 # a 1K string should be a reasonable start.
6668 for i in 1 2 3 4 5 6 7 8 ; do
6669 teststring=$teststring$teststring
6671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6672 # If test is not a shell built-in, we'll probably end up computing a
6673 # maximum length that is only half of the actual maximum length, but
6675 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6676 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6677 test $i != 17 # 1/2 MB should be enough
6680 teststring=$teststring$teststring
6682 # Only check the string length outside the loop.
6683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6685 # Add a significant safety factor because C++ compilers can tack on
6686 # massive amounts of additional arguments before passing them to the
6687 # linker. It appears as though 1/2 is a usable value.
6688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6695 if test -n $lt_cv_sys_max_cmd_len ; then
6696 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6699 { $as_echo "$as_me:$LINENO: result: none" >&5
6700 $as_echo "none" >&6; }
6702 max_cmd_len=$lt_cv_sys_max_cmd_len
6713 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6714 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6715 # Try some XSI features
6718 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6720 && eval 'test $(( 1 + 1 )) -eq 2 \
6721 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6723 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6724 $as_echo "$xsi_shell" >&6; }
6727 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6728 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6730 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6732 && lt_shell_append=yes
6733 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6734 $as_echo "$lt_shell_append" >&6; }
6737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6747 # test EBCDIC or ASCII
6748 case `echo X|tr X '\101'` in
6749 A) # ASCII based system
6750 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6751 lt_SP2NL='tr \040 \012'
6752 lt_NL2SP='tr \015\012 \040\040'
6754 *) # EBCDIC based system
6755 lt_SP2NL='tr \100 \n'
6756 lt_NL2SP='tr \r\n \100\100'
6768 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6769 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6770 if test "${lt_cv_ld_reload_flag+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6773 lt_cv_ld_reload_flag='-r'
6775 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6776 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6777 reload_flag=$lt_cv_ld_reload_flag
6778 case $reload_flag in
6780 *) reload_flag=" $reload_flag" ;;
6782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6785 if test "$GCC" = yes; then
6786 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6804 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6807 $as_echo_n "(cached) " >&6
6809 if test -n "$OBJDUMP"; then
6810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 OBJDUMP=$ac_cv_prog_OBJDUMP
6830 if test -n "$OBJDUMP"; then
6831 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6832 $as_echo "$OBJDUMP" >&6; }
6834 { $as_echo "$as_me:$LINENO: result: no" >&5
6835 $as_echo "no" >&6; }
6840 if test -z "$ac_cv_prog_OBJDUMP"; then
6841 ac_ct_OBJDUMP=$OBJDUMP
6842 # Extract the first word of "objdump", so it can be a program name with args.
6843 set dummy objdump; ac_word=$2
6844 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6847 $as_echo_n "(cached) " >&6
6849 if test -n "$ac_ct_OBJDUMP"; then
6850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6860 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6870 if test -n "$ac_ct_OBJDUMP"; then
6871 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6872 $as_echo "$ac_ct_OBJDUMP" >&6; }
6874 { $as_echo "$as_me:$LINENO: result: no" >&5
6875 $as_echo "no" >&6; }
6878 if test "x$ac_ct_OBJDUMP" = x; then
6881 case $cross_compiling:$ac_tool_warned in
6883 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6885 ac_tool_warned=yes ;;
6887 OBJDUMP=$ac_ct_OBJDUMP
6890 OBJDUMP="$ac_cv_prog_OBJDUMP"
6893 test -z "$OBJDUMP" && OBJDUMP=objdump
6903 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6905 if test "${lt_cv_deplibs_check_method+set}" = set; then
6906 $as_echo_n "(cached) " >&6
6908 lt_cv_file_magic_cmd='$MAGIC_CMD'
6909 lt_cv_file_magic_test_file=
6910 lt_cv_deplibs_check_method='unknown'
6911 # Need to set the preceding variable on all platforms that support
6912 # interlibrary dependencies.
6913 # 'none' -- dependencies not supported.
6914 # `unknown' -- same as none, but documents that we really don't know.
6915 # 'pass_all' -- all dependencies passed with no checks.
6916 # 'test_compile' -- check by making test program.
6917 # 'file_magic [[regex]]' -- check by looking for files in library path
6918 # which responds to the $file_magic_cmd with a given extended regex.
6919 # If you have `file' or equivalent on your system and you're not sure
6920 # whether `pass_all' will *always* work, you probably want this one.
6924 lt_cv_deplibs_check_method=pass_all
6928 lt_cv_deplibs_check_method=pass_all
6932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6933 lt_cv_file_magic_cmd='/usr/bin/file -L'
6934 lt_cv_file_magic_test_file=/shlib/libc.so
6938 # func_win32_libid is a shell function defined in ltmain.sh
6939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6940 lt_cv_file_magic_cmd='func_win32_libid'
6944 # Base MSYS/MinGW do not provide the 'file' command needed by
6945 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6946 # unless we find 'file', for example because we are cross-compiling.
6947 if ( file / ) >/dev/null 2>&1; then
6948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6949 lt_cv_file_magic_cmd='func_win32_libid'
6951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6952 lt_cv_file_magic_cmd='$OBJDUMP -f'
6957 # use the weaker test based on 'objdump'. See mingw*.
6958 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6959 lt_cv_file_magic_cmd='$OBJDUMP -f'
6962 darwin* | rhapsody*)
6963 lt_cv_deplibs_check_method=pass_all
6966 freebsd* | dragonfly*)
6967 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6970 # Not sure whether the presence of OpenBSD here was a mistake.
6971 # Let's accept both of them until this is cleared up.
6972 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6973 lt_cv_file_magic_cmd=/usr/bin/file
6974 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6978 lt_cv_deplibs_check_method=pass_all
6983 lt_cv_deplibs_check_method=pass_all
6986 hpux10.20* | hpux11*)
6987 lt_cv_file_magic_cmd=/usr/bin/file
6990 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6991 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6994 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6995 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6999 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7005 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7006 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7009 irix5* | irix6* | nonstopux*)
7011 *-32|*"-32 ") libmagic=32-bit;;
7012 *-n32|*"-n32 ") libmagic=N32;;
7013 *-64|*"-64 ") libmagic=64-bit;;
7014 *) libmagic=never-match;;
7016 lt_cv_deplibs_check_method=pass_all
7019 # This must be Linux ELF.
7020 linux* | k*bsd*-gnu)
7021 lt_cv_deplibs_check_method=pass_all
7025 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7026 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7028 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7034 lt_cv_file_magic_cmd=/usr/bin/file
7035 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7039 lt_cv_deplibs_check_method=pass_all
7043 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7050 osf3* | osf4* | osf5*)
7051 lt_cv_deplibs_check_method=pass_all
7055 lt_cv_deplibs_check_method=pass_all
7059 lt_cv_deplibs_check_method=pass_all
7062 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7063 lt_cv_deplibs_check_method=pass_all
7067 case $host_vendor in
7069 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]'
7070 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7073 lt_cv_deplibs_check_method=pass_all
7076 lt_cv_file_magic_cmd='/bin/file'
7077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7080 lt_cv_file_magic_cmd='/bin/file'
7081 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7082 lt_cv_file_magic_test_file=/lib/libc.so
7085 lt_cv_deplibs_check_method=pass_all
7088 lt_cv_deplibs_check_method=pass_all
7094 lt_cv_deplibs_check_method=pass_all
7099 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7100 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7101 file_magic_cmd=$lt_cv_file_magic_cmd
7102 deplibs_check_method=$lt_cv_deplibs_check_method
7103 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7116 if test -n "$ac_tool_prefix"; then
7117 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7118 set dummy ${ac_tool_prefix}ar; ac_word=$2
7119 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if test "${ac_cv_prog_AR+set}" = set; then
7122 $as_echo_n "(cached) " >&6
7124 if test -n "$AR"; then
7125 ac_cv_prog_AR="$AR" # Let the user override the test.
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_prog_AR="${ac_tool_prefix}ar"
7135 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 if test -n "$AR"; then
7146 { $as_echo "$as_me:$LINENO: result: $AR" >&5
7147 $as_echo "$AR" >&6; }
7149 { $as_echo "$as_me:$LINENO: result: no" >&5
7150 $as_echo "no" >&6; }
7155 if test -z "$ac_cv_prog_AR"; then
7157 # Extract the first word of "ar", so it can be a program name with args.
7158 set dummy ar; ac_word=$2
7159 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7162 $as_echo_n "(cached) " >&6
7164 if test -n "$ac_ct_AR"; then
7165 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 test -z "$as_dir" && as_dir=.
7172 for ac_exec_ext in '' $ac_executable_extensions; do
7173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7174 ac_cv_prog_ac_ct_AR="ar"
7175 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7185 if test -n "$ac_ct_AR"; then
7186 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7187 $as_echo "$ac_ct_AR" >&6; }
7189 { $as_echo "$as_me:$LINENO: result: no" >&5
7190 $as_echo "no" >&6; }
7193 if test "x$ac_ct_AR" = x; then
7196 case $cross_compiling:$ac_tool_warned in
7198 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7200 ac_tool_warned=yes ;;
7208 test -z "$AR" && AR=ar
7209 test -z "$AR_FLAGS" && AR_FLAGS=cru
7221 if test -n "$ac_tool_prefix"; then
7222 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7223 set dummy ${ac_tool_prefix}strip; ac_word=$2
7224 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_STRIP+set}" = set; then
7227 $as_echo_n "(cached) " >&6
7229 if test -n "$STRIP"; then
7230 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 STRIP=$ac_cv_prog_STRIP
7250 if test -n "$STRIP"; then
7251 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
7252 $as_echo "$STRIP" >&6; }
7254 { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7260 if test -z "$ac_cv_prog_STRIP"; then
7262 # Extract the first word of "strip", so it can be a program name with args.
7263 set dummy strip; ac_word=$2
7264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$ac_ct_STRIP"; then
7270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_ac_ct_STRIP="strip"
7280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7290 if test -n "$ac_ct_STRIP"; then
7291 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7292 $as_echo "$ac_ct_STRIP" >&6; }
7294 { $as_echo "$as_me:$LINENO: result: no" >&5
7295 $as_echo "no" >&6; }
7298 if test "x$ac_ct_STRIP" = x; then
7301 case $cross_compiling:$ac_tool_warned in
7303 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7305 ac_tool_warned=yes ;;
7310 STRIP="$ac_cv_prog_STRIP"
7313 test -z "$STRIP" && STRIP=:
7320 if test -n "$ac_tool_prefix"; then
7321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7322 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7323 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if test "${ac_cv_prog_RANLIB+set}" = set; then
7326 $as_echo_n "(cached) " >&6
7328 if test -n "$RANLIB"; then
7329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7339 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 RANLIB=$ac_cv_prog_RANLIB
7349 if test -n "$RANLIB"; then
7350 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7351 $as_echo "$RANLIB" >&6; }
7353 { $as_echo "$as_me:$LINENO: result: no" >&5
7354 $as_echo "no" >&6; }
7359 if test -z "$ac_cv_prog_RANLIB"; then
7360 ac_ct_RANLIB=$RANLIB
7361 # Extract the first word of "ranlib", so it can be a program name with args.
7362 set dummy ranlib; ac_word=$2
7363 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7366 $as_echo_n "(cached) " >&6
7368 if test -n "$ac_ct_RANLIB"; then
7369 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_ac_ct_RANLIB="ranlib"
7379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7388 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7389 if test -n "$ac_ct_RANLIB"; then
7390 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7391 $as_echo "$ac_ct_RANLIB" >&6; }
7393 { $as_echo "$as_me:$LINENO: result: no" >&5
7394 $as_echo "no" >&6; }
7397 if test "x$ac_ct_RANLIB" = x; then
7400 case $cross_compiling:$ac_tool_warned in
7402 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7404 ac_tool_warned=yes ;;
7406 RANLIB=$ac_ct_RANLIB
7409 RANLIB="$ac_cv_prog_RANLIB"
7412 test -z "$RANLIB" && RANLIB=:
7419 # Determine commands to create old-style static archives.
7420 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7421 old_postinstall_cmds='chmod 644 $oldlib'
7422 old_postuninstall_cmds=
7424 if test -n "$RANLIB"; then
7427 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7430 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7433 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7469 # If no C compiler was specified, use CC.
7472 # If no C compiler flags were specified, use CFLAGS.
7473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475 # Allow CC to be a program name with arguments.
7479 # Check for command to grab the raw symbol name followed by C symbol from nm.
7480 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7481 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7482 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7483 $as_echo_n "(cached) " >&6
7486 # These are sane defaults that work on at least a few old systems.
7487 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7489 # Character class describing NM global symbol codes.
7490 symcode='[BCDEGRST]'
7492 # Regexp to match symbols that can be accessed directly from C.
7493 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7495 # Define system-specific variables.
7500 cygwin* | mingw* | pw32* | cegcc*)
7501 symcode='[ABCDGISTW]'
7504 if test "$host_cpu" = ia64; then
7505 symcode='[ABCDEGRST]'
7509 symcode='[BCDEGRST]'
7512 symcode='[BCDEGQRST]'
7523 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7531 # If we're using GNU nm, then use its standard symbol codes.
7532 case `$NM -V 2>&1` in
7533 *GNU* | *'with BFD'*)
7534 symcode='[ABCDGIRSTW]' ;;
7537 # Transform an extracted symbol line into a proper C declaration.
7538 # Some systems (esp. on ia64) link data and code symbols differently,
7539 # so use this general approach.
7540 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7542 # Transform an extracted symbol line into symbol name and symbol address
7543 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7546 # Handle CRLF in mingw tool chain
7550 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7554 # Try without a prefix underscore, then with it.
7555 for ac_symprfx in "" "_"; do
7557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7558 symxfrm="\\1 $ac_symprfx\\2 \\2"
7560 # Write the raw and C identifiers.
7561 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7562 # Fake it for dumpbin and say T for any non-static function
7563 # and D for any global variable.
7564 # Also find C++ and __fastcall symbols from MSVC++,
7565 # which start with @ or ?.
7566 lt_cv_sys_global_symbol_pipe="$AWK '"\
7567 " {last_section=section; section=\$ 3};"\
7568 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7569 " \$ 0!~/External *\|/{next};"\
7570 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7571 " {if(hide[section]) next};"\
7572 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7573 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7574 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7575 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7576 " ' prfx=^$ac_symprfx"
7578 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7581 # Check to see that the pipe works correctly.
7585 cat > conftest.$ac_ext <<_LT_EOF
7590 void nm_test_func(void);
7591 void nm_test_func(void){}
7595 int main(){nm_test_var='a';nm_test_func();return(0);}
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); }; then
7603 # Now try to grab the symbols.
7605 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7606 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } && test -s "$nlist"; then
7610 # Try sorting and uniquifying the output.
7611 if sort "$nlist" | uniq > "$nlist"T; then
7612 mv -f "$nlist"T "$nlist"
7617 # Make sure that we snagged all the symbols we need.
7618 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7619 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7620 cat <<_LT_EOF > conftest.$ac_ext
7626 # Now generate the symbol file.
7627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7629 cat <<_LT_EOF >> conftest.$ac_ext
7631 /* The mapping between symbol names and symbols. */
7636 lt__PROGRAM__LTX_preloaded_symbols[] =
7638 { "@PROGRAM@", (void *) 0 },
7640 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7641 cat <<\_LT_EOF >> conftest.$ac_ext
7645 /* This works around a problem in FreeBSD linker */
7646 #ifdef FREEBSD_WORKAROUND
7647 static const void *lt_preloaded_setup() {
7648 return lt__PROGRAM__LTX_preloaded_symbols;
7656 # Now try linking the two files.
7657 mv conftest.$ac_objext conftstm.$ac_objext
7658 lt_save_LIBS="$LIBS"
7659 lt_save_CFLAGS="$CFLAGS"
7660 LIBS="conftstm.$ac_objext"
7661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7669 LIBS="$lt_save_LIBS"
7670 CFLAGS="$lt_save_CFLAGS"
7672 echo "cannot find nm_test_func in $nlist" >&5
7675 echo "cannot find nm_test_var in $nlist" >&5
7678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7681 echo "$progname: failed program was:" >&5
7682 cat conftest.$ac_ext >&5
7684 rm -rf conftest* conftst*
7686 # Do not use the global_symbol_pipe unless it works.
7687 if test "$pipe_works" = yes; then
7690 lt_cv_sys_global_symbol_pipe=
7696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7697 lt_cv_sys_global_symbol_to_cdecl=
7699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7700 { $as_echo "$as_me:$LINENO: result: failed" >&5
7701 $as_echo "failed" >&6; }
7703 { $as_echo "$as_me:$LINENO: result: ok" >&5
7704 $as_echo "ok" >&6; }
7728 # Check whether --enable-libtool-lock was given.
7729 if test "${enable_libtool_lock+set}" = set; then
7730 enableval=$enable_libtool_lock;
7733 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7735 # Some flags need to be propagated to the compiler or linker for good
7739 # Find out which ABI we are using.
7740 echo 'int i;' > conftest.$ac_ext
7741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7742 (eval $ac_compile) 2>&5
7744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; then
7746 case `/usr/bin/file conftest.$ac_objext` in
7758 # Find out which ABI we are using.
7759 echo '#line 7759 "configure"' > conftest.$ac_ext
7760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7761 (eval $ac_compile) 2>&5
7763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); }; then
7765 if test "$lt_cv_prog_gnu_ld" = yes; then
7766 case `/usr/bin/file conftest.$ac_objext` in
7768 LD="${LD-ld} -melf32bsmip"
7771 LD="${LD-ld} -melf32bmipn32"
7774 LD="${LD-ld} -melf64bmip"
7778 case `/usr/bin/file conftest.$ac_objext` in
7794 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7795 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7796 # Find out which ABI we are using.
7797 echo 'int i;' > conftest.$ac_ext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>&5
7801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; then
7803 case `/usr/bin/file conftest.o` in
7806 x86_64-*kfreebsd*-gnu)
7807 LD="${LD-ld} -m elf_i386_fbsd"
7810 LD="${LD-ld} -m elf_i386"
7812 ppc64-*linux*|powerpc64-*linux*)
7813 LD="${LD-ld} -m elf32ppclinux"
7816 LD="${LD-ld} -m elf_s390"
7819 LD="${LD-ld} -m elf32_sparc"
7825 x86_64-*kfreebsd*-gnu)
7826 LD="${LD-ld} -m elf_x86_64_fbsd"
7829 LD="${LD-ld} -m elf_x86_64"
7831 ppc*-*linux*|powerpc*-*linux*)
7832 LD="${LD-ld} -m elf64ppc"
7834 s390*-*linux*|s390*-*tpf*)
7835 LD="${LD-ld} -m elf64_s390"
7838 LD="${LD-ld} -m elf64_sparc"
7848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7849 SAVE_CFLAGS="$CFLAGS"
7850 CFLAGS="$CFLAGS -belf"
7851 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7852 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7853 if test "${lt_cv_cc_needs_belf+set}" = set; then
7854 $as_echo_n "(cached) " >&6
7857 ac_cpp='$CPP $CPPFLAGS'
7858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7862 cat >conftest.$ac_ext <<_ACEOF
7865 cat confdefs.h >>conftest.$ac_ext
7866 cat >>conftest.$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7877 rm -f conftest.$ac_objext conftest$ac_exeext
7878 if { (ac_try="$ac_link"
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7884 $as_echo "$ac_try_echo") >&5
7885 (eval "$ac_link") 2>conftest.er1
7887 grep -v '^ *+' conftest.er1 >conftest.err
7889 cat conftest.err >&5
7890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } && {
7892 test -z "$ac_c_werror_flag" ||
7893 test ! -s conftest.err
7894 } && test -s conftest$ac_exeext && {
7895 test "$cross_compiling" = yes ||
7896 $as_test_x conftest$ac_exeext
7898 lt_cv_cc_needs_belf=yes
7900 $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 lt_cv_cc_needs_belf=no
7906 rm -rf conftest.dSYM
7907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7908 conftest$ac_exeext conftest.$ac_ext
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7917 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7920 CFLAGS="$SAVE_CFLAGS"
7924 # Find out which ABI we are using.
7925 echo 'int i;' > conftest.$ac_ext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>&5
7929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; then
7931 case `/usr/bin/file conftest.o` in
7933 case $lt_cv_prog_gnu_ld in
7934 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7936 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7948 need_locks="$enable_libtool_lock"
7952 rhapsody* | darwin*)
7953 if test -n "$ac_tool_prefix"; then
7954 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7955 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7959 $as_echo_n "(cached) " >&6
7961 if test -n "$DSYMUTIL"; then
7962 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7982 if test -n "$DSYMUTIL"; then
7983 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7984 $as_echo "$DSYMUTIL" >&6; }
7986 { $as_echo "$as_me:$LINENO: result: no" >&5
7987 $as_echo "no" >&6; }
7992 if test -z "$ac_cv_prog_DSYMUTIL"; then
7993 ac_ct_DSYMUTIL=$DSYMUTIL
7994 # Extract the first word of "dsymutil", so it can be a program name with args.
7995 set dummy dsymutil; ac_word=$2
7996 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7997 $as_echo_n "checking for $ac_word... " >&6; }
7998 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7999 $as_echo_n "(cached) " >&6
8001 if test -n "$ac_ct_DSYMUTIL"; then
8002 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8011 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8021 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8022 if test -n "$ac_ct_DSYMUTIL"; then
8023 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
8024 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8026 { $as_echo "$as_me:$LINENO: result: no" >&5
8027 $as_echo "no" >&6; }
8030 if test "x$ac_ct_DSYMUTIL" = x; then
8033 case $cross_compiling:$ac_tool_warned in
8035 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8037 ac_tool_warned=yes ;;
8039 DSYMUTIL=$ac_ct_DSYMUTIL
8042 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8045 if test -n "$ac_tool_prefix"; then
8046 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8047 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8048 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 $as_echo_n "checking for $ac_word... " >&6; }
8050 if test "${ac_cv_prog_NMEDIT+set}" = set; then
8051 $as_echo_n "(cached) " >&6
8053 if test -n "$NMEDIT"; then
8054 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8064 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 NMEDIT=$ac_cv_prog_NMEDIT
8074 if test -n "$NMEDIT"; then
8075 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
8076 $as_echo "$NMEDIT" >&6; }
8078 { $as_echo "$as_me:$LINENO: result: no" >&5
8079 $as_echo "no" >&6; }
8084 if test -z "$ac_cv_prog_NMEDIT"; then
8085 ac_ct_NMEDIT=$NMEDIT
8086 # Extract the first word of "nmedit", so it can be a program name with args.
8087 set dummy nmedit; ac_word=$2
8088 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
8091 $as_echo_n "(cached) " >&6
8093 if test -n "$ac_ct_NMEDIT"; then
8094 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8113 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8114 if test -n "$ac_ct_NMEDIT"; then
8115 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
8116 $as_echo "$ac_ct_NMEDIT" >&6; }
8118 { $as_echo "$as_me:$LINENO: result: no" >&5
8119 $as_echo "no" >&6; }
8122 if test "x$ac_ct_NMEDIT" = x; then
8125 case $cross_compiling:$ac_tool_warned in
8127 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8129 ac_tool_warned=yes ;;
8131 NMEDIT=$ac_ct_NMEDIT
8134 NMEDIT="$ac_cv_prog_NMEDIT"
8137 if test -n "$ac_tool_prefix"; then
8138 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8139 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8140 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8141 $as_echo_n "checking for $ac_word... " >&6; }
8142 if test "${ac_cv_prog_LIPO+set}" = set; then
8143 $as_echo_n "(cached) " >&6
8145 if test -n "$LIPO"; then
8146 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8156 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165 LIPO=$ac_cv_prog_LIPO
8166 if test -n "$LIPO"; then
8167 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
8168 $as_echo "$LIPO" >&6; }
8170 { $as_echo "$as_me:$LINENO: result: no" >&5
8171 $as_echo "no" >&6; }
8176 if test -z "$ac_cv_prog_LIPO"; then
8178 # Extract the first word of "lipo", so it can be a program name with args.
8179 set dummy lipo; ac_word=$2
8180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8181 $as_echo_n "checking for $ac_word... " >&6; }
8182 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
8183 $as_echo_n "(cached) " >&6
8185 if test -n "$ac_ct_LIPO"; then
8186 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_prog_ac_ct_LIPO="lipo"
8196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8206 if test -n "$ac_ct_LIPO"; then
8207 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
8208 $as_echo "$ac_ct_LIPO" >&6; }
8210 { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8214 if test "x$ac_ct_LIPO" = x; then
8217 case $cross_compiling:$ac_tool_warned in
8219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8221 ac_tool_warned=yes ;;
8226 LIPO="$ac_cv_prog_LIPO"
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8231 set dummy ${ac_tool_prefix}otool; ac_word=$2
8232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if test "${ac_cv_prog_OTOOL+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8237 if test -n "$OTOOL"; then
8238 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir=.
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8247 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 OTOOL=$ac_cv_prog_OTOOL
8258 if test -n "$OTOOL"; then
8259 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8260 $as_echo "$OTOOL" >&6; }
8262 { $as_echo "$as_me:$LINENO: result: no" >&5
8263 $as_echo "no" >&6; }
8268 if test -z "$ac_cv_prog_OTOOL"; then
8270 # Extract the first word of "otool", so it can be a program name with args.
8271 set dummy otool; ac_word=$2
8272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$ac_ct_OTOOL"; then
8278 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir=.
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8287 ac_cv_prog_ac_ct_OTOOL="otool"
8288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8298 if test -n "$ac_ct_OTOOL"; then
8299 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8300 $as_echo "$ac_ct_OTOOL" >&6; }
8302 { $as_echo "$as_me:$LINENO: result: no" >&5
8303 $as_echo "no" >&6; }
8306 if test "x$ac_ct_OTOOL" = x; then
8309 case $cross_compiling:$ac_tool_warned in
8311 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned=yes ;;
8318 OTOOL="$ac_cv_prog_OTOOL"
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8323 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$OTOOL64"; then
8330 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir=.
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8339 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8340 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 OTOOL64=$ac_cv_prog_OTOOL64
8350 if test -n "$OTOOL64"; then
8351 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8352 $as_echo "$OTOOL64" >&6; }
8354 { $as_echo "$as_me:$LINENO: result: no" >&5
8355 $as_echo "no" >&6; }
8360 if test -z "$ac_cv_prog_OTOOL64"; then
8361 ac_ct_OTOOL64=$OTOOL64
8362 # Extract the first word of "otool64", so it can be a program name with args.
8363 set dummy otool64; ac_word=$2
8364 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8367 $as_echo_n "(cached) " >&6
8369 if test -n "$ac_ct_OTOOL64"; then
8370 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
8378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8379 ac_cv_prog_ac_ct_OTOOL64="otool64"
8380 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8390 if test -n "$ac_ct_OTOOL64"; then
8391 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8392 $as_echo "$ac_ct_OTOOL64" >&6; }
8394 { $as_echo "$as_me:$LINENO: result: no" >&5
8395 $as_echo "no" >&6; }
8398 if test "x$ac_ct_OTOOL64" = x; then
8401 case $cross_compiling:$ac_tool_warned in
8403 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned=yes ;;
8407 OTOOL64=$ac_ct_OTOOL64
8410 OTOOL64="$ac_cv_prog_OTOOL64"
8439 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8440 $as_echo_n "checking for -single_module linker flag... " >&6; }
8441 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8442 $as_echo_n "(cached) " >&6
8444 lt_cv_apple_cc_single_mod=no
8445 if test -z "${LT_MULTI_MODULE}"; then
8446 # By default we will add the -single_module flag. You can override
8447 # by either setting the environment variable LT_MULTI_MODULE
8448 # non-empty at configure time, or by adding -multi_module to the
8450 rm -rf libconftest.dylib*
8451 echo "int foo(void){return 1;}" > conftest.c
8452 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8453 -dynamiclib -Wl,-single_module conftest.c" >&5
8454 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8455 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8457 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8458 lt_cv_apple_cc_single_mod=yes
8460 cat conftest.err >&5
8462 rm -rf libconftest.dylib*
8466 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8467 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8468 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8469 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8470 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8471 $as_echo_n "(cached) " >&6
8473 lt_cv_ld_exported_symbols_list=no
8474 save_LDFLAGS=$LDFLAGS
8475 echo "_main" > conftest.sym
8476 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8477 cat >conftest.$ac_ext <<_ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493 if { (ac_try="$ac_link"
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8499 $as_echo "$ac_try_echo") >&5
8500 (eval "$ac_link") 2>conftest.er1
8502 grep -v '^ *+' conftest.er1 >conftest.err
8504 cat conftest.err >&5
8505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } && {
8507 test -z "$ac_c_werror_flag" ||
8508 test ! -s conftest.err
8509 } && test -s conftest$ac_exeext && {
8510 test "$cross_compiling" = yes ||
8511 $as_test_x conftest$ac_exeext
8513 lt_cv_ld_exported_symbols_list=yes
8515 $as_echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8518 lt_cv_ld_exported_symbols_list=no
8521 rm -rf conftest.dSYM
8522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8523 conftest$ac_exeext conftest.$ac_ext
8524 LDFLAGS="$save_LDFLAGS"
8527 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8528 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8530 rhapsody* | darwin1.[012])
8531 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8533 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8534 darwin*) # darwin 5.x on
8535 # if running on 10.5 or later, the deployment target defaults
8536 # to the OS version, if on x86, and 10.4, the deployment
8537 # target defaults to 10.4. Don't you love it?
8538 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8539 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8542 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8544 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8548 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8549 _lt_dar_single_mod='$single_module'
8551 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8552 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8554 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8556 if test "$DSYMUTIL" != ":"; then
8557 _lt_dsymutil='~$DSYMUTIL $lib || :'
8565 for ac_header in dlfcn.h
8567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8569 $as_echo_n "checking for $ac_header... " >&6; }
8570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8571 $as_echo_n "(cached) " >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8579 $ac_includes_default
8581 #include <$ac_header>
8583 rm -f conftest.$ac_objext
8584 if { (ac_try="$ac_compile"
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8590 $as_echo "$ac_try_echo") >&5
8591 (eval "$ac_compile") 2>conftest.er1
8593 grep -v '^ *+' conftest.er1 >conftest.err
8595 cat conftest.err >&5
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); } && {
8598 test -z "$ac_c_werror_flag" ||
8599 test ! -s conftest.err
8600 } && test -s conftest.$ac_objext; then
8601 eval "$as_ac_Header=yes"
8603 $as_echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8606 eval "$as_ac_Header=no"
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 ac_res=`eval 'as_val=${'$as_ac_Header'}
8612 $as_echo "$as_val"'`
8613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8614 $as_echo "$ac_res" >&6; }
8615 as_val=`eval 'as_val=${'$as_ac_Header'}
8616 $as_echo "$as_val"'`
8617 if test "x$as_val" = x""yes; then
8618 cat >>confdefs.h <<_ACEOF
8619 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8641 # Check whether --with-pic was given.
8642 if test "${with_pic+set}" = set; then
8643 withval=$with_pic; pic_mode="$withval"
8649 test -z "$pic_mode" && pic_mode=default
8657 # Check whether --enable-fast-install was given.
8658 if test "${enable_fast_install+set}" = set; then
8659 enableval=$enable_fast_install; p=${PACKAGE-default}
8661 yes) enable_fast_install=yes ;;
8662 no) enable_fast_install=no ;;
8664 enable_fast_install=no
8665 # Look at the argument we got. We use all the common list separators.
8666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8667 for pkg in $enableval; do
8669 if test "X$pkg" = "X$p"; then
8670 enable_fast_install=yes
8677 enable_fast_install=yes
8690 # This can be used to rebuild libtool when needed
8691 LIBTOOL_DEPS="$ltmain"
8693 # Always use our own libtool.
8694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8720 test -z "$LN_S" && LN_S="ln -s"
8735 if test -n "${ZSH_VERSION+set}" ; then
8736 setopt NO_GLOB_SUBST
8739 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8740 $as_echo_n "checking for objdir... " >&6; }
8741 if test "${lt_cv_objdir+set}" = set; then
8742 $as_echo_n "(cached) " >&6
8744 rm -f .libs 2>/dev/null
8745 mkdir .libs 2>/dev/null
8746 if test -d .libs; then
8749 # MS-DOS does not allow filenames that begin with a dot.
8752 rmdir .libs 2>/dev/null
8754 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8755 $as_echo "$lt_cv_objdir" >&6; }
8756 objdir=$lt_cv_objdir
8762 cat >>confdefs.h <<_ACEOF
8763 #define LT_OBJDIR "$lt_cv_objdir/"
8784 # AIX sometimes has problems with the GCC collect2 program. For some
8785 # reason, if we set the COLLECT_NAMES environment variable, the problems
8786 # vanish in a puff of smoke.
8787 if test "X${COLLECT_NAMES+set}" != Xset; then
8789 export COLLECT_NAMES
8794 # Sed substitution that helps us do robust quoting. It backslashifies
8795 # metacharacters that are still active within double-quoted strings.
8796 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8798 # Same as above, but do not quote variable references.
8799 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8801 # Sed substitution to delay expansion of an escaped shell variable in a
8802 # double_quote_subst'ed string.
8803 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8805 # Sed substitution to delay expansion of an escaped single quote.
8806 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8808 # Sed substitution to avoid accidental globbing in evaled expressions
8809 no_glob_subst='s/\*/\\\*/g'
8813 can_build_shared=yes
8815 # All known linkers require a `.a' archive for static linking (except MSVC,
8816 # which needs '.lib').
8819 with_gnu_ld="$lt_cv_prog_gnu_ld"
8822 old_CFLAGS="$CFLAGS"
8824 # Set sane defaults for various variables
8825 test -z "$CC" && CC=cc
8826 test -z "$LTCC" && LTCC=$CC
8827 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8828 test -z "$LD" && LD=ld
8829 test -z "$ac_objext" && ac_objext=o
8831 for cc_temp in $compiler""; do
8833 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8834 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8839 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8842 # Only perform the check for file, if the check method requires it
8843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8844 case $deplibs_check_method in
8846 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8847 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8848 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8850 $as_echo_n "(cached) " >&6
8854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8857 lt_save_MAGIC_CMD="$MAGIC_CMD"
8858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8860 for ac_dir in $ac_dummy; do
8862 test -z "$ac_dir" && ac_dir=.
8863 if test -f $ac_dir/${ac_tool_prefix}file; then
8864 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8865 if test -n "$file_magic_test_file"; then
8866 case $deplibs_check_method in
8868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8871 $EGREP "$file_magic_regex" > /dev/null; then
8876 *** Warning: the command libtool uses to detect shared libraries,
8877 *** $file_magic_cmd, produces output that libtool cannot recognize.
8878 *** The result is that libtool may fail to recognize shared libraries
8879 *** as such. This will affect the creation of libtool libraries that
8880 *** depend on shared libraries, but programs linked with such libtool
8881 *** libraries will work regardless of this problem. Nevertheless, you
8882 *** may want to report the problem to your system manager and/or to
8883 *** bug-libtool@gnu.org
8893 MAGIC_CMD="$lt_save_MAGIC_CMD"
8898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8899 if test -n "$MAGIC_CMD"; then
8900 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8901 $as_echo "$MAGIC_CMD" >&6; }
8903 { $as_echo "$as_me:$LINENO: result: no" >&5
8904 $as_echo "no" >&6; }
8911 if test -z "$lt_cv_path_MAGIC_CMD"; then
8912 if test -n "$ac_tool_prefix"; then
8913 { $as_echo "$as_me:$LINENO: checking for file" >&5
8914 $as_echo_n "checking for file... " >&6; }
8915 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8916 $as_echo_n "(cached) " >&6
8920 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8923 lt_save_MAGIC_CMD="$MAGIC_CMD"
8924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8925 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8926 for ac_dir in $ac_dummy; do
8928 test -z "$ac_dir" && ac_dir=.
8929 if test -f $ac_dir/file; then
8930 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8931 if test -n "$file_magic_test_file"; then
8932 case $deplibs_check_method in
8934 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8935 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8936 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8937 $EGREP "$file_magic_regex" > /dev/null; then
8942 *** Warning: the command libtool uses to detect shared libraries,
8943 *** $file_magic_cmd, produces output that libtool cannot recognize.
8944 *** The result is that libtool may fail to recognize shared libraries
8945 *** as such. This will affect the creation of libtool libraries that
8946 *** depend on shared libraries, but programs linked with such libtool
8947 *** libraries will work regardless of this problem. Nevertheless, you
8948 *** may want to report the problem to your system manager and/or to
8949 *** bug-libtool@gnu.org
8959 MAGIC_CMD="$lt_save_MAGIC_CMD"
8964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965 if test -n "$MAGIC_CMD"; then
8966 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8967 $as_echo "$MAGIC_CMD" >&6; }
8969 { $as_echo "$as_me:$LINENO: result: no" >&5
8970 $as_echo "no" >&6; }
8983 # Use C for the default configuration in the libtool script
8987 ac_cpp='$CPP $CPPFLAGS'
8988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8993 # Source file extension for C test sources.
8996 # Object file extension for compiled C test sources.
9000 # Code to be used in simple compile tests
9001 lt_simple_compile_test_code="int some_variable = 0;"
9003 # Code to be used in simple link tests
9004 lt_simple_link_test_code='int main(){return(0);}'
9012 # If no C compiler was specified, use CC.
9015 # If no C compiler flags were specified, use CFLAGS.
9016 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9018 # Allow CC to be a program name with arguments.
9021 # Save the default compiler, since it gets overwritten when the other
9022 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9023 compiler_DEFAULT=$CC
9025 # save warnings/boilerplate of simple test code
9026 ac_outfile=conftest.$ac_objext
9027 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9028 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9029 _lt_compiler_boilerplate=`cat conftest.err`
9032 ac_outfile=conftest.$ac_objext
9033 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9034 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9035 _lt_linker_boilerplate=`cat conftest.err`
9040 ## There is no encapsulation within the following macros, do not change
9041 ## the running order or otherwise move them around unless you know exactly
9042 ## what you are doing...
9043 if test -n "$compiler"; then
9045 lt_prog_compiler_no_builtin_flag=
9047 if test "$GCC" = yes; then
9048 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9050 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9051 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9052 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9053 $as_echo_n "(cached) " >&6
9055 lt_cv_prog_compiler_rtti_exceptions=no
9056 ac_outfile=conftest.$ac_objext
9057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9058 lt_compiler_flag="-fno-rtti -fno-exceptions"
9059 # Insert the option either (1) after the last *FLAGS variable, or
9060 # (2) before a word containing "conftest.", or (3) at the end.
9061 # Note that $ac_compile itself does not contain backslashes and begins
9062 # with a dollar sign (not a hyphen), so the echo should work correctly.
9063 # The option is referenced via a variable to avoid confusing sed.
9064 lt_compile=`echo "$ac_compile" | $SED \
9065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9067 -e 's:$: $lt_compiler_flag:'`
9068 (eval echo "\"\$as_me:9068: $lt_compile\"" >&5)
9069 (eval "$lt_compile" 2>conftest.err)
9071 cat conftest.err >&5
9072 echo "$as_me:9072: \$? = $ac_status" >&5
9073 if (exit $ac_status) && test -s "$ac_outfile"; then
9074 # The compiler can only warn and ignore the option if not recognized
9075 # So say no if there are warnings other than the usual output.
9076 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9079 lt_cv_prog_compiler_rtti_exceptions=yes
9085 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9086 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9088 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9089 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9101 lt_prog_compiler_wl=
9102 lt_prog_compiler_pic=
9103 lt_prog_compiler_static=
9105 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9106 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9108 if test "$GCC" = yes; then
9109 lt_prog_compiler_wl='-Wl,'
9110 lt_prog_compiler_static='-static'
9114 # All AIX code is PIC.
9115 if test "$host_cpu" = ia64; then
9116 # AIX 5 now supports IA64 processor
9117 lt_prog_compiler_static='-Bstatic'
9124 # see comment about AmigaOS4 .so support
9125 lt_prog_compiler_pic='-fPIC'
9128 # FIXME: we need at least 68020 code to build shared libraries, but
9129 # adding the `-m68020' flag to GCC prevents building anything better,
9131 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9136 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9137 # PIC is the default for these OSes.
9140 mingw* | cygwin* | pw32* | os2* | cegcc*)
9141 # This hack is so that the source file can tell whether it is being
9142 # built for inclusion in a dll (and should export symbols for example).
9143 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9144 # (--disable-auto-import) libraries
9145 lt_prog_compiler_pic='-DDLL_EXPORT'
9148 darwin* | rhapsody*)
9149 # PIC is the default on this platform
9150 # Common symbols not allowed in MH_DYLIB files
9151 lt_prog_compiler_pic='-fno-common'
9155 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9156 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9157 # sets the default TLS model and affects inlining.
9163 lt_prog_compiler_pic='-fPIC'
9169 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9170 # Instead, we relocate shared libraries at runtime.
9174 # Just because we use GCC doesn't mean we suddenly get shared libraries
9175 # on systems that don't support them.
9176 lt_prog_compiler_can_build_shared=no
9181 # QNX uses GNU C++, but need to define -shared option too, otherwise
9183 lt_prog_compiler_pic='-fPIC -shared'
9187 if test -d /usr/nec; then
9188 lt_prog_compiler_pic=-Kconform_pic
9193 lt_prog_compiler_pic='-fPIC'
9197 # PORTME Check for flag to pass linker flags through the system compiler.
9200 lt_prog_compiler_wl='-Wl,'
9201 if test "$host_cpu" = ia64; then
9202 # AIX 5 now supports IA64 processor
9203 lt_prog_compiler_static='-Bstatic'
9205 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9209 mingw* | cygwin* | pw32* | os2* | cegcc*)
9210 # This hack is so that the source file can tell whether it is being
9211 # built for inclusion in a dll (and should export symbols for example).
9212 lt_prog_compiler_pic='-DDLL_EXPORT'
9215 hpux9* | hpux10* | hpux11*)
9216 lt_prog_compiler_wl='-Wl,'
9217 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9224 lt_prog_compiler_pic='+Z'
9227 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9228 lt_prog_compiler_static='${wl}-a ${wl}archive'
9231 irix5* | irix6* | nonstopux*)
9232 lt_prog_compiler_wl='-Wl,'
9233 # PIC (with -KPIC) is the default.
9234 lt_prog_compiler_static='-non_shared'
9237 linux* | k*bsd*-gnu)
9238 case $cc_basename in
9239 # old Intel for x86_64 which still supported -KPIC.
9241 lt_prog_compiler_wl='-Wl,'
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-static'
9245 # icc used to be incompatible with GCC.
9246 # ICC 10 doesn't accept -KPIC any more.
9248 lt_prog_compiler_wl='-Wl,'
9249 lt_prog_compiler_pic='-fPIC'
9250 lt_prog_compiler_static='-static'
9252 # Lahey Fortran 8.1.
9254 lt_prog_compiler_wl='-Wl,'
9255 lt_prog_compiler_pic='--shared'
9256 lt_prog_compiler_static='--static'
9258 pgcc* | pgf77* | pgf90* | pgf95*)
9259 # Portland Group compilers (*not* the Pentium gcc compiler,
9260 # which looks to be a dead project)
9261 lt_prog_compiler_wl='-Wl,'
9262 lt_prog_compiler_pic='-fpic'
9263 lt_prog_compiler_static='-Bstatic'
9266 lt_prog_compiler_wl='-Wl,'
9267 # All Alpha code is PIC.
9268 lt_prog_compiler_static='-non_shared'
9271 # IBM XL C 8.0/Fortran 10.1 on PPC
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_pic='-qpic'
9274 lt_prog_compiler_static='-qstaticlink'
9277 case `$CC -V 2>&1 | sed 5q` in
9280 lt_prog_compiler_pic='-KPIC'
9281 lt_prog_compiler_static='-Bstatic'
9282 lt_prog_compiler_wl='-Wl,'
9285 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9286 lt_prog_compiler_pic='-KPIC'
9287 lt_prog_compiler_static='-Bstatic'
9288 lt_prog_compiler_wl=''
9296 lt_prog_compiler_pic='-KPIC'
9297 lt_prog_compiler_static='-Bstatic'
9301 # QNX uses GNU C++, but need to define -shared option too, otherwise
9303 lt_prog_compiler_pic='-fPIC -shared'
9306 osf3* | osf4* | osf5*)
9307 lt_prog_compiler_wl='-Wl,'
9308 # All OSF/1 code is PIC.
9309 lt_prog_compiler_static='-non_shared'
9313 lt_prog_compiler_static='-non_shared'
9317 lt_prog_compiler_pic='-KPIC'
9318 lt_prog_compiler_static='-Bstatic'
9319 case $cc_basename in
9321 lt_prog_compiler_wl='-Qoption ld ';;
9323 lt_prog_compiler_wl='-Wl,';;
9328 lt_prog_compiler_wl='-Qoption ld '
9329 lt_prog_compiler_pic='-PIC'
9330 lt_prog_compiler_static='-Bstatic'
9333 sysv4 | sysv4.2uw2* | sysv4.3*)
9334 lt_prog_compiler_wl='-Wl,'
9335 lt_prog_compiler_pic='-KPIC'
9336 lt_prog_compiler_static='-Bstatic'
9340 if test -d /usr/nec ;then
9341 lt_prog_compiler_pic='-Kconform_pic'
9342 lt_prog_compiler_static='-Bstatic'
9346 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9347 lt_prog_compiler_wl='-Wl,'
9348 lt_prog_compiler_pic='-KPIC'
9349 lt_prog_compiler_static='-Bstatic'
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_can_build_shared=no
9358 lt_prog_compiler_pic='-pic'
9359 lt_prog_compiler_static='-Bstatic'
9363 lt_prog_compiler_can_build_shared=no
9369 # For platforms which do not support PIC, -DPIC is meaningless:
9371 lt_prog_compiler_pic=
9374 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9377 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9378 $as_echo "$lt_prog_compiler_pic" >&6; }
9386 # Check to make sure the PIC flag actually works.
9388 if test -n "$lt_prog_compiler_pic"; then
9389 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9390 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9391 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9392 $as_echo_n "(cached) " >&6
9394 lt_cv_prog_compiler_pic_works=no
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9397 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9398 # Insert the option either (1) after the last *FLAGS variable, or
9399 # (2) before a word containing "conftest.", or (3) at the end.
9400 # Note that $ac_compile itself does not contain backslashes and begins
9401 # with a dollar sign (not a hyphen), so the echo should work correctly.
9402 # The option is referenced via a variable to avoid confusing sed.
9403 lt_compile=`echo "$ac_compile" | $SED \
9404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9406 -e 's:$: $lt_compiler_flag:'`
9407 (eval echo "\"\$as_me:9407: $lt_compile\"" >&5)
9408 (eval "$lt_compile" 2>conftest.err)
9410 cat conftest.err >&5
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 if (exit $ac_status) && test -s "$ac_outfile"; then
9413 # The compiler can only warn and ignore the option if not recognized
9414 # So say no if there are warnings other than the usual output.
9415 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9417 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9418 lt_cv_prog_compiler_pic_works=yes
9424 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9425 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9427 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9428 case $lt_prog_compiler_pic in
9430 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9433 lt_prog_compiler_pic=
9434 lt_prog_compiler_can_build_shared=no
9445 # Check to make sure the static flag actually works.
9447 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9448 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9449 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9450 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9451 $as_echo_n "(cached) " >&6
9453 lt_cv_prog_compiler_static_works=no
9454 save_LDFLAGS="$LDFLAGS"
9455 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9456 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9457 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9458 # The linker can only warn and ignore the option if not recognized
9459 # So say no if there are warnings
9460 if test -s conftest.err; then
9461 # Append any errors to the config.log.
9462 cat conftest.err 1>&5
9463 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9465 if diff conftest.exp conftest.er2 >/dev/null; then
9466 lt_cv_prog_compiler_static_works=yes
9469 lt_cv_prog_compiler_static_works=yes
9473 LDFLAGS="$save_LDFLAGS"
9476 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9477 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9479 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9482 lt_prog_compiler_static=
9491 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9492 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9494 $as_echo_n "(cached) " >&6
9496 lt_cv_prog_compiler_c_o=no
9497 $RM -r conftest 2>/dev/null
9501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9503 lt_compiler_flag="-o out/conftest2.$ac_objext"
9504 # Insert the option either (1) after the last *FLAGS variable, or
9505 # (2) before a word containing "conftest.", or (3) at the end.
9506 # Note that $ac_compile itself does not contain backslashes and begins
9507 # with a dollar sign (not a hyphen), so the echo should work correctly.
9508 lt_compile=`echo "$ac_compile" | $SED \
9509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511 -e 's:$: $lt_compiler_flag:'`
9512 (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513 (eval "$lt_compile" 2>out/conftest.err)
9515 cat out/conftest.err >&5
9516 echo "$as_me:9516: \$? = $ac_status" >&5
9517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9519 # The compiler can only warn and ignore the option if not recognized
9520 # So say no if there are warnings
9521 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9522 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9523 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9524 lt_cv_prog_compiler_c_o=yes
9529 # SGI C++ compiler will create directory out/ii_files/ for
9530 # template instantiation
9531 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9532 $RM out/* && rmdir out
9538 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9539 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9546 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9547 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9548 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9549 $as_echo_n "(cached) " >&6
9551 lt_cv_prog_compiler_c_o=no
9552 $RM -r conftest 2>/dev/null
9556 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9558 lt_compiler_flag="-o out/conftest2.$ac_objext"
9559 # Insert the option either (1) after the last *FLAGS variable, or
9560 # (2) before a word containing "conftest.", or (3) at the end.
9561 # Note that $ac_compile itself does not contain backslashes and begins
9562 # with a dollar sign (not a hyphen), so the echo should work correctly.
9563 lt_compile=`echo "$ac_compile" | $SED \
9564 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9566 -e 's:$: $lt_compiler_flag:'`
9567 (eval echo "\"\$as_me:9567: $lt_compile\"" >&5)
9568 (eval "$lt_compile" 2>out/conftest.err)
9570 cat out/conftest.err >&5
9571 echo "$as_me:9571: \$? = $ac_status" >&5
9572 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9574 # The compiler can only warn and ignore the option if not recognized
9575 # So say no if there are warnings
9576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9577 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9578 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9579 lt_cv_prog_compiler_c_o=yes
9584 # SGI C++ compiler will create directory out/ii_files/ for
9585 # template instantiation
9586 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9587 $RM out/* && rmdir out
9593 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9594 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9599 hard_links="nottested"
9600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9601 # do not overwrite the value of need_locks provided by the user
9602 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9603 $as_echo_n "checking if we can lock with hard links... " >&6; }
9606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9608 ln conftest.a conftest.b 2>&5 || hard_links=no
9609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9610 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9611 $as_echo "$hard_links" >&6; }
9612 if test "$hard_links" = no; then
9613 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9614 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9626 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9630 allow_undefined_flag=
9631 always_export_symbols=no
9633 archive_expsym_cmds=
9634 compiler_needs_object=no
9635 enable_shared_with_static_runtimes=no
9636 export_dynamic_flag_spec=
9637 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9638 hardcode_automatic=no
9640 hardcode_direct_absolute=no
9641 hardcode_libdir_flag_spec=
9642 hardcode_libdir_flag_spec_ld=
9643 hardcode_libdir_separator=
9645 hardcode_shlibpath_var=unsupported
9647 link_all_deplibs=unknown
9650 old_archive_from_new_cmds=
9651 old_archive_from_expsyms_cmds=
9652 thread_safe_flag_spec=
9653 whole_archive_flag_spec=
9654 # include_expsyms should be a list of space-separated symbols to be *always*
9655 # included in the symbol list
9657 # exclude_expsyms can be an extended regexp of symbols to exclude
9658 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9659 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9660 # as well as any symbol that contains `d'.
9661 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9662 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9663 # platforms (ab)use it in PIC code, but their linkers get confused if
9664 # the symbol is explicitly referenced. Since portable code cannot
9665 # rely on this symbol name, it's probably fine to never include it in
9666 # preloaded symbol tables.
9667 # Exclude shared library initialization/finalization symbols.
9668 extract_expsyms_cmds=
9671 cygwin* | mingw* | pw32* | cegcc*)
9672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9673 # When not using gcc, we currently assume that we are using
9674 # Microsoft Visual C++.
9675 if test "$GCC" != yes; then
9680 # we just hope/assume this is gcc and not c89 (= MSVC++)
9689 if test "$with_gnu_ld" = yes; then
9690 # If archive_cmds runs LD, not CC, wlarc should be empty
9693 # Set some defaults for GNU ld with shared library support. These
9694 # are reset later if shared libraries are not supported. Putting them
9695 # here allows them to be overridden if necessary.
9696 runpath_var=LD_RUN_PATH
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698 export_dynamic_flag_spec='${wl}--export-dynamic'
9699 # ancient GNU ld didn't support --whole-archive et. al.
9700 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9701 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9703 whole_archive_flag_spec=
9705 supports_anon_versioning=no
9706 case `$LD -v 2>&1` in
9707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9710 *\ 2.11.*) ;; # other 2.11 versions
9711 *) supports_anon_versioning=yes ;;
9714 # See if GNU ld supports shared libraries.
9717 # On AIX/PPC, the GNU linker is very broken
9718 if test "$host_cpu" != ia64; then
9722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9723 *** to be unable to reliably create shared libraries on AIX.
9724 *** Therefore, libtool is disabling shared libraries support. If you
9725 *** really care for shared libraries, you may want to modify your PATH
9726 *** so that a non-GNU linker is found, and then restart.
9735 # see comment about AmigaOS4 .so support
9736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9737 archive_expsym_cmds=''
9740 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)'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_minus_L=yes
9748 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9749 allow_undefined_flag=unsupported
9750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9751 # support --undefined. This deserves some investigation. FIXME
9752 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 cygwin* | mingw* | pw32* | cegcc*)
9759 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9760 # as there is no search path for DLLs.
9761 hardcode_libdir_flag_spec='-L$libdir'
9762 allow_undefined_flag=unsupported
9763 always_export_symbols=no
9764 enable_shared_with_static_runtimes=yes
9765 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9769 # If the export-symbols file already is a .def file (1st line
9770 # is EXPORTS), use it as is; otherwise, prepend...
9771 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9772 cp $export_symbols $output_objdir/$soname.def;
9774 echo EXPORTS > $output_objdir/$soname.def;
9775 cat $export_symbols >> $output_objdir/$soname.def;
9777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9785 hardcode_shlibpath_var=no
9786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787 export_dynamic_flag_spec='${wl}-E'
9788 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9789 # Instead, shared libraries are loaded at an image base (0x10000000 by
9790 # default) and relocated if they conflict, which is a slow very memory
9791 # consuming and fragmenting process. To avoid this, we pick a random,
9792 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9793 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9794 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9795 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'
9798 gnu* | linux* | tpf* | k*bsd*-gnu)
9800 if test "$host_os" = linux-dietlibc; then
9801 case $cc_basename in
9802 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9805 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9806 && test "$tmp_diet" = no
9809 tmp_sharedflag='-shared'
9810 case $cc_basename,$host_cpu in
9811 pgcc*) # Portland Group C compiler
9812 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9813 tmp_addflag=' $pic_flag'
9815 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9816 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9817 tmp_addflag=' $pic_flag -Mnomain' ;;
9818 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9819 tmp_addflag=' -i_dynamic' ;;
9820 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9821 tmp_addflag=' -i_dynamic -nofor_main' ;;
9822 ifc* | ifort*) # Intel Fortran compiler
9823 tmp_addflag=' -nofor_main' ;;
9824 lf95*) # Lahey Fortran 8.1
9825 whole_archive_flag_spec=
9826 tmp_sharedflag='--shared' ;;
9827 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9828 tmp_sharedflag='-qmkshrobj'
9831 case `$CC -V 2>&1 | sed 5q` in
9832 *Sun\ C*) # Sun C 5.9
9833 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9834 compiler_needs_object=yes
9835 tmp_sharedflag='-G' ;;
9836 *Sun\ F*) # Sun Fortran 8.3
9837 tmp_sharedflag='-G' ;;
9839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9841 if test "x$supports_anon_versioning" = xyes; then
9842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9844 echo "local: *; };" >> $output_objdir/$libname.ver~
9845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9848 case $cc_basename in
9850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9852 hardcode_libdir_flag_spec=
9853 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9854 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9855 if test "x$supports_anon_versioning" = xyes; then
9856 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9857 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9858 echo "local: *; };" >> $output_objdir/$libname.ver~
9859 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9870 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9879 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9883 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9884 *** create shared libraries on Solaris systems. Therefore, libtool
9885 *** is disabling shared libraries support. We urge you to upgrade GNU
9886 *** binutils to release 2.9.1 or newer. Another option is to modify
9887 *** your PATH or compiler configuration so that the native linker is
9888 *** used, and then restart.
9891 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9899 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9900 case `$LD -v 2>&1` in
9901 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9905 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9906 *** reliably create shared libraries on SCO systems. Therefore, libtool
9907 *** is disabling shared libraries support. We urge you to upgrade GNU
9908 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9909 *** your PATH or compiler configuration so that the native linker is
9910 *** used, and then restart.
9915 # For security reasons, it is highly recommended that you always
9916 # use absolute paths for naming shared libraries, and exclude the
9917 # DT_RUNPATH tag from executables and libraries. But doing so
9918 # requires that you compile everything twice, which is a pain.
9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9920 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934 hardcode_shlibpath_var=no
9938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9947 if test "$ld_shlibs" = no; then
9949 hardcode_libdir_flag_spec=
9950 export_dynamic_flag_spec=
9951 whole_archive_flag_spec=
9954 # PORTME fill in a description of your system's linker (not GNU ld)
9957 allow_undefined_flag=unsupported
9958 always_export_symbols=yes
9959 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'
9960 # Note: this linker hardcodes the directories in LIBPATH if there
9961 # are no directories specified by -L.
9962 hardcode_minus_L=yes
9963 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9964 # Neither direct hardcoding nor static linking is supported with a
9966 hardcode_direct=unsupported
9971 if test "$host_cpu" = ia64; then
9972 # On IA64, the linker does run time linking by default, so we don't
9973 # have to do anything special.
9974 aix_use_runtimelinking=no
9975 exp_sym_flag='-Bexport'
9978 # If we're using GNU nm, then we don't want the "-C" option.
9979 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9981 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9983 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9985 aix_use_runtimelinking=no
9987 # Test if we are trying to use run time linking or normal
9988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9989 # need to do runtime linking.
9990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9991 for ld_flag in $LDFLAGS; do
9992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9993 aix_use_runtimelinking=yes
10000 exp_sym_flag='-bexport'
10001 no_entry_flag='-bnoentry'
10004 # When large executables or shared objects are built, AIX ld can
10005 # have problems creating the table of contents. If linking a library
10006 # or program results in "error TOC overflow" add -mminimal-toc to
10007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10011 hardcode_direct=yes
10012 hardcode_direct_absolute=yes
10013 hardcode_libdir_separator=':'
10014 link_all_deplibs=yes
10015 file_list_spec='${wl}-f,'
10017 if test "$GCC" = yes; then
10018 case $host_os in aix4.[012]|aix4.[012].*)
10019 # We only want to do this on AIX 4.2 and lower, the check
10020 # below for broken collect2 doesn't work under 4.3+
10021 collect2name=`${CC} -print-prog-name=collect2`
10022 if test -f "$collect2name" &&
10023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10025 # We have reworked collect2
10028 # We have old collect2
10029 hardcode_direct=unsupported
10030 # It fails to find uninstalled libraries when the uninstalled
10031 # path is not listed in the libpath. Setting hardcode_minus_L
10032 # to unsupported forces relinking
10033 hardcode_minus_L=yes
10034 hardcode_libdir_flag_spec='-L$libdir'
10035 hardcode_libdir_separator=
10039 shared_flag='-shared'
10040 if test "$aix_use_runtimelinking" = yes; then
10041 shared_flag="$shared_flag "'${wl}-G'
10045 if test "$host_cpu" = ia64; then
10046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10047 # chokes on -Wl,-G. The following line is correct:
10050 if test "$aix_use_runtimelinking" = yes; then
10051 shared_flag='${wl}-G'
10053 shared_flag='${wl}-bM:SRE'
10058 export_dynamic_flag_spec='${wl}-bexpall'
10059 # It seems that -bexpall does not export symbols beginning with
10060 # underscore (_), so it is better to generate a list of symbols to export.
10061 always_export_symbols=yes
10062 if test "$aix_use_runtimelinking" = yes; then
10063 # Warning - without using the other runtime loading flags (-brtl),
10064 # -berok will link without error, but may produce a broken library.
10065 allow_undefined_flag='-berok'
10066 # Determine the default libpath from the value encoded in an
10067 # empty executable.
10068 cat >conftest.$ac_ext <<_ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10083 rm -f conftest.$ac_objext conftest$ac_exeext
10084 if { (ac_try="$ac_link"
10085 case "(($ac_try" in
10086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090 $as_echo "$ac_try_echo") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest$ac_exeext && {
10101 test "$cross_compiling" = yes ||
10102 $as_test_x conftest$ac_exeext
10105 lt_aix_libpath_sed='
10106 /Import File Strings/,/^$/ {
10112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10113 # Check for a 64-bit object if we didn't find anything.
10114 if test -z "$aix_libpath"; then
10115 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118 $as_echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10124 rm -rf conftest.dSYM
10125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10126 conftest$ac_exeext conftest.$ac_ext
10127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10130 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10132 if test "$host_cpu" = ia64; then
10133 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10134 allow_undefined_flag="-z nodefs"
10135 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"
10137 # Determine the default libpath from the value encoded in an
10138 # empty executable.
10139 cat >conftest.$ac_ext <<_ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10164 grep -v '^ *+' conftest.er1 >conftest.err
10166 cat conftest.err >&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest$ac_exeext
10176 lt_aix_libpath_sed='
10177 /Import File Strings/,/^$/ {
10183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10184 # Check for a 64-bit object if we didn't find anything.
10185 if test -z "$aix_libpath"; then
10186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 $as_echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10195 rm -rf conftest.dSYM
10196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10197 conftest$ac_exeext conftest.$ac_ext
10198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10201 # Warning - without using the other run time loading flags,
10202 # -berok will link without error, but may produce a broken library.
10203 no_undefined_flag=' ${wl}-bernotok'
10204 allow_undefined_flag=' ${wl}-berok'
10205 # Exported symbols can be pulled into shared objects from archives
10206 whole_archive_flag_spec='$convenience'
10207 archive_cmds_need_lc=yes
10208 # This is similar to how AIX traditionally builds its shared libraries.
10209 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10217 # see comment about AmigaOS4 .so support
10218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10219 archive_expsym_cmds=''
10222 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)'
10223 hardcode_libdir_flag_spec='-L$libdir'
10224 hardcode_minus_L=yes
10230 export_dynamic_flag_spec=-rdynamic
10233 cygwin* | mingw* | pw32* | cegcc*)
10234 # When not using gcc, we currently assume that we are using
10235 # Microsoft Visual C++.
10236 # hardcode_libdir_flag_spec is actually meaningless, as there is
10237 # no search path for DLLs.
10238 hardcode_libdir_flag_spec=' '
10239 allow_undefined_flag=unsupported
10240 # Tell ltmain to make .lib files, not .a files.
10242 # Tell ltmain to make .dll files, not .so files.
10244 # FIXME: Setting linknames here is a bad hack.
10245 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10246 # The linker will automatically build a .lib file if we build a DLL.
10247 old_archive_from_new_cmds='true'
10248 # FIXME: Should let the user specify the lib program.
10249 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10250 fix_srcfile_path='`cygpath -w "$srcfile"`'
10251 enable_shared_with_static_runtimes=yes
10254 darwin* | rhapsody*)
10257 archive_cmds_need_lc=no
10259 hardcode_automatic=yes
10260 hardcode_shlibpath_var=unsupported
10261 whole_archive_flag_spec=''
10262 link_all_deplibs=yes
10263 allow_undefined_flag="$_lt_dar_allow_undefined"
10264 case $cc_basename in
10265 ifort*) _lt_dar_can_shared=yes ;;
10266 *) _lt_dar_can_shared=$GCC ;;
10268 if test "$_lt_dar_can_shared" = "yes"; then
10269 output_verbose_link_cmd=echo
10270 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10271 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10272 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}"
10273 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}"
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_libdir_flag_spec='-L$libdir'
10284 hardcode_shlibpath_var=no
10291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10292 # support. Future versions do this automatically, but an explicit c++rt0.o
10293 # does not break anything, and helps significantly (at the cost of a little
10296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10297 hardcode_libdir_flag_spec='-R$libdir'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_direct=yes
10306 hardcode_minus_L=yes
10307 hardcode_shlibpath_var=no
10310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10311 freebsd* | dragonfly*)
10312 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_direct=yes
10315 hardcode_shlibpath_var=no
10319 if test "$GCC" = yes; then
10320 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10322 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10325 hardcode_libdir_separator=:
10326 hardcode_direct=yes
10328 # hardcode_minus_L: Not really in the search PATH,
10329 # but as the default location of the library.
10330 hardcode_minus_L=yes
10331 export_dynamic_flag_spec='${wl}-E'
10335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10336 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10340 if test "$with_gnu_ld" = no; then
10341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10342 hardcode_libdir_flag_spec_ld='+b $libdir'
10343 hardcode_libdir_separator=:
10344 hardcode_direct=yes
10345 hardcode_direct_absolute=yes
10346 export_dynamic_flag_spec='${wl}-E'
10347 # hardcode_minus_L: Not really in the search PATH,
10348 # but as the default location of the library.
10349 hardcode_minus_L=yes
10354 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10357 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10360 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10379 if test "$with_gnu_ld" = no; then
10380 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10381 hardcode_libdir_separator=:
10386 hardcode_shlibpath_var=no
10389 hardcode_direct=yes
10390 hardcode_direct_absolute=yes
10391 export_dynamic_flag_spec='${wl}-E'
10393 # hardcode_minus_L: Not really in the search PATH,
10394 # but as the default location of the library.
10395 hardcode_minus_L=yes
10401 irix5* | irix6* | nonstopux*)
10402 if test "$GCC" = yes; then
10403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10404 # Try to use the -exported_symbol ld option, if it does not
10405 # work, assume that -exports_file does not work either and
10406 # implicitly export all symbols.
10407 save_LDFLAGS="$LDFLAGS"
10408 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10409 cat >conftest.$ac_ext <<_ACEOF
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (ac_try="$ac_link"
10414 case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10419 $as_echo "$ac_try_echo") >&5
10420 (eval "$ac_link") 2>conftest.er1
10422 grep -v '^ *+' conftest.er1 >conftest.err
10424 cat conftest.err >&5
10425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && {
10427 test -z "$ac_c_werror_flag" ||
10428 test ! -s conftest.err
10429 } && test -s conftest$ac_exeext && {
10430 test "$cross_compiling" = yes ||
10431 $as_test_x conftest$ac_exeext
10433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10436 $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10442 rm -rf conftest.dSYM
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10445 LDFLAGS="$save_LDFLAGS"
10447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10450 archive_cmds_need_lc='no'
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452 hardcode_libdir_separator=:
10454 link_all_deplibs=yes
10458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10461 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10463 hardcode_libdir_flag_spec='-R$libdir'
10464 hardcode_direct=yes
10465 hardcode_shlibpath_var=no
10469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470 hardcode_direct=yes
10471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10472 hardcode_libdir_separator=:
10473 hardcode_shlibpath_var=no
10480 if test -f /usr/libexec/ld.so; then
10481 hardcode_direct=yes
10482 hardcode_shlibpath_var=no
10483 hardcode_direct_absolute=yes
10484 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10485 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10486 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10488 export_dynamic_flag_spec='${wl}-E'
10491 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10493 hardcode_libdir_flag_spec='-R$libdir'
10496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507 hardcode_libdir_flag_spec='-L$libdir'
10508 hardcode_minus_L=yes
10509 allow_undefined_flag=unsupported
10510 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10511 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10515 if test "$GCC" = yes; then
10516 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10517 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10519 allow_undefined_flag=' -expect_unresolved \*'
10520 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10522 archive_cmds_need_lc='no'
10523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10524 hardcode_libdir_separator=:
10527 osf4* | osf5*) # as osf3* with the addition of -msym flag
10528 if test "$GCC" = yes; then
10529 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10530 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10531 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10533 allow_undefined_flag=' -expect_unresolved \*'
10534 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10535 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~
10536 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10538 # Both c and cxx compiler support -rpath directly
10539 hardcode_libdir_flag_spec='-rpath $libdir'
10541 archive_cmds_need_lc='no'
10542 hardcode_libdir_separator=:
10546 no_undefined_flag=' -z defs'
10547 if test "$GCC" = yes; then
10549 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10550 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10551 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10553 case `$CC -V 2>&1` in
10556 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10558 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10562 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10564 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10568 hardcode_libdir_flag_spec='-R$libdir'
10569 hardcode_shlibpath_var=no
10571 solaris2.[0-5] | solaris2.[0-5].*) ;;
10573 # The compiler driver will combine and reorder linker options,
10574 # but understands `-z linker_flag'. GCC discards it without `$wl',
10575 # but is careful enough not to reorder.
10576 # Supported since Solaris 2.6 (maybe 2.5.1?)
10577 if test "$GCC" = yes; then
10578 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10580 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10584 link_all_deplibs=yes
10588 if test "x$host_vendor" = xsequent; then
10589 # Use $CC to link under sequent, because it throws in some extra .o
10590 # files that make .init and .fini sections work.
10591 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10593 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10595 hardcode_libdir_flag_spec='-L$libdir'
10596 hardcode_direct=yes
10597 hardcode_minus_L=yes
10598 hardcode_shlibpath_var=no
10602 case $host_vendor in
10604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10605 hardcode_direct=yes # is this really true???
10608 ## LD is ld it makes a PLAMLIB
10609 ## CC just makes a GrossModule.
10610 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10611 reload_cmds='$CC -r -o $output$reload_objs'
10615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10616 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10619 runpath_var='LD_RUN_PATH'
10620 hardcode_shlibpath_var=no
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_shlibpath_var=no
10626 export_dynamic_flag_spec='-Bexport'
10630 if test -d /usr/nec; then
10631 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632 hardcode_shlibpath_var=no
10633 runpath_var=LD_RUN_PATH
10634 hardcode_runpath_var=yes
10639 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10640 no_undefined_flag='${wl}-z,text'
10641 archive_cmds_need_lc=no
10642 hardcode_shlibpath_var=no
10643 runpath_var='LD_RUN_PATH'
10645 if test "$GCC" = yes; then
10646 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10647 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10654 sysv5* | sco3.2v5* | sco5v6*)
10655 # Note: We can NOT use -z defs as we might desire, because we do not
10656 # link with -lc, and that would cause any symbols used from libc to
10657 # always be unresolved, which means just about no library would
10658 # ever link correctly. If we're not using GNU ld we use -z text
10659 # though, which does catch some bad symbols but isn't as heavy-handed
10661 no_undefined_flag='${wl}-z,text'
10662 allow_undefined_flag='${wl}-z,nodefs'
10663 archive_cmds_need_lc=no
10664 hardcode_shlibpath_var=no
10665 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10666 hardcode_libdir_separator=':'
10667 link_all_deplibs=yes
10668 export_dynamic_flag_spec='${wl}-Bexport'
10669 runpath_var='LD_RUN_PATH'
10671 if test "$GCC" = yes; then
10672 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_libdir_flag_spec='-L$libdir'
10683 hardcode_shlibpath_var=no
10691 if test x$host_vendor = xsni; then
10693 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10694 export_dynamic_flag_spec='${wl}-Blargedynsym'
10700 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10701 $as_echo "$ld_shlibs" >&6; }
10702 test "$ld_shlibs" = no && can_build_shared=no
10704 with_gnu_ld=$with_gnu_ld
10721 # Do we need to explicitly link libc?
10723 case "x$archive_cmds_need_lc" in
10725 # Assume -lc should be added
10726 archive_cmds_need_lc=yes
10728 if test "$enable_shared" = yes && test "$GCC" = yes; then
10729 case $archive_cmds in
10731 # FIXME: we may have to deal with multi-command sequences.
10734 # Test whether the compiler implicitly links with -lc since on some
10735 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10736 # to ld, don't add -lc before -lgcc.
10737 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10738 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10743 (eval $ac_compile) 2>&5
10745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } 2>conftest.err; then
10749 libobjs=conftest.$ac_objext
10751 wl=$lt_prog_compiler_wl
10752 pic_flag=$lt_prog_compiler_pic
10758 lt_save_allow_undefined_flag=$allow_undefined_flag
10759 allow_undefined_flag=
10760 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10761 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }
10766 archive_cmds_need_lc=no
10768 archive_cmds_need_lc=yes
10770 allow_undefined_flag=$lt_save_allow_undefined_flag
10772 cat conftest.err 1>&5
10775 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10776 $as_echo "$archive_cmds_need_lc" >&6; }
10939 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10940 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10942 if test "$GCC" = yes; then
10944 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10945 *) lt_awk_arg="/^libraries:/" ;;
10947 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10948 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10949 # if the path contains ";" then we assume it to be the separator
10950 # otherwise default to the standard path separator (i.e. ":") - it is
10951 # assumed that no part of a normal pathname contains ";" but that should
10952 # okay in the real world where ";" in dirpaths is itself problematic.
10953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10955 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10957 # Ok, now we have the path, separated by spaces, we can step through it
10958 # and add multilib dir if necessary.
10959 lt_tmp_lt_search_path_spec=
10960 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10961 for lt_sys_path in $lt_search_path_spec; do
10962 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10963 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10965 test -d "$lt_sys_path" && \
10966 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10969 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10970 BEGIN {RS=" "; FS="/|\n";} {
10973 for (lt_i = NF; lt_i > 0; lt_i--) {
10974 if ($lt_i != "" && $lt_i != ".") {
10975 if ($lt_i == "..") {
10978 if (lt_count == 0) {
10979 lt_foo="/" $lt_i lt_foo;
10986 if (lt_foo != "") { lt_freq[lt_foo]++; }
10987 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10989 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10991 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10993 library_names_spec=
10994 libname_spec='lib$name'
10998 postuninstall_cmds=
11002 shlibpath_overrides_runpath=unknown
11004 dynamic_linker="$host_os ld.so"
11005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11006 need_lib_prefix=unknown
11007 hardcode_into_libs=no
11009 # when you set need_version to no, make sure it does not cause -set_version
11010 # flags to be left without arguments
11011 need_version=unknown
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11017 shlibpath_var=LIBPATH
11019 # AIX 3 has no versioning support, so we append a major version to the name.
11020 soname_spec='${libname}${release}${shared_ext}$major'
11027 hardcode_into_libs=yes
11028 if test "$host_cpu" = ia64; then
11029 # AIX 5 supports IA64
11030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11031 shlibpath_var=LD_LIBRARY_PATH
11033 # With GCC up to 2.95.x, collect2 would create an import file
11034 # for dependence libraries. The import file would start with
11035 # the line `#! .'. This would cause the generated library to
11036 # depend on `.', always an invalid library. This was fixed in
11037 # development snapshots of GCC prior to 3.0.
11039 aix4 | aix4.[01] | aix4.[01].*)
11040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11042 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11045 can_build_shared=no
11049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11050 # soname into executable. Probably we can add versioning support to
11051 # collect2, so additional links can be useful in future.
11052 if test "$aix_use_runtimelinking" = yes; then
11053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11054 # instead of lib<name>.a to let people know that these are not
11055 # typical AIX shared libraries.
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11058 # We preserve .a as extension for shared libraries through AIX4.2
11059 # and later when we are not doing run time linking.
11060 library_names_spec='${libname}${release}.a $libname.a'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LIBPATH
11070 # Since July 2007 AmigaOS4 officially supports .so libraries.
11071 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075 library_names_spec='$libname.ixlibrary $libname.a'
11076 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11077 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11083 library_names_spec='${libname}${shared_ext}'
11084 dynamic_linker="$host_os ld.so"
11085 shlibpath_var=LIBRARY_PATH
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11096 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11097 # the default ld.so.conf also contains /usr/contrib/lib and
11098 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11099 # libtool to hard-code these into programs
11102 cygwin* | mingw* | pw32* | cegcc*)
11103 version_type=windows
11108 case $GCC,$host_os in
11109 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11110 library_names_spec='$libname.dll.a'
11111 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11112 postinstall_cmds='base_file=`basename \${file}`~
11113 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11114 dldir=$destdir/`dirname \$dlpath`~
11115 test -d \$dldir || mkdir -p \$dldir~
11116 $install_prog $dir/$dlname \$dldir/$dlname~
11117 chmod a+x \$dldir/$dlname~
11118 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11119 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11122 dlpath=$dir/\$dldll~
11124 shlibpath_overrides_runpath=yes
11128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11133 # MinGW DLLs use traditional 'lib' prefix
11134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11135 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11136 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11137 # It is most probably a Windows format PATH printed by
11138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11139 # path with ; separators, and with drive letters. We can handle the
11140 # drive letters (cygwin fileutils understands them), so leave them,
11141 # especially as we might pass files found there to a mingw objdump,
11142 # which wouldn't understand a cygwinified path. Ahh.
11143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11145 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11149 # pw32 DLLs use 'pw' prefix rather than 'lib'
11150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11159 dynamic_linker='Win32 ld.exe'
11160 # FIXME: first we should search . and the directory the executable is in
11164 darwin* | rhapsody*)
11165 dynamic_linker="$host_os dyld"
11166 version_type=darwin
11169 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11170 soname_spec='${libname}${release}${major}$shared_ext'
11171 shlibpath_overrides_runpath=yes
11172 shlibpath_var=DYLD_LIBRARY_PATH
11173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11184 soname_spec='${libname}${release}${shared_ext}$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11192 freebsd* | dragonfly*)
11193 # DragonFly does not have aout. When/if they implement a new
11194 # versioning mechanism, adjust this.
11195 if test -x /usr/bin/objformat; then
11196 objformat=`/usr/bin/objformat`
11199 freebsd[123]*) objformat=aout ;;
11200 *) objformat=elf ;;
11203 version_type=freebsd-$objformat
11204 case $version_type in
11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11215 shlibpath_var=LD_LIBRARY_PATH
11218 shlibpath_overrides_runpath=yes
11220 freebsd3.[01]* | freebsdelf3.[01]*)
11221 shlibpath_overrides_runpath=yes
11222 hardcode_into_libs=yes
11224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11226 shlibpath_overrides_runpath=no
11227 hardcode_into_libs=yes
11229 *) # from 4.6 on, and DragonFly
11230 shlibpath_overrides_runpath=yes
11231 hardcode_into_libs=yes
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 hardcode_into_libs=yes
11246 hpux9* | hpux10* | hpux11*)
11247 # Give a soname corresponding to the major version so that dld.sl refuses to
11248 # link against other versions.
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.so"
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 if test "X$HPUX_IA64_MODE" = X32; then
11262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11270 hardcode_into_libs=yes
11271 dynamic_linker="$host_os dld.sl"
11272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11281 dynamic_linker="$host_os dld.sl"
11282 shlibpath_var=SHLIB_PATH
11283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11289 postinstall_cmds='chmod 555 $lib'
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11297 soname_spec='${libname}${release}${shared_ext}$major'
11298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=no
11301 hardcode_into_libs=yes
11304 irix5* | irix6* | nonstopux*)
11306 nonstopux*) version_type=nonstopux ;;
11308 if test "$lt_cv_prog_gnu_ld" = yes; then
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11319 irix5* | nonstopux*)
11320 libsuff= shlibsuff=
11323 case $LD in # libtool.m4 will add one of these switches to LD
11324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11325 libsuff= shlibsuff= libmagic=32-bit;;
11326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11327 libsuff=32 shlibsuff=N32 libmagic=N32;;
11328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11330 *) libsuff= shlibsuff= libmagic=never-match;;
11334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11335 shlibpath_overrides_runpath=no
11336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11338 hardcode_into_libs=yes
11341 # No shared lib support for Linux oldld, aout, or coff.
11342 linux*oldld* | linux*aout* | linux*coff*)
11346 # This must be Linux ELF.
11347 linux* | k*bsd*-gnu)
11351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=no
11356 # Some binutils ld are patched to set DT_RUNPATH
11357 save_LDFLAGS=$LDFLAGS
11358 save_libdir=$libdir
11359 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_link") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1 >conftest.err
11388 cat conftest.err >&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest$ac_exeext
11397 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11398 shlibpath_overrides_runpath=yes
11402 $as_echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11408 rm -rf conftest.dSYM
11409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11410 conftest$ac_exeext conftest.$ac_ext
11411 LDFLAGS=$save_LDFLAGS
11412 libdir=$save_libdir
11414 # This implies no fast_install, which is unacceptable.
11415 # Some rework will be needed to allow for fast_install
11416 # before this can be enabled.
11417 hardcode_into_libs=yes
11419 # Append ld.so.conf contents to the search path
11420 if test -f /etc/ld.so.conf; then
11421 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;/^$/d' | tr '\n' ' '`
11422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11425 # We used to test for /lib/ld.so.1 and disable shared libraries on
11426 # powerpc, because MkLinux only supported shared libraries with the
11427 # GNU dynamic linker. Since this was broken with cross compilers,
11428 # most powerpc-linux boxes support dynamic linking these days and
11429 # people can always --disable-shared, the test was removed, and we
11430 # assume the GNU/Linux dynamic linker is in use.
11431 dynamic_linker='GNU/Linux ld.so'
11438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11441 dynamic_linker='NetBSD (a.out) ld.so'
11443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11444 soname_spec='${libname}${release}${shared_ext}$major'
11445 dynamic_linker='NetBSD ld.elf_so'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 shlibpath_var=LD_LIBRARY_PATH
11456 shlibpath_overrides_runpath=yes
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=no
11467 hardcode_into_libs=yes
11468 dynamic_linker='ldqnx.so'
11473 sys_lib_dlsearch_path_spec="/usr/lib"
11475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11478 *) need_version=no ;;
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11485 openbsd2.[89] | openbsd2.[89].*)
11486 shlibpath_overrides_runpath=no
11489 shlibpath_overrides_runpath=yes
11493 shlibpath_overrides_runpath=yes
11498 libname_spec='$name'
11501 library_names_spec='$libname${shared_ext} $libname.a'
11502 dynamic_linker='OS/2 ld.exe'
11503 shlibpath_var=LIBPATH
11506 osf3* | osf4* | osf5*)
11510 soname_spec='${libname}${release}${shared_ext}$major'
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 # ldd complains unless libraries are executable
11531 postinstall_cmds='chmod +x $lib'
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 shlibpath_overrides_runpath=yes
11540 if test "$with_gnu_ld" = yes; then
11548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 shlibpath_var=LD_LIBRARY_PATH
11551 case $host_vendor in
11553 shlibpath_overrides_runpath=no
11555 runpath_var=LD_RUN_PATH
11563 shlibpath_overrides_runpath=no
11564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11570 if test -d /usr/nec ;then
11572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11573 soname_spec='$libname${shared_ext}.$major'
11574 shlibpath_var=LD_LIBRARY_PATH
11578 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11579 version_type=freebsd-elf
11582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11583 soname_spec='${libname}${release}${shared_ext}$major'
11584 shlibpath_var=LD_LIBRARY_PATH
11585 shlibpath_overrides_runpath=yes
11586 hardcode_into_libs=yes
11587 if test "$with_gnu_ld" = yes; then
11588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11597 sys_lib_dlsearch_path_spec='/usr/lib'
11601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 shlibpath_overrides_runpath=no
11608 hardcode_into_libs=yes
11613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 shlibpath_var=LD_LIBRARY_PATH
11622 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11623 $as_echo "$dynamic_linker" >&6; }
11624 test "$dynamic_linker" = no && can_build_shared=no
11626 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11627 if test "$GCC" = yes; then
11628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11631 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11632 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11634 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11635 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11724 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728 test -n "$runpath_var" ||
11729 test "X$hardcode_automatic" = "Xyes" ; then
11731 # We can hardcode non-existent directories.
11732 if test "$hardcode_direct" != no &&
11733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734 # have to relink, otherwise we might link with an installed library
11735 # when we should be linking with a yet-to-be-installed one
11736 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11737 test "$hardcode_minus_L" != no; then
11738 # Linking always hardcodes the temporary library directory.
11739 hardcode_action=relink
11741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742 hardcode_action=immediate
11745 # We cannot hardcode anything, or else we can only hardcode existing
11747 hardcode_action=unsupported
11749 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11752 if test "$hardcode_action" = relink ||
11753 test "$inherit_rpath" = yes; then
11754 # Fast installation is not supported
11755 enable_fast_install=no
11756 elif test "$shlibpath_overrides_runpath" = yes ||
11757 test "$enable_shared" = no; then
11758 # Fast installation is not necessary
11759 enable_fast_install=needless
11767 if test "x$enable_dlopen" != xyes; then
11768 enable_dlopen=unknown
11769 enable_dlopen_self=unknown
11770 enable_dlopen_self_static=unknown
11777 lt_cv_dlopen="load_add_on"
11779 lt_cv_dlopen_self=yes
11782 mingw* | pw32* | cegcc*)
11783 lt_cv_dlopen="LoadLibrary"
11788 lt_cv_dlopen="dlopen"
11793 # if libdl is installed we need to link against it
11794 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11797 $as_echo_n "(cached) " >&6
11799 ac_check_lib_save_LIBS=$LIBS
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831 (eval "$ac_link") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest$ac_exeext && {
11841 test "$cross_compiling" = yes ||
11842 $as_test_x conftest$ac_exeext
11844 ac_cv_lib_dl_dlopen=yes
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_lib_dl_dlopen=no
11852 rm -rf conftest.dSYM
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11858 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11859 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11863 lt_cv_dlopen="dyld"
11865 lt_cv_dlopen_self=yes
11872 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11873 $as_echo_n "checking for shl_load... " >&6; }
11874 if test "${ac_cv_func_shl_load+set}" = set; then
11875 $as_echo_n "(cached) " >&6
11877 cat >conftest.$ac_ext <<_ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11885 #define shl_load innocuous_shl_load
11887 /* System header to define __stub macros and hopefully few prototypes,
11888 which can conflict with char shl_load (); below.
11889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11890 <limits.h> exists even on freestanding compilers. */
11893 # include <limits.h>
11895 # include <assert.h>
11900 /* Override any GCC internal prototype to avoid an error.
11901 Use char because int might match the return type of a GCC
11902 builtin and then its argument prototype would still apply. */
11907 /* The GNU C library defines this for functions which it implements
11908 to always fail with ENOSYS. Some functions are actually named
11909 something starting with __ and the normal name is an alias. */
11910 #if defined __stub_shl_load || defined __stub___shl_load
11917 return shl_load ();
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (ac_try="$ac_link"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11929 $as_echo "$ac_try_echo") >&5
11930 (eval "$ac_link") 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest$ac_exeext && {
11940 test "$cross_compiling" = yes ||
11941 $as_test_x conftest$ac_exeext
11943 ac_cv_func_shl_load=yes
11945 $as_echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 ac_cv_func_shl_load=no
11951 rm -rf conftest.dSYM
11952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11953 conftest$ac_exeext conftest.$ac_ext
11955 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11956 $as_echo "$ac_cv_func_shl_load" >&6; }
11957 if test "x$ac_cv_func_shl_load" = x""yes; then
11958 lt_cv_dlopen="shl_load"
11960 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11961 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11962 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11963 $as_echo_n "(cached) " >&6
11965 ac_check_lib_save_LIBS=$LIBS
11967 cat >conftest.$ac_ext <<_ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11974 /* Override any GCC internal prototype to avoid an error.
11975 Use char because int might match the return type of a GCC
11976 builtin and then its argument prototype would still apply. */
11984 return shl_load ();
11989 rm -f conftest.$ac_objext conftest$ac_exeext
11990 if { (ac_try="$ac_link"
11991 case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11996 $as_echo "$ac_try_echo") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext && {
12007 test "$cross_compiling" = yes ||
12008 $as_test_x conftest$ac_exeext
12010 ac_cv_lib_dld_shl_load=yes
12012 $as_echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12015 ac_cv_lib_dld_shl_load=no
12018 rm -rf conftest.dSYM
12019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12020 conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12023 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12024 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12025 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12026 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12028 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12029 $as_echo_n "checking for dlopen... " >&6; }
12030 if test "${ac_cv_func_dlopen+set}" = set; then
12031 $as_echo_n "(cached) " >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12041 #define dlopen innocuous_dlopen
12043 /* System header to define __stub macros and hopefully few prototypes,
12044 which can conflict with char dlopen (); below.
12045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12046 <limits.h> exists even on freestanding compilers. */
12049 # include <limits.h>
12051 # include <assert.h>
12056 /* Override any GCC internal prototype to avoid an error.
12057 Use char because int might match the return type of a GCC
12058 builtin and then its argument prototype would still apply. */
12063 /* The GNU C library defines this for functions which it implements
12064 to always fail with ENOSYS. Some functions are actually named
12065 something starting with __ and the normal name is an alias. */
12066 #if defined __stub_dlopen || defined __stub___dlopen
12078 rm -f conftest.$ac_objext conftest$ac_exeext
12079 if { (ac_try="$ac_link"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12085 $as_echo "$ac_try_echo") >&5
12086 (eval "$ac_link") 2>conftest.er1
12088 grep -v '^ *+' conftest.er1 >conftest.err
12090 cat conftest.err >&5
12091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } && {
12093 test -z "$ac_c_werror_flag" ||
12094 test ! -s conftest.err
12095 } && test -s conftest$ac_exeext && {
12096 test "$cross_compiling" = yes ||
12097 $as_test_x conftest$ac_exeext
12099 ac_cv_func_dlopen=yes
12101 $as_echo "$as_me: failed program was:" >&5
12102 sed 's/^/| /' conftest.$ac_ext >&5
12104 ac_cv_func_dlopen=no
12107 rm -rf conftest.dSYM
12108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12109 conftest$ac_exeext conftest.$ac_ext
12111 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12112 $as_echo "$ac_cv_func_dlopen" >&6; }
12113 if test "x$ac_cv_func_dlopen" = x""yes; then
12114 lt_cv_dlopen="dlopen"
12116 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12117 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12118 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12119 $as_echo_n "(cached) " >&6
12121 ac_check_lib_save_LIBS=$LIBS
12123 cat >conftest.$ac_ext <<_ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h. */
12130 /* Override any GCC internal prototype to avoid an error.
12131 Use char because int might match the return type of a GCC
12132 builtin and then its argument prototype would still apply. */
12145 rm -f conftest.$ac_objext conftest$ac_exeext
12146 if { (ac_try="$ac_link"
12147 case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12152 $as_echo "$ac_try_echo") >&5
12153 (eval "$ac_link") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest$ac_exeext && {
12163 test "$cross_compiling" = yes ||
12164 $as_test_x conftest$ac_exeext
12166 ac_cv_lib_dl_dlopen=yes
12168 $as_echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12171 ac_cv_lib_dl_dlopen=no
12174 rm -rf conftest.dSYM
12175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12176 conftest$ac_exeext conftest.$ac_ext
12177 LIBS=$ac_check_lib_save_LIBS
12179 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12180 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12181 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12184 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12185 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12186 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12187 $as_echo_n "(cached) " >&6
12189 ac_check_lib_save_LIBS=$LIBS
12190 LIBS="-lsvld $LIBS"
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_link") 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext && {
12231 test "$cross_compiling" = yes ||
12232 $as_test_x conftest$ac_exeext
12234 ac_cv_lib_svld_dlopen=yes
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_lib_svld_dlopen=no
12242 rm -rf conftest.dSYM
12243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12244 conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12252 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12255 $as_echo_n "(cached) " >&6
12257 ac_check_lib_save_LIBS=$LIBS
12259 cat >conftest.$ac_ext <<_ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12276 return dld_link ();
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12288 $as_echo "$ac_try_echo") >&5
12289 (eval "$ac_link") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest$ac_exeext && {
12299 test "$cross_compiling" = yes ||
12300 $as_test_x conftest$ac_exeext
12302 ac_cv_lib_dld_dld_link=yes
12304 $as_echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 ac_cv_lib_dld_dld_link=no
12310 rm -rf conftest.dSYM
12311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12312 conftest$ac_exeext conftest.$ac_ext
12313 LIBS=$ac_check_lib_save_LIBS
12315 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12316 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12317 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12318 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12339 if test "x$lt_cv_dlopen" != xno; then
12345 case $lt_cv_dlopen in
12347 save_CPPFLAGS="$CPPFLAGS"
12348 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12350 save_LDFLAGS="$LDFLAGS"
12351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12354 LIBS="$lt_cv_dlopen_libs $LIBS"
12356 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12357 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12358 if test "${lt_cv_dlopen_self+set}" = set; then
12359 $as_echo_n "(cached) " >&6
12361 if test "$cross_compiling" = yes; then :
12362 lt_cv_dlopen_self=cross
12364 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12365 lt_status=$lt_dlunknown
12366 cat > conftest.$ac_ext <<_LT_EOF
12367 #line 12367 "configure"
12368 #include "confdefs.h"
12377 # define LT_DLGLOBAL RTLD_GLOBAL
12380 # define LT_DLGLOBAL DL_GLOBAL
12382 # define LT_DLGLOBAL 0
12386 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12387 find out it does not work in some platform. */
12388 #ifndef LT_DLLAZY_OR_NOW
12390 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12393 # define LT_DLLAZY_OR_NOW DL_LAZY
12396 # define LT_DLLAZY_OR_NOW RTLD_NOW
12399 # define LT_DLLAZY_OR_NOW DL_NOW
12401 # define LT_DLLAZY_OR_NOW 0
12408 void fnord() { int i=42;}
12411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12412 int status = $lt_dlunknown;
12416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12418 /* dlclose (self); */
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>&5
12429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12431 (./conftest; exit; ) >&5 2>/dev/null
12433 case x$lt_status in
12434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12439 # compilation failed
12440 lt_cv_dlopen_self=no
12447 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12448 $as_echo "$lt_cv_dlopen_self" >&6; }
12450 if test "x$lt_cv_dlopen_self" = xyes; then
12451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12452 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12453 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12454 if test "${lt_cv_dlopen_self_static+set}" = set; then
12455 $as_echo_n "(cached) " >&6
12457 if test "$cross_compiling" = yes; then :
12458 lt_cv_dlopen_self_static=cross
12460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12461 lt_status=$lt_dlunknown
12462 cat > conftest.$ac_ext <<_LT_EOF
12463 #line 12463 "configure"
12464 #include "confdefs.h"
12473 # define LT_DLGLOBAL RTLD_GLOBAL
12476 # define LT_DLGLOBAL DL_GLOBAL
12478 # define LT_DLGLOBAL 0
12482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12483 find out it does not work in some platform. */
12484 #ifndef LT_DLLAZY_OR_NOW
12486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12489 # define LT_DLLAZY_OR_NOW DL_LAZY
12492 # define LT_DLLAZY_OR_NOW RTLD_NOW
12495 # define LT_DLLAZY_OR_NOW DL_NOW
12497 # define LT_DLLAZY_OR_NOW 0
12504 void fnord() { int i=42;}
12507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12508 int status = $lt_dlunknown;
12512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12514 /* dlclose (self); */
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>&5
12525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12527 (./conftest; exit; ) >&5 2>/dev/null
12529 case x$lt_status in
12530 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12531 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12532 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12535 # compilation failed
12536 lt_cv_dlopen_self_static=no
12543 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12544 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12547 CPPFLAGS="$save_CPPFLAGS"
12548 LDFLAGS="$save_LDFLAGS"
12553 case $lt_cv_dlopen_self in
12554 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12555 *) enable_dlopen_self=unknown ;;
12558 case $lt_cv_dlopen_self_static in
12559 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12560 *) enable_dlopen_self_static=unknown ;;
12582 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12583 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12584 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12585 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12586 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12587 { $as_echo "$as_me:$LINENO: result: yes" >&5
12588 $as_echo "yes" >&6; }
12590 # FIXME - insert some real tests, host_os isn't really good enough
12593 if test -n "$STRIP" ; then
12594 striplib="$STRIP -x"
12595 old_striplib="$STRIP -S"
12596 { $as_echo "$as_me:$LINENO: result: yes" >&5
12597 $as_echo "yes" >&6; }
12599 { $as_echo "$as_me:$LINENO: result: no" >&5
12600 $as_echo "no" >&6; }
12604 { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12621 # Report which library types will actually be built
12622 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12623 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12624 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12625 $as_echo "$can_build_shared" >&6; }
12627 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12628 $as_echo_n "checking whether to build shared libraries... " >&6; }
12629 test "$can_build_shared" = "no" && enable_shared=no
12631 # On AIX, shared libraries and static libraries use the same namespace, and
12632 # are all built from PIC.
12635 test "$enable_shared" = yes && enable_static=no
12636 if test -n "$RANLIB"; then
12637 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12638 postinstall_cmds='$RANLIB $lib'
12643 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12644 test "$enable_shared" = yes && enable_static=no
12648 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12649 $as_echo "$enable_shared" >&6; }
12651 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12652 $as_echo_n "checking whether to build static libraries... " >&6; }
12653 # Make sure either enable_shared or enable_static is yes.
12654 test "$enable_shared" = yes || enable_static=yes
12655 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12656 $as_echo "$enable_static" >&6; }
12663 ac_cpp='$CPP $CPPFLAGS'
12664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682 ac_config_commands="$ac_config_commands libtool"
12687 # Only expand once:
12690 if test "x$CC" != xcc; then
12691 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
12692 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12694 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
12695 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12697 set dummy $CC; ac_cc=`$as_echo "$2" |
12698 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12699 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
12700 $as_echo_n "(cached) " >&6
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12717 # Make sure it works both with $CC and with simple cc.
12718 # We do the test twice because some compilers refuse to overwrite an
12719 # existing .o file with -o, though they will create one.
12720 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12722 if { (case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_try") 2>&5
12730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734 *) ac_try_echo=$ac_try;;
12736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12737 $as_echo "$ac_try_echo") >&5
12738 (eval "$ac_try") 2>&5
12740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); };
12743 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12744 if test "x$CC" != xcc; then
12745 # Test first that cc exists at all.
12746 if { ac_try='cc -c conftest.$ac_ext >&5'
12747 { (case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12752 $as_echo "$ac_try_echo") >&5
12753 (eval "$ac_try") 2>&5
12755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12757 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12759 if { (case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12764 $as_echo "$ac_try_echo") >&5
12765 (eval "$ac_try") 2>&5
12767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
12769 test -f conftest2.$ac_objext && { (case "(($ac_try" in
12770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12771 *) ac_try_echo=$ac_try;;
12773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12774 $as_echo "$ac_try_echo") >&5
12775 (eval "$ac_try") 2>&5
12777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); };
12783 # cc exists but doesn't like -o.
12784 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12789 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12791 rm -f core conftest*
12794 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12795 { $as_echo "$as_me:$LINENO: result: yes" >&5
12796 $as_echo "yes" >&6; }
12798 { $as_echo "$as_me:$LINENO: result: no" >&5
12799 $as_echo "no" >&6; }
12801 cat >>confdefs.h <<\_ACEOF
12802 #define NO_MINUS_C_MINUS_O 1
12807 # FIXME: we rely on the cache variable name because
12808 # there is no other way.
12810 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
12812 # Losing compiler, so override with the script.
12813 # FIXME: It is wrong to rewrite CC.
12814 # But if we don't then we get into trouble of one sort or another.
12815 # A longer-term fix would be to have automake use am__CC in this case,
12816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12817 CC="$am_aux_dir/compile $CC"
12822 { $as_echo "$as_me:$LINENO: checking whether ld supports --as-needed" >&5
12823 $as_echo_n "checking whether ld supports --as-needed... " >&6; }
12824 if test "${pam_cv_ld_as_needed+set}" = set; then
12825 $as_echo_n "(cached) " >&6
12827 cat > conftest.c <<EOF
12828 int main (void) { return 0; }
12830 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12831 -o conftest.o conftest.c
12832 -Wl,--as-needed 1>&5'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }
12839 pam_cv_ld_as_needed=yes
12840 LDFLAGS="$LDFLAGS -Wl,--as-needed"
12842 pam_cv_ld_as_needed=no
12846 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_as_needed" >&5
12847 $as_echo "$pam_cv_ld_as_needed" >&6; }
12852 { $as_echo "$as_me:$LINENO: checking whether ld supports --no-undefined" >&5
12853 $as_echo_n "checking whether ld supports --no-undefined... " >&6; }
12854 if test "${pam_cv_ld_no_undefined+set}" = set; then
12855 $as_echo_n "(cached) " >&6
12857 cat > conftest.c <<EOF
12858 int main (void) { return 0; }
12860 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12861 -o conftest.o conftest.c
12862 -Wl,--no-undefined 1>&5'
12863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12864 (eval $ac_try) 2>&5
12866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; }
12869 pam_cv_ld_no_undefined=yes
12870 LDFLAGS="$LDFLAGS -Wl,--no-undefined"
12872 pam_cv_ld_no_undefined=no
12876 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_no_undefined" >&5
12877 $as_echo "$pam_cv_ld_no_undefined" >&6; }
12882 { $as_echo "$as_me:$LINENO: checking whether ld supports -O1" >&5
12883 $as_echo_n "checking whether ld supports -O1... " >&6; }
12884 if test "${pam_cv_ld_O1+set}" = set; then
12885 $as_echo_n "(cached) " >&6
12887 cat > conftest.c <<EOF
12888 int main (void) { return 0; }
12890 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
12891 -o conftest.o conftest.c
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }
12900 LDFLAGS="$LDFLAGS -Wl,-O1"
12906 { $as_echo "$as_me:$LINENO: result: $pam_cv_ld_O1" >&5
12907 $as_echo "$pam_cv_ld_O1" >&6; }
12912 # Check whether --enable-largefile was given.
12913 if test "${enable_largefile+set}" = set; then
12914 enableval=$enable_largefile;
12917 if test "$enable_largefile" != no; then
12919 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12920 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12921 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12922 $as_echo_n "(cached) " >&6
12924 ac_cv_sys_largefile_CC=no
12925 if test "$GCC" != yes; then
12928 # IRIX 6.2 and later do not support large files by default,
12929 # so use the C compiler's -n32 option if that helps.
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 #include <sys/types.h>
12937 /* Check that off_t can represent 2**63 - 1 correctly.
12938 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12939 since some C++ compilers masquerading as C compilers
12940 incorrectly reject 9223372036854775807. */
12941 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12942 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12943 && LARGE_OFF_T % 2147483647 == 1)
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12960 $as_echo "$ac_try_echo") >&5
12961 (eval "$ac_compile") 2>conftest.er1
12963 grep -v '^ *+' conftest.er1 >conftest.err
12965 cat conftest.err >&5
12966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
12973 $as_echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12979 rm -f core conftest.err conftest.$ac_objext
12981 rm -f conftest.$ac_objext
12982 if { (ac_try="$ac_compile"
12983 case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12988 $as_echo "$ac_try_echo") >&5
12989 (eval "$ac_compile") 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest.$ac_objext; then
12999 ac_cv_sys_largefile_CC=' -n32'; break
13001 $as_echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13007 rm -f core conftest.err conftest.$ac_objext
13011 rm -f conftest.$ac_ext
13014 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
13015 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13016 if test "$ac_cv_sys_largefile_CC" != no; then
13017 CC=$CC$ac_cv_sys_largefile_CC
13020 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13021 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13022 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13023 $as_echo_n "(cached) " >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 #include <sys/types.h>
13033 /* Check that off_t can represent 2**63 - 1 correctly.
13034 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13035 since some C++ compilers masquerading as C compilers
13036 incorrectly reject 9223372036854775807. */
13037 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13038 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13039 && LARGE_OFF_T % 2147483647 == 1)
13049 rm -f conftest.$ac_objext
13050 if { (ac_try="$ac_compile"
13051 case "(($ac_try" in
13052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053 *) ac_try_echo=$ac_try;;
13055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13056 $as_echo "$ac_try_echo") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
13067 ac_cv_sys_file_offset_bits=no; break
13069 $as_echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 #define _FILE_OFFSET_BITS 64
13083 #include <sys/types.h>
13084 /* Check that off_t can represent 2**63 - 1 correctly.
13085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13086 since some C++ compilers masquerading as C compilers
13087 incorrectly reject 9223372036854775807. */
13088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13090 && LARGE_OFF_T % 2147483647 == 1)
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13107 $as_echo "$ac_try_echo") >&5
13108 (eval "$ac_compile") 2>conftest.er1
13110 grep -v '^ *+' conftest.er1 >conftest.err
13112 cat conftest.err >&5
13113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); } && {
13115 test -z "$ac_c_werror_flag" ||
13116 test ! -s conftest.err
13117 } && test -s conftest.$ac_objext; then
13118 ac_cv_sys_file_offset_bits=64; break
13120 $as_echo "$as_me: failed program was:" >&5
13121 sed 's/^/| /' conftest.$ac_ext >&5
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13127 ac_cv_sys_file_offset_bits=unknown
13131 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
13132 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
13133 case $ac_cv_sys_file_offset_bits in #(
13136 cat >>confdefs.h <<_ACEOF
13137 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13142 if test $ac_cv_sys_file_offset_bits = unknown; then
13143 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
13144 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
13145 if test "${ac_cv_sys_large_files+set}" = set; then
13146 $as_echo_n "(cached) " >&6
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #include <sys/types.h>
13156 /* Check that off_t can represent 2**63 - 1 correctly.
13157 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13158 since some C++ compilers masquerading as C compilers
13159 incorrectly reject 9223372036854775807. */
13160 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13161 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13162 && LARGE_OFF_T % 2147483647 == 1)
13172 rm -f conftest.$ac_objext
13173 if { (ac_try="$ac_compile"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179 $as_echo "$ac_try_echo") >&5
13180 (eval "$ac_compile") 2>conftest.er1
13182 grep -v '^ *+' conftest.er1 >conftest.err
13184 cat conftest.err >&5
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } && {
13187 test -z "$ac_c_werror_flag" ||
13188 test ! -s conftest.err
13189 } && test -s conftest.$ac_objext; then
13190 ac_cv_sys_large_files=no; break
13192 $as_echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #define _LARGE_FILES 1
13206 #include <sys/types.h>
13207 /* Check that off_t can represent 2**63 - 1 correctly.
13208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13209 since some C++ compilers masquerading as C compilers
13210 incorrectly reject 9223372036854775807. */
13211 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13213 && LARGE_OFF_T % 2147483647 == 1)
13223 rm -f conftest.$ac_objext
13224 if { (ac_try="$ac_compile"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13230 $as_echo "$ac_try_echo") >&5
13231 (eval "$ac_compile") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1 >conftest.err
13235 cat conftest.err >&5
13236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } && {
13238 test -z "$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13240 } && test -s conftest.$ac_objext; then
13241 ac_cv_sys_large_files=1; break
13243 $as_echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.$ac_ext >&5
13249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13250 ac_cv_sys_large_files=unknown
13254 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
13255 $as_echo "$ac_cv_sys_large_files" >&6; }
13256 case $ac_cv_sys_large_files in #(
13259 cat >>confdefs.h <<_ACEOF
13260 #define _LARGE_FILES $ac_cv_sys_large_files
13269 if eval "test x$GCC = xyes -a $CC != icc"; then
13273 -Wbad-function-cast \
13276 -Wmissing-declarations \
13277 -Wmissing-prototypes \
13280 -Wstrict-prototypes \
13286 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
13290 CFLAGS="$CFLAGS $flag"
13296 if eval "test x$CC = xicc"; then
13299 -Wmissing-prototypes \
13302 -Wstrict-prototypes \
13311 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
13315 CFLAGS="$CFLAGS $flag"
13322 if test "x${CC_FOR_BUILD+set}" != "xset" ; then
13323 if test "x$cross_compiling" = "xyes" ; then
13324 for ac_prog in gcc cc
13326 # Extract the first word of "$ac_prog", so it can be a program name with args.
13327 set dummy $ac_prog; ac_word=$2
13328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
13331 $as_echo_n "(cached) " >&6
13333 if test -n "$CC_FOR_BUILD"; then
13334 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
13336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13337 for as_dir in $PATH
13340 test -z "$as_dir" && as_dir=.
13341 for ac_exec_ext in '' $ac_executable_extensions; do
13342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13343 ac_cv_prog_CC_FOR_BUILD="$ac_prog"
13344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13353 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
13354 if test -n "$CC_FOR_BUILD"; then
13355 { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
13356 $as_echo "$CC_FOR_BUILD" >&6; }
13358 { $as_echo "$as_me:$LINENO: result: no" >&5
13359 $as_echo "no" >&6; }
13363 test -n "$CC_FOR_BUILD" && break
13370 { $as_echo "$as_me:$LINENO: checking for CC_FOR_BUILD" >&5
13371 $as_echo_n "checking for CC_FOR_BUILD... " >&6; }
13372 { $as_echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
13373 $as_echo "$CC_FOR_BUILD" >&6; }
13376 if test "x${BUILD_CFLAGS+set}" != "xset" ; then
13377 if test "x$cross_compiling" = "xyes" ; then
13380 BUILD_CFLAGS=${CFLAGS}
13385 if test "x${BUILD_LDFLAGS+set}" != "xset" ; then
13386 if test "x$cross_compiling" = "xyes" ; then
13389 BUILD_LDFLAGS=${LDFLAGS}
13395 { $as_echo "$as_me:$LINENO: checking for __attribute__" >&5
13396 $as_echo_n "checking for __attribute__... " >&6; }
13397 if test "${ac_cv___attribute__+set}" = set; then
13398 $as_echo_n "(cached) " >&6
13401 cat >conftest.$ac_ext <<_ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h. */
13408 #include <stdlib.h>
13409 static void foo (void) __attribute__ ((unused));
13427 rm -f conftest.$ac_objext
13428 if { (ac_try="$ac_compile"
13429 case "(($ac_try" in
13430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13434 $as_echo "$ac_try_echo") >&5
13435 (eval "$ac_compile") 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } && {
13442 test -z "$ac_c_werror_flag" ||
13443 test ! -s conftest.err
13444 } && test -s conftest.$ac_objext; then
13445 ac_cv___attribute__=yes
13447 $as_echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_cv___attribute__=no
13453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13456 if test "$ac_cv___attribute__" = "yes"; then
13458 cat >>confdefs.h <<\_ACEOF
13459 #define UNUSED __attribute__ ((unused))
13463 cat >>confdefs.h <<\_ACEOF
13464 #define UNUSED /**/
13468 { $as_echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
13469 $as_echo "$ac_cv___attribute__" >&6; }
13472 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
13473 $as_echo_n "checking for .symver assembler directive... " >&6; }
13474 if test "${libc_cv_asm_symver_directive+set}" = set; then
13475 $as_echo_n "(cached) " >&6
13477 cat > conftest.s <<EOF
13478 ${libc_cv_dot_text}
13480 .symver _sym,sym@VERS
13482 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
13483 libc_cv_asm_symver_directive=yes
13485 libc_cv_asm_symver_directive=no
13489 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
13490 $as_echo "$libc_cv_asm_symver_directive" >&6; }
13491 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
13492 $as_echo_n "checking for ld --version-script... " >&6; }
13493 if test "${libc_cv_ld_version_script_option+set}" = set; then
13494 $as_echo_n "(cached) " >&6
13496 if test $libc_cv_asm_symver_directive = yes; then
13497 cat > conftest.s <<EOF
13498 ${libc_cv_dot_text}
13500 .symver _sym,sym@VERS
13502 cat > conftest.map <<EOF
13511 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
13513 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
13514 -o conftest.so conftest.o
13515 -nostartfiles -nostdlib
13516 -Wl,--version-script,conftest.map
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; };
13524 libc_cv_ld_version_script_option=yes
13526 libc_cv_ld_version_script_option=no
13529 libc_cv_ld_version_script_option=no
13532 libc_cv_ld_version_script_option=no
13536 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
13537 $as_echo "$libc_cv_ld_version_script_option" >&6; }
13538 if test "$libc_cv_ld_version_script_option" = "yes"; then
13539 HAVE_VERSIONING_TRUE=
13540 HAVE_VERSIONING_FALSE='#'
13542 HAVE_VERSIONING_TRUE='#'
13543 HAVE_VERSIONING_FALSE=
13547 # Check whether --enable-pie was given.
13548 if test "${enable_pie+set}" = set; then
13549 enableval=$enable_pie; USE_PIE=$enableval
13555 { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
13556 $as_echo_n "checking for -fpie... " >&6; }
13557 if test "${libc_cv_fpie+set}" = set; then
13558 $as_echo_n "(cached) " >&6
13560 cat > conftest.c <<EOF
13562 main () { return 0;}
13564 if test "$USE_PIE" = "yes" -a "$CC" != "icc" &&
13565 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
13566 -o conftest conftest.c 1>&5'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }
13583 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
13584 $as_echo "$libc_cv_fpie" >&6; }
13591 # Check whether --enable-prelude was given.
13592 if test "${enable_prelude+set}" = set; then
13593 enableval=$enable_prelude; WITH_PRELUDE=$enableval
13598 if test "$WITH_PRELUDE" == "yes" ; then
13600 # Check whether --with-libprelude-prefix was given.
13601 if test "${with_libprelude_prefix+set}" = set; then
13602 withval=$with_libprelude_prefix; libprelude_config_prefix="$withval"
13604 libprelude_config_prefix=""
13608 if test x$libprelude_config_prefix != x ; then
13609 if test x${LIBPRELUDE_CONFIG+set} != xset ; then
13610 LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
13614 # Extract the first word of "libprelude-config", so it can be a program name with args.
13615 set dummy libprelude-config; ac_word=$2
13616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then
13619 $as_echo_n "(cached) " >&6
13621 case $LIBPRELUDE_CONFIG in
13623 ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
13626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13627 for as_dir in $PATH
13630 test -z "$as_dir" && as_dir=.
13631 for ac_exec_ext in '' $ac_executable_extensions; do
13632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13633 ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
13645 LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
13646 if test -n "$LIBPRELUDE_CONFIG"; then
13647 { $as_echo "$as_me:$LINENO: result: $LIBPRELUDE_CONFIG" >&5
13648 $as_echo "$LIBPRELUDE_CONFIG" >&6; }
13650 { $as_echo "$as_me:$LINENO: result: no" >&5
13651 $as_echo "no" >&6; }
13655 min_libprelude_version=0.9.0
13656 { $as_echo "$as_me:$LINENO: checking for libprelude - version >= $min_libprelude_version" >&5
13657 $as_echo_n "checking for libprelude - version >= $min_libprelude_version... " >&6; }
13659 if test "$LIBPRELUDE_CONFIG" = "no" ; then
13662 LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
13663 LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --pthread-cflags`
13664 LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
13665 LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
13666 LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
13667 LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
13668 libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
13671 ac_save_CFLAGS="$CFLAGS"
13672 ac_save_LDFLAGS="$LDFLAGS"
13673 ac_save_LIBS="$LIBS"
13674 CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
13675 LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
13676 LIBS="$LIBS $LIBPRELUDE_LIBS"
13677 rm -f conf.libpreludetest
13678 if test "$cross_compiling" = yes; then
13679 echo $ac_n "cross compiling; assumed OK... $ac_c"
13681 cat >conftest.$ac_ext <<_ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13689 #include <stdlib.h>
13690 #include <string.h>
13691 #include <libprelude/prelude.h>
13696 system ("touch conf.libpreludetest");
13698 if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
13700 printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
13701 "$libprelude_config_version", prelude_check_version(NULL) );
13702 printf("*** was found! If libprelude-config was correct, then it is best\n");
13703 printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
13704 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13705 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13706 printf("*** required on your system.\n");
13707 printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
13708 printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
13709 printf("*** before re-running configure\n");
13711 else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) )
13713 printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
13714 printf("*** library (version %s)\n", prelude_check_version(NULL) );
13718 if ( prelude_check_version( "$min_libprelude_version" ) )
13724 printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
13725 prelude_check_version(NULL) );
13726 printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
13727 "$min_libprelude_version" );
13728 printf("*** LIBPRELUDE is always available from http://www.prelude-ids.org/download/releases.\n");
13730 printf("*** If you have already installed a sufficiently new version, this error\n");
13731 printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
13732 printf("*** being found. The easiest way to fix this is to remove the old version\n");
13733 printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
13734 printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
13735 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13736 printf("*** so that the correct libraries are found at run-time))\n");
13743 rm -f conftest$ac_exeext
13744 if { (ac_try="$ac_link"
13745 case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13750 $as_echo "$ac_try_echo") >&5
13751 (eval "$ac_link") 2>&5
13753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13755 { (case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13760 $as_echo "$ac_try_echo") >&5
13761 (eval "$ac_try") 2>&5
13763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; }; then
13767 $as_echo "$as_me: program exited with status $ac_status" >&5
13768 $as_echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13771 ( exit $ac_status )
13774 rm -rf conftest.dSYM
13775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13779 CFLAGS="$ac_save_CFLAGS"
13780 LIBS="$ac_save_LIBS"
13781 LDFLAGS="$ac_save_LDFLAGS"
13784 if test "x$no_libprelude" = x ; then
13785 { $as_echo "$as_me:$LINENO: result: yes" >&5
13786 $as_echo "yes" >&6; }
13789 if test -f conf.libpreludetest ; then
13792 { $as_echo "$as_me:$LINENO: result: no" >&5
13793 $as_echo "no" >&6; }
13795 if test "$LIBPRELUDE_CONFIG" = "no" ; then
13796 echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
13797 echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
13798 echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
13799 echo "*** full path to libprelude-config."
13801 if test -f conf.libpreludetest ; then
13804 echo "*** Could not run libprelude test program, checking why..."
13805 CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
13806 LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
13807 LIBS="$LIBS $LIBPRELUDE_LIBS"
13808 cat >conftest.$ac_ext <<_ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13816 #include <stdlib.h>
13817 #include <string.h>
13818 #include <libprelude/prelude.h>
13823 return !!prelude_check_version(NULL);
13828 rm -f conftest.$ac_objext conftest$ac_exeext
13829 if { (ac_try="$ac_link"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13835 $as_echo "$ac_try_echo") >&5
13836 (eval "$ac_link") 2>conftest.er1
13838 grep -v '^ *+' conftest.er1 >conftest.err
13840 cat conftest.err >&5
13841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); } && {
13843 test -z "$ac_c_werror_flag" ||
13844 test ! -s conftest.err
13845 } && test -s conftest$ac_exeext && {
13846 test "$cross_compiling" = yes ||
13847 $as_test_x conftest$ac_exeext
13849 echo "*** The test program compiled, but did not run. This usually means"
13850 echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
13851 echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
13852 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13853 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13854 echo "*** is required on your system"
13856 echo "*** If you have an old version installed, it is best to remove it, although"
13857 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13860 $as_echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13863 echo "*** The test program failed to compile or link. See the file config.log for the"
13864 echo "*** exact error that occured. This usually means LIBPRELUDE was incorrectly installed"
13865 echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
13866 echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG"
13869 rm -rf conftest.dSYM
13870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13871 conftest$ac_exeext conftest.$ac_ext
13872 CFLAGS="$ac_save_CFLAGS"
13873 LDFLAGS="$ac_save_LDFLAGS"
13874 LIBS="$ac_save_LIBS"
13877 LIBPRELUDE_CFLAGS=""
13878 LIBPRELUDE_LDFLAGS=""
13882 rm -f conf.libpreludetest
13890 if test "$LIBPRELUDE_CONFIG" != "no" ; then
13891 LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
13895 # Check whether --enable-debug was given.
13896 if test "${enable_debug+set}" = set; then
13897 enableval=$enable_debug;
13901 if test x"$enable_debug" = x"yes" ; then
13903 cat >>confdefs.h <<\_ACEOF
13904 #define PAM_DEBUG /**/
13909 # Check whether --enable-securedir was given.
13910 if test "${enable_securedir+set}" = set; then
13911 enableval=$enable_securedir; SECUREDIR=$enableval
13913 SECUREDIR=$libdir/security
13918 # Check whether --enable-isadir was given.
13919 if test "${enable_isadir+set}" = set; then
13920 enableval=$enable_isadir; ISA=$enableval
13922 ISA=../../`basename $libdir`/security
13927 cat >>confdefs.h <<_ACEOF
13928 #define _PAM_ISA "$ISA"
13931 { $as_echo "$as_me:$LINENO: result: Defining \$ISA to \"$ISA\"" >&5
13932 $as_echo "Defining \$ISA to \"$ISA\"" >&6; }
13934 # Check whether --enable-sconfigdir was given.
13935 if test "${enable_sconfigdir+set}" = set; then
13936 enableval=$enable_sconfigdir; SCONFIGDIR=$enableval
13938 SCONFIGDIR=$sysconfdir/security
13943 # Check whether --enable-pamlocking was given.
13944 if test "${enable_pamlocking+set}" = set; then
13945 enableval=$enable_pamlocking;
13949 if test x"$enable_pamlocking" = "xyes"; then
13951 cat >>confdefs.h <<\_ACEOF
13952 #define PAM_LOCKING /**/
13957 # Check whether --enable-read-both-confs was given.
13958 if test "${enable_read_both_confs+set}" = set; then
13959 enableval=$enable_read_both_confs;
13963 if test x"$enable_read_both_confs" = "xyes"; then
13965 cat >>confdefs.h <<\_ACEOF
13966 #define PAM_READ_BOTH_CONFS /**/
13971 # Check whether --enable-lckpwdf was given.
13972 if test "${enable_lckpwdf+set}" = set; then
13973 enableval=$enable_lckpwdf; WITH_LCKPWDF=$enableval
13978 if test "$WITH_LCKPWDF" == "yes" ; then
13980 cat >>confdefs.h <<\_ACEOF
13981 #define USE_LCKPWDF 1
13987 for ac_header in paths.h
13989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13992 $as_echo_n "checking for $ac_header... " >&6; }
13993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13994 $as_echo_n "(cached) " >&6
13996 ac_res=`eval 'as_val=${'$as_ac_Header'}
13997 $as_echo "$as_val"'`
13998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13999 $as_echo "$ac_res" >&6; }
14001 # Is the header compilable?
14002 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14003 $as_echo_n "checking $ac_header usability... " >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14011 #include <$ac_header>
14013 rm -f conftest.$ac_objext
14014 if { (ac_try="$ac_compile"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_header_compiler=yes
14033 $as_echo "$as_me: failed program was:" >&5
14034 sed 's/^/| /' conftest.$ac_ext >&5
14036 ac_header_compiler=no
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 $as_echo "$ac_header_compiler" >&6; }
14043 # Is the header present?
14044 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14045 $as_echo_n "checking $ac_header presence... " >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <$ac_header>
14054 if { (ac_try="$ac_cpp conftest.$ac_ext"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14060 $as_echo "$ac_try_echo") >&5
14061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } >/dev/null && {
14068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14069 test ! -s conftest.err
14071 ac_header_preproc=yes
14073 $as_echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_header_preproc=no
14079 rm -f conftest.err conftest.$ac_ext
14080 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14081 $as_echo "$ac_header_preproc" >&6; }
14083 # So? What about this header?
14084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14087 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14090 ac_header_preproc=yes
14093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14094 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14096 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14098 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14100 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14102 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14104 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14109 $as_echo_n "checking for $ac_header... " >&6; }
14110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14111 $as_echo_n "(cached) " >&6
14113 eval "$as_ac_Header=\$ac_header_preproc"
14115 ac_res=`eval 'as_val=${'$as_ac_Header'}
14116 $as_echo "$as_val"'`
14117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118 $as_echo "$ac_res" >&6; }
14121 as_val=`eval 'as_val=${'$as_ac_Header'}
14122 $as_echo "$as_val"'`
14123 if test "x$as_val" = x""yes; then
14124 cat >>confdefs.h <<_ACEOF
14125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14133 # Check whether --with-mailspool was given.
14134 if test "${with_mailspool+set}" = set; then
14135 withval=$with_mailspool; with_mailspool=${withval}
14138 if test x$with_mailspool != x ; then
14139 pam_mail_spool="\"$with_mailspool\""
14141 if test "$cross_compiling" = yes; then
14142 pam_mail_spool="\"/var/spool/mail\""
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14153 #ifdef _PATH_MAILDIR
14160 rm -f conftest$ac_exeext
14161 if { (ac_try="$ac_link"
14162 case "(($ac_try" in
14163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164 *) ac_try_echo=$ac_try;;
14166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14167 $as_echo "$ac_try_echo") >&5
14168 (eval "$ac_link") 2>&5
14170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14172 { (case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178 (eval "$ac_try") 2>&5
14180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 pam_mail_spool="_PATH_MAILDIR"
14184 $as_echo "$as_me: program exited with status $ac_status" >&5
14185 $as_echo "$as_me: failed program was:" >&5
14186 sed 's/^/| /' conftest.$ac_ext >&5
14188 ( exit $ac_status )
14189 pam_mail_spool="\"/var/spool/mail\""
14191 rm -rf conftest.dSYM
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14198 cat >>confdefs.h <<_ACEOF
14199 #define PAM_PATH_MAILDIR $pam_mail_spool
14204 # Check whether --with-xauth was given.
14205 if test "${with_xauth+set}" = set; then
14206 withval=$with_xauth; pam_xauth_path=${withval}
14209 if test x$with_xauth == x ; then
14210 # Extract the first word of "xauth", so it can be a program name with args.
14211 set dummy xauth; ac_word=$2
14212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14213 $as_echo_n "checking for $ac_word... " >&6; }
14214 if test "${ac_cv_path_pam_xauth_path+set}" = set; then
14215 $as_echo_n "(cached) " >&6
14217 case $pam_xauth_path in
14219 ac_cv_path_pam_xauth_path="$pam_xauth_path" # Let the user override the test with a path.
14222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14223 for as_dir in $PATH
14226 test -z "$as_dir" && as_dir=.
14227 for ac_exec_ext in '' $ac_executable_extensions; do
14228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14229 ac_cv_path_pam_xauth_path="$as_dir/$ac_word$ac_exec_ext"
14230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14240 pam_xauth_path=$ac_cv_path_pam_xauth_path
14241 if test -n "$pam_xauth_path"; then
14242 { $as_echo "$as_me:$LINENO: result: $pam_xauth_path" >&5
14243 $as_echo "$pam_xauth_path" >&6; }
14245 { $as_echo "$as_me:$LINENO: result: no" >&5
14246 $as_echo "no" >&6; }
14250 if test x$pam_xauth_path == x/usr/X11R6/bin/xauth ; then
14251 unset pam_xauth_path
14255 if test x$pam_xauth_path != x ; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define PAM_PATH_XAUTH "$pam_xauth_path"
14263 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14266 $as_echo_n "(cached) " >&6
14268 ac_check_lib_save_LIBS=$LIBS
14270 cat >conftest.$ac_ext <<_ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h. */
14277 /* Override any GCC internal prototype to avoid an error.
14278 Use char because int might match the return type of a GCC
14279 builtin and then its argument prototype would still apply. */
14292 rm -f conftest.$ac_objext conftest$ac_exeext
14293 if { (ac_try="$ac_link"
14294 case "(($ac_try" in
14295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296 *) ac_try_echo=$ac_try;;
14298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14299 $as_echo "$ac_try_echo") >&5
14300 (eval "$ac_link") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest$ac_exeext && {
14310 test "$cross_compiling" = yes ||
14311 $as_test_x conftest$ac_exeext
14313 ac_cv_lib_dl_dlopen=yes
14315 $as_echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14318 ac_cv_lib_dl_dlopen=no
14321 rm -rf conftest.dSYM
14322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323 conftest$ac_exeext conftest.$ac_ext
14324 LIBS=$ac_check_lib_save_LIBS
14326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14327 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14328 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
14336 # Check for cracklib
14337 # Check whether --enable-cracklib was given.
14338 if test "${enable_cracklib+set}" = set; then
14339 enableval=$enable_cracklib; WITH_CRACKLIB=$enableval
14344 if test x"$WITH_CRACKLIB" != xno ; then
14346 for ac_header in crack.h
14348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 $as_echo_n "checking for $ac_header... " >&6; }
14352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14353 $as_echo_n "(cached) " >&6
14355 ac_res=`eval 'as_val=${'$as_ac_Header'}
14356 $as_echo "$as_val"'`
14357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14358 $as_echo "$ac_res" >&6; }
14360 # Is the header compilable?
14361 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14362 $as_echo_n "checking $ac_header usability... " >&6; }
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 $ac_includes_default
14370 #include <$ac_header>
14372 rm -f conftest.$ac_objext
14373 if { (ac_try="$ac_compile"
14374 case "(($ac_try" in
14375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14376 *) ac_try_echo=$ac_try;;
14378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14379 $as_echo "$ac_try_echo") >&5
14380 (eval "$ac_compile") 2>conftest.er1
14382 grep -v '^ *+' conftest.er1 >conftest.err
14384 cat conftest.err >&5
14385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } && {
14387 test -z "$ac_c_werror_flag" ||
14388 test ! -s conftest.err
14389 } && test -s conftest.$ac_objext; then
14390 ac_header_compiler=yes
14392 $as_echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_header_compiler=no
14398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14400 $as_echo "$ac_header_compiler" >&6; }
14402 # Is the header present?
14403 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14404 $as_echo_n "checking $ac_header presence... " >&6; }
14405 cat >conftest.$ac_ext <<_ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 #include <$ac_header>
14413 if { (ac_try="$ac_cpp conftest.$ac_ext"
14414 case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14419 $as_echo "$ac_try_echo") >&5
14420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 grep -v '^ *+' conftest.er1 >conftest.err
14424 cat conftest.err >&5
14425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } >/dev/null && {
14427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14430 ac_header_preproc=yes
14432 $as_echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14435 ac_header_preproc=no
14438 rm -f conftest.err conftest.$ac_ext
14439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 $as_echo "$ac_header_preproc" >&6; }
14442 # So? What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14446 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14449 ac_header_preproc=yes
14452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14453 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14455 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14457 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14459 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14463 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 $as_echo_n "checking for $ac_header... " >&6; }
14469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14470 $as_echo_n "(cached) " >&6
14472 eval "$as_ac_Header=\$ac_header_preproc"
14474 ac_res=`eval 'as_val=${'$as_ac_Header'}
14475 $as_echo "$as_val"'`
14476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14477 $as_echo "$ac_res" >&6; }
14480 as_val=`eval 'as_val=${'$as_ac_Header'}
14481 $as_echo "$as_val"'`
14482 if test "x$as_val" = x""yes; then
14483 cat >>confdefs.h <<_ACEOF
14484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14486 { $as_echo "$as_me:$LINENO: checking for FascistCheck in -lcrack" >&5
14487 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
14488 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then
14489 $as_echo_n "(cached) " >&6
14491 ac_check_lib_save_LIBS=$LIBS
14492 LIBS="-lcrack $LIBS"
14493 cat >conftest.$ac_ext <<_ACEOF
14496 cat confdefs.h >>conftest.$ac_ext
14497 cat >>conftest.$ac_ext <<_ACEOF
14498 /* end confdefs.h. */
14500 /* Override any GCC internal prototype to avoid an error.
14501 Use char because int might match the return type of a GCC
14502 builtin and then its argument prototype would still apply. */
14506 char FascistCheck ();
14510 return FascistCheck ();
14515 rm -f conftest.$ac_objext conftest$ac_exeext
14516 if { (ac_try="$ac_link"
14517 case "(($ac_try" in
14518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14519 *) ac_try_echo=$ac_try;;
14521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14522 $as_echo "$ac_try_echo") >&5
14523 (eval "$ac_link") 2>conftest.er1
14525 grep -v '^ *+' conftest.er1 >conftest.err
14527 cat conftest.err >&5
14528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } && {
14530 test -z "$ac_c_werror_flag" ||
14531 test ! -s conftest.err
14532 } && test -s conftest$ac_exeext && {
14533 test "$cross_compiling" = yes ||
14534 $as_test_x conftest$ac_exeext
14536 ac_cv_lib_crack_FascistCheck=yes
14538 $as_echo "$as_me: failed program was:" >&5
14539 sed 's/^/| /' conftest.$ac_ext >&5
14541 ac_cv_lib_crack_FascistCheck=no
14544 rm -rf conftest.dSYM
14545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14546 conftest$ac_exeext conftest.$ac_ext
14547 LIBS=$ac_check_lib_save_LIBS
14549 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crack_FascistCheck" >&5
14550 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
14551 if test "x$ac_cv_lib_crack_FascistCheck" = x""yes; then
14565 if test ! -z "$LIBCRACK"; then
14566 HAVE_LIBCRACK_TRUE=
14567 HAVE_LIBCRACK_FALSE='#'
14569 HAVE_LIBCRACK_TRUE='#'
14570 HAVE_LIBCRACK_FALSE=
14574 # Check whether --enable-audit was given.
14575 if test "${enable_audit+set}" = set; then
14576 enableval=$enable_audit; WITH_LIBAUDIT=$enableval
14581 if test x"$WITH_LIBAUDIT" != xno ; then
14582 if test "${ac_cv_header_libaudit_h+set}" = set; then
14583 { $as_echo "$as_me:$LINENO: checking for libaudit.h" >&5
14584 $as_echo_n "checking for libaudit.h... " >&6; }
14585 if test "${ac_cv_header_libaudit_h+set}" = set; then
14586 $as_echo_n "(cached) " >&6
14588 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
14589 $as_echo "$ac_cv_header_libaudit_h" >&6; }
14591 # Is the header compilable?
14592 { $as_echo "$as_me:$LINENO: checking libaudit.h usability" >&5
14593 $as_echo_n "checking libaudit.h usability... " >&6; }
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14600 $ac_includes_default
14601 #include <libaudit.h>
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14610 $as_echo "$ac_try_echo") >&5
14611 (eval "$ac_compile") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest.$ac_objext; then
14621 ac_header_compiler=yes
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_header_compiler=no
14629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14630 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14631 $as_echo "$ac_header_compiler" >&6; }
14633 # Is the header present?
14634 { $as_echo "$as_me:$LINENO: checking libaudit.h presence" >&5
14635 $as_echo_n "checking libaudit.h presence... " >&6; }
14636 cat >conftest.$ac_ext <<_ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 #include <libaudit.h>
14644 if { (ac_try="$ac_cpp conftest.$ac_ext"
14645 case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14650 $as_echo "$ac_try_echo") >&5
14651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } >/dev/null && {
14658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14661 ac_header_preproc=yes
14663 $as_echo "$as_me: failed program was:" >&5
14664 sed 's/^/| /' conftest.$ac_ext >&5
14666 ac_header_preproc=no
14669 rm -f conftest.err conftest.$ac_ext
14670 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14671 $as_echo "$ac_header_preproc" >&6; }
14673 # So? What about this header?
14674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14676 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&5
14677 $as_echo "$as_me: WARNING: libaudit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14678 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the compiler's result" >&5
14679 $as_echo "$as_me: WARNING: libaudit.h: proceeding with the compiler's result" >&2;}
14680 ac_header_preproc=yes
14683 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: present but cannot be compiled" >&5
14684 $as_echo "$as_me: WARNING: libaudit.h: present but cannot be compiled" >&2;}
14685 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: check for missing prerequisite headers?" >&5
14686 $as_echo "$as_me: WARNING: libaudit.h: check for missing prerequisite headers?" >&2;}
14687 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: see the Autoconf documentation" >&5
14688 $as_echo "$as_me: WARNING: libaudit.h: see the Autoconf documentation" >&2;}
14689 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: section \"Present But Cannot Be Compiled\"" >&5
14690 $as_echo "$as_me: WARNING: libaudit.h: section \"Present But Cannot Be Compiled\"" >&2;}
14691 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: proceeding with the preprocessor's result" >&5
14692 $as_echo "$as_me: WARNING: libaudit.h: proceeding with the preprocessor's result" >&2;}
14693 { $as_echo "$as_me:$LINENO: WARNING: libaudit.h: in the future, the compiler will take precedence" >&5
14694 $as_echo "$as_me: WARNING: libaudit.h: in the future, the compiler will take precedence" >&2;}
14698 { $as_echo "$as_me:$LINENO: checking for libaudit.h" >&5
14699 $as_echo_n "checking for libaudit.h... " >&6; }
14700 if test "${ac_cv_header_libaudit_h+set}" = set; then
14701 $as_echo_n "(cached) " >&6
14703 ac_cv_header_libaudit_h=$ac_header_preproc
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libaudit_h" >&5
14706 $as_echo "$ac_cv_header_libaudit_h" >&6; }
14709 if test "x$ac_cv_header_libaudit_h" = x""yes; then
14710 { $as_echo "$as_me:$LINENO: checking for audit_log_acct_message in -laudit" >&5
14711 $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
14712 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then
14713 $as_echo_n "(cached) " >&6
14715 ac_check_lib_save_LIBS=$LIBS
14716 LIBS="-laudit $LIBS"
14717 cat >conftest.$ac_ext <<_ACEOF
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14724 /* Override any GCC internal prototype to avoid an error.
14725 Use char because int might match the return type of a GCC
14726 builtin and then its argument prototype would still apply. */
14730 char audit_log_acct_message ();
14734 return audit_log_acct_message ();
14739 rm -f conftest.$ac_objext conftest$ac_exeext
14740 if { (ac_try="$ac_link"
14741 case "(($ac_try" in
14742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743 *) ac_try_echo=$ac_try;;
14745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14746 $as_echo "$ac_try_echo") >&5
14747 (eval "$ac_link") 2>conftest.er1
14749 grep -v '^ *+' conftest.er1 >conftest.err
14751 cat conftest.err >&5
14752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } && {
14754 test -z "$ac_c_werror_flag" ||
14755 test ! -s conftest.err
14756 } && test -s conftest$ac_exeext && {
14757 test "$cross_compiling" = yes ||
14758 $as_test_x conftest$ac_exeext
14760 ac_cv_lib_audit_audit_log_acct_message=yes
14762 $as_echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14765 ac_cv_lib_audit_audit_log_acct_message=no
14768 rm -rf conftest.dSYM
14769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14770 conftest$ac_exeext conftest.$ac_ext
14771 LIBS=$ac_check_lib_save_LIBS
14773 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
14774 $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
14775 if test "x$ac_cv_lib_audit_audit_log_acct_message" = x""yes; then
14781 { $as_echo "$as_me:$LINENO: checking for struct audit_tty_status" >&5
14782 $as_echo_n "checking for struct audit_tty_status... " >&6; }
14783 if test "${ac_cv_type_struct_audit_tty_status+set}" = set; then
14784 $as_echo_n "(cached) " >&6
14786 ac_cv_type_struct_audit_tty_status=no
14787 cat >conftest.$ac_ext <<_ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <libaudit.h>
14798 if (sizeof (struct audit_tty_status))
14804 rm -f conftest.$ac_objext
14805 if { (ac_try="$ac_compile"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14811 $as_echo "$ac_try_echo") >&5
14812 (eval "$ac_compile") 2>conftest.er1
14814 grep -v '^ *+' conftest.er1 >conftest.err
14816 cat conftest.err >&5
14817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } && {
14819 test -z "$ac_c_werror_flag" ||
14820 test ! -s conftest.err
14821 } && test -s conftest.$ac_objext; then
14822 cat >conftest.$ac_ext <<_ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 #include <libaudit.h>
14833 if (sizeof ((struct audit_tty_status)))
14839 rm -f conftest.$ac_objext
14840 if { (ac_try="$ac_compile"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14846 $as_echo "$ac_try_echo") >&5
14847 (eval "$ac_compile") 2>conftest.er1
14849 grep -v '^ *+' conftest.er1 >conftest.err
14851 cat conftest.err >&5
14852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } && {
14854 test -z "$ac_c_werror_flag" ||
14855 test ! -s conftest.err
14856 } && test -s conftest.$ac_objext; then
14859 $as_echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_cv_type_struct_audit_tty_status=yes
14865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 $as_echo "$as_me: failed program was:" >&5
14868 sed 's/^/| /' conftest.$ac_ext >&5
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_audit_tty_status" >&5
14876 $as_echo "$ac_cv_type_struct_audit_tty_status" >&6; }
14877 if test "x$ac_cv_type_struct_audit_tty_status" = x""yes; then
14878 HAVE_AUDIT_TTY_STATUS=yes
14880 HAVE_AUDIT_TTY_STATUS=""
14887 if test ! -z "$LIBAUDIT" -a "$ac_cv_header_libaudit_h" != "no" ; then
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_LIBAUDIT 1
14894 if test ! -z "$HAVE_AUDIT_TTY_STATUS" ; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_AUDIT_TTY_STATUS 1
14905 if test "x$HAVE_AUDIT_TTY_STATUS" = xyes; then
14906 HAVE_AUDIT_TTY_STATUS_TRUE=
14907 HAVE_AUDIT_TTY_STATUS_FALSE='#'
14909 HAVE_AUDIT_TTY_STATUS_TRUE='#'
14910 HAVE_AUDIT_TTY_STATUS_FALSE=
14916 for ac_header in xcrypt.h crypt.h
14918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14920 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14921 $as_echo_n "checking for $ac_header... " >&6; }
14922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14923 $as_echo_n "(cached) " >&6
14925 ac_res=`eval 'as_val=${'$as_ac_Header'}
14926 $as_echo "$as_val"'`
14927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14928 $as_echo "$ac_res" >&6; }
14930 # Is the header compilable?
14931 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14932 $as_echo_n "checking $ac_header usability... " >&6; }
14933 cat >conftest.$ac_ext <<_ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 #include <$ac_header>
14942 rm -f conftest.$ac_objext
14943 if { (ac_try="$ac_compile"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14949 $as_echo "$ac_try_echo") >&5
14950 (eval "$ac_compile") 2>conftest.er1
14952 grep -v '^ *+' conftest.er1 >conftest.err
14954 cat conftest.err >&5
14955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest.$ac_objext; then
14960 ac_header_compiler=yes
14962 $as_echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 ac_header_compiler=no
14968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14969 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 $as_echo "$ac_header_compiler" >&6; }
14972 # Is the header present?
14973 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 $as_echo_n "checking $ac_header presence... " >&6; }
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 #include <$ac_header>
14983 if { (ac_try="$ac_cpp conftest.$ac_ext"
14984 case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14989 $as_echo "$ac_try_echo") >&5
14990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } >/dev/null && {
14997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14998 test ! -s conftest.err
15000 ac_header_preproc=yes
15002 $as_echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15005 ac_header_preproc=no
15008 rm -f conftest.err conftest.$ac_ext
15009 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 $as_echo "$ac_header_preproc" >&6; }
15012 # So? What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15016 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15018 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15019 ac_header_preproc=yes
15022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15025 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15027 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15029 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15031 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15033 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15037 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15038 $as_echo_n "checking for $ac_header... " >&6; }
15039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15040 $as_echo_n "(cached) " >&6
15042 eval "$as_ac_Header=\$ac_header_preproc"
15044 ac_res=`eval 'as_val=${'$as_ac_Header'}
15045 $as_echo "$as_val"'`
15046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15047 $as_echo "$ac_res" >&6; }
15050 as_val=`eval 'as_val=${'$as_ac_Header'}
15051 $as_echo "$as_val"'`
15052 if test "x$as_val" = x""yes; then
15053 cat >>confdefs.h <<_ACEOF
15054 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15061 if test "x$ac_cv_header_xcrypt_h" = "xyes"; then
15062 crypt_libs="xcrypt crypt"
15069 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
15070 $as_echo_n "checking for library containing crypt... " >&6; }
15071 if test "${ac_cv_search_crypt+set}" = set; then
15072 $as_echo_n "(cached) " >&6
15074 ac_func_search_save_LIBS=$LIBS
15075 cat >conftest.$ac_ext <<_ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15082 /* Override any GCC internal prototype to avoid an error.
15083 Use char because int might match the return type of a GCC
15084 builtin and then its argument prototype would still apply. */
15097 for ac_lib in '' $crypt_libs; do
15098 if test -z "$ac_lib"; then
15099 ac_res="none required"
15102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15104 rm -f conftest.$ac_objext conftest$ac_exeext
15105 if { (ac_try="$ac_link"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15111 $as_echo "$ac_try_echo") >&5
15112 (eval "$ac_link") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1 >conftest.err
15116 cat conftest.err >&5
15117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_c_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest$ac_exeext && {
15122 test "$cross_compiling" = yes ||
15123 $as_test_x conftest$ac_exeext
15125 ac_cv_search_crypt=$ac_res
15127 $as_echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15133 rm -rf conftest.dSYM
15134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15136 if test "${ac_cv_search_crypt+set}" = set; then
15140 if test "${ac_cv_search_crypt+set}" = set; then
15143 ac_cv_search_crypt=no
15145 rm conftest.$ac_ext
15146 LIBS=$ac_func_search_save_LIBS
15148 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
15149 $as_echo "$ac_cv_search_crypt" >&6; }
15150 ac_res=$ac_cv_search_crypt
15151 if test "$ac_res" != no; then
15152 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15153 LIBCRYPT="-l$ac_lib"
15160 for ac_func in crypt_r crypt_gensalt_r
15162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15164 $as_echo_n "checking for $ac_func... " >&6; }
15165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15166 $as_echo_n "(cached) " >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15176 #define $ac_func innocuous_$ac_func
15178 /* System header to define __stub macros and hopefully few prototypes,
15179 which can conflict with char $ac_func (); below.
15180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15181 <limits.h> exists even on freestanding compilers. */
15184 # include <limits.h>
15186 # include <assert.h>
15191 /* Override any GCC internal prototype to avoid an error.
15192 Use char because int might match the return type of a GCC
15193 builtin and then its argument prototype would still apply. */
15198 /* The GNU C library defines this for functions which it implements
15199 to always fail with ENOSYS. Some functions are actually named
15200 something starting with __ and the normal name is an alias. */
15201 #if defined __stub_$ac_func || defined __stub___$ac_func
15208 return $ac_func ();
15213 rm -f conftest.$ac_objext conftest$ac_exeext
15214 if { (ac_try="$ac_link"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221 (eval "$ac_link") 2>conftest.er1
15223 grep -v '^ *+' conftest.er1 >conftest.err
15225 cat conftest.err >&5
15226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest$ac_exeext && {
15231 test "$cross_compiling" = yes ||
15232 $as_test_x conftest$ac_exeext
15234 eval "$as_ac_var=yes"
15236 $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 eval "$as_ac_var=no"
15242 rm -rf conftest.dSYM
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15246 ac_res=`eval 'as_val=${'$as_ac_var'}
15247 $as_echo "$as_val"'`
15248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15249 $as_echo "$ac_res" >&6; }
15250 as_val=`eval 'as_val=${'$as_ac_var'}
15251 $as_echo "$as_val"'`
15252 if test "x$as_val" = x""yes; then
15253 cat >>confdefs.h <<_ACEOF
15254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15262 if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then
15264 cat >>confdefs.h <<\_ACEOF
15265 #define HAVE_LIBXCRYPT 1
15271 # Check whether --with-randomdev was given.
15272 if test "${with_randomdev+set}" = set; then
15273 withval=$with_randomdev; opt_randomdev=$withval
15276 if test "$opt_randomdev" = yes -o -z "$opt_randomdev"; then
15277 opt_randomdev="/dev/urandom"
15278 elif test "$opt_randomdev" = no; then
15281 if test -n "$opt_randomdev"; then
15283 cat >>confdefs.h <<_ACEOF
15284 #define PAM_PATH_RANDOMDEV "$opt_randomdev"
15289 # Check whether --enable-db was given.
15290 if test "${enable_db+set}" = set; then
15291 enableval=$enable_db; WITH_DB=$enableval
15297 # Check whether --with-db-uniquename was given.
15298 if test "${with_db_uniquename+set}" = set; then
15299 withval=$with_db_uniquename;
15302 if test x"$WITH_DB" != xno ; then
15303 if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then
15305 LIBS="$LIBS -ldb$with_db_uniquename"
15310 for ac_func in db_create$with_db_uniquename db_create dbm_store$with_db_uniquename dbm_store
15312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15313 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15314 $as_echo_n "checking for $ac_func... " >&6; }
15315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15316 $as_echo_n "(cached) " >&6
15318 cat >conftest.$ac_ext <<_ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15326 #define $ac_func innocuous_$ac_func
15328 /* System header to define __stub macros and hopefully few prototypes,
15329 which can conflict with char $ac_func (); below.
15330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15331 <limits.h> exists even on freestanding compilers. */
15334 # include <limits.h>
15336 # include <assert.h>
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply. */
15348 /* The GNU C library defines this for functions which it implements
15349 to always fail with ENOSYS. Some functions are actually named
15350 something starting with __ and the normal name is an alias. */
15351 #if defined __stub_$ac_func || defined __stub___$ac_func
15358 return $ac_func ();
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (ac_try="$ac_link"
15365 case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370 $as_echo "$ac_try_echo") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext && {
15381 test "$cross_compiling" = yes ||
15382 $as_test_x conftest$ac_exeext
15384 eval "$as_ac_var=yes"
15386 $as_echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 eval "$as_ac_var=no"
15392 rm -rf conftest.dSYM
15393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394 conftest$ac_exeext conftest.$ac_ext
15396 ac_res=`eval 'as_val=${'$as_ac_var'}
15397 $as_echo "$as_val"'`
15398 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15399 $as_echo "$ac_res" >&6; }
15400 as_val=`eval 'as_val=${'$as_ac_var'}
15401 $as_echo "$as_val"'`
15402 if test "x$as_val" = x""yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15406 LIBDB="-ldb$with_db_uniquename"; break
15412 if test -z "$LIBDB" ; then
15413 { $as_echo "$as_me:$LINENO: checking for dbm_store in -lndbm" >&5
15414 $as_echo_n "checking for dbm_store in -lndbm... " >&6; }
15415 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then
15416 $as_echo_n "(cached) " >&6
15418 ac_check_lib_save_LIBS=$LIBS
15419 LIBS="-lndbm $LIBS"
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15427 /* Override any GCC internal prototype to avoid an error.
15428 Use char because int might match the return type of a GCC
15429 builtin and then its argument prototype would still apply. */
15437 return dbm_store ();
15442 rm -f conftest.$ac_objext conftest$ac_exeext
15443 if { (ac_try="$ac_link"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449 $as_echo "$ac_try_echo") >&5
15450 (eval "$ac_link") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest$ac_exeext && {
15460 test "$cross_compiling" = yes ||
15461 $as_test_x conftest$ac_exeext
15463 ac_cv_lib_ndbm_dbm_store=yes
15465 $as_echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15468 ac_cv_lib_ndbm_dbm_store=no
15471 rm -rf conftest.dSYM
15472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15473 conftest$ac_exeext conftest.$ac_ext
15474 LIBS=$ac_check_lib_save_LIBS
15476 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_store" >&5
15477 $as_echo "$ac_cv_lib_ndbm_dbm_store" >&6; }
15478 if test "x$ac_cv_lib_ndbm_dbm_store" = x""yes; then
15484 if test ! -z "$LIBDB" ; then
15486 for ac_header in ndbm.h
15488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15491 $as_echo_n "checking for $ac_header... " >&6; }
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493 $as_echo_n "(cached) " >&6
15495 ac_res=`eval 'as_val=${'$as_ac_Header'}
15496 $as_echo "$as_val"'`
15497 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15498 $as_echo "$ac_res" >&6; }
15500 # Is the header compilable?
15501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15502 $as_echo_n "checking $ac_header usability... " >&6; }
15503 cat >conftest.$ac_ext <<_ACEOF
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 $ac_includes_default
15510 #include <$ac_header>
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520 (eval "$ac_compile") 2>conftest.er1
15522 grep -v '^ *+' conftest.er1 >conftest.err
15524 cat conftest.err >&5
15525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); } && {
15527 test -z "$ac_c_werror_flag" ||
15528 test ! -s conftest.err
15529 } && test -s conftest.$ac_objext; then
15530 ac_header_compiler=yes
15532 $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15535 ac_header_compiler=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15540 $as_echo "$ac_header_compiler" >&6; }
15542 # Is the header present?
15543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15544 $as_echo_n "checking $ac_header presence... " >&6; }
15545 cat >conftest.$ac_ext <<_ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 #include <$ac_header>
15553 if { (ac_try="$ac_cpp conftest.$ac_ext"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15559 $as_echo "$ac_try_echo") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null && {
15567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15570 ac_header_preproc=yes
15572 $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_header_preproc=no
15578 rm -f conftest.err conftest.$ac_ext
15579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15580 $as_echo "$ac_header_preproc" >&6; }
15582 # So? What about this header?
15583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15589 ac_header_preproc=yes
15592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15595 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15599 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15607 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15608 $as_echo_n "checking for $ac_header... " >&6; }
15609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15610 $as_echo_n "(cached) " >&6
15612 eval "$as_ac_Header=\$ac_header_preproc"
15614 ac_res=`eval 'as_val=${'$as_ac_Header'}
15615 $as_echo "$as_val"'`
15616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15617 $as_echo "$ac_res" >&6; }
15620 as_val=`eval 'as_val=${'$as_ac_Header'}
15621 $as_echo "$as_val"'`
15622 if test "x$as_val" = x""yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15634 for ac_header in db.h
15636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15639 $as_echo_n "checking for $ac_header... " >&6; }
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 $as_echo_n "(cached) " >&6
15643 ac_res=`eval 'as_val=${'$as_ac_Header'}
15644 $as_echo "$as_val"'`
15645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15646 $as_echo "$ac_res" >&6; }
15648 # Is the header compilable?
15649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15650 $as_echo_n "checking $ac_header usability... " >&6; }
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 $ac_includes_default
15658 #include <$ac_header>
15660 rm -f conftest.$ac_objext
15661 if { (ac_try="$ac_compile"
15662 case "(($ac_try" in
15663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15664 *) ac_try_echo=$ac_try;;
15666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15667 $as_echo "$ac_try_echo") >&5
15668 (eval "$ac_compile") 2>conftest.er1
15670 grep -v '^ *+' conftest.er1 >conftest.err
15672 cat conftest.err >&5
15673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest.$ac_objext; then
15678 ac_header_compiler=yes
15680 $as_echo "$as_me: failed program was:" >&5
15681 sed 's/^/| /' conftest.$ac_ext >&5
15683 ac_header_compiler=no
15686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15688 $as_echo "$ac_header_compiler" >&6; }
15690 # Is the header present?
15691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15692 $as_echo_n "checking $ac_header presence... " >&6; }
15693 cat >conftest.$ac_ext <<_ACEOF
15696 cat confdefs.h >>conftest.$ac_ext
15697 cat >>conftest.$ac_ext <<_ACEOF
15698 /* end confdefs.h. */
15699 #include <$ac_header>
15701 if { (ac_try="$ac_cpp conftest.$ac_ext"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } >/dev/null && {
15715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15718 ac_header_preproc=yes
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_preproc=no
15726 rm -f conftest.err conftest.$ac_ext
15727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 $as_echo "$ac_header_preproc" >&6; }
15730 # So? What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15756 $as_echo_n "checking for $ac_header... " >&6; }
15757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758 $as_echo_n "(cached) " >&6
15760 eval "$as_ac_Header=\$ac_header_preproc"
15762 ac_res=`eval 'as_val=${'$as_ac_Header'}
15763 $as_echo "$as_val"'`
15764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15765 $as_echo "$ac_res" >&6; }
15768 as_val=`eval 'as_val=${'$as_ac_Header'}
15769 $as_echo "$as_val"'`
15770 if test "x$as_val" = x""yes; then
15771 cat >>confdefs.h <<_ACEOF
15772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782 if test ! -z "$LIBDB"; then
15784 HAVE_LIBDB_FALSE='#'
15786 HAVE_LIBDB_TRUE='#'
15791 # Check whether --enable-nis was given.
15792 if test "${enable_nis+set}" = set; then
15793 enableval=$enable_nis;
15799 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15800 if test -n "$ac_tool_prefix"; then
15801 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15802 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15803 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15804 $as_echo_n "checking for $ac_word... " >&6; }
15805 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
15806 $as_echo_n "(cached) " >&6
15808 case $PKG_CONFIG in
15810 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15814 for as_dir in $PATH
15817 test -z "$as_dir" && as_dir=.
15818 for ac_exec_ext in '' $ac_executable_extensions; do
15819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15820 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15831 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15832 if test -n "$PKG_CONFIG"; then
15833 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
15834 $as_echo "$PKG_CONFIG" >&6; }
15836 { $as_echo "$as_me:$LINENO: result: no" >&5
15837 $as_echo "no" >&6; }
15842 if test -z "$ac_cv_path_PKG_CONFIG"; then
15843 ac_pt_PKG_CONFIG=$PKG_CONFIG
15844 # Extract the first word of "pkg-config", so it can be a program name with args.
15845 set dummy pkg-config; ac_word=$2
15846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15847 $as_echo_n "checking for $ac_word... " >&6; }
15848 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
15849 $as_echo_n "(cached) " >&6
15851 case $ac_pt_PKG_CONFIG in
15853 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15857 for as_dir in $PATH
15860 test -z "$as_dir" && as_dir=.
15861 for ac_exec_ext in '' $ac_executable_extensions; do
15862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15863 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15874 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15875 if test -n "$ac_pt_PKG_CONFIG"; then
15876 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
15877 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15879 { $as_echo "$as_me:$LINENO: result: no" >&5
15880 $as_echo "no" >&6; }
15883 if test "x$ac_pt_PKG_CONFIG" = x; then
15886 case $cross_compiling:$ac_tool_warned in
15888 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
15889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15890 ac_tool_warned=yes ;;
15892 PKG_CONFIG=$ac_pt_PKG_CONFIG
15895 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15899 if test -n "$PKG_CONFIG"; then
15900 _pkg_min_version=0.9.0
15901 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
15902 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15903 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15904 { $as_echo "$as_me:$LINENO: result: yes" >&5
15905 $as_echo "yes" >&6; }
15907 { $as_echo "$as_me:$LINENO: result: no" >&5
15908 $as_echo "no" >&6; }
15913 if test "x$enable_nis" != "xno"; then
15920 { $as_echo "$as_me:$LINENO: checking for libtirpc" >&5
15921 $as_echo_n "checking for libtirpc... " >&6; }
15923 if test -n "$libtirpc_CFLAGS"; then
15924 pkg_cv_libtirpc_CFLAGS="$libtirpc_CFLAGS"
15925 elif test -n "$PKG_CONFIG"; then
15926 if test -n "$PKG_CONFIG" && \
15927 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libtirpc\"") >&5
15928 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
15930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; then
15932 pkg_cv_libtirpc_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
15939 if test -n "$libtirpc_LIBS"; then
15940 pkg_cv_libtirpc_LIBS="$libtirpc_LIBS"
15941 elif test -n "$PKG_CONFIG"; then
15942 if test -n "$PKG_CONFIG" && \
15943 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libtirpc\"") >&5
15944 ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
15946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; then
15948 pkg_cv_libtirpc_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
15958 if test $pkg_failed = yes; then
15960 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15961 _pkg_short_errors_supported=yes
15963 _pkg_short_errors_supported=no
15965 if test $_pkg_short_errors_supported = yes; then
15966 libtirpc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libtirpc" 2>&1`
15968 libtirpc_PKG_ERRORS=`$PKG_CONFIG --print-errors "libtirpc" 2>&1`
15970 # Put the nasty error message in config.log where it belongs
15971 echo "$libtirpc_PKG_ERRORS" >&5
15973 { $as_echo "$as_me:$LINENO: result: no" >&5
15974 $as_echo "no" >&6; }
15976 elif test $pkg_failed = untried; then
15979 libtirpc_CFLAGS=$pkg_cv_libtirpc_CFLAGS
15980 libtirpc_LIBS=$pkg_cv_libtirpc_LIBS
15981 { $as_echo "$as_me:$LINENO: result: yes" >&5
15982 $as_echo "yes" >&6; }
15984 CFLAGS="$CFLAGS $libtirpc_CFLAGS"
15985 LIBS="$LIBS $libtirpc_LIBS"
15989 { $as_echo "$as_me:$LINENO: checking for library containing yp_get_default_domain" >&5
15990 $as_echo_n "checking for library containing yp_get_default_domain... " >&6; }
15991 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
15992 $as_echo_n "(cached) " >&6
15994 ac_func_search_save_LIBS=$LIBS
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16002 /* Override any GCC internal prototype to avoid an error.
16003 Use char because int might match the return type of a GCC
16004 builtin and then its argument prototype would still apply. */
16008 char yp_get_default_domain ();
16012 return yp_get_default_domain ();
16017 for ac_lib in '' nsl; do
16018 if test -z "$ac_lib"; then
16019 ac_res="none required"
16022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16031 $as_echo "$ac_try_echo") >&5
16032 (eval "$ac_link") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest$ac_exeext && {
16042 test "$cross_compiling" = yes ||
16043 $as_test_x conftest$ac_exeext
16045 ac_cv_search_yp_get_default_domain=$ac_res
16047 $as_echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16053 rm -rf conftest.dSYM
16054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16056 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
16060 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then
16063 ac_cv_search_yp_get_default_domain=no
16065 rm conftest.$ac_ext
16066 LIBS=$ac_func_search_save_LIBS
16068 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_yp_get_default_domain" >&5
16069 $as_echo "$ac_cv_search_yp_get_default_domain" >&6; }
16070 ac_res=$ac_cv_search_yp_get_default_domain
16071 if test "$ac_res" != no; then
16072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16083 for ac_func in yp_get_default_domain yperr_string yp_master yp_bind yp_match yp_unbind
16085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16086 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16087 $as_echo_n "checking for $ac_func... " >&6; }
16088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16089 $as_echo_n "(cached) " >&6
16091 cat >conftest.$ac_ext <<_ACEOF
16094 cat confdefs.h >>conftest.$ac_ext
16095 cat >>conftest.$ac_ext <<_ACEOF
16096 /* end confdefs.h. */
16097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099 #define $ac_func innocuous_$ac_func
16101 /* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16107 # include <limits.h>
16109 # include <assert.h>
16114 /* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
16121 /* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
16124 #if defined __stub_$ac_func || defined __stub___$ac_func
16131 return $ac_func ();
16136 rm -f conftest.$ac_objext conftest$ac_exeext
16137 if { (ac_try="$ac_link"
16138 case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16143 $as_echo "$ac_try_echo") >&5
16144 (eval "$ac_link") 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest$ac_exeext && {
16154 test "$cross_compiling" = yes ||
16155 $as_test_x conftest$ac_exeext
16157 eval "$as_ac_var=yes"
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 eval "$as_ac_var=no"
16165 rm -rf conftest.dSYM
16166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16167 conftest$ac_exeext conftest.$ac_ext
16169 ac_res=`eval 'as_val=${'$as_ac_var'}
16170 $as_echo "$as_val"'`
16171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16172 $as_echo "$ac_res" >&6; }
16173 as_val=`eval 'as_val=${'$as_ac_var'}
16174 $as_echo "$as_val"'`
16175 if test "x$as_val" = x""yes; then
16176 cat >>confdefs.h <<_ACEOF
16177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16186 for ac_header in rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h
16188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16191 $as_echo_n "checking for $ac_header... " >&6; }
16192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16193 $as_echo_n "(cached) " >&6
16195 ac_res=`eval 'as_val=${'$as_ac_Header'}
16196 $as_echo "$as_val"'`
16197 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16198 $as_echo "$ac_res" >&6; }
16200 # Is the header compilable?
16201 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16202 $as_echo_n "checking $ac_header usability... " >&6; }
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 $ac_includes_default
16210 #include <$ac_header>
16212 rm -f conftest.$ac_objext
16213 if { (ac_try="$ac_compile"
16214 case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16219 $as_echo "$ac_try_echo") >&5
16220 (eval "$ac_compile") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest.$ac_objext; then
16230 ac_header_compiler=yes
16232 $as_echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_header_compiler=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16240 $as_echo "$ac_header_compiler" >&6; }
16242 # Is the header present?
16243 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16244 $as_echo_n "checking $ac_header presence... " >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 #include <$ac_header>
16253 if { (ac_try="$ac_cpp conftest.$ac_ext"
16254 case "(($ac_try" in
16255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256 *) ac_try_echo=$ac_try;;
16258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16259 $as_echo "$ac_try_echo") >&5
16260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } >/dev/null && {
16267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16270 ac_header_preproc=yes
16272 $as_echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_preproc=no
16278 rm -f conftest.err conftest.$ac_ext
16279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16280 $as_echo "$ac_header_preproc" >&6; }
16282 # So? What about this header?
16283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16286 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16289 ac_header_preproc=yes
16292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16293 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16295 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16297 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16299 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16303 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16307 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 $as_echo_n "checking for $ac_header... " >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 $as_echo_n "(cached) " >&6
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res=`eval 'as_val=${'$as_ac_Header'}
16315 $as_echo "$as_val"'`
16316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16317 $as_echo "$ac_res" >&6; }
16320 as_val=`eval 'as_val=${'$as_ac_Header'}
16321 $as_echo "$as_val"'`
16322 if test "x$as_val" = x""yes; then
16323 cat >>confdefs.h <<_ACEOF
16324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16331 { $as_echo "$as_me:$LINENO: checking whether getrpcport is declared" >&5
16332 $as_echo_n "checking whether getrpcport is declared... " >&6; }
16333 if test "${ac_cv_have_decl_getrpcport+set}" = set; then
16334 $as_echo_n "(cached) " >&6
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16344 # include <rpc/rpc.h>
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_cv_have_decl_getrpcport=yes
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_cv_have_decl_getrpcport=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16387 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrpcport" >&5
16388 $as_echo "$ac_cv_have_decl_getrpcport" >&6; }
16389 if test "x$ac_cv_have_decl_getrpcport" = x""yes; then
16391 cat >>confdefs.h <<_ACEOF
16392 #define HAVE_DECL_GETRPCPORT 1
16397 cat >>confdefs.h <<_ACEOF
16398 #define HAVE_DECL_GETRPCPORT 0
16406 NIS_CFLAGS="${CFLAGS%${old_CFLAGS}}"
16407 NIS_LIBS="${LIBS%${old_LIBS}}"
16409 CFLAGS="$old_CFLAGS"
16418 # Check whether --enable-selinux was given.
16419 if test "${enable_selinux+set}" = set; then
16420 enableval=$enable_selinux; WITH_SELINUX=$enableval
16425 if test "$WITH_SELINUX" == "yes" ; then
16426 { $as_echo "$as_me:$LINENO: checking for getfilecon in -lselinux" >&5
16427 $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
16428 if test "${ac_cv_lib_selinux_getfilecon+set}" = set; then
16429 $as_echo_n "(cached) " >&6
16431 ac_check_lib_save_LIBS=$LIBS
16432 LIBS="-lselinux $LIBS"
16433 cat >conftest.$ac_ext <<_ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16440 /* Override any GCC internal prototype to avoid an error.
16441 Use char because int might match the return type of a GCC
16442 builtin and then its argument prototype would still apply. */
16446 char getfilecon ();
16450 return getfilecon ();
16455 rm -f conftest.$ac_objext conftest$ac_exeext
16456 if { (ac_try="$ac_link"
16457 case "(($ac_try" in
16458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16459 *) ac_try_echo=$ac_try;;
16461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16462 $as_echo "$ac_try_echo") >&5
16463 (eval "$ac_link") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } && {
16470 test -z "$ac_c_werror_flag" ||
16471 test ! -s conftest.err
16472 } && test -s conftest$ac_exeext && {
16473 test "$cross_compiling" = yes ||
16474 $as_test_x conftest$ac_exeext
16476 ac_cv_lib_selinux_getfilecon=yes
16478 $as_echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16481 ac_cv_lib_selinux_getfilecon=no
16484 rm -rf conftest.dSYM
16485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16486 conftest$ac_exeext conftest.$ac_ext
16487 LIBS=$ac_check_lib_save_LIBS
16489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getfilecon" >&5
16490 $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
16491 if test "x$ac_cv_lib_selinux_getfilecon" = x""yes; then
16492 LIBSELINUX="-lselinux"
16501 if test ! -z "$LIBSELINUX"; then
16502 HAVE_LIBSELINUX_TRUE=
16503 HAVE_LIBSELINUX_FALSE='#'
16505 HAVE_LIBSELINUX_TRUE='#'
16506 HAVE_LIBSELINUX_FALSE=
16509 if test ! -z "$LIBSELINUX" ; then
16511 cat >>confdefs.h <<\_ACEOF
16512 #define WITH_SELINUX 1
16516 LIBS="$LIBS $LIBSELINUX"
16518 for ac_func in setkeycreatecon
16520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16521 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16522 $as_echo_n "checking for $ac_func... " >&6; }
16523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16524 $as_echo_n "(cached) " >&6
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16534 #define $ac_func innocuous_$ac_func
16536 /* System header to define __stub macros and hopefully few prototypes,
16537 which can conflict with char $ac_func (); below.
16538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16539 <limits.h> exists even on freestanding compilers. */
16542 # include <limits.h>
16544 # include <assert.h>
16549 /* Override any GCC internal prototype to avoid an error.
16550 Use char because int might match the return type of a GCC
16551 builtin and then its argument prototype would still apply. */
16556 /* The GNU C library defines this for functions which it implements
16557 to always fail with ENOSYS. Some functions are actually named
16558 something starting with __ and the normal name is an alias. */
16559 #if defined __stub_$ac_func || defined __stub___$ac_func
16566 return $ac_func ();
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16578 $as_echo "$ac_try_echo") >&5
16579 (eval "$ac_link") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext && {
16589 test "$cross_compiling" = yes ||
16590 $as_test_x conftest$ac_exeext
16592 eval "$as_ac_var=yes"
16594 $as_echo "$as_me: failed program was:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 eval "$as_ac_var=no"
16600 rm -rf conftest.dSYM
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16604 ac_res=`eval 'as_val=${'$as_ac_var'}
16605 $as_echo "$as_val"'`
16606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16607 $as_echo "$ac_res" >&6; }
16608 as_val=`eval 'as_val=${'$as_ac_var'}
16609 $as_echo "$as_val"'`
16610 if test "x$as_val" = x""yes; then
16611 cat >>confdefs.h <<_ACEOF
16612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16619 for ac_func in getseuser
16621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16622 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16623 $as_echo_n "checking for $ac_func... " >&6; }
16624 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16625 $as_echo_n "(cached) " >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16635 #define $ac_func innocuous_$ac_func
16637 /* System header to define __stub macros and hopefully few prototypes,
16638 which can conflict with char $ac_func (); below.
16639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16640 <limits.h> exists even on freestanding compilers. */
16643 # include <limits.h>
16645 # include <assert.h>
16650 /* Override any GCC internal prototype to avoid an error.
16651 Use char because int might match the return type of a GCC
16652 builtin and then its argument prototype would still apply. */
16657 /* The GNU C library defines this for functions which it implements
16658 to always fail with ENOSYS. Some functions are actually named
16659 something starting with __ and the normal name is an alias. */
16660 #if defined __stub_$ac_func || defined __stub___$ac_func
16667 return $ac_func ();
16672 rm -f conftest.$ac_objext conftest$ac_exeext
16673 if { (ac_try="$ac_link"
16674 case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16679 $as_echo "$ac_try_echo") >&5
16680 (eval "$ac_link") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext && {
16690 test "$cross_compiling" = yes ||
16691 $as_test_x conftest$ac_exeext
16693 eval "$as_ac_var=yes"
16695 $as_echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16698 eval "$as_ac_var=no"
16701 rm -rf conftest.dSYM
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703 conftest$ac_exeext conftest.$ac_ext
16705 ac_res=`eval 'as_val=${'$as_ac_var'}
16706 $as_echo "$as_val"'`
16707 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16708 $as_echo "$ac_res" >&6; }
16709 as_val=`eval 'as_val=${'$as_ac_var'}
16710 $as_echo "$as_val"'`
16711 if test "x$as_val" = x""yes; then
16712 cat >>confdefs.h <<_ACEOF
16713 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16727 ac_header_dirent=no
16728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16729 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16730 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16731 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16733 $as_echo_n "(cached) " >&6
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <sys/types.h>
16753 rm -f conftest.$ac_objext
16754 if { (ac_try="$ac_compile"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16760 $as_echo "$ac_try_echo") >&5
16761 (eval "$ac_compile") 2>conftest.er1
16763 grep -v '^ *+' conftest.er1 >conftest.err
16765 cat conftest.err >&5
16766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } && {
16768 test -z "$ac_c_werror_flag" ||
16769 test ! -s conftest.err
16770 } && test -s conftest.$ac_objext; then
16771 eval "$as_ac_Header=yes"
16773 $as_echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 eval "$as_ac_Header=no"
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 ac_res=`eval 'as_val=${'$as_ac_Header'}
16782 $as_echo "$as_val"'`
16783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16784 $as_echo "$ac_res" >&6; }
16785 as_val=`eval 'as_val=${'$as_ac_Header'}
16786 $as_echo "$as_val"'`
16787 if test "x$as_val" = x""yes; then
16788 cat >>confdefs.h <<_ACEOF
16789 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16792 ac_header_dirent=$ac_hdr; break
16796 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16797 if test $ac_header_dirent = dirent.h; then
16798 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16799 $as_echo_n "checking for library containing opendir... " >&6; }
16800 if test "${ac_cv_search_opendir+set}" = set; then
16801 $as_echo_n "(cached) " >&6
16803 ac_func_search_save_LIBS=$LIBS
16804 cat >conftest.$ac_ext <<_ACEOF
16807 cat confdefs.h >>conftest.$ac_ext
16808 cat >>conftest.$ac_ext <<_ACEOF
16809 /* end confdefs.h. */
16811 /* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
16826 for ac_lib in '' dir; do
16827 if test -z "$ac_lib"; then
16828 ac_res="none required"
16831 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (ac_try="$ac_link"
16835 case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16840 $as_echo "$ac_try_echo") >&5
16841 (eval "$ac_link") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } && {
16848 test -z "$ac_c_werror_flag" ||
16849 test ! -s conftest.err
16850 } && test -s conftest$ac_exeext && {
16851 test "$cross_compiling" = yes ||
16852 $as_test_x conftest$ac_exeext
16854 ac_cv_search_opendir=$ac_res
16856 $as_echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16862 rm -rf conftest.dSYM
16863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16865 if test "${ac_cv_search_opendir+set}" = set; then
16869 if test "${ac_cv_search_opendir+set}" = set; then
16872 ac_cv_search_opendir=no
16874 rm conftest.$ac_ext
16875 LIBS=$ac_func_search_save_LIBS
16877 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16878 $as_echo "$ac_cv_search_opendir" >&6; }
16879 ac_res=$ac_cv_search_opendir
16880 if test "$ac_res" != no; then
16881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16886 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
16887 $as_echo_n "checking for library containing opendir... " >&6; }
16888 if test "${ac_cv_search_opendir+set}" = set; then
16889 $as_echo_n "(cached) " >&6
16891 ac_func_search_save_LIBS=$LIBS
16892 cat >conftest.$ac_ext <<_ACEOF
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16899 /* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16914 for ac_lib in '' x; do
16915 if test -z "$ac_lib"; then
16916 ac_res="none required"
16919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16921 rm -f conftest.$ac_objext conftest$ac_exeext
16922 if { (ac_try="$ac_link"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_link") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest$ac_exeext && {
16939 test "$cross_compiling" = yes ||
16940 $as_test_x conftest$ac_exeext
16942 ac_cv_search_opendir=$ac_res
16944 $as_echo "$as_me: failed program was:" >&5
16945 sed 's/^/| /' conftest.$ac_ext >&5
16950 rm -rf conftest.dSYM
16951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16953 if test "${ac_cv_search_opendir+set}" = set; then
16957 if test "${ac_cv_search_opendir+set}" = set; then
16960 ac_cv_search_opendir=no
16962 rm conftest.$ac_ext
16963 LIBS=$ac_func_search_save_LIBS
16965 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16966 $as_echo "$ac_cv_search_opendir" >&6; }
16967 ac_res=$ac_cv_search_opendir
16968 if test "$ac_res" != no; then
16969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16975 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16976 $as_echo_n "checking for ANSI C header files... " >&6; }
16977 if test "${ac_cv_header_stdc+set}" = set; then
16978 $as_echo_n "(cached) " >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <stdlib.h>
16987 #include <stdarg.h>
16988 #include <string.h>
16999 rm -f conftest.$ac_objext
17000 if { (ac_try="$ac_compile"
17001 case "(($ac_try" in
17002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003 *) ac_try_echo=$ac_try;;
17005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17006 $as_echo "$ac_try_echo") >&5
17007 (eval "$ac_compile") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest.$ac_objext; then
17017 ac_cv_header_stdc=yes
17019 $as_echo "$as_me: failed program was:" >&5
17020 sed 's/^/| /' conftest.$ac_ext >&5
17022 ac_cv_header_stdc=no
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17027 if test $ac_cv_header_stdc = yes; then
17028 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17029 cat >conftest.$ac_ext <<_ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 #include <string.h>
17038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17039 $EGREP "memchr" >/dev/null 2>&1; then
17042 ac_cv_header_stdc=no
17048 if test $ac_cv_header_stdc = yes; then
17049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17050 cat >conftest.$ac_ext <<_ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 #include <stdlib.h>
17059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17060 $EGREP "free" >/dev/null 2>&1; then
17063 ac_cv_header_stdc=no
17069 if test $ac_cv_header_stdc = yes; then
17070 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17071 if test "$cross_compiling" = yes; then
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 #include <stdlib.h>
17082 #if ((' ' & 0x0FF) == 0x020)
17083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17086 # define ISLOWER(c) \
17087 (('a' <= (c) && (c) <= 'i') \
17088 || ('j' <= (c) && (c) <= 'r') \
17089 || ('s' <= (c) && (c) <= 'z'))
17090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17098 for (i = 0; i < 256; i++)
17099 if (XOR (islower (i), ISLOWER (i))
17100 || toupper (i) != TOUPPER (i))
17105 rm -f conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17112 $as_echo "$ac_try_echo") >&5
17113 (eval "$ac_link") 2>&5
17115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17117 { (case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17122 $as_echo "$ac_try_echo") >&5
17123 (eval "$ac_try") 2>&5
17125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17129 $as_echo "$as_me: program exited with status $ac_status" >&5
17130 $as_echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ( exit $ac_status )
17134 ac_cv_header_stdc=no
17136 rm -rf conftest.dSYM
17137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17143 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
17144 $as_echo "$ac_cv_header_stdc" >&6; }
17145 if test $ac_cv_header_stdc = yes; then
17147 cat >>confdefs.h <<\_ACEOF
17148 #define STDC_HEADERS 1
17153 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
17154 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
17155 if test "${ac_cv_header_sys_wait_h+set}" = set; then
17156 $as_echo_n "(cached) " >&6
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <sys/types.h>
17165 #include <sys/wait.h>
17166 #ifndef WEXITSTATUS
17167 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
17170 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
17178 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
17183 rm -f conftest.$ac_objext
17184 if { (ac_try="$ac_compile"
17185 case "(($ac_try" in
17186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187 *) ac_try_echo=$ac_try;;
17189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17190 $as_echo "$ac_try_echo") >&5
17191 (eval "$ac_compile") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && {
17198 test -z "$ac_c_werror_flag" ||
17199 test ! -s conftest.err
17200 } && test -s conftest.$ac_objext; then
17201 ac_cv_header_sys_wait_h=yes
17203 $as_echo "$as_me: failed program was:" >&5
17204 sed 's/^/| /' conftest.$ac_ext >&5
17206 ac_cv_header_sys_wait_h=no
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17211 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
17212 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
17213 if test $ac_cv_header_sys_wait_h = yes; then
17215 cat >>confdefs.h <<\_ACEOF
17216 #define HAVE_SYS_WAIT_H 1
17233 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h net/if.h termio.h unistd.h sys/fsuid.h inittypes.h
17235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17238 $as_echo_n "checking for $ac_header... " >&6; }
17239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17240 $as_echo_n "(cached) " >&6
17242 ac_res=`eval 'as_val=${'$as_ac_Header'}
17243 $as_echo "$as_val"'`
17244 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17245 $as_echo "$ac_res" >&6; }
17247 # Is the header compilable?
17248 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17249 $as_echo_n "checking $ac_header usability... " >&6; }
17250 cat >conftest.$ac_ext <<_ACEOF
17253 cat confdefs.h >>conftest.$ac_ext
17254 cat >>conftest.$ac_ext <<_ACEOF
17255 /* end confdefs.h. */
17256 $ac_includes_default
17257 #include <$ac_header>
17259 rm -f conftest.$ac_objext
17260 if { (ac_try="$ac_compile"
17261 case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17266 $as_echo "$ac_try_echo") >&5
17267 (eval "$ac_compile") 2>conftest.er1
17269 grep -v '^ *+' conftest.er1 >conftest.err
17271 cat conftest.err >&5
17272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } && {
17274 test -z "$ac_c_werror_flag" ||
17275 test ! -s conftest.err
17276 } && test -s conftest.$ac_objext; then
17277 ac_header_compiler=yes
17279 $as_echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 ac_header_compiler=no
17285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17286 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17287 $as_echo "$ac_header_compiler" >&6; }
17289 # Is the header present?
17290 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17291 $as_echo_n "checking $ac_header presence... " >&6; }
17292 cat >conftest.$ac_ext <<_ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 #include <$ac_header>
17300 if { (ac_try="$ac_cpp conftest.$ac_ext"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } >/dev/null && {
17314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17317 ac_header_preproc=yes
17319 $as_echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ac_header_preproc=no
17325 rm -f conftest.err conftest.$ac_ext
17326 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17327 $as_echo "$ac_header_preproc" >&6; }
17329 # So? What about this header?
17330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17333 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17336 ac_header_preproc=yes
17339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17340 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17342 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17344 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17346 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17350 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17355 $as_echo_n "checking for $ac_header... " >&6; }
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357 $as_echo_n "(cached) " >&6
17359 eval "$as_ac_Header=\$ac_header_preproc"
17361 ac_res=`eval 'as_val=${'$as_ac_Header'}
17362 $as_echo "$as_val"'`
17363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17364 $as_echo "$ac_res" >&6; }
17367 as_val=`eval 'as_val=${'$as_ac_Header'}
17368 $as_echo "$as_val"'`
17369 if test "x$as_val" = x""yes; then
17370 cat >>confdefs.h <<_ACEOF
17371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17382 for ac_header in lastlog.h utmp.h utmpx.h
17384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17387 $as_echo_n "checking for $ac_header... " >&6; }
17388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17389 $as_echo_n "(cached) " >&6
17391 ac_res=`eval 'as_val=${'$as_ac_Header'}
17392 $as_echo "$as_val"'`
17393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17394 $as_echo "$ac_res" >&6; }
17396 # Is the header compilable?
17397 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17398 $as_echo_n "checking $ac_header usability... " >&6; }
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 $ac_includes_default
17406 #include <$ac_header>
17408 rm -f conftest.$ac_objext
17409 if { (ac_try="$ac_compile"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17415 $as_echo "$ac_try_echo") >&5
17416 (eval "$ac_compile") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest.$ac_objext; then
17426 ac_header_compiler=yes
17428 $as_echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17431 ac_header_compiler=no
17434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17435 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17436 $as_echo "$ac_header_compiler" >&6; }
17438 # Is the header present?
17439 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17440 $as_echo_n "checking $ac_header presence... " >&6; }
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 #include <$ac_header>
17449 if { (ac_try="$ac_cpp conftest.$ac_ext"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17455 $as_echo "$ac_try_echo") >&5
17456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } >/dev/null && {
17463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17466 ac_header_preproc=yes
17468 $as_echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_preproc=no
17474 rm -f conftest.err conftest.$ac_ext
17475 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17476 $as_echo "$ac_header_preproc" >&6; }
17478 # So? What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17482 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17484 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17485 ac_header_preproc=yes
17488 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17489 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17491 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17493 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17495 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17497 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17499 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17504 $as_echo_n "checking for $ac_header... " >&6; }
17505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17506 $as_echo_n "(cached) " >&6
17508 eval "$as_ac_Header=\$ac_header_preproc"
17510 ac_res=`eval 'as_val=${'$as_ac_Header'}
17511 $as_echo "$as_val"'`
17512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17513 $as_echo "$ac_res" >&6; }
17516 as_val=`eval 'as_val=${'$as_ac_Header'}
17517 $as_echo "$as_val"'`
17518 if test "x$as_val" = x""yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17529 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17530 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17531 if test "${ac_cv_c_bigendian+set}" = set; then
17532 $as_echo_n "(cached) " >&6
17534 ac_cv_c_bigendian=unknown
17535 # See if we're dealing with a universal compiler.
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 #ifndef __APPLE_CC__
17543 not a universal capable compiler
17548 rm -f conftest.$ac_objext
17549 if { (ac_try="$ac_compile"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_compile") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest.$ac_objext; then
17567 # Check for potential -arch flags. It is not universal unless
17568 # there are some -arch flags. Note that *ppc* also matches
17569 # ppc64. This check is also rather less than ideal.
17570 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
17571 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
17574 $as_echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.$ac_ext >&5
17580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17581 if test $ac_cv_c_bigendian = unknown; then
17582 # See if sys/param.h defines the BYTE_ORDER macro.
17583 cat >conftest.$ac_ext <<_ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h. */
17589 #include <sys/types.h>
17590 #include <sys/param.h>
17595 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
17596 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
17598 bogus endian macros
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17612 $as_echo "$ac_try_echo") >&5
17613 (eval "$ac_compile") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest.$ac_objext; then
17623 # It does; now see whether it defined to BIG_ENDIAN or not.
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 #include <sys/types.h>
17631 #include <sys/param.h>
17636 #if BYTE_ORDER != BIG_ENDIAN
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17651 $as_echo "$ac_try_echo") >&5
17652 (eval "$ac_compile") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } && {
17659 test -z "$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17661 } && test -s conftest.$ac_objext; then
17662 ac_cv_c_bigendian=yes
17664 $as_echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_cv_c_bigendian=no
17670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 if test $ac_cv_c_bigendian = unknown; then
17681 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17688 #include <limits.h>
17693 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
17694 bogus endian macros
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17708 $as_echo "$ac_try_echo") >&5
17709 (eval "$ac_compile") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } && {
17716 test -z "$ac_c_werror_flag" ||
17717 test ! -s conftest.err
17718 } && test -s conftest.$ac_objext; then
17719 # It does; now see whether it defined to _BIG_ENDIAN or not.
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 #include <limits.h>
17731 #ifndef _BIG_ENDIAN
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17746 $as_echo "$ac_try_echo") >&5
17747 (eval "$ac_compile") 2>conftest.er1
17749 grep -v '^ *+' conftest.er1 >conftest.err
17751 cat conftest.err >&5
17752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } && {
17754 test -z "$ac_c_werror_flag" ||
17755 test ! -s conftest.err
17756 } && test -s conftest.$ac_objext; then
17757 ac_cv_c_bigendian=yes
17759 $as_echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_cv_c_bigendian=no
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 $as_echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17775 if test $ac_cv_c_bigendian = unknown; then
17776 # Compile a test program.
17777 if test "$cross_compiling" = yes; then
17778 # Try to guess by grepping values from an object file.
17779 cat >conftest.$ac_ext <<_ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 short int ascii_mm[] =
17786 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17787 short int ascii_ii[] =
17788 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17789 int use_ascii (int i) {
17790 return ascii_mm[i] + ascii_ii[i];
17792 short int ebcdic_ii[] =
17793 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17794 short int ebcdic_mm[] =
17795 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17796 int use_ebcdic (int i) {
17797 return ebcdic_mm[i] + ebcdic_ii[i];
17804 return use_ascii (foo) == use_ebcdic (foo);
17809 rm -f conftest.$ac_objext
17810 if { (ac_try="$ac_compile"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17816 $as_echo "$ac_try_echo") >&5
17817 (eval "$ac_compile") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } && {
17824 test -z "$ac_c_werror_flag" ||
17825 test ! -s conftest.err
17826 } && test -s conftest.$ac_objext; then
17827 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17828 ac_cv_c_bigendian=yes
17830 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17831 if test "$ac_cv_c_bigendian" = unknown; then
17832 ac_cv_c_bigendian=no
17834 # finding both strings is unlikely to happen, but who knows?
17835 ac_cv_c_bigendian=unknown
17839 $as_echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 $ac_includes_default
17858 /* Are we little or big endian? From Harbison&Steele. */
17862 char c[sizeof (long int)];
17865 return u.c[sizeof (long int) - 1] == 1;
17871 rm -f conftest$ac_exeext
17872 if { (ac_try="$ac_link"
17873 case "(($ac_try" in
17874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17875 *) ac_try_echo=$ac_try;;
17877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17878 $as_echo "$ac_try_echo") >&5
17879 (eval "$ac_link") 2>&5
17881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17883 { (case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17888 $as_echo "$ac_try_echo") >&5
17889 (eval "$ac_try") 2>&5
17891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_c_bigendian=no
17895 $as_echo "$as_me: program exited with status $ac_status" >&5
17896 $as_echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ( exit $ac_status )
17900 ac_cv_c_bigendian=yes
17902 rm -rf conftest.dSYM
17903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17909 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17910 $as_echo "$ac_cv_c_bigendian" >&6; }
17911 case $ac_cv_c_bigendian in #(
17913 cat >>confdefs.h <<\_ACEOF
17914 #define WORDS_BIGENDIAN 1
17921 cat >>confdefs.h <<\_ACEOF
17922 #define AC_APPLE_UNIVERSAL_BUILD 1
17927 { { $as_echo "$as_me:$LINENO: error: unknown endianness
17928 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
17929 $as_echo "$as_me: error: unknown endianness
17930 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
17931 { (exit 1); exit 1; }; } ;;
17934 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17936 if test "${ac_cv_c_const+set}" = set; then
17937 $as_echo_n "(cached) " >&6
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17949 /* FIXME: Include the comments suggested by Paul. */
17950 #ifndef __cplusplus
17951 /* Ultrix mips cc rejects this. */
17952 typedef int charset[2];
17954 /* SunOS 4.1.1 cc rejects this. */
17955 char const *const *pcpcc;
17957 /* NEC SVR4.0.2 mips cc rejects this. */
17958 struct point {int x, y;};
17959 static struct point const zero = {0,0};
17960 /* AIX XL C 1.02.0.0 rejects this.
17961 It does not let you subtract one const X* pointer from another in
17962 an arm of an if-expression whose if-part is not a constant
17964 const char *g = "string";
17965 pcpcc = &g + (g ? g-g : 0);
17966 /* HPUX 7.0 cc rejects these. */
17968 ppc = (char**) pcpcc;
17969 pcpcc = (char const *const *) ppc;
17970 { /* SCO 3.2v4 cc rejects this. */
17972 char const *s = 0 ? (char *) 0 : (char const *) 0;
17977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17978 int x[] = {25, 17};
17979 const int *foo = &x[0];
17982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17983 typedef const int *iptr;
17987 { /* AIX XL C 1.02.0.0 rejects this saying
17988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17989 struct s { int j; const int *ap[3]; };
17990 struct s *b; b->j = 5;
17992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17993 const int foo = 10;
17994 if (!foo) return 0;
17996 return !cs[0] && !zero.x;
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18013 grep -v '^ *+' conftest.er1 >conftest.err
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18023 $as_echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18032 $as_echo "$ac_cv_c_const" >&6; }
18033 if test $ac_cv_c_const = no; then
18035 cat >>confdefs.h <<\_ACEOF
18041 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
18042 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
18043 if test "${ac_cv_type_uid_t+set}" = set; then
18044 $as_echo_n "(cached) " >&6
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 #include <sys/types.h>
18055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18056 $EGREP "uid_t" >/dev/null 2>&1; then
18057 ac_cv_type_uid_t=yes
18059 ac_cv_type_uid_t=no
18064 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
18065 $as_echo "$ac_cv_type_uid_t" >&6; }
18066 if test $ac_cv_type_uid_t = no; then
18068 cat >>confdefs.h <<\_ACEOF
18073 cat >>confdefs.h <<\_ACEOF
18079 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
18080 $as_echo_n "checking for off_t... " >&6; }
18081 if test "${ac_cv_type_off_t+set}" = set; then
18082 $as_echo_n "(cached) " >&6
18084 ac_cv_type_off_t=no
18085 cat >conftest.$ac_ext <<_ACEOF
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h. */
18091 $ac_includes_default
18095 if (sizeof (off_t))
18101 rm -f conftest.$ac_objext
18102 if { (ac_try="$ac_compile"
18103 case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108 $as_echo "$ac_try_echo") >&5
18109 (eval "$ac_compile") 2>conftest.er1
18111 grep -v '^ *+' conftest.er1 >conftest.err
18113 cat conftest.err >&5
18114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && {
18116 test -z "$ac_c_werror_flag" ||
18117 test ! -s conftest.err
18118 } && test -s conftest.$ac_objext; then
18119 cat >conftest.$ac_ext <<_ACEOF
18122 cat confdefs.h >>conftest.$ac_ext
18123 cat >>conftest.$ac_ext <<_ACEOF
18124 /* end confdefs.h. */
18125 $ac_includes_default
18129 if (sizeof ((off_t)))
18135 rm -f conftest.$ac_objext
18136 if { (ac_try="$ac_compile"
18137 case "(($ac_try" in
18138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139 *) ac_try_echo=$ac_try;;
18141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18142 $as_echo "$ac_try_echo") >&5
18143 (eval "$ac_compile") 2>conftest.er1
18145 grep -v '^ *+' conftest.er1 >conftest.err
18147 cat conftest.err >&5
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest.$ac_objext; then
18155 $as_echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 ac_cv_type_off_t=yes
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18163 $as_echo "$as_me: failed program was:" >&5
18164 sed 's/^/| /' conftest.$ac_ext >&5
18169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18172 $as_echo "$ac_cv_type_off_t" >&6; }
18173 if test "x$ac_cv_type_off_t" = x""yes; then
18177 cat >>confdefs.h <<_ACEOF
18178 #define off_t long int
18183 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18184 $as_echo_n "checking for pid_t... " >&6; }
18185 if test "${ac_cv_type_pid_t+set}" = set; then
18186 $as_echo_n "(cached) " >&6
18188 ac_cv_type_pid_t=no
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 $ac_includes_default
18199 if (sizeof (pid_t))
18205 rm -f conftest.$ac_objext
18206 if { (ac_try="$ac_compile"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18212 $as_echo "$ac_try_echo") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 $ac_includes_default
18233 if (sizeof ((pid_t)))
18239 rm -f conftest.$ac_objext
18240 if { (ac_try="$ac_compile"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18246 $as_echo "$ac_try_echo") >&5
18247 (eval "$ac_compile") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest.$ac_objext; then
18259 $as_echo "$as_me: failed program was:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 ac_cv_type_pid_t=yes
18265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 $as_echo "$as_me: failed program was:" >&5
18268 sed 's/^/| /' conftest.$ac_ext >&5
18273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18275 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18276 $as_echo "$ac_cv_type_pid_t" >&6; }
18277 if test "x$ac_cv_type_pid_t" = x""yes; then
18281 cat >>confdefs.h <<_ACEOF
18287 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
18288 $as_echo_n "checking for size_t... " >&6; }
18289 if test "${ac_cv_type_size_t+set}" = set; then
18290 $as_echo_n "(cached) " >&6
18292 ac_cv_type_size_t=no
18293 cat >conftest.$ac_ext <<_ACEOF
18296 cat confdefs.h >>conftest.$ac_ext
18297 cat >>conftest.$ac_ext <<_ACEOF
18298 /* end confdefs.h. */
18299 $ac_includes_default
18303 if (sizeof (size_t))
18309 rm -f conftest.$ac_objext
18310 if { (ac_try="$ac_compile"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317 (eval "$ac_compile") 2>conftest.er1
18319 grep -v '^ *+' conftest.er1 >conftest.err
18321 cat conftest.err >&5
18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest.$ac_objext; then
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 $ac_includes_default
18337 if (sizeof ((size_t)))
18343 rm -f conftest.$ac_objext
18344 if { (ac_try="$ac_compile"
18345 case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18350 $as_echo "$ac_try_echo") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18353 grep -v '^ *+' conftest.er1 >conftest.err
18355 cat conftest.err >&5
18356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18363 $as_echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_cv_type_size_t=yes
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18371 $as_echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18379 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18380 $as_echo "$ac_cv_type_size_t" >&6; }
18381 if test "x$ac_cv_type_size_t" = x""yes; then
18385 cat >>confdefs.h <<_ACEOF
18386 #define size_t unsigned int
18391 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18392 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18393 if test "${ac_cv_header_time+set}" = set; then
18394 $as_echo_n "(cached) " >&6
18396 cat >conftest.$ac_ext <<_ACEOF
18399 cat confdefs.h >>conftest.$ac_ext
18400 cat >>conftest.$ac_ext <<_ACEOF
18401 /* end confdefs.h. */
18402 #include <sys/types.h>
18403 #include <sys/time.h>
18409 if ((struct tm *) 0)
18415 rm -f conftest.$ac_objext
18416 if { (ac_try="$ac_compile"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18422 $as_echo "$ac_try_echo") >&5
18423 (eval "$ac_compile") 2>conftest.er1
18425 grep -v '^ *+' conftest.er1 >conftest.err
18427 cat conftest.err >&5
18428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest.$ac_objext; then
18433 ac_cv_header_time=yes
18435 $as_echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18438 ac_cv_header_time=no
18441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18444 $as_echo "$ac_cv_header_time" >&6; }
18445 if test $ac_cv_header_time = yes; then
18447 cat >>confdefs.h <<\_ACEOF
18448 #define TIME_WITH_SYS_TIME 1
18453 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
18454 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18455 if test "${ac_cv_struct_tm+set}" = set; then
18456 $as_echo_n "(cached) " >&6
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <sys/types.h>
18471 int *p = &tm.tm_sec;
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484 $as_echo "$ac_try_echo") >&5
18485 (eval "$ac_compile") 2>conftest.er1
18487 grep -v '^ *+' conftest.er1 >conftest.err
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest.$ac_objext; then
18495 ac_cv_struct_tm=time.h
18497 $as_echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18500 ac_cv_struct_tm=sys/time.h
18503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18505 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
18506 $as_echo "$ac_cv_struct_tm" >&6; }
18507 if test $ac_cv_struct_tm = sys/time.h; then
18509 cat >>confdefs.h <<\_ACEOF
18510 #define TM_IN_SYS_TIME 1
18516 { $as_echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
18517 $as_echo_n "checking type of array argument to getgroups... " >&6; }
18518 if test "${ac_cv_type_getgroups+set}" = set; then
18519 $as_echo_n "(cached) " >&6
18521 if test "$cross_compiling" = yes; then
18522 ac_cv_type_getgroups=cross
18524 cat >conftest.$ac_ext <<_ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 /* Thanks to Mike Rendell for this test. */
18531 $ac_includes_default
18534 #define MAX(x, y) ((x) > (y) ? (x) : (y))
18539 gid_t gidset[NGID];
18541 union { gid_t gval; long int lval; } val;
18544 for (i = 0; i < NGID; i++)
18545 gidset[i] = val.gval;
18546 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
18548 /* Exit non-zero if getgroups seems to require an array of ints. This
18549 happens when gid_t is short int but getgroups modifies an array
18551 return n > 0 && gidset[n] != val.gval;
18554 rm -f conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18561 $as_echo "$ac_try_echo") >&5
18562 (eval "$ac_link") 2>&5
18564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18566 { (case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572 (eval "$ac_try") 2>&5
18574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
18576 ac_cv_type_getgroups=gid_t
18578 $as_echo "$as_me: program exited with status $ac_status" >&5
18579 $as_echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 ( exit $ac_status )
18583 ac_cv_type_getgroups=int
18585 rm -rf conftest.dSYM
18586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18590 if test $ac_cv_type_getgroups = cross; then
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 #include <unistd.h>
18600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18601 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
18602 ac_cv_type_getgroups=gid_t
18604 ac_cv_type_getgroups=int
18610 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
18611 $as_echo "$ac_cv_type_getgroups" >&6; }
18613 cat >>confdefs.h <<_ACEOF
18614 #define GETGROUPS_T $ac_cv_type_getgroups
18618 if test $ac_cv_c_compiler_gnu = yes; then
18619 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18620 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
18621 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18622 $as_echo_n "(cached) " >&6
18624 ac_pattern="Autoconf.*'x'"
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18635 $EGREP "$ac_pattern" >/dev/null 2>&1; then
18636 ac_cv_prog_gcc_traditional=yes
18638 ac_cv_prog_gcc_traditional=no
18643 if test $ac_cv_prog_gcc_traditional = no; then
18644 cat >conftest.$ac_ext <<_ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650 #include <termio.h>
18653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18654 $EGREP "$ac_pattern" >/dev/null 2>&1; then
18655 ac_cv_prog_gcc_traditional=yes
18661 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18662 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
18663 if test $ac_cv_prog_gcc_traditional = yes; then
18664 CC="$CC -traditional"
18668 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
18669 $as_echo_n "checking for working memcmp... " >&6; }
18670 if test "${ac_cv_func_memcmp_working+set}" = set; then
18671 $as_echo_n "(cached) " >&6
18673 if test "$cross_compiling" = yes; then
18674 ac_cv_func_memcmp_working=no
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 $ac_includes_default
18687 /* Some versions of memcmp are not 8-bit clean. */
18688 char c0 = '\100', c1 = '\200', c2 = '\201';
18689 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18692 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18693 or more and with at least one buffer not starting on a 4-byte boundary.
18694 William Lewis provided this test program. */
18699 for (i = 0; i < 4; i++)
18703 strcpy (a, "--------01111111");
18704 strcpy (b, "--------10000000");
18705 if (memcmp (a, b, 16) >= 0)
18715 rm -f conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723 (eval "$ac_link") 2>&5
18725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18732 $as_echo "$ac_try_echo") >&5
18733 (eval "$ac_try") 2>&5
18735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 ac_cv_func_memcmp_working=yes
18739 $as_echo "$as_me: program exited with status $ac_status" >&5
18740 $as_echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ( exit $ac_status )
18744 ac_cv_func_memcmp_working=no
18746 rm -rf conftest.dSYM
18747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18752 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
18753 $as_echo "$ac_cv_func_memcmp_working" >&6; }
18754 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18755 *" memcmp.$ac_objext "* ) ;;
18756 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18762 for ac_func in vprintf
18764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18765 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18766 $as_echo_n "checking for $ac_func... " >&6; }
18767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18768 $as_echo_n "(cached) " >&6
18770 cat >conftest.$ac_ext <<_ACEOF
18773 cat confdefs.h >>conftest.$ac_ext
18774 cat >>conftest.$ac_ext <<_ACEOF
18775 /* end confdefs.h. */
18776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18778 #define $ac_func innocuous_$ac_func
18780 /* System header to define __stub macros and hopefully few prototypes,
18781 which can conflict with char $ac_func (); below.
18782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18783 <limits.h> exists even on freestanding compilers. */
18786 # include <limits.h>
18788 # include <assert.h>
18793 /* Override any GCC internal prototype to avoid an error.
18794 Use char because int might match the return type of a GCC
18795 builtin and then its argument prototype would still apply. */
18800 /* The GNU C library defines this for functions which it implements
18801 to always fail with ENOSYS. Some functions are actually named
18802 something starting with __ and the normal name is an alias. */
18803 #if defined __stub_$ac_func || defined __stub___$ac_func
18810 return $ac_func ();
18815 rm -f conftest.$ac_objext conftest$ac_exeext
18816 if { (ac_try="$ac_link"
18817 case "(($ac_try" in
18818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18819 *) ac_try_echo=$ac_try;;
18821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18822 $as_echo "$ac_try_echo") >&5
18823 (eval "$ac_link") 2>conftest.er1
18825 grep -v '^ *+' conftest.er1 >conftest.err
18827 cat conftest.err >&5
18828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829 (exit $ac_status); } && {
18830 test -z "$ac_c_werror_flag" ||
18831 test ! -s conftest.err
18832 } && test -s conftest$ac_exeext && {
18833 test "$cross_compiling" = yes ||
18834 $as_test_x conftest$ac_exeext
18836 eval "$as_ac_var=yes"
18838 $as_echo "$as_me: failed program was:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 eval "$as_ac_var=no"
18844 rm -rf conftest.dSYM
18845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18846 conftest$ac_exeext conftest.$ac_ext
18848 ac_res=`eval 'as_val=${'$as_ac_var'}
18849 $as_echo "$as_val"'`
18850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18851 $as_echo "$ac_res" >&6; }
18852 as_val=`eval 'as_val=${'$as_ac_var'}
18853 $as_echo "$as_val"'`
18854 if test "x$as_val" = x""yes; then
18855 cat >>confdefs.h <<_ACEOF
18856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18859 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
18860 $as_echo_n "checking for _doprnt... " >&6; }
18861 if test "${ac_cv_func__doprnt+set}" = set; then
18862 $as_echo_n "(cached) " >&6
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18870 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
18871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18872 #define _doprnt innocuous__doprnt
18874 /* System header to define __stub macros and hopefully few prototypes,
18875 which can conflict with char _doprnt (); below.
18876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18877 <limits.h> exists even on freestanding compilers. */
18880 # include <limits.h>
18882 # include <assert.h>
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18894 /* The GNU C library defines this for functions which it implements
18895 to always fail with ENOSYS. Some functions are actually named
18896 something starting with __ and the normal name is an alias. */
18897 #if defined __stub__doprnt || defined __stub____doprnt
18909 rm -f conftest.$ac_objext conftest$ac_exeext
18910 if { (ac_try="$ac_link"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18916 $as_echo "$ac_try_echo") >&5
18917 (eval "$ac_link") 2>conftest.er1
18919 grep -v '^ *+' conftest.er1 >conftest.err
18921 cat conftest.err >&5
18922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); } && {
18924 test -z "$ac_c_werror_flag" ||
18925 test ! -s conftest.err
18926 } && test -s conftest$ac_exeext && {
18927 test "$cross_compiling" = yes ||
18928 $as_test_x conftest$ac_exeext
18930 ac_cv_func__doprnt=yes
18932 $as_echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18935 ac_cv_func__doprnt=no
18938 rm -rf conftest.dSYM
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
18943 $as_echo "$ac_cv_func__doprnt" >&6; }
18944 if test "x$ac_cv_func__doprnt" = x""yes; then
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE_DOPRNT 1
18963 for ac_func in fseeko getdomainname gethostname gettimeofday lckpwdf mkdir select
18965 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18966 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18967 $as_echo_n "checking for $ac_func... " >&6; }
18968 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18969 $as_echo_n "(cached) " >&6
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18979 #define $ac_func innocuous_$ac_func
18981 /* System header to define __stub macros and hopefully few prototypes,
18982 which can conflict with char $ac_func (); below.
18983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18984 <limits.h> exists even on freestanding compilers. */
18987 # include <limits.h>
18989 # include <assert.h>
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
19001 /* The GNU C library defines this for functions which it implements
19002 to always fail with ENOSYS. Some functions are actually named
19003 something starting with __ and the normal name is an alias. */
19004 #if defined __stub_$ac_func || defined __stub___$ac_func
19011 return $ac_func ();
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19023 $as_echo "$ac_try_echo") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext && {
19034 test "$cross_compiling" = yes ||
19035 $as_test_x conftest$ac_exeext
19037 eval "$as_ac_var=yes"
19039 $as_echo "$as_me: failed program was:" >&5
19040 sed 's/^/| /' conftest.$ac_ext >&5
19042 eval "$as_ac_var=no"
19045 rm -rf conftest.dSYM
19046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19047 conftest$ac_exeext conftest.$ac_ext
19049 ac_res=`eval 'as_val=${'$as_ac_var'}
19050 $as_echo "$as_val"'`
19051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19052 $as_echo "$ac_res" >&6; }
19053 as_val=`eval 'as_val=${'$as_ac_var'}
19054 $as_echo "$as_val"'`
19055 if test "x$as_val" = x""yes; then
19056 cat >>confdefs.h <<_ACEOF
19057 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19069 for ac_func in strcspn strdup strspn strstr strtol uname
19071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19072 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19073 $as_echo_n "checking for $ac_func... " >&6; }
19074 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19075 $as_echo_n "(cached) " >&6
19077 cat >conftest.$ac_ext <<_ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19085 #define $ac_func innocuous_$ac_func
19087 /* System header to define __stub macros and hopefully few prototypes,
19088 which can conflict with char $ac_func (); below.
19089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19090 <limits.h> exists even on freestanding compilers. */
19093 # include <limits.h>
19095 # include <assert.h>
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19107 /* The GNU C library defines this for functions which it implements
19108 to always fail with ENOSYS. Some functions are actually named
19109 something starting with __ and the normal name is an alias. */
19110 #if defined __stub_$ac_func || defined __stub___$ac_func
19117 return $ac_func ();
19122 rm -f conftest.$ac_objext conftest$ac_exeext
19123 if { (ac_try="$ac_link"
19124 case "(($ac_try" in
19125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19126 *) ac_try_echo=$ac_try;;
19128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19129 $as_echo "$ac_try_echo") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest$ac_exeext && {
19140 test "$cross_compiling" = yes ||
19141 $as_test_x conftest$ac_exeext
19143 eval "$as_ac_var=yes"
19145 $as_echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 eval "$as_ac_var=no"
19151 rm -rf conftest.dSYM
19152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19153 conftest$ac_exeext conftest.$ac_ext
19155 ac_res=`eval 'as_val=${'$as_ac_var'}
19156 $as_echo "$as_val"'`
19157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19158 $as_echo "$ac_res" >&6; }
19159 as_val=`eval 'as_val=${'$as_ac_var'}
19160 $as_echo "$as_val"'`
19161 if test "x$as_val" = x""yes; then
19162 cat >>confdefs.h <<_ACEOF
19163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19175 for ac_func in getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
19177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19178 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19179 $as_echo_n "checking for $ac_func... " >&6; }
19180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19181 $as_echo_n "(cached) " >&6
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19191 #define $ac_func innocuous_$ac_func
19193 /* System header to define __stub macros and hopefully few prototypes,
19194 which can conflict with char $ac_func (); below.
19195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19196 <limits.h> exists even on freestanding compilers. */
19199 # include <limits.h>
19201 # include <assert.h>
19206 /* Override any GCC internal prototype to avoid an error.
19207 Use char because int might match the return type of a GCC
19208 builtin and then its argument prototype would still apply. */
19213 /* The GNU C library defines this for functions which it implements
19214 to always fail with ENOSYS. Some functions are actually named
19215 something starting with __ and the normal name is an alias. */
19216 #if defined __stub_$ac_func || defined __stub___$ac_func
19223 return $ac_func ();
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (ac_try="$ac_link"
19230 case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19235 $as_echo "$ac_try_echo") >&5
19236 (eval "$ac_link") 2>conftest.er1
19238 grep -v '^ *+' conftest.er1 >conftest.err
19240 cat conftest.err >&5
19241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } && {
19243 test -z "$ac_c_werror_flag" ||
19244 test ! -s conftest.err
19245 } && test -s conftest$ac_exeext && {
19246 test "$cross_compiling" = yes ||
19247 $as_test_x conftest$ac_exeext
19249 eval "$as_ac_var=yes"
19251 $as_echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 eval "$as_ac_var=no"
19257 rm -rf conftest.dSYM
19258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19259 conftest$ac_exeext conftest.$ac_ext
19261 ac_res=`eval 'as_val=${'$as_ac_var'}
19262 $as_echo "$as_val"'`
19263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19264 $as_echo "$ac_res" >&6; }
19265 as_val=`eval 'as_val=${'$as_ac_var'}
19266 $as_echo "$as_val"'`
19267 if test "x$as_val" = x""yes; then
19268 cat >>confdefs.h <<_ACEOF
19269 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19278 for ac_func in getgrouplist getline getdelim
19280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19281 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19282 $as_echo_n "checking for $ac_func... " >&6; }
19283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19284 $as_echo_n "(cached) " >&6
19286 cat >conftest.$ac_ext <<_ACEOF
19289 cat confdefs.h >>conftest.$ac_ext
19290 cat >>conftest.$ac_ext <<_ACEOF
19291 /* end confdefs.h. */
19292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19294 #define $ac_func innocuous_$ac_func
19296 /* System header to define __stub macros and hopefully few prototypes,
19297 which can conflict with char $ac_func (); below.
19298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19299 <limits.h> exists even on freestanding compilers. */
19302 # include <limits.h>
19304 # include <assert.h>
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19316 /* The GNU C library defines this for functions which it implements
19317 to always fail with ENOSYS. Some functions are actually named
19318 something starting with __ and the normal name is an alias. */
19319 #if defined __stub_$ac_func || defined __stub___$ac_func
19326 return $ac_func ();
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339 (eval "$ac_link") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest$ac_exeext && {
19349 test "$cross_compiling" = yes ||
19350 $as_test_x conftest$ac_exeext
19352 eval "$as_ac_var=yes"
19354 $as_echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 eval "$as_ac_var=no"
19360 rm -rf conftest.dSYM
19361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19362 conftest$ac_exeext conftest.$ac_ext
19364 ac_res=`eval 'as_val=${'$as_ac_var'}
19365 $as_echo "$as_val"'`
19366 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19367 $as_echo "$ac_res" >&6; }
19368 as_val=`eval 'as_val=${'$as_ac_var'}
19369 $as_echo "$as_val"'`
19370 if test "x$as_val" = x""yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19382 for ac_func in inet_ntop inet_pton innetgr ruserok_af
19384 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19385 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19386 $as_echo_n "checking for $ac_func... " >&6; }
19387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19388 $as_echo_n "(cached) " >&6
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19398 #define $ac_func innocuous_$ac_func
19400 /* System header to define __stub macros and hopefully few prototypes,
19401 which can conflict with char $ac_func (); below.
19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403 <limits.h> exists even on freestanding compilers. */
19406 # include <limits.h>
19408 # include <assert.h>
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined __stub_$ac_func || defined __stub___$ac_func
19430 return $ac_func ();
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19442 $as_echo "$ac_try_echo") >&5
19443 (eval "$ac_link") 2>conftest.er1
19445 grep -v '^ *+' conftest.er1 >conftest.err
19447 cat conftest.err >&5
19448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext && {
19453 test "$cross_compiling" = yes ||
19454 $as_test_x conftest$ac_exeext
19456 eval "$as_ac_var=yes"
19458 $as_echo "$as_me: failed program was:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 eval "$as_ac_var=no"
19464 rm -rf conftest.dSYM
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19468 ac_res=`eval 'as_val=${'$as_ac_var'}
19469 $as_echo "$as_val"'`
19470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19471 $as_echo "$ac_res" >&6; }
19472 as_val=`eval 'as_val=${'$as_ac_var'}
19473 $as_echo "$as_val"'`
19474 if test "x$as_val" = x""yes; then
19475 cat >>confdefs.h <<_ACEOF
19476 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19484 for ac_func in unshare
19486 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19487 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19488 $as_echo_n "checking for $ac_func... " >&6; }
19489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19490 $as_echo_n "(cached) " >&6
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19500 #define $ac_func innocuous_$ac_func
19502 /* System header to define __stub macros and hopefully few prototypes,
19503 which can conflict with char $ac_func (); below.
19504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505 <limits.h> exists even on freestanding compilers. */
19508 # include <limits.h>
19510 # include <assert.h>
19515 /* Override any GCC internal prototype to avoid an error.
19516 Use char because int might match the return type of a GCC
19517 builtin and then its argument prototype would still apply. */
19522 /* The GNU C library defines this for functions which it implements
19523 to always fail with ENOSYS. Some functions are actually named
19524 something starting with __ and the normal name is an alias. */
19525 #if defined __stub_$ac_func || defined __stub___$ac_func
19532 return $ac_func ();
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19544 $as_echo "$ac_try_echo") >&5
19545 (eval "$ac_link") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest$ac_exeext && {
19555 test "$cross_compiling" = yes ||
19556 $as_test_x conftest$ac_exeext
19558 eval "$as_ac_var=yes"
19560 $as_echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 eval "$as_ac_var=no"
19566 rm -rf conftest.dSYM
19567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19568 conftest$ac_exeext conftest.$ac_ext
19570 ac_res=`eval 'as_val=${'$as_ac_var'}
19571 $as_echo "$as_val"'`
19572 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19573 $as_echo "$ac_res" >&6; }
19574 as_val=`eval 'as_val=${'$as_ac_var'}
19575 $as_echo "$as_val"'`
19576 if test "x$as_val" = x""yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19586 if test "$UNSHARE" = yes; then
19588 HAVE_UNSHARE_FALSE='#'
19590 HAVE_UNSHARE_TRUE='#'
19591 HAVE_UNSHARE_FALSE=
19595 # Check whether --enable-regenerate-docu was given.
19596 if test "${enable_regenerate_docu+set}" = set; then
19597 enableval=$enable_regenerate_docu; enable_docu=$enableval
19602 # Extract the first word of "xsltproc", so it can be a program name with args.
19603 set dummy xsltproc; ac_word=$2
19604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19605 $as_echo_n "checking for $ac_word... " >&6; }
19606 if test "${ac_cv_path_XSLTPROC+set}" = set; then
19607 $as_echo_n "(cached) " >&6
19611 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
19614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19615 for as_dir in $PATH
19618 test -z "$as_dir" && as_dir=.
19619 for ac_exec_ext in '' $ac_executable_extensions; do
19620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19621 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
19622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19632 XSLTPROC=$ac_cv_path_XSLTPROC
19633 if test -n "$XSLTPROC"; then
19634 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
19635 $as_echo "$XSLTPROC" >&6; }
19637 { $as_echo "$as_me:$LINENO: result: no" >&5
19638 $as_echo "no" >&6; }
19642 if test -z "$XSLTPROC"; then
19645 # Extract the first word of "xmllint", so it can be a program name with args.
19646 set dummy xmllint; ac_word=$2
19647 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19648 $as_echo_n "checking for $ac_word... " >&6; }
19649 if test "${ac_cv_path_XMLLINT+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19654 ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
19657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19658 for as_dir in $PATH
19661 test -z "$as_dir" && as_dir=.
19662 for ac_exec_ext in '' $ac_executable_extensions; do
19663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19664 ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
19665 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19672 test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/bin/true"
19676 XMLLINT=$ac_cv_path_XMLLINT
19677 if test -n "$XMLLINT"; then
19678 { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
19679 $as_echo "$XMLLINT" >&6; }
19681 { $as_echo "$as_me:$LINENO: result: no" >&5
19682 $as_echo "no" >&6; }
19687 # check for the presence of the XML catalog
19689 # Check whether --with-xml-catalog was given.
19690 if test "${with_xml_catalog+set}" = set; then
19691 withval=$with_xml_catalog;
19693 with_xml_catalog=/etc/xml/catalog
19696 jh_found_xmlcatalog=true
19697 XML_CATALOG_FILE="$with_xml_catalog"
19699 { $as_echo "$as_me:$LINENO: checking for XML catalog ($XML_CATALOG_FILE)" >&5
19700 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
19701 if test -f "$XML_CATALOG_FILE"; then
19702 { $as_echo "$as_me:$LINENO: result: found" >&5
19703 $as_echo "found" >&6; }
19705 jh_found_xmlcatalog=false
19706 { $as_echo "$as_me:$LINENO: result: not found" >&5
19707 $as_echo "not found" >&6; }
19710 # check for the xmlcatalog program
19711 # Extract the first word of "xmlcatalog", so it can be a program name with args.
19712 set dummy xmlcatalog; ac_word=$2
19713 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19714 $as_echo_n "checking for $ac_word... " >&6; }
19715 if test "${ac_cv_path_XMLCATALOG+set}" = set; then
19716 $as_echo_n "(cached) " >&6
19718 case $XMLCATALOG in
19720 ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
19723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19724 for as_dir in $PATH
19727 test -z "$as_dir" && as_dir=.
19728 for ac_exec_ext in '' $ac_executable_extensions; do
19729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19730 ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
19731 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19738 test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
19742 XMLCATALOG=$ac_cv_path_XMLCATALOG
19743 if test -n "$XMLCATALOG"; then
19744 { $as_echo "$as_me:$LINENO: result: $XMLCATALOG" >&5
19745 $as_echo "$XMLCATALOG" >&6; }
19747 { $as_echo "$as_me:$LINENO: result: no" >&5
19748 $as_echo "no" >&6; }
19752 if test "x$XMLCATALOG" = xno; then
19753 jh_found_xmlcatalog=false
19756 if $jh_found_xmlcatalog; then
19763 { $as_echo "$as_me:$LINENO: checking for DocBook XML DTD V4.4 in XML catalog" >&5
19764 $as_echo_n "checking for DocBook XML DTD V4.4 in XML catalog... " >&6; }
19765 if $jh_found_xmlcatalog && \
19766 { ($as_echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.4//EN\" >&2") >&5
19767 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.4//EN" >&2) 2>&5
19769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; then
19771 { $as_echo "$as_me:$LINENO: result: found" >&5
19772 $as_echo "found" >&6; }
19774 { $as_echo "$as_me:$LINENO: result: not found" >&5
19775 $as_echo "not found" >&6; }
19780 { $as_echo "$as_me:$LINENO: checking for DocBook XSL Stylesheets in XML catalog" >&5
19781 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
19782 if $jh_found_xmlcatalog && \
19783 { ($as_echo "$as_me:$LINENO: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2") >&5
19784 ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
19786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; then
19788 { $as_echo "$as_me:$LINENO: result: found" >&5
19789 $as_echo "found" >&6; }
19791 { $as_echo "$as_me:$LINENO: result: not found" >&5
19792 $as_echo "not found" >&6; }
19797 # Extract the first word of "w3m", so it can be a program name with args.
19798 set dummy w3m; ac_word=$2
19799 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19800 $as_echo_n "checking for $ac_word... " >&6; }
19801 if test "${ac_cv_path_BROWSER+set}" = set; then
19802 $as_echo_n "(cached) " >&6
19806 ac_cv_path_BROWSER="$BROWSER" # Let the user override the test with a path.
19809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19810 for as_dir in $PATH
19813 test -z "$as_dir" && as_dir=.
19814 for ac_exec_ext in '' $ac_executable_extensions; do
19815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19816 ac_cv_path_BROWSER="$as_dir/$ac_word$ac_exec_ext"
19817 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19827 BROWSER=$ac_cv_path_BROWSER
19828 if test -n "$BROWSER"; then
19829 { $as_echo "$as_me:$LINENO: result: $BROWSER" >&5
19830 $as_echo "$BROWSER" >&6; }
19832 { $as_echo "$as_me:$LINENO: result: no" >&5
19833 $as_echo "no" >&6; }
19837 if test ! -z "$BROWSER"; then
19838 BROWSER="$BROWSER -T text/html -dump"
19843 # Extract the first word of "fop", so it can be a program name with args.
19844 set dummy fop; ac_word=$2
19845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19846 $as_echo_n "checking for $ac_word... " >&6; }
19847 if test "${ac_cv_path_FO2PDF+set}" = set; then
19848 $as_echo_n "(cached) " >&6
19852 ac_cv_path_FO2PDF="$FO2PDF" # Let the user override the test with a path.
19855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19856 for as_dir in $PATH
19859 test -z "$as_dir" && as_dir=.
19860 for ac_exec_ext in '' $ac_executable_extensions; do
19861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19862 ac_cv_path_FO2PDF="$as_dir/$ac_word$ac_exec_ext"
19863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19873 FO2PDF=$ac_cv_path_FO2PDF
19874 if test -n "$FO2PDF"; then
19875 { $as_echo "$as_me:$LINENO: result: $FO2PDF" >&5
19876 $as_echo "$FO2PDF" >&6; }
19878 { $as_echo "$as_me:$LINENO: result: no" >&5
19879 $as_echo "no" >&6; }
19884 if test x$enable_docu != xno; then
19885 ENABLE_REGENERATE_MAN_TRUE=
19886 ENABLE_REGENERATE_MAN_FALSE='#'
19888 ENABLE_REGENERATE_MAN_TRUE='#'
19889 ENABLE_REGENERATE_MAN_FALSE=
19892 if test ! -z "$FO2PDF"; then
19893 ENABLE_GENERATE_PDF_TRUE=
19894 ENABLE_GENERATE_PDF_FALSE='#'
19896 ENABLE_GENERATE_PDF_TRUE='#'
19897 ENABLE_GENERATE_PDF_FALSE=
19904 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
19905 $as_echo_n "checking whether NLS is requested... " >&6; }
19906 # Check whether --enable-nls was given.
19907 if test "${enable_nls+set}" = set; then
19908 enableval=$enable_nls; USE_NLS=$enableval
19913 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
19914 $as_echo "$USE_NLS" >&6; }
19919 GETTEXT_MACRO_VERSION=0.17
19924 # Prepare PATH_SEPARATOR.
19925 # The user is always right.
19926 if test "${PATH_SEPARATOR+set}" != set; then
19927 echo "#! /bin/sh" >conf$$.sh
19928 echo "exit 0" >>conf$$.sh
19930 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19938 # Find out how to test for executable files. Don't use a zero-byte file,
19939 # as systems may use methods other than mode bits to determine executability.
19940 cat >conf$$.file <<_ASEOF
19944 chmod +x conf$$.file
19945 if test -x conf$$.file >/dev/null 2>&1; then
19946 ac_executable_p="test -x"
19948 ac_executable_p="test -f"
19952 # Extract the first word of "msgfmt", so it can be a program name with args.
19953 set dummy msgfmt; ac_word=$2
19954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19955 $as_echo_n "checking for $ac_word... " >&6; }
19956 if test "${ac_cv_path_MSGFMT+set}" = set; then
19957 $as_echo_n "(cached) " >&6
19961 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19964 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
19965 for ac_dir in $PATH; do
19967 test -z "$ac_dir" && ac_dir=.
19968 for ac_exec_ext in '' $ac_executable_extensions; do
19969 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
19970 echo "$as_me: trying $ac_dir/$ac_word..." >&5
19971 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
19972 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
19973 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
19980 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
19984 MSGFMT="$ac_cv_path_MSGFMT"
19985 if test "$MSGFMT" != ":"; then
19986 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
19987 $as_echo "$MSGFMT" >&6; }
19989 { $as_echo "$as_me:$LINENO: result: no" >&5
19990 $as_echo "no" >&6; }
19993 # Extract the first word of "gmsgfmt", so it can be a program name with args.
19994 set dummy gmsgfmt; ac_word=$2
19995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19996 $as_echo_n "checking for $ac_word... " >&6; }
19997 if test "${ac_cv_path_GMSGFMT+set}" = set; then
19998 $as_echo_n "(cached) " >&6
20002 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20006 for as_dir in $PATH
20009 test -z "$as_dir" && as_dir=.
20010 for ac_exec_ext in '' $ac_executable_extensions; do
20011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20012 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20020 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20024 GMSGFMT=$ac_cv_path_GMSGFMT
20025 if test -n "$GMSGFMT"; then
20026 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20027 $as_echo "$GMSGFMT" >&6; }
20029 { $as_echo "$as_me:$LINENO: result: no" >&5
20030 $as_echo "no" >&6; }
20035 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20036 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20037 *) MSGFMT_015=$MSGFMT ;;
20040 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20041 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20042 *) GMSGFMT_015=$GMSGFMT ;;
20047 # Prepare PATH_SEPARATOR.
20048 # The user is always right.
20049 if test "${PATH_SEPARATOR+set}" != set; then
20050 echo "#! /bin/sh" >conf$$.sh
20051 echo "exit 0" >>conf$$.sh
20053 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20061 # Find out how to test for executable files. Don't use a zero-byte file,
20062 # as systems may use methods other than mode bits to determine executability.
20063 cat >conf$$.file <<_ASEOF
20067 chmod +x conf$$.file
20068 if test -x conf$$.file >/dev/null 2>&1; then
20069 ac_executable_p="test -x"
20071 ac_executable_p="test -f"
20075 # Extract the first word of "xgettext", so it can be a program name with args.
20076 set dummy xgettext; ac_word=$2
20077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20078 $as_echo_n "checking for $ac_word... " >&6; }
20079 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20080 $as_echo_n "(cached) " >&6
20082 case "$XGETTEXT" in
20084 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
20087 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20088 for ac_dir in $PATH; do
20090 test -z "$ac_dir" && ac_dir=.
20091 for ac_exec_ext in '' $ac_executable_extensions; do
20092 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20093 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20094 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
20095 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
20096 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20103 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20107 XGETTEXT="$ac_cv_path_XGETTEXT"
20108 if test "$XGETTEXT" != ":"; then
20109 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20110 $as_echo "$XGETTEXT" >&6; }
20112 { $as_echo "$as_me:$LINENO: result: no" >&5
20113 $as_echo "no" >&6; }
20118 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20119 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20120 *) XGETTEXT_015=$XGETTEXT ;;
20125 # Prepare PATH_SEPARATOR.
20126 # The user is always right.
20127 if test "${PATH_SEPARATOR+set}" != set; then
20128 echo "#! /bin/sh" >conf$$.sh
20129 echo "exit 0" >>conf$$.sh
20131 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20139 # Find out how to test for executable files. Don't use a zero-byte file,
20140 # as systems may use methods other than mode bits to determine executability.
20141 cat >conf$$.file <<_ASEOF
20145 chmod +x conf$$.file
20146 if test -x conf$$.file >/dev/null 2>&1; then
20147 ac_executable_p="test -x"
20149 ac_executable_p="test -f"
20153 # Extract the first word of "msgmerge", so it can be a program name with args.
20154 set dummy msgmerge; ac_word=$2
20155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20156 $as_echo_n "checking for $ac_word... " >&6; }
20157 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20158 $as_echo_n "(cached) " >&6
20160 case "$MSGMERGE" in
20162 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
20165 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20166 for ac_dir in $PATH; do
20168 test -z "$ac_dir" && ac_dir=.
20169 for ac_exec_ext in '' $ac_executable_extensions; do
20170 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20171 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20172 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20173 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20180 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20184 MSGMERGE="$ac_cv_path_MSGMERGE"
20185 if test "$MSGMERGE" != ":"; then
20186 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20187 $as_echo "$MSGMERGE" >&6; }
20189 { $as_echo "$as_me:$LINENO: result: no" >&5
20190 $as_echo "no" >&6; }
20194 test -n "$localedir" || localedir='${datadir}/locale'
20197 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
20200 ac_config_commands="$ac_config_commands po-directories"
20204 if test "X$prefix" = "XNONE"; then
20205 acl_final_prefix="$ac_default_prefix"
20207 acl_final_prefix="$prefix"
20209 if test "X$exec_prefix" = "XNONE"; then
20210 acl_final_exec_prefix='${prefix}'
20212 acl_final_exec_prefix="$exec_prefix"
20214 acl_save_prefix="$prefix"
20215 prefix="$acl_final_prefix"
20216 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20217 prefix="$acl_save_prefix"
20220 # Check whether --with-gnu-ld was given.
20221 if test "${with_gnu_ld+set}" = set; then
20222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20227 # Prepare PATH_SEPARATOR.
20228 # The user is always right.
20229 if test "${PATH_SEPARATOR+set}" != set; then
20230 echo "#! /bin/sh" >conf$$.sh
20231 echo "exit 0" >>conf$$.sh
20233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20241 if test "$GCC" = yes; then
20242 # Check if gcc -print-prog-name=ld gives a path.
20243 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20244 $as_echo_n "checking for ld used by GCC... " >&6; }
20247 # gcc leaves a trailing carriage return which upsets mingw
20248 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20250 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20253 # Accept absolute paths.
20254 [\\/]* | [A-Za-z]:[\\/]*)
20255 re_direlt='/[^/][^/]*/\.\./'
20256 # Canonicalize the path of ld
20257 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20258 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20259 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20261 test -z "$LD" && LD="$ac_prog"
20264 # If it fails, then pretend we aren't using GCC.
20268 # If it is relative, then search for the first ld in PATH.
20269 with_gnu_ld=unknown
20272 elif test "$with_gnu_ld" = yes; then
20273 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20274 $as_echo_n "checking for GNU ld... " >&6; }
20276 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20277 $as_echo_n "checking for non-GNU ld... " >&6; }
20279 if test "${acl_cv_path_LD+set}" = set; then
20280 $as_echo_n "(cached) " >&6
20282 if test -z "$LD"; then
20283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20284 for ac_dir in $PATH; do
20285 test -z "$ac_dir" && ac_dir=.
20286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20287 acl_cv_path_LD="$ac_dir/$ac_prog"
20288 # Check to see if the program is GNU ld. I'd rather use --version,
20289 # but apparently some GNU ld's only accept -v.
20290 # Break only if it was the GNU/non-GNU ld that we prefer.
20291 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20292 *GNU* | *'with BFD'*)
20293 test "$with_gnu_ld" != no && break ;;
20295 test "$with_gnu_ld" != yes && break ;;
20301 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20305 LD="$acl_cv_path_LD"
20306 if test -n "$LD"; then
20307 { $as_echo "$as_me:$LINENO: result: $LD" >&5
20308 $as_echo "$LD" >&6; }
20310 { $as_echo "$as_me:$LINENO: result: no" >&5
20311 $as_echo "no" >&6; }
20313 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20314 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20315 { (exit 1); exit 1; }; }
20316 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20318 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20319 $as_echo_n "(cached) " >&6
20321 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20322 case `$LD -v 2>&1 </dev/null` in
20323 *GNU* | *'with BFD'*)
20324 acl_cv_prog_gnu_ld=yes ;;
20326 acl_cv_prog_gnu_ld=no ;;
20329 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20330 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20331 with_gnu_ld=$acl_cv_prog_gnu_ld
20336 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20337 $as_echo_n "checking for shared library run path origin... " >&6; }
20338 if test "${acl_cv_rpath+set}" = set; then
20339 $as_echo_n "(cached) " >&6
20342 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20343 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20345 rm -f ./conftest.sh
20349 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20350 $as_echo "$acl_cv_rpath" >&6; }
20352 acl_libext="$acl_cv_libext"
20353 acl_shlibext="$acl_cv_shlibext"
20354 acl_libname_spec="$acl_cv_libname_spec"
20355 acl_library_names_spec="$acl_cv_library_names_spec"
20356 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20357 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20358 acl_hardcode_direct="$acl_cv_hardcode_direct"
20359 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20360 # Check whether --enable-rpath was given.
20361 if test "${enable_rpath+set}" = set; then
20362 enableval=$enable_rpath; :
20370 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20371 if test -n "$searchpath"; then
20372 acl_save_IFS="${IFS= }"; IFS=":"
20373 for searchdir in $searchpath; do
20374 if test -d "$searchdir"; then
20375 case "$searchdir" in
20376 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20377 *) searchdir=`cd "$searchdir" && pwd`
20378 case "$searchdir" in
20379 */lib64 ) acl_libdirstem=lib64 ;;
20384 IFS="$acl_save_IFS"
20397 acl_save_prefix="$prefix"
20398 prefix="$acl_final_prefix"
20399 acl_save_exec_prefix="$exec_prefix"
20400 exec_prefix="$acl_final_exec_prefix"
20402 eval additional_includedir=\"$includedir\"
20403 eval additional_libdir=\"$libdir\"
20405 exec_prefix="$acl_save_exec_prefix"
20406 prefix="$acl_save_prefix"
20409 # Check whether --with-libiconv-prefix was given.
20410 if test "${with_libiconv_prefix+set}" = set; then
20411 withval=$with_libiconv_prefix;
20412 if test "X$withval" = "Xno"; then
20415 if test "X$withval" = "X"; then
20417 acl_save_prefix="$prefix"
20418 prefix="$acl_final_prefix"
20419 acl_save_exec_prefix="$exec_prefix"
20420 exec_prefix="$acl_final_exec_prefix"
20422 eval additional_includedir=\"$includedir\"
20423 eval additional_libdir=\"$libdir\"
20425 exec_prefix="$acl_save_exec_prefix"
20426 prefix="$acl_save_prefix"
20429 additional_includedir="$withval/include"
20430 additional_libdir="$withval/$acl_libdirstem"
20442 names_already_handled=
20443 names_next_round='iconv '
20444 while test -n "$names_next_round"; do
20445 names_this_round="$names_next_round"
20447 for name in $names_this_round; do
20449 for n in $names_already_handled; do
20450 if test "$n" = "$name"; then
20451 already_handled=yes
20455 if test -z "$already_handled"; then
20456 names_already_handled="$names_already_handled $name"
20457 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20458 eval value=\"\$HAVE_LIB$uppername\"
20459 if test -n "$value"; then
20460 if test "$value" = yes; then
20461 eval value=\"\$LIB$uppername\"
20462 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20463 eval value=\"\$LTLIB$uppername\"
20464 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20473 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20474 if test -n "$acl_shlibext"; then
20475 shrext=".$acl_shlibext" # typically: shrext=.so
20479 if test $use_additional = yes; then
20480 dir="$additional_libdir"
20481 if test -n "$acl_shlibext"; then
20482 if test -f "$dir/$libname$shrext"; then
20484 found_so="$dir/$libname$shrext"
20486 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20487 ver=`(cd "$dir" && \
20488 for f in "$libname$shrext".*; do echo "$f"; done \
20489 | sed -e "s,^$libname$shrext\\\\.,," \
20490 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20491 | sed 1q ) 2>/dev/null`
20492 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20494 found_so="$dir/$libname$shrext.$ver"
20497 eval library_names=\"$acl_library_names_spec\"
20498 for f in $library_names; do
20499 if test -f "$dir/$f"; then
20508 if test "X$found_dir" = "X"; then
20509 if test -f "$dir/$libname.$acl_libext"; then
20511 found_a="$dir/$libname.$acl_libext"
20514 if test "X$found_dir" != "X"; then
20515 if test -f "$dir/$libname.la"; then
20516 found_la="$dir/$libname.la"
20520 if test "X$found_dir" = "X"; then
20521 for x in $LDFLAGS $LTLIBICONV; do
20523 acl_save_prefix="$prefix"
20524 prefix="$acl_final_prefix"
20525 acl_save_exec_prefix="$exec_prefix"
20526 exec_prefix="$acl_final_exec_prefix"
20528 exec_prefix="$acl_save_exec_prefix"
20529 prefix="$acl_save_prefix"
20533 dir=`echo "X$x" | sed -e 's/^X-L//'`
20534 if test -n "$acl_shlibext"; then
20535 if test -f "$dir/$libname$shrext"; then
20537 found_so="$dir/$libname$shrext"
20539 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20540 ver=`(cd "$dir" && \
20541 for f in "$libname$shrext".*; do echo "$f"; done \
20542 | sed -e "s,^$libname$shrext\\\\.,," \
20543 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20544 | sed 1q ) 2>/dev/null`
20545 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20547 found_so="$dir/$libname$shrext.$ver"
20550 eval library_names=\"$acl_library_names_spec\"
20551 for f in $library_names; do
20552 if test -f "$dir/$f"; then
20561 if test "X$found_dir" = "X"; then
20562 if test -f "$dir/$libname.$acl_libext"; then
20564 found_a="$dir/$libname.$acl_libext"
20567 if test "X$found_dir" != "X"; then
20568 if test -f "$dir/$libname.la"; then
20569 found_la="$dir/$libname.la"
20574 if test "X$found_dir" != "X"; then
20579 if test "X$found_dir" != "X"; then
20580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20581 if test "X$found_so" != "X"; then
20582 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
20583 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20586 for x in $ltrpathdirs; do
20587 if test "X$x" = "X$found_dir"; then
20592 if test -z "$haveit"; then
20593 ltrpathdirs="$ltrpathdirs $found_dir"
20595 if test "$acl_hardcode_direct" = yes; then
20596 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20598 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20599 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20601 for x in $rpathdirs; do
20602 if test "X$x" = "X$found_dir"; then
20607 if test -z "$haveit"; then
20608 rpathdirs="$rpathdirs $found_dir"
20612 for x in $LDFLAGS $LIBICONV; do
20614 acl_save_prefix="$prefix"
20615 prefix="$acl_final_prefix"
20616 acl_save_exec_prefix="$exec_prefix"
20617 exec_prefix="$acl_final_exec_prefix"
20619 exec_prefix="$acl_save_exec_prefix"
20620 prefix="$acl_save_prefix"
20622 if test "X$x" = "X-L$found_dir"; then
20627 if test -z "$haveit"; then
20628 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20630 if test "$acl_hardcode_minus_L" != no; then
20631 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20633 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20639 if test "X$found_a" != "X"; then
20640 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20642 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20645 additional_includedir=
20646 case "$found_dir" in
20647 */$acl_libdirstem | */$acl_libdirstem/)
20648 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20649 LIBICONV_PREFIX="$basedir"
20650 additional_includedir="$basedir/include"
20653 if test "X$additional_includedir" != "X"; then
20654 if test "X$additional_includedir" != "X/usr/include"; then
20656 if test "X$additional_includedir" = "X/usr/local/include"; then
20657 if test -n "$GCC"; then
20659 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20663 if test -z "$haveit"; then
20664 for x in $CPPFLAGS $INCICONV; do
20666 acl_save_prefix="$prefix"
20667 prefix="$acl_final_prefix"
20668 acl_save_exec_prefix="$exec_prefix"
20669 exec_prefix="$acl_final_exec_prefix"
20671 exec_prefix="$acl_save_exec_prefix"
20672 prefix="$acl_save_prefix"
20674 if test "X$x" = "X-I$additional_includedir"; then
20679 if test -z "$haveit"; then
20680 if test -d "$additional_includedir"; then
20681 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20687 if test -n "$found_la"; then
20688 save_libdir="$libdir"
20689 case "$found_la" in
20690 */* | *\\*) . "$found_la" ;;
20691 *) . "./$found_la" ;;
20693 libdir="$save_libdir"
20694 for dep in $dependency_libs; do
20697 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20698 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
20700 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
20701 if test -n "$GCC"; then
20703 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20707 if test -z "$haveit"; then
20709 for x in $LDFLAGS $LIBICONV; do
20711 acl_save_prefix="$prefix"
20712 prefix="$acl_final_prefix"
20713 acl_save_exec_prefix="$exec_prefix"
20714 exec_prefix="$acl_final_exec_prefix"
20716 exec_prefix="$acl_save_exec_prefix"
20717 prefix="$acl_save_prefix"
20719 if test "X$x" = "X-L$additional_libdir"; then
20724 if test -z "$haveit"; then
20725 if test -d "$additional_libdir"; then
20726 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20730 for x in $LDFLAGS $LTLIBICONV; do
20732 acl_save_prefix="$prefix"
20733 prefix="$acl_final_prefix"
20734 acl_save_exec_prefix="$exec_prefix"
20735 exec_prefix="$acl_final_exec_prefix"
20737 exec_prefix="$acl_save_exec_prefix"
20738 prefix="$acl_save_prefix"
20740 if test "X$x" = "X-L$additional_libdir"; then
20745 if test -z "$haveit"; then
20746 if test -d "$additional_libdir"; then
20747 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20754 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20755 if test "$enable_rpath" != no; then
20757 for x in $rpathdirs; do
20758 if test "X$x" = "X$dir"; then
20763 if test -z "$haveit"; then
20764 rpathdirs="$rpathdirs $dir"
20767 for x in $ltrpathdirs; do
20768 if test "X$x" = "X$dir"; then
20773 if test -z "$haveit"; then
20774 ltrpathdirs="$ltrpathdirs $dir"
20779 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20782 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20785 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20792 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20793 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20799 if test "X$rpathdirs" != "X"; then
20800 if test -n "$acl_hardcode_libdir_separator"; then
20802 for found_dir in $rpathdirs; do
20803 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20805 acl_save_libdir="$libdir"
20807 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20808 libdir="$acl_save_libdir"
20809 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20811 for found_dir in $rpathdirs; do
20812 acl_save_libdir="$libdir"
20813 libdir="$found_dir"
20814 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20815 libdir="$acl_save_libdir"
20816 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20820 if test "X$ltrpathdirs" != "X"; then
20821 for found_dir in $ltrpathdirs; do
20822 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20850 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
20851 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20852 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
20853 $as_echo_n "(cached) " >&6
20855 gt_save_LIBS="$LIBS"
20856 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 #include <CoreFoundation/CFPreferences.h>
20867 CFPreferencesCopyAppValue(NULL, NULL)
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20879 $as_echo "$ac_try_echo") >&5
20880 (eval "$ac_link") 2>conftest.er1
20882 grep -v '^ *+' conftest.er1 >conftest.err
20884 cat conftest.err >&5
20885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest$ac_exeext && {
20890 test "$cross_compiling" = yes ||
20891 $as_test_x conftest$ac_exeext
20893 gt_cv_func_CFPreferencesCopyAppValue=yes
20895 $as_echo "$as_me: failed program was:" >&5
20896 sed 's/^/| /' conftest.$ac_ext >&5
20898 gt_cv_func_CFPreferencesCopyAppValue=no
20901 rm -rf conftest.dSYM
20902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20903 conftest$ac_exeext conftest.$ac_ext
20904 LIBS="$gt_save_LIBS"
20906 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20907 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20908 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20910 cat >>confdefs.h <<\_ACEOF
20911 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
20915 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
20916 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20917 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
20918 $as_echo_n "(cached) " >&6
20920 gt_save_LIBS="$LIBS"
20921 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <CoreFoundation/CFLocale.h>
20932 CFLocaleCopyCurrent();
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20944 $as_echo "$ac_try_echo") >&5
20945 (eval "$ac_link") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } && {
20952 test -z "$ac_c_werror_flag" ||
20953 test ! -s conftest.err
20954 } && test -s conftest$ac_exeext && {
20955 test "$cross_compiling" = yes ||
20956 $as_test_x conftest$ac_exeext
20958 gt_cv_func_CFLocaleCopyCurrent=yes
20960 $as_echo "$as_me: failed program was:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 gt_cv_func_CFLocaleCopyCurrent=no
20966 rm -rf conftest.dSYM
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20969 LIBS="$gt_save_LIBS"
20971 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20972 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20973 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20975 cat >>confdefs.h <<\_ACEOF
20976 #define HAVE_CFLOCALECOPYCURRENT 1
20981 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20982 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20994 case " $gt_needs " in
20995 *" need-formatstring-macros "*) gt_api_version=3 ;;
20996 *" need-ngettext "*) gt_api_version=2 ;;
20997 *) gt_api_version=1 ;;
20999 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
21000 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
21002 if test "$USE_NLS" = "yes"; then
21003 gt_use_preinstalled_gnugettext=no
21006 if test $gt_api_version -ge 3; then
21007 gt_revision_test_code='
21008 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21009 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
21011 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
21014 gt_revision_test_code=
21016 if test $gt_api_version -ge 2; then
21017 gt_expression_test_code=' + * ngettext ("", "", 0)'
21019 gt_expression_test_code=
21022 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21023 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21024 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached) " >&6
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <libintl.h>
21034 $gt_revision_test_code
21035 extern int _nl_msg_cat_cntr;
21036 extern int *_nl_domain_bindings;
21040 bindtextdomain ("", "");
21041 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21046 rm -f conftest.$ac_objext conftest$ac_exeext
21047 if { (ac_try="$ac_link"
21048 case "(($ac_try" in
21049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050 *) ac_try_echo=$ac_try;;
21052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21053 $as_echo "$ac_try_echo") >&5
21054 (eval "$ac_link") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest$ac_exeext && {
21064 test "$cross_compiling" = yes ||
21065 $as_test_x conftest$ac_exeext
21067 eval "$gt_func_gnugettext_libc=yes"
21069 $as_echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21072 eval "$gt_func_gnugettext_libc=no"
21075 rm -rf conftest.dSYM
21076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21077 conftest$ac_exeext conftest.$ac_ext
21079 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
21080 $as_echo "$as_val"'`
21081 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21082 $as_echo "$ac_res" >&6; }
21084 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21090 am_save_CPPFLAGS="$CPPFLAGS"
21092 for element in $INCICONV; do
21094 for x in $CPPFLAGS; do
21096 acl_save_prefix="$prefix"
21097 prefix="$acl_final_prefix"
21098 acl_save_exec_prefix="$exec_prefix"
21099 exec_prefix="$acl_final_exec_prefix"
21101 exec_prefix="$acl_save_exec_prefix"
21102 prefix="$acl_save_prefix"
21104 if test "X$x" = "X$element"; then
21109 if test -z "$haveit"; then
21110 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21115 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21116 $as_echo_n "checking for iconv... " >&6; }
21117 if test "${am_cv_func_iconv+set}" = set; then
21118 $as_echo_n "(cached) " >&6
21121 am_cv_func_iconv="no, consider installing GNU libiconv"
21123 cat >conftest.$ac_ext <<_ACEOF
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 #include <stdlib.h>
21134 iconv_t cd = iconv_open("","");
21135 iconv(cd,NULL,NULL,NULL,NULL);
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145 *) ac_try_echo=$ac_try;;
21147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21148 $as_echo "$ac_try_echo") >&5
21149 (eval "$ac_link") 2>conftest.er1
21151 grep -v '^ *+' conftest.er1 >conftest.err
21153 cat conftest.err >&5
21154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); } && {
21156 test -z "$ac_c_werror_flag" ||
21157 test ! -s conftest.err
21158 } && test -s conftest$ac_exeext && {
21159 test "$cross_compiling" = yes ||
21160 $as_test_x conftest$ac_exeext
21162 am_cv_func_iconv=yes
21164 $as_echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21170 rm -rf conftest.dSYM
21171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21172 conftest$ac_exeext conftest.$ac_ext
21173 if test "$am_cv_func_iconv" != yes; then
21174 am_save_LIBS="$LIBS"
21175 LIBS="$LIBS $LIBICONV"
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 #include <stdlib.h>
21187 iconv_t cd = iconv_open("","");
21188 iconv(cd,NULL,NULL,NULL,NULL);
21194 rm -f conftest.$ac_objext conftest$ac_exeext
21195 if { (ac_try="$ac_link"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21201 $as_echo "$ac_try_echo") >&5
21202 (eval "$ac_link") 2>conftest.er1
21204 grep -v '^ *+' conftest.er1 >conftest.err
21206 cat conftest.err >&5
21207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208 (exit $ac_status); } && {
21209 test -z "$ac_c_werror_flag" ||
21210 test ! -s conftest.err
21211 } && test -s conftest$ac_exeext && {
21212 test "$cross_compiling" = yes ||
21213 $as_test_x conftest$ac_exeext
21215 am_cv_lib_iconv=yes
21216 am_cv_func_iconv=yes
21218 $as_echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21224 rm -rf conftest.dSYM
21225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21226 conftest$ac_exeext conftest.$ac_ext
21227 LIBS="$am_save_LIBS"
21231 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21232 $as_echo "$am_cv_func_iconv" >&6; }
21233 if test "$am_cv_func_iconv" = yes; then
21234 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
21235 $as_echo_n "checking for working iconv... " >&6; }
21236 if test "${am_cv_func_iconv_works+set}" = set; then
21237 $as_echo_n "(cached) " >&6
21240 am_save_LIBS="$LIBS"
21241 if test $am_cv_lib_iconv = yes; then
21242 LIBS="$LIBS $LIBICONV"
21244 if test "$cross_compiling" = yes; then
21246 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21247 *) am_cv_func_iconv_works="guessing yes" ;;
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21258 #include <string.h>
21261 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21264 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21265 if (cd_utf8_to_88591 != (iconv_t)(-1))
21267 static const char input[] = "\342\202\254"; /* EURO SIGN */
21269 const char *inptr = input;
21270 size_t inbytesleft = strlen (input);
21271 char *outptr = buf;
21272 size_t outbytesleft = sizeof (buf);
21273 size_t res = iconv (cd_utf8_to_88591,
21274 (char **) &inptr, &inbytesleft,
21275 &outptr, &outbytesleft);
21280 #if 0 /* This bug could be worked around by the caller. */
21281 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21283 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21284 if (cd_88591_to_utf8 != (iconv_t)(-1))
21286 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21288 const char *inptr = input;
21289 size_t inbytesleft = strlen (input);
21290 char *outptr = buf;
21291 size_t outbytesleft = sizeof (buf);
21292 size_t res = iconv (cd_88591_to_utf8,
21293 (char **) &inptr, &inbytesleft,
21294 &outptr, &outbytesleft);
21300 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21302 if (/* Try standardized names. */
21303 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21304 /* Try IRIX, OSF/1 names. */
21305 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21306 /* Try AIX names. */
21307 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21308 /* Try HP-UX names. */
21309 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21314 rm -f conftest$ac_exeext
21315 if { (ac_try="$ac_link"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21321 $as_echo "$ac_try_echo") >&5
21322 (eval "$ac_link") 2>&5
21324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21326 { (case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21331 $as_echo "$ac_try_echo") >&5
21332 (eval "$ac_try") 2>&5
21334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 am_cv_func_iconv_works=yes
21338 $as_echo "$as_me: program exited with status $ac_status" >&5
21339 $as_echo "$as_me: failed program was:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 ( exit $ac_status )
21343 am_cv_func_iconv_works=no
21345 rm -rf conftest.dSYM
21346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21350 LIBS="$am_save_LIBS"
21353 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21354 $as_echo "$am_cv_func_iconv_works" >&6; }
21355 case "$am_cv_func_iconv_works" in
21356 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21357 *) am_func_iconv=yes ;;
21360 am_func_iconv=no am_cv_lib_iconv=no
21362 if test "$am_func_iconv" = yes; then
21364 cat >>confdefs.h <<\_ACEOF
21365 #define HAVE_ICONV 1
21369 if test "$am_cv_lib_iconv" = yes; then
21370 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21371 $as_echo_n "checking how to link with libiconv... " >&6; }
21372 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21373 $as_echo "$LIBICONV" >&6; }
21375 CPPFLAGS="$am_save_CPPFLAGS"
21389 acl_save_prefix="$prefix"
21390 prefix="$acl_final_prefix"
21391 acl_save_exec_prefix="$exec_prefix"
21392 exec_prefix="$acl_final_exec_prefix"
21394 eval additional_includedir=\"$includedir\"
21395 eval additional_libdir=\"$libdir\"
21397 exec_prefix="$acl_save_exec_prefix"
21398 prefix="$acl_save_prefix"
21401 # Check whether --with-libintl-prefix was given.
21402 if test "${with_libintl_prefix+set}" = set; then
21403 withval=$with_libintl_prefix;
21404 if test "X$withval" = "Xno"; then
21407 if test "X$withval" = "X"; then
21409 acl_save_prefix="$prefix"
21410 prefix="$acl_final_prefix"
21411 acl_save_exec_prefix="$exec_prefix"
21412 exec_prefix="$acl_final_exec_prefix"
21414 eval additional_includedir=\"$includedir\"
21415 eval additional_libdir=\"$libdir\"
21417 exec_prefix="$acl_save_exec_prefix"
21418 prefix="$acl_save_prefix"
21421 additional_includedir="$withval/include"
21422 additional_libdir="$withval/$acl_libdirstem"
21434 names_already_handled=
21435 names_next_round='intl '
21436 while test -n "$names_next_round"; do
21437 names_this_round="$names_next_round"
21439 for name in $names_this_round; do
21441 for n in $names_already_handled; do
21442 if test "$n" = "$name"; then
21443 already_handled=yes
21447 if test -z "$already_handled"; then
21448 names_already_handled="$names_already_handled $name"
21449 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21450 eval value=\"\$HAVE_LIB$uppername\"
21451 if test -n "$value"; then
21452 if test "$value" = yes; then
21453 eval value=\"\$LIB$uppername\"
21454 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21455 eval value=\"\$LTLIB$uppername\"
21456 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21465 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21466 if test -n "$acl_shlibext"; then
21467 shrext=".$acl_shlibext" # typically: shrext=.so
21471 if test $use_additional = yes; then
21472 dir="$additional_libdir"
21473 if test -n "$acl_shlibext"; then
21474 if test -f "$dir/$libname$shrext"; then
21476 found_so="$dir/$libname$shrext"
21478 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21479 ver=`(cd "$dir" && \
21480 for f in "$libname$shrext".*; do echo "$f"; done \
21481 | sed -e "s,^$libname$shrext\\\\.,," \
21482 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21483 | sed 1q ) 2>/dev/null`
21484 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21486 found_so="$dir/$libname$shrext.$ver"
21489 eval library_names=\"$acl_library_names_spec\"
21490 for f in $library_names; do
21491 if test -f "$dir/$f"; then
21500 if test "X$found_dir" = "X"; then
21501 if test -f "$dir/$libname.$acl_libext"; then
21503 found_a="$dir/$libname.$acl_libext"
21506 if test "X$found_dir" != "X"; then
21507 if test -f "$dir/$libname.la"; then
21508 found_la="$dir/$libname.la"
21512 if test "X$found_dir" = "X"; then
21513 for x in $LDFLAGS $LTLIBINTL; do
21515 acl_save_prefix="$prefix"
21516 prefix="$acl_final_prefix"
21517 acl_save_exec_prefix="$exec_prefix"
21518 exec_prefix="$acl_final_exec_prefix"
21520 exec_prefix="$acl_save_exec_prefix"
21521 prefix="$acl_save_prefix"
21525 dir=`echo "X$x" | sed -e 's/^X-L//'`
21526 if test -n "$acl_shlibext"; then
21527 if test -f "$dir/$libname$shrext"; then
21529 found_so="$dir/$libname$shrext"
21531 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21532 ver=`(cd "$dir" && \
21533 for f in "$libname$shrext".*; do echo "$f"; done \
21534 | sed -e "s,^$libname$shrext\\\\.,," \
21535 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21536 | sed 1q ) 2>/dev/null`
21537 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21539 found_so="$dir/$libname$shrext.$ver"
21542 eval library_names=\"$acl_library_names_spec\"
21543 for f in $library_names; do
21544 if test -f "$dir/$f"; then
21553 if test "X$found_dir" = "X"; then
21554 if test -f "$dir/$libname.$acl_libext"; then
21556 found_a="$dir/$libname.$acl_libext"
21559 if test "X$found_dir" != "X"; then
21560 if test -f "$dir/$libname.la"; then
21561 found_la="$dir/$libname.la"
21566 if test "X$found_dir" != "X"; then
21571 if test "X$found_dir" != "X"; then
21572 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21573 if test "X$found_so" != "X"; then
21574 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
21575 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21578 for x in $ltrpathdirs; do
21579 if test "X$x" = "X$found_dir"; then
21584 if test -z "$haveit"; then
21585 ltrpathdirs="$ltrpathdirs $found_dir"
21587 if test "$acl_hardcode_direct" = yes; then
21588 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21590 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
21591 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21593 for x in $rpathdirs; do
21594 if test "X$x" = "X$found_dir"; then
21599 if test -z "$haveit"; then
21600 rpathdirs="$rpathdirs $found_dir"
21604 for x in $LDFLAGS $LIBINTL; do
21606 acl_save_prefix="$prefix"
21607 prefix="$acl_final_prefix"
21608 acl_save_exec_prefix="$exec_prefix"
21609 exec_prefix="$acl_final_exec_prefix"
21611 exec_prefix="$acl_save_exec_prefix"
21612 prefix="$acl_save_prefix"
21614 if test "X$x" = "X-L$found_dir"; then
21619 if test -z "$haveit"; then
21620 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21622 if test "$acl_hardcode_minus_L" != no; then
21623 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21625 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21631 if test "X$found_a" != "X"; then
21632 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21634 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21637 additional_includedir=
21638 case "$found_dir" in
21639 */$acl_libdirstem | */$acl_libdirstem/)
21640 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
21641 LIBINTL_PREFIX="$basedir"
21642 additional_includedir="$basedir/include"
21645 if test "X$additional_includedir" != "X"; then
21646 if test "X$additional_includedir" != "X/usr/include"; then
21648 if test "X$additional_includedir" = "X/usr/local/include"; then
21649 if test -n "$GCC"; then
21651 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21655 if test -z "$haveit"; then
21656 for x in $CPPFLAGS $INCINTL; do
21658 acl_save_prefix="$prefix"
21659 prefix="$acl_final_prefix"
21660 acl_save_exec_prefix="$exec_prefix"
21661 exec_prefix="$acl_final_exec_prefix"
21663 exec_prefix="$acl_save_exec_prefix"
21664 prefix="$acl_save_prefix"
21666 if test "X$x" = "X-I$additional_includedir"; then
21671 if test -z "$haveit"; then
21672 if test -d "$additional_includedir"; then
21673 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21679 if test -n "$found_la"; then
21680 save_libdir="$libdir"
21681 case "$found_la" in
21682 */* | *\\*) . "$found_la" ;;
21683 *) . "./$found_la" ;;
21685 libdir="$save_libdir"
21686 for dep in $dependency_libs; do
21689 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21690 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
21692 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
21693 if test -n "$GCC"; then
21695 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21699 if test -z "$haveit"; then
21701 for x in $LDFLAGS $LIBINTL; do
21703 acl_save_prefix="$prefix"
21704 prefix="$acl_final_prefix"
21705 acl_save_exec_prefix="$exec_prefix"
21706 exec_prefix="$acl_final_exec_prefix"
21708 exec_prefix="$acl_save_exec_prefix"
21709 prefix="$acl_save_prefix"
21711 if test "X$x" = "X-L$additional_libdir"; then
21716 if test -z "$haveit"; then
21717 if test -d "$additional_libdir"; then
21718 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21722 for x in $LDFLAGS $LTLIBINTL; do
21724 acl_save_prefix="$prefix"
21725 prefix="$acl_final_prefix"
21726 acl_save_exec_prefix="$exec_prefix"
21727 exec_prefix="$acl_final_exec_prefix"
21729 exec_prefix="$acl_save_exec_prefix"
21730 prefix="$acl_save_prefix"
21732 if test "X$x" = "X-L$additional_libdir"; then
21737 if test -z "$haveit"; then
21738 if test -d "$additional_libdir"; then
21739 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21746 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21747 if test "$enable_rpath" != no; then
21749 for x in $rpathdirs; do
21750 if test "X$x" = "X$dir"; then
21755 if test -z "$haveit"; then
21756 rpathdirs="$rpathdirs $dir"
21759 for x in $ltrpathdirs; do
21760 if test "X$x" = "X$dir"; then
21765 if test -z "$haveit"; then
21766 ltrpathdirs="$ltrpathdirs $dir"
21771 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21774 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21777 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21778 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21784 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21785 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21791 if test "X$rpathdirs" != "X"; then
21792 if test -n "$acl_hardcode_libdir_separator"; then
21794 for found_dir in $rpathdirs; do
21795 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21797 acl_save_libdir="$libdir"
21799 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21800 libdir="$acl_save_libdir"
21801 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21803 for found_dir in $rpathdirs; do
21804 acl_save_libdir="$libdir"
21805 libdir="$found_dir"
21806 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21807 libdir="$acl_save_libdir"
21808 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21812 if test "X$ltrpathdirs" != "X"; then
21813 for found_dir in $ltrpathdirs; do
21814 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21818 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
21819 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21820 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
21821 $as_echo_n "(cached) " >&6
21823 gt_save_CPPFLAGS="$CPPFLAGS"
21824 CPPFLAGS="$CPPFLAGS $INCINTL"
21825 gt_save_LIBS="$LIBS"
21826 LIBS="$LIBS $LIBINTL"
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 #include <libintl.h>
21834 $gt_revision_test_code
21835 extern int _nl_msg_cat_cntr;
21840 const char *_nl_expand_alias (const char *);
21844 bindtextdomain ("", "");
21845 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (ac_try="$ac_link"
21852 case "(($ac_try" in
21853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854 *) ac_try_echo=$ac_try;;
21856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21857 $as_echo "$ac_try_echo") >&5
21858 (eval "$ac_link") 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } && {
21865 test -z "$ac_c_werror_flag" ||
21866 test ! -s conftest.err
21867 } && test -s conftest$ac_exeext && {
21868 test "$cross_compiling" = yes ||
21869 $as_test_x conftest$ac_exeext
21871 eval "$gt_func_gnugettext_libintl=yes"
21873 $as_echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 eval "$gt_func_gnugettext_libintl=no"
21879 rm -rf conftest.dSYM
21880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21881 conftest$ac_exeext conftest.$ac_ext
21882 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
21883 LIBS="$LIBS $LIBICONV"
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 #include <libintl.h>
21891 $gt_revision_test_code
21892 extern int _nl_msg_cat_cntr;
21897 const char *_nl_expand_alias (const char *);
21901 bindtextdomain ("", "");
21902 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (ac_try="$ac_link"
21909 case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21914 $as_echo "$ac_try_echo") >&5
21915 (eval "$ac_link") 2>conftest.er1
21917 grep -v '^ *+' conftest.er1 >conftest.err
21919 cat conftest.err >&5
21920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest$ac_exeext && {
21925 test "$cross_compiling" = yes ||
21926 $as_test_x conftest$ac_exeext
21928 LIBINTL="$LIBINTL $LIBICONV"
21929 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21930 eval "$gt_func_gnugettext_libintl=yes"
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.$ac_ext >&5
21939 rm -rf conftest.dSYM
21940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21941 conftest$ac_exeext conftest.$ac_ext
21943 CPPFLAGS="$gt_save_CPPFLAGS"
21944 LIBS="$gt_save_LIBS"
21946 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
21947 $as_echo "$as_val"'`
21948 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21949 $as_echo "$ac_res" >&6; }
21952 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
21953 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
21954 && test "$PACKAGE" != gettext-runtime \
21955 && test "$PACKAGE" != gettext-tools; }; then
21956 gt_use_preinstalled_gnugettext=yes
21965 if test -n "$INTL_MACOSX_LIBS"; then
21966 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21967 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21968 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21969 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21973 if test "$gt_use_preinstalled_gnugettext" = "yes" \
21974 || test "$nls_cv_use_gnu_gettext" = "yes"; then
21976 cat >>confdefs.h <<\_ACEOF
21977 #define ENABLE_NLS 1
21985 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
21986 $as_echo_n "checking whether to use NLS... " >&6; }
21987 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
21988 $as_echo "$USE_NLS" >&6; }
21989 if test "$USE_NLS" = "yes"; then
21990 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
21991 $as_echo_n "checking where the gettext function comes from... " >&6; }
21992 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21993 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
21994 gt_source="external libintl"
21999 gt_source="included intl directory"
22001 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
22002 $as_echo "$gt_source" >&6; }
22005 if test "$USE_NLS" = "yes"; then
22007 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22008 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22009 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
22010 $as_echo_n "checking how to link with libintl... " >&6; }
22011 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
22012 $as_echo "$LIBINTL" >&6; }
22014 for element in $INCINTL; do
22016 for x in $CPPFLAGS; do
22018 acl_save_prefix="$prefix"
22019 prefix="$acl_final_prefix"
22020 acl_save_exec_prefix="$exec_prefix"
22021 exec_prefix="$acl_final_exec_prefix"
22023 exec_prefix="$acl_save_exec_prefix"
22024 prefix="$acl_save_prefix"
22026 if test "X$x" = "X$element"; then
22031 if test -z "$haveit"; then
22032 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22039 cat >>confdefs.h <<\_ACEOF
22040 #define HAVE_GETTEXT 1
22044 cat >>confdefs.h <<\_ACEOF
22045 #define HAVE_DCGETTEXT 1
22055 INTLLIBS="$LIBINTL"
22063 for ac_func in dngettext
22065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22066 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22067 $as_echo_n "checking for $ac_func... " >&6; }
22068 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22069 $as_echo_n "(cached) " >&6
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22079 #define $ac_func innocuous_$ac_func
22081 /* System header to define __stub macros and hopefully few prototypes,
22082 which can conflict with char $ac_func (); below.
22083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22084 <limits.h> exists even on freestanding compilers. */
22087 # include <limits.h>
22089 # include <assert.h>
22094 /* Override any GCC internal prototype to avoid an error.
22095 Use char because int might match the return type of a GCC
22096 builtin and then its argument prototype would still apply. */
22101 /* The GNU C library defines this for functions which it implements
22102 to always fail with ENOSYS. Some functions are actually named
22103 something starting with __ and the normal name is an alias. */
22104 #if defined __stub_$ac_func || defined __stub___$ac_func
22111 return $ac_func ();
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22123 $as_echo "$ac_try_echo") >&5
22124 (eval "$ac_link") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest$ac_exeext && {
22134 test "$cross_compiling" = yes ||
22135 $as_test_x conftest$ac_exeext
22137 eval "$as_ac_var=yes"
22139 $as_echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22142 eval "$as_ac_var=no"
22145 rm -rf conftest.dSYM
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22149 ac_res=`eval 'as_val=${'$as_ac_var'}
22150 $as_echo "$as_val"'`
22151 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22152 $as_echo "$ac_res" >&6; }
22153 as_val=`eval 'as_val=${'$as_ac_var'}
22154 $as_echo "$as_val"'`
22155 if test "x$as_val" = x""yes; then
22156 cat >>confdefs.h <<_ACEOF
22157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22167 { $as_echo "$as_me:$LINENO: checking whether __NR_keyctl is declared" >&5
22168 $as_echo_n "checking whether __NR_keyctl is declared... " >&6; }
22169 if test "${ac_cv_have_decl___NR_keyctl+set}" = set; then
22170 $as_echo_n "(cached) " >&6
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <sys/syscall.h>
22183 #ifndef __NR_keyctl
22184 (void) __NR_keyctl;
22191 rm -f conftest.$ac_objext
22192 if { (ac_try="$ac_compile"
22193 case "(($ac_try" in
22194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195 *) ac_try_echo=$ac_try;;
22197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22198 $as_echo "$ac_try_echo") >&5
22199 (eval "$ac_compile") 2>conftest.er1
22201 grep -v '^ *+' conftest.er1 >conftest.err
22203 cat conftest.err >&5
22204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } && {
22206 test -z "$ac_c_werror_flag" ||
22207 test ! -s conftest.err
22208 } && test -s conftest.$ac_objext; then
22209 ac_cv_have_decl___NR_keyctl=yes
22211 $as_echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22214 ac_cv_have_decl___NR_keyctl=no
22217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22219 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___NR_keyctl" >&5
22220 $as_echo "$ac_cv_have_decl___NR_keyctl" >&6; }
22221 if test "x$ac_cv_have_decl___NR_keyctl" = x""yes; then
22222 have_key_syscalls=1
22224 have_key_syscalls=0
22227 { $as_echo "$as_me:$LINENO: checking whether ENOKEY is declared" >&5
22228 $as_echo_n "checking whether ENOKEY is declared... " >&6; }
22229 if test "${ac_cv_have_decl_ENOKEY+set}" = set; then
22230 $as_echo_n "(cached) " >&6
22232 cat >conftest.$ac_ext <<_ACEOF
22235 cat confdefs.h >>conftest.$ac_ext
22236 cat >>conftest.$ac_ext <<_ACEOF
22237 /* end confdefs.h. */
22251 rm -f conftest.$ac_objext
22252 if { (ac_try="$ac_compile"
22253 case "(($ac_try" in
22254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22255 *) ac_try_echo=$ac_try;;
22257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22258 $as_echo "$ac_try_echo") >&5
22259 (eval "$ac_compile") 2>conftest.er1
22261 grep -v '^ *+' conftest.er1 >conftest.err
22263 cat conftest.err >&5
22264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } && {
22266 test -z "$ac_c_werror_flag" ||
22267 test ! -s conftest.err
22268 } && test -s conftest.$ac_objext; then
22269 ac_cv_have_decl_ENOKEY=yes
22271 $as_echo "$as_me: failed program was:" >&5
22272 sed 's/^/| /' conftest.$ac_ext >&5
22274 ac_cv_have_decl_ENOKEY=no
22277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22279 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ENOKEY" >&5
22280 $as_echo "$ac_cv_have_decl_ENOKEY" >&6; }
22281 if test "x$ac_cv_have_decl_ENOKEY" = x""yes; then
22288 HAVE_KEY_MANAGEMENT=0
22289 if test $have_key_syscalls$have_key_errors = 11
22291 HAVE_KEY_MANAGEMENT=1
22294 if test $HAVE_KEY_MANAGEMENT = 1; then
22296 cat >>confdefs.h <<\_ACEOF
22297 #define HAVE_KEY_MANAGEMENT 1
22301 HAVE_KEY_MANAGEMENT=$HAVE_KEY_MANAGEMENT
22304 if test "$have_key_syscalls" = 1; then
22305 HAVE_KEY_MANAGEMENT_TRUE=
22306 HAVE_KEY_MANAGEMENT_FALSE='#'
22308 HAVE_KEY_MANAGEMENT_TRUE='#'
22309 HAVE_KEY_MANAGEMENT_FALSE=
22313 ac_config_files="$ac_config_files Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile po/Makefile.in modules/Makefile modules/pam_access/Makefile modules/pam_cracklib/Makefile modules/pam_debug/Makefile modules/pam_deny/Makefile modules/pam_echo/Makefile modules/pam_env/Makefile modules/pam_faildelay/Makefile modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile modules/pam_ftp/Makefile modules/pam_group/Makefile modules/pam_issue/Makefile modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile modules/pam_limits/Makefile modules/pam_listfile/Makefile modules/pam_localuser/Makefile modules/pam_loginuid/Makefile modules/pam_mail/Makefile modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile modules/pam_namespace/Makefile modules/pam_nologin/Makefile modules/pam_permit/Makefile modules/pam_pwhistory/Makefile modules/pam_rhosts/Makefile modules/pam_rootok/Makefile modules/pam_exec/Makefile modules/pam_securetty/Makefile modules/pam_selinux/Makefile modules/pam_sepermit/Makefile modules/pam_shells/Makefile modules/pam_stress/Makefile modules/pam_succeed_if/Makefile modules/pam_tally/Makefile modules/pam_tally2/Makefile modules/pam_time/Makefile modules/pam_timestamp/Makefile modules/pam_tty_audit/Makefile modules/pam_umask/Makefile modules/pam_unix/Makefile modules/pam_userdb/Makefile modules/pam_warn/Makefile modules/pam_wheel/Makefile modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile doc/man/Makefile doc/sag/Makefile doc/adg/Makefile doc/mwg/Makefile examples/Makefile tests/Makefile xtests/Makefile"
22315 cat >confcache <<\_ACEOF
22316 # This file is a shell script that caches the results of configure
22317 # tests run on this system so they can be shared between configure
22318 # scripts and configure runs, see configure's option --config-cache.
22319 # It is not useful on other systems. If it contains results you don't
22320 # want to keep, you may remove or edit it.
22322 # config.status only pays attention to the cache file if you give it
22323 # the --recheck option to rerun configure.
22325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22327 # following values.
22331 # The following way of writing the cache mishandles newlines in values,
22332 # but we know of no workaround that is simple, portable, and efficient.
22333 # So, we kill variables containing newlines.
22334 # Ultrix sh set writes to stderr and can't be redirected directly,
22335 # and sets the high bit in the cache file unless we assign to the vars.
22337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22338 eval ac_val=\$$ac_var
22342 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
22343 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22346 _ | IFS | as_nl) ;; #(
22347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22348 *) $as_unset $ac_var ;;
22354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22355 *${as_nl}ac_space=\ *)
22356 # `set' does not quote correctly, so add quotes (double-quote
22357 # substitution turns \\\\ into \\, and sed turns \\ into \).
22360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22363 # `set' quotes correctly as required by POSIX, so do not add quotes.
22364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22378 if test -w "$cache_file"; then
22379 test "x$cache_file" != "x/dev/null" &&
22380 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
22381 $as_echo "$as_me: updating cache $cache_file" >&6;}
22382 cat confcache >$cache_file
22384 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22385 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22391 # Let make expand exec_prefix.
22392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22394 DEFS=-DHAVE_CONFIG_H
22398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22399 # 1. Remove the extension, and $U if already installed.
22400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22401 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22403 # will be set to the directory where LIBOBJS objects are built.
22404 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22405 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22407 LIBOBJS=$ac_libobjs
22409 LTLIBOBJS=$ac_ltlibobjs
22412 if test -z "${STATIC_MODULES_TRUE}" && test -z "${STATIC_MODULES_FALSE}"; then
22413 { { $as_echo "$as_me:$LINENO: error: conditional \"STATIC_MODULES\" was never defined.
22414 Usually this means the macro was only invoked conditionally." >&5
22415 $as_echo "$as_me: error: conditional \"STATIC_MODULES\" was never defined.
22416 Usually this means the macro was only invoked conditionally." >&2;}
22417 { (exit 1); exit 1; }; }
22419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22420 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22421 Usually this means the macro was only invoked conditionally." >&5
22422 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
22423 Usually this means the macro was only invoked conditionally." >&2;}
22424 { (exit 1); exit 1; }; }
22426 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22427 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22428 Usually this means the macro was only invoked conditionally." >&5
22429 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22430 Usually this means the macro was only invoked conditionally." >&2;}
22431 { (exit 1); exit 1; }; }
22433 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22434 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22435 Usually this means the macro was only invoked conditionally." >&5
22436 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22437 Usually this means the macro was only invoked conditionally." >&2;}
22438 { (exit 1); exit 1; }; }
22440 if test -z "${HAVE_VERSIONING_TRUE}" && test -z "${HAVE_VERSIONING_FALSE}"; then
22441 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_VERSIONING\" was never defined.
22442 Usually this means the macro was only invoked conditionally." >&5
22443 $as_echo "$as_me: error: conditional \"HAVE_VERSIONING\" was never defined.
22444 Usually this means the macro was only invoked conditionally." >&2;}
22445 { (exit 1); exit 1; }; }
22447 if test -z "${HAVE_LIBCRACK_TRUE}" && test -z "${HAVE_LIBCRACK_FALSE}"; then
22448 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCRACK\" was never defined.
22449 Usually this means the macro was only invoked conditionally." >&5
22450 $as_echo "$as_me: error: conditional \"HAVE_LIBCRACK\" was never defined.
22451 Usually this means the macro was only invoked conditionally." >&2;}
22452 { (exit 1); exit 1; }; }
22454 if test -z "${HAVE_AUDIT_TTY_STATUS_TRUE}" && test -z "${HAVE_AUDIT_TTY_STATUS_FALSE}"; then
22455 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT_TTY_STATUS\" was never defined.
22456 Usually this means the macro was only invoked conditionally." >&5
22457 $as_echo "$as_me: error: conditional \"HAVE_AUDIT_TTY_STATUS\" was never defined.
22458 Usually this means the macro was only invoked conditionally." >&2;}
22459 { (exit 1); exit 1; }; }
22461 if test -z "${HAVE_LIBDB_TRUE}" && test -z "${HAVE_LIBDB_FALSE}"; then
22462 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBDB\" was never defined.
22463 Usually this means the macro was only invoked conditionally." >&5
22464 $as_echo "$as_me: error: conditional \"HAVE_LIBDB\" was never defined.
22465 Usually this means the macro was only invoked conditionally." >&2;}
22466 { (exit 1); exit 1; }; }
22468 if test -z "${HAVE_LIBSELINUX_TRUE}" && test -z "${HAVE_LIBSELINUX_FALSE}"; then
22469 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSELINUX\" was never defined.
22470 Usually this means the macro was only invoked conditionally." >&5
22471 $as_echo "$as_me: error: conditional \"HAVE_LIBSELINUX\" was never defined.
22472 Usually this means the macro was only invoked conditionally." >&2;}
22473 { (exit 1); exit 1; }; }
22476 if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
22477 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UNSHARE\" was never defined.
22478 Usually this means the macro was only invoked conditionally." >&5
22479 $as_echo "$as_me: error: conditional \"HAVE_UNSHARE\" was never defined.
22480 Usually this means the macro was only invoked conditionally." >&2;}
22481 { (exit 1); exit 1; }; }
22483 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
22484 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
22485 Usually this means the macro was only invoked conditionally." >&5
22486 $as_echo "$as_me: error: conditional \"ENABLE_REGENERATE_MAN\" was never defined.
22487 Usually this means the macro was only invoked conditionally." >&2;}
22488 { (exit 1); exit 1; }; }
22490 if test -z "${ENABLE_GENERATE_PDF_TRUE}" && test -z "${ENABLE_GENERATE_PDF_FALSE}"; then
22491 { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GENERATE_PDF\" was never defined.
22492 Usually this means the macro was only invoked conditionally." >&5
22493 $as_echo "$as_me: error: conditional \"ENABLE_GENERATE_PDF\" was never defined.
22494 Usually this means the macro was only invoked conditionally." >&2;}
22495 { (exit 1); exit 1; }; }
22497 if test -z "${HAVE_KEY_MANAGEMENT_TRUE}" && test -z "${HAVE_KEY_MANAGEMENT_FALSE}"; then
22498 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_KEY_MANAGEMENT\" was never defined.
22499 Usually this means the macro was only invoked conditionally." >&5
22500 $as_echo "$as_me: error: conditional \"HAVE_KEY_MANAGEMENT\" was never defined.
22501 Usually this means the macro was only invoked conditionally." >&2;}
22502 { (exit 1); exit 1; }; }
22505 : ${CONFIG_STATUS=./config.status}
22507 ac_clean_files_save=$ac_clean_files
22508 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22509 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22510 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22511 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22513 # Generated by $as_me.
22514 # Run this file to recreate the current configuration.
22515 # Compiler output produced by configure, useful for debugging
22516 # configure, is in config.log if it exists.
22519 ac_cs_recheck=false
22521 SHELL=\${CONFIG_SHELL-$SHELL}
22524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22525 ## --------------------- ##
22526 ## M4sh Initialization. ##
22527 ## --------------------- ##
22529 # Be more Bourne compatible
22530 DUALCASE=1; export DUALCASE # for MKS sh
22531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22535 # is contrary to our usage. Disable this feature.
22536 alias -g '${1+"$@"}'='"$@"'
22537 setopt NO_GLOB_SUBST
22539 case `(set -o) 2>/dev/null` in
22540 *posix*) set -o posix ;;
22549 # Avoid depending upon Character Ranges.
22550 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22551 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22552 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22553 as_cr_digits='0123456789'
22554 as_cr_alnum=$as_cr_Letters$as_cr_digits
22559 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22560 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22561 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22562 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22563 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22564 as_echo='printf %s\n'
22565 as_echo_n='printf %s'
22567 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22568 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22569 as_echo_n='/usr/ucb/echo -n'
22571 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22572 as_echo_n_body='eval
22576 expr "X$arg" : "X\\(.*\\)$as_nl";
22577 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22579 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22581 export as_echo_n_body
22582 as_echo_n='sh -c $as_echo_n_body as_echo'
22584 export as_echo_body
22585 as_echo='sh -c $as_echo_body as_echo'
22588 # The user is always right.
22589 if test "${PATH_SEPARATOR+set}" != set; then
22591 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22592 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22597 # Support unset when possible.
22598 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22606 # We need space, tab and new line, in precisely that order. Quoting is
22607 # there to prevent editors from complaining about space-tab.
22608 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22609 # splitting by setting IFS to empty value.)
22612 # Find who we are. Look in the path if we contain no directory separator.
22614 *[\\/]* ) as_myself=$0 ;;
22615 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22616 for as_dir in $PATH
22619 test -z "$as_dir" && as_dir=.
22620 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22626 # We did not find ourselves, most probably we were run as `sh COMMAND'
22627 # in which case we are not to be found in the path.
22628 if test "x$as_myself" = x; then
22631 if test ! -f "$as_myself"; then
22632 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22633 { (exit 1); exit 1; }
22636 # Work around bugs in pre-3.0 UWIN ksh.
22637 for as_var in ENV MAIL MAILPATH
22638 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22650 # Required to use basename.
22651 if expr a : '\(a\)' >/dev/null 2>&1 &&
22652 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22658 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22659 as_basename=basename
22665 # Name of the executable.
22666 as_me=`$as_basename -- "$0" ||
22667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22668 X"$0" : 'X\(//\)$' \| \
22669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22671 sed '/^.*\/\([^/][^/]*\)\/*$/{
22690 as_lineno_1=$LINENO
22691 as_lineno_2=$LINENO
22692 test "x$as_lineno_1" != "x$as_lineno_2" &&
22693 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22695 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22696 # uniformly replaced by the line number. The first 'sed' inserts a
22697 # line-number line after each line using $LINENO; the second 'sed'
22698 # does the real work. The second script uses 'N' to pair each
22699 # line-number line with the line containing $LINENO, and appends
22700 # trailing '-' during substitution so that $LINENO is not a special
22701 # case at line end.
22702 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22703 # scripts with optimization help from Paolo Bonzini. Blame Lee
22704 # E. McMahon (1931-1989) for sed's syntax. :-)
22716 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22719 ' >$as_me.lineno &&
22720 chmod +x "$as_me.lineno" ||
22721 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22722 { (exit 1); exit 1; }; }
22724 # Don't try to exec as it changes $[0], causing all sort of problems
22725 # (the dirname of $[0] is not the place where we might find the
22726 # original and so on. Autoconf is especially sensitive to this).
22727 . "./$as_me.lineno"
22728 # Exit status is that of the last command.
22733 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22739 ECHO_C= ECHO_N= ECHO_T=
22740 case `echo -n x` in
22742 case `echo 'x\c'` in
22743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22749 if expr a : '\(a\)' >/dev/null 2>&1 &&
22750 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22756 rm -f conf$$ conf$$.exe conf$$.file
22757 if test -d conf$$.dir; then
22758 rm -f conf$$.dir/conf$$.file
22761 mkdir conf$$.dir 2>/dev/null
22763 if (echo >conf$$.file) 2>/dev/null; then
22764 if ln -s conf$$.file conf$$ 2>/dev/null; then
22766 # ... but there are two gotchas:
22767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22769 # In both cases, we have to default to `cp -p'.
22770 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22772 elif ln conf$$.file conf$$ 2>/dev/null; then
22780 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22781 rmdir conf$$.dir 2>/dev/null
22783 if mkdir -p . 2>/dev/null; then
22786 test -d ./-p && rmdir ./-p
22790 if test -x / >/dev/null 2>&1; then
22791 as_test_x='test -x'
22793 if ls -dL / >/dev/null 2>&1; then
22800 if test -d "$1"; then
22806 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22807 ???[sx]*):;;*)false;;esac;fi
22811 as_executable_p=$as_test_x
22813 # Sed expression to map a string onto a valid CPP name.
22814 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22816 # Sed expression to map a string onto a valid variable name.
22817 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22822 # Save the log message, to keep $[0] and so on meaningful, and to
22823 # report actual input values of CONFIG_FILES etc. instead of their
22824 # values after options handling.
22826 This file was extended by $as_me, which was
22827 generated by GNU Autoconf 2.63. Invocation command line was
22829 CONFIG_FILES = $CONFIG_FILES
22830 CONFIG_HEADERS = $CONFIG_HEADERS
22831 CONFIG_LINKS = $CONFIG_LINKS
22832 CONFIG_COMMANDS = $CONFIG_COMMANDS
22835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22840 case $ac_config_files in *"
22841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22844 case $ac_config_headers in *"
22845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22850 # Files that config.status was made for.
22851 config_files="$ac_config_files"
22852 config_headers="$ac_config_headers"
22853 config_commands="$ac_config_commands"
22857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22859 \`$as_me' instantiates files from templates according to the
22860 current configuration.
22862 Usage: $0 [OPTION]... [FILE]...
22864 -h, --help print this help, then exit
22865 -V, --version print version number and configuration settings, then exit
22866 -q, --quiet, --silent
22867 do not print progress messages
22868 -d, --debug don't remove temporary files
22869 --recheck update $as_me by reconfiguring in the same conditions
22870 --file=FILE[:TEMPLATE]
22871 instantiate the configuration file FILE
22872 --header=FILE[:TEMPLATE]
22873 instantiate the configuration header FILE
22875 Configuration files:
22878 Configuration headers:
22881 Configuration commands:
22884 Report bugs to <bug-autoconf@gnu.org>."
22887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22890 configured by $0, generated by GNU Autoconf 2.63,
22891 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22893 Copyright (C) 2008 Free Software Foundation, Inc.
22894 This config.status script is free software; the Free Software Foundation
22895 gives unlimited permission to copy, distribute and modify it."
22902 test -n "\$AWK" || AWK=awk
22905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22906 # The default lists apply if the user does not specify any file.
22912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22913 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22924 # Handling of the options.
22925 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22927 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22928 $as_echo "$ac_cs_version"; exit ;;
22929 --debug | --debu | --deb | --de | --d | -d )
22931 --file | --fil | --fi | --f )
22934 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22936 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22937 ac_need_defaults=false;;
22938 --header | --heade | --head | --hea )
22941 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22943 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22944 ac_need_defaults=false;;
22946 # Conflict between --help and --header
22947 { $as_echo "$as_me: error: ambiguous option: $1
22948 Try \`$0 --help' for more information." >&2
22949 { (exit 1); exit 1; }; };;
22950 --help | --hel | -h )
22951 $as_echo "$ac_cs_usage"; exit ;;
22952 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22953 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22956 # This is an error.
22957 -*) { $as_echo "$as_me: error: unrecognized option: $1
22958 Try \`$0 --help' for more information." >&2
22959 { (exit 1); exit 1; }; } ;;
22961 *) ac_config_targets="$ac_config_targets $1"
22962 ac_need_defaults=false ;;
22968 ac_configure_extra_args=
22970 if $ac_cs_silent; then
22972 ac_configure_extra_args="$ac_configure_extra_args --silent"
22976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22977 if \$ac_cs_recheck; then
22978 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22980 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22981 CONFIG_SHELL='$SHELL'
22982 export CONFIG_SHELL
22987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22992 ## Running $as_me. ##
22998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23002 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23005 # The HP-UX ksh and POSIX shell print the target directory to stdout
23006 # if CDPATH is set.
23007 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23009 sed_quote_subst='$sed_quote_subst'
23010 double_quote_subst='$double_quote_subst'
23011 delay_variable_subst='$delay_variable_subst'
23012 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
23013 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
23014 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
23015 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
23016 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
23017 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
23018 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
23019 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
23020 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
23021 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
23022 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
23023 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
23024 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
23025 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
23026 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
23027 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
23028 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
23029 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
23030 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
23031 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
23032 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
23033 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
23034 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
23035 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
23036 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
23037 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
23038 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
23039 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23040 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
23041 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
23042 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
23043 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
23044 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23045 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
23046 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
23047 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23048 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23049 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23050 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
23051 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
23052 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
23053 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
23054 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
23055 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
23056 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
23057 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23058 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
23059 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
23060 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
23061 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
23062 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
23063 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
23064 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
23065 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
23066 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
23067 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
23068 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
23069 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
23070 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
23071 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
23072 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
23073 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
23074 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23075 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23076 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
23077 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
23078 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23079 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23080 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
23081 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23082 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23083 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23084 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23085 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23086 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23087 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
23088 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23089 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
23090 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
23091 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
23092 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
23093 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
23094 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
23095 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
23096 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23097 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
23098 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
23099 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
23100 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
23101 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
23102 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23103 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23104 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
23105 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23106 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
23107 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
23108 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
23109 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
23110 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
23111 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23112 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
23113 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
23114 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23115 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
23116 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
23117 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23118 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23119 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
23120 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
23121 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
23122 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23123 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
23124 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
23125 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
23126 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
23127 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
23128 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
23129 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
23132 LTCFLAGS='$LTCFLAGS'
23133 compiler='$compiler_DEFAULT'
23135 # Quote evaled strings.
23147 deplibs_check_method \
23156 lt_cv_sys_global_symbol_pipe \
23157 lt_cv_sys_global_symbol_to_cdecl \
23158 lt_cv_sys_global_symbol_to_c_name_address \
23159 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23162 lt_prog_compiler_no_builtin_flag \
23163 lt_prog_compiler_wl \
23164 lt_prog_compiler_pic \
23165 lt_prog_compiler_static \
23166 lt_cv_prog_compiler_c_o \
23174 export_dynamic_flag_spec \
23175 whole_archive_flag_spec \
23176 compiler_needs_object \
23178 allow_undefined_flag \
23179 no_undefined_flag \
23180 hardcode_libdir_flag_spec \
23181 hardcode_libdir_flag_spec_ld \
23182 hardcode_libdir_separator \
23187 variables_saved_for_relink \
23189 library_names_spec \
23194 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23195 *[\\\\\\\`\\"\\\$]*)
23196 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23199 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23204 # Double-quote double-evaled strings.
23205 for var in reload_cmds \
23206 old_postinstall_cmds \
23207 old_postuninstall_cmds \
23209 extract_expsyms_cmds \
23210 old_archive_from_new_cmds \
23211 old_archive_from_expsyms_cmds \
23213 archive_expsym_cmds \
23215 module_expsym_cmds \
23216 export_symbols_cmds \
23219 postuninstall_cmds \
23221 sys_lib_search_path_spec \
23222 sys_lib_dlsearch_path_spec; do
23223 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
23224 *[\\\\\\\`\\"\\\$]*)
23225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23233 # Fix-up fallback echo if it was mangled by the above quoting rules.
23235 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
23239 ac_aux_dir='$ac_aux_dir'
23240 xsi_shell='$xsi_shell'
23241 lt_shell_append='$lt_shell_append'
23243 # See if we are running on zsh, and set the options which allow our
23244 # commands through without removal of \ escapes INIT.
23245 if test -n "\${ZSH_VERSION+set}" ; then
23246 setopt NO_GLOB_SUBST
23252 TIMESTAMP='$TIMESTAMP'
23258 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23259 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23260 # from automake < 1.5.
23261 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23262 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23263 LINGUAS="${LINGUAS-%UNSET%}"
23268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23270 # Handling of arguments.
23271 for ac_config_target in $ac_config_targets
23273 case $ac_config_target in
23274 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23275 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23276 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23277 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23278 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23279 "libpam/Makefile") CONFIG_FILES="$CONFIG_FILES libpam/Makefile" ;;
23280 "libpamc/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/Makefile" ;;
23281 "libpamc/test/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/test/Makefile" ;;
23282 "libpam_misc/Makefile") CONFIG_FILES="$CONFIG_FILES libpam_misc/Makefile" ;;
23283 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
23284 "conf/pam_conv1/Makefile") CONFIG_FILES="$CONFIG_FILES conf/pam_conv1/Makefile" ;;
23285 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23286 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
23287 "modules/pam_access/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_access/Makefile" ;;
23288 "modules/pam_cracklib/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_cracklib/Makefile" ;;
23289 "modules/pam_debug/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_debug/Makefile" ;;
23290 "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
23291 "modules/pam_echo/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_echo/Makefile" ;;
23292 "modules/pam_env/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_env/Makefile" ;;
23293 "modules/pam_faildelay/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_faildelay/Makefile" ;;
23294 "modules/pam_filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/Makefile" ;;
23295 "modules/pam_filter/upperLOWER/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/upperLOWER/Makefile" ;;
23296 "modules/pam_ftp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_ftp/Makefile" ;;
23297 "modules/pam_group/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_group/Makefile" ;;
23298 "modules/pam_issue/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_issue/Makefile" ;;
23299 "modules/pam_keyinit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_keyinit/Makefile" ;;
23300 "modules/pam_lastlog/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_lastlog/Makefile" ;;
23301 "modules/pam_limits/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_limits/Makefile" ;;
23302 "modules/pam_listfile/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_listfile/Makefile" ;;
23303 "modules/pam_localuser/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_localuser/Makefile" ;;
23304 "modules/pam_loginuid/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_loginuid/Makefile" ;;
23305 "modules/pam_mail/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mail/Makefile" ;;
23306 "modules/pam_mkhomedir/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mkhomedir/Makefile" ;;
23307 "modules/pam_motd/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_motd/Makefile" ;;
23308 "modules/pam_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/Makefile" ;;
23309 "modules/pam_nologin/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_nologin/Makefile" ;;
23310 "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
23311 "modules/pam_pwhistory/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_pwhistory/Makefile" ;;
23312 "modules/pam_rhosts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rhosts/Makefile" ;;
23313 "modules/pam_rootok/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rootok/Makefile" ;;
23314 "modules/pam_exec/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_exec/Makefile" ;;
23315 "modules/pam_securetty/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_securetty/Makefile" ;;
23316 "modules/pam_selinux/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_selinux/Makefile" ;;
23317 "modules/pam_sepermit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_sepermit/Makefile" ;;
23318 "modules/pam_shells/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_shells/Makefile" ;;
23319 "modules/pam_stress/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_stress/Makefile" ;;
23320 "modules/pam_succeed_if/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_succeed_if/Makefile" ;;
23321 "modules/pam_tally/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally/Makefile" ;;
23322 "modules/pam_tally2/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally2/Makefile" ;;
23323 "modules/pam_time/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_time/Makefile" ;;
23324 "modules/pam_timestamp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_timestamp/Makefile" ;;
23325 "modules/pam_tty_audit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tty_audit/Makefile" ;;
23326 "modules/pam_umask/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_umask/Makefile" ;;
23327 "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
23328 "modules/pam_userdb/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_userdb/Makefile" ;;
23329 "modules/pam_warn/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_warn/Makefile" ;;
23330 "modules/pam_wheel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_wheel/Makefile" ;;
23331 "modules/pam_xauth/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_xauth/Makefile" ;;
23332 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23333 "doc/specs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specs/Makefile" ;;
23334 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
23335 "doc/sag/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sag/Makefile" ;;
23336 "doc/adg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/adg/Makefile" ;;
23337 "doc/mwg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mwg/Makefile" ;;
23338 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
23339 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23340 "xtests/Makefile") CONFIG_FILES="$CONFIG_FILES xtests/Makefile" ;;
23342 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23343 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23344 { (exit 1); exit 1; }; };;
23349 # If the user did not use the arguments to specify the items to instantiate,
23350 # then the envvar interface is used. Set only those that are not.
23351 # We use the long form for the default assignment because of an extremely
23352 # bizarre bug on SunOS 4.1.3.
23353 if $ac_need_defaults; then
23354 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23355 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23356 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23359 # Have a temporary directory for convenience. Make it in the build tree
23360 # simply because there is no reason against having it here, and in addition,
23361 # creating and moving files from /tmp can sometimes cause problems.
23362 # Hook for its removal unless debugging.
23363 # Note that there is a small window in which the directory will not be cleaned:
23364 # after its creation but before its name has been assigned to `$tmp'.
23368 trap 'exit_status=$?
23369 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23371 trap '{ (exit 1); exit 1; }' 1 2 13 15
23373 # Create a (secure) tmp directory for tmp files.
23376 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23377 test -n "$tmp" && test -d "$tmp"
23380 tmp=./conf$$-$RANDOM
23381 (umask 077 && mkdir "$tmp")
23384 $as_echo "$as_me: cannot create a temporary directory in ." >&2
23385 { (exit 1); exit 1; }
23388 # Set up the scripts for CONFIG_FILES section.
23389 # No need to generate them if there are no CONFIG_FILES.
23390 # This happens for instance with `./config.status config.h'.
23391 if test -n "$CONFIG_FILES"; then
23395 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23396 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23399 ac_cs_awk_cr=$ac_cr
23402 echo 'BEGIN {' >"$tmp/subs1.awk" &&
23407 echo "cat >conf$$subs.awk <<_ACEOF" &&
23408 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23410 } >conf$$subs.sh ||
23411 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23412 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23413 { (exit 1); exit 1; }; }
23414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
23416 for ac_last_try in false false false false false :; do
23417 . ./conf$$subs.sh ||
23418 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23419 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23420 { (exit 1); exit 1; }; }
23422 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23423 if test $ac_delim_n = $ac_delim_num; then
23425 elif $ac_last_try; then
23426 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23427 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23428 { (exit 1); exit 1; }; }
23430 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23433 rm -f conf$$subs.sh
23435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23436 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
23440 s/^/S["/; s/!.*/"]=/
23450 s/\(.\{148\}\).*/\1/
23452 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23457 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23464 s/\(.\{148\}\).*/\1/
23466 s/["\\]/\\&/g; s/^/"/; s/$/"/
23470 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23475 ' <conf$$subs.awk | sed '
23480 ' >>$CONFIG_STATUS || ac_write_fail=1
23481 rm -f conf$$subs.awk
23482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23484 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
23485 for (key in S) S_is_set[key] = 1
23491 nfields = split(line, field, "@")
23493 len = length(field[1])
23494 for (i = 2; i < nfields; i++) {
23496 keylen = length(key)
23497 if (S_is_set[key]) {
23499 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23500 len += length(value) + length(field[++i])
23511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23512 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23513 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23516 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
23517 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
23518 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
23519 { (exit 1); exit 1; }; }
23522 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23523 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23524 # trailing colons and then remove the whole line if VPATH becomes empty
23525 # (actually we leave an empty line to preserve line numbers).
23526 if test "x$srcdir" = x.; then
23527 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23528 s/:*\$(srcdir):*/:/
23529 s/:*\${srcdir}:*/:/
23531 s/^\([^=]*=[ ]*\):*/\1/
23537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23538 fi # test -n "$CONFIG_FILES"
23540 # Set up the scripts for CONFIG_HEADERS section.
23541 # No need to generate them if there are no CONFIG_HEADERS.
23542 # This happens for instance with `./config.status Makefile'.
23543 if test -n "$CONFIG_HEADERS"; then
23544 cat >"$tmp/defines.awk" <<\_ACAWK ||
23548 # Transform confdefs.h into an awk script `defines.awk', embedded as
23549 # here-document in config.status, that substitutes the proper values into
23550 # config.h.in to produce config.h.
23552 # Create a delimiter string that does not exist in confdefs.h, to ease
23553 # handling of long lines.
23555 for ac_last_try in false false :; do
23556 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23557 if test -z "$ac_t"; then
23559 elif $ac_last_try; then
23560 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23561 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23562 { (exit 1); exit 1; }; }
23564 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23568 # For the awk script, D is an array of macro values keyed by name,
23569 # likewise P contains macro parameters if any. Preserve backslash
23570 # newline sequences.
23572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23574 s/.\{148\}/&'"$ac_delim"'/g
23577 s/^[ ]*#[ ]*define[ ][ ]*/ /
23584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23591 D["\1"]=" \3\\\\\\n"\\/p
23593 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23598 s/.\{148\}/&'"$ac_delim"'/g
23603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23608 ' <confdefs.h | sed '
23609 s/'"$ac_delim"'/"\\\
23610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23613 for (key in D) D_is_set[key] = 1
23616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23618 split(line, arg, " ")
23619 if (arg[1] == "#") {
23623 defundef = substr(arg[1], 2)
23626 split(mac1, mac2, "(") #)
23628 prefix = substr(line, 1, index(line, defundef) - 1)
23629 if (D_is_set[macro]) {
23630 # Preserve the white space surrounding the "#".
23631 print prefix "define", macro P[macro] D[macro]
23634 # Replace #undef with comments. This is necessary, for example,
23635 # in the case of _POSIX_SOURCE, which is predefined and required
23636 # on some systems where configure will not decide to define it.
23637 if (defundef == "undef") {
23638 print "/*", prefix defundef, macro, "*/"
23646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23647 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23648 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23649 { (exit 1); exit 1; }; }
23650 fi # test -n "$CONFIG_HEADERS"
23653 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23658 :[FHLC]) ac_mode=$ac_tag; continue;;
23660 case $ac_mode$ac_tag in
23662 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
23663 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
23664 { (exit 1); exit 1; }; };;
23665 :[FH]-) ac_tag=-:-;;
23666 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23683 -) ac_f="$tmp/stdin";;
23684 *) # Look for the file first in the build tree, then in the source tree
23685 # (if the path is not absolute). The absolute path cannot be DOS-style,
23686 # because $ac_f cannot contain `:'.
23690 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23692 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23693 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23694 { (exit 1); exit 1; }; };;
23696 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23697 ac_file_inputs="$ac_file_inputs '$ac_f'"
23700 # Let's still pretend it is `configure' which instantiates (i.e., don't
23701 # use $as_me), people would be surprised to read:
23702 # /* config.h. Generated by config.status. */
23703 configure_input='Generated from '`
23704 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23706 if test x"$ac_file" != x-; then
23707 configure_input="$ac_file. $configure_input"
23708 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23709 $as_echo "$as_me: creating $ac_file" >&6;}
23711 # Neutralize special characters interpreted by sed in replacement strings.
23712 case $configure_input in #(
23713 *\&* | *\|* | *\\* )
23714 ac_sed_conf_input=`$as_echo "$configure_input" |
23715 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23716 *) ac_sed_conf_input=$configure_input;;
23720 *:-:* | *:-) cat >"$tmp/stdin" \
23721 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23722 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23723 { (exit 1); exit 1; }; } ;;
23728 ac_dir=`$as_dirname -- "$ac_file" ||
23729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23730 X"$ac_file" : 'X\(//\)[^/]' \| \
23731 X"$ac_file" : 'X\(//\)$' \| \
23732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23733 $as_echo X"$ac_file" |
23734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23738 /^X\(\/\/\)[^/].*/{
23753 -*) as_dir=./$as_dir;;
23755 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23759 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23760 *) as_qdir=$as_dir;;
23762 as_dirs="'$as_qdir' $as_dirs"
23763 as_dir=`$as_dirname -- "$as_dir" ||
23764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23765 X"$as_dir" : 'X\(//\)[^/]' \| \
23766 X"$as_dir" : 'X\(//\)$' \| \
23767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23768 $as_echo X"$as_dir" |
23769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23773 /^X\(\/\/\)[^/].*/{
23786 test -d "$as_dir" && break
23788 test -z "$as_dirs" || eval "mkdir $as_dirs"
23789 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23790 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23791 { (exit 1); exit 1; }; }; }
23795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23798 # A ".." for each directory in $ac_dir_suffix.
23799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23800 case $ac_top_builddir_sub in
23801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23805 ac_abs_top_builddir=$ac_pwd
23806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23807 # for backward compatibility:
23808 ac_top_builddir=$ac_top_build_prefix
23811 .) # We are building in place.
23813 ac_top_srcdir=$ac_top_builddir_sub
23814 ac_abs_top_srcdir=$ac_pwd ;;
23815 [\\/]* | ?:[\\/]* ) # Absolute name.
23816 ac_srcdir=$srcdir$ac_dir_suffix;
23817 ac_top_srcdir=$srcdir
23818 ac_abs_top_srcdir=$srcdir ;;
23819 *) # Relative name.
23820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23821 ac_top_srcdir=$ac_top_build_prefix$srcdir
23822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23837 ac_MKDIR_P=$MKDIR_P
23839 [\\/$]* | ?:[\\/]* ) ;;
23840 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23845 # If the template does not know about datarootdir, expand it.
23846 # FIXME: This hack should be removed a few years after 2.60.
23847 ac_datarootdir_hack=; ac_datarootdir_seen=
23860 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23861 *datarootdir*) ac_datarootdir_seen=yes;;
23862 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23863 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23864 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23867 ac_datarootdir_hack='
23868 s&@datadir@&$datadir&g
23869 s&@docdir@&$docdir&g
23870 s&@infodir@&$infodir&g
23871 s&@localedir@&$localedir&g
23872 s&@mandir@&$mandir&g
23873 s&\\\${datarootdir}&$datarootdir&g' ;;
23877 # Neutralize VPATH when `$srcdir' = `.'.
23878 # Shell code in configure.ac might set extrasub.
23879 # FIXME: do we really want to maintain this feature?
23880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23881 ac_sed_extra="$ac_vpsub
23884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23887 s|@configure_input@|$ac_sed_conf_input|;t t
23888 s&@top_builddir@&$ac_top_builddir_sub&;t t
23889 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23890 s&@srcdir@&$ac_srcdir&;t t
23891 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23892 s&@top_srcdir@&$ac_top_srcdir&;t t
23893 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23894 s&@builddir@&$ac_builddir&;t t
23895 s&@abs_builddir@&$ac_abs_builddir&;t t
23896 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23897 s&@INSTALL@&$ac_INSTALL&;t t
23898 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23899 $ac_datarootdir_hack
23901 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23902 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23903 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23904 { (exit 1); exit 1; }; }
23906 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23907 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23908 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23909 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23910 which seems to be undefined. Please make sure it is defined." >&5
23911 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23912 which seems to be undefined. Please make sure it is defined." >&2;}
23916 -) cat "$tmp/out" && rm -f "$tmp/out";;
23917 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23919 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23920 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23921 { (exit 1); exit 1; }; }
23927 if test x"$ac_file" != x-; then
23929 $as_echo "/* $configure_input */" \
23930 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23931 } >"$tmp/config.h" \
23932 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23933 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23934 { (exit 1); exit 1; }; }
23935 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23936 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23937 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23940 mv "$tmp/config.h" "$ac_file" \
23941 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23942 $as_echo "$as_me: error: could not create $ac_file" >&2;}
23943 { (exit 1); exit 1; }; }
23946 $as_echo "/* $configure_input */" \
23947 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23948 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23949 $as_echo "$as_me: error: could not create -" >&2;}
23950 { (exit 1); exit 1; }; }
23952 # Compute "$ac_file"'s index in $config_headers.
23955 for _am_header in $config_headers :; do
23956 case $_am_header in
23957 $_am_arg | $_am_arg:* )
23960 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23963 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23964 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23965 X"$_am_arg" : 'X\(//\)[^/]' \| \
23966 X"$_am_arg" : 'X\(//\)$' \| \
23967 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23968 $as_echo X"$_am_arg" |
23969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23973 /^X\(\/\/\)[^/].*/{
23985 s/.*/./; q'`/stamp-h$_am_stamp_count
23988 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23989 $as_echo "$as_me: executing $ac_file commands" >&6;}
23994 case $ac_file$ac_mode in
23995 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23996 # Strip MF so we end up with the name of the file.
23997 mf=`echo "$mf" | sed -e 's/:.*$//'`
23998 # Check whether this is an Automake generated Makefile or not.
23999 # We used to match only the files named `Makefile.in', but
24000 # some people rename them; so instead we look at the file content.
24001 # Grep'ing the first line is not enough: some people post-process
24002 # each Makefile.in and add a new line on top of each file to say so.
24003 # Grep'ing the whole file is not good either: AIX grep has a line
24004 # limit of 2048, but all sed's we know have understand at least 4000.
24005 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24006 dirpart=`$as_dirname -- "$mf" ||
24007 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24008 X"$mf" : 'X\(//\)[^/]' \| \
24009 X"$mf" : 'X\(//\)$' \| \
24010 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24016 /^X\(\/\/\)[^/].*/{
24032 # Extract the definition of DEPDIR, am__include, and am__quote
24033 # from the Makefile without running `make'.
24034 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24035 test -z "$DEPDIR" && continue
24036 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24037 test -z "am__include" && continue
24038 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24039 # When using ansi2knr, U may be empty or an underscore; expand it
24040 U=`sed -n 's/^U = //p' < "$mf"`
24041 # Find all dependency output files, they are included files with
24042 # $(DEPDIR) in their names. We invoke sed twice because it is the
24043 # simplest approach to changing $(DEPDIR) to its actual value in the
24045 for file in `sed -n "
24046 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24047 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24048 # Make sure the directory exists.
24049 test -f "$dirpart/$file" && continue
24050 fdir=`$as_dirname -- "$file" ||
24051 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24052 X"$file" : 'X\(//\)[^/]' \| \
24053 X"$file" : 'X\(//\)$' \| \
24054 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24055 $as_echo X"$file" |
24056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24060 /^X\(\/\/\)[^/].*/{
24073 { as_dir=$dirpart/$fdir
24075 -*) as_dir=./$as_dir;;
24077 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24082 *) as_qdir=$as_dir;;
24084 as_dirs="'$as_qdir' $as_dirs"
24085 as_dir=`$as_dirname -- "$as_dir" ||
24086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24087 X"$as_dir" : 'X\(//\)[^/]' \| \
24088 X"$as_dir" : 'X\(//\)$' \| \
24089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24090 $as_echo X"$as_dir" |
24091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24095 /^X\(\/\/\)[^/].*/{
24108 test -d "$as_dir" && break
24110 test -z "$as_dirs" || eval "mkdir $as_dirs"
24111 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24112 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
24113 { (exit 1); exit 1; }; }; }
24114 # echo "creating $dirpart/$file"
24115 echo '# dummy' > "$dirpart/$file"
24121 # See if we are running on zsh, and set the options which allow our
24122 # commands through without removal of \ escapes.
24123 if test -n "${ZSH_VERSION+set}" ; then
24124 setopt NO_GLOB_SUBST
24127 cfgfile="${ofile}T"
24128 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24131 cat <<_LT_EOF >> "$cfgfile"
24134 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24135 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24137 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24139 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24140 # 2006, 2007, 2008 Free Software Foundation, Inc.
24141 # Written by Gordon Matzigkeit, 1996
24143 # This file is part of GNU Libtool.
24145 # GNU Libtool is free software; you can redistribute it and/or
24146 # modify it under the terms of the GNU General Public License as
24147 # published by the Free Software Foundation; either version 2 of
24148 # the License, or (at your option) any later version.
24150 # As a special exception to the GNU General Public License,
24151 # if you distribute this file as part of a program or library that
24152 # is built using GNU Libtool, you may include this file under the
24153 # same distribution terms that you use for the rest of that program.
24155 # GNU Libtool is distributed in the hope that it will be useful,
24156 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24157 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24158 # GNU General Public License for more details.
24160 # You should have received a copy of the GNU General Public License
24161 # along with GNU Libtool; see the file COPYING. If not, a copy
24162 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24163 # obtained by writing to the Free Software Foundation, Inc.,
24164 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24167 # The names of the tagged configurations supported by this script.
24170 # ### BEGIN LIBTOOL CONFIG
24172 # Whether or not to build static libraries.
24173 build_old_libs=$enable_static
24175 # Whether or not to build shared libraries.
24176 build_libtool_libs=$enable_shared
24178 # Which release of libtool.m4 was used?
24179 macro_version=$macro_version
24180 macro_revision=$macro_revision
24182 # What type of objects to build.
24185 # Whether or not to optimize for fast installation.
24186 fast_install=$enable_fast_install
24189 host_alias=$host_alias
24193 # The build system.
24194 build_alias=$build_alias
24198 # A sed program that does not truncate output.
24201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24202 Xsed="\$SED -e 1s/^X//"
24204 # A grep program that handles long lines.
24210 # A literal string matcher.
24213 # A BSD- or MS-compatible name lister.
24216 # Whether we need soft or hard links.
24219 # What is the maximum length of a command?
24220 max_cmd_len=$max_cmd_len
24222 # Object file suffix (normally "o").
24225 # Executable file suffix (normally "").
24228 # whether the shell understands "unset".
24231 # turn spaces into newlines.
24234 # turn newlines into spaces.
24237 # How to create reloadable object files.
24238 reload_flag=$lt_reload_flag
24239 reload_cmds=$lt_reload_cmds
24241 # An object symbol dumper.
24242 OBJDUMP=$lt_OBJDUMP
24244 # Method to check whether dependent libraries are shared objects.
24245 deplibs_check_method=$lt_deplibs_check_method
24247 # Command to use when deplibs_check_method == "file_magic".
24248 file_magic_cmd=$lt_file_magic_cmd
24252 AR_FLAGS=$lt_AR_FLAGS
24254 # A symbol stripping program.
24257 # Commands used to install an old-style archive.
24259 old_postinstall_cmds=$lt_old_postinstall_cmds
24260 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24265 # LTCC compiler flags.
24266 LTCFLAGS=$lt_CFLAGS
24268 # Take the output of nm and produce a listing of raw symbols and C names.
24269 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24271 # Transform the output of nm in a proper C declaration.
24272 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24274 # Transform the output of nm in a C name address pair.
24275 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24277 # Transform the output of nm in a C name address pair when lib prefix is needed.
24278 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24280 # The name of the directory that contains temporary libtool files.
24283 # Shell to use when invoking shell scripts.
24286 # An echo program that does not interpret backslashes.
24289 # Used to examine libraries when file_magic_cmd begins with "file".
24290 MAGIC_CMD=$MAGIC_CMD
24292 # Must we lock files when doing compilation?
24293 need_locks=$lt_need_locks
24295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24296 DSYMUTIL=$lt_DSYMUTIL
24298 # Tool to change global to local symbols on Mac OS X.
24301 # Tool to manipulate fat objects and archives on Mac OS X.
24304 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24308 OTOOL64=$lt_OTOOL64
24310 # Old archive suffix (normally "a").
24313 # Shared library suffix (normally ".so").
24314 shrext_cmds=$lt_shrext_cmds
24316 # The commands to extract the exported symbol list from a shared archive.
24317 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24319 # Variables whose values should be saved in libtool wrapper scripts and
24320 # restored at link time.
24321 variables_saved_for_relink=$lt_variables_saved_for_relink
24323 # Do we need the "lib" prefix for modules?
24324 need_lib_prefix=$need_lib_prefix
24326 # Do we need a version for libraries?
24327 need_version=$need_version
24329 # Library versioning type.
24330 version_type=$version_type
24332 # Shared library runtime path variable.
24333 runpath_var=$runpath_var
24335 # Shared library path variable.
24336 shlibpath_var=$shlibpath_var
24338 # Is shlibpath searched before the hard-coded library search path?
24339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24341 # Format of library name prefix.
24342 libname_spec=$lt_libname_spec
24344 # List of archive names. First name is the real one, the rest are links.
24345 # The last name is the one that the linker finds with -lNAME
24346 library_names_spec=$lt_library_names_spec
24348 # The coded name of the library, if different from the real name.
24349 soname_spec=$lt_soname_spec
24351 # Command to use after installation of a shared archive.
24352 postinstall_cmds=$lt_postinstall_cmds
24354 # Command to use after uninstallation of a shared archive.
24355 postuninstall_cmds=$lt_postuninstall_cmds
24357 # Commands used to finish a libtool library installation in a directory.
24358 finish_cmds=$lt_finish_cmds
24360 # As "finish_cmds", except a single script fragment to be evaled but
24362 finish_eval=$lt_finish_eval
24364 # Whether we should hardcode library paths into libraries.
24365 hardcode_into_libs=$hardcode_into_libs
24367 # Compile-time system search path for libraries.
24368 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24370 # Run-time system search path for libraries.
24371 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24373 # Whether dlopen is supported.
24374 dlopen_support=$enable_dlopen
24376 # Whether dlopen of programs is supported.
24377 dlopen_self=$enable_dlopen_self
24379 # Whether dlopen of statically linked programs is supported.
24380 dlopen_self_static=$enable_dlopen_self_static
24382 # Commands to strip libraries.
24383 old_striplib=$lt_old_striplib
24384 striplib=$lt_striplib
24387 # The linker used to build libraries.
24390 # Commands used to build an old-style archive.
24391 old_archive_cmds=$lt_old_archive_cmds
24393 # A language specific compiler.
24396 # Is the compiler the GNU compiler?
24399 # Compiler flag to turn off builtin functions.
24400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24402 # How to pass a linker flag through the compiler.
24403 wl=$lt_lt_prog_compiler_wl
24405 # Additional compiler flags for building library objects.
24406 pic_flag=$lt_lt_prog_compiler_pic
24408 # Compiler flag to prevent dynamic linking.
24409 link_static_flag=$lt_lt_prog_compiler_static
24411 # Does compiler simultaneously support -c and -o options?
24412 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24414 # Whether or not to add -lc for building shared libraries.
24415 build_libtool_need_lc=$archive_cmds_need_lc
24417 # Whether or not to disallow shared libs when runtime libs are static.
24418 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24420 # Compiler flag to allow reflexive dlopens.
24421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24423 # Compiler flag to generate shared objects directly from archives.
24424 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24426 # Whether the compiler copes with passing no objects directly.
24427 compiler_needs_object=$lt_compiler_needs_object
24429 # Create an old-style archive from a shared archive.
24430 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24432 # Create a temporary old-style archive to link instead of a shared archive.
24433 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24435 # Commands used to build a shared archive.
24436 archive_cmds=$lt_archive_cmds
24437 archive_expsym_cmds=$lt_archive_expsym_cmds
24439 # Commands used to build a loadable module if different from building
24440 # a shared archive.
24441 module_cmds=$lt_module_cmds
24442 module_expsym_cmds=$lt_module_expsym_cmds
24444 # Whether we are building with GNU ld or not.
24445 with_gnu_ld=$lt_with_gnu_ld
24447 # Flag that allows shared libraries with undefined symbols to be built.
24448 allow_undefined_flag=$lt_allow_undefined_flag
24450 # Flag that enforces no undefined symbols.
24451 no_undefined_flag=$lt_no_undefined_flag
24453 # Flag to hardcode \$libdir into a binary during linking.
24454 # This must work even if \$libdir does not exist
24455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24457 # If ld is used when linking, flag to hardcode \$libdir into a binary
24458 # during linking. This must work even if \$libdir does not exist.
24459 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24461 # Whether we need a single "-rpath" flag with a separated argument.
24462 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24465 # DIR into the resulting binary.
24466 hardcode_direct=$hardcode_direct
24468 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24469 # DIR into the resulting binary and the resulting library dependency is
24470 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24471 # library is relocated.
24472 hardcode_direct_absolute=$hardcode_direct_absolute
24474 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24475 # into the resulting binary.
24476 hardcode_minus_L=$hardcode_minus_L
24478 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24479 # into the resulting binary.
24480 hardcode_shlibpath_var=$hardcode_shlibpath_var
24482 # Set to "yes" if building a shared library automatically hardcodes DIR
24483 # into the library and all subsequent libraries and executables linked
24485 hardcode_automatic=$hardcode_automatic
24487 # Set to yes if linker adds runtime paths of dependent libraries
24488 # to runtime path list.
24489 inherit_rpath=$inherit_rpath
24491 # Whether libtool must link a program against all its dependency libraries.
24492 link_all_deplibs=$link_all_deplibs
24494 # Fix the shell variable \$srcfile for the compiler.
24495 fix_srcfile_path=$lt_fix_srcfile_path
24497 # Set to "yes" if exported symbols are required.
24498 always_export_symbols=$always_export_symbols
24500 # The commands to list exported symbols.
24501 export_symbols_cmds=$lt_export_symbols_cmds
24503 # Symbols that should not be listed in the preloaded symbols.
24504 exclude_expsyms=$lt_exclude_expsyms
24506 # Symbols that must always be exported.
24507 include_expsyms=$lt_include_expsyms
24509 # Commands necessary for linking programs (against libraries) with templates.
24510 prelink_cmds=$lt_prelink_cmds
24512 # Specify filename containing input files.
24513 file_list_spec=$lt_file_list_spec
24515 # How to hardcode a shared library path into an executable.
24516 hardcode_action=$hardcode_action
24518 # ### END LIBTOOL CONFIG
24524 cat <<\_LT_EOF >> "$cfgfile"
24525 # AIX sometimes has problems with the GCC collect2 program. For some
24526 # reason, if we set the COLLECT_NAMES environment variable, the problems
24527 # vanish in a puff of smoke.
24528 if test "X${COLLECT_NAMES+set}" != Xset; then
24530 export COLLECT_NAMES
24537 ltmain="$ac_aux_dir/ltmain.sh"
24540 # We use sed instead of cat because bash on DJGPP gets confused if
24541 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24542 # text mode, it properly converts lines to CR/LF. This bash problem
24543 # is reportedly fixed, but why not run on old versions too?
24544 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24545 || (rm -f "$cfgfile"; exit 1)
24549 cat << \_LT_EOF >> "$cfgfile"
24551 # func_dirname file append nondir_replacement
24552 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24553 # otherwise set result to NONDIR_REPLACEMENT.
24557 */*) func_dirname_result="${1%/*}${2}" ;;
24558 * ) func_dirname_result="${3}" ;;
24562 # func_basename file
24565 func_basename_result="${1##*/}"
24568 # func_dirname_and_basename file append nondir_replacement
24569 # perform func_basename and func_dirname in a single function
24571 # dirname: Compute the dirname of FILE. If nonempty,
24572 # add APPEND to the result, otherwise set result
24573 # to NONDIR_REPLACEMENT.
24574 # value returned in "$func_dirname_result"
24575 # basename: Compute filename of FILE.
24576 # value retuned in "$func_basename_result"
24577 # Implementation must be kept synchronized with func_dirname
24578 # and func_basename. For efficiency, we do not delegate to
24579 # those functions but instead duplicate the functionality here.
24580 func_dirname_and_basename ()
24583 */*) func_dirname_result="${1%/*}${2}" ;;
24584 * ) func_dirname_result="${3}" ;;
24586 func_basename_result="${1##*/}"
24589 # func_stripname prefix suffix name
24590 # strip PREFIX and SUFFIX off of NAME.
24591 # PREFIX and SUFFIX must not contain globbing or regex special
24592 # characters, hashes, percent signs, but SUFFIX may contain a leading
24593 # dot (in which case that matches only a dot).
24596 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24597 # positional parameters, so assign one to ordinary parameter first.
24598 func_stripname_result=${3}
24599 func_stripname_result=${func_stripname_result#"${1}"}
24600 func_stripname_result=${func_stripname_result%"${2}"}
24606 func_opt_split_opt=${1%%=*}
24607 func_opt_split_arg=${1#*=}
24614 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24615 *) func_lo2o_result=${1} ;;
24619 # func_xform libobj-or-source
24622 func_xform_result=${1%.*}.lo
24625 # func_arith arithmetic-term...
24628 func_arith_result=$(( $* ))
24632 # STRING may not start with a hyphen.
24635 func_len_result=${#1}
24640 *) # Bourne compatible functions.
24641 cat << \_LT_EOF >> "$cfgfile"
24643 # func_dirname file append nondir_replacement
24644 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24645 # otherwise set result to NONDIR_REPLACEMENT.
24648 # Extract subdirectory from the argument.
24649 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
24650 if test "X$func_dirname_result" = "X${1}"; then
24651 func_dirname_result="${3}"
24653 func_dirname_result="$func_dirname_result${2}"
24657 # func_basename file
24660 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
24664 # func_stripname prefix suffix name
24665 # strip PREFIX and SUFFIX off of NAME.
24666 # PREFIX and SUFFIX must not contain globbing or regex special
24667 # characters, hashes, percent signs, but SUFFIX may contain a leading
24668 # dot (in which case that matches only a dot).
24669 # func_strip_suffix prefix name
24673 .*) func_stripname_result=`$ECHO "X${3}" \
24674 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
24675 *) func_stripname_result=`$ECHO "X${3}" \
24676 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
24681 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24682 my_sed_long_arg='1s/^-[^=]*=//'
24687 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
24688 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
24694 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
24697 # func_xform libobj-or-source
24700 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
24703 # func_arith arithmetic-term...
24706 func_arith_result=`expr "$@"`
24710 # STRING may not start with a hyphen.
24713 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24719 case $lt_shell_append in
24721 cat << \_LT_EOF >> "$cfgfile"
24723 # func_append var value
24724 # Append VALUE to the end of shell variable VAR.
24732 cat << \_LT_EOF >> "$cfgfile"
24734 # func_append var value
24735 # Append VALUE to the end of shell variable VAR.
24746 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24747 || (rm -f "$cfgfile"; exit 1)
24749 mv -f "$cfgfile" "$ofile" ||
24750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24754 "po-directories":C)
24755 for ac_file in $CONFIG_FILES; do
24756 # Support "outfile[:infile[:infile...]]"
24758 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24760 # PO directories have a Makefile.in generated from Makefile.in.in.
24761 case "$ac_file" in */Makefile.in)
24762 # Adjust a relative srcdir.
24763 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24764 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24765 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24766 # In autoconf-2.13 it is called $ac_given_srcdir.
24767 # In autoconf-2.50 it is called $srcdir.
24768 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24769 case "$ac_given_srcdir" in
24770 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24771 /*) top_srcdir="$ac_given_srcdir" ;;
24772 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24774 # Treat a directory as a PO directory if and only if it has a
24775 # POTFILES.in file. This allows packages to have multiple PO
24776 # directories under different names or in different locations.
24777 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24778 rm -f "$ac_dir/POTFILES"
24779 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24780 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24781 POMAKEFILEDEPS="POTFILES.in"
24782 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24783 # on $ac_dir but don't depend on user-specified configuration
24785 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24786 # The LINGUAS file contains the set of available languages.
24787 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24788 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24790 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24791 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24792 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24793 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24795 # The set of available languages was given in configure.in.
24796 # Hide the ALL_LINGUAS assigment from automake < 1.5.
24797 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24800 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24801 # Compute UPDATEPOFILES
24802 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24803 # Compute DUMMYPOFILES
24804 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24806 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24807 case "$ac_given_srcdir" in
24809 *) srcdirpre='$(srcdir)/' ;;
24815 for lang in $ALL_LINGUAS; do
24816 POFILES="$POFILES $srcdirpre$lang.po"
24817 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24818 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24819 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24821 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24822 # environment variable.
24824 if test -n "$ALL_LINGUAS"; then
24825 for presentlang in $ALL_LINGUAS; do
24827 if test "%UNSET%" != "$LINGUAS"; then
24828 desiredlanguages="$LINGUAS"
24830 desiredlanguages="$ALL_LINGUAS"
24832 for desiredlang in $desiredlanguages; do
24833 # Use the presentlang catalog if desiredlang is
24834 # a. equal to presentlang, or
24835 # b. a variant of presentlang (because in this case,
24836 # presentlang can be used as a fallback for messages
24837 # which are not translated in the desiredlang catalog).
24838 case "$desiredlang" in
24839 "$presentlang"*) useit=yes;;
24842 if test $useit = yes; then
24843 INST_LINGUAS="$INST_LINGUAS $presentlang"
24848 if test -n "$INST_LINGUAS"; then
24849 for lang in $INST_LINGUAS; do
24850 CATALOGS="$CATALOGS $lang.gmo"
24853 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24854 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24855 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24856 if test -f "$f"; then
24858 *.orig | *.bak | *~) ;;
24859 *) cat "$f" >> "$ac_dir/Makefile" ;;
24872 { (exit 0); exit 0; }
24874 chmod +x $CONFIG_STATUS
24875 ac_clean_files=$ac_clean_files_save
24877 test $ac_write_fail = 0 ||
24878 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24879 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24880 { (exit 1); exit 1; }; }
24883 # configure is writing to config.log, and then calls config.status.
24884 # config.status does its own redirection, appending to config.log.
24885 # Unfortunately, on DOS this fails, as config.log is still kept open
24886 # by configure, so config.status won't be able to write to it; its
24887 # output is simply discarded. So we exec the FD to /dev/null,
24888 # effectively closing config.log, so it can be properly (re)opened and
24889 # appended to by config.status. When coming back to configure, we
24890 # need to make the FD available again.
24891 if test "$no_create" != yes; then
24893 ac_config_status_args=
24894 test "$silent" = yes &&
24895 ac_config_status_args="$ac_config_status_args --quiet"
24897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24900 # would make configure fail if this is the last instruction.
24901 $ac_cs_success || { (exit 1); exit 1; }
24903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24904 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}