2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for util-linux-ng 2.16.2.
5 # Report bugs to <kzak@redhat.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='util-linux-ng'
747 PACKAGE_TARNAME='util-linux-ng'
748 PACKAGE_VERSION='2.16.2'
749 PACKAGE_STRING='util-linux-ng 2.16.2'
750 PACKAGE_BUGREPORT='kzak@redhat.com'
752 ac_unique_file="mount/mount.c"
753 ac_default_prefix=/usr
754 # Factoring default headers for most tests.
755 ac_includes_default="\
757 #ifdef HAVE_SYS_TYPES_H
758 # include <sys/types.h>
760 #ifdef HAVE_SYS_STAT_H
761 # include <sys/stat.h>
767 # ifdef HAVE_STDLIB_H
772 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 #ifdef HAVE_STRINGS_H
778 # include <strings.h>
780 #ifdef HAVE_INTTYPES_H
781 # include <inttypes.h>
790 ac_subst_vars='am__EXEEXT_FALSE
796 MAKEINSTALL_DO_CHOWN_FALSE
797 MAKEINSTALL_DO_CHOWN_TRUE
804 BUILD_SCHEDUTILS_FALSE
805 BUILD_SCHEDUTILS_TRUE
814 BUILD_LOGIN_UTILS_FALSE
815 BUILD_LOGIN_UTILS_TRUE
836 BUILD_SWITCH_ROOT_FALSE
837 BUILD_SWITCH_ROOT_TRUE
862 HAVE_IOPRIO_GET_FALSE
864 HAVE_IOPRIO_SET_FALSE
866 HAVE_SCHED_GETAFFINITY_FALSE
867 HAVE_SCHED_GETAFFINITY_TRUE
868 HAVE_PIVOT_ROOT_FALSE
902 LIBBLKID_VERSION_INFO
918 HAVE_STATIC_BLKID_FALSE
919 HAVE_STATIC_BLKID_TRUE
920 HAVE_STATIC_SFDISK_FALSE
921 HAVE_STATIC_SFDISK_TRUE
922 HAVE_STATIC_FDISK_FALSE
923 HAVE_STATIC_FDISK_TRUE
924 HAVE_STATIC_UMOUNT_FALSE
925 HAVE_STATIC_UMOUNT_TRUE
926 HAVE_STATIC_MOUNT_FALSE
927 HAVE_STATIC_MOUNT_TRUE
928 HAVE_STATIC_LOSETUP_FALSE
929 HAVE_STATIC_LOSETUP_TRUE
994 INSTALL_STRIP_PROGRAM
1036 program_transform_name
1048 enable_option_checking
1049 enable_dependency_tracking
1057 enable_static_programs
1066 with_libiconv_prefix
1091 enable_chsh_only_listed
1092 enable_login_chown_vcs
1093 enable_login_stat_mail
1095 enable_require_password
1096 enable_use_tty_group
1097 enable_makeinstall_chown
1099 ac_precious_vars='build_alias
1118 # Initialize some variables set by options.
1120 ac_init_version=false
1121 ac_unrecognized_opts=
1122 ac_unrecognized_sep=
1123 # The variables have the same names as the options, with
1124 # dashes changed to underlines.
1125 cache_file=/dev/null
1132 program_transform_name=s,x,x,
1140 # Installation directory options.
1141 # These are left unexpanded so users can "make install exec_prefix=/foo"
1142 # and all the variables that are supposed to be based on exec_prefix
1143 # by default will actually change.
1144 # Use braces instead of parens because sh, perl, etc. also accept them.
1145 # (The list follows the same order as the GNU Coding Standards.)
1146 bindir='${exec_prefix}/bin'
1147 sbindir='${exec_prefix}/sbin'
1148 libexecdir='${exec_prefix}/libexec'
1149 datarootdir='${prefix}/share'
1150 datadir='${datarootdir}'
1151 sysconfdir='${prefix}/etc'
1152 sharedstatedir='${prefix}/com'
1153 localstatedir='${prefix}/var'
1154 includedir='${prefix}/include'
1155 oldincludedir='/usr/include'
1156 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1157 infodir='${datarootdir}/info'
1162 libdir='${exec_prefix}/lib'
1163 localedir='${datarootdir}/locale'
1164 mandir='${datarootdir}/man'
1170 # If the previous option needs an argument, assign it.
1171 if test -n "$ac_prev"; then
1172 eval $ac_prev=\$ac_option
1178 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1182 # Accept the important Cygnus configure options, so we can diagnose typos.
1184 case $ac_dashdash$ac_option in
1188 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1190 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1191 bindir=$ac_optarg ;;
1193 -build | --build | --buil | --bui | --bu)
1194 ac_prev=build_alias ;;
1195 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1196 build_alias=$ac_optarg ;;
1198 -cache-file | --cache-file | --cache-fil | --cache-fi \
1199 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1200 ac_prev=cache_file ;;
1201 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1202 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1203 cache_file=$ac_optarg ;;
1205 --config-cache | -C)
1206 cache_file=config.cache ;;
1208 -datadir | --datadir | --datadi | --datad)
1210 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1211 datadir=$ac_optarg ;;
1213 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1214 | --dataroo | --dataro | --datar)
1215 ac_prev=datarootdir ;;
1216 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1217 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1218 datarootdir=$ac_optarg ;;
1220 -disable-* | --disable-*)
1221 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1225 { (exit 1); exit 1; }; }
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1230 "enable_$ac_useropt"
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval enable_$ac_useropt=no ;;
1237 -docdir | --docdir | --docdi | --doc | --do)
1239 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1240 docdir=$ac_optarg ;;
1242 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1244 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1245 dvidir=$ac_optarg ;;
1247 -enable-* | --enable-*)
1248 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1251 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1252 { (exit 1); exit 1; }; }
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "enable_$ac_useropt"
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1262 eval enable_$ac_useropt=\$ac_optarg ;;
1264 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1265 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1266 | --exec | --exe | --ex)
1267 ac_prev=exec_prefix ;;
1268 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1269 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1270 | --exec=* | --exe=* | --ex=*)
1271 exec_prefix=$ac_optarg ;;
1273 -gas | --gas | --ga | --g)
1274 # Obsolete; use --with-gas.
1277 -help | --help | --hel | --he | -h)
1278 ac_init_help=long ;;
1279 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1280 ac_init_help=recursive ;;
1281 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1282 ac_init_help=short ;;
1284 -host | --host | --hos | --ho)
1285 ac_prev=host_alias ;;
1286 -host=* | --host=* | --hos=* | --ho=*)
1287 host_alias=$ac_optarg ;;
1289 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1291 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1293 htmldir=$ac_optarg ;;
1295 -includedir | --includedir | --includedi | --included | --include \
1296 | --includ | --inclu | --incl | --inc)
1297 ac_prev=includedir ;;
1298 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1299 | --includ=* | --inclu=* | --incl=* | --inc=*)
1300 includedir=$ac_optarg ;;
1302 -infodir | --infodir | --infodi | --infod | --info | --inf)
1304 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1305 infodir=$ac_optarg ;;
1307 -libdir | --libdir | --libdi | --libd)
1309 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1310 libdir=$ac_optarg ;;
1312 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1313 | --libexe | --libex | --libe)
1314 ac_prev=libexecdir ;;
1315 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1316 | --libexe=* | --libex=* | --libe=*)
1317 libexecdir=$ac_optarg ;;
1319 -localedir | --localedir | --localedi | --localed | --locale)
1320 ac_prev=localedir ;;
1321 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1322 localedir=$ac_optarg ;;
1324 -localstatedir | --localstatedir | --localstatedi | --localstated \
1325 | --localstate | --localstat | --localsta | --localst | --locals)
1326 ac_prev=localstatedir ;;
1327 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1328 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1329 localstatedir=$ac_optarg ;;
1331 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1333 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1334 mandir=$ac_optarg ;;
1336 -nfp | --nfp | --nf)
1337 # Obsolete; use --without-fp.
1340 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1341 | --no-cr | --no-c | -n)
1344 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1345 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1348 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1349 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1350 | --oldin | --oldi | --old | --ol | --o)
1351 ac_prev=oldincludedir ;;
1352 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1353 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1354 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1355 oldincludedir=$ac_optarg ;;
1357 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1359 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1360 prefix=$ac_optarg ;;
1362 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1363 | --program-pre | --program-pr | --program-p)
1364 ac_prev=program_prefix ;;
1365 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1366 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1367 program_prefix=$ac_optarg ;;
1369 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1370 | --program-suf | --program-su | --program-s)
1371 ac_prev=program_suffix ;;
1372 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1373 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1374 program_suffix=$ac_optarg ;;
1376 -program-transform-name | --program-transform-name \
1377 | --program-transform-nam | --program-transform-na \
1378 | --program-transform-n | --program-transform- \
1379 | --program-transform | --program-transfor \
1380 | --program-transfo | --program-transf \
1381 | --program-trans | --program-tran \
1382 | --progr-tra | --program-tr | --program-t)
1383 ac_prev=program_transform_name ;;
1384 -program-transform-name=* | --program-transform-name=* \
1385 | --program-transform-nam=* | --program-transform-na=* \
1386 | --program-transform-n=* | --program-transform-=* \
1387 | --program-transform=* | --program-transfor=* \
1388 | --program-transfo=* | --program-transf=* \
1389 | --program-trans=* | --program-tran=* \
1390 | --progr-tra=* | --program-tr=* | --program-t=*)
1391 program_transform_name=$ac_optarg ;;
1393 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1395 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1396 pdfdir=$ac_optarg ;;
1398 -psdir | --psdir | --psdi | --psd | --ps)
1400 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1404 | -silent | --silent | --silen | --sile | --sil)
1407 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1409 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1411 sbindir=$ac_optarg ;;
1413 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1414 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1415 | --sharedst | --shareds | --shared | --share | --shar \
1417 ac_prev=sharedstatedir ;;
1418 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1419 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1420 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1422 sharedstatedir=$ac_optarg ;;
1424 -site | --site | --sit)
1426 -site=* | --site=* | --sit=*)
1429 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1431 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1432 srcdir=$ac_optarg ;;
1434 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1435 | --syscon | --sysco | --sysc | --sys | --sy)
1436 ac_prev=sysconfdir ;;
1437 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1438 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1439 sysconfdir=$ac_optarg ;;
1441 -target | --target | --targe | --targ | --tar | --ta | --t)
1442 ac_prev=target_alias ;;
1443 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1444 target_alias=$ac_optarg ;;
1446 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1449 -version | --version | --versio | --versi | --vers | -V)
1450 ac_init_version=: ;;
1453 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1457 { (exit 1); exit 1; }; }
1458 ac_useropt_orig=$ac_useropt
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1465 ac_unrecognized_sep=', ';;
1467 eval with_$ac_useropt=\$ac_optarg ;;
1469 -without-* | --without-*)
1470 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1471 # Reject names that are not valid shell variable names.
1472 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1473 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1474 { (exit 1); exit 1; }; }
1475 ac_useropt_orig=$ac_useropt
1476 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1477 case $ac_user_opts in
1481 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1482 ac_unrecognized_sep=', ';;
1484 eval with_$ac_useropt=no ;;
1487 # Obsolete; use --with-x.
1490 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1491 | --x-incl | --x-inc | --x-in | --x-i)
1492 ac_prev=x_includes ;;
1493 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1494 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1495 x_includes=$ac_optarg ;;
1497 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1498 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1499 ac_prev=x_libraries ;;
1500 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1501 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1502 x_libraries=$ac_optarg ;;
1504 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1505 Try \`$0 --help' for more information." >&2
1506 { (exit 1); exit 1; }; }
1510 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1511 # Reject names that are not valid shell variable names.
1512 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1513 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1514 { (exit 1); exit 1; }; }
1515 eval $ac_envvar=\$ac_optarg
1516 export $ac_envvar ;;
1519 # FIXME: should be removed in autoconf 3.0.
1520 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1521 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1522 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1523 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1529 if test -n "$ac_prev"; then
1530 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1531 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1532 { (exit 1); exit 1; }; }
1535 if test -n "$ac_unrecognized_opts"; then
1536 case $enable_option_checking in
1538 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1539 { (exit 1); exit 1; }; } ;;
1540 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1544 # Check all directory arguments for consistency.
1545 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1546 datadir sysconfdir sharedstatedir localstatedir includedir \
1547 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1548 libdir localedir mandir
1550 eval ac_val=\$$ac_var
1551 # Remove trailing slashes.
1554 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1555 eval $ac_var=\$ac_val;;
1557 # Be sure to have absolute directory names.
1559 [\\/$]* | ?:[\\/]* ) continue;;
1560 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1562 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1563 { (exit 1); exit 1; }; }
1566 # There might be people who depend on the old broken behavior: `$host'
1567 # used to hold the argument of --host etc.
1568 # FIXME: To remove some day.
1571 target=$target_alias
1573 # FIXME: To remove some day.
1574 if test "x$host_alias" != x; then
1575 if test "x$build_alias" = x; then
1576 cross_compiling=maybe
1577 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1578 If a cross compiler is detected then cross compile mode will be used." >&2
1579 elif test "x$build_alias" != "x$host_alias"; then
1585 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1587 test "$silent" = yes && exec 6>/dev/null
1590 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1591 ac_ls_di=`ls -di .` &&
1592 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1593 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1594 { (exit 1); exit 1; }; }
1595 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1596 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1597 { (exit 1); exit 1; }; }
1600 # Find the source files, if location was not specified.
1601 if test -z "$srcdir"; then
1602 ac_srcdir_defaulted=yes
1603 # Try the directory containing this script, then the parent directory.
1604 ac_confdir=`$as_dirname -- "$as_myself" ||
1605 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1606 X"$as_myself" : 'X\(//\)[^/]' \| \
1607 X"$as_myself" : 'X\(//\)$' \| \
1608 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1609 $as_echo X"$as_myself" |
1610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1628 if test ! -r "$srcdir/$ac_unique_file"; then
1632 ac_srcdir_defaulted=no
1634 if test ! -r "$srcdir/$ac_unique_file"; then
1635 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1636 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1637 { (exit 1); exit 1; }; }
1639 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1641 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1642 { (exit 1); exit 1; }; }
1644 # When building in place, set srcdir=.
1645 if test "$ac_abs_confdir" = "$ac_pwd"; then
1648 # Remove unnecessary trailing slashes from srcdir.
1649 # Double slashes in file names in object file debugging info
1650 # mess up M-x gdb in Emacs.
1652 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1654 for ac_var in $ac_precious_vars; do
1655 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1656 eval ac_env_${ac_var}_value=\$${ac_var}
1657 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1658 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1662 # Report the --help message.
1664 if test "$ac_init_help" = "long"; then
1665 # Omit some internal or obsolete options to make the list less imposing.
1666 # This message is too long to be a string in the A/UX 3.1 sh.
1668 \`configure' configures util-linux-ng 2.16.2 to adapt to many kinds of systems.
1670 Usage: $0 [OPTION]... [VAR=VALUE]...
1672 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1673 VAR=VALUE. See below for descriptions of some of the useful variables.
1675 Defaults for the options are specified in brackets.
1678 -h, --help display this help and exit
1679 --help=short display options specific to this package
1680 --help=recursive display the short help of all the included packages
1681 -V, --version display version information and exit
1682 -q, --quiet, --silent do not print \`checking...' messages
1683 --cache-file=FILE cache test results in FILE [disabled]
1684 -C, --config-cache alias for \`--cache-file=config.cache'
1685 -n, --no-create do not create output files
1686 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1688 Installation directories:
1689 --prefix=PREFIX install architecture-independent files in PREFIX
1690 [$ac_default_prefix]
1691 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1694 By default, \`make install' will install all the files in
1695 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1696 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1697 for instance \`--prefix=\$HOME'.
1699 For better control, use the options below.
1701 Fine tuning of the installation directories:
1702 --bindir=DIR user executables [EPREFIX/bin]
1703 --sbindir=DIR system admin executables [EPREFIX/sbin]
1704 --libexecdir=DIR program executables [EPREFIX/libexec]
1705 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1706 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1707 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1708 --libdir=DIR object code libraries [EPREFIX/lib]
1709 --includedir=DIR C header files [PREFIX/include]
1710 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1711 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1712 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1713 --infodir=DIR info documentation [DATAROOTDIR/info]
1714 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1715 --mandir=DIR man documentation [DATAROOTDIR/man]
1716 --docdir=DIR documentation root [DATAROOTDIR/doc/util-linux-ng]
1717 --htmldir=DIR html documentation [DOCDIR]
1718 --dvidir=DIR dvi documentation [DOCDIR]
1719 --pdfdir=DIR pdf documentation [DOCDIR]
1720 --psdir=DIR ps documentation [DOCDIR]
1726 --program-prefix=PREFIX prepend PREFIX to installed program names
1727 --program-suffix=SUFFIX append SUFFIX to installed program names
1728 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1731 --build=BUILD configure for building on BUILD [guessed]
1732 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1736 if test -n "$ac_init_help"; then
1737 case $ac_init_help in
1738 short | recursive ) echo "Configuration of util-linux-ng 2.16.2:";;
1743 --disable-option-checking ignore unrecognized --enable/--with options
1744 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1745 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1746 --disable-dependency-tracking speeds up one-time build
1747 --enable-dependency-tracking do not reject slow dependency extractors
1748 --enable-shared[=PKGS] build shared libraries [default=yes]
1749 --enable-static[=PKGS] build static libraries [default=yes]
1750 --enable-fast-install[=PKGS]
1751 optimize for fast installation [default=yes]
1752 --disable-libtool-lock avoid locking (might break parallel builds)
1753 --disable-largefile omit support for large files
1754 --enable-static-programs=LIST
1755 link static the programs in LIST (comma-separated,
1756 supported for losetup, mount, umount, fdisk, sfdisk,
1758 --disable-tls disable use of thread local support
1759 --disable-mount do not build mount utilities
1760 --disable-fsck do not build fsck
1761 --disable-libuuid do not build libuuid and uuid utilities
1762 --disable-uuidd do not build the uuid daemon
1763 --disable-libblkid do not build libblkid and blkid utilities
1764 --disable-nls do not use Native Language Support
1765 --disable-rpath do not hardcode runtime library paths
1766 --enable-arch do build arch
1767 --disable-agetty do not build agetty
1768 --disable-cramfs do not build fsck.cramfs, mkfs.cramfs
1769 --disable-switch_root do not build switch_root
1770 --enable-elvtune build elvtune (only works with 2.2 and 2.4 kernels)
1771 --enable-init build simpleinit, shutdown, initctl
1772 --enable-kill build kill
1773 --enable-last build last
1774 --enable-mesg build mesg
1775 --enable-partx build addpart, delpart, partx
1776 --enable-raw build raw
1777 --enable-rdev build rdev on i386
1778 --disable-rename do not build rename
1779 --enable-reset build reset
1780 --enable-login-utils build chfn, chsh, login, newgrp, vipw
1781 --disable-schedutils do not build chrt, ionice, teskset
1782 --disable-wall do not build wall
1783 --enable-write build write
1784 --disable-chsh-only-listed
1785 chsh: allow shells not in /etc/shells
1786 --enable-login-chown-vcs
1787 let login chown /dev/vcsN
1788 --enable-login-stat-mail
1789 let login stat() the mailbox
1790 --disable-pg-bell let pg not ring the bell on invalid keys
1791 --disable-require-password
1792 do not require the user to enter the password in
1794 --disable-use-tty-group do not install wall and write setgid tty
1795 --disable-makeinstall-chown
1796 do not do chown-like operations during "make
1800 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1801 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1802 --with-pic try to use only PIC/non-PIC objects [default=use
1804 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1805 --with-gnu-ld assume the C compiler uses GNU ld default=no
1806 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1807 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1808 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1809 --without-libintl-prefix don't search for libintl in includedir and libdir
1810 --with-ncurses build with non-wide ncurses, default is wide version
1811 (--without-ncurses disables all ncurses(w) support)
1812 --with-slang compile cfdisk with slang
1813 --without-pam compile login-utils without PAM support
1814 --with-selinux compile with SELinux support
1815 --with-audit compile with audit support
1817 Some influential environment variables:
1818 CC C compiler command
1819 CFLAGS C compiler flags
1820 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1821 nonstandard directory <lib dir>
1822 LIBS libraries to pass to the linker, e.g. -l<library>
1823 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1824 you have headers in a nonstandard directory <include dir>
1826 PKG_CONFIG path to pkg-config utility
1827 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1828 UUID_LIBS linker flags for UUID, overriding pkg-config
1830 C compiler flags for BLKID, overriding pkg-config
1831 BLKID_LIBS linker flags for BLKID, overriding pkg-config
1833 -l options for linking statically with blkid
1834 SUID_CFLAGS CFLAGS used for binaries which are usually with the suid bit
1836 LDFLAGS used for binaries which are usually with the suid bit
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1841 Report bugs to <kzak@redhat.com>.
1846 if test "$ac_init_help" = "recursive"; then
1847 # If there are subdirs, report their specific --help.
1848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849 test -d "$ac_dir" ||
1850 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858 # A ".." for each directory in $ac_dir_suffix.
1859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860 case $ac_top_builddir_sub in
1861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1871 .) # We are building in place.
1873 ac_top_srcdir=$ac_top_builddir_sub
1874 ac_abs_top_srcdir=$ac_pwd ;;
1875 [\\/]* | ?:[\\/]* ) # Absolute name.
1876 ac_srcdir=$srcdir$ac_dir_suffix;
1877 ac_top_srcdir=$srcdir
1878 ac_abs_top_srcdir=$srcdir ;;
1880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881 ac_top_srcdir=$ac_top_build_prefix$srcdir
1882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1904 util-linux-ng configure 2.16.2
1905 generated by GNU Autoconf 2.63
1907 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1908 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1909 This configure script is free software; the Free Software Foundation
1910 gives unlimited permission to copy, distribute and modify it.
1914 cat >config.log <<_ACEOF
1915 This file contains any messages produced by compilers while
1916 running configure, to aid debugging if configure makes a mistake.
1918 It was created by util-linux-ng $as_me 2.16.2, which was
1919 generated by GNU Autoconf 2.63. Invocation command line was
1931 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1932 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1933 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1934 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1935 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1938 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1941 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1942 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1943 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1944 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1945 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1946 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 test -z "$as_dir" && as_dir=.
1955 $as_echo "PATH: $as_dir"
1971 # Keep a trace of the command line.
1972 # Strip out --no-create and --no-recursion so they do not pile up.
1973 # Strip out --silent because we don't want to record it for future runs.
1974 # Also quote any args containing shell meta-characters.
1975 # Make two passes to allow for proper duplicate-argument suppression.
1979 ac_must_keep_next=false
1985 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1987 | -silent | --silent | --silen | --sile | --sil)
1990 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1993 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1995 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1996 if test $ac_must_keep_next = true; then
1997 ac_must_keep_next=false # Got value, back to normal.
2000 *=* | --config-cache | -C | -disable-* | --disable-* \
2001 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2002 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2003 | -with-* | --with-* | -without-* | --without-* | --x)
2004 case "$ac_configure_args0 " in
2005 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2008 -* ) ac_must_keep_next=true ;;
2011 ac_configure_args="$ac_configure_args '$ac_arg'"
2016 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2017 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2019 # When interrupted or exit'd, cleanup temporary files, and complete
2020 # config.log. We remove comments because anyway the quotes in there
2021 # would cause problems or look ugly.
2022 # WARNING: Use '\'' to represent an apostrophe within the trap.
2023 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2024 trap 'exit_status=$?
2025 # Save into config.log some information that might help in debugging.
2030 ## ---------------- ##
2031 ## Cache variables. ##
2032 ## ---------------- ##
2035 # The following way of writing the cache mishandles newlines in values,
2037 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2038 eval ac_val=\$$ac_var
2042 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2043 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2046 _ | IFS | as_nl) ;; #(
2047 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2048 *) $as_unset $ac_var ;;
2053 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2054 *${as_nl}ac_space=\ *)
2056 "s/'\''/'\''\\\\'\'''\''/g;
2057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2060 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2068 ## ----------------- ##
2069 ## Output variables. ##
2070 ## ----------------- ##
2073 for ac_var in $ac_subst_vars
2075 eval ac_val=\$$ac_var
2077 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2079 $as_echo "$ac_var='\''$ac_val'\''"
2083 if test -n "$ac_subst_files"; then
2085 ## ------------------- ##
2086 ## File substitutions. ##
2087 ## ------------------- ##
2090 for ac_var in $ac_subst_files
2092 eval ac_val=\$$ac_var
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2096 $as_echo "$ac_var='\''$ac_val'\''"
2101 if test -s confdefs.h; then
2111 test "$ac_signal" != 0 &&
2112 $as_echo "$as_me: caught signal $ac_signal"
2113 $as_echo "$as_me: exit $exit_status"
2115 rm -f core *.core core.conftest.* &&
2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2119 for ac_signal in 1 2 13 15; do
2120 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2124 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2125 rm -f -r conftest* confdefs.h
2127 # Predefined preprocessor variables.
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_NAME "$PACKAGE_NAME"
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2144 cat >>confdefs.h <<_ACEOF
2145 #define PACKAGE_STRING "$PACKAGE_STRING"
2149 cat >>confdefs.h <<_ACEOF
2150 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2154 # Let the site file select an alternate cache file if it wants to.
2155 # Prefer an explicitly selected file to automatically selected ones.
2158 if test -n "$CONFIG_SITE"; then
2159 ac_site_file1=$CONFIG_SITE
2160 elif test "x$prefix" != xNONE; then
2161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
2164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
2167 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2169 test "x$ac_site_file" = xNONE && continue
2170 if test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2172 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2173 sed 's/^/| /' "$ac_site_file" >&5
2178 if test -r "$cache_file"; then
2179 # Some versions of bash will fail to source /dev/null (special
2180 # files actually), so we avoid doing that.
2181 if test -f "$cache_file"; then
2182 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186 *) . "./$cache_file";;
2190 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2195 # Check that the precious variables saved in the cache have kept the same
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200 eval ac_new_set=\$ac_env_${ac_var}_set
2201 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202 eval ac_new_val=\$ac_env_${ac_var}_value
2203 case $ac_old_set,$ac_new_set in
2205 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2209 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211 ac_cache_corrupted=: ;;
2214 if test "x$ac_old_val" != "x$ac_new_val"; then
2215 # differences in whitespace do not lead to failure.
2216 ac_old_val_w=`echo x $ac_old_val`
2217 ac_new_val_w=`echo x $ac_new_val`
2218 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221 ac_cache_corrupted=:
2223 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225 eval $ac_var=\$ac_old_val
2227 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2229 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 # Pass precious variables to config.status.
2234 if test "$ac_new_set" = set; then
2236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237 *) ac_arg=$ac_var=$ac_new_val ;;
2239 case " $ac_configure_args " in
2240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2245 if $ac_cache_corrupted; then
2246 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2251 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2252 { (exit 1); exit 1; }; }
2280 ac_cpp='$CPP $CPPFLAGS'
2281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290 for ac_dir in config "$srcdir"/config; do
2291 if test -f "$ac_dir/install-sh"; then
2293 ac_install_sh="$ac_aux_dir/install-sh -c"
2295 elif test -f "$ac_dir/install.sh"; then
2297 ac_install_sh="$ac_aux_dir/install.sh -c"
2299 elif test -f "$ac_dir/shtool"; then
2301 ac_install_sh="$ac_aux_dir/shtool install -c"
2305 if test -z "$ac_aux_dir"; then
2306 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2307 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2308 { (exit 1); exit 1; }; }
2311 # These three variables are undocumented and unsupported,
2312 # and are intended to be withdrawn in a future Autoconf release.
2313 # They can cause serious problems if a builder's source tree is in a directory
2314 # whose full name contains unusual characters.
2315 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2316 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2317 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2322 am__api_version='1.11'
2324 # Find a good install program. We prefer a C program (faster),
2325 # so one script is as good as another. But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if test "${ac_cv_path_install+set}" = set; then
2342 $as_echo_n "(cached) " >&6
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir=.
2349 # Account for people who put trailing slashes in PATH elements.
2351 ./ | .// | /cC/* | \
2352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2356 # OSF1 and SCO ODT 3.0 have their own names for install.
2357 # Don't use installbsd from OSF since it installs stuff as root
2359 for ac_prog in ginstall scoinst install; do
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2362 if test $ac_prog = install &&
2363 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364 # AIX install. It has an incompatible calling convention.
2366 elif test $ac_prog = install &&
2367 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368 # program-specific install script used by HP pwplus--don't use.
2371 rm -rf conftest.one conftest.two conftest.dir
2372 echo one > conftest.one
2373 echo two > conftest.two
2375 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376 test -s conftest.one && test -s conftest.two &&
2377 test -s conftest.dir/conftest.one &&
2378 test -s conftest.dir/conftest.two
2380 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2393 rm -rf conftest.one conftest.two conftest.dir
2396 if test "${ac_cv_path_install+set}" = set; then
2397 INSTALL=$ac_cv_path_install
2399 # As a last resort, use the slow shell script. Don't cache a
2400 # value for INSTALL within a source directory, because that will
2401 # break other packages using the cache if that directory is
2402 # removed, or if the value is a relative name.
2403 INSTALL=$ac_install_sh
2406 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2421 echo timestamp > conftest.file
2422 # Reject unsafe characters in $srcdir or the absolute working directory
2423 # name. Accept space and tab only in the latter.
2427 *[\\\"\#\$\&\'\`$am_lf]*)
2428 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2429 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2430 { (exit 1); exit 1; }; };;
2433 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2434 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2435 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2436 { (exit 1); exit 1; }; };;
2439 # Do `set' in a subshell so we don't clobber the current shell's
2440 # arguments. Must try -L first in case configure is actually a
2441 # symlink; some systems play weird games with the mod time of symlinks
2442 # (eg FreeBSD returns the mod time of the symlink's containing
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2448 set X `ls -t "$srcdir/configure" conftest.file`
2451 if test "$*" != "X $srcdir/configure conftest.file" \
2452 && test "$*" != "X conftest.file $srcdir/configure"; then
2454 # If neither matched, then we have a broken ls. This can happen
2455 # if, for instance, CONFIG_SHELL is bash and it inherits a
2456 # broken ls alias from the environment. This has actually
2457 # happened. Such a system could not be considered "sane".
2458 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2459 alias in your environment" >&5
2460 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2461 alias in your environment" >&2;}
2462 { (exit 1); exit 1; }; }
2465 test "$2" = conftest.file
2471 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2472 Check your system clock" >&5
2473 $as_echo "$as_me: error: newly created file is older than distributed files!
2474 Check your system clock" >&2;}
2475 { (exit 1); exit 1; }; }
2477 { $as_echo "$as_me:$LINENO: result: yes" >&5
2478 $as_echo "yes" >&6; }
2479 test "$program_prefix" != NONE &&
2480 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2481 # Use a double $ so make ignores it.
2482 test "$program_suffix" != NONE &&
2483 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2484 # Double any \ or $.
2485 # By default was `s,x,x', remove it if useless.
2486 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2487 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2489 # expand $ac_aux_dir to an absolute path
2490 am_aux_dir=`cd $ac_aux_dir && pwd`
2492 if test x"${MISSING+set}" != xset; then
2495 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2497 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2500 # Use eval to expand $SHELL
2501 if eval "$MISSING --run true"; then
2502 am_missing_run="$MISSING --run "
2505 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2506 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2509 if test x"${install_sh}" != xset; then
2512 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2514 install_sh="\${SHELL} $am_aux_dir/install-sh"
2518 # Installed binaries are usually stripped using `strip' when the user
2519 # run `make install-strip'. However `strip' might not be the right
2520 # tool to use in cross-compilation environments, therefore Automake
2521 # will honor the `STRIP' environment variable to overrule this program.
2522 if test "$cross_compiling" != no; then
2523 if test -n "$ac_tool_prefix"; then
2524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2525 set dummy ${ac_tool_prefix}strip; ac_word=$2
2526 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2527 $as_echo_n "checking for $ac_word... " >&6; }
2528 if test "${ac_cv_prog_STRIP+set}" = set; then
2529 $as_echo_n "(cached) " >&6
2531 if test -n "$STRIP"; then
2532 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2542 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 STRIP=$ac_cv_prog_STRIP
2552 if test -n "$STRIP"; then
2553 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2554 $as_echo "$STRIP" >&6; }
2556 { $as_echo "$as_me:$LINENO: result: no" >&5
2557 $as_echo "no" >&6; }
2562 if test -z "$ac_cv_prog_STRIP"; then
2564 # Extract the first word of "strip", so it can be a program name with args.
2565 set dummy strip; ac_word=$2
2566 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$ac_ct_STRIP"; then
2572 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_ac_ct_STRIP="strip"
2582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2592 if test -n "$ac_ct_STRIP"; then
2593 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2594 $as_echo "$ac_ct_STRIP" >&6; }
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597 $as_echo "no" >&6; }
2600 if test "x$ac_ct_STRIP" = x; then
2603 case $cross_compiling:$ac_tool_warned in
2605 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2607 ac_tool_warned=yes ;;
2612 STRIP="$ac_cv_prog_STRIP"
2616 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2618 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2619 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2620 if test -z "$MKDIR_P"; then
2621 if test "${ac_cv_path_mkdir+set}" = set; then
2622 $as_echo_n "(cached) " >&6
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2628 test -z "$as_dir" && as_dir=.
2629 for ac_prog in mkdir gmkdir; do
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2632 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2633 'mkdir (GNU coreutils) '* | \
2634 'mkdir (coreutils) '* | \
2635 'mkdir (fileutils) '4.1*)
2636 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2646 if test "${ac_cv_path_mkdir+set}" = set; then
2647 MKDIR_P="$ac_cv_path_mkdir -p"
2649 # As a last resort, use the slow shell script. Don't cache a
2650 # value for MKDIR_P within a source directory, because that will
2651 # break other packages using the cache if that directory is
2652 # removed, or if the value is a relative name.
2653 test -d ./--version && rmdir ./--version
2654 MKDIR_P="$ac_install_sh -d"
2657 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2658 $as_echo "$MKDIR_P" >&6; }
2662 [\\/$]* | ?:[\\/]*) ;;
2663 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2666 for ac_prog in gawk mawk nawk awk
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if test "${ac_cv_prog_AWK+set}" = set; then
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$AWK"; then
2697 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2700 { $as_echo "$as_me:$LINENO: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$AWK" && break
2708 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2713 $as_echo_n "(cached) " >&6
2715 cat >conftest.make <<\_ACEOF
2718 @echo '@@@%%%=$(MAKE)=@@@%%%'
2720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2723 eval ac_cv_prog_make_${ac_make}_set=yes;;
2725 eval ac_cv_prog_make_${ac_make}_set=no;;
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730 { $as_echo "$as_me:$LINENO: result: yes" >&5
2731 $as_echo "yes" >&6; }
2734 { $as_echo "$as_me:$LINENO: result: no" >&5
2735 $as_echo "no" >&6; }
2736 SET_MAKE="MAKE=${MAKE-make}"
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2746 rmdir .tst 2>/dev/null
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750 # is not polluted with repeated "-I."
2751 am__isrc=' -I$(srcdir)'
2752 # test to see if srcdir already configured
2753 if test -f $srcdir/config.status; then
2754 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2755 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2756 { (exit 1); exit 1; }; }
2760 # test whether we have cygpath
2761 if test -z "$CYGPATH_W"; then
2762 if (cygpath --version) >/dev/null 2>/dev/null; then
2763 CYGPATH_W='cygpath -w'
2770 # Define the identity of the package.
2771 PACKAGE='util-linux-ng'
2775 cat >>confdefs.h <<_ACEOF
2776 #define PACKAGE "$PACKAGE"
2780 cat >>confdefs.h <<_ACEOF
2781 #define VERSION "$VERSION"
2784 # Some tools Automake needs.
2786 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2789 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2792 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2795 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2798 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2800 # We need awk for the "check" target. The system "awk" is bad on
2802 # Always define AMTAR for backward compatibility.
2804 AMTAR=${AMTAR-"${am_missing_run}tar"}
2806 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2817 PACKAGE_VERSION_MAJOR=$(echo $PACKAGE_VERSION | awk -F. '{print $1}')
2818 PACKAGE_VERSION_MINOR=$(echo $PACKAGE_VERSION | awk -F. '{print $2}' \
2819 | awk -F- '{print $1}')
2820 PACKAGE_VERSION_RELEASE=0
2822 LIBBLKID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
2823 LIBBLKID_DATE="10-Feb-2009"
2827 LIBBLKID_VERSION_INFO=`expr $LIBBLKID_LT_MAJOR + $LIBBLKID_LT_MINOR`:$LIBBLKID_LT_MICRO:$LIBBLKID_LT_MINOR
2829 LIBUUID_VERSION="$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_RELEASE"
2833 LIBUUID_VERSION_INFO=`expr $LIBUUID_LT_MAJOR + $LIBUUID_LT_MINOR`:$LIBUUID_LT_MICRO:$LIBUUID_LT_MINOR
2835 # Check whether exec_prefix=/usr:
2836 case $exec_prefix:$prefix in
2837 NONE:NONE | NONE:/usr | /usr:*)
2838 { $as_echo "$as_me:$LINENO: Default --exec-prefix detected." >&5
2839 $as_echo "$as_me: Default --exec-prefix detected." >&6;}
2841 '${exec_prefix}/bin') bindir=/bin
2842 { $as_echo "$as_me:$LINENO: --bindir defaults to /bin" >&5
2843 $as_echo "$as_me: --bindir defaults to /bin" >&6;} ;;
2846 '${exec_prefix}/sbin') sbindir=/sbin
2847 { $as_echo "$as_me:$LINENO: --sbindir defaults to /sbin" >&5
2848 $as_echo "$as_me: --sbindir defaults to /sbin" >&6;} ;;
2851 '${exec_prefix}/lib') libdir=/lib
2852 { $as_echo "$as_me:$LINENO: --libdir defaults to /lib" >&5
2853 $as_echo "$as_me: --libdir defaults to /lib" >&6;} ;;
2857 libdirname=`basename "$libdir"`
2860 # The original default values of {bin,sbin,lib}dir
2861 usrbin_execdir='${exec_prefix}/bin'
2864 usrsbin_execdir='${exec_prefix}/sbin'
2867 usrlib_execdir='${exec_prefix}/'$libdirname
2871 DEPDIR="${am__leading_dot}deps"
2873 ac_config_commands="$ac_config_commands depfiles"
2876 am_make=${MAKE-make}
2877 cat > confinc << 'END'
2879 @echo this is the am__doit target
2882 # If we don't find an include directive, just comment out the code.
2883 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2884 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2888 # First try GNU make style include.
2889 echo "include confinc" > confmf
2890 # Ignore all kinds of additional output from `make'.
2891 case `$am_make -s -f confmf 2> /dev/null` in #(
2892 *the\ am__doit\ target*)
2898 # Now try BSD make style include.
2899 if test "$am__include" = "#"; then
2900 echo '.include "confinc"' > confmf
2901 case `$am_make -s -f confmf 2> /dev/null` in #(
2902 *the\ am__doit\ target*)
2903 am__include=.include
2911 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2912 $as_echo "$_am_result" >&6; }
2913 rm -f confinc confmf
2915 # Check whether --enable-dependency-tracking was given.
2916 if test "${enable_dependency_tracking+set}" = set; then
2917 enableval=$enable_dependency_tracking;
2920 if test "x$enable_dependency_tracking" != xno; then
2921 am_depcomp="$ac_aux_dir/depcomp"
2924 if test "x$enable_dependency_tracking" != xno; then
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 if test -n "$ac_tool_prefix"; then
2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2940 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 $as_echo_n "checking for $ac_word... " >&6; }
2943 if test "${ac_cv_prog_CC+set}" = set; then
2944 $as_echo_n "(cached) " >&6
2946 if test -n "$CC"; then
2947 ac_cv_prog_CC="$CC" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CC"; then
2968 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2969 $as_echo "$CC" >&6; }
2971 { $as_echo "$as_me:$LINENO: result: no" >&5
2972 $as_echo "no" >&6; }
2977 if test -z "$ac_cv_prog_CC"; then
2979 # Extract the first word of "gcc", so it can be a program name with args.
2980 set dummy gcc; ac_word=$2
2981 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 $as_echo_n "checking for $ac_word... " >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 $as_echo_n "(cached) " >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="gcc"
2997 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 $as_echo "$ac_ct_CC" >&6; }
3011 { $as_echo "$as_me:$LINENO: result: no" >&5
3012 $as_echo "no" >&6; }
3015 if test "x$ac_ct_CC" = x; then
3018 case $cross_compiling:$ac_tool_warned in
3020 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3022 ac_tool_warned=yes ;;
3030 if test -z "$CC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3033 set dummy ${ac_tool_prefix}cc; ac_word=$2
3034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_CC="${ac_tool_prefix}cc"
3050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:$LINENO: result: no" >&5
3065 $as_echo "no" >&6; }
3071 if test -z "$CC"; then
3072 # Extract the first word of "cc", so it can be a program name with args.
3073 set dummy cc; ac_word=$2
3074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3091 ac_prog_rejected=yes
3095 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3102 if test $ac_prog_rejected = yes; then
3103 # We found a bogon in the path, so make sure we never use it.
3104 set dummy $ac_cv_prog_CC
3106 if test $# != 0; then
3107 # We chose a different compiler from the bogus one.
3108 # However, it has the same basename, so the bogon will be chosen
3109 # first if we set CC to just the basename; use the full file name.
3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:$LINENO: result: no" >&5
3122 $as_echo "no" >&6; }
3127 if test -z "$CC"; then
3128 if test -n "$ac_tool_prefix"; then
3129 for ac_prog in cl.exe
3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3132 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3133 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if test "${ac_cv_prog_CC+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 if test -n "$CC"; then
3139 ac_cv_prog_CC="$CC" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3149 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 if test -n "$CC"; then
3160 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3161 $as_echo "$CC" >&6; }
3163 { $as_echo "$as_me:$LINENO: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$CC" && break
3171 if test -z "$CC"; then
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_prog", so it can be a program name with args.
3176 set dummy $ac_prog; ac_word=$2
3177 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$ac_ct_CC"; then
3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3192 ac_cv_prog_ac_ct_CC="$ac_prog"
3193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3203 if test -n "$ac_ct_CC"; then
3204 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3205 $as_echo "$ac_ct_CC" >&6; }
3207 { $as_echo "$as_me:$LINENO: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$ac_ct_CC" && break
3215 if test "x$ac_ct_CC" = x; then
3218 case $cross_compiling:$ac_tool_warned in
3220 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3231 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3234 See \`config.log' for more details." >&5
3235 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }; }
3239 # Provide some information about the compiler.
3240 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3243 { (ac_try="$ac_compiler --version >&5"
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3249 $as_echo "$ac_try_echo") >&5
3250 (eval "$ac_compiler --version >&5") 2>&5
3252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }
3254 { (ac_try="$ac_compiler -v >&5"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260 $as_echo "$ac_try_echo") >&5
3261 (eval "$ac_compiler -v >&5") 2>&5
3263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); }
3265 { (ac_try="$ac_compiler -V >&5"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3271 $as_echo "$ac_try_echo") >&5
3272 (eval "$ac_compiler -V >&5") 2>&5
3274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3292 ac_clean_files_save=$ac_clean_files
3293 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3294 # Try to create an executable without -o first, disregard a.out.
3295 # It will help us diagnose broken compilers, and finding out an intuition
3297 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301 # The possible output files:
3302 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3305 for ac_file in $ac_files
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3309 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314 if { (ac_try="$ac_link_default"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link_default") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3326 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3327 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3328 # so that the user can short-circuit this test for compilers unknown to
3330 for ac_file in $ac_files ''
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3337 # We found the default executable, but exeext='' is most
3341 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 # We set ac_cv_exeext here because the later test for it is not
3346 # safe: cross compilers may not add the suffix if given an `-o'
3347 # argument, so we may need to know it at that point already.
3348 # Even if this section looks crufty: it has the advantage of
3355 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3362 $as_echo "$ac_file" >&6; }
3363 if test -z "$ac_file"; then
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3370 See \`config.log' for more details." >&5
3371 $as_echo "$as_me: error: C compiler cannot create executables
3372 See \`config.log' for more details." >&2;}
3373 { (exit 77); exit 77; }; }; }
3376 ac_exeext=$ac_cv_exeext
3378 # Check that the compiler produces executables we can run. If not, either
3379 # the compiler is broken, or we cross compile.
3380 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3381 $as_echo_n "checking whether the C compiler works... " >&6; }
3382 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385 if { ac_try='./$ac_file'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3391 $as_echo "$ac_try_echo") >&5
3392 (eval "$ac_try") 2>&5
3394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); }; }; then
3398 if test "$cross_compiling" = maybe; then
3401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." >&5
3406 $as_echo "$as_me: error: cannot run C compiled programs.
3407 If you meant to cross compile, use \`--host'.
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }; }
3413 { $as_echo "$as_me:$LINENO: result: yes" >&5
3414 $as_echo "yes" >&6; }
3416 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3417 ac_clean_files=$ac_clean_files_save
3418 # Check that the compiler produces executables we can run. If not, either
3419 # the compiler is broken, or we cross compile.
3420 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3421 $as_echo_n "checking whether we are cross compiling... " >&6; }
3422 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3426 $as_echo_n "checking for suffix of executables... " >&6; }
3427 if { (ac_try="$ac_link"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3433 $as_echo "$ac_try_echo") >&5
3434 (eval "$ac_link") 2>&5
3436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; then
3438 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3439 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3440 # work properly (i.e., refer to `conftest.exe'), while it won't with
3442 for ac_file in conftest.exe conftest conftest.*; do
3443 test -f "$ac_file" || continue
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3446 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3452 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3455 See \`config.log' for more details." >&5
3456 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3457 See \`config.log' for more details." >&2;}
3458 { (exit 1); exit 1; }; }; }
3461 rm -f conftest$ac_cv_exeext
3462 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3463 $as_echo "$ac_cv_exeext" >&6; }
3465 rm -f conftest.$ac_ext
3466 EXEEXT=$ac_cv_exeext
3468 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if test "${ac_cv_objext+set}" = set; then
3471 $as_echo_n "(cached) " >&6
3473 cat >conftest.$ac_ext <<_ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3488 rm -f conftest.o conftest.obj
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3495 $as_echo "$ac_try_echo") >&5
3496 (eval "$ac_compile") 2>&5
3498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499 (exit $ac_status); }; then
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 $as_echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3515 See \`config.log' for more details." >&5
3516 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }; }
3521 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3523 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3524 $as_echo "$ac_cv_objext" >&6; }
3525 OBJEXT=$ac_cv_objext
3527 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3528 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3530 $as_echo_n "(cached) " >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3550 rm -f conftest.$ac_objext
3551 if { (ac_try="$ac_compile"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3557 $as_echo "$ac_try_echo") >&5
3558 (eval "$ac_compile") 2>conftest.er1
3560 grep -v '^ *+' conftest.er1 >conftest.err
3562 cat conftest.err >&5
3563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564 (exit $ac_status); } && {
3565 test -z "$ac_c_werror_flag" ||
3566 test ! -s conftest.err
3567 } && test -s conftest.$ac_objext; then
3570 $as_echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3580 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then
3592 $as_echo_n "(cached) " >&6
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3598 cat >conftest.$ac_ext <<_ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* 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
3637 cat >conftest.$ac_ext <<_ACEOF
3640 cat confdefs.h >>conftest.$ac_ext
3641 cat >>conftest.$ac_ext <<_ACEOF
3642 /* end confdefs.h. */
3652 rm -f conftest.$ac_objext
3653 if { (ac_try="$ac_compile"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 $as_echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3675 ac_c_werror_flag=$ac_save_c_werror_flag
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3699 $as_echo "$ac_try_echo") >&5
3700 (eval "$ac_compile") 2>conftest.er1
3702 grep -v '^ *+' conftest.er1 >conftest.err
3704 cat conftest.err >&5
3705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } && {
3707 test -z "$ac_c_werror_flag" ||
3708 test ! -s conftest.err
3709 } && test -s conftest.$ac_objext; then
3712 $as_echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 ac_c_werror_flag=$ac_save_c_werror_flag
3727 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3728 $as_echo "$ac_cv_prog_cc_g" >&6; }
3729 if test "$ac_test_CFLAGS" = set; then
3730 CFLAGS=$ac_save_CFLAGS
3731 elif test $ac_cv_prog_cc_g = yes; then
3732 if test "$GCC" = yes; then
3738 if test "$GCC" = yes; then
3744 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3745 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3746 if test "${ac_cv_prog_cc_c89+set}" = set; then
3747 $as_echo_n "(cached) " >&6
3749 ac_cv_prog_cc_c89=no
3751 cat >conftest.$ac_ext <<_ACEOF
3754 cat confdefs.h >>conftest.$ac_ext
3755 cat >>conftest.$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3759 #include <sys/types.h>
3760 #include <sys/stat.h>
3761 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3762 struct buf { int x; };
3763 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3764 static char *e (p, i)
3770 static char *f (char * (*g) (char **, int), char **p, ...)
3775 s = g (p, va_arg (v,int));
3780 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3781 function prototypes and stuff, but not '\xHH' hex character constants.
3782 These don't provoke an error unfortunately, instead are silently treated
3783 as 'x'. The following induces an error, until -std is added to get
3784 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3785 array size at least. It's necessary to write '\x00'==0 to get something
3786 that's true only with -std. */
3787 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3789 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3790 inside strings and character constants. */
3792 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3794 int test (int i, double x);
3795 struct s1 {int (*f) (int a);};
3796 struct s2 {int (*f) (double a);};
3797 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3803 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3808 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3809 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3811 CC="$ac_save_CC $ac_arg"
3812 rm -f conftest.$ac_objext
3813 if { (ac_try="$ac_compile"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3819 $as_echo "$ac_try_echo") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_prog_cc_c89=$ac_arg
3832 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext
3839 test "x$ac_cv_prog_cc_c89" != "xno" && break
3841 rm -f conftest.$ac_ext
3846 case "x$ac_cv_prog_cc_c89" in
3848 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3849 $as_echo "none needed" >&6; } ;;
3851 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3852 $as_echo "unsupported" >&6; } ;;
3854 CC="$CC $ac_cv_prog_cc_c89"
3855 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3856 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3861 ac_cpp='$CPP $CPPFLAGS'
3862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 depcc="$CC" am_compiler_list=
3868 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3869 $as_echo_n "checking dependency style of $depcc... " >&6; }
3870 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3871 $as_echo_n "(cached) " >&6
3873 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3874 # We make a subdir and do the tests there. Otherwise we can end up
3875 # making bogus files that we don't know about and never remove. For
3876 # instance it was reported that on HP-UX the gcc test will end up
3877 # making a dummy file named `D' -- because `-MD' means `put the output
3880 # Copy depcomp to subdir because otherwise we won't find it if we're
3881 # using a relative directory.
3882 cp "$am_depcomp" conftest.dir
3884 # We will build objects and dependencies in a subdirectory because
3885 # it helps to detect inapplicable dependency modes. For instance
3886 # both Tru64's cc and ICC support -MD to output dependencies as a
3887 # side effect of compilation, but ICC will put the dependencies in
3888 # the current directory while Tru64 will put them in the object
3892 am_cv_CC_dependencies_compiler_type=none
3893 if test "$am_compiler_list" = ""; then
3894 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3897 case " $depcc " in #(
3898 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3901 for depmode in $am_compiler_list; do
3902 # Setup a source with many dependencies, because some compilers
3903 # like to wrap large dependency lists on column 80 (with \), and
3904 # we should not choose a depcomp mode which is confused by this.
3906 # We need to recreate these files for each test, as the compiler may
3907 # overwrite some of them when testing with obscure command lines.
3908 # This happens at least with the AIX C compiler.
3910 for i in 1 2 3 4 5 6; do
3911 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3913 # Solaris 8's {/usr,}/bin/sh.
3914 touch sub/conftst$i.h
3916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3918 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3919 # mode. It turns out that the SunPro C++ compiler does not properly
3920 # handle `-M -o', and we need to detect this. Also, some Intel
3921 # versions had trouble with output in subdirs
3922 am__obj=sub/conftest.${OBJEXT-o}
3923 am__minus_obj="-o $am__obj"
3926 # This depmode causes a compiler race in universal mode.
3927 test "$am__universal" = false || continue
3930 # after this tag, mechanisms are not by side-effect, so they'll
3931 # only be used when explicitly requested
3932 if test "x$enable_dependency_tracking" = xyes; then
3938 msvisualcpp | msvcmsys)
3939 # This compiler won't grok `-c -o', but also, the minuso test has
3940 # not run yet. These depmodes are late enough in the game, and
3941 # so weak that their functioning should not be impacted.
3942 am__obj=conftest.${OBJEXT-o}
3947 if depmode=$depmode \
3948 source=sub/conftest.c object=$am__obj \
3949 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3950 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3951 >/dev/null 2>conftest.err &&
3952 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3953 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3954 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3955 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3956 # icc doesn't choke on unknown options, it will just issue warnings
3957 # or remarks (even with -Werror). So we grep stderr for any message
3958 # that says an option was ignored or not supported.
3959 # When given -MP, icc 7.0 and 7.1 complain thusly:
3960 # icc: Command line warning: ignoring option '-M'; no argument required
3961 # The diagnosis changed in icc 8.0:
3962 # icc: Command line remark: option '-MP' not supported
3963 if (grep 'ignoring option' conftest.err ||
3964 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3965 am_cv_CC_dependencies_compiler_type=$depmode
3974 am_cv_CC_dependencies_compiler_type=none
3978 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3979 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3980 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3983 test "x$enable_dependency_tracking" != xno \
3984 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3986 am__fastdepCC_FALSE='#'
3988 am__fastdepCC_TRUE='#'
3989 am__fastdepCC_FALSE=
3993 case $ac_cv_prog_cc_stdc in
3994 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3995 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3996 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3997 if test "${ac_cv_prog_cc_c99+set}" = set; then
3998 $as_echo_n "(cached) " >&6
4000 ac_cv_prog_cc_c99=no
4002 cat >conftest.$ac_ext <<_ACEOF
4005 cat confdefs.h >>conftest.$ac_ext
4006 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */
4009 #include <stdbool.h>
4014 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4015 #define debug(...) fprintf (stderr, __VA_ARGS__)
4016 #define showlist(...) puts (#__VA_ARGS__)
4017 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4019 test_varargs_macros (void)
4024 debug ("X = %d\n", x);
4025 showlist (The first, second, and third items.);
4026 report (x>y, "x is %d but y is %d", x, y);
4029 // Check long long types.
4030 #define BIG64 18446744073709551615ull
4031 #define BIG32 4294967295ul
4032 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4034 your preprocessor is broken;
4038 your preprocessor is broken;
4040 static long long int bignum = -9223372036854775807LL;
4041 static unsigned long long int ubignum = BIG64;
4043 struct incomplete_array
4051 const wchar_t *name;
4055 typedef const char *ccp;
4058 test_restrict (ccp restrict text)
4060 // See if C++-style comments work.
4061 // Iterate through items via the restricted pointer.
4062 // Also check for declarations in for loops.
4063 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4068 // Check varargs and va_copy.
4070 test_varargs (const char *format, ...)
4073 va_start (args, format);
4075 va_copy (args_copy, args);
4086 str = va_arg (args_copy, const char *);
4089 number = va_arg (args_copy, int);
4092 fnumber = va_arg (args_copy, double);
4107 _Bool success = false;
4110 if (test_restrict ("String literal") == 0)
4112 char *restrict newvar = "Another string";
4115 test_varargs ("s, d' f .", "string", 65, 34.234);
4116 test_varargs_macros ();
4118 // Check flexible array members.
4119 struct incomplete_array *ia =
4120 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4122 for (int i = 0; i < ia->datasize; ++i)
4123 ia->data[i] = i * 1.234;
4125 // Check named initializers.
4126 struct named_init ni = {
4128 .name = L"Test wide string",
4129 .average = 543.34343,
4134 int dynamic_array[ni.number];
4135 dynamic_array[ni.number - 1] = 543;
4137 // work around unused variable warnings
4138 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4139 || dynamic_array[ni.number - 1] != 543);
4145 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4147 CC="$ac_save_CC $ac_arg"
4148 rm -f conftest.$ac_objext
4149 if { (ac_try="$ac_compile"
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4155 $as_echo "$ac_try_echo") >&5
4156 (eval "$ac_compile") 2>conftest.er1
4158 grep -v '^ *+' conftest.er1 >conftest.err
4160 cat conftest.err >&5
4161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && {
4163 test -z "$ac_c_werror_flag" ||
4164 test ! -s conftest.err
4165 } && test -s conftest.$ac_objext; then
4166 ac_cv_prog_cc_c99=$ac_arg
4168 $as_echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4174 rm -f core conftest.err conftest.$ac_objext
4175 test "x$ac_cv_prog_cc_c99" != "xno" && break
4177 rm -f conftest.$ac_ext
4182 case "x$ac_cv_prog_cc_c99" in
4184 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4185 $as_echo "none needed" >&6; } ;;
4187 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4188 $as_echo "unsupported" >&6; } ;;
4190 CC="$CC $ac_cv_prog_cc_c99"
4191 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4192 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4194 if test "x$ac_cv_prog_cc_c99" != xno; then
4195 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4197 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4198 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4199 if test "${ac_cv_prog_cc_c89+set}" = set; then
4200 $as_echo_n "(cached) " >&6
4202 ac_cv_prog_cc_c89=no
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4212 #include <sys/types.h>
4213 #include <sys/stat.h>
4214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4215 struct buf { int x; };
4216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4217 static char *e (p, i)
4223 static char *f (char * (*g) (char **, int), char **p, ...)
4228 s = g (p, va_arg (v,int));
4233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4234 function prototypes and stuff, but not '\xHH' hex character constants.
4235 These don't provoke an error unfortunately, instead are silently treated
4236 as 'x'. The following induces an error, until -std is added to get
4237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4238 array size at least. It's necessary to write '\x00'==0 to get something
4239 that's true only with -std. */
4240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4243 inside strings and character constants. */
4245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4247 int test (int i, double x);
4248 struct s1 {int (*f) (int a);};
4249 struct s2 {int (*f) (double a);};
4250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4256 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4262 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4264 CC="$ac_save_CC $ac_arg"
4265 rm -f conftest.$ac_objext
4266 if { (ac_try="$ac_compile"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273 (eval "$ac_compile") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } && {
4280 test -z "$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4282 } && test -s conftest.$ac_objext; then
4283 ac_cv_prog_cc_c89=$ac_arg
4285 $as_echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4291 rm -f core conftest.err conftest.$ac_objext
4292 test "x$ac_cv_prog_cc_c89" != "xno" && break
4294 rm -f conftest.$ac_ext
4299 case "x$ac_cv_prog_cc_c89" in
4301 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4302 $as_echo "none needed" >&6; } ;;
4304 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4305 $as_echo "unsupported" >&6; } ;;
4307 CC="$CC $ac_cv_prog_cc_c89"
4308 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4311 if test "x$ac_cv_prog_cc_c89" != xno; then
4312 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4314 ac_cv_prog_cc_stdc=no
4322 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4323 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4325 $as_echo_n "(cached) " >&6
4328 case $ac_cv_prog_cc_stdc in
4329 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4330 $as_echo "unsupported" >&6; } ;;
4331 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4332 $as_echo "none needed" >&6; } ;;
4333 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4334 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4345 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4346 # On Suns, sometimes $CPP names a directory.
4347 if test -n "$CPP" && test -d "$CPP"; then
4350 if test -z "$CPP"; then
4351 if test "${ac_cv_prog_CPP+set}" = set; then
4352 $as_echo_n "(cached) " >&6
4354 # Double quotes because CPP needs to be expanded
4355 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4358 for ac_c_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat >conftest.$ac_ext <<_ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h. */
4373 # include <limits.h>
4375 # include <assert.h>
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388 grep -v '^ *+' conftest.er1 >conftest.err
4390 cat conftest.err >&5
4391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } >/dev/null && {
4393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4398 $as_echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4401 # Broken: fails on valid input.
4405 rm -f conftest.err conftest.$ac_ext
4407 # OK, works on sane cases. Now check whether nonexistent headers
4408 # can be detected and how.
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 #include <ac_nonexistent.h>
4417 if { (ac_try="$ac_cpp conftest.$ac_ext"
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } >/dev/null && {
4431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4434 # Broken: success on invalid input.
4437 $as_echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 # Passes both tests.
4445 rm -f conftest.err conftest.$ac_ext
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then
4462 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4463 $as_echo "$CPP" >&6; }
4465 for ac_c_preproc_warn_flag in '' yes
4467 # Use a header file that comes with gcc, so configuring glibc
4468 # with a fresh cross-compiler works.
4469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4470 # <limits.h> exists even on freestanding compilers.
4471 # On the NeXT, cc -E runs the code through the compiler's parser,
4472 # not just through cpp. "Syntax error" is here to catch this case.
4473 cat >conftest.$ac_ext <<_ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */
4480 # include <limits.h>
4482 # include <assert.h>
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4492 $as_echo "$ac_try_echo") >&5
4493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } >/dev/null && {
4500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4501 test ! -s conftest.err
4505 $as_echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4508 # Broken: fails on valid input.
4512 rm -f conftest.err conftest.$ac_ext
4514 # OK, works on sane cases. Now check whether nonexistent headers
4515 # can be detected and how.
4516 cat >conftest.$ac_ext <<_ACEOF
4519 cat confdefs.h >>conftest.$ac_ext
4520 cat >>conftest.$ac_ext <<_ACEOF
4521 /* end confdefs.h. */
4522 #include <ac_nonexistent.h>
4524 if { (ac_try="$ac_cpp conftest.$ac_ext"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4530 $as_echo "$ac_try_echo") >&5
4531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } >/dev/null && {
4538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4541 # Broken: success on invalid input.
4544 $as_echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 # Passes both tests.
4552 rm -f conftest.err conftest.$ac_ext
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then
4560 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4563 See \`config.log' for more details." >&5
4564 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&2;}
4566 { (exit 1); exit 1; }; }; }
4570 ac_cpp='$CPP $CPPFLAGS'
4571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4577 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4578 if test "${ac_cv_path_GREP+set}" = set; then
4579 $as_echo_n "(cached) " >&6
4581 if test -z "$GREP"; then
4582 ac_path_GREP_found=false
4583 # Loop through the user's path and test for each of PROGNAME-LIST
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 test -z "$as_dir" && as_dir=.
4589 for ac_prog in grep ggrep; do
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4592 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4593 # Check for GNU ac_path_GREP and select it if it is found.
4594 # Check for GNU $ac_path_GREP
4595 case `"$ac_path_GREP" --version 2>&1` in
4597 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4600 $as_echo_n 0123456789 >"conftest.in"
4603 cat "conftest.in" "conftest.in" >"conftest.tmp"
4604 mv "conftest.tmp" "conftest.in"
4605 cp "conftest.in" "conftest.nl"
4606 $as_echo 'GREP' >> "conftest.nl"
4607 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4609 ac_count=`expr $ac_count + 1`
4610 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4611 # Best one so far, save it but keep looking for a better one
4612 ac_cv_path_GREP="$ac_path_GREP"
4613 ac_path_GREP_max=$ac_count
4615 # 10*(2^10) chars as input seems more than enough
4616 test $ac_count -gt 10 && break
4618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 $ac_path_GREP_found && break 3
4626 if test -z "$ac_cv_path_GREP"; then
4627 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4628 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4629 { (exit 1); exit 1; }; }
4632 ac_cv_path_GREP=$GREP
4636 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4637 $as_echo "$ac_cv_path_GREP" >&6; }
4638 GREP="$ac_cv_path_GREP"
4641 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4642 $as_echo_n "checking for egrep... " >&6; }
4643 if test "${ac_cv_path_EGREP+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4646 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4647 then ac_cv_path_EGREP="$GREP -E"
4649 if test -z "$EGREP"; then
4650 ac_path_EGREP_found=false
4651 # Loop through the user's path and test for each of PROGNAME-LIST
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656 test -z "$as_dir" && as_dir=.
4657 for ac_prog in egrep; do
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4660 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4661 # Check for GNU ac_path_EGREP and select it if it is found.
4662 # Check for GNU $ac_path_EGREP
4663 case `"$ac_path_EGREP" --version 2>&1` in
4665 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4668 $as_echo_n 0123456789 >"conftest.in"
4671 cat "conftest.in" "conftest.in" >"conftest.tmp"
4672 mv "conftest.tmp" "conftest.in"
4673 cp "conftest.in" "conftest.nl"
4674 $as_echo 'EGREP' >> "conftest.nl"
4675 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4676 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4677 ac_count=`expr $ac_count + 1`
4678 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4679 # Best one so far, save it but keep looking for a better one
4680 ac_cv_path_EGREP="$ac_path_EGREP"
4681 ac_path_EGREP_max=$ac_count
4683 # 10*(2^10) chars as input seems more than enough
4684 test $ac_count -gt 10 && break
4686 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 $ac_path_EGREP_found && break 3
4694 if test -z "$ac_cv_path_EGREP"; then
4695 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4696 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4697 { (exit 1); exit 1; }; }
4700 ac_cv_path_EGREP=$EGREP
4705 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4706 $as_echo "$ac_cv_path_EGREP" >&6; }
4707 EGREP="$ac_cv_path_EGREP"
4710 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4711 $as_echo_n "checking for ANSI C header files... " >&6; }
4712 if test "${ac_cv_header_stdc+set}" = set; then
4713 $as_echo_n "(cached) " >&6
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4734 rm -f conftest.$ac_objext
4735 if { (ac_try="$ac_compile"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4741 $as_echo "$ac_try_echo") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && {
4749 test -z "$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 } && test -s conftest.$ac_objext; then
4752 ac_cv_header_stdc=yes
4754 $as_echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4757 ac_cv_header_stdc=no
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 if test $ac_cv_header_stdc = yes; then
4763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764 cat >conftest.$ac_ext <<_ACEOF
4767 cat confdefs.h >>conftest.$ac_ext
4768 cat >>conftest.$ac_ext <<_ACEOF
4769 /* end confdefs.h. */
4773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "memchr" >/dev/null 2>&1; then
4777 ac_cv_header_stdc=no
4783 if test $ac_cv_header_stdc = yes; then
4784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4795 $EGREP "free" >/dev/null 2>&1; then
4798 ac_cv_header_stdc=no
4804 if test $ac_cv_header_stdc = yes; then
4805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4806 if test "$cross_compiling" = yes; then
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4817 #if ((' ' & 0x0FF) == 0x020)
4818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4821 # define ISLOWER(c) \
4822 (('a' <= (c) && (c) <= 'i') \
4823 || ('j' <= (c) && (c) <= 'r') \
4824 || ('s' <= (c) && (c) <= 'z'))
4825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4833 for (i = 0; i < 256; i++)
4834 if (XOR (islower (i), ISLOWER (i))
4835 || toupper (i) != TOUPPER (i))
4840 rm -f conftest$ac_exeext
4841 if { (ac_try="$ac_link"
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847 $as_echo "$ac_try_echo") >&5
4848 (eval "$ac_link") 2>&5
4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4852 { (case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858 (eval "$ac_try") 2>&5
4860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4864 $as_echo "$as_me: program exited with status $ac_status" >&5
4865 $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4869 ac_cv_header_stdc=no
4871 rm -rf conftest.dSYM
4872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4879 $as_echo "$ac_cv_header_stdc" >&6; }
4880 if test $ac_cv_header_stdc = yes; then
4882 cat >>confdefs.h <<\_ACEOF
4883 #define STDC_HEADERS 1
4888 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4898 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4899 inttypes.h stdint.h unistd.h
4901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4903 $as_echo_n "checking for $ac_header... " >&6; }
4904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4905 $as_echo_n "(cached) " >&6
4907 cat >conftest.$ac_ext <<_ACEOF
4910 cat confdefs.h >>conftest.$ac_ext
4911 cat >>conftest.$ac_ext <<_ACEOF
4912 /* end confdefs.h. */
4913 $ac_includes_default
4915 #include <$ac_header>
4917 rm -f conftest.$ac_objext
4918 if { (ac_try="$ac_compile"
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4924 $as_echo "$ac_try_echo") >&5
4925 (eval "$ac_compile") 2>conftest.er1
4927 grep -v '^ *+' conftest.er1 >conftest.err
4929 cat conftest.err >&5
4930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931 (exit $ac_status); } && {
4932 test -z "$ac_c_werror_flag" ||
4933 test ! -s conftest.err
4934 } && test -s conftest.$ac_objext; then
4935 eval "$as_ac_Header=yes"
4937 $as_echo "$as_me: failed program was:" >&5
4938 sed 's/^/| /' conftest.$ac_ext >&5
4940 eval "$as_ac_Header=no"
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4945 ac_res=`eval 'as_val=${'$as_ac_Header'}
4946 $as_echo "$as_val"'`
4947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4948 $as_echo "$ac_res" >&6; }
4949 as_val=`eval 'as_val=${'$as_ac_Header'}
4950 $as_echo "$as_val"'`
4951 if test "x$as_val" = x""yes; then
4952 cat >>confdefs.h <<_ACEOF
4953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4962 if test "${ac_cv_header_minix_config_h+set}" = set; then
4963 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4964 $as_echo_n "checking for minix/config.h... " >&6; }
4965 if test "${ac_cv_header_minix_config_h+set}" = set; then
4966 $as_echo_n "(cached) " >&6
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4969 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4971 # Is the header compilable?
4972 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4973 $as_echo_n "checking minix/config.h usability... " >&6; }
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4980 $ac_includes_default
4981 #include <minix/config.h>
4983 rm -f conftest.$ac_objext
4984 if { (ac_try="$ac_compile"
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990 $as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
5001 ac_header_compiler=yes
5003 $as_echo "$as_me: failed program was:" >&5
5004 sed 's/^/| /' conftest.$ac_ext >&5
5006 ac_header_compiler=no
5009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5010 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5011 $as_echo "$ac_header_compiler" >&6; }
5013 # Is the header present?
5014 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5015 $as_echo_n "checking minix/config.h presence... " >&6; }
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <minix/config.h>
5024 if { (ac_try="$ac_cpp conftest.$ac_ext"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5030 $as_echo "$ac_try_echo") >&5
5031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null && {
5038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5041 ac_header_preproc=yes
5043 $as_echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 ac_header_preproc=no
5049 rm -f conftest.err conftest.$ac_ext
5050 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5051 $as_echo "$ac_header_preproc" >&6; }
5053 # So? What about this header?
5054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5056 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5057 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5058 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5059 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5060 ac_header_preproc=yes
5063 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5064 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5065 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
5066 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
5067 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5068 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5069 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
5070 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
5071 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5072 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5073 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5074 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5076 ## ------------------------------ ##
5077 ## Report this to kzak@redhat.com ##
5078 ## ------------------------------ ##
5080 ) | sed "s/^/$as_me: WARNING: /" >&2
5083 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5084 $as_echo_n "checking for minix/config.h... " >&6; }
5085 if test "${ac_cv_header_minix_config_h+set}" = set; then
5086 $as_echo_n "(cached) " >&6
5088 ac_cv_header_minix_config_h=$ac_header_preproc
5090 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5091 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5094 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5101 if test "$MINIX" = yes; then
5103 cat >>confdefs.h <<\_ACEOF
5104 #define _POSIX_SOURCE 1
5108 cat >>confdefs.h <<\_ACEOF
5109 #define _POSIX_1_SOURCE 2
5113 cat >>confdefs.h <<\_ACEOF
5121 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5122 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5123 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5124 $as_echo_n "(cached) " >&6
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5133 # define __EXTENSIONS__ 1
5134 $ac_includes_default
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5147 *) ac_try_echo=$ac_try;;
5149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5150 $as_echo "$ac_try_echo") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.$ac_objext; then
5161 ac_cv_safe_to_define___extensions__=yes
5163 $as_echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_cv_safe_to_define___extensions__=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5172 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5173 test $ac_cv_safe_to_define___extensions__ = yes &&
5174 cat >>confdefs.h <<\_ACEOF
5175 #define __EXTENSIONS__ 1
5178 cat >>confdefs.h <<\_ACEOF
5179 #define _ALL_SOURCE 1
5182 cat >>confdefs.h <<\_ACEOF
5183 #define _GNU_SOURCE 1
5186 cat >>confdefs.h <<\_ACEOF
5187 #define _POSIX_PTHREAD_SEMANTICS 1
5190 cat >>confdefs.h <<\_ACEOF
5191 #define _TANDEM_SOURCE 1
5195 # Make sure we can run config.sub.
5196 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5197 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5198 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5199 { (exit 1); exit 1; }; }
5201 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5202 $as_echo_n "checking build system type... " >&6; }
5203 if test "${ac_cv_build+set}" = set; then
5204 $as_echo_n "(cached) " >&6
5206 ac_build_alias=$build_alias
5207 test "x$ac_build_alias" = x &&
5208 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5209 test "x$ac_build_alias" = x &&
5210 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5211 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5212 { (exit 1); exit 1; }; }
5213 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5214 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5215 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5216 { (exit 1); exit 1; }; }
5219 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5220 $as_echo "$ac_cv_build" >&6; }
5221 case $ac_cv_build in
5223 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5224 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5225 { (exit 1); exit 1; }; };;
5228 ac_save_IFS=$IFS; IFS='-'
5234 # Remember, the first character of IFS is used to create $*,
5235 # except with old shells:
5238 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5241 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5242 $as_echo_n "checking host system type... " >&6; }
5243 if test "${ac_cv_host+set}" = set; then
5244 $as_echo_n "(cached) " >&6
5246 if test "x$host_alias" = x; then
5247 ac_cv_host=$ac_cv_build
5249 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5250 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5251 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5252 { (exit 1); exit 1; }; }
5256 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5257 $as_echo "$ac_cv_host" >&6; }
5260 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5261 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5262 { (exit 1); exit 1; }; };;
5265 ac_save_IFS=$IFS; IFS='-'
5271 # Remember, the first character of IFS is used to create $*,
5272 # except with old shells:
5275 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5279 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5280 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5281 if test "${ac_cv_c_bigendian+set}" = set; then
5282 $as_echo_n "(cached) " >&6
5284 ac_cv_c_bigendian=unknown
5285 # See if we're dealing with a universal compiler.
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 #ifndef __APPLE_CC__
5293 not a universal capable compiler
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5305 $as_echo "$ac_try_echo") >&5
5306 (eval "$ac_compile") 2>conftest.er1
5308 grep -v '^ *+' conftest.er1 >conftest.err
5310 cat conftest.err >&5
5311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } && {
5313 test -z "$ac_c_werror_flag" ||
5314 test ! -s conftest.err
5315 } && test -s conftest.$ac_objext; then
5317 # Check for potential -arch flags. It is not universal unless
5318 # there are some -arch flags. Note that *ppc* also matches
5319 # ppc64. This check is also rather less than ideal.
5320 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
5321 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
5324 $as_echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 if test $ac_cv_c_bigendian = unknown; then
5332 # See if sys/param.h defines the BYTE_ORDER macro.
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 #include <sys/types.h>
5340 #include <sys/param.h>
5345 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5346 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5362 $as_echo "$ac_try_echo") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 # It does; now see whether it defined to BIG_ENDIAN or not.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 #include <sys/types.h>
5381 #include <sys/param.h>
5386 #if BYTE_ORDER != BIG_ENDIAN
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1 >conftest.err
5406 cat conftest.err >&5
5407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_cv_c_bigendian=yes
5414 $as_echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_cv_c_bigendian=no
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 $as_echo "$as_me: failed program was:" >&5
5423 sed 's/^/| /' conftest.$ac_ext >&5
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 if test $ac_cv_c_bigendian = unknown; then
5431 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5443 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5451 rm -f conftest.$ac_objext
5452 if { (ac_try="$ac_compile"
5454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455 *) ac_try_echo=$ac_try;;
5457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5458 $as_echo "$ac_try_echo") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5461 grep -v '^ *+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_c_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 # It does; now see whether it defined to _BIG_ENDIAN or not.
5470 cat >conftest.$ac_ext <<_ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5496 $as_echo "$ac_try_echo") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && {
5504 test -z "$ac_c_werror_flag" ||
5505 test ! -s conftest.err
5506 } && test -s conftest.$ac_objext; then
5507 ac_cv_c_bigendian=yes
5509 $as_echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_c_bigendian=no
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 $as_echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 if test $ac_cv_c_bigendian = unknown; then
5526 # Compile a test program.
5527 if test "$cross_compiling" = yes; then
5528 # Try to guess by grepping values from an object file.
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5535 short int ascii_mm[] =
5536 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5537 short int ascii_ii[] =
5538 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5539 int use_ascii (int i) {
5540 return ascii_mm[i] + ascii_ii[i];
5542 short int ebcdic_ii[] =
5543 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5544 short int ebcdic_mm[] =
5545 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5546 int use_ebcdic (int i) {
5547 return ebcdic_mm[i] + ebcdic_ii[i];
5554 return use_ascii (foo) == use_ebcdic (foo);
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566 $as_echo "$ac_try_echo") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5578 ac_cv_c_bigendian=yes
5580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5581 if test "$ac_cv_c_bigendian" = unknown; then
5582 ac_cv_c_bigendian=no
5584 # finding both strings is unlikely to happen, but who knows?
5585 ac_cv_c_bigendian=unknown
5589 $as_echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 cat >conftest.$ac_ext <<_ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5608 /* Are we little or big endian? From Harbison&Steele. */
5612 char c[sizeof (long int)];
5615 return u.c[sizeof (long int) - 1] == 1;
5621 rm -f conftest$ac_exeext
5622 if { (ac_try="$ac_link"
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628 $as_echo "$ac_try_echo") >&5
5629 (eval "$ac_link") 2>&5
5631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5633 { (case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5638 $as_echo "$ac_try_echo") >&5
5639 (eval "$ac_try") 2>&5
5641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_cv_c_bigendian=no
5645 $as_echo "$as_me: program exited with status $ac_status" >&5
5646 $as_echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_cv_c_bigendian=yes
5652 rm -rf conftest.dSYM
5653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5659 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5660 $as_echo "$ac_cv_c_bigendian" >&6; }
5661 case $ac_cv_c_bigendian in #(
5663 cat >>confdefs.h <<\_ACEOF
5664 #define WORDS_BIGENDIAN 1
5671 cat >>confdefs.h <<\_ACEOF
5672 #define AC_APPLE_UNIVERSAL_BUILD 1
5677 { { $as_echo "$as_me:$LINENO: error: unknown endianness
5678 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5679 $as_echo "$as_me: error: unknown endianness
5680 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5681 { (exit 1); exit 1; }; } ;;
5687 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5688 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5693 macro_version='2.2.6'
5694 macro_revision='1.3012'
5708 ltmain="$ac_aux_dir/ltmain.sh"
5710 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5711 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5712 if test "${ac_cv_path_SED+set}" = set; then
5713 $as_echo_n "(cached) " >&6
5715 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5716 for ac_i in 1 2 3 4 5 6 7; do
5717 ac_script="$ac_script$as_nl$ac_script"
5719 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5720 $as_unset ac_script || ac_script=
5721 if test -z "$SED"; then
5722 ac_path_SED_found=false
5723 # Loop through the user's path and test for each of PROGNAME-LIST
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_prog in sed gsed; do
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5732 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5733 # Check for GNU ac_path_SED and select it if it is found.
5734 # Check for GNU $ac_path_SED
5735 case `"$ac_path_SED" --version 2>&1` in
5737 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5740 $as_echo_n 0123456789 >"conftest.in"
5743 cat "conftest.in" "conftest.in" >"conftest.tmp"
5744 mv "conftest.tmp" "conftest.in"
5745 cp "conftest.in" "conftest.nl"
5746 $as_echo '' >> "conftest.nl"
5747 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5749 ac_count=`expr $ac_count + 1`
5750 if test $ac_count -gt ${ac_path_SED_max-0}; then
5751 # Best one so far, save it but keep looking for a better one
5752 ac_cv_path_SED="$ac_path_SED"
5753 ac_path_SED_max=$ac_count
5755 # 10*(2^10) chars as input seems more than enough
5756 test $ac_count -gt 10 && break
5758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5761 $ac_path_SED_found && break 3
5766 if test -z "$ac_cv_path_SED"; then
5767 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5768 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5769 { (exit 1); exit 1; }; }
5776 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5777 $as_echo "$ac_cv_path_SED" >&6; }
5778 SED="$ac_cv_path_SED"
5781 test -z "$SED" && SED=sed
5782 Xsed="$SED -e 1s/^X//"
5794 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5795 $as_echo_n "checking for fgrep... " >&6; }
5796 if test "${ac_cv_path_FGREP+set}" = set; then
5797 $as_echo_n "(cached) " >&6
5799 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5800 then ac_cv_path_FGREP="$GREP -F"
5802 if test -z "$FGREP"; then
5803 ac_path_FGREP_found=false
5804 # Loop through the user's path and test for each of PROGNAME-LIST
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809 test -z "$as_dir" && as_dir=.
5810 for ac_prog in fgrep; do
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5813 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5814 # Check for GNU ac_path_FGREP and select it if it is found.
5815 # Check for GNU $ac_path_FGREP
5816 case `"$ac_path_FGREP" --version 2>&1` in
5818 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5821 $as_echo_n 0123456789 >"conftest.in"
5824 cat "conftest.in" "conftest.in" >"conftest.tmp"
5825 mv "conftest.tmp" "conftest.in"
5826 cp "conftest.in" "conftest.nl"
5827 $as_echo 'FGREP' >> "conftest.nl"
5828 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5829 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5830 ac_count=`expr $ac_count + 1`
5831 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5832 # Best one so far, save it but keep looking for a better one
5833 ac_cv_path_FGREP="$ac_path_FGREP"
5834 ac_path_FGREP_max=$ac_count
5836 # 10*(2^10) chars as input seems more than enough
5837 test $ac_count -gt 10 && break
5839 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842 $ac_path_FGREP_found && break 3
5847 if test -z "$ac_cv_path_FGREP"; then
5848 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5849 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5850 { (exit 1); exit 1; }; }
5853 ac_cv_path_FGREP=$FGREP
5858 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5859 $as_echo "$ac_cv_path_FGREP" >&6; }
5860 FGREP="$ac_cv_path_FGREP"
5863 test -z "$GREP" && GREP=grep
5883 # Check whether --with-gnu-ld was given.
5884 if test "${with_gnu_ld+set}" = set; then
5885 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5891 if test "$GCC" = yes; then
5892 # Check if gcc -print-prog-name=ld gives a path.
5893 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5894 $as_echo_n "checking for ld used by $CC... " >&6; }
5897 # gcc leaves a trailing carriage return which upsets mingw
5898 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5900 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5903 # Accept absolute paths.
5905 re_direlt='/[^/][^/]*/\.\./'
5906 # Canonicalize the pathname of ld
5907 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5908 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5909 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5911 test -z "$LD" && LD="$ac_prog"
5914 # If it fails, then pretend we aren't using GCC.
5918 # If it is relative, then search for the first ld in PATH.
5922 elif test "$with_gnu_ld" = yes; then
5923 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5924 $as_echo_n "checking for GNU ld... " >&6; }
5926 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5927 $as_echo_n "checking for non-GNU ld... " >&6; }
5929 if test "${lt_cv_path_LD+set}" = set; then
5930 $as_echo_n "(cached) " >&6
5932 if test -z "$LD"; then
5933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5934 for ac_dir in $PATH; do
5936 test -z "$ac_dir" && ac_dir=.
5937 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5938 lt_cv_path_LD="$ac_dir/$ac_prog"
5939 # Check to see if the program is GNU ld. I'd rather use --version,
5940 # but apparently some variants of GNU ld only accept -v.
5941 # Break only if it was the GNU/non-GNU ld that we prefer.
5942 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5943 *GNU* | *'with BFD'*)
5944 test "$with_gnu_ld" != no && break
5947 test "$with_gnu_ld" != yes && break
5954 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5959 if test -n "$LD"; then
5960 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5961 $as_echo "$LD" >&6; }
5963 { $as_echo "$as_me:$LINENO: result: no" >&5
5964 $as_echo "no" >&6; }
5966 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5967 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5968 { (exit 1); exit 1; }; }
5969 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5971 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5972 $as_echo_n "(cached) " >&6
5974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5975 case `$LD -v 2>&1 </dev/null` in
5976 *GNU* | *'with BFD'*)
5977 lt_cv_prog_gnu_ld=yes
5980 lt_cv_prog_gnu_ld=no
5984 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5986 with_gnu_ld=$lt_cv_prog_gnu_ld
5996 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5997 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5998 if test "${lt_cv_path_NM+set}" = set; then
5999 $as_echo_n "(cached) " >&6
6001 if test -n "$NM"; then
6002 # Let the user override the test.
6005 lt_nm_to_check="${ac_tool_prefix}nm"
6006 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6007 lt_nm_to_check="$lt_nm_to_check nm"
6009 for lt_tmp_nm in $lt_nm_to_check; do
6010 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6011 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6013 test -z "$ac_dir" && ac_dir=.
6014 tmp_nm="$ac_dir/$lt_tmp_nm"
6015 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6016 # Check to see if the nm accepts a BSD-compat flag.
6017 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6018 # nm: unknown option "B" ignored
6019 # Tru64's nm complains that /dev/null is an invalid object file
6020 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6021 */dev/null* | *'Invalid file or object type'*)
6022 lt_cv_path_NM="$tmp_nm -B"
6026 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6028 lt_cv_path_NM="$tmp_nm -p"
6032 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6033 continue # so that we can try to find one that supports BSD flags
6042 : ${lt_cv_path_NM=no}
6045 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6046 $as_echo "$lt_cv_path_NM" >&6; }
6047 if test "$lt_cv_path_NM" != "no"; then
6050 # Didn't find any BSD compatible name lister, look for dumpbin.
6051 if test -n "$ac_tool_prefix"; then
6052 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6059 $as_echo_n "(cached) " >&6
6061 if test -n "$DUMPBIN"; then
6062 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 DUMPBIN=$ac_cv_prog_DUMPBIN
6082 if test -n "$DUMPBIN"; then
6083 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6084 $as_echo "$DUMPBIN" >&6; }
6086 { $as_echo "$as_me:$LINENO: result: no" >&5
6087 $as_echo "no" >&6; }
6091 test -n "$DUMPBIN" && break
6094 if test -z "$DUMPBIN"; then
6095 ac_ct_DUMPBIN=$DUMPBIN
6096 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6098 # Extract the first word of "$ac_prog", so it can be a program name with args.
6099 set dummy $ac_prog; ac_word=$2
6100 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6103 $as_echo_n "(cached) " >&6
6105 if test -n "$ac_ct_DUMPBIN"; then
6106 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6116 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6126 if test -n "$ac_ct_DUMPBIN"; then
6127 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6128 $as_echo "$ac_ct_DUMPBIN" >&6; }
6130 { $as_echo "$as_me:$LINENO: result: no" >&5
6131 $as_echo "no" >&6; }
6135 test -n "$ac_ct_DUMPBIN" && break
6138 if test "x$ac_ct_DUMPBIN" = x; then
6141 case $cross_compiling:$ac_tool_warned in
6143 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6145 ac_tool_warned=yes ;;
6147 DUMPBIN=$ac_ct_DUMPBIN
6152 if test "$DUMPBIN" != ":"; then
6156 test -z "$NM" && NM=nm
6163 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6164 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6165 if test "${lt_cv_nm_interface+set}" = set; then
6166 $as_echo_n "(cached) " >&6
6168 lt_cv_nm_interface="BSD nm"
6169 echo "int some_variable = 0;" > conftest.$ac_ext
6170 (eval echo "\"\$as_me:6170: $ac_compile\"" >&5)
6171 (eval "$ac_compile" 2>conftest.err)
6172 cat conftest.err >&5
6173 (eval echo "\"\$as_me:6173: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6174 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6175 cat conftest.err >&5
6176 (eval echo "\"\$as_me:6176: output\"" >&5)
6177 cat conftest.out >&5
6178 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6179 lt_cv_nm_interface="MS dumpbin"
6183 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6184 $as_echo "$lt_cv_nm_interface" >&6; }
6186 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6187 $as_echo_n "checking whether ln -s works... " >&6; }
6189 if test "$LN_S" = "ln -s"; then
6190 { $as_echo "$as_me:$LINENO: result: yes" >&5
6191 $as_echo "yes" >&6; }
6193 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6194 $as_echo "no, using $LN_S" >&6; }
6197 # find the maximum length of command line arguments
6198 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6199 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6200 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6208 # On DJGPP, this test can blow up pretty badly due to problems in libc
6209 # (any single argument exceeding 2000 bytes causes a buffer overrun
6210 # during glob expansion). Even if it were fixed, the result of this
6211 # check would be larger than it should be.
6212 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6216 # Under GNU Hurd, this test is not required because there is
6217 # no limit to the length of command line arguments.
6218 # Libtool will interpret -1 as no limit whatsoever
6219 lt_cv_sys_max_cmd_len=-1;
6222 cygwin* | mingw* | cegcc*)
6223 # On Win9x/ME, this test blows up -- it succeeds, but takes
6224 # about 5 minutes as the teststring grows exponentially.
6225 # Worse, since 9x/ME are not pre-emptively multitasking,
6226 # you end up with a "frozen" computer, even though with patience
6227 # the test eventually succeeds (with a max line length of 256k).
6228 # Instead, let's just punt: use the minimum linelength reported by
6229 # all of the supported platforms: 8192 (on NT/2K/XP).
6230 lt_cv_sys_max_cmd_len=8192;
6234 # On AmigaOS with pdksh, this test takes hours, literally.
6235 # So we just punt and use a minimum line length of 8192.
6236 lt_cv_sys_max_cmd_len=8192;
6239 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6240 # This has been around since 386BSD, at least. Likely further.
6241 if test -x /sbin/sysctl; then
6242 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6243 elif test -x /usr/sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6246 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6248 # And add a safety zone
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6255 lt_cv_sys_max_cmd_len=196608
6259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261 # nice to cause kernel panics so lets avoid the loop below.
6262 # First set a reasonable default.
6263 lt_cv_sys_max_cmd_len=16384
6265 if test -x /sbin/sysconfig; then
6266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6272 lt_cv_sys_max_cmd_len=102400
6274 sysv5* | sco5v6* | sysv4.2uw2*)
6275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276 if test -n "$kargmax"; then
6277 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6279 lt_cv_sys_max_cmd_len=32768
6283 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6284 if test -n "$lt_cv_sys_max_cmd_len"; then
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6288 # Make teststring a little bigger before we do anything with it.
6289 # a 1K string should be a reasonable start.
6290 for i in 1 2 3 4 5 6 7 8 ; do
6291 teststring=$teststring$teststring
6293 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6294 # If test is not a shell built-in, we'll probably end up computing a
6295 # maximum length that is only half of the actual maximum length, but
6297 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6298 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6299 test $i != 17 # 1/2 MB should be enough
6302 teststring=$teststring$teststring
6304 # Only check the string length outside the loop.
6305 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6307 # Add a significant safety factor because C++ compilers can tack on
6308 # massive amounts of additional arguments before passing them to the
6309 # linker. It appears as though 1/2 is a usable value.
6310 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6317 if test -n $lt_cv_sys_max_cmd_len ; then
6318 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6319 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6321 { $as_echo "$as_me:$LINENO: result: none" >&5
6322 $as_echo "none" >&6; }
6324 max_cmd_len=$lt_cv_sys_max_cmd_len
6335 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6336 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6337 # Try some XSI features
6340 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6342 && eval 'test $(( 1 + 1 )) -eq 2 \
6343 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6345 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6346 $as_echo "$xsi_shell" >&6; }
6349 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6350 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6352 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6354 && lt_shell_append=yes
6355 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6356 $as_echo "$lt_shell_append" >&6; }
6359 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6369 # test EBCDIC or ASCII
6370 case `echo X|tr X '\101'` in
6371 A) # ASCII based system
6372 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6373 lt_SP2NL='tr \040 \012'
6374 lt_NL2SP='tr \015\012 \040\040'
6376 *) # EBCDIC based system
6377 lt_SP2NL='tr \100 \n'
6378 lt_NL2SP='tr \r\n \100\100'
6390 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6391 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6392 if test "${lt_cv_ld_reload_flag+set}" = set; then
6393 $as_echo_n "(cached) " >&6
6395 lt_cv_ld_reload_flag='-r'
6397 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6398 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6399 reload_flag=$lt_cv_ld_reload_flag
6400 case $reload_flag in
6402 *) reload_flag=" $reload_flag" ;;
6404 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6407 if test "$GCC" = yes; then
6408 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6410 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6423 if test -n "$ac_tool_prefix"; then
6424 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6425 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6429 $as_echo_n "(cached) " >&6
6431 if test -n "$OBJDUMP"; then
6432 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438 test -z "$as_dir" && as_dir=.
6439 for ac_exec_ext in '' $ac_executable_extensions; do
6440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 OBJDUMP=$ac_cv_prog_OBJDUMP
6452 if test -n "$OBJDUMP"; then
6453 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6454 $as_echo "$OBJDUMP" >&6; }
6456 { $as_echo "$as_me:$LINENO: result: no" >&5
6457 $as_echo "no" >&6; }
6462 if test -z "$ac_cv_prog_OBJDUMP"; then
6463 ac_ct_OBJDUMP=$OBJDUMP
6464 # Extract the first word of "objdump", so it can be a program name with args.
6465 set dummy objdump; ac_word=$2
6466 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6467 $as_echo_n "checking for $ac_word... " >&6; }
6468 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6469 $as_echo_n "(cached) " >&6
6471 if test -n "$ac_ct_OBJDUMP"; then
6472 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6481 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6492 if test -n "$ac_ct_OBJDUMP"; then
6493 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6494 $as_echo "$ac_ct_OBJDUMP" >&6; }
6496 { $as_echo "$as_me:$LINENO: result: no" >&5
6497 $as_echo "no" >&6; }
6500 if test "x$ac_ct_OBJDUMP" = x; then
6503 case $cross_compiling:$ac_tool_warned in
6505 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6507 ac_tool_warned=yes ;;
6509 OBJDUMP=$ac_ct_OBJDUMP
6512 OBJDUMP="$ac_cv_prog_OBJDUMP"
6515 test -z "$OBJDUMP" && OBJDUMP=objdump
6525 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6526 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6527 if test "${lt_cv_deplibs_check_method+set}" = set; then
6528 $as_echo_n "(cached) " >&6
6530 lt_cv_file_magic_cmd='$MAGIC_CMD'
6531 lt_cv_file_magic_test_file=
6532 lt_cv_deplibs_check_method='unknown'
6533 # Need to set the preceding variable on all platforms that support
6534 # interlibrary dependencies.
6535 # 'none' -- dependencies not supported.
6536 # `unknown' -- same as none, but documents that we really don't know.
6537 # 'pass_all' -- all dependencies passed with no checks.
6538 # 'test_compile' -- check by making test program.
6539 # 'file_magic [[regex]]' -- check by looking for files in library path
6540 # which responds to the $file_magic_cmd with a given extended regex.
6541 # If you have `file' or equivalent on your system and you're not sure
6542 # whether `pass_all' will *always* work, you probably want this one.
6546 lt_cv_deplibs_check_method=pass_all
6550 lt_cv_deplibs_check_method=pass_all
6554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6555 lt_cv_file_magic_cmd='/usr/bin/file -L'
6556 lt_cv_file_magic_test_file=/shlib/libc.so
6560 # func_win32_libid is a shell function defined in ltmain.sh
6561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6562 lt_cv_file_magic_cmd='func_win32_libid'
6566 # Base MSYS/MinGW do not provide the 'file' command needed by
6567 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6568 # unless we find 'file', for example because we are cross-compiling.
6569 if ( file / ) >/dev/null 2>&1; then
6570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6571 lt_cv_file_magic_cmd='func_win32_libid'
6573 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6574 lt_cv_file_magic_cmd='$OBJDUMP -f'
6579 # use the weaker test based on 'objdump'. See mingw*.
6580 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6581 lt_cv_file_magic_cmd='$OBJDUMP -f'
6584 darwin* | rhapsody*)
6585 lt_cv_deplibs_check_method=pass_all
6588 freebsd* | dragonfly*)
6589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6592 # Not sure whether the presence of OpenBSD here was a mistake.
6593 # Let's accept both of them until this is cleared up.
6594 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6595 lt_cv_file_magic_cmd=/usr/bin/file
6596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6600 lt_cv_deplibs_check_method=pass_all
6605 lt_cv_deplibs_check_method=pass_all
6608 hpux10.20* | hpux11*)
6609 lt_cv_file_magic_cmd=/usr/bin/file
6612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6613 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6616 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]'
6617 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6620 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6621 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6627 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6631 irix5* | irix6* | nonstopux*)
6633 *-32|*"-32 ") libmagic=32-bit;;
6634 *-n32|*"-n32 ") libmagic=N32;;
6635 *-64|*"-64 ") libmagic=64-bit;;
6636 *) libmagic=never-match;;
6638 lt_cv_deplibs_check_method=pass_all
6641 # This must be Linux ELF.
6642 linux* | k*bsd*-gnu)
6643 lt_cv_deplibs_check_method=pass_all
6647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6656 lt_cv_file_magic_cmd=/usr/bin/file
6657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6661 lt_cv_deplibs_check_method=pass_all
6665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6672 osf3* | osf4* | osf5*)
6673 lt_cv_deplibs_check_method=pass_all
6677 lt_cv_deplibs_check_method=pass_all
6681 lt_cv_deplibs_check_method=pass_all
6684 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6685 lt_cv_deplibs_check_method=pass_all
6689 case $host_vendor in
6691 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]'
6692 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6695 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_file_magic_cmd='/bin/file'
6699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6702 lt_cv_file_magic_cmd='/bin/file'
6703 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6704 lt_cv_file_magic_test_file=/lib/libc.so
6707 lt_cv_deplibs_check_method=pass_all
6710 lt_cv_deplibs_check_method=pass_all
6716 lt_cv_deplibs_check_method=pass_all
6721 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6722 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6723 file_magic_cmd=$lt_cv_file_magic_cmd
6724 deplibs_check_method=$lt_cv_deplibs_check_method
6725 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}ar; ac_word=$2
6741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_AR+set}" = set; then
6744 $as_echo_n "(cached) " >&6
6746 if test -n "$AR"; then
6747 ac_cv_prog_AR="$AR" # Let the user override the test.
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_AR="${ac_tool_prefix}ar"
6757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 if test -n "$AR"; then
6768 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6769 $as_echo "$AR" >&6; }
6771 { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6777 if test -z "$ac_cv_prog_AR"; then
6779 # Extract the first word of "ar", so it can be a program name with args.
6780 set dummy ar; ac_word=$2
6781 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$ac_ct_AR"; then
6787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_AR="ar"
6797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6807 if test -n "$ac_ct_AR"; then
6808 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6809 $as_echo "$ac_ct_AR" >&6; }
6811 { $as_echo "$as_me:$LINENO: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_ct_AR" = x; then
6818 case $cross_compiling:$ac_tool_warned in
6820 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6830 test -z "$AR" && AR=ar
6831 test -z "$AR_FLAGS" && AR_FLAGS=cru
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}strip; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_STRIP+set}" = set; then
6849 $as_echo_n "(cached) " >&6
6851 if test -n "$STRIP"; then
6852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 STRIP=$ac_cv_prog_STRIP
6872 if test -n "$STRIP"; then
6873 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6874 $as_echo "$STRIP" >&6; }
6876 { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6882 if test -z "$ac_cv_prog_STRIP"; then
6884 # Extract the first word of "strip", so it can be a program name with args.
6885 set dummy strip; ac_word=$2
6886 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6889 $as_echo_n "(cached) " >&6
6891 if test -n "$ac_ct_STRIP"; then
6892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_prog_ac_ct_STRIP="strip"
6902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6912 if test -n "$ac_ct_STRIP"; then
6913 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6914 $as_echo "$ac_ct_STRIP" >&6; }
6916 { $as_echo "$as_me:$LINENO: result: no" >&5
6917 $as_echo "no" >&6; }
6920 if test "x$ac_ct_STRIP" = x; then
6923 case $cross_compiling:$ac_tool_warned in
6925 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6932 STRIP="$ac_cv_prog_STRIP"
6935 test -z "$STRIP" && STRIP=:
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_RANLIB+set}" = set; then
6948 $as_echo_n "(cached) " >&6
6950 if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6973 $as_echo "$RANLIB" >&6; }
6975 { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982 ac_ct_RANLIB=$RANLIB
6983 # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6990 if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013 $as_echo "$ac_ct_RANLIB" >&6; }
7015 { $as_echo "$as_me:$LINENO: result: no" >&5
7016 $as_echo "no" >&6; }
7019 if test "x$ac_ct_RANLIB" = x; then
7022 case $cross_compiling:$ac_tool_warned in
7024 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7028 RANLIB=$ac_ct_RANLIB
7031 RANLIB="$ac_cv_prog_RANLIB"
7034 test -z "$RANLIB" && RANLIB=:
7041 # Determine commands to create old-style static archives.
7042 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7043 old_postinstall_cmds='chmod 644 $oldlib'
7044 old_postuninstall_cmds=
7046 if test -n "$RANLIB"; then
7049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7091 # If no C compiler was specified, use CC.
7094 # If no C compiler flags were specified, use CFLAGS.
7095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7097 # Allow CC to be a program name with arguments.
7101 # Check for command to grab the raw symbol name followed by C symbol from nm.
7102 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7103 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7104 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7105 $as_echo_n "(cached) " >&6
7108 # These are sane defaults that work on at least a few old systems.
7109 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7111 # Character class describing NM global symbol codes.
7112 symcode='[BCDEGRST]'
7114 # Regexp to match symbols that can be accessed directly from C.
7115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7117 # Define system-specific variables.
7122 cygwin* | mingw* | pw32* | cegcc*)
7123 symcode='[ABCDGISTW]'
7126 if test "$host_cpu" = ia64; then
7127 symcode='[ABCDEGRST]'
7131 symcode='[BCDEGRST]'
7134 symcode='[BCDEGQRST]'
7145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7153 # If we're using GNU nm, then use its standard symbol codes.
7154 case `$NM -V 2>&1` in
7155 *GNU* | *'with BFD'*)
7156 symcode='[ABCDGIRSTW]' ;;
7159 # Transform an extracted symbol line into a proper C declaration.
7160 # Some systems (esp. on ia64) link data and code symbols differently,
7161 # so use this general approach.
7162 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7164 # Transform an extracted symbol line into symbol name and symbol address
7165 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7166 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'"
7168 # Handle CRLF in mingw tool chain
7172 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7176 # Try without a prefix underscore, then with it.
7177 for ac_symprfx in "" "_"; do
7179 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7180 symxfrm="\\1 $ac_symprfx\\2 \\2"
7182 # Write the raw and C identifiers.
7183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7184 # Fake it for dumpbin and say T for any non-static function
7185 # and D for any global variable.
7186 # Also find C++ and __fastcall symbols from MSVC++,
7187 # which start with @ or ?.
7188 lt_cv_sys_global_symbol_pipe="$AWK '"\
7189 " {last_section=section; section=\$ 3};"\
7190 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7191 " \$ 0!~/External *\|/{next};"\
7192 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7193 " {if(hide[section]) next};"\
7194 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7195 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7196 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7197 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7198 " ' prfx=^$ac_symprfx"
7200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7203 # Check to see that the pipe works correctly.
7207 cat > conftest.$ac_ext <<_LT_EOF
7212 void nm_test_func(void);
7213 void nm_test_func(void){}
7217 int main(){nm_test_var='a';nm_test_func();return(0);}
7220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>&5
7223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; then
7225 # Now try to grab the symbols.
7227 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7228 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); } && test -s "$nlist"; then
7232 # Try sorting and uniquifying the output.
7233 if sort "$nlist" | uniq > "$nlist"T; then
7234 mv -f "$nlist"T "$nlist"
7239 # Make sure that we snagged all the symbols we need.
7240 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7241 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7242 cat <<_LT_EOF > conftest.$ac_ext
7248 # Now generate the symbol file.
7249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7251 cat <<_LT_EOF >> conftest.$ac_ext
7253 /* The mapping between symbol names and symbols. */
7258 lt__PROGRAM__LTX_preloaded_symbols[] =
7260 { "@PROGRAM@", (void *) 0 },
7262 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263 cat <<\_LT_EOF >> conftest.$ac_ext
7267 /* This works around a problem in FreeBSD linker */
7268 #ifdef FREEBSD_WORKAROUND
7269 static const void *lt_preloaded_setup() {
7270 return lt__PROGRAM__LTX_preloaded_symbols;
7278 # Now try linking the two files.
7279 mv conftest.$ac_objext conftstm.$ac_objext
7280 lt_save_LIBS="$LIBS"
7281 lt_save_CFLAGS="$CFLAGS"
7282 LIBS="conftstm.$ac_objext"
7283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7291 LIBS="$lt_save_LIBS"
7292 CFLAGS="$lt_save_CFLAGS"
7294 echo "cannot find nm_test_func in $nlist" >&5
7297 echo "cannot find nm_test_var in $nlist" >&5
7300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7303 echo "$progname: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7306 rm -rf conftest* conftst*
7308 # Do not use the global_symbol_pipe unless it works.
7309 if test "$pipe_works" = yes; then
7312 lt_cv_sys_global_symbol_pipe=
7318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319 lt_cv_sys_global_symbol_to_cdecl=
7321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322 { $as_echo "$as_me:$LINENO: result: failed" >&5
7323 $as_echo "failed" >&6; }
7325 { $as_echo "$as_me:$LINENO: result: ok" >&5
7326 $as_echo "ok" >&6; }
7350 # Check whether --enable-libtool-lock was given.
7351 if test "${enable_libtool_lock+set}" = set; then
7352 enableval=$enable_libtool_lock;
7355 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7357 # Some flags need to be propagated to the compiler or linker for good
7361 # Find out which ABI we are using.
7362 echo 'int i;' > conftest.$ac_ext
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>&5
7366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; then
7368 case `/usr/bin/file conftest.$ac_objext` in
7380 # Find out which ABI we are using.
7381 echo '#line 7381 "configure"' > conftest.$ac_ext
7382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7383 (eval $ac_compile) 2>&5
7385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; then
7387 if test "$lt_cv_prog_gnu_ld" = yes; then
7388 case `/usr/bin/file conftest.$ac_objext` in
7390 LD="${LD-ld} -melf32bsmip"
7393 LD="${LD-ld} -melf32bmipn32"
7396 LD="${LD-ld} -melf64bmip"
7400 case `/usr/bin/file conftest.$ac_objext` in
7416 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7417 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7418 # Find out which ABI we are using.
7419 echo 'int i;' > conftest.$ac_ext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>&5
7423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); }; then
7425 case `/usr/bin/file conftest.o` in
7428 x86_64-*kfreebsd*-gnu)
7429 LD="${LD-ld} -m elf_i386_fbsd"
7432 LD="${LD-ld} -m elf_i386"
7434 ppc64-*linux*|powerpc64-*linux*)
7435 LD="${LD-ld} -m elf32ppclinux"
7438 LD="${LD-ld} -m elf_s390"
7441 LD="${LD-ld} -m elf32_sparc"
7447 x86_64-*kfreebsd*-gnu)
7448 LD="${LD-ld} -m elf_x86_64_fbsd"
7451 LD="${LD-ld} -m elf_x86_64"
7453 ppc*-*linux*|powerpc*-*linux*)
7454 LD="${LD-ld} -m elf64ppc"
7456 s390*-*linux*|s390*-*tpf*)
7457 LD="${LD-ld} -m elf64_s390"
7460 LD="${LD-ld} -m elf64_sparc"
7470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7471 SAVE_CFLAGS="$CFLAGS"
7472 CFLAGS="$CFLAGS -belf"
7473 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7474 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7475 if test "${lt_cv_cc_needs_belf+set}" = set; then
7476 $as_echo_n "(cached) " >&6
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7499 rm -f conftest.$ac_objext conftest$ac_exeext
7500 if { (ac_try="$ac_link"
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7506 $as_echo "$ac_try_echo") >&5
7507 (eval "$ac_link") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1 >conftest.err
7511 cat conftest.err >&5
7512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest$ac_exeext && {
7517 test "$cross_compiling" = yes ||
7518 $as_test_x conftest$ac_exeext
7520 lt_cv_cc_needs_belf=yes
7522 $as_echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 lt_cv_cc_needs_belf=no
7528 rm -rf conftest.dSYM
7529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7530 conftest$ac_exeext conftest.$ac_ext
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7539 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7542 CFLAGS="$SAVE_CFLAGS"
7546 # Find out which ABI we are using.
7547 echo 'int i;' > conftest.$ac_ext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7549 (eval $ac_compile) 2>&5
7551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); }; then
7553 case `/usr/bin/file conftest.o` in
7555 case $lt_cv_prog_gnu_ld in
7556 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7558 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7570 need_locks="$enable_libtool_lock"
7574 rhapsody* | darwin*)
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7581 $as_echo_n "(cached) " >&6
7583 if test -n "$DSYMUTIL"; then
7584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7604 if test -n "$DSYMUTIL"; then
7605 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7606 $as_echo "$DSYMUTIL" >&6; }
7608 { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_DSYMUTIL"; then
7615 ac_ct_DSYMUTIL=$DSYMUTIL
7616 # Extract the first word of "dsymutil", so it can be a program name with args.
7617 set dummy dsymutil; ac_word=$2
7618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$ac_ct_DSYMUTIL"; then
7624 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7644 if test -n "$ac_ct_DSYMUTIL"; then
7645 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7646 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7648 { $as_echo "$as_me:$LINENO: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_DSYMUTIL" = x; then
7655 case $cross_compiling:$ac_tool_warned in
7657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7661 DSYMUTIL=$ac_ct_DSYMUTIL
7664 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7673 $as_echo_n "(cached) " >&6
7675 if test -n "$NMEDIT"; then
7676 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 NMEDIT=$ac_cv_prog_NMEDIT
7696 if test -n "$NMEDIT"; then
7697 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7698 $as_echo "$NMEDIT" >&6; }
7700 { $as_echo "$as_me:$LINENO: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_NMEDIT"; then
7707 ac_ct_NMEDIT=$NMEDIT
7708 # Extract the first word of "nmedit", so it can be a program name with args.
7709 set dummy nmedit; ac_word=$2
7710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7713 $as_echo_n "(cached) " >&6
7715 if test -n "$ac_ct_NMEDIT"; then
7716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7736 if test -n "$ac_ct_NMEDIT"; then
7737 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7738 $as_echo "$ac_ct_NMEDIT" >&6; }
7740 { $as_echo "$as_me:$LINENO: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_ct_NMEDIT" = x; then
7747 case $cross_compiling:$ac_tool_warned in
7749 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7753 NMEDIT=$ac_ct_NMEDIT
7756 NMEDIT="$ac_cv_prog_NMEDIT"
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_LIPO+set}" = set; then
7765 $as_echo_n "(cached) " >&6
7767 if test -n "$LIPO"; then
7768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 LIPO=$ac_cv_prog_LIPO
7788 if test -n "$LIPO"; then
7789 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7790 $as_echo "$LIPO" >&6; }
7792 { $as_echo "$as_me:$LINENO: result: no" >&5
7793 $as_echo "no" >&6; }
7798 if test -z "$ac_cv_prog_LIPO"; then
7800 # Extract the first word of "lipo", so it can be a program name with args.
7801 set dummy lipo; ac_word=$2
7802 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7805 $as_echo_n "(cached) " >&6
7807 if test -n "$ac_ct_LIPO"; then
7808 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_ac_ct_LIPO="lipo"
7818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7828 if test -n "$ac_ct_LIPO"; then
7829 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7830 $as_echo "$ac_ct_LIPO" >&6; }
7832 { $as_echo "$as_me:$LINENO: result: no" >&5
7833 $as_echo "no" >&6; }
7836 if test "x$ac_ct_LIPO" = x; then
7839 case $cross_compiling:$ac_tool_warned in
7841 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7848 LIPO="$ac_cv_prog_LIPO"
7851 if test -n "$ac_tool_prefix"; then
7852 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}otool; ac_word=$2
7854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_OTOOL+set}" = set; then
7857 $as_echo_n "(cached) " >&6
7859 if test -n "$OTOOL"; then
7860 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 for ac_exec_ext in '' $ac_executable_extensions; do
7868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 OTOOL=$ac_cv_prog_OTOOL
7880 if test -n "$OTOOL"; then
7881 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7882 $as_echo "$OTOOL" >&6; }
7884 { $as_echo "$as_me:$LINENO: result: no" >&5
7885 $as_echo "no" >&6; }
7890 if test -z "$ac_cv_prog_OTOOL"; then
7892 # Extract the first word of "otool", so it can be a program name with args.
7893 set dummy otool; ac_word=$2
7894 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$ac_ct_OTOOL"; then
7900 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir=.
7907 for ac_exec_ext in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_ac_ct_OTOOL="otool"
7910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7920 if test -n "$ac_ct_OTOOL"; then
7921 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7922 $as_echo "$ac_ct_OTOOL" >&6; }
7924 { $as_echo "$as_me:$LINENO: result: no" >&5
7925 $as_echo "no" >&6; }
7928 if test "x$ac_ct_OTOOL" = x; then
7931 case $cross_compiling:$ac_tool_warned in
7933 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7940 OTOOL="$ac_cv_prog_OTOOL"
7943 if test -n "$ac_tool_prefix"; then
7944 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7949 $as_echo_n "(cached) " >&6
7951 if test -n "$OTOOL64"; then
7952 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 test -z "$as_dir" && as_dir=.
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 OTOOL64=$ac_cv_prog_OTOOL64
7972 if test -n "$OTOOL64"; then
7973 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7974 $as_echo "$OTOOL64" >&6; }
7976 { $as_echo "$as_me:$LINENO: result: no" >&5
7977 $as_echo "no" >&6; }
7982 if test -z "$ac_cv_prog_OTOOL64"; then
7983 ac_ct_OTOOL64=$OTOOL64
7984 # Extract the first word of "otool64", so it can be a program name with args.
7985 set dummy otool64; ac_word=$2
7986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7989 $as_echo_n "(cached) " >&6
7991 if test -n "$ac_ct_OTOOL64"; then
7992 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 test -z "$as_dir" && as_dir=.
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8001 ac_cv_prog_ac_ct_OTOOL64="otool64"
8002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8012 if test -n "$ac_ct_OTOOL64"; then
8013 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8014 $as_echo "$ac_ct_OTOOL64" >&6; }
8016 { $as_echo "$as_me:$LINENO: result: no" >&5
8017 $as_echo "no" >&6; }
8020 if test "x$ac_ct_OTOOL64" = x; then
8023 case $cross_compiling:$ac_tool_warned in
8025 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8029 OTOOL64=$ac_ct_OTOOL64
8032 OTOOL64="$ac_cv_prog_OTOOL64"
8061 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8062 $as_echo_n "checking for -single_module linker flag... " >&6; }
8063 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8064 $as_echo_n "(cached) " >&6
8066 lt_cv_apple_cc_single_mod=no
8067 if test -z "${LT_MULTI_MODULE}"; then
8068 # By default we will add the -single_module flag. You can override
8069 # by either setting the environment variable LT_MULTI_MODULE
8070 # non-empty at configure time, or by adding -multi_module to the
8072 rm -rf libconftest.dylib*
8073 echo "int foo(void){return 1;}" > conftest.c
8074 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8075 -dynamiclib -Wl,-single_module conftest.c" >&5
8076 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8077 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8079 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8080 lt_cv_apple_cc_single_mod=yes
8082 cat conftest.err >&5
8084 rm -rf libconftest.dylib*
8088 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8089 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8090 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8091 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8092 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8095 lt_cv_ld_exported_symbols_list=no
8096 save_LDFLAGS=$LDFLAGS
8097 echo "_main" > conftest.sym
8098 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8114 rm -f conftest.$ac_objext conftest$ac_exeext
8115 if { (ac_try="$ac_link"
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_link") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest$ac_exeext && {
8132 test "$cross_compiling" = yes ||
8133 $as_test_x conftest$ac_exeext
8135 lt_cv_ld_exported_symbols_list=yes
8137 $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 lt_cv_ld_exported_symbols_list=no
8143 rm -rf conftest.dSYM
8144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145 conftest$ac_exeext conftest.$ac_ext
8146 LDFLAGS="$save_LDFLAGS"
8149 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8150 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8152 rhapsody* | darwin1.[012])
8153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8156 darwin*) # darwin 5.x on
8157 # if running on 10.5 or later, the deployment target defaults
8158 # to the OS version, if on x86, and 10.4, the deployment
8159 # target defaults to 10.4. Don't you love it?
8160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8171 _lt_dar_single_mod='$single_module'
8173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8178 if test "$DSYMUTIL" != ":"; then
8179 _lt_dsymutil='~$DSYMUTIL $lib || :'
8187 for ac_header in dlfcn.h
8189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8190 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8191 $as_echo_n "checking for $ac_header... " >&6; }
8192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8193 $as_echo_n "(cached) " >&6
8195 cat >conftest.$ac_ext <<_ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h. */
8201 $ac_includes_default
8203 #include <$ac_header>
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8212 $as_echo "$ac_try_echo") >&5
8213 (eval "$ac_compile") 2>conftest.er1
8215 grep -v '^ *+' conftest.er1 >conftest.err
8217 cat conftest.err >&5
8218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } && {
8220 test -z "$ac_c_werror_flag" ||
8221 test ! -s conftest.err
8222 } && test -s conftest.$ac_objext; then
8223 eval "$as_ac_Header=yes"
8225 $as_echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8228 eval "$as_ac_Header=no"
8231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 ac_res=`eval 'as_val=${'$as_ac_Header'}
8234 $as_echo "$as_val"'`
8235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8236 $as_echo "$ac_res" >&6; }
8237 as_val=`eval 'as_val=${'$as_ac_Header'}
8238 $as_echo "$as_val"'`
8239 if test "x$as_val" = x""yes; then
8240 cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8260 # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then
8262 enableval=$enable_shared; p=${PACKAGE-default}
8264 yes) enable_shared=yes ;;
8265 no) enable_shared=no ;;
8268 # Look at the argument we got. We use all the common list separators.
8269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270 for pkg in $enableval; do
8272 if test "X$pkg" = "X$p"; then
8291 # Check whether --enable-static was given.
8292 if test "${enable_static+set}" = set; then
8293 enableval=$enable_static; p=${PACKAGE-default}
8295 yes) enable_static=yes ;;
8296 no) enable_static=no ;;
8299 # Look at the argument we got. We use all the common list separators.
8300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301 for pkg in $enableval; do
8303 if test "X$pkg" = "X$p"; then
8323 # Check whether --with-pic was given.
8324 if test "${with_pic+set}" = set; then
8325 withval=$with_pic; pic_mode="$withval"
8331 test -z "$pic_mode" && pic_mode=default
8339 # Check whether --enable-fast-install was given.
8340 if test "${enable_fast_install+set}" = set; then
8341 enableval=$enable_fast_install; p=${PACKAGE-default}
8343 yes) enable_fast_install=yes ;;
8344 no) enable_fast_install=no ;;
8346 enable_fast_install=no
8347 # Look at the argument we got. We use all the common list separators.
8348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349 for pkg in $enableval; do
8351 if test "X$pkg" = "X$p"; then
8352 enable_fast_install=yes
8359 enable_fast_install=yes
8372 # This can be used to rebuild libtool when needed
8373 LIBTOOL_DEPS="$ltmain"
8375 # Always use our own libtool.
8376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8402 test -z "$LN_S" && LN_S="ln -s"
8417 if test -n "${ZSH_VERSION+set}" ; then
8418 setopt NO_GLOB_SUBST
8421 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8422 $as_echo_n "checking for objdir... " >&6; }
8423 if test "${lt_cv_objdir+set}" = set; then
8424 $as_echo_n "(cached) " >&6
8426 rm -f .libs 2>/dev/null
8427 mkdir .libs 2>/dev/null
8428 if test -d .libs; then
8431 # MS-DOS does not allow filenames that begin with a dot.
8434 rmdir .libs 2>/dev/null
8436 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8437 $as_echo "$lt_cv_objdir" >&6; }
8438 objdir=$lt_cv_objdir
8444 cat >>confdefs.h <<_ACEOF
8445 #define LT_OBJDIR "$lt_cv_objdir/"
8466 # AIX sometimes has problems with the GCC collect2 program. For some
8467 # reason, if we set the COLLECT_NAMES environment variable, the problems
8468 # vanish in a puff of smoke.
8469 if test "X${COLLECT_NAMES+set}" != Xset; then
8471 export COLLECT_NAMES
8476 # Sed substitution that helps us do robust quoting. It backslashifies
8477 # metacharacters that are still active within double-quoted strings.
8478 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8480 # Same as above, but do not quote variable references.
8481 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8483 # Sed substitution to delay expansion of an escaped shell variable in a
8484 # double_quote_subst'ed string.
8485 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8487 # Sed substitution to delay expansion of an escaped single quote.
8488 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8490 # Sed substitution to avoid accidental globbing in evaled expressions
8491 no_glob_subst='s/\*/\\\*/g'
8495 can_build_shared=yes
8497 # All known linkers require a `.a' archive for static linking (except MSVC,
8498 # which needs '.lib').
8501 with_gnu_ld="$lt_cv_prog_gnu_ld"
8504 old_CFLAGS="$CFLAGS"
8506 # Set sane defaults for various variables
8507 test -z "$CC" && CC=cc
8508 test -z "$LTCC" && LTCC=$CC
8509 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8510 test -z "$LD" && LD=ld
8511 test -z "$ac_objext" && ac_objext=o
8513 for cc_temp in $compiler""; do
8515 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8516 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8521 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8524 # Only perform the check for file, if the check method requires it
8525 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8526 case $deplibs_check_method in
8528 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8529 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8530 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8531 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8532 $as_echo_n "(cached) " >&6
8536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8539 lt_save_MAGIC_CMD="$MAGIC_CMD"
8540 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8542 for ac_dir in $ac_dummy; do
8544 test -z "$ac_dir" && ac_dir=.
8545 if test -f $ac_dir/${ac_tool_prefix}file; then
8546 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8547 if test -n "$file_magic_test_file"; then
8548 case $deplibs_check_method in
8550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8553 $EGREP "$file_magic_regex" > /dev/null; then
8558 *** Warning: the command libtool uses to detect shared libraries,
8559 *** $file_magic_cmd, produces output that libtool cannot recognize.
8560 *** The result is that libtool may fail to recognize shared libraries
8561 *** as such. This will affect the creation of libtool libraries that
8562 *** depend on shared libraries, but programs linked with such libtool
8563 *** libraries will work regardless of this problem. Nevertheless, you
8564 *** may want to report the problem to your system manager and/or to
8565 *** bug-libtool@gnu.org
8575 MAGIC_CMD="$lt_save_MAGIC_CMD"
8580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8581 if test -n "$MAGIC_CMD"; then
8582 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8583 $as_echo "$MAGIC_CMD" >&6; }
8585 { $as_echo "$as_me:$LINENO: result: no" >&5
8586 $as_echo "no" >&6; }
8593 if test -z "$lt_cv_path_MAGIC_CMD"; then
8594 if test -n "$ac_tool_prefix"; then
8595 { $as_echo "$as_me:$LINENO: checking for file" >&5
8596 $as_echo_n "checking for file... " >&6; }
8597 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8598 $as_echo_n "(cached) " >&6
8602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8605 lt_save_MAGIC_CMD="$MAGIC_CMD"
8606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8608 for ac_dir in $ac_dummy; do
8610 test -z "$ac_dir" && ac_dir=.
8611 if test -f $ac_dir/file; then
8612 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8613 if test -n "$file_magic_test_file"; then
8614 case $deplibs_check_method in
8616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8619 $EGREP "$file_magic_regex" > /dev/null; then
8624 *** Warning: the command libtool uses to detect shared libraries,
8625 *** $file_magic_cmd, produces output that libtool cannot recognize.
8626 *** The result is that libtool may fail to recognize shared libraries
8627 *** as such. This will affect the creation of libtool libraries that
8628 *** depend on shared libraries, but programs linked with such libtool
8629 *** libraries will work regardless of this problem. Nevertheless, you
8630 *** may want to report the problem to your system manager and/or to
8631 *** bug-libtool@gnu.org
8641 MAGIC_CMD="$lt_save_MAGIC_CMD"
8646 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8647 if test -n "$MAGIC_CMD"; then
8648 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8649 $as_echo "$MAGIC_CMD" >&6; }
8651 { $as_echo "$as_me:$LINENO: result: no" >&5
8652 $as_echo "no" >&6; }
8665 # Use C for the default configuration in the libtool script
8669 ac_cpp='$CPP $CPPFLAGS'
8670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8675 # Source file extension for C test sources.
8678 # Object file extension for compiled C test sources.
8682 # Code to be used in simple compile tests
8683 lt_simple_compile_test_code="int some_variable = 0;"
8685 # Code to be used in simple link tests
8686 lt_simple_link_test_code='int main(){return(0);}'
8694 # If no C compiler was specified, use CC.
8697 # If no C compiler flags were specified, use CFLAGS.
8698 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8700 # Allow CC to be a program name with arguments.
8703 # Save the default compiler, since it gets overwritten when the other
8704 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8705 compiler_DEFAULT=$CC
8707 # save warnings/boilerplate of simple test code
8708 ac_outfile=conftest.$ac_objext
8709 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8710 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8711 _lt_compiler_boilerplate=`cat conftest.err`
8714 ac_outfile=conftest.$ac_objext
8715 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8716 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8717 _lt_linker_boilerplate=`cat conftest.err`
8722 ## There is no encapsulation within the following macros, do not change
8723 ## the running order or otherwise move them around unless you know exactly
8724 ## what you are doing...
8725 if test -n "$compiler"; then
8727 lt_prog_compiler_no_builtin_flag=
8729 if test "$GCC" = yes; then
8730 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8732 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8733 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8734 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8735 $as_echo_n "(cached) " >&6
8737 lt_cv_prog_compiler_rtti_exceptions=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="-fno-rtti -fno-exceptions"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:8750: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8753 cat conftest.err >&5
8754 echo "$as_me:8754: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_rtti_exceptions=yes
8767 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8768 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8770 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8771 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8783 lt_prog_compiler_wl=
8784 lt_prog_compiler_pic=
8785 lt_prog_compiler_static=
8787 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8788 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8790 if test "$GCC" = yes; then
8791 lt_prog_compiler_wl='-Wl,'
8792 lt_prog_compiler_static='-static'
8796 # All AIX code is PIC.
8797 if test "$host_cpu" = ia64; then
8798 # AIX 5 now supports IA64 processor
8799 lt_prog_compiler_static='-Bstatic'
8806 # see comment about AmigaOS4 .so support
8807 lt_prog_compiler_pic='-fPIC'
8810 # FIXME: we need at least 68020 code to build shared libraries, but
8811 # adding the `-m68020' flag to GCC prevents building anything better,
8813 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8818 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8819 # PIC is the default for these OSes.
8822 mingw* | cygwin* | pw32* | os2* | cegcc*)
8823 # This hack is so that the source file can tell whether it is being
8824 # built for inclusion in a dll (and should export symbols for example).
8825 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8826 # (--disable-auto-import) libraries
8827 lt_prog_compiler_pic='-DDLL_EXPORT'
8830 darwin* | rhapsody*)
8831 # PIC is the default on this platform
8832 # Common symbols not allowed in MH_DYLIB files
8833 lt_prog_compiler_pic='-fno-common'
8837 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8838 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8839 # sets the default TLS model and affects inlining.
8845 lt_prog_compiler_pic='-fPIC'
8851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8852 # Instead, we relocate shared libraries at runtime.
8856 # Just because we use GCC doesn't mean we suddenly get shared libraries
8857 # on systems that don't support them.
8858 lt_prog_compiler_can_build_shared=no
8863 # QNX uses GNU C++, but need to define -shared option too, otherwise
8865 lt_prog_compiler_pic='-fPIC -shared'
8869 if test -d /usr/nec; then
8870 lt_prog_compiler_pic=-Kconform_pic
8875 lt_prog_compiler_pic='-fPIC'
8879 # PORTME Check for flag to pass linker flags through the system compiler.
8882 lt_prog_compiler_wl='-Wl,'
8883 if test "$host_cpu" = ia64; then
8884 # AIX 5 now supports IA64 processor
8885 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8891 mingw* | cygwin* | pw32* | os2* | cegcc*)
8892 # This hack is so that the source file can tell whether it is being
8893 # built for inclusion in a dll (and should export symbols for example).
8894 lt_prog_compiler_pic='-DDLL_EXPORT'
8897 hpux9* | hpux10* | hpux11*)
8898 lt_prog_compiler_wl='-Wl,'
8899 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8906 lt_prog_compiler_pic='+Z'
8909 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8910 lt_prog_compiler_static='${wl}-a ${wl}archive'
8913 irix5* | irix6* | nonstopux*)
8914 lt_prog_compiler_wl='-Wl,'
8915 # PIC (with -KPIC) is the default.
8916 lt_prog_compiler_static='-non_shared'
8919 linux* | k*bsd*-gnu)
8920 case $cc_basename in
8921 # old Intel for x86_64 which still supported -KPIC.
8923 lt_prog_compiler_wl='-Wl,'
8924 lt_prog_compiler_pic='-KPIC'
8925 lt_prog_compiler_static='-static'
8927 # icc used to be incompatible with GCC.
8928 # ICC 10 doesn't accept -KPIC any more.
8930 lt_prog_compiler_wl='-Wl,'
8931 lt_prog_compiler_pic='-fPIC'
8932 lt_prog_compiler_static='-static'
8934 # Lahey Fortran 8.1.
8936 lt_prog_compiler_wl='-Wl,'
8937 lt_prog_compiler_pic='--shared'
8938 lt_prog_compiler_static='--static'
8940 pgcc* | pgf77* | pgf90* | pgf95*)
8941 # Portland Group compilers (*not* the Pentium gcc compiler,
8942 # which looks to be a dead project)
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-fpic'
8945 lt_prog_compiler_static='-Bstatic'
8948 lt_prog_compiler_wl='-Wl,'
8949 # All Alpha code is PIC.
8950 lt_prog_compiler_static='-non_shared'
8953 # IBM XL C 8.0/Fortran 10.1 on PPC
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_pic='-qpic'
8956 lt_prog_compiler_static='-qstaticlink'
8959 case `$CC -V 2>&1 | sed 5q` in
8962 lt_prog_compiler_pic='-KPIC'
8963 lt_prog_compiler_static='-Bstatic'
8964 lt_prog_compiler_wl='-Wl,'
8967 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8968 lt_prog_compiler_pic='-KPIC'
8969 lt_prog_compiler_static='-Bstatic'
8970 lt_prog_compiler_wl=''
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-Bstatic'
8983 # QNX uses GNU C++, but need to define -shared option too, otherwise
8985 lt_prog_compiler_pic='-fPIC -shared'
8988 osf3* | osf4* | osf5*)
8989 lt_prog_compiler_wl='-Wl,'
8990 # All OSF/1 code is PIC.
8991 lt_prog_compiler_static='-non_shared'
8995 lt_prog_compiler_static='-non_shared'
8999 lt_prog_compiler_pic='-KPIC'
9000 lt_prog_compiler_static='-Bstatic'
9001 case $cc_basename in
9003 lt_prog_compiler_wl='-Qoption ld ';;
9005 lt_prog_compiler_wl='-Wl,';;
9010 lt_prog_compiler_wl='-Qoption ld '
9011 lt_prog_compiler_pic='-PIC'
9012 lt_prog_compiler_static='-Bstatic'
9015 sysv4 | sysv4.2uw2* | sysv4.3*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-KPIC'
9018 lt_prog_compiler_static='-Bstatic'
9022 if test -d /usr/nec ;then
9023 lt_prog_compiler_pic='-Kconform_pic'
9024 lt_prog_compiler_static='-Bstatic'
9028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9029 lt_prog_compiler_wl='-Wl,'
9030 lt_prog_compiler_pic='-KPIC'
9031 lt_prog_compiler_static='-Bstatic'
9035 lt_prog_compiler_wl='-Wl,'
9036 lt_prog_compiler_can_build_shared=no
9040 lt_prog_compiler_pic='-pic'
9041 lt_prog_compiler_static='-Bstatic'
9045 lt_prog_compiler_can_build_shared=no
9051 # For platforms which do not support PIC, -DPIC is meaningless:
9053 lt_prog_compiler_pic=
9056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9059 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9060 $as_echo "$lt_prog_compiler_pic" >&6; }
9068 # Check to make sure the PIC flag actually works.
9070 if test -n "$lt_prog_compiler_pic"; then
9071 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9072 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9073 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9074 $as_echo_n "(cached) " >&6
9076 lt_cv_prog_compiler_pic_works=no
9077 ac_outfile=conftest.$ac_objext
9078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9079 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9080 # Insert the option either (1) after the last *FLAGS variable, or
9081 # (2) before a word containing "conftest.", or (3) at the end.
9082 # Note that $ac_compile itself does not contain backslashes and begins
9083 # with a dollar sign (not a hyphen), so the echo should work correctly.
9084 # The option is referenced via a variable to avoid confusing sed.
9085 lt_compile=`echo "$ac_compile" | $SED \
9086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9088 -e 's:$: $lt_compiler_flag:'`
9089 (eval echo "\"\$as_me:9089: $lt_compile\"" >&5)
9090 (eval "$lt_compile" 2>conftest.err)
9092 cat conftest.err >&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 if (exit $ac_status) && test -s "$ac_outfile"; then
9095 # The compiler can only warn and ignore the option if not recognized
9096 # So say no if there are warnings other than the usual output.
9097 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler_pic_works=yes
9106 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9107 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9109 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9110 case $lt_prog_compiler_pic in
9112 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9115 lt_prog_compiler_pic=
9116 lt_prog_compiler_can_build_shared=no
9127 # Check to make sure the static flag actually works.
9129 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9130 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9131 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9132 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9133 $as_echo_n "(cached) " >&6
9135 lt_cv_prog_compiler_static_works=no
9136 save_LDFLAGS="$LDFLAGS"
9137 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9138 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9139 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9140 # The linker can only warn and ignore the option if not recognized
9141 # So say no if there are warnings
9142 if test -s conftest.err; then
9143 # Append any errors to the config.log.
9144 cat conftest.err 1>&5
9145 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9146 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9147 if diff conftest.exp conftest.er2 >/dev/null; then
9148 lt_cv_prog_compiler_static_works=yes
9151 lt_cv_prog_compiler_static_works=yes
9155 LDFLAGS="$save_LDFLAGS"
9158 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9159 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9161 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9164 lt_prog_compiler_static=
9173 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9175 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9176 $as_echo_n "(cached) " >&6
9178 lt_cv_prog_compiler_c_o=no
9179 $RM -r conftest 2>/dev/null
9183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9185 lt_compiler_flag="-o out/conftest2.$ac_objext"
9186 # Insert the option either (1) after the last *FLAGS variable, or
9187 # (2) before a word containing "conftest.", or (3) at the end.
9188 # Note that $ac_compile itself does not contain backslashes and begins
9189 # with a dollar sign (not a hyphen), so the echo should work correctly.
9190 lt_compile=`echo "$ac_compile" | $SED \
9191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193 -e 's:$: $lt_compiler_flag:'`
9194 (eval echo "\"\$as_me:9194: $lt_compile\"" >&5)
9195 (eval "$lt_compile" 2>out/conftest.err)
9197 cat out/conftest.err >&5
9198 echo "$as_me:9198: \$? = $ac_status" >&5
9199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9201 # The compiler can only warn and ignore the option if not recognized
9202 # So say no if there are warnings
9203 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9206 lt_cv_prog_compiler_c_o=yes
9211 # SGI C++ compiler will create directory out/ii_files/ for
9212 # template instantiation
9213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9214 $RM out/* && rmdir out
9220 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9221 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9228 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9229 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9230 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9231 $as_echo_n "(cached) " >&6
9233 lt_cv_prog_compiler_c_o=no
9234 $RM -r conftest 2>/dev/null
9238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9240 lt_compiler_flag="-o out/conftest2.$ac_objext"
9241 # Insert the option either (1) after the last *FLAGS variable, or
9242 # (2) before a word containing "conftest.", or (3) at the end.
9243 # Note that $ac_compile itself does not contain backslashes and begins
9244 # with a dollar sign (not a hyphen), so the echo should work correctly.
9245 lt_compile=`echo "$ac_compile" | $SED \
9246 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9248 -e 's:$: $lt_compiler_flag:'`
9249 (eval echo "\"\$as_me:9249: $lt_compile\"" >&5)
9250 (eval "$lt_compile" 2>out/conftest.err)
9252 cat out/conftest.err >&5
9253 echo "$as_me:9253: \$? = $ac_status" >&5
9254 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9256 # The compiler can only warn and ignore the option if not recognized
9257 # So say no if there are warnings
9258 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9259 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9260 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9261 lt_cv_prog_compiler_c_o=yes
9266 # SGI C++ compiler will create directory out/ii_files/ for
9267 # template instantiation
9268 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9269 $RM out/* && rmdir out
9275 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9276 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9281 hard_links="nottested"
9282 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9283 # do not overwrite the value of need_locks provided by the user
9284 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9285 $as_echo_n "checking if we can lock with hard links... " >&6; }
9288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9290 ln conftest.a conftest.b 2>&5 || hard_links=no
9291 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9292 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9293 $as_echo "$hard_links" >&6; }
9294 if test "$hard_links" = no; then
9295 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9296 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9308 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9309 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9312 allow_undefined_flag=
9313 always_export_symbols=no
9315 archive_expsym_cmds=
9316 compiler_needs_object=no
9317 enable_shared_with_static_runtimes=no
9318 export_dynamic_flag_spec=
9319 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9320 hardcode_automatic=no
9322 hardcode_direct_absolute=no
9323 hardcode_libdir_flag_spec=
9324 hardcode_libdir_flag_spec_ld=
9325 hardcode_libdir_separator=
9327 hardcode_shlibpath_var=unsupported
9329 link_all_deplibs=unknown
9332 old_archive_from_new_cmds=
9333 old_archive_from_expsyms_cmds=
9334 thread_safe_flag_spec=
9335 whole_archive_flag_spec=
9336 # include_expsyms should be a list of space-separated symbols to be *always*
9337 # included in the symbol list
9339 # exclude_expsyms can be an extended regexp of symbols to exclude
9340 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9341 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9342 # as well as any symbol that contains `d'.
9343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9345 # platforms (ab)use it in PIC code, but their linkers get confused if
9346 # the symbol is explicitly referenced. Since portable code cannot
9347 # rely on this symbol name, it's probably fine to never include it in
9348 # preloaded symbol tables.
9349 # Exclude shared library initialization/finalization symbols.
9350 extract_expsyms_cmds=
9353 cygwin* | mingw* | pw32* | cegcc*)
9354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9355 # When not using gcc, we currently assume that we are using
9356 # Microsoft Visual C++.
9357 if test "$GCC" != yes; then
9362 # we just hope/assume this is gcc and not c89 (= MSVC++)
9371 if test "$with_gnu_ld" = yes; then
9372 # If archive_cmds runs LD, not CC, wlarc should be empty
9375 # Set some defaults for GNU ld with shared library support. These
9376 # are reset later if shared libraries are not supported. Putting them
9377 # here allows them to be overridden if necessary.
9378 runpath_var=LD_RUN_PATH
9379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9380 export_dynamic_flag_spec='${wl}--export-dynamic'
9381 # ancient GNU ld didn't support --whole-archive et. al.
9382 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9383 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9385 whole_archive_flag_spec=
9387 supports_anon_versioning=no
9388 case `$LD -v 2>&1` in
9389 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9390 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9391 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9392 *\ 2.11.*) ;; # other 2.11 versions
9393 *) supports_anon_versioning=yes ;;
9396 # See if GNU ld supports shared libraries.
9399 # On AIX/PPC, the GNU linker is very broken
9400 if test "$host_cpu" != ia64; then
9404 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9405 *** to be unable to reliably create shared libraries on AIX.
9406 *** Therefore, libtool is disabling shared libraries support. If you
9407 *** really care for shared libraries, you may want to modify your PATH
9408 *** so that a non-GNU linker is found, and then restart.
9417 # see comment about AmigaOS4 .so support
9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419 archive_expsym_cmds=''
9422 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)'
9423 hardcode_libdir_flag_spec='-L$libdir'
9424 hardcode_minus_L=yes
9430 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9431 allow_undefined_flag=unsupported
9432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9433 # support --undefined. This deserves some investigation. FIXME
9434 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9440 cygwin* | mingw* | pw32* | cegcc*)
9441 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9442 # as there is no search path for DLLs.
9443 hardcode_libdir_flag_spec='-L$libdir'
9444 allow_undefined_flag=unsupported
9445 always_export_symbols=no
9446 enable_shared_with_static_runtimes=yes
9447 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9449 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9450 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9451 # If the export-symbols file already is a .def file (1st line
9452 # is EXPORTS), use it as is; otherwise, prepend...
9453 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9454 cp $export_symbols $output_objdir/$soname.def;
9456 echo EXPORTS > $output_objdir/$soname.def;
9457 cat $export_symbols >> $output_objdir/$soname.def;
9459 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9467 hardcode_shlibpath_var=no
9468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9469 export_dynamic_flag_spec='${wl}-E'
9470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9471 # Instead, shared libraries are loaded at an image base (0x10000000 by
9472 # default) and relocated if they conflict, which is a slow very memory
9473 # consuming and fragmenting process. To avoid this, we pick a random,
9474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9477 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'
9480 gnu* | linux* | tpf* | k*bsd*-gnu)
9482 if test "$host_os" = linux-dietlibc; then
9483 case $cc_basename in
9484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9488 && test "$tmp_diet" = no
9491 tmp_sharedflag='-shared'
9492 case $cc_basename,$host_cpu in
9493 pgcc*) # Portland Group C compiler
9494 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'
9495 tmp_addflag=' $pic_flag'
9497 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9498 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'
9499 tmp_addflag=' $pic_flag -Mnomain' ;;
9500 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9501 tmp_addflag=' -i_dynamic' ;;
9502 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9503 tmp_addflag=' -i_dynamic -nofor_main' ;;
9504 ifc* | ifort*) # Intel Fortran compiler
9505 tmp_addflag=' -nofor_main' ;;
9506 lf95*) # Lahey Fortran 8.1
9507 whole_archive_flag_spec=
9508 tmp_sharedflag='--shared' ;;
9509 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9510 tmp_sharedflag='-qmkshrobj'
9513 case `$CC -V 2>&1 | sed 5q` in
9514 *Sun\ C*) # Sun C 5.9
9515 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'
9516 compiler_needs_object=yes
9517 tmp_sharedflag='-G' ;;
9518 *Sun\ F*) # Sun Fortran 8.3
9519 tmp_sharedflag='-G' ;;
9521 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9523 if test "x$supports_anon_versioning" = xyes; then
9524 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9526 echo "local: *; };" >> $output_objdir/$libname.ver~
9527 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9530 case $cc_basename in
9532 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9533 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9534 hardcode_libdir_flag_spec=
9535 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9536 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9537 if test "x$supports_anon_versioning" = xyes; then
9538 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9539 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9540 echo "local: *; };" >> $output_objdir/$libname.ver~
9541 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9565 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9566 *** create shared libraries on Solaris systems. Therefore, libtool
9567 *** is disabling shared libraries support. We urge you to upgrade GNU
9568 *** binutils to release 2.9.1 or newer. Another option is to modify
9569 *** your PATH or compiler configuration so that the native linker is
9570 *** used, and then restart.
9573 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9574 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9582 case `$LD -v 2>&1` in
9583 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9587 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9588 *** reliably create shared libraries on SCO systems. Therefore, libtool
9589 *** is disabling shared libraries support. We urge you to upgrade GNU
9590 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9597 # For security reasons, it is highly recommended that you always
9598 # use absolute paths for naming shared libraries, and exclude the
9599 # DT_RUNPATH tag from executables and libraries. But doing so
9600 # requires that you compile everything twice, which is a pain.
9601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9613 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9616 hardcode_shlibpath_var=no
9620 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9629 if test "$ld_shlibs" = no; then
9631 hardcode_libdir_flag_spec=
9632 export_dynamic_flag_spec=
9633 whole_archive_flag_spec=
9636 # PORTME fill in a description of your system's linker (not GNU ld)
9639 allow_undefined_flag=unsupported
9640 always_export_symbols=yes
9641 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'
9642 # Note: this linker hardcodes the directories in LIBPATH if there
9643 # are no directories specified by -L.
9644 hardcode_minus_L=yes
9645 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9646 # Neither direct hardcoding nor static linking is supported with a
9648 hardcode_direct=unsupported
9653 if test "$host_cpu" = ia64; then
9654 # On IA64, the linker does run time linking by default, so we don't
9655 # have to do anything special.
9656 aix_use_runtimelinking=no
9657 exp_sym_flag='-Bexport'
9660 # If we're using GNU nm, then we don't want the "-C" option.
9661 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9662 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9663 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'
9665 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'
9667 aix_use_runtimelinking=no
9669 # Test if we are trying to use run time linking or normal
9670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9671 # need to do runtime linking.
9672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9673 for ld_flag in $LDFLAGS; do
9674 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9675 aix_use_runtimelinking=yes
9682 exp_sym_flag='-bexport'
9683 no_entry_flag='-bnoentry'
9686 # When large executables or shared objects are built, AIX ld can
9687 # have problems creating the table of contents. If linking a library
9688 # or program results in "error TOC overflow" add -mminimal-toc to
9689 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9690 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9694 hardcode_direct_absolute=yes
9695 hardcode_libdir_separator=':'
9696 link_all_deplibs=yes
9697 file_list_spec='${wl}-f,'
9699 if test "$GCC" = yes; then
9700 case $host_os in aix4.[012]|aix4.[012].*)
9701 # We only want to do this on AIX 4.2 and lower, the check
9702 # below for broken collect2 doesn't work under 4.3+
9703 collect2name=`${CC} -print-prog-name=collect2`
9704 if test -f "$collect2name" &&
9705 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9707 # We have reworked collect2
9710 # We have old collect2
9711 hardcode_direct=unsupported
9712 # It fails to find uninstalled libraries when the uninstalled
9713 # path is not listed in the libpath. Setting hardcode_minus_L
9714 # to unsupported forces relinking
9715 hardcode_minus_L=yes
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_libdir_separator=
9721 shared_flag='-shared'
9722 if test "$aix_use_runtimelinking" = yes; then
9723 shared_flag="$shared_flag "'${wl}-G'
9727 if test "$host_cpu" = ia64; then
9728 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9729 # chokes on -Wl,-G. The following line is correct:
9732 if test "$aix_use_runtimelinking" = yes; then
9733 shared_flag='${wl}-G'
9735 shared_flag='${wl}-bM:SRE'
9740 export_dynamic_flag_spec='${wl}-bexpall'
9741 # It seems that -bexpall does not export symbols beginning with
9742 # underscore (_), so it is better to generate a list of symbols to export.
9743 always_export_symbols=yes
9744 if test "$aix_use_runtimelinking" = yes; then
9745 # Warning - without using the other runtime loading flags (-brtl),
9746 # -berok will link without error, but may produce a broken library.
9747 allow_undefined_flag='-berok'
9748 # Determine the default libpath from the value encoded in an
9750 cat >conftest.$ac_ext <<_ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9765 rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769 *) ac_try_echo=$ac_try;;
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773 (eval "$ac_link") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1 >conftest.err
9777 cat conftest.err >&5
9778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest$ac_exeext && {
9783 test "$cross_compiling" = yes ||
9784 $as_test_x conftest$ac_exeext
9787 lt_aix_libpath_sed='
9788 /Import File Strings/,/^$/ {
9794 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$aix_libpath"; then
9797 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 $as_echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9806 rm -rf conftest.dSYM
9807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9808 conftest$ac_exeext conftest.$ac_ext
9809 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9811 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9812 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"
9814 if test "$host_cpu" = ia64; then
9815 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9816 allow_undefined_flag="-z nodefs"
9817 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"
9819 # Determine the default libpath from the value encoded in an
9821 cat >conftest.$ac_ext <<_ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (ac_try="$ac_link"
9839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9840 *) ac_try_echo=$ac_try;;
9842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9843 $as_echo "$ac_try_echo") >&5
9844 (eval "$ac_link") 2>conftest.er1
9846 grep -v '^ *+' conftest.er1 >conftest.err
9848 cat conftest.err >&5
9849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); } && {
9851 test -z "$ac_c_werror_flag" ||
9852 test ! -s conftest.err
9853 } && test -s conftest$ac_exeext && {
9854 test "$cross_compiling" = yes ||
9855 $as_test_x conftest$ac_exeext
9858 lt_aix_libpath_sed='
9859 /Import File Strings/,/^$/ {
9865 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9866 # Check for a 64-bit object if we didn't find anything.
9867 if test -z "$aix_libpath"; then
9868 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871 $as_echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9877 rm -rf conftest.dSYM
9878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9880 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9882 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9883 # Warning - without using the other run time loading flags,
9884 # -berok will link without error, but may produce a broken library.
9885 no_undefined_flag=' ${wl}-bernotok'
9886 allow_undefined_flag=' ${wl}-berok'
9887 # Exported symbols can be pulled into shared objects from archives
9888 whole_archive_flag_spec='$convenience'
9889 archive_cmds_need_lc=yes
9890 # This is similar to how AIX traditionally builds its shared libraries.
9891 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'
9899 # see comment about AmigaOS4 .so support
9900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9901 archive_expsym_cmds=''
9904 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)'
9905 hardcode_libdir_flag_spec='-L$libdir'
9906 hardcode_minus_L=yes
9912 export_dynamic_flag_spec=-rdynamic
9915 cygwin* | mingw* | pw32* | cegcc*)
9916 # When not using gcc, we currently assume that we are using
9917 # Microsoft Visual C++.
9918 # hardcode_libdir_flag_spec is actually meaningless, as there is
9919 # no search path for DLLs.
9920 hardcode_libdir_flag_spec=' '
9921 allow_undefined_flag=unsupported
9922 # Tell ltmain to make .lib files, not .a files.
9924 # Tell ltmain to make .dll files, not .so files.
9926 # FIXME: Setting linknames here is a bad hack.
9927 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9928 # The linker will automatically build a .lib file if we build a DLL.
9929 old_archive_from_new_cmds='true'
9930 # FIXME: Should let the user specify the lib program.
9931 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9932 fix_srcfile_path='`cygpath -w "$srcfile"`'
9933 enable_shared_with_static_runtimes=yes
9936 darwin* | rhapsody*)
9939 archive_cmds_need_lc=no
9941 hardcode_automatic=yes
9942 hardcode_shlibpath_var=unsupported
9943 whole_archive_flag_spec=''
9944 link_all_deplibs=yes
9945 allow_undefined_flag="$_lt_dar_allow_undefined"
9946 case $cc_basename in
9947 ifort*) _lt_dar_can_shared=yes ;;
9948 *) _lt_dar_can_shared=$GCC ;;
9950 if test "$_lt_dar_can_shared" = "yes"; then
9951 output_verbose_link_cmd=echo
9952 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9953 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9954 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}"
9955 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}"
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_libdir_flag_spec='-L$libdir'
9966 hardcode_shlibpath_var=no
9973 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9974 # support. Future versions do this automatically, but an explicit c++rt0.o
9975 # does not break anything, and helps significantly (at the cost of a little
9978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9979 hardcode_libdir_flag_spec='-R$libdir'
9981 hardcode_shlibpath_var=no
9984 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9988 hardcode_minus_L=yes
9989 hardcode_shlibpath_var=no
9992 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9993 freebsd* | dragonfly*)
9994 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9995 hardcode_libdir_flag_spec='-R$libdir'
9997 hardcode_shlibpath_var=no
10001 if test "$GCC" = yes; then
10002 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'
10004 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'
10006 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10007 hardcode_libdir_separator=:
10008 hardcode_direct=yes
10010 # hardcode_minus_L: Not really in the search PATH,
10011 # but as the default location of the library.
10012 hardcode_minus_L=yes
10013 export_dynamic_flag_spec='${wl}-E'
10017 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10022 if test "$with_gnu_ld" = no; then
10023 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024 hardcode_libdir_flag_spec_ld='+b $libdir'
10025 hardcode_libdir_separator=:
10026 hardcode_direct=yes
10027 hardcode_direct_absolute=yes
10028 export_dynamic_flag_spec='${wl}-E'
10029 # hardcode_minus_L: Not really in the search PATH,
10030 # but as the default location of the library.
10031 hardcode_minus_L=yes
10036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10039 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061 if test "$with_gnu_ld" = no; then
10062 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063 hardcode_libdir_separator=:
10068 hardcode_shlibpath_var=no
10071 hardcode_direct=yes
10072 hardcode_direct_absolute=yes
10073 export_dynamic_flag_spec='${wl}-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L=yes
10083 irix5* | irix6* | nonstopux*)
10084 if test "$GCC" = yes; then
10085 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'
10086 # Try to use the -exported_symbol ld option, if it does not
10087 # work, assume that -exports_file does not work either and
10088 # implicitly export all symbols.
10089 save_LDFLAGS="$LDFLAGS"
10090 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10091 cat >conftest.$ac_ext <<_ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (ac_try="$ac_link"
10096 case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10101 $as_echo "$ac_try_echo") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest$ac_exeext && {
10112 test "$cross_compiling" = yes ||
10113 $as_test_x conftest$ac_exeext
10115 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'
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 LDFLAGS="$save_LDFLAGS"
10129 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'
10130 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'
10132 archive_cmds_need_lc='no'
10133 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10134 hardcode_libdir_separator=:
10136 link_all_deplibs=yes
10140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10143 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10145 hardcode_libdir_flag_spec='-R$libdir'
10146 hardcode_direct=yes
10147 hardcode_shlibpath_var=no
10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152 hardcode_direct=yes
10153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10154 hardcode_libdir_separator=:
10155 hardcode_shlibpath_var=no
10162 if test -f /usr/libexec/ld.so; then
10163 hardcode_direct=yes
10164 hardcode_shlibpath_var=no
10165 hardcode_direct_absolute=yes
10166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10167 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10170 export_dynamic_flag_spec='${wl}-E'
10173 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_libdir_flag_spec='-R$libdir'
10178 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10179 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10189 hardcode_libdir_flag_spec='-L$libdir'
10190 hardcode_minus_L=yes
10191 allow_undefined_flag=unsupported
10192 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'
10193 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10197 if test "$GCC" = yes; then
10198 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10199 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'
10201 allow_undefined_flag=' -expect_unresolved \*'
10202 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'
10204 archive_cmds_need_lc='no'
10205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10206 hardcode_libdir_separator=:
10209 osf4* | osf5*) # as osf3* with the addition of -msym flag
10210 if test "$GCC" = yes; then
10211 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10212 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'
10213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10215 allow_undefined_flag=' -expect_unresolved \*'
10216 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'
10217 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~
10218 $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'
10220 # Both c and cxx compiler support -rpath directly
10221 hardcode_libdir_flag_spec='-rpath $libdir'
10223 archive_cmds_need_lc='no'
10224 hardcode_libdir_separator=:
10228 no_undefined_flag=' -z defs'
10229 if test "$GCC" = yes; then
10231 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10232 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10235 case `$CC -V 2>&1` in
10238 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10240 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10244 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10245 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10246 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10250 hardcode_libdir_flag_spec='-R$libdir'
10251 hardcode_shlibpath_var=no
10253 solaris2.[0-5] | solaris2.[0-5].*) ;;
10255 # The compiler driver will combine and reorder linker options,
10256 # but understands `-z linker_flag'. GCC discards it without `$wl',
10257 # but is careful enough not to reorder.
10258 # Supported since Solaris 2.6 (maybe 2.5.1?)
10259 if test "$GCC" = yes; then
10260 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10262 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10266 link_all_deplibs=yes
10270 if test "x$host_vendor" = xsequent; then
10271 # Use $CC to link under sequent, because it throws in some extra .o
10272 # files that make .init and .fini sections work.
10273 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10275 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10277 hardcode_libdir_flag_spec='-L$libdir'
10278 hardcode_direct=yes
10279 hardcode_minus_L=yes
10280 hardcode_shlibpath_var=no
10284 case $host_vendor in
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_direct=yes # is this really true???
10290 ## LD is ld it makes a PLAMLIB
10291 ## CC just makes a GrossModule.
10292 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10293 reload_cmds='$CC -r -o $output$reload_objs'
10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10301 runpath_var='LD_RUN_PATH'
10302 hardcode_shlibpath_var=no
10306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 hardcode_shlibpath_var=no
10308 export_dynamic_flag_spec='-Bexport'
10312 if test -d /usr/nec; then
10313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10314 hardcode_shlibpath_var=no
10315 runpath_var=LD_RUN_PATH
10316 hardcode_runpath_var=yes
10321 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10322 no_undefined_flag='${wl}-z,text'
10323 archive_cmds_need_lc=no
10324 hardcode_shlibpath_var=no
10325 runpath_var='LD_RUN_PATH'
10327 if test "$GCC" = yes; then
10328 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10332 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10336 sysv5* | sco3.2v5* | sco5v6*)
10337 # Note: We can NOT use -z defs as we might desire, because we do not
10338 # link with -lc, and that would cause any symbols used from libc to
10339 # always be unresolved, which means just about no library would
10340 # ever link correctly. If we're not using GNU ld we use -z text
10341 # though, which does catch some bad symbols but isn't as heavy-handed
10343 no_undefined_flag='${wl}-z,text'
10344 allow_undefined_flag='${wl}-z,nodefs'
10345 archive_cmds_need_lc=no
10346 hardcode_shlibpath_var=no
10347 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10348 hardcode_libdir_separator=':'
10349 link_all_deplibs=yes
10350 export_dynamic_flag_spec='${wl}-Bexport'
10351 runpath_var='LD_RUN_PATH'
10353 if test "$GCC" = yes; then
10354 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10355 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10358 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364 hardcode_libdir_flag_spec='-L$libdir'
10365 hardcode_shlibpath_var=no
10373 if test x$host_vendor = xsni; then
10375 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10376 export_dynamic_flag_spec='${wl}-Blargedynsym'
10382 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10383 $as_echo "$ld_shlibs" >&6; }
10384 test "$ld_shlibs" = no && can_build_shared=no
10386 with_gnu_ld=$with_gnu_ld
10403 # Do we need to explicitly link libc?
10405 case "x$archive_cmds_need_lc" in
10407 # Assume -lc should be added
10408 archive_cmds_need_lc=yes
10410 if test "$enable_shared" = yes && test "$GCC" = yes; then
10411 case $archive_cmds in
10413 # FIXME: we may have to deal with multi-command sequences.
10416 # Test whether the compiler implicitly links with -lc since on some
10417 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10418 # to ld, don't add -lc before -lgcc.
10419 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10420 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10422 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } 2>conftest.err; then
10431 libobjs=conftest.$ac_objext
10433 wl=$lt_prog_compiler_wl
10434 pic_flag=$lt_prog_compiler_pic
10440 lt_save_allow_undefined_flag=$allow_undefined_flag
10441 allow_undefined_flag=
10442 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10443 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }
10448 archive_cmds_need_lc=no
10450 archive_cmds_need_lc=yes
10452 allow_undefined_flag=$lt_save_allow_undefined_flag
10454 cat conftest.err 1>&5
10457 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10458 $as_echo "$archive_cmds_need_lc" >&6; }
10621 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10622 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10624 if test "$GCC" = yes; then
10626 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10627 *) lt_awk_arg="/^libraries:/" ;;
10629 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10630 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10631 # if the path contains ";" then we assume it to be the separator
10632 # otherwise default to the standard path separator (i.e. ":") - it is
10633 # assumed that no part of a normal pathname contains ";" but that should
10634 # okay in the real world where ";" in dirpaths is itself problematic.
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10637 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10639 # Ok, now we have the path, separated by spaces, we can step through it
10640 # and add multilib dir if necessary.
10641 lt_tmp_lt_search_path_spec=
10642 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10643 for lt_sys_path in $lt_search_path_spec; do
10644 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10645 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10647 test -d "$lt_sys_path" && \
10648 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10651 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10652 BEGIN {RS=" "; FS="/|\n";} {
10655 for (lt_i = NF; lt_i > 0; lt_i--) {
10656 if ($lt_i != "" && $lt_i != ".") {
10657 if ($lt_i == "..") {
10660 if (lt_count == 0) {
10661 lt_foo="/" $lt_i lt_foo;
10668 if (lt_foo != "") { lt_freq[lt_foo]++; }
10669 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10671 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10673 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10675 library_names_spec=
10676 libname_spec='lib$name'
10680 postuninstall_cmds=
10684 shlibpath_overrides_runpath=unknown
10686 dynamic_linker="$host_os ld.so"
10687 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10688 need_lib_prefix=unknown
10689 hardcode_into_libs=no
10691 # when you set need_version to no, make sure it does not cause -set_version
10692 # flags to be left without arguments
10693 need_version=unknown
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10699 shlibpath_var=LIBPATH
10701 # AIX 3 has no versioning support, so we append a major version to the name.
10702 soname_spec='${libname}${release}${shared_ext}$major'
10709 hardcode_into_libs=yes
10710 if test "$host_cpu" = ia64; then
10711 # AIX 5 supports IA64
10712 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10713 shlibpath_var=LD_LIBRARY_PATH
10715 # With GCC up to 2.95.x, collect2 would create an import file
10716 # for dependence libraries. The import file would start with
10717 # the line `#! .'. This would cause the generated library to
10718 # depend on `.', always an invalid library. This was fixed in
10719 # development snapshots of GCC prior to 3.0.
10721 aix4 | aix4.[01] | aix4.[01].*)
10722 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10724 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10727 can_build_shared=no
10731 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10732 # soname into executable. Probably we can add versioning support to
10733 # collect2, so additional links can be useful in future.
10734 if test "$aix_use_runtimelinking" = yes; then
10735 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10736 # instead of lib<name>.a to let people know that these are not
10737 # typical AIX shared libraries.
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 # We preserve .a as extension for shared libraries through AIX4.2
10741 # and later when we are not doing run time linking.
10742 library_names_spec='${libname}${release}.a $libname.a'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10745 shlibpath_var=LIBPATH
10752 # Since July 2007 AmigaOS4 officially supports .so libraries.
10753 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 library_names_spec='$libname.ixlibrary $libname.a'
10758 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10759 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'
10765 library_names_spec='${libname}${shared_ext}'
10766 dynamic_linker="$host_os ld.so"
10767 shlibpath_var=LIBRARY_PATH
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10778 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10779 # the default ld.so.conf also contains /usr/contrib/lib and
10780 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10781 # libtool to hard-code these into programs
10784 cygwin* | mingw* | pw32* | cegcc*)
10785 version_type=windows
10790 case $GCC,$host_os in
10791 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10792 library_names_spec='$libname.dll.a'
10793 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10794 postinstall_cmds='base_file=`basename \${file}`~
10795 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10796 dldir=$destdir/`dirname \$dlpath`~
10797 test -d \$dldir || mkdir -p \$dldir~
10798 $install_prog $dir/$dlname \$dldir/$dlname~
10799 chmod a+x \$dldir/$dlname~
10800 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10801 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10804 dlpath=$dir/\$dldll~
10806 shlibpath_overrides_runpath=yes
10810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10811 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10815 # MinGW DLLs use traditional 'lib' prefix
10816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10817 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10818 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10819 # It is most probably a Windows format PATH printed by
10820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10821 # path with ; separators, and with drive letters. We can handle the
10822 # drive letters (cygwin fileutils understands them), so leave them,
10823 # especially as we might pass files found there to a mingw objdump,
10824 # which wouldn't understand a cygwinified path. Ahh.
10825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10831 # pw32 DLLs use 'pw' prefix rather than 'lib'
10832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10841 dynamic_linker='Win32 ld.exe'
10842 # FIXME: first we should search . and the directory the executable is in
10846 darwin* | rhapsody*)
10847 dynamic_linker="$host_os dyld"
10848 version_type=darwin
10851 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10852 soname_spec='${libname}${release}${major}$shared_ext'
10853 shlibpath_overrides_runpath=yes
10854 shlibpath_var=DYLD_LIBRARY_PATH
10855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10857 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10866 soname_spec='${libname}${release}${shared_ext}$major'
10867 shlibpath_var=LD_LIBRARY_PATH
10874 freebsd* | dragonfly*)
10875 # DragonFly does not have aout. When/if they implement a new
10876 # versioning mechanism, adjust this.
10877 if test -x /usr/bin/objformat; then
10878 objformat=`/usr/bin/objformat`
10881 freebsd[123]*) objformat=aout ;;
10882 *) objformat=elf ;;
10885 version_type=freebsd-$objformat
10886 case $version_type in
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10897 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=yes
10902 freebsd3.[01]* | freebsdelf3.[01]*)
10903 shlibpath_overrides_runpath=yes
10904 hardcode_into_libs=yes
10906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10908 shlibpath_overrides_runpath=no
10909 hardcode_into_libs=yes
10911 *) # from 4.6 on, and DragonFly
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10925 hardcode_into_libs=yes
10928 hpux9* | hpux10* | hpux11*)
10929 # Give a soname corresponding to the major version so that dld.sl refuses to
10930 # link against other versions.
10937 hardcode_into_libs=yes
10938 dynamic_linker="$host_os dld.so"
10939 shlibpath_var=LD_LIBRARY_PATH
10940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 if test "X$HPUX_IA64_MODE" = X32; then
10944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10952 hardcode_into_libs=yes
10953 dynamic_linker="$host_os dld.sl"
10954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957 soname_spec='${libname}${release}${shared_ext}$major'
10958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10963 dynamic_linker="$host_os dld.sl"
10964 shlibpath_var=SHLIB_PATH
10965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10967 soname_spec='${libname}${release}${shared_ext}$major'
10970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10971 postinstall_cmds='chmod 555 $lib'
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10986 irix5* | irix6* | nonstopux*)
10988 nonstopux*) version_type=nonstopux ;;
10990 if test "$lt_cv_prog_gnu_ld" = yes; then
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11001 irix5* | nonstopux*)
11002 libsuff= shlibsuff=
11005 case $LD in # libtool.m4 will add one of these switches to LD
11006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11007 libsuff= shlibsuff= libmagic=32-bit;;
11008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11009 libsuff=32 shlibsuff=N32 libmagic=N32;;
11010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11012 *) libsuff= shlibsuff= libmagic=never-match;;
11016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11017 shlibpath_overrides_runpath=no
11018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11020 hardcode_into_libs=yes
11023 # No shared lib support for Linux oldld, aout, or coff.
11024 linux*oldld* | linux*aout* | linux*coff*)
11028 # This must be Linux ELF.
11029 linux* | k*bsd*-gnu)
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11038 # Some binutils ld are patched to set DT_RUNPATH
11039 save_LDFLAGS=$LDFLAGS
11040 save_libdir=$libdir
11041 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11042 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11058 rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
11060 case "(($ac_try" in
11061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062 *) ac_try_echo=$ac_try;;
11064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11065 $as_echo "$ac_try_echo") >&5
11066 (eval "$ac_link") 2>conftest.er1
11068 grep -v '^ *+' conftest.er1 >conftest.err
11070 cat conftest.err >&5
11071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); } && {
11073 test -z "$ac_c_werror_flag" ||
11074 test ! -s conftest.err
11075 } && test -s conftest$ac_exeext && {
11076 test "$cross_compiling" = yes ||
11077 $as_test_x conftest$ac_exeext
11079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11080 shlibpath_overrides_runpath=yes
11084 $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11090 rm -rf conftest.dSYM
11091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11092 conftest$ac_exeext conftest.$ac_ext
11093 LDFLAGS=$save_LDFLAGS
11094 libdir=$save_libdir
11096 # This implies no fast_install, which is unacceptable.
11097 # Some rework will be needed to allow for fast_install
11098 # before this can be enabled.
11099 hardcode_into_libs=yes
11101 # Add ABI-specific directories to the system library path.
11102 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11104 # Append ld.so.conf contents to the search path
11105 if test -f /etc/ld.so.conf; then
11106 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' ' '`
11107 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11110 # We used to test for /lib/ld.so.1 and disable shared libraries on
11111 # powerpc, because MkLinux only supported shared libraries with the
11112 # GNU dynamic linker. Since this was broken with cross compilers,
11113 # most powerpc-linux boxes support dynamic linking these days and
11114 # people can always --disable-shared, the test was removed, and we
11115 # assume the GNU/Linux dynamic linker is in use.
11116 dynamic_linker='GNU/Linux ld.so'
11123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11126 dynamic_linker='NetBSD (a.out) ld.so'
11128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11129 soname_spec='${libname}${release}${shared_ext}$major'
11130 dynamic_linker='NetBSD ld.elf_so'
11132 shlibpath_var=LD_LIBRARY_PATH
11133 shlibpath_overrides_runpath=yes
11134 hardcode_into_libs=yes
11139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 shlibpath_overrides_runpath=yes
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 soname_spec='${libname}${release}${shared_ext}$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=no
11152 hardcode_into_libs=yes
11153 dynamic_linker='ldqnx.so'
11158 sys_lib_dlsearch_path_spec="/usr/lib"
11160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11163 *) need_version=no ;;
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11170 openbsd2.[89] | openbsd2.[89].*)
11171 shlibpath_overrides_runpath=no
11174 shlibpath_overrides_runpath=yes
11178 shlibpath_overrides_runpath=yes
11183 libname_spec='$name'
11186 library_names_spec='$libname${shared_ext} $libname.a'
11187 dynamic_linker='OS/2 ld.exe'
11188 shlibpath_var=LIBPATH
11191 osf3* | osf4* | osf5*)
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197 shlibpath_var=LD_LIBRARY_PATH
11198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes
11214 hardcode_into_libs=yes
11215 # ldd complains unless libraries are executable
11216 postinstall_cmds='chmod +x $lib'
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 shlibpath_overrides_runpath=yes
11225 if test "$with_gnu_ld" = yes; then
11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11234 soname_spec='${libname}${release}${shared_ext}$major'
11235 shlibpath_var=LD_LIBRARY_PATH
11236 case $host_vendor in
11238 shlibpath_overrides_runpath=no
11240 runpath_var=LD_RUN_PATH
11248 shlibpath_overrides_runpath=no
11249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11255 if test -d /usr/nec ;then
11257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11258 soname_spec='$libname${shared_ext}.$major'
11259 shlibpath_var=LD_LIBRARY_PATH
11263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11264 version_type=freebsd-elf
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11268 soname_spec='${libname}${release}${shared_ext}$major'
11269 shlibpath_var=LD_LIBRARY_PATH
11270 shlibpath_overrides_runpath=yes
11271 hardcode_into_libs=yes
11272 if test "$with_gnu_ld" = yes; then
11273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11282 sys_lib_dlsearch_path_spec='/usr/lib'
11286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 shlibpath_overrides_runpath=no
11293 hardcode_into_libs=yes
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 shlibpath_var=LD_LIBRARY_PATH
11307 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11308 $as_echo "$dynamic_linker" >&6; }
11309 test "$dynamic_linker" = no && can_build_shared=no
11311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11312 if test "$GCC" = yes; then
11313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11319 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11409 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11410 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11412 if test -n "$hardcode_libdir_flag_spec" ||
11413 test -n "$runpath_var" ||
11414 test "X$hardcode_automatic" = "Xyes" ; then
11416 # We can hardcode non-existent directories.
11417 if test "$hardcode_direct" != no &&
11418 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11419 # have to relink, otherwise we might link with an installed library
11420 # when we should be linking with a yet-to-be-installed one
11421 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11422 test "$hardcode_minus_L" != no; then
11423 # Linking always hardcodes the temporary library directory.
11424 hardcode_action=relink
11426 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11427 hardcode_action=immediate
11430 # We cannot hardcode anything, or else we can only hardcode existing
11432 hardcode_action=unsupported
11434 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11435 $as_echo "$hardcode_action" >&6; }
11437 if test "$hardcode_action" = relink ||
11438 test "$inherit_rpath" = yes; then
11439 # Fast installation is not supported
11440 enable_fast_install=no
11441 elif test "$shlibpath_overrides_runpath" = yes ||
11442 test "$enable_shared" = no; then
11443 # Fast installation is not necessary
11444 enable_fast_install=needless
11452 if test "x$enable_dlopen" != xyes; then
11453 enable_dlopen=unknown
11454 enable_dlopen_self=unknown
11455 enable_dlopen_self_static=unknown
11462 lt_cv_dlopen="load_add_on"
11464 lt_cv_dlopen_self=yes
11467 mingw* | pw32* | cegcc*)
11468 lt_cv_dlopen="LoadLibrary"
11473 lt_cv_dlopen="dlopen"
11478 # if libdl is installed we need to link against it
11479 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11480 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11482 $as_echo_n "(cached) " >&6
11484 ac_check_lib_save_LIBS=$LIBS
11486 cat >conftest.$ac_ext <<_ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11493 /* Override any GCC internal prototype to avoid an error.
11494 Use char because int might match the return type of a GCC
11495 builtin and then its argument prototype would still apply. */
11508 rm -f conftest.$ac_objext conftest$ac_exeext
11509 if { (ac_try="$ac_link"
11510 case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11515 $as_echo "$ac_try_echo") >&5
11516 (eval "$ac_link") 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && {
11523 test -z "$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11525 } && test -s conftest$ac_exeext && {
11526 test "$cross_compiling" = yes ||
11527 $as_test_x conftest$ac_exeext
11529 ac_cv_lib_dl_dlopen=yes
11531 $as_echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_cv_lib_dl_dlopen=no
11537 rm -rf conftest.dSYM
11538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11539 conftest$ac_exeext conftest.$ac_ext
11540 LIBS=$ac_check_lib_save_LIBS
11542 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11543 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11544 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11548 lt_cv_dlopen="dyld"
11550 lt_cv_dlopen_self=yes
11557 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11558 $as_echo_n "checking for shl_load... " >&6; }
11559 if test "${ac_cv_func_shl_load+set}" = set; then
11560 $as_echo_n "(cached) " >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11568 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11570 #define shl_load innocuous_shl_load
11572 /* System header to define __stub macros and hopefully few prototypes,
11573 which can conflict with char shl_load (); below.
11574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11575 <limits.h> exists even on freestanding compilers. */
11578 # include <limits.h>
11580 # include <assert.h>
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11592 /* The GNU C library defines this for functions which it implements
11593 to always fail with ENOSYS. Some functions are actually named
11594 something starting with __ and the normal name is an alias. */
11595 #if defined __stub_shl_load || defined __stub___shl_load
11602 return shl_load ();
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11614 $as_echo "$ac_try_echo") >&5
11615 (eval "$ac_link") 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } && {
11622 test -z "$ac_c_werror_flag" ||
11623 test ! -s conftest.err
11624 } && test -s conftest$ac_exeext && {
11625 test "$cross_compiling" = yes ||
11626 $as_test_x conftest$ac_exeext
11628 ac_cv_func_shl_load=yes
11630 $as_echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_cv_func_shl_load=no
11636 rm -rf conftest.dSYM
11637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11638 conftest$ac_exeext conftest.$ac_ext
11640 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11641 $as_echo "$ac_cv_func_shl_load" >&6; }
11642 if test "x$ac_cv_func_shl_load" = x""yes; then
11643 lt_cv_dlopen="shl_load"
11645 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11646 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11647 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11648 $as_echo_n "(cached) " >&6
11650 ac_check_lib_save_LIBS=$LIBS
11652 cat >conftest.$ac_ext <<_ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 /* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
11669 return shl_load ();
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (ac_try="$ac_link"
11676 case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11681 $as_echo "$ac_try_echo") >&5
11682 (eval "$ac_link") 2>conftest.er1
11684 grep -v '^ *+' conftest.er1 >conftest.err
11686 cat conftest.err >&5
11687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } && {
11689 test -z "$ac_c_werror_flag" ||
11690 test ! -s conftest.err
11691 } && test -s conftest$ac_exeext && {
11692 test "$cross_compiling" = yes ||
11693 $as_test_x conftest$ac_exeext
11695 ac_cv_lib_dld_shl_load=yes
11697 $as_echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 ac_cv_lib_dld_shl_load=no
11703 rm -rf conftest.dSYM
11704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11709 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11710 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11711 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11713 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11714 $as_echo_n "checking for dlopen... " >&6; }
11715 if test "${ac_cv_func_dlopen+set}" = set; then
11716 $as_echo_n "(cached) " >&6
11718 cat >conftest.$ac_ext <<_ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11726 #define dlopen innocuous_dlopen
11728 /* System header to define __stub macros and hopefully few prototypes,
11729 which can conflict with char dlopen (); below.
11730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11731 <limits.h> exists even on freestanding compilers. */
11734 # include <limits.h>
11736 # include <assert.h>
11741 /* Override any GCC internal prototype to avoid an error.
11742 Use char because int might match the return type of a GCC
11743 builtin and then its argument prototype would still apply. */
11748 /* The GNU C library defines this for functions which it implements
11749 to always fail with ENOSYS. Some functions are actually named
11750 something starting with __ and the normal name is an alias. */
11751 #if defined __stub_dlopen || defined __stub___dlopen
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (ac_try="$ac_link"
11765 case "(($ac_try" in
11766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11770 $as_echo "$ac_try_echo") >&5
11771 (eval "$ac_link") 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } && {
11778 test -z "$ac_c_werror_flag" ||
11779 test ! -s conftest.err
11780 } && test -s conftest$ac_exeext && {
11781 test "$cross_compiling" = yes ||
11782 $as_test_x conftest$ac_exeext
11784 ac_cv_func_dlopen=yes
11786 $as_echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11789 ac_cv_func_dlopen=no
11792 rm -rf conftest.dSYM
11793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11794 conftest$ac_exeext conftest.$ac_ext
11796 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11797 $as_echo "$ac_cv_func_dlopen" >&6; }
11798 if test "x$ac_cv_func_dlopen" = x""yes; then
11799 lt_cv_dlopen="dlopen"
11801 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11804 $as_echo_n "(cached) " >&6
11806 ac_check_lib_save_LIBS=$LIBS
11808 cat >conftest.$ac_ext <<_ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11830 rm -f conftest.$ac_objext conftest$ac_exeext
11831 if { (ac_try="$ac_link"
11832 case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11837 $as_echo "$ac_try_echo") >&5
11838 (eval "$ac_link") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && {
11845 test -z "$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 } && test -s conftest$ac_exeext && {
11848 test "$cross_compiling" = yes ||
11849 $as_test_x conftest$ac_exeext
11851 ac_cv_lib_dl_dlopen=yes
11853 $as_echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 ac_cv_lib_dl_dlopen=no
11859 rm -rf conftest.dSYM
11860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11861 conftest$ac_exeext conftest.$ac_ext
11862 LIBS=$ac_check_lib_save_LIBS
11864 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11865 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11866 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11869 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11870 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11871 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11872 $as_echo_n "(cached) " >&6
11874 ac_check_lib_save_LIBS=$LIBS
11875 LIBS="-lsvld $LIBS"
11876 cat >conftest.$ac_ext <<_ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11898 rm -f conftest.$ac_objext conftest$ac_exeext
11899 if { (ac_try="$ac_link"
11900 case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905 $as_echo "$ac_try_echo") >&5
11906 (eval "$ac_link") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1 >conftest.err
11910 cat conftest.err >&5
11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && {
11913 test -z "$ac_c_werror_flag" ||
11914 test ! -s conftest.err
11915 } && test -s conftest$ac_exeext && {
11916 test "$cross_compiling" = yes ||
11917 $as_test_x conftest$ac_exeext
11919 ac_cv_lib_svld_dlopen=yes
11921 $as_echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11924 ac_cv_lib_svld_dlopen=no
11927 rm -rf conftest.dSYM
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11933 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11934 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11935 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11937 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11938 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11939 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11940 $as_echo_n "(cached) " >&6
11942 ac_check_lib_save_LIBS=$LIBS
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11951 /* Override any GCC internal prototype to avoid an error.
11952 Use char because int might match the return type of a GCC
11953 builtin and then its argument prototype would still apply. */
11961 return dld_link ();
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11973 $as_echo "$ac_try_echo") >&5
11974 (eval "$ac_link") 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } && {
11981 test -z "$ac_c_werror_flag" ||
11982 test ! -s conftest.err
11983 } && test -s conftest$ac_exeext && {
11984 test "$cross_compiling" = yes ||
11985 $as_test_x conftest$ac_exeext
11987 ac_cv_lib_dld_dld_link=yes
11989 $as_echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_cv_lib_dld_dld_link=no
11995 rm -rf conftest.dSYM
11996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11997 conftest$ac_exeext conftest.$ac_ext
11998 LIBS=$ac_check_lib_save_LIBS
12000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12001 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12002 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12003 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12024 if test "x$lt_cv_dlopen" != xno; then
12030 case $lt_cv_dlopen in
12032 save_CPPFLAGS="$CPPFLAGS"
12033 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12035 save_LDFLAGS="$LDFLAGS"
12036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12039 LIBS="$lt_cv_dlopen_libs $LIBS"
12041 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12042 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12043 if test "${lt_cv_dlopen_self+set}" = set; then
12044 $as_echo_n "(cached) " >&6
12046 if test "$cross_compiling" = yes; then :
12047 lt_cv_dlopen_self=cross
12049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050 lt_status=$lt_dlunknown
12051 cat > conftest.$ac_ext <<_LT_EOF
12052 #line 12052 "configure"
12053 #include "confdefs.h"
12062 # define LT_DLGLOBAL RTLD_GLOBAL
12065 # define LT_DLGLOBAL DL_GLOBAL
12067 # define LT_DLGLOBAL 0
12071 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072 find out it does not work in some platform. */
12073 #ifndef LT_DLLAZY_OR_NOW
12075 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12078 # define LT_DLLAZY_OR_NOW DL_LAZY
12081 # define LT_DLLAZY_OR_NOW RTLD_NOW
12084 # define LT_DLLAZY_OR_NOW DL_NOW
12086 # define LT_DLLAZY_OR_NOW 0
12093 void fnord() { int i=42;}
12096 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12097 int status = $lt_dlunknown;
12101 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12102 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12103 /* dlclose (self); */
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12116 (./conftest; exit; ) >&5 2>/dev/null
12118 case x$lt_status in
12119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12124 # compilation failed
12125 lt_cv_dlopen_self=no
12132 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12133 $as_echo "$lt_cv_dlopen_self" >&6; }
12135 if test "x$lt_cv_dlopen_self" = xyes; then
12136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12137 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12139 if test "${lt_cv_dlopen_self_static+set}" = set; then
12140 $as_echo_n "(cached) " >&6
12142 if test "$cross_compiling" = yes; then :
12143 lt_cv_dlopen_self_static=cross
12145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146 lt_status=$lt_dlunknown
12147 cat > conftest.$ac_ext <<_LT_EOF
12148 #line 12148 "configure"
12149 #include "confdefs.h"
12158 # define LT_DLGLOBAL RTLD_GLOBAL
12161 # define LT_DLGLOBAL DL_GLOBAL
12163 # define LT_DLGLOBAL 0
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168 find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12174 # define LT_DLLAZY_OR_NOW DL_LAZY
12177 # define LT_DLLAZY_OR_NOW RTLD_NOW
12180 # define LT_DLLAZY_OR_NOW DL_NOW
12182 # define LT_DLLAZY_OR_NOW 0
12189 void fnord() { int i=42;}
12192 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12193 int status = $lt_dlunknown;
12197 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12198 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12199 /* dlclose (self); */
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>&5
12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12212 (./conftest; exit; ) >&5 2>/dev/null
12214 case x$lt_status in
12215 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12216 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12217 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12220 # compilation failed
12221 lt_cv_dlopen_self_static=no
12228 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12229 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12232 CPPFLAGS="$save_CPPFLAGS"
12233 LDFLAGS="$save_LDFLAGS"
12238 case $lt_cv_dlopen_self in
12239 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12240 *) enable_dlopen_self=unknown ;;
12243 case $lt_cv_dlopen_self_static in
12244 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12245 *) enable_dlopen_self_static=unknown ;;
12267 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12268 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12269 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12270 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12271 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12272 { $as_echo "$as_me:$LINENO: result: yes" >&5
12273 $as_echo "yes" >&6; }
12275 # FIXME - insert some real tests, host_os isn't really good enough
12278 if test -n "$STRIP" ; then
12279 striplib="$STRIP -x"
12280 old_striplib="$STRIP -S"
12281 { $as_echo "$as_me:$LINENO: result: yes" >&5
12282 $as_echo "yes" >&6; }
12284 { $as_echo "$as_me:$LINENO: result: no" >&5
12285 $as_echo "no" >&6; }
12289 { $as_echo "$as_me:$LINENO: result: no" >&5
12290 $as_echo "no" >&6; }
12306 # Report which library types will actually be built
12307 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12308 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12309 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12310 $as_echo "$can_build_shared" >&6; }
12312 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12313 $as_echo_n "checking whether to build shared libraries... " >&6; }
12314 test "$can_build_shared" = "no" && enable_shared=no
12316 # On AIX, shared libraries and static libraries use the same namespace, and
12317 # are all built from PIC.
12320 test "$enable_shared" = yes && enable_static=no
12321 if test -n "$RANLIB"; then
12322 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12323 postinstall_cmds='$RANLIB $lib'
12328 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12329 test "$enable_shared" = yes && enable_static=no
12333 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12334 $as_echo "$enable_shared" >&6; }
12336 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12337 $as_echo_n "checking whether to build static libraries... " >&6; }
12338 # Make sure either enable_shared or enable_static is yes.
12339 test "$enable_shared" = yes || enable_static=yes
12340 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12341 $as_echo "$enable_static" >&6; }
12348 ac_cpp='$CPP $CPPFLAGS'
12349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12367 ac_config_commands="$ac_config_commands libtool"
12372 # Only expand once:
12378 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12379 if test -n "$ac_tool_prefix"; then
12380 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12381 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12382 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12383 $as_echo_n "checking for $ac_word... " >&6; }
12384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12385 $as_echo_n "(cached) " >&6
12387 case $PKG_CONFIG in
12389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12393 for as_dir in $PATH
12396 test -z "$as_dir" && as_dir=.
12397 for ac_exec_ext in '' $ac_executable_extensions; do
12398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12411 if test -n "$PKG_CONFIG"; then
12412 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12413 $as_echo "$PKG_CONFIG" >&6; }
12415 { $as_echo "$as_me:$LINENO: result: no" >&5
12416 $as_echo "no" >&6; }
12421 if test -z "$ac_cv_path_PKG_CONFIG"; then
12422 ac_pt_PKG_CONFIG=$PKG_CONFIG
12423 # Extract the first word of "pkg-config", so it can be a program name with args.
12424 set dummy pkg-config; ac_word=$2
12425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12426 $as_echo_n "checking for $ac_word... " >&6; }
12427 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12428 $as_echo_n "(cached) " >&6
12430 case $ac_pt_PKG_CONFIG in
12432 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12436 for as_dir in $PATH
12439 test -z "$as_dir" && as_dir=.
12440 for ac_exec_ext in '' $ac_executable_extensions; do
12441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12442 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12453 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12454 if test -n "$ac_pt_PKG_CONFIG"; then
12455 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12456 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12458 { $as_echo "$as_me:$LINENO: result: no" >&5
12459 $as_echo "no" >&6; }
12462 if test "x$ac_pt_PKG_CONFIG" = x; then
12465 case $cross_compiling:$ac_tool_warned in
12467 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12471 PKG_CONFIG=$ac_pt_PKG_CONFIG
12474 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12478 if test -n "$PKG_CONFIG"; then
12479 _pkg_min_version=0.9.0
12480 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12481 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12482 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12483 { $as_echo "$as_me:$LINENO: result: yes" >&5
12484 $as_echo "yes" >&6; }
12486 { $as_echo "$as_me:$LINENO: result: no" >&5
12487 $as_echo "no" >&6; }
12499 if test "x$linux_os" = xyes; then
12508 # Extract the first word of "perl", so it can be a program name with args.
12509 set dummy perl; ac_word=$2
12510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12511 $as_echo_n "checking for $ac_word... " >&6; }
12512 if test "${ac_cv_path_PERL+set}" = set; then
12513 $as_echo_n "(cached) " >&6
12517 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12521 for as_dir in $PATH
12524 test -z "$as_dir" && as_dir=.
12525 for ac_exec_ext in '' $ac_executable_extensions; do
12526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12527 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12538 PERL=$ac_cv_path_PERL
12539 if test -n "$PERL"; then
12540 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12541 $as_echo "$PERL" >&6; }
12543 { $as_echo "$as_me:$LINENO: result: no" >&5
12544 $as_echo "no" >&6; }
12548 # Extract the first word of "blkid", so it can be a program name with args.
12549 set dummy blkid; ac_word=$2
12550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12551 $as_echo_n "checking for $ac_word... " >&6; }
12552 if test "${ac_cv_path_BLKID+set}" = set; then
12553 $as_echo_n "(cached) " >&6
12557 ac_cv_path_BLKID="$BLKID" # Let the user override the test with a path.
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 as_dummy="$PATH:/sbin"
12562 for as_dir in $as_dummy
12565 test -z "$as_dir" && as_dir=.
12566 for ac_exec_ext in '' $ac_executable_extensions; do
12567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568 ac_cv_path_BLKID="$as_dir/$ac_word$ac_exec_ext"
12569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 BLKID=$ac_cv_path_BLKID
12580 if test -n "$BLKID"; then
12581 { $as_echo "$as_me:$LINENO: result: $BLKID" >&5
12582 $as_echo "$BLKID" >&6; }
12584 { $as_echo "$as_me:$LINENO: result: no" >&5
12585 $as_echo "no" >&6; }
12589 # Extract the first word of "vol_id", so it can be a program name with args.
12590 set dummy vol_id; ac_word=$2
12591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 $as_echo_n "checking for $ac_word... " >&6; }
12593 if test "${ac_cv_path_VOLID+set}" = set; then
12594 $as_echo_n "(cached) " >&6
12598 ac_cv_path_VOLID="$VOLID" # Let the user override the test with a path.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 as_dummy="$PATH:/lib/udev"
12603 for as_dir in $as_dummy
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12609 ac_cv_path_VOLID="$as_dir/$ac_word$ac_exec_ext"
12610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12620 VOLID=$ac_cv_path_VOLID
12621 if test -n "$VOLID"; then
12622 { $as_echo "$as_me:$LINENO: result: $VOLID" >&5
12623 $as_echo "$VOLID" >&6; }
12625 { $as_echo "$as_me:$LINENO: result: no" >&5
12626 $as_echo "no" >&6; }
12631 # Check whether --enable-largefile was given.
12632 if test "${enable_largefile+set}" = set; then
12633 enableval=$enable_largefile;
12636 if test "$enable_largefile" != no; then
12638 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
12639 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12640 if test "${ac_cv_sys_largefile_CC+set}" = set; then
12641 $as_echo_n "(cached) " >&6
12643 ac_cv_sys_largefile_CC=no
12644 if test "$GCC" != yes; then
12647 # IRIX 6.2 and later do not support large files by default,
12648 # so use the C compiler's -n32 option if that helps.
12649 cat >conftest.$ac_ext <<_ACEOF
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 #include <sys/types.h>
12656 /* Check that off_t can represent 2**63 - 1 correctly.
12657 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12658 since some C++ compilers masquerading as C compilers
12659 incorrectly reject 9223372036854775807. */
12660 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12661 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12662 && LARGE_OFF_T % 2147483647 == 1)
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12679 $as_echo "$ac_try_echo") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12692 $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f core conftest.err conftest.$ac_objext
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12707 $as_echo "$ac_try_echo") >&5
12708 (eval "$ac_compile") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
12718 ac_cv_sys_largefile_CC=' -n32'; break
12720 $as_echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12726 rm -f core conftest.err conftest.$ac_objext
12730 rm -f conftest.$ac_ext
12733 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
12734 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12735 if test "$ac_cv_sys_largefile_CC" != no; then
12736 CC=$CC$ac_cv_sys_largefile_CC
12739 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12740 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
12742 $as_echo_n "(cached) " >&6
12745 cat >conftest.$ac_ext <<_ACEOF
12748 cat confdefs.h >>conftest.$ac_ext
12749 cat >>conftest.$ac_ext <<_ACEOF
12750 /* end confdefs.h. */
12751 #include <sys/types.h>
12752 /* Check that off_t can represent 2**63 - 1 correctly.
12753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12754 since some C++ compilers masquerading as C compilers
12755 incorrectly reject 9223372036854775807. */
12756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12758 && LARGE_OFF_T % 2147483647 == 1)
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776 (eval "$ac_compile") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.$ac_objext; then
12786 ac_cv_sys_file_offset_bits=no; break
12788 $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 cat >conftest.$ac_ext <<_ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 #define _FILE_OFFSET_BITS 64
12802 #include <sys/types.h>
12803 /* Check that off_t can represent 2**63 - 1 correctly.
12804 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12805 since some C++ compilers masquerading as C compilers
12806 incorrectly reject 9223372036854775807. */
12807 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12808 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12809 && LARGE_OFF_T % 2147483647 == 1)
12819 rm -f conftest.$ac_objext
12820 if { (ac_try="$ac_compile"
12821 case "(($ac_try" in
12822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12823 *) ac_try_echo=$ac_try;;
12825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12826 $as_echo "$ac_try_echo") >&5
12827 (eval "$ac_compile") 2>conftest.er1
12829 grep -v '^ *+' conftest.er1 >conftest.err
12831 cat conftest.err >&5
12832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } && {
12834 test -z "$ac_c_werror_flag" ||
12835 test ! -s conftest.err
12836 } && test -s conftest.$ac_objext; then
12837 ac_cv_sys_file_offset_bits=64; break
12839 $as_echo "$as_me: failed program was:" >&5
12840 sed 's/^/| /' conftest.$ac_ext >&5
12845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12846 ac_cv_sys_file_offset_bits=unknown
12850 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
12851 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12852 case $ac_cv_sys_file_offset_bits in #(
12855 cat >>confdefs.h <<_ACEOF
12856 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12861 if test $ac_cv_sys_file_offset_bits = unknown; then
12862 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
12863 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12864 if test "${ac_cv_sys_large_files+set}" = set; then
12865 $as_echo_n "(cached) " >&6
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 #include <sys/types.h>
12875 /* Check that off_t can represent 2**63 - 1 correctly.
12876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12877 since some C++ compilers masquerading as C compilers
12878 incorrectly reject 9223372036854775807. */
12879 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12881 && LARGE_OFF_T % 2147483647 == 1)
12891 rm -f conftest.$ac_objext
12892 if { (ac_try="$ac_compile"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12898 $as_echo "$ac_try_echo") >&5
12899 (eval "$ac_compile") 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
12909 ac_cv_sys_large_files=no; break
12911 $as_echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 cat >conftest.$ac_ext <<_ACEOF
12921 cat confdefs.h >>conftest.$ac_ext
12922 cat >>conftest.$ac_ext <<_ACEOF
12923 /* end confdefs.h. */
12924 #define _LARGE_FILES 1
12925 #include <sys/types.h>
12926 /* Check that off_t can represent 2**63 - 1 correctly.
12927 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12928 since some C++ compilers masquerading as C compilers
12929 incorrectly reject 9223372036854775807. */
12930 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12931 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12932 && LARGE_OFF_T % 2147483647 == 1)
12942 rm -f conftest.$ac_objext
12943 if { (ac_try="$ac_compile"
12944 case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12949 $as_echo "$ac_try_echo") >&5
12950 (eval "$ac_compile") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } && {
12957 test -z "$ac_c_werror_flag" ||
12958 test ! -s conftest.err
12959 } && test -s conftest.$ac_objext; then
12960 ac_cv_sys_large_files=1; break
12962 $as_echo "$as_me: failed program was:" >&5
12963 sed 's/^/| /' conftest.$ac_ext >&5
12968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 ac_cv_sys_large_files=unknown
12973 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
12974 $as_echo "$ac_cv_sys_large_files" >&6; }
12975 case $ac_cv_sys_large_files in #(
12978 cat >>confdefs.h <<_ACEOF
12979 #define _LARGE_FILES $ac_cv_sys_large_files
12991 for ac_header in linux/compiler.h linux/blkpg.h linux/major.h
12993 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12994 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12995 $as_echo_n "checking for $ac_header... " >&6; }
12996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12997 $as_echo_n "(cached) " >&6
12999 cat >conftest.$ac_ext <<_ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13006 #ifdef HAVE_LINUX_COMPILER_H
13007 #include <linux/compiler.h>
13011 #include <$ac_header>
13013 rm -f conftest.$ac_objext
13014 if { (ac_try="$ac_compile"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13020 $as_echo "$ac_try_echo") >&5
13021 (eval "$ac_compile") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1 >conftest.err
13025 cat conftest.err >&5
13026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } && {
13028 test -z "$ac_c_werror_flag" ||
13029 test ! -s conftest.err
13030 } && test -s conftest.$ac_objext; then
13031 eval "$as_ac_Header=yes"
13033 $as_echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 eval "$as_ac_Header=no"
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041 ac_res=`eval 'as_val=${'$as_ac_Header'}
13042 $as_echo "$as_val"'`
13043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13044 $as_echo "$ac_res" >&6; }
13045 as_val=`eval 'as_val=${'$as_ac_Header'}
13046 $as_echo "$as_val"'`
13047 if test "x$as_val" = x""yes; then
13048 cat >>confdefs.h <<_ACEOF
13049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13091 for ac_header in err.h \
13106 rpcsvc/nfs_prot.h \
13127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13130 $as_echo_n "checking for $ac_header... " >&6; }
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 $as_echo_n "(cached) " >&6
13134 ac_res=`eval 'as_val=${'$as_ac_Header'}
13135 $as_echo "$as_val"'`
13136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13137 $as_echo "$ac_res" >&6; }
13139 # Is the header compilable?
13140 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13141 $as_echo_n "checking $ac_header usability... " >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13149 #include <$ac_header>
13151 rm -f conftest.$ac_objext
13152 if { (ac_try="$ac_compile"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13158 $as_echo "$ac_try_echo") >&5
13159 (eval "$ac_compile") 2>conftest.er1
13161 grep -v '^ *+' conftest.er1 >conftest.err
13163 cat conftest.err >&5
13164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest.$ac_objext; then
13169 ac_header_compiler=yes
13171 $as_echo "$as_me: failed program was:" >&5
13172 sed 's/^/| /' conftest.$ac_ext >&5
13174 ac_header_compiler=no
13177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13179 $as_echo "$ac_header_compiler" >&6; }
13181 # Is the header present?
13182 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13183 $as_echo_n "checking $ac_header presence... " >&6; }
13184 cat >conftest.$ac_ext <<_ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 #include <$ac_header>
13192 if { (ac_try="$ac_cpp conftest.$ac_ext"
13193 case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13201 grep -v '^ *+' conftest.er1 >conftest.err
13203 cat conftest.err >&5
13204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } >/dev/null && {
13206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13209 ac_header_preproc=yes
13211 $as_echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_header_preproc=no
13217 rm -f conftest.err conftest.$ac_ext
13218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 $as_echo "$ac_header_preproc" >&6; }
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13231 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13244 ## ------------------------------ ##
13245 ## Report this to kzak@redhat.com ##
13246 ## ------------------------------ ##
13248 ) | sed "s/^/$as_me: WARNING: /" >&2
13251 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13252 $as_echo_n "checking for $ac_header... " >&6; }
13253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254 $as_echo_n "(cached) " >&6
13256 eval "$as_ac_Header=\$ac_header_preproc"
13258 ac_res=`eval 'as_val=${'$as_ac_Header'}
13259 $as_echo "$as_val"'`
13260 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13261 $as_echo "$ac_res" >&6; }
13264 as_val=`eval 'as_val=${'$as_ac_Header'}
13265 $as_echo "$as_val"'`
13266 if test "x$as_val" = x""yes; then
13267 cat >>confdefs.h <<_ACEOF
13268 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13276 for ac_header in linux/raw.h
13278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13280 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13281 $as_echo_n "checking for $ac_header... " >&6; }
13282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13283 $as_echo_n "(cached) " >&6
13285 ac_res=`eval 'as_val=${'$as_ac_Header'}
13286 $as_echo "$as_val"'`
13287 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13288 $as_echo "$ac_res" >&6; }
13290 # Is the header compilable?
13291 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13292 $as_echo_n "checking $ac_header usability... " >&6; }
13293 cat >conftest.$ac_ext <<_ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 $ac_includes_default
13300 #include <$ac_header>
13302 rm -f conftest.$ac_objext
13303 if { (ac_try="$ac_compile"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310 (eval "$ac_compile") 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest.$ac_objext; then
13320 ac_header_compiler=yes
13322 $as_echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 ac_header_compiler=no
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13330 $as_echo "$ac_header_compiler" >&6; }
13332 # Is the header present?
13333 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13334 $as_echo_n "checking $ac_header presence... " >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 #include <$ac_header>
13343 if { (ac_try="$ac_cpp conftest.$ac_ext"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13349 $as_echo "$ac_try_echo") >&5
13350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13352 grep -v '^ *+' conftest.er1 >conftest.err
13354 cat conftest.err >&5
13355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } >/dev/null && {
13357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13360 ac_header_preproc=yes
13362 $as_echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_header_preproc=no
13368 rm -f conftest.err conftest.$ac_ext
13369 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 $as_echo "$ac_header_preproc" >&6; }
13372 # So? What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13376 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13378 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13379 ac_header_preproc=yes
13382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13383 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13385 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13387 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13389 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13391 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13393 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13395 ## ------------------------------ ##
13396 ## Report this to kzak@redhat.com ##
13397 ## ------------------------------ ##
13399 ) | sed "s/^/$as_me: WARNING: /" >&2
13402 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13403 $as_echo_n "checking for $ac_header... " >&6; }
13404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13405 $as_echo_n "(cached) " >&6
13407 eval "$as_ac_Header=\$ac_header_preproc"
13409 ac_res=`eval 'as_val=${'$as_ac_Header'}
13410 $as_echo "$as_val"'`
13411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13412 $as_echo "$ac_res" >&6; }
13415 as_val=`eval 'as_val=${'$as_ac_Header'}
13416 $as_echo "$as_val"'`
13417 if test "x$as_val" = x""yes; then
13418 cat >>confdefs.h <<_ACEOF
13419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13443 { $as_echo "$as_me:$LINENO: checking whether _NL_TIME_WEEK_1STDAY is declared" >&5
13444 $as_echo_n "checking whether _NL_TIME_WEEK_1STDAY is declared... " >&6; }
13445 if test "${ac_cv_have_decl__NL_TIME_WEEK_1STDAY+set}" = set; then
13446 $as_echo_n "(cached) " >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <langinfo.h>
13459 #ifndef _NL_TIME_WEEK_1STDAY
13460 (void) _NL_TIME_WEEK_1STDAY;
13467 rm -f conftest.$ac_objext
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13477 grep -v '^ *+' conftest.er1 >conftest.err
13479 cat conftest.err >&5
13480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.$ac_objext; then
13485 ac_cv_have_decl__NL_TIME_WEEK_1STDAY=yes
13487 $as_echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_cv_have_decl__NL_TIME_WEEK_1STDAY=no
13493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13495 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__NL_TIME_WEEK_1STDAY" >&5
13496 $as_echo "$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" >&6; }
13497 if test "x$ac_cv_have_decl__NL_TIME_WEEK_1STDAY" = x""yes; then
13499 cat >>confdefs.h <<_ACEOF
13500 #define HAVE_DECL__NL_TIME_WEEK_1STDAY 1
13505 cat >>confdefs.h <<_ACEOF
13506 #define HAVE_DECL__NL_TIME_WEEK_1STDAY 0
13536 for ac_func in inet_aton \
13539 get_current_dir_name \
13559 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13560 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13561 $as_echo_n "checking for $ac_func... " >&6; }
13562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13563 $as_echo_n "(cached) " >&6
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13573 #define $ac_func innocuous_$ac_func
13575 /* System header to define __stub macros and hopefully few prototypes,
13576 which can conflict with char $ac_func (); below.
13577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13578 <limits.h> exists even on freestanding compilers. */
13581 # include <limits.h>
13583 # include <assert.h>
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13595 /* The GNU C library defines this for functions which it implements
13596 to always fail with ENOSYS. Some functions are actually named
13597 something starting with __ and the normal name is an alias. */
13598 #if defined __stub_$ac_func || defined __stub___$ac_func
13605 return $ac_func ();
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13617 $as_echo "$ac_try_echo") >&5
13618 (eval "$ac_link") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest$ac_exeext && {
13628 test "$cross_compiling" = yes ||
13629 $as_test_x conftest$ac_exeext
13631 eval "$as_ac_var=yes"
13633 $as_echo "$as_me: failed program was:" >&5
13634 sed 's/^/| /' conftest.$ac_ext >&5
13636 eval "$as_ac_var=no"
13639 rm -rf conftest.dSYM
13640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13641 conftest$ac_exeext conftest.$ac_ext
13643 ac_res=`eval 'as_val=${'$as_ac_var'}
13644 $as_echo "$as_val"'`
13645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13647 as_val=`eval 'as_val=${'$as_ac_var'}
13648 $as_echo "$as_val"'`
13649 if test "x$as_val" = x""yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13657 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13658 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13659 if test "${ac_cv_sys_largefile_source+set}" = set; then
13660 $as_echo_n "(cached) " >&6
13663 cat >conftest.$ac_ext <<_ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h. */
13669 #include <sys/types.h> /* for off_t */
13674 int (*fp) (FILE *, off_t, int) = fseeko;
13675 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13680 rm -f conftest.$ac_objext conftest$ac_exeext
13681 if { (ac_try="$ac_link"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13687 $as_echo "$ac_try_echo") >&5
13688 (eval "$ac_link") 2>conftest.er1
13690 grep -v '^ *+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest$ac_exeext && {
13698 test "$cross_compiling" = yes ||
13699 $as_test_x conftest$ac_exeext
13701 ac_cv_sys_largefile_source=no; break
13703 $as_echo "$as_me: failed program was:" >&5
13704 sed 's/^/| /' conftest.$ac_ext >&5
13709 rm -rf conftest.dSYM
13710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13711 conftest$ac_exeext conftest.$ac_ext
13712 cat >conftest.$ac_ext <<_ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #define _LARGEFILE_SOURCE 1
13719 #include <sys/types.h> /* for off_t */
13724 int (*fp) (FILE *, off_t, int) = fseeko;
13725 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (ac_try="$ac_link"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13737 $as_echo "$ac_try_echo") >&5
13738 (eval "$ac_link") 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest$ac_exeext && {
13748 test "$cross_compiling" = yes ||
13749 $as_test_x conftest$ac_exeext
13751 ac_cv_sys_largefile_source=1; break
13753 $as_echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.$ac_ext >&5
13759 rm -rf conftest.dSYM
13760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13761 conftest$ac_exeext conftest.$ac_ext
13762 ac_cv_sys_largefile_source=unknown
13766 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
13767 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13768 case $ac_cv_sys_largefile_source in #(
13771 cat >>confdefs.h <<_ACEOF
13772 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13778 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13779 # in glibc 2.1.3, but that breaks too many other things.
13780 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13781 if test $ac_cv_sys_largefile_source != unknown; then
13783 cat >>confdefs.h <<\_ACEOF
13784 #define HAVE_FSEEKO 1
13793 for ac_func in openat fstatat unlinkat
13795 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13796 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13797 $as_echo_n "checking for $ac_func... " >&6; }
13798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13799 $as_echo_n "(cached) " >&6
13801 cat >conftest.$ac_ext <<_ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13809 #define $ac_func innocuous_$ac_func
13811 /* System header to define __stub macros and hopefully few prototypes,
13812 which can conflict with char $ac_func (); below.
13813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13814 <limits.h> exists even on freestanding compilers. */
13817 # include <limits.h>
13819 # include <assert.h>
13824 /* Override any GCC internal prototype to avoid an error.
13825 Use char because int might match the return type of a GCC
13826 builtin and then its argument prototype would still apply. */
13831 /* The GNU C library defines this for functions which it implements
13832 to always fail with ENOSYS. Some functions are actually named
13833 something starting with __ and the normal name is an alias. */
13834 #if defined __stub_$ac_func || defined __stub___$ac_func
13841 return $ac_func ();
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (ac_try="$ac_link"
13848 case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13853 $as_echo "$ac_try_echo") >&5
13854 (eval "$ac_link") 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest$ac_exeext && {
13864 test "$cross_compiling" = yes ||
13865 $as_test_x conftest$ac_exeext
13867 eval "$as_ac_var=yes"
13869 $as_echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13872 eval "$as_ac_var=no"
13875 rm -rf conftest.dSYM
13876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13877 conftest$ac_exeext conftest.$ac_ext
13879 ac_res=`eval 'as_val=${'$as_ac_var'}
13880 $as_echo "$as_val"'`
13881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13882 $as_echo "$ac_res" >&6; }
13883 as_val=`eval 'as_val=${'$as_ac_var'}
13884 $as_echo "$as_val"'`
13885 if test "x$as_val" = x""yes; then
13886 cat >>confdefs.h <<_ACEOF
13887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13896 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13897 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
13898 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13899 $as_echo_n "(cached) " >&6
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13907 #include <sys/types.h>
13908 #include <sys/socket.h>
13913 static struct sockaddr ac_aggr;
13914 if (ac_aggr.sa_len)
13920 rm -f conftest.$ac_objext
13921 if { (ac_try="$ac_compile"
13922 case "(($ac_try" in
13923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13924 *) ac_try_echo=$ac_try;;
13926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13927 $as_echo "$ac_try_echo") >&5
13928 (eval "$ac_compile") 2>conftest.er1
13930 grep -v '^ *+' conftest.er1 >conftest.err
13932 cat conftest.err >&5
13933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } && {
13935 test -z "$ac_c_werror_flag" ||
13936 test ! -s conftest.err
13937 } && test -s conftest.$ac_objext; then
13938 ac_cv_member_struct_sockaddr_sa_len=yes
13940 $as_echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13943 cat >conftest.$ac_ext <<_ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #include <sys/types.h>
13950 #include <sys/socket.h>
13955 static struct sockaddr ac_aggr;
13956 if (sizeof ac_aggr.sa_len)
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1 >conftest.err
13974 cat conftest.err >&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 ac_cv_member_struct_sockaddr_sa_len=yes
13982 $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13985 ac_cv_member_struct_sockaddr_sa_len=no
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13994 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
13995 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
13997 cat >>confdefs.h <<_ACEOF
13998 #define HAVE_SA_LEN 1
14006 # Check whether --enable-static-programs was given.
14007 if test "${enable_static_programs+set}" = set; then
14008 enableval=$enable_static_programs;
14012 case $enable_static_programs in
14013 yes) enable_static_programs=losetup,mount,umount,fdisk,sfdisk,blkid ;;
14014 no) enable_static_programs= ;;
14018 case ,$enable_static_programs, in
14019 *,losetup,*) static_losetup=yes ;;
14021 if test "x$static_losetup" = xyes; then
14022 HAVE_STATIC_LOSETUP_TRUE=
14023 HAVE_STATIC_LOSETUP_FALSE='#'
14025 HAVE_STATIC_LOSETUP_TRUE='#'
14026 HAVE_STATIC_LOSETUP_FALSE=
14030 case ,$enable_static_programs, in
14031 *,mount,*) static_mount=yes ;;
14033 if test "x$static_mount" = xyes; then
14034 HAVE_STATIC_MOUNT_TRUE=
14035 HAVE_STATIC_MOUNT_FALSE='#'
14037 HAVE_STATIC_MOUNT_TRUE='#'
14038 HAVE_STATIC_MOUNT_FALSE=
14042 case ,$enable_static_programs, in
14043 *,umount,*) static_umount=yes ;;
14045 if test "x$static_umount" = xyes; then
14046 HAVE_STATIC_UMOUNT_TRUE=
14047 HAVE_STATIC_UMOUNT_FALSE='#'
14049 HAVE_STATIC_UMOUNT_TRUE='#'
14050 HAVE_STATIC_UMOUNT_FALSE=
14054 case ,$enable_static_programs, in
14055 *,fdisk,*) static_fdisk=yes ;;
14057 if test "x$static_fdisk" = xyes; then
14058 HAVE_STATIC_FDISK_TRUE=
14059 HAVE_STATIC_FDISK_FALSE='#'
14061 HAVE_STATIC_FDISK_TRUE='#'
14062 HAVE_STATIC_FDISK_FALSE=
14066 case ,$enable_static_programs, in
14067 *,sfdisk,*) static_sfdisk=yes ;;
14069 if test "x$static_sfdisk" = xyes; then
14070 HAVE_STATIC_SFDISK_TRUE=
14071 HAVE_STATIC_SFDISK_FALSE='#'
14073 HAVE_STATIC_SFDISK_TRUE='#'
14074 HAVE_STATIC_SFDISK_FALSE=
14078 case ,$enable_static_programs, in
14079 *,blkid,*) static_blkid=yes ;;
14081 if test "x$static_blkid" = xyes; then
14082 HAVE_STATIC_BLKID_TRUE=
14083 HAVE_STATIC_BLKID_FALSE='#'
14085 HAVE_STATIC_BLKID_TRUE='#'
14086 HAVE_STATIC_BLKID_FALSE=
14100 # Check whether --enable-tls was given.
14101 if test "${enable_tls+set}" = set; then
14102 enableval=$enable_tls;
14108 if test "x$enable_tls" = xyes; then
14110 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
14111 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
14112 if test "${ac_cv_tls+set}" = set; then
14113 $as_echo_n "(cached) " >&6
14116 ax_tls_keywords="__thread __declspec(thread) none"
14117 for ax_tls_keyword in $ax_tls_keywords; do
14118 case $ax_tls_keyword in
14119 none) ac_cv_tls=none ; break ;;
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <stdlib.h>
14130 static $ax_tls_keyword int bar;
14141 rm -f conftest.$ac_objext
14142 if { (ac_try="$ac_compile"
14143 case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14148 $as_echo "$ac_try_echo") >&5
14149 (eval "$ac_compile") 2>conftest.er1
14151 grep -v '^ *+' conftest.er1 >conftest.err
14153 cat conftest.err >&5
14154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest.$ac_objext; then
14159 ac_cv_tls=$ax_tls_keyword ; break
14161 $as_echo "$as_me: failed program was:" >&5
14162 sed 's/^/| /' conftest.$ac_ext >&5
14168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14175 if test "$ac_cv_tls" != "none"; then
14177 cat >>confdefs.h <<_ACEOF
14178 #define TLS $ac_cv_tls
14182 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
14183 $as_echo "$ac_cv_tls" >&6; }
14188 # Check whether --enable-mount was given.
14189 if test "${enable_mount+set}" = set; then
14190 enableval=$enable_mount;
14197 if test "x$enable_mount" = xcheck; then
14198 if test "x$linux_os" = xno; then
14199 { $as_echo "$as_me:$LINENO: WARNING: non-linux system; do not build mount utilities" >&5
14200 $as_echo "$as_me: WARNING: non-linux system; do not build mount utilities" >&2;}
14203 elif test "x$enable_mount" = xno; then
14206 if test "x$build_mount" = xyes; then
14208 BUILD_MOUNT_FALSE='#'
14210 BUILD_MOUNT_TRUE='#'
14216 # Check whether --enable-fsck was given.
14217 if test "${enable_fsck+set}" = set; then
14218 enableval=$enable_fsck;
14224 if test "x$enable_fsck" = xyes; then
14226 BUILD_FSCK_FALSE='#'
14228 BUILD_FSCK_TRUE='#'
14234 # Check whether --enable-libuuid was given.
14235 if test "${enable_libuuid+set}" = set; then
14236 enableval=$enable_libuuid;
14244 if test "x$enable_libuuid" = xyes; then
14245 BUILD_LIBUUID_TRUE=
14246 BUILD_LIBUUID_FALSE='#'
14248 BUILD_LIBUUID_TRUE='#'
14249 BUILD_LIBUUID_FALSE=
14254 if test "x$enable_libuuid" = xno; then
14255 # Check for external (e2fsprogs) libuuid
14258 { $as_echo "$as_me:$LINENO: checking for UUID" >&5
14259 $as_echo_n "checking for UUID... " >&6; }
14261 if test -n "$UUID_CFLAGS"; then
14262 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
14263 elif test -n "$PKG_CONFIG"; then
14264 if test -n "$PKG_CONFIG" && \
14265 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5
14266 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; then
14270 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
14277 if test -n "$UUID_LIBS"; then
14278 pkg_cv_UUID_LIBS="$UUID_LIBS"
14279 elif test -n "$PKG_CONFIG"; then
14280 if test -n "$PKG_CONFIG" && \
14281 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"uuid\"") >&5
14282 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
14284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; then
14286 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
14296 if test $pkg_failed = yes; then
14298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14299 _pkg_short_errors_supported=yes
14301 _pkg_short_errors_supported=no
14303 if test $_pkg_short_errors_supported = yes; then
14304 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "uuid" 2>&1`
14306 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors "uuid" 2>&1`
14308 # Put the nasty error message in config.log where it belongs
14309 echo "$UUID_PKG_ERRORS" >&5
14311 { $as_echo "$as_me:$LINENO: result: no" >&5
14312 $as_echo "no" >&6; }
14314 elif test $pkg_failed = untried; then
14317 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
14318 UUID_LIBS=$pkg_cv_UUID_LIBS
14319 { $as_echo "$as_me:$LINENO: result: yes" >&5
14320 $as_echo "yes" >&6; }
14323 if test "x$have_uuid" = xno; then
14324 # system without pkg-config or so, try classic check
14325 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
14326 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
14327 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
14328 $as_echo_n "(cached) " >&6
14330 ac_check_lib_save_LIBS=$LIBS
14331 LIBS="-luuid $LIBS"
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14345 char uuid_is_null ();
14349 return uuid_is_null ();
14354 rm -f conftest.$ac_objext conftest$ac_exeext
14355 if { (ac_try="$ac_link"
14356 case "(($ac_try" in
14357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14358 *) ac_try_echo=$ac_try;;
14360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14361 $as_echo "$ac_try_echo") >&5
14362 (eval "$ac_link") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1 >conftest.err
14366 cat conftest.err >&5
14367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } && {
14369 test -z "$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14371 } && test -s conftest$ac_exeext && {
14372 test "$cross_compiling" = yes ||
14373 $as_test_x conftest$ac_exeext
14375 ac_cv_lib_uuid_uuid_is_null=yes
14377 $as_echo "$as_me: failed program was:" >&5
14378 sed 's/^/| /' conftest.$ac_ext >&5
14380 ac_cv_lib_uuid_uuid_is_null=no
14383 rm -rf conftest.dSYM
14384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14385 conftest$ac_exeext conftest.$ac_ext
14386 LIBS=$ac_check_lib_save_LIBS
14388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
14389 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
14390 if test "x$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
14397 if test "x$have_uuid" = xyes; then
14399 old_CFLAGS="$CFLAGS"
14400 old_CPPFLAGS="$CPPFLAGS"
14401 old_LDFLAGS="$LDFLAGS"
14402 CFLAGS="$CFLAGS $UUID_CFLAGS"
14403 CPPFLAGS="$CPPFLAGS $UUID_CFLAGS"
14404 LDFLAGS="$LDFLAGS $UUID_LIBS"
14408 for ac_header in uuid.h uuid/uuid.h
14410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14413 $as_echo_n "checking for $ac_header... " >&6; }
14414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14415 $as_echo_n "(cached) " >&6
14417 ac_res=`eval 'as_val=${'$as_ac_Header'}
14418 $as_echo "$as_val"'`
14419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14420 $as_echo "$ac_res" >&6; }
14422 # Is the header compilable?
14423 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14424 $as_echo_n "checking $ac_header usability... " >&6; }
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14431 $ac_includes_default
14432 #include <$ac_header>
14434 rm -f conftest.$ac_objext
14435 if { (ac_try="$ac_compile"
14436 case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14441 $as_echo "$ac_try_echo") >&5
14442 (eval "$ac_compile") 2>conftest.er1
14444 grep -v '^ *+' conftest.er1 >conftest.err
14446 cat conftest.err >&5
14447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } && {
14449 test -z "$ac_c_werror_flag" ||
14450 test ! -s conftest.err
14451 } && test -s conftest.$ac_objext; then
14452 ac_header_compiler=yes
14454 $as_echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14457 ac_header_compiler=no
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14462 $as_echo "$ac_header_compiler" >&6; }
14464 # Is the header present?
14465 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14466 $as_echo_n "checking $ac_header presence... " >&6; }
14467 cat >conftest.$ac_ext <<_ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h. */
14473 #include <$ac_header>
14475 if { (ac_try="$ac_cpp conftest.$ac_ext"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14481 $as_echo "$ac_try_echo") >&5
14482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14484 grep -v '^ *+' conftest.er1 >conftest.err
14486 cat conftest.err >&5
14487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } >/dev/null && {
14489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14490 test ! -s conftest.err
14492 ac_header_preproc=yes
14494 $as_echo "$as_me: failed program was:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_header_preproc=no
14500 rm -f conftest.err conftest.$ac_ext
14501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14502 $as_echo "$ac_header_preproc" >&6; }
14504 # So? What about this header?
14505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14508 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14510 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14511 ac_header_preproc=yes
14514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14515 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14517 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14519 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14521 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14523 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14525 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14527 ## ------------------------------ ##
14528 ## Report this to kzak@redhat.com ##
14529 ## ------------------------------ ##
14531 ) | sed "s/^/$as_me: WARNING: /" >&2
14534 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14535 $as_echo_n "checking for $ac_header... " >&6; }
14536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14537 $as_echo_n "(cached) " >&6
14539 eval "$as_ac_Header=\$ac_header_preproc"
14541 ac_res=`eval 'as_val=${'$as_ac_Header'}
14542 $as_echo "$as_val"'`
14543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14544 $as_echo "$ac_res" >&6; }
14547 as_val=`eval 'as_val=${'$as_ac_Header'}
14548 $as_echo "$as_val"'`
14549 if test "x$as_val" = x""yes; then
14550 cat >>confdefs.h <<_ACEOF
14551 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14559 CFLAGS="$old_CFLAGS"
14560 CPPFLAGS="$old_CPPFLAGS"
14561 LDFLAGS="$old_LDFLAGS"
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_UUID_H 1
14573 if test "x$have_uuid" = xyes; then
14575 cat >>confdefs.h <<\_ACEOF
14576 #define HAVE_LIBUUID 1
14580 { $as_echo "$as_me:$LINENO: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&5
14581 $as_echo "$as_me: WARNING: uuid library is not found; mkswap(8) will not generate UUIDs" >&2;}
14583 if test "x$have_uuid" = xyes; then
14585 HAVE_UUID_FALSE='#'
14592 : ${UUID_LIBS='-luuid'}
14595 # Check whether --enable-uuidd was given.
14596 if test "${enable_uuidd+set}" = set; then
14597 enableval=$enable_uuidd;
14604 case "$enable_uuidd:$have_uuid" in
14606 { { $as_echo "$as_me:$LINENO: error: cannot enable uuidd when libuuid is disabled" >&5
14607 $as_echo "$as_me: error: cannot enable uuidd when libuuid is disabled" >&2;}
14608 { (exit 1); exit 1; }; } ;;
14610 enable_uuidd=$have_uuid ;;
14612 if test "x$enable_uuidd" = xyes; then
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_UUIDD 1
14619 if test "x$enable_uuidd" = xyes; then
14621 BUILD_UUIDD_FALSE='#'
14623 BUILD_UUIDD_TRUE='#'
14629 # Check whether --enable-libblkid was given.
14630 if test "${enable_libblkid+set}" = set; then
14631 enableval=$enable_libblkid;
14633 enable_libblkid=yes
14639 if test "x$enable_libblkid" = xyes; then
14640 BUILD_LIBBLKID_TRUE=
14641 BUILD_LIBBLKID_FALSE='#'
14643 BUILD_LIBBLKID_TRUE='#'
14644 BUILD_LIBBLKID_FALSE=
14648 cat >>confdefs.h <<_ACEOF
14649 #define LIBBLKID_VERSION "$LIBBLKID_VERSION"
14653 cat >>confdefs.h <<_ACEOF
14654 #define LIBBLKID_DATE "$LIBBLKID_DATE"
14659 if test "x$enable_libblkid" = xno; then
14660 if test "x$build_mount" = xyes || test "x$enable_fsck" = xyes; then
14661 # Check for external (e2fsprogs) libblkid
14664 { $as_echo "$as_me:$LINENO: checking for BLKID" >&5
14665 $as_echo_n "checking for BLKID... " >&6; }
14667 if test -n "$BLKID_CFLAGS"; then
14668 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
14669 elif test -n "$PKG_CONFIG"; then
14670 if test -n "$PKG_CONFIG" && \
14671 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"blkid\"") >&5
14672 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; then
14676 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid" 2>/dev/null`
14683 if test -n "$BLKID_LIBS"; then
14684 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
14685 elif test -n "$PKG_CONFIG"; then
14686 if test -n "$PKG_CONFIG" && \
14687 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"blkid\"") >&5
14688 ($PKG_CONFIG --exists --print-errors "blkid") 2>&5
14690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; then
14692 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid" 2>/dev/null`
14702 if test $pkg_failed = yes; then
14704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14705 _pkg_short_errors_supported=yes
14707 _pkg_short_errors_supported=no
14709 if test $_pkg_short_errors_supported = yes; then
14710 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "blkid" 2>&1`
14712 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors "blkid" 2>&1`
14714 # Put the nasty error message in config.log where it belongs
14715 echo "$BLKID_PKG_ERRORS" >&5
14717 { $as_echo "$as_me:$LINENO: result: no" >&5
14718 $as_echo "no" >&6; }
14720 elif test $pkg_failed = untried; then
14723 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
14724 BLKID_LIBS=$pkg_cv_BLKID_LIBS
14725 { $as_echo "$as_me:$LINENO: result: yes" >&5
14726 $as_echo "yes" >&6; }
14729 if test "x$have_blkid" = xno; then
14730 # system without pkg-config or so, try classic check
14731 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
14732 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
14733 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
14734 $as_echo_n "(cached) " >&6
14736 ac_check_lib_save_LIBS=$LIBS
14737 LIBS="-lblkid $LIBS"
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14745 /* Override any GCC internal prototype to avoid an error.
14746 Use char because int might match the return type of a GCC
14747 builtin and then its argument prototype would still apply. */
14751 char blkid_get_cache ();
14755 return blkid_get_cache ();
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14767 $as_echo "$ac_try_echo") >&5
14768 (eval "$ac_link") 2>conftest.er1
14770 grep -v '^ *+' conftest.er1 >conftest.err
14772 cat conftest.err >&5
14773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest$ac_exeext && {
14778 test "$cross_compiling" = yes ||
14779 $as_test_x conftest$ac_exeext
14781 ac_cv_lib_blkid_blkid_get_cache=yes
14783 $as_echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14786 ac_cv_lib_blkid_blkid_get_cache=no
14789 rm -rf conftest.dSYM
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791 conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14794 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
14795 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
14796 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
14803 if test "x$have_blkid" = xyes; then
14805 old_CFLAGS="$CFLAGS"
14806 old_CPPFLAGS="$CPPFLAGS"
14807 old_LDFLAGS="$LDFLAGS"
14808 CFLAGS="$CFLAGS $BLKID_CFLAGS"
14809 CPPFLAGS="$CPPFLAGS $BLKID_CFLAGS"
14810 LDFLAGS="$LDFLAGS $BLKID_LIBS"
14814 for ac_header in blkid.h blkid/blkid.h
14816 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14819 $as_echo_n "checking for $ac_header... " >&6; }
14820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14821 $as_echo_n "(cached) " >&6
14823 ac_res=`eval 'as_val=${'$as_ac_Header'}
14824 $as_echo "$as_val"'`
14825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14826 $as_echo "$ac_res" >&6; }
14828 # Is the header compilable?
14829 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14830 $as_echo_n "checking $ac_header usability... " >&6; }
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 $ac_includes_default
14838 #include <$ac_header>
14840 rm -f conftest.$ac_objext
14841 if { (ac_try="$ac_compile"
14842 case "(($ac_try" in
14843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14844 *) ac_try_echo=$ac_try;;
14846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14847 $as_echo "$ac_try_echo") >&5
14848 (eval "$ac_compile") 2>conftest.er1
14850 grep -v '^ *+' conftest.er1 >conftest.err
14852 cat conftest.err >&5
14853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } && {
14855 test -z "$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 } && test -s conftest.$ac_objext; then
14858 ac_header_compiler=yes
14860 $as_echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_header_compiler=no
14866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14867 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14868 $as_echo "$ac_header_compiler" >&6; }
14870 # Is the header present?
14871 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14872 $as_echo_n "checking $ac_header presence... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 #include <$ac_header>
14881 if { (ac_try="$ac_cpp conftest.$ac_ext"
14882 case "(($ac_try" in
14883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14884 *) ac_try_echo=$ac_try;;
14886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14887 $as_echo "$ac_try_echo") >&5
14888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } >/dev/null && {
14895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14898 ac_header_preproc=yes
14900 $as_echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_header_preproc=no
14906 rm -f conftest.err conftest.$ac_ext
14907 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 $as_echo "$ac_header_preproc" >&6; }
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14914 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14916 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14921 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14923 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14925 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14927 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14929 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14931 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14933 ## ------------------------------ ##
14934 ## Report this to kzak@redhat.com ##
14935 ## ------------------------------ ##
14937 ) | sed "s/^/$as_me: WARNING: /" >&2
14940 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 $as_echo_n "checking for $ac_header... " >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 $as_echo_n "(cached) " >&6
14945 eval "$as_ac_Header=\$ac_header_preproc"
14947 ac_res=`eval 'as_val=${'$as_ac_Header'}
14948 $as_echo "$as_val"'`
14949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14950 $as_echo "$ac_res" >&6; }
14953 as_val=`eval 'as_val=${'$as_ac_Header'}
14954 $as_echo "$as_val"'`
14955 if test "x$as_val" = x""yes; then
14956 cat >>confdefs.h <<_ACEOF
14957 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14965 CFLAGS="$old_CFLAGS"
14966 CPPFLAGS="$old_CPPFLAGS"
14967 LDFLAGS="$old_LDFLAGS"
14970 if test -n "$enable_static_programs"; then
14971 # TODO check only when mount of fsck are requested
14973 if { ($as_echo "$as_me:$LINENO: pkg-config --exists --print-errors \"blkid\"") >&5
14974 (pkg-config --exists --print-errors "blkid") 2>&5
14976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; then
14978 BLKID_LIBS_STATIC=`pkg-config --libs --static "blkid"`
14980 { { $as_echo "$as_me:$LINENO: error: pkg-config description of blkid, needed for static build, is not available" >&5
14981 $as_echo "$as_me: error: pkg-config description of blkid, needed for static build, is not available" >&2;}
14982 { (exit 1); exit 1; }; }
14990 cat >>confdefs.h <<\_ACEOF
14991 #define HAVE_BLKID_H 1
14995 cat >>confdefs.h <<\_ACEOF
14996 #define HAVE_BLKID_EVALUATE_TAG 1
15001 if test "x$have_blkid" = xyes; then
15003 cat >>confdefs.h <<\_ACEOF
15004 #define HAVE_LIBBLKID 1
15008 if test "x$build_mount" = xyes; then
15009 { { $as_echo "$as_me:$LINENO: error: libblkid is needed to build util-linux-ng mount" >&5
15010 $as_echo "$as_me: error: libblkid is needed to build util-linux-ng mount" >&2;}
15011 { (exit 1); exit 1; }; }
15013 if test "x$enable_fsck" = xyes; then
15014 { { $as_echo "$as_me:$LINENO: error: libblkid is needed to build util-linux-ng fsck" >&5
15015 $as_echo "$as_me: error: libblkid is needed to build util-linux-ng fsck" >&2;}
15016 { (exit 1); exit 1; }; }
15019 if test "x$have_blkid" = xyes; then
15021 HAVE_BLKID_FALSE='#'
15023 HAVE_BLKID_TRUE='#'
15028 : ${BLKID_LIBS='-lblkid -luuid'}
15037 { $as_echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15038 $as_echo_n "checking for openpty in -lutil... " >&6; }
15039 if test "${ac_cv_lib_util_openpty+set}" = set; then
15040 $as_echo_n "(cached) " >&6
15042 ac_check_lib_save_LIBS=$LIBS
15043 LIBS="-lutil $LIBS"
15044 cat >conftest.$ac_ext <<_ACEOF
15047 cat confdefs.h >>conftest.$ac_ext
15048 cat >>conftest.$ac_ext <<_ACEOF
15049 /* end confdefs.h. */
15051 /* Override any GCC internal prototype to avoid an error.
15052 Use char because int might match the return type of a GCC
15053 builtin and then its argument prototype would still apply. */
15066 rm -f conftest.$ac_objext conftest$ac_exeext
15067 if { (ac_try="$ac_link"
15068 case "(($ac_try" in
15069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070 *) ac_try_echo=$ac_try;;
15072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15073 $as_echo "$ac_try_echo") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1 >conftest.err
15078 cat conftest.err >&5
15079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext && {
15084 test "$cross_compiling" = yes ||
15085 $as_test_x conftest$ac_exeext
15087 ac_cv_lib_util_openpty=yes
15089 $as_echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_cv_lib_util_openpty=no
15095 rm -rf conftest.dSYM
15096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15097 conftest$ac_exeext conftest.$ac_ext
15098 LIBS=$ac_check_lib_save_LIBS
15100 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15101 $as_echo "$ac_cv_lib_util_openpty" >&6; }
15102 if test "x$ac_cv_lib_util_openpty" = x""yes; then
15103 cat >>confdefs.h <<_ACEOF
15104 #define HAVE_LIBUTIL 1
15107 LIBS="-lutil $LIBS"
15113 if test $have_util = yes; then
15115 HAVE_UTIL_FALSE='#'
15126 { $as_echo "$as_me:$LINENO: checking for tgetnum in -ltermcap" >&5
15127 $as_echo_n "checking for tgetnum in -ltermcap... " >&6; }
15128 if test "${ac_cv_lib_termcap_tgetnum+set}" = set; then
15129 $as_echo_n "(cached) " >&6
15131 ac_check_lib_save_LIBS=$LIBS
15132 LIBS="-ltermcap $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
15136 cat confdefs.h >>conftest.$ac_ext
15137 cat >>conftest.$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15140 /* Override any GCC internal prototype to avoid an error.
15141 Use char because int might match the return type of a GCC
15142 builtin and then its argument prototype would still apply. */
15155 rm -f conftest.$ac_objext conftest$ac_exeext
15156 if { (ac_try="$ac_link"
15157 case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15162 $as_echo "$ac_try_echo") >&5
15163 (eval "$ac_link") 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); } && {
15170 test -z "$ac_c_werror_flag" ||
15171 test ! -s conftest.err
15172 } && test -s conftest$ac_exeext && {
15173 test "$cross_compiling" = yes ||
15174 $as_test_x conftest$ac_exeext
15176 ac_cv_lib_termcap_tgetnum=yes
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ac_cv_lib_termcap_tgetnum=no
15184 rm -rf conftest.dSYM
15185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15186 conftest$ac_exeext conftest.$ac_ext
15187 LIBS=$ac_check_lib_save_LIBS
15189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetnum" >&5
15190 $as_echo "$ac_cv_lib_termcap_tgetnum" >&6; }
15191 if test "x$ac_cv_lib_termcap_tgetnum" = x""yes; then
15192 cat >>confdefs.h <<_ACEOF
15193 #define HAVE_LIBTERMCAP 1
15196 LIBS="-ltermcap $LIBS"
15202 if test $have_termcap = yes; then
15204 HAVE_TERMCAP_FALSE='#'
15206 HAVE_TERMCAP_TRUE='#'
15207 HAVE_TERMCAP_FALSE=
15215 if test -n "$ac_aux_dir"; then
15216 case "$ac_aux_dir" in
15217 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
15218 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
15221 if test -z "$MKINSTALLDIRS"; then
15222 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15227 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15228 $as_echo_n "checking whether NLS is requested... " >&6; }
15229 # Check whether --enable-nls was given.
15230 if test "${enable_nls+set}" = set; then
15231 enableval=$enable_nls; USE_NLS=$enableval
15236 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
15237 $as_echo "$USE_NLS" >&6; }
15244 # Prepare PATH_SEPARATOR.
15245 # The user is always right.
15246 if test "${PATH_SEPARATOR+set}" != set; then
15247 echo "#! /bin/sh" >conf$$.sh
15248 echo "exit 0" >>conf$$.sh
15250 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15258 # Find out how to test for executable files. Don't use a zero-byte file,
15259 # as systems may use methods other than mode bits to determine executability.
15260 cat >conf$$.file <<_ASEOF
15264 chmod +x conf$$.file
15265 if test -x conf$$.file >/dev/null 2>&1; then
15266 ac_executable_p="test -x"
15268 ac_executable_p="test -f"
15272 # Extract the first word of "msgfmt", so it can be a program name with args.
15273 set dummy msgfmt; ac_word=$2
15274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15275 $as_echo_n "checking for $ac_word... " >&6; }
15276 if test "${ac_cv_path_MSGFMT+set}" = set; then
15277 $as_echo_n "(cached) " >&6
15281 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15284 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15285 for ac_dir in $PATH; do
15287 test -z "$ac_dir" && ac_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
15289 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15290 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
15291 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15292 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15299 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15303 MSGFMT="$ac_cv_path_MSGFMT"
15304 if test "$MSGFMT" != ":"; then
15305 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
15306 $as_echo "$MSGFMT" >&6; }
15308 { $as_echo "$as_me:$LINENO: result: no" >&5
15309 $as_echo "no" >&6; }
15312 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15313 set dummy gmsgfmt; ac_word=$2
15314 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15315 $as_echo_n "checking for $ac_word... " >&6; }
15316 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15317 $as_echo_n "(cached) " >&6
15321 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15325 for as_dir in $PATH
15328 test -z "$as_dir" && as_dir=.
15329 for ac_exec_ext in '' $ac_executable_extensions; do
15330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15331 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15339 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15343 GMSGFMT=$ac_cv_path_GMSGFMT
15344 if test -n "$GMSGFMT"; then
15345 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15346 $as_echo "$GMSGFMT" >&6; }
15348 { $as_echo "$as_me:$LINENO: result: no" >&5
15349 $as_echo "no" >&6; }
15355 # Prepare PATH_SEPARATOR.
15356 # The user is always right.
15357 if test "${PATH_SEPARATOR+set}" != set; then
15358 echo "#! /bin/sh" >conf$$.sh
15359 echo "exit 0" >>conf$$.sh
15361 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15369 # Find out how to test for executable files. Don't use a zero-byte file,
15370 # as systems may use methods other than mode bits to determine executability.
15371 cat >conf$$.file <<_ASEOF
15375 chmod +x conf$$.file
15376 if test -x conf$$.file >/dev/null 2>&1; then
15377 ac_executable_p="test -x"
15379 ac_executable_p="test -f"
15383 # Extract the first word of "xgettext", so it can be a program name with args.
15384 set dummy xgettext; ac_word=$2
15385 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15386 $as_echo_n "checking for $ac_word... " >&6; }
15387 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15388 $as_echo_n "(cached) " >&6
15390 case "$XGETTEXT" in
15392 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15395 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15396 for ac_dir in $PATH; do
15398 test -z "$ac_dir" && ac_dir=.
15399 for ac_exec_ext in '' $ac_executable_extensions; do
15400 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15401 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15402 (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
15403 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15410 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15414 XGETTEXT="$ac_cv_path_XGETTEXT"
15415 if test "$XGETTEXT" != ":"; then
15416 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15417 $as_echo "$XGETTEXT" >&6; }
15419 { $as_echo "$as_me:$LINENO: result: no" >&5
15420 $as_echo "no" >&6; }
15426 # Prepare PATH_SEPARATOR.
15427 # The user is always right.
15428 if test "${PATH_SEPARATOR+set}" != set; then
15429 echo "#! /bin/sh" >conf$$.sh
15430 echo "exit 0" >>conf$$.sh
15432 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15440 # Find out how to test for executable files. Don't use a zero-byte file,
15441 # as systems may use methods other than mode bits to determine executability.
15442 cat >conf$$.file <<_ASEOF
15446 chmod +x conf$$.file
15447 if test -x conf$$.file >/dev/null 2>&1; then
15448 ac_executable_p="test -x"
15450 ac_executable_p="test -f"
15454 # Extract the first word of "msgmerge", so it can be a program name with args.
15455 set dummy msgmerge; ac_word=$2
15456 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15457 $as_echo_n "checking for $ac_word... " >&6; }
15458 if test "${ac_cv_path_MSGMERGE+set}" = set; then
15459 $as_echo_n "(cached) " >&6
15461 case "$MSGMERGE" in
15463 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15467 for ac_dir in $PATH; do
15469 test -z "$ac_dir" && ac_dir=.
15470 for ac_exec_ext in '' $ac_executable_extensions; do
15471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15472 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
15473 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15480 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15484 MSGMERGE="$ac_cv_path_MSGMERGE"
15485 if test "$MSGMERGE" != ":"; then
15486 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
15487 $as_echo "$MSGMERGE" >&6; }
15489 { $as_echo "$as_me:$LINENO: result: no" >&5
15490 $as_echo "no" >&6; }
15494 if test "$GMSGFMT" != ":"; then
15495 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
15496 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15499 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
15500 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
15501 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
15506 if test "$XGETTEXT" != ":"; then
15507 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
15508 (if $XGETTEXT --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
15511 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15512 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
15518 ac_config_commands="$ac_config_commands default-1"
15522 if test "X$prefix" = "XNONE"; then
15523 acl_final_prefix="$ac_default_prefix"
15525 acl_final_prefix="$prefix"
15527 if test "X$exec_prefix" = "XNONE"; then
15528 acl_final_exec_prefix='${prefix}'
15530 acl_final_exec_prefix="$exec_prefix"
15532 acl_save_prefix="$prefix"
15533 prefix="$acl_final_prefix"
15534 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15535 prefix="$acl_save_prefix"
15538 # Check whether --with-gnu-ld was given.
15539 if test "${with_gnu_ld+set}" = set; then
15540 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15545 # Prepare PATH_SEPARATOR.
15546 # The user is always right.
15547 if test "${PATH_SEPARATOR+set}" != set; then
15548 echo "#! /bin/sh" >conf$$.sh
15549 echo "exit 0" >>conf$$.sh
15551 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15559 if test "$GCC" = yes; then
15560 # Check if gcc -print-prog-name=ld gives a path.
15561 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
15562 $as_echo_n "checking for ld used by GCC... " >&6; }
15565 # gcc leaves a trailing carriage return which upsets mingw
15566 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15568 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15571 # Accept absolute paths.
15572 [\\/]* | [A-Za-z]:[\\/]*)
15573 re_direlt='/[^/][^/]*/\.\./'
15574 # Canonicalize the path of ld
15575 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15576 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15577 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15579 test -z "$LD" && LD="$ac_prog"
15582 # If it fails, then pretend we aren't using GCC.
15586 # If it is relative, then search for the first ld in PATH.
15587 with_gnu_ld=unknown
15590 elif test "$with_gnu_ld" = yes; then
15591 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15592 $as_echo_n "checking for GNU ld... " >&6; }
15594 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15595 $as_echo_n "checking for non-GNU ld... " >&6; }
15597 if test "${acl_cv_path_LD+set}" = set; then
15598 $as_echo_n "(cached) " >&6
15600 if test -z "$LD"; then
15601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15602 for ac_dir in $PATH; do
15603 test -z "$ac_dir" && ac_dir=.
15604 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15605 acl_cv_path_LD="$ac_dir/$ac_prog"
15606 # Check to see if the program is GNU ld. I'd rather use --version,
15607 # but apparently some GNU ld's only accept -v.
15608 # Break only if it was the GNU/non-GNU ld that we prefer.
15609 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15610 *GNU* | *'with BFD'*)
15611 test "$with_gnu_ld" != no && break ;;
15613 test "$with_gnu_ld" != yes && break ;;
15619 acl_cv_path_LD="$LD" # Let the user override the test with a path.
15623 LD="$acl_cv_path_LD"
15624 if test -n "$LD"; then
15625 { $as_echo "$as_me:$LINENO: result: $LD" >&5
15626 $as_echo "$LD" >&6; }
15628 { $as_echo "$as_me:$LINENO: result: no" >&5
15629 $as_echo "no" >&6; }
15631 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15632 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15633 { (exit 1); exit 1; }; }
15634 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15635 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15636 if test "${acl_cv_prog_gnu_ld+set}" = set; then
15637 $as_echo_n "(cached) " >&6
15639 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15640 case `$LD -v 2>&1 </dev/null` in
15641 *GNU* | *'with BFD'*)
15642 acl_cv_prog_gnu_ld=yes ;;
15644 acl_cv_prog_gnu_ld=no ;;
15647 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
15648 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15649 with_gnu_ld=$acl_cv_prog_gnu_ld
15653 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
15654 $as_echo_n "checking for shared library run path origin... " >&6; }
15655 if test "${acl_cv_rpath+set}" = set; then
15656 $as_echo_n "(cached) " >&6
15659 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15660 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15662 rm -f ./conftest.sh
15666 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
15667 $as_echo "$acl_cv_rpath" >&6; }
15669 libext="$acl_cv_libext"
15670 shlibext="$acl_cv_shlibext"
15671 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15672 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15673 hardcode_direct="$acl_cv_hardcode_direct"
15674 hardcode_minus_L="$acl_cv_hardcode_minus_L"
15675 # Check whether --enable-rpath was given.
15676 if test "${enable_rpath+set}" = set; then
15677 enableval=$enable_rpath; :
15691 acl_save_prefix="$prefix"
15692 prefix="$acl_final_prefix"
15693 acl_save_exec_prefix="$exec_prefix"
15694 exec_prefix="$acl_final_exec_prefix"
15696 eval additional_includedir=\"$includedir\"
15697 eval additional_libdir=\"$libdir\"
15699 exec_prefix="$acl_save_exec_prefix"
15700 prefix="$acl_save_prefix"
15703 # Check whether --with-libiconv-prefix was given.
15704 if test "${with_libiconv_prefix+set}" = set; then
15705 withval=$with_libiconv_prefix;
15706 if test "X$withval" = "Xno"; then
15709 if test "X$withval" = "X"; then
15711 acl_save_prefix="$prefix"
15712 prefix="$acl_final_prefix"
15713 acl_save_exec_prefix="$exec_prefix"
15714 exec_prefix="$acl_final_exec_prefix"
15716 eval additional_includedir=\"$includedir\"
15717 eval additional_libdir=\"$libdir\"
15719 exec_prefix="$acl_save_exec_prefix"
15720 prefix="$acl_save_prefix"
15723 additional_includedir="$withval/include"
15724 additional_libdir="$withval/lib"
15735 names_already_handled=
15736 names_next_round='iconv '
15737 while test -n "$names_next_round"; do
15738 names_this_round="$names_next_round"
15740 for name in $names_this_round; do
15742 for n in $names_already_handled; do
15743 if test "$n" = "$name"; then
15744 already_handled=yes
15748 if test -z "$already_handled"; then
15749 names_already_handled="$names_already_handled $name"
15750 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15751 eval value=\"\$HAVE_LIB$uppername\"
15752 if test -n "$value"; then
15753 if test "$value" = yes; then
15754 eval value=\"\$LIB$uppername\"
15755 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15756 eval value=\"\$LTLIB$uppername\"
15757 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15766 if test $use_additional = yes; then
15767 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15768 found_dir="$additional_libdir"
15769 found_so="$additional_libdir/lib$name.$shlibext"
15770 if test -f "$additional_libdir/lib$name.la"; then
15771 found_la="$additional_libdir/lib$name.la"
15774 if test -f "$additional_libdir/lib$name.$libext"; then
15775 found_dir="$additional_libdir"
15776 found_a="$additional_libdir/lib$name.$libext"
15777 if test -f "$additional_libdir/lib$name.la"; then
15778 found_la="$additional_libdir/lib$name.la"
15783 if test "X$found_dir" = "X"; then
15784 for x in $LDFLAGS $LTLIBICONV; do
15786 acl_save_prefix="$prefix"
15787 prefix="$acl_final_prefix"
15788 acl_save_exec_prefix="$exec_prefix"
15789 exec_prefix="$acl_final_exec_prefix"
15791 exec_prefix="$acl_save_exec_prefix"
15792 prefix="$acl_save_prefix"
15796 dir=`echo "X$x" | sed -e 's/^X-L//'`
15797 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15799 found_so="$dir/lib$name.$shlibext"
15800 if test -f "$dir/lib$name.la"; then
15801 found_la="$dir/lib$name.la"
15804 if test -f "$dir/lib$name.$libext"; then
15806 found_a="$dir/lib$name.$libext"
15807 if test -f "$dir/lib$name.la"; then
15808 found_la="$dir/lib$name.la"
15814 if test "X$found_dir" != "X"; then
15819 if test "X$found_dir" != "X"; then
15820 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15821 if test "X$found_so" != "X"; then
15822 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15826 for x in $ltrpathdirs; do
15827 if test "X$x" = "X$found_dir"; then
15832 if test -z "$haveit"; then
15833 ltrpathdirs="$ltrpathdirs $found_dir"
15835 if test "$hardcode_direct" = yes; then
15836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15838 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15839 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15841 for x in $rpathdirs; do
15842 if test "X$x" = "X$found_dir"; then
15847 if test -z "$haveit"; then
15848 rpathdirs="$rpathdirs $found_dir"
15852 for x in $LDFLAGS $LIBICONV; do
15854 acl_save_prefix="$prefix"
15855 prefix="$acl_final_prefix"
15856 acl_save_exec_prefix="$exec_prefix"
15857 exec_prefix="$acl_final_exec_prefix"
15859 exec_prefix="$acl_save_exec_prefix"
15860 prefix="$acl_save_prefix"
15862 if test "X$x" = "X-L$found_dir"; then
15867 if test -z "$haveit"; then
15868 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15870 if test "$hardcode_minus_L" != no; then
15871 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15873 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15879 if test "X$found_a" != "X"; then
15880 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15882 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15885 additional_includedir=
15886 case "$found_dir" in
15888 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15889 additional_includedir="$basedir/include"
15892 if test "X$additional_includedir" != "X"; then
15893 if test "X$additional_includedir" != "X/usr/include"; then
15895 if test "X$additional_includedir" = "X/usr/local/include"; then
15896 if test -n "$GCC"; then
15898 linux*) haveit=yes;;
15902 if test -z "$haveit"; then
15903 for x in $CPPFLAGS $INCICONV; do
15905 acl_save_prefix="$prefix"
15906 prefix="$acl_final_prefix"
15907 acl_save_exec_prefix="$exec_prefix"
15908 exec_prefix="$acl_final_exec_prefix"
15910 exec_prefix="$acl_save_exec_prefix"
15911 prefix="$acl_save_prefix"
15913 if test "X$x" = "X-I$additional_includedir"; then
15918 if test -z "$haveit"; then
15919 if test -d "$additional_includedir"; then
15920 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15926 if test -n "$found_la"; then
15927 save_libdir="$libdir"
15928 case "$found_la" in
15929 */* | *\\*) . "$found_la" ;;
15930 *) . "./$found_la" ;;
15932 libdir="$save_libdir"
15933 for dep in $dependency_libs; do
15936 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15937 if test "X$additional_libdir" != "X/usr/lib"; then
15939 if test "X$additional_libdir" = "X/usr/local/lib"; then
15940 if test -n "$GCC"; then
15942 linux*) haveit=yes;;
15946 if test -z "$haveit"; then
15948 for x in $LDFLAGS $LIBICONV; do
15950 acl_save_prefix="$prefix"
15951 prefix="$acl_final_prefix"
15952 acl_save_exec_prefix="$exec_prefix"
15953 exec_prefix="$acl_final_exec_prefix"
15955 exec_prefix="$acl_save_exec_prefix"
15956 prefix="$acl_save_prefix"
15958 if test "X$x" = "X-L$additional_libdir"; then
15963 if test -z "$haveit"; then
15964 if test -d "$additional_libdir"; then
15965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15969 for x in $LDFLAGS $LTLIBICONV; do
15971 acl_save_prefix="$prefix"
15972 prefix="$acl_final_prefix"
15973 acl_save_exec_prefix="$exec_prefix"
15974 exec_prefix="$acl_final_exec_prefix"
15976 exec_prefix="$acl_save_exec_prefix"
15977 prefix="$acl_save_prefix"
15979 if test "X$x" = "X-L$additional_libdir"; then
15984 if test -z "$haveit"; then
15985 if test -d "$additional_libdir"; then
15986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15993 dir=`echo "X$dep" | sed -e 's/^X-R//'`
15994 if test "$enable_rpath" != no; then
15996 for x in $rpathdirs; do
15997 if test "X$x" = "X$dir"; then
16002 if test -z "$haveit"; then
16003 rpathdirs="$rpathdirs $dir"
16006 for x in $ltrpathdirs; do
16007 if test "X$x" = "X$dir"; then
16012 if test -z "$haveit"; then
16013 ltrpathdirs="$ltrpathdirs $dir"
16018 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16021 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16024 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16025 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16031 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16032 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16038 if test "X$rpathdirs" != "X"; then
16039 if test -n "$hardcode_libdir_separator"; then
16041 for found_dir in $rpathdirs; do
16042 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16044 acl_save_libdir="$libdir"
16046 eval flag=\"$hardcode_libdir_flag_spec\"
16047 libdir="$acl_save_libdir"
16048 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16050 for found_dir in $rpathdirs; do
16051 acl_save_libdir="$libdir"
16052 libdir="$found_dir"
16053 eval flag=\"$hardcode_libdir_flag_spec\"
16054 libdir="$acl_save_libdir"
16055 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16059 if test "X$ltrpathdirs" != "X"; then
16060 for found_dir in $ltrpathdirs; do
16061 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16082 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16083 $as_echo_n "checking whether NLS is requested... " >&6; }
16084 # Check whether --enable-nls was given.
16085 if test "${enable_nls+set}" = set; then
16086 enableval=$enable_nls; USE_NLS=$enableval
16091 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16092 $as_echo "$USE_NLS" >&6; }
16101 if test "$USE_NLS" = "yes"; then
16102 gt_use_preinstalled_gnugettext=no
16109 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
16110 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16111 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
16112 $as_echo_n "(cached) " >&6
16114 cat >conftest.$ac_ext <<_ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 #include <libintl.h>
16121 extern int _nl_msg_cat_cntr;
16122 extern int *_nl_domain_bindings;
16126 bindtextdomain ("", "");
16127 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16132 rm -f conftest.$ac_objext conftest$ac_exeext
16133 if { (ac_try="$ac_link"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16139 $as_echo "$ac_try_echo") >&5
16140 (eval "$ac_link") 2>conftest.er1
16142 grep -v '^ *+' conftest.er1 >conftest.err
16144 cat conftest.err >&5
16145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && {
16147 test -z "$ac_c_werror_flag" ||
16148 test ! -s conftest.err
16149 } && test -s conftest$ac_exeext && {
16150 test "$cross_compiling" = yes ||
16151 $as_test_x conftest$ac_exeext
16153 gt_cv_func_gnugettext1_libc=yes
16155 $as_echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 gt_cv_func_gnugettext1_libc=no
16161 rm -rf conftest.dSYM
16162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16163 conftest$ac_exeext conftest.$ac_ext
16165 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16166 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16168 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16174 am_save_CPPFLAGS="$CPPFLAGS"
16176 for element in $INCICONV; do
16178 for x in $CPPFLAGS; do
16180 acl_save_prefix="$prefix"
16181 prefix="$acl_final_prefix"
16182 acl_save_exec_prefix="$exec_prefix"
16183 exec_prefix="$acl_final_exec_prefix"
16185 exec_prefix="$acl_save_exec_prefix"
16186 prefix="$acl_save_prefix"
16188 if test "X$x" = "X$element"; then
16193 if test -z "$haveit"; then
16194 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16199 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
16200 $as_echo_n "checking for iconv... " >&6; }
16201 if test "${am_cv_func_iconv+set}" = set; then
16202 $as_echo_n "(cached) " >&6
16205 am_cv_func_iconv="no, consider installing GNU libiconv"
16207 cat >conftest.$ac_ext <<_ACEOF
16210 cat confdefs.h >>conftest.$ac_ext
16211 cat >>conftest.$ac_ext <<_ACEOF
16212 /* end confdefs.h. */
16213 #include <stdlib.h>
16218 iconv_t cd = iconv_open("","");
16219 iconv(cd,NULL,NULL,NULL,NULL);
16225 rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16232 $as_echo "$ac_try_echo") >&5
16233 (eval "$ac_link") 2>conftest.er1
16235 grep -v '^ *+' conftest.er1 >conftest.err
16237 cat conftest.err >&5
16238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); } && {
16240 test -z "$ac_c_werror_flag" ||
16241 test ! -s conftest.err
16242 } && test -s conftest$ac_exeext && {
16243 test "$cross_compiling" = yes ||
16244 $as_test_x conftest$ac_exeext
16246 am_cv_func_iconv=yes
16248 $as_echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16254 rm -rf conftest.dSYM
16255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16256 conftest$ac_exeext conftest.$ac_ext
16257 if test "$am_cv_func_iconv" != yes; then
16258 am_save_LIBS="$LIBS"
16259 LIBS="$LIBS $LIBICONV"
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 #include <stdlib.h>
16271 iconv_t cd = iconv_open("","");
16272 iconv(cd,NULL,NULL,NULL,NULL);
16278 rm -f conftest.$ac_objext conftest$ac_exeext
16279 if { (ac_try="$ac_link"
16280 case "(($ac_try" in
16281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16282 *) ac_try_echo=$ac_try;;
16284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16285 $as_echo "$ac_try_echo") >&5
16286 (eval "$ac_link") 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } && {
16293 test -z "$ac_c_werror_flag" ||
16294 test ! -s conftest.err
16295 } && test -s conftest$ac_exeext && {
16296 test "$cross_compiling" = yes ||
16297 $as_test_x conftest$ac_exeext
16299 am_cv_lib_iconv=yes
16300 am_cv_func_iconv=yes
16302 $as_echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16308 rm -rf conftest.dSYM
16309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16310 conftest$ac_exeext conftest.$ac_ext
16311 LIBS="$am_save_LIBS"
16315 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
16316 $as_echo "$am_cv_func_iconv" >&6; }
16317 if test "$am_cv_func_iconv" = yes; then
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE_ICONV 1
16324 if test "$am_cv_lib_iconv" = yes; then
16325 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
16326 $as_echo_n "checking how to link with libiconv... " >&6; }
16327 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
16328 $as_echo "$LIBICONV" >&6; }
16330 CPPFLAGS="$am_save_CPPFLAGS"
16342 acl_save_prefix="$prefix"
16343 prefix="$acl_final_prefix"
16344 acl_save_exec_prefix="$exec_prefix"
16345 exec_prefix="$acl_final_exec_prefix"
16347 eval additional_includedir=\"$includedir\"
16348 eval additional_libdir=\"$libdir\"
16350 exec_prefix="$acl_save_exec_prefix"
16351 prefix="$acl_save_prefix"
16354 # Check whether --with-libintl-prefix was given.
16355 if test "${with_libintl_prefix+set}" = set; then
16356 withval=$with_libintl_prefix;
16357 if test "X$withval" = "Xno"; then
16360 if test "X$withval" = "X"; then
16362 acl_save_prefix="$prefix"
16363 prefix="$acl_final_prefix"
16364 acl_save_exec_prefix="$exec_prefix"
16365 exec_prefix="$acl_final_exec_prefix"
16367 eval additional_includedir=\"$includedir\"
16368 eval additional_libdir=\"$libdir\"
16370 exec_prefix="$acl_save_exec_prefix"
16371 prefix="$acl_save_prefix"
16374 additional_includedir="$withval/include"
16375 additional_libdir="$withval/lib"
16386 names_already_handled=
16387 names_next_round='intl '
16388 while test -n "$names_next_round"; do
16389 names_this_round="$names_next_round"
16391 for name in $names_this_round; do
16393 for n in $names_already_handled; do
16394 if test "$n" = "$name"; then
16395 already_handled=yes
16399 if test -z "$already_handled"; then
16400 names_already_handled="$names_already_handled $name"
16401 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16402 eval value=\"\$HAVE_LIB$uppername\"
16403 if test -n "$value"; then
16404 if test "$value" = yes; then
16405 eval value=\"\$LIB$uppername\"
16406 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16407 eval value=\"\$LTLIB$uppername\"
16408 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16417 if test $use_additional = yes; then
16418 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16419 found_dir="$additional_libdir"
16420 found_so="$additional_libdir/lib$name.$shlibext"
16421 if test -f "$additional_libdir/lib$name.la"; then
16422 found_la="$additional_libdir/lib$name.la"
16425 if test -f "$additional_libdir/lib$name.$libext"; then
16426 found_dir="$additional_libdir"
16427 found_a="$additional_libdir/lib$name.$libext"
16428 if test -f "$additional_libdir/lib$name.la"; then
16429 found_la="$additional_libdir/lib$name.la"
16434 if test "X$found_dir" = "X"; then
16435 for x in $LDFLAGS $LTLIBINTL; do
16437 acl_save_prefix="$prefix"
16438 prefix="$acl_final_prefix"
16439 acl_save_exec_prefix="$exec_prefix"
16440 exec_prefix="$acl_final_exec_prefix"
16442 exec_prefix="$acl_save_exec_prefix"
16443 prefix="$acl_save_prefix"
16447 dir=`echo "X$x" | sed -e 's/^X-L//'`
16448 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16450 found_so="$dir/lib$name.$shlibext"
16451 if test -f "$dir/lib$name.la"; then
16452 found_la="$dir/lib$name.la"
16455 if test -f "$dir/lib$name.$libext"; then
16457 found_a="$dir/lib$name.$libext"
16458 if test -f "$dir/lib$name.la"; then
16459 found_la="$dir/lib$name.la"
16465 if test "X$found_dir" != "X"; then
16470 if test "X$found_dir" != "X"; then
16471 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16472 if test "X$found_so" != "X"; then
16473 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16474 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16477 for x in $ltrpathdirs; do
16478 if test "X$x" = "X$found_dir"; then
16483 if test -z "$haveit"; then
16484 ltrpathdirs="$ltrpathdirs $found_dir"
16486 if test "$hardcode_direct" = yes; then
16487 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16489 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16490 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16492 for x in $rpathdirs; do
16493 if test "X$x" = "X$found_dir"; then
16498 if test -z "$haveit"; then
16499 rpathdirs="$rpathdirs $found_dir"
16503 for x in $LDFLAGS $LIBINTL; do
16505 acl_save_prefix="$prefix"
16506 prefix="$acl_final_prefix"
16507 acl_save_exec_prefix="$exec_prefix"
16508 exec_prefix="$acl_final_exec_prefix"
16510 exec_prefix="$acl_save_exec_prefix"
16511 prefix="$acl_save_prefix"
16513 if test "X$x" = "X-L$found_dir"; then
16518 if test -z "$haveit"; then
16519 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16521 if test "$hardcode_minus_L" != no; then
16522 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16524 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16530 if test "X$found_a" != "X"; then
16531 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16533 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16536 additional_includedir=
16537 case "$found_dir" in
16539 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16540 additional_includedir="$basedir/include"
16543 if test "X$additional_includedir" != "X"; then
16544 if test "X$additional_includedir" != "X/usr/include"; then
16546 if test "X$additional_includedir" = "X/usr/local/include"; then
16547 if test -n "$GCC"; then
16549 linux*) haveit=yes;;
16553 if test -z "$haveit"; then
16554 for x in $CPPFLAGS $INCINTL; do
16556 acl_save_prefix="$prefix"
16557 prefix="$acl_final_prefix"
16558 acl_save_exec_prefix="$exec_prefix"
16559 exec_prefix="$acl_final_exec_prefix"
16561 exec_prefix="$acl_save_exec_prefix"
16562 prefix="$acl_save_prefix"
16564 if test "X$x" = "X-I$additional_includedir"; then
16569 if test -z "$haveit"; then
16570 if test -d "$additional_includedir"; then
16571 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16577 if test -n "$found_la"; then
16578 save_libdir="$libdir"
16579 case "$found_la" in
16580 */* | *\\*) . "$found_la" ;;
16581 *) . "./$found_la" ;;
16583 libdir="$save_libdir"
16584 for dep in $dependency_libs; do
16587 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16588 if test "X$additional_libdir" != "X/usr/lib"; then
16590 if test "X$additional_libdir" = "X/usr/local/lib"; then
16591 if test -n "$GCC"; then
16593 linux*) haveit=yes;;
16597 if test -z "$haveit"; then
16599 for x in $LDFLAGS $LIBINTL; do
16601 acl_save_prefix="$prefix"
16602 prefix="$acl_final_prefix"
16603 acl_save_exec_prefix="$exec_prefix"
16604 exec_prefix="$acl_final_exec_prefix"
16606 exec_prefix="$acl_save_exec_prefix"
16607 prefix="$acl_save_prefix"
16609 if test "X$x" = "X-L$additional_libdir"; then
16614 if test -z "$haveit"; then
16615 if test -d "$additional_libdir"; then
16616 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16620 for x in $LDFLAGS $LTLIBINTL; do
16622 acl_save_prefix="$prefix"
16623 prefix="$acl_final_prefix"
16624 acl_save_exec_prefix="$exec_prefix"
16625 exec_prefix="$acl_final_exec_prefix"
16627 exec_prefix="$acl_save_exec_prefix"
16628 prefix="$acl_save_prefix"
16630 if test "X$x" = "X-L$additional_libdir"; then
16635 if test -z "$haveit"; then
16636 if test -d "$additional_libdir"; then
16637 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16644 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16645 if test "$enable_rpath" != no; then
16647 for x in $rpathdirs; do
16648 if test "X$x" = "X$dir"; then
16653 if test -z "$haveit"; then
16654 rpathdirs="$rpathdirs $dir"
16657 for x in $ltrpathdirs; do
16658 if test "X$x" = "X$dir"; then
16663 if test -z "$haveit"; then
16664 ltrpathdirs="$ltrpathdirs $dir"
16669 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16672 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16675 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16676 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16682 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16683 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16689 if test "X$rpathdirs" != "X"; then
16690 if test -n "$hardcode_libdir_separator"; then
16692 for found_dir in $rpathdirs; do
16693 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16695 acl_save_libdir="$libdir"
16697 eval flag=\"$hardcode_libdir_flag_spec\"
16698 libdir="$acl_save_libdir"
16699 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16701 for found_dir in $rpathdirs; do
16702 acl_save_libdir="$libdir"
16703 libdir="$found_dir"
16704 eval flag=\"$hardcode_libdir_flag_spec\"
16705 libdir="$acl_save_libdir"
16706 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16710 if test "X$ltrpathdirs" != "X"; then
16711 for found_dir in $ltrpathdirs; do
16712 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16716 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
16717 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16718 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
16719 $as_echo_n "(cached) " >&6
16721 gt_save_CPPFLAGS="$CPPFLAGS"
16722 CPPFLAGS="$CPPFLAGS $INCINTL"
16723 gt_save_LIBS="$LIBS"
16724 LIBS="$LIBS $LIBINTL"
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 #include <libintl.h>
16732 extern int _nl_msg_cat_cntr;
16737 const char *_nl_expand_alias ();
16741 bindtextdomain ("", "");
16742 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16754 $as_echo "$ac_try_echo") >&5
16755 (eval "$ac_link") 2>conftest.er1
16757 grep -v '^ *+' conftest.er1 >conftest.err
16759 cat conftest.err >&5
16760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && {
16762 test -z "$ac_c_werror_flag" ||
16763 test ! -s conftest.err
16764 } && test -s conftest$ac_exeext && {
16765 test "$cross_compiling" = yes ||
16766 $as_test_x conftest$ac_exeext
16768 gt_cv_func_gnugettext1_libintl=yes
16770 $as_echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 gt_cv_func_gnugettext1_libintl=no
16776 rm -rf conftest.dSYM
16777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16778 conftest$ac_exeext conftest.$ac_ext
16779 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16780 LIBS="$LIBS $LIBICONV"
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787 #include <libintl.h>
16788 extern int _nl_msg_cat_cntr;
16793 const char *_nl_expand_alias ();
16797 bindtextdomain ("", "");
16798 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16810 $as_echo "$ac_try_echo") >&5
16811 (eval "$ac_link") 2>conftest.er1
16813 grep -v '^ *+' conftest.er1 >conftest.err
16815 cat conftest.err >&5
16816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } && {
16818 test -z "$ac_c_werror_flag" ||
16819 test ! -s conftest.err
16820 } && test -s conftest$ac_exeext && {
16821 test "$cross_compiling" = yes ||
16822 $as_test_x conftest$ac_exeext
16824 LIBINTL="$LIBINTL $LIBICONV"
16825 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16826 gt_cv_func_gnugettext1_libintl=yes
16829 $as_echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16835 rm -rf conftest.dSYM
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16839 CPPFLAGS="$gt_save_CPPFLAGS"
16840 LIBS="$gt_save_LIBS"
16842 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
16843 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
16846 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16847 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16848 && test "$PACKAGE" != gettext-runtime \
16849 && test "$PACKAGE" != gettext-tools; }; then
16850 gt_use_preinstalled_gnugettext=yes
16859 if test "$gt_use_preinstalled_gnugettext" = "yes" \
16860 || test "$nls_cv_use_gnu_gettext" = "yes"; then
16862 cat >>confdefs.h <<\_ACEOF
16863 #define ENABLE_NLS 1
16871 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
16872 $as_echo_n "checking whether to use NLS... " >&6; }
16873 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
16874 $as_echo "$USE_NLS" >&6; }
16875 if test "$USE_NLS" = "yes"; then
16876 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
16877 $as_echo_n "checking where the gettext function comes from... " >&6; }
16878 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16879 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16880 gt_source="external libintl"
16885 gt_source="included intl directory"
16887 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
16888 $as_echo "$gt_source" >&6; }
16891 if test "$USE_NLS" = "yes"; then
16893 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16894 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16895 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
16896 $as_echo_n "checking how to link with libintl... " >&6; }
16897 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
16898 $as_echo "$LIBINTL" >&6; }
16900 for element in $INCINTL; do
16902 for x in $CPPFLAGS; do
16904 acl_save_prefix="$prefix"
16905 prefix="$acl_final_prefix"
16906 acl_save_exec_prefix="$exec_prefix"
16907 exec_prefix="$acl_final_exec_prefix"
16909 exec_prefix="$acl_save_exec_prefix"
16910 prefix="$acl_save_prefix"
16912 if test "X$x" = "X$element"; then
16917 if test -z "$haveit"; then
16918 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16925 cat >>confdefs.h <<\_ACEOF
16926 #define HAVE_GETTEXT 1
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_DCGETTEXT 1
16941 INTLLIBS="$LIBINTL"
16948 if test -d "$srcdir/po"
16950 ALL_LINGUAS=`cd $srcdir/po > /dev/null && echo *.po | sed 's/\.po//g'`
16952 ALL_LINGUAS="af am ar as be bg bn_IN bn ca cs cy da de el en_GB es et eu_ES fa fi fr gl gu he hi hr hu hy id is it ja ka kn ko ku lo lt lv mk ml mr ms my nb nl nn no nso or pa pl pt_BR pt ro ru si sk sl sq sr@Latn sr sv ta te th tr uk ur vi zh_CN zh_TW zu"
16956 # Check whether --with-ncurses was given.
16957 if test "${with_ncurses+set}" = set; then
16958 withval=$with_ncurses;
16966 HAVE_NCURSES_FALSE='#'
16968 HAVE_NCURSES_TRUE='#'
16969 HAVE_NCURSES_FALSE=
16973 if test "x$with_ncurses" != xno; then
16977 for ac_header in ncurses.h ncurses/ncurses.h
16979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 $as_echo_n "checking for $ac_header... " >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984 $as_echo_n "(cached) " >&6
16986 ac_res=`eval 'as_val=${'$as_ac_Header'}
16987 $as_echo "$as_val"'`
16988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16989 $as_echo "$ac_res" >&6; }
16991 # Is the header compilable?
16992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16993 $as_echo_n "checking $ac_header usability... " >&6; }
16994 cat >conftest.$ac_ext <<_ACEOF
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17000 $ac_includes_default
17001 #include <$ac_header>
17003 rm -f conftest.$ac_objext
17004 if { (ac_try="$ac_compile"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17010 $as_echo "$ac_try_echo") >&5
17011 (eval "$ac_compile") 2>conftest.er1
17013 grep -v '^ *+' conftest.er1 >conftest.err
17015 cat conftest.err >&5
17016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); } && {
17018 test -z "$ac_c_werror_flag" ||
17019 test ! -s conftest.err
17020 } && test -s conftest.$ac_objext; then
17021 ac_header_compiler=yes
17023 $as_echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_header_compiler=no
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17031 $as_echo "$ac_header_compiler" >&6; }
17033 # Is the header present?
17034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17035 $as_echo_n "checking $ac_header presence... " >&6; }
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 #include <$ac_header>
17044 if { (ac_try="$ac_cpp conftest.$ac_ext"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17050 $as_echo "$ac_try_echo") >&5
17051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17053 grep -v '^ *+' conftest.er1 >conftest.err
17055 cat conftest.err >&5
17056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } >/dev/null && {
17058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17059 test ! -s conftest.err
17061 ac_header_preproc=yes
17063 $as_echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17066 ac_header_preproc=no
17069 rm -f conftest.err conftest.$ac_ext
17070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17071 $as_echo "$ac_header_preproc" >&6; }
17073 # So? What about this header?
17074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17080 ac_header_preproc=yes
17083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17096 ## ------------------------------ ##
17097 ## Report this to kzak@redhat.com ##
17098 ## ------------------------------ ##
17100 ) | sed "s/^/$as_me: WARNING: /" >&2
17103 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17104 $as_echo_n "checking for $ac_header... " >&6; }
17105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17106 $as_echo_n "(cached) " >&6
17108 eval "$as_ac_Header=\$ac_header_preproc"
17110 ac_res=`eval 'as_val=${'$as_ac_Header'}
17111 $as_echo "$as_val"'`
17112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17113 $as_echo "$ac_res" >&6; }
17116 as_val=`eval 'as_val=${'$as_ac_Header'}
17117 $as_echo "$as_val"'`
17118 if test "x$as_val" = x""yes; then
17119 cat >>confdefs.h <<_ACEOF
17120 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17123 if test "x$with_ncurses" = xauto; then
17128 { $as_echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
17129 $as_echo_n "checking for initscr in -lncursesw... " >&6; }
17130 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
17131 $as_echo_n "(cached) " >&6
17133 ac_check_lib_save_LIBS=$LIBS
17134 LIBS="-lncursesw $LIBS"
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17142 /* Override any GCC internal prototype to avoid an error.
17143 Use char because int might match the return type of a GCC
17144 builtin and then its argument prototype would still apply. */
17157 rm -f conftest.$ac_objext conftest$ac_exeext
17158 if { (ac_try="$ac_link"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17164 $as_echo "$ac_try_echo") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext && {
17175 test "$cross_compiling" = yes ||
17176 $as_test_x conftest$ac_exeext
17178 ac_cv_lib_ncursesw_initscr=yes
17180 $as_echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_lib_ncursesw_initscr=no
17186 rm -rf conftest.dSYM
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188 conftest$ac_exeext conftest.$ac_ext
17189 LIBS=$ac_check_lib_save_LIBS
17191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
17192 $as_echo "$ac_cv_lib_ncursesw_initscr" >&6; }
17193 if test "x$ac_cv_lib_ncursesw_initscr" = x""yes; then
17194 cat >>confdefs.h <<_ACEOF
17195 #define HAVE_LIBNCURSESW 1
17198 LIBS="-lncursesw $LIBS"
17204 if test $have_ncurses = yes; then
17206 HAVE_NCURSES_FALSE='#'
17208 HAVE_NCURSES_TRUE='#'
17209 HAVE_NCURSES_FALSE=
17213 if test "x$have_ncurses" = xyes; then
17214 NCURSES_LIBS="-lncursesw"
17217 if test "x$have_ncurses" = xno; then
17222 { $as_echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17223 $as_echo_n "checking for initscr in -lncurses... " >&6; }
17224 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17225 $as_echo_n "(cached) " >&6
17227 ac_check_lib_save_LIBS=$LIBS
17228 LIBS="-lncurses $LIBS"
17229 cat >conftest.$ac_ext <<_ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17236 /* Override any GCC internal prototype to avoid an error.
17237 Use char because int might match the return type of a GCC
17238 builtin and then its argument prototype would still apply. */
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17258 $as_echo "$ac_try_echo") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest$ac_exeext && {
17269 test "$cross_compiling" = yes ||
17270 $as_test_x conftest$ac_exeext
17272 ac_cv_lib_ncurses_initscr=yes
17274 $as_echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_cv_lib_ncurses_initscr=no
17280 rm -rf conftest.dSYM
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17283 LIBS=$ac_check_lib_save_LIBS
17285 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17286 $as_echo "$ac_cv_lib_ncurses_initscr" >&6; }
17287 if test "x$ac_cv_lib_ncurses_initscr" = x""yes; then
17288 cat >>confdefs.h <<_ACEOF
17289 #define HAVE_LIBNCURSES 1
17292 LIBS="-lncurses $LIBS"
17298 if test $have_ncurses = yes; then
17300 HAVE_NCURSES_FALSE='#'
17302 HAVE_NCURSES_TRUE='#'
17303 HAVE_NCURSES_FALSE=
17307 if test "x$have_ncurses" = xyes; then
17308 NCURSES_LIBS="-lncurses"
17316 if test "x$have_ncurses" = xno; then
17317 { { $as_echo "$as_me:$LINENO: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" >&5
17318 $as_echo "$as_me: error: ncurses or ncursesw selected, but library not found (--without-ncurses to disable)" >&2;}
17319 { (exit 1); exit 1; }; }
17326 # Check whether --with-slang was given.
17327 if test "${with_slang+set}" = set; then
17328 withval=$with_slang;
17336 { $as_echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
17337 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
17338 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
17339 $as_echo_n "(cached) " >&6
17341 ac_check_lib_save_LIBS=$LIBS
17342 LIBS="-ltinfo $LIBS"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17350 /* Override any GCC internal prototype to avoid an error.
17351 Use char because int might match the return type of a GCC
17352 builtin and then its argument prototype would still apply. */
17365 rm -f conftest.$ac_objext conftest$ac_exeext
17366 if { (ac_try="$ac_link"
17367 case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17372 $as_echo "$ac_try_echo") >&5
17373 (eval "$ac_link") 2>conftest.er1
17375 grep -v '^ *+' conftest.er1 >conftest.err
17377 cat conftest.err >&5
17378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); } && {
17380 test -z "$ac_c_werror_flag" ||
17381 test ! -s conftest.err
17382 } && test -s conftest$ac_exeext && {
17383 test "$cross_compiling" = yes ||
17384 $as_test_x conftest$ac_exeext
17386 ac_cv_lib_tinfo_tgetent=yes
17388 $as_echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17391 ac_cv_lib_tinfo_tgetent=no
17394 rm -rf conftest.dSYM
17395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17399 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
17400 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
17401 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then
17405 if test "x$have_tinfo" = xyes; then
17407 HAVE_TINFO_FALSE='#'
17409 HAVE_TINFO_TRUE='#'
17415 if test "x$with_slang" = xyes; then
17418 for ac_header in slcurses.h slang/slcurses.h
17420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17422 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17423 $as_echo_n "checking for $ac_header... " >&6; }
17424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17425 $as_echo_n "(cached) " >&6
17427 ac_res=`eval 'as_val=${'$as_ac_Header'}
17428 $as_echo "$as_val"'`
17429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17430 $as_echo "$ac_res" >&6; }
17432 # Is the header compilable?
17433 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17434 $as_echo_n "checking $ac_header usability... " >&6; }
17435 cat >conftest.$ac_ext <<_ACEOF
17438 cat confdefs.h >>conftest.$ac_ext
17439 cat >>conftest.$ac_ext <<_ACEOF
17440 /* end confdefs.h. */
17441 $ac_includes_default
17442 #include <$ac_header>
17444 rm -f conftest.$ac_objext
17445 if { (ac_try="$ac_compile"
17446 case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17451 $as_echo "$ac_try_echo") >&5
17452 (eval "$ac_compile") 2>conftest.er1
17454 grep -v '^ *+' conftest.er1 >conftest.err
17456 cat conftest.err >&5
17457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); } && {
17459 test -z "$ac_c_werror_flag" ||
17460 test ! -s conftest.err
17461 } && test -s conftest.$ac_objext; then
17462 ac_header_compiler=yes
17464 $as_echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17467 ac_header_compiler=no
17470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17471 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17472 $as_echo "$ac_header_compiler" >&6; }
17474 # Is the header present?
17475 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17476 $as_echo_n "checking $ac_header presence... " >&6; }
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 #include <$ac_header>
17485 if { (ac_try="$ac_cpp conftest.$ac_ext"
17486 case "(($ac_try" in
17487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17491 $as_echo "$ac_try_echo") >&5
17492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } >/dev/null && {
17499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17502 ac_header_preproc=yes
17504 $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_header_preproc=no
17510 rm -f conftest.err conftest.$ac_ext
17511 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17512 $as_echo "$ac_header_preproc" >&6; }
17514 # So? What about this header?
17515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17518 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17520 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17521 ac_header_preproc=yes
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17525 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17527 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17529 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17531 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17533 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17535 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17537 ## ------------------------------ ##
17538 ## Report this to kzak@redhat.com ##
17539 ## ------------------------------ ##
17541 ) | sed "s/^/$as_me: WARNING: /" >&2
17544 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17545 $as_echo_n "checking for $ac_header... " >&6; }
17546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17547 $as_echo_n "(cached) " >&6
17549 eval "$as_ac_Header=\$ac_header_preproc"
17551 ac_res=`eval 'as_val=${'$as_ac_Header'}
17552 $as_echo "$as_val"'`
17553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17554 $as_echo "$ac_res" >&6; }
17557 as_val=`eval 'as_val=${'$as_ac_Header'}
17558 $as_echo "$as_val"'`
17559 if test "x$as_val" = x""yes; then
17560 cat >>confdefs.h <<_ACEOF
17561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17568 if test "x$use_slang" = xno; then
17569 { { $as_echo "$as_me:$LINENO: error: slang selected but slcurses.h not found" >&5
17570 $as_echo "$as_me: error: slang selected but slcurses.h not found" >&2;}
17571 { (exit 1); exit 1; }; }
17574 if test "x$use_slang" = xyes; then
17576 USE_SLANG_FALSE='#'
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 #define _XOPEN_SOURCE
17592 #include <unistd.h>
17598 char *c = crypt("abc","pw");
17604 rm -f conftest.$ac_objext conftest$ac_exeext
17605 if { (ac_try="$ac_link"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17611 $as_echo "$ac_try_echo") >&5
17612 (eval "$ac_link") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest$ac_exeext && {
17622 test "$cross_compiling" = yes ||
17623 $as_test_x conftest$ac_exeext
17627 $as_echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17631 LIBS="$LIBS -lcrypt"
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 #define _XOPEN_SOURCE
17640 #include <unistd.h>
17646 char *c = crypt("abc","pw");
17652 rm -f conftest.$ac_objext
17653 if { (ac_try="$ac_compile"
17654 case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17659 $as_echo "$ac_try_echo") >&5
17660 (eval "$ac_compile") 2>conftest.er1
17662 grep -v '^ *+' conftest.er1 >conftest.err
17664 cat conftest.err >&5
17665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } && {
17667 test -z "$ac_c_werror_flag" ||
17668 test ! -s conftest.err
17669 } && test -s conftest.$ac_objext; then
17672 cat >>confdefs.h <<\_ACEOF
17673 #define NEED_LIBCRYPT 1
17679 $as_echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17683 { { $as_echo "$as_me:$LINENO: error: crypt() is not available" >&5
17684 $as_echo "$as_me: error: crypt() is not available" >&2;}
17685 { (exit 1); exit 1; }; }
17689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 rm -rf conftest.dSYM
17694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17695 conftest$ac_exeext conftest.$ac_ext
17697 if test "x$need_libcrypt" = xyes; then
17698 NEED_LIBCRYPT_TRUE=
17699 NEED_LIBCRYPT_FALSE='#'
17701 NEED_LIBCRYPT_TRUE='#'
17702 NEED_LIBCRYPT_FALSE=
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17719 printf(__progname);
17725 rm -f conftest.$ac_objext
17726 if { (ac_try="$ac_compile"
17727 case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17732 $as_echo "$ac_try_echo") >&5
17733 (eval "$ac_compile") 2>conftest.er1
17735 grep -v '^ *+' conftest.er1 >conftest.err
17737 cat conftest.err >&5
17738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } && {
17740 test -z "$ac_c_werror_flag" ||
17741 test ! -s conftest.err
17742 } && test -s conftest.$ac_objext; then
17744 cat >>confdefs.h <<\_ACEOF
17745 #define HAVE___PROGNAME 1
17750 $as_echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17767 #include <wctype.h>
17777 if (w == WEOF) exit(1);
17785 rm -f conftest.$ac_objext
17786 if { (ac_try="$ac_compile"
17787 case "(($ac_try" in
17788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789 *) ac_try_echo=$ac_try;;
17791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17792 $as_echo "$ac_try_echo") >&5
17793 (eval "$ac_compile") 2>conftest.er1
17795 grep -v '^ *+' conftest.er1 >conftest.err
17797 cat conftest.err >&5
17798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); } && {
17800 test -z "$ac_c_werror_flag" ||
17801 test ! -s conftest.err
17802 } && test -s conftest.$ac_objext; then
17804 cat >>confdefs.h <<\_ACEOF
17805 #define HAVE_WIDECHAR 1
17810 $as_echo "$as_me: failed program was:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17828 { $as_echo "$as_me:$LINENO: checking for syscall pivot_root" >&5
17829 $as_echo_n "checking for syscall pivot_root... " >&6; }
17830 if test "${util_cv_syscall_pivot_root+set}" = set; then
17831 $as_echo_n "(cached) " >&6
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17840 #include <sys/syscall.h>
17841 #include <unistd.h>
17846 int test = SYS_pivot_root;
17851 rm -f conftest.$ac_objext
17852 if { (ac_try="$ac_compile"
17853 case "(($ac_try" in
17854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17855 *) ac_try_echo=$ac_try;;
17857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17858 $as_echo "$ac_try_echo") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 syscall=SYS_pivot_root
17871 $as_echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 cat >conftest.$ac_ext <<_ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17881 #include <sys/syscall.h>
17882 #include <unistd.h>
17887 int test = _NR_pivot_root;
17892 rm -f conftest.$ac_objext
17893 if { (ac_try="$ac_compile"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17899 $as_echo "$ac_try_echo") >&5
17900 (eval "$ac_compile") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17906 (exit $ac_status); } && {
17907 test -z "$ac_c_werror_flag" ||
17908 test ! -s conftest.err
17909 } && test -s conftest.$ac_objext; then
17910 syscall=_NR_pivot_root
17912 $as_echo "$as_me: failed program was:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17917 if test "x$linux_os" = xyes; then
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932 util_cv_syscall_pivot_root=$syscall
17935 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_pivot_root" >&5
17936 $as_echo "$util_cv_syscall_pivot_root" >&6; }
17937 if test "x$util_cv_syscall_pivot_root" != xno; then
17938 HAVE_PIVOT_ROOT_TRUE=
17939 HAVE_PIVOT_ROOT_FALSE='#'
17941 HAVE_PIVOT_ROOT_TRUE='#'
17942 HAVE_PIVOT_ROOT_FALSE=
17945 case $util_cv_syscall_pivot_root in #(
17946 no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall pivot_root." >&5
17947 $as_echo "$as_me: WARNING: Unable to detect syscall pivot_root." >&2;} ;;
17950 cat >>confdefs.h <<_ACEOF
17951 #define SYS_pivot_root $util_cv_syscall_pivot_root
17958 { $as_echo "$as_me:$LINENO: checking for syscall sched_getaffinity" >&5
17959 $as_echo_n "checking for syscall sched_getaffinity... " >&6; }
17960 if test "${util_cv_syscall_sched_getaffinity+set}" = set; then
17961 $as_echo_n "(cached) " >&6
17963 cat >conftest.$ac_ext <<_ACEOF
17966 cat confdefs.h >>conftest.$ac_ext
17967 cat >>conftest.$ac_ext <<_ACEOF
17968 /* end confdefs.h. */
17970 #include <sys/syscall.h>
17971 #include <unistd.h>
17976 int test = SYS_sched_getaffinity;
17981 rm -f conftest.$ac_objext
17982 if { (ac_try="$ac_compile"
17983 case "(($ac_try" in
17984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985 *) ac_try_echo=$ac_try;;
17987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17988 $as_echo "$ac_try_echo") >&5
17989 (eval "$ac_compile") 2>conftest.er1
17991 grep -v '^ *+' conftest.er1 >conftest.err
17993 cat conftest.err >&5
17994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } && {
17996 test -z "$ac_c_werror_flag" ||
17997 test ! -s conftest.err
17998 } && test -s conftest.$ac_objext; then
17999 syscall=SYS_sched_getaffinity
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18004 cat >conftest.$ac_ext <<_ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18011 #include <sys/syscall.h>
18012 #include <unistd.h>
18017 int test = _NR_sched_getaffinity;
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18029 $as_echo "$ac_try_echo") >&5
18030 (eval "$ac_compile") 2>conftest.er1
18032 grep -v '^ *+' conftest.er1 >conftest.err
18034 cat conftest.err >&5
18035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } && {
18037 test -z "$ac_c_werror_flag" ||
18038 test ! -s conftest.err
18039 } && test -s conftest.$ac_objext; then
18040 syscall=_NR_sched_getaffinity
18042 $as_echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18047 if test "x$linux_os" = xyes; then
18055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18062 util_cv_syscall_sched_getaffinity=$syscall
18065 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_sched_getaffinity" >&5
18066 $as_echo "$util_cv_syscall_sched_getaffinity" >&6; }
18067 if test "x$util_cv_syscall_sched_getaffinity" != xno; then
18068 HAVE_SCHED_GETAFFINITY_TRUE=
18069 HAVE_SCHED_GETAFFINITY_FALSE='#'
18071 HAVE_SCHED_GETAFFINITY_TRUE='#'
18072 HAVE_SCHED_GETAFFINITY_FALSE=
18075 case $util_cv_syscall_sched_getaffinity in #(
18076 no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall sched_getaffinity." >&5
18077 $as_echo "$as_me: WARNING: Unable to detect syscall sched_getaffinity." >&2;} ;;
18080 cat >>confdefs.h <<_ACEOF
18081 #define SYS_sched_getaffinity $util_cv_syscall_sched_getaffinity
18088 { $as_echo "$as_me:$LINENO: checking for syscall ioprio_set" >&5
18089 $as_echo_n "checking for syscall ioprio_set... " >&6; }
18090 if test "${util_cv_syscall_ioprio_set+set}" = set; then
18091 $as_echo_n "(cached) " >&6
18093 cat >conftest.$ac_ext <<_ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18100 #include <sys/syscall.h>
18101 #include <unistd.h>
18106 int test = SYS_ioprio_set;
18111 rm -f conftest.$ac_objext
18112 if { (ac_try="$ac_compile"
18113 case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18118 $as_echo "$ac_try_echo") >&5
18119 (eval "$ac_compile") 2>conftest.er1
18121 grep -v '^ *+' conftest.er1 >conftest.err
18123 cat conftest.err >&5
18124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); } && {
18126 test -z "$ac_c_werror_flag" ||
18127 test ! -s conftest.err
18128 } && test -s conftest.$ac_objext; then
18129 syscall=SYS_ioprio_set
18131 $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.$ac_ext >&5
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18141 #include <sys/syscall.h>
18142 #include <unistd.h>
18147 int test = _NR_ioprio_set;
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18159 $as_echo "$ac_try_echo") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 syscall=_NR_ioprio_set
18172 $as_echo "$as_me: failed program was:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18177 if test "x$linux_os" = xyes; then
18180 alpha) syscall="442" ;; #(
18181 i*86) syscall="289" ;; #(
18182 ia64*) syscall="1274" ;; #(
18183 powerpc*) syscall="273" ;; #(
18184 s390*) syscall="282" ;; #(
18185 sparc*) syscall="196" ;; #(
18186 sh*) syscall="288" ;; #(
18187 x86_64*) syscall="251" ;;
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18200 util_cv_syscall_ioprio_set=$syscall
18203 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_ioprio_set" >&5
18204 $as_echo "$util_cv_syscall_ioprio_set" >&6; }
18205 if test "x$util_cv_syscall_ioprio_set" != xno; then
18206 HAVE_IOPRIO_SET_TRUE=
18207 HAVE_IOPRIO_SET_FALSE='#'
18209 HAVE_IOPRIO_SET_TRUE='#'
18210 HAVE_IOPRIO_SET_FALSE=
18213 case $util_cv_syscall_ioprio_set in #(
18214 no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall ioprio_set." >&5
18215 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_set." >&2;} ;;
18218 cat >>confdefs.h <<_ACEOF
18219 #define SYS_ioprio_set $util_cv_syscall_ioprio_set
18226 { $as_echo "$as_me:$LINENO: checking for syscall ioprio_get" >&5
18227 $as_echo_n "checking for syscall ioprio_get... " >&6; }
18228 if test "${util_cv_syscall_ioprio_get+set}" = set; then
18229 $as_echo_n "(cached) " >&6
18231 cat >conftest.$ac_ext <<_ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h. */
18238 #include <sys/syscall.h>
18239 #include <unistd.h>
18244 int test = SYS_ioprio_get;
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18256 $as_echo "$ac_try_echo") >&5
18257 (eval "$ac_compile") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest.$ac_objext; then
18267 syscall=SYS_ioprio_get
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 cat >conftest.$ac_ext <<_ACEOF
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18279 #include <sys/syscall.h>
18280 #include <unistd.h>
18285 int test = _NR_ioprio_get;
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18297 $as_echo "$ac_try_echo") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18300 grep -v '^ *+' conftest.er1 >conftest.err
18302 cat conftest.err >&5
18303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
18308 syscall=_NR_ioprio_get
18310 $as_echo "$as_me: failed program was:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18315 if test "x$linux_os" = xyes; then
18318 alpha) syscall="443" ;; #(
18319 i*86) syscall="290" ;; #(
18320 ia64*) syscall="1275" ;; #(
18321 powerpc*) syscall="274" ;; #(
18322 s390*) syscall="283" ;; #(
18323 sparc*) syscall="218" ;; #(
18324 sh*) syscall="289" ;; #(
18325 x86_64*) syscall="252" ;;
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18338 util_cv_syscall_ioprio_get=$syscall
18341 { $as_echo "$as_me:$LINENO: result: $util_cv_syscall_ioprio_get" >&5
18342 $as_echo "$util_cv_syscall_ioprio_get" >&6; }
18343 if test "x$util_cv_syscall_ioprio_get" != xno; then
18344 HAVE_IOPRIO_GET_TRUE=
18345 HAVE_IOPRIO_GET_FALSE='#'
18347 HAVE_IOPRIO_GET_TRUE='#'
18348 HAVE_IOPRIO_GET_FALSE=
18351 case $util_cv_syscall_ioprio_get in #(
18352 no) { $as_echo "$as_me:$LINENO: WARNING: Unable to detect syscall ioprio_get." >&5
18353 $as_echo "$as_me: WARNING: Unable to detect syscall ioprio_get." >&2;} ;;
18356 cat >>confdefs.h <<_ACEOF
18357 #define SYS_ioprio_get $util_cv_syscall_ioprio_get
18364 cat >conftest.$ac_ext <<_ACEOF
18367 cat confdefs.h >>conftest.$ac_ext
18368 cat >>conftest.$ac_ext <<_ACEOF
18369 /* end confdefs.h. */
18372 #include <unistd.h>
18379 struct tm *tm = localtime(0);
18380 if (a == -1) /* false */
18381 sleep(tm->tm_gmtoff);
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395 (eval "$ac_compile") 2>conftest.er1
18397 grep -v '^ *+' conftest.er1 >conftest.err
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest.$ac_objext; then
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_TM_GMTOFF 1
18412 $as_echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18420 { $as_echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
18421 $as_echo_n "checking for struct termios.c_line... " >&6; }
18422 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
18423 $as_echo_n "(cached) " >&6
18425 cat >conftest.$ac_ext <<_ACEOF
18428 cat confdefs.h >>conftest.$ac_ext
18429 cat >>conftest.$ac_ext <<_ACEOF
18430 /* end confdefs.h. */
18431 #include <termios.h>
18436 static struct termios ac_aggr;
18437 if (ac_aggr.c_line)
18443 rm -f conftest.$ac_objext
18444 if { (ac_try="$ac_compile"
18445 case "(($ac_try" in
18446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18447 *) ac_try_echo=$ac_try;;
18449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18450 $as_echo "$ac_try_echo") >&5
18451 (eval "$ac_compile") 2>conftest.er1
18453 grep -v '^ *+' conftest.er1 >conftest.err
18455 cat conftest.err >&5
18456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); } && {
18458 test -z "$ac_c_werror_flag" ||
18459 test ! -s conftest.err
18460 } && test -s conftest.$ac_objext; then
18461 ac_cv_member_struct_termios_c_line=yes
18463 $as_echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 cat >conftest.$ac_ext <<_ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 #include <termios.h>
18477 static struct termios ac_aggr;
18478 if (sizeof ac_aggr.c_line)
18484 rm -f conftest.$ac_objext
18485 if { (ac_try="$ac_compile"
18486 case "(($ac_try" in
18487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18488 *) ac_try_echo=$ac_try;;
18490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18491 $as_echo "$ac_try_echo") >&5
18492 (eval "$ac_compile") 2>conftest.er1
18494 grep -v '^ *+' conftest.er1 >conftest.err
18496 cat conftest.err >&5
18497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); } && {
18499 test -z "$ac_c_werror_flag" ||
18500 test ! -s conftest.err
18501 } && test -s conftest.$ac_objext; then
18502 ac_cv_member_struct_termios_c_line=yes
18504 $as_echo "$as_me: failed program was:" >&5
18505 sed 's/^/| /' conftest.$ac_ext >&5
18507 ac_cv_member_struct_termios_c_line=no
18510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18515 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
18516 $as_echo "$ac_cv_member_struct_termios_c_line" >&6; }
18517 if test "x$ac_cv_member_struct_termios_c_line" = x""yes; then
18519 cat >>confdefs.h <<_ACEOF
18520 #define HAVE_STRUCT_TERMIOS_C_LINE 1
18527 { $as_echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
18528 $as_echo_n "checking whether ADDR_NO_RANDOMIZE is declared... " >&6; }
18529 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
18530 $as_echo_n "(cached) " >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <linux/personality.h>
18543 #ifndef ADDR_NO_RANDOMIZE
18544 (void) ADDR_NO_RANDOMIZE;
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18558 $as_echo "$ac_try_echo") >&5
18559 (eval "$ac_compile") 2>conftest.er1
18561 grep -v '^ *+' conftest.er1 >conftest.err
18563 cat conftest.err >&5
18564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } && {
18566 test -z "$ac_c_werror_flag" ||
18567 test ! -s conftest.err
18568 } && test -s conftest.$ac_objext; then
18569 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
18571 $as_echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
18577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18579 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
18580 $as_echo "$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6; }
18581 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then
18583 cat >>confdefs.h <<_ACEOF
18584 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
18589 cat >>confdefs.h <<_ACEOF
18590 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
18595 { $as_echo "$as_me:$LINENO: checking whether FDPIC_FUNCPTRS is declared" >&5
18596 $as_echo_n "checking whether FDPIC_FUNCPTRS is declared... " >&6; }
18597 if test "${ac_cv_have_decl_FDPIC_FUNCPTRS+set}" = set; then
18598 $as_echo_n "(cached) " >&6
18600 cat >conftest.$ac_ext <<_ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <linux/personality.h>
18611 #ifndef FDPIC_FUNCPTRS
18612 (void) FDPIC_FUNCPTRS;
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18626 $as_echo "$ac_try_echo") >&5
18627 (eval "$ac_compile") 2>conftest.er1
18629 grep -v '^ *+' conftest.er1 >conftest.err
18631 cat conftest.err >&5
18632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18633 (exit $ac_status); } && {
18634 test -z "$ac_c_werror_flag" ||
18635 test ! -s conftest.err
18636 } && test -s conftest.$ac_objext; then
18637 ac_cv_have_decl_FDPIC_FUNCPTRS=yes
18639 $as_echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_have_decl_FDPIC_FUNCPTRS=no
18645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18647 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_FDPIC_FUNCPTRS" >&5
18648 $as_echo "$ac_cv_have_decl_FDPIC_FUNCPTRS" >&6; }
18649 if test "x$ac_cv_have_decl_FDPIC_FUNCPTRS" = x""yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define HAVE_DECL_FDPIC_FUNCPTRS 1
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_DECL_FDPIC_FUNCPTRS 0
18663 { $as_echo "$as_me:$LINENO: checking whether MMAP_PAGE_ZERO is declared" >&5
18664 $as_echo_n "checking whether MMAP_PAGE_ZERO is declared... " >&6; }
18665 if test "${ac_cv_have_decl_MMAP_PAGE_ZERO+set}" = set; then
18666 $as_echo_n "(cached) " >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include <linux/personality.h>
18679 #ifndef MMAP_PAGE_ZERO
18680 (void) MMAP_PAGE_ZERO;
18687 rm -f conftest.$ac_objext
18688 if { (ac_try="$ac_compile"
18689 case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18694 $as_echo "$ac_try_echo") >&5
18695 (eval "$ac_compile") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest.$ac_objext; then
18705 ac_cv_have_decl_MMAP_PAGE_ZERO=yes
18707 $as_echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 ac_cv_have_decl_MMAP_PAGE_ZERO=no
18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_MMAP_PAGE_ZERO" >&5
18716 $as_echo "$ac_cv_have_decl_MMAP_PAGE_ZERO" >&6; }
18717 if test "x$ac_cv_have_decl_MMAP_PAGE_ZERO" = x""yes; then
18719 cat >>confdefs.h <<_ACEOF
18720 #define HAVE_DECL_MMAP_PAGE_ZERO 1
18725 cat >>confdefs.h <<_ACEOF
18726 #define HAVE_DECL_MMAP_PAGE_ZERO 0
18731 { $as_echo "$as_me:$LINENO: checking whether ADDR_COMPAT_LAYOUT is declared" >&5
18732 $as_echo_n "checking whether ADDR_COMPAT_LAYOUT is declared... " >&6; }
18733 if test "${ac_cv_have_decl_ADDR_COMPAT_LAYOUT+set}" = set; then
18734 $as_echo_n "(cached) " >&6
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18742 #include <linux/personality.h>
18747 #ifndef ADDR_COMPAT_LAYOUT
18748 (void) ADDR_COMPAT_LAYOUT;
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763 (eval "$ac_compile") 2>conftest.er1
18765 grep -v '^ *+' conftest.er1 >conftest.err
18767 cat conftest.err >&5
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } && {
18770 test -z "$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 } && test -s conftest.$ac_objext; then
18773 ac_cv_have_decl_ADDR_COMPAT_LAYOUT=yes
18775 $as_echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_cv_have_decl_ADDR_COMPAT_LAYOUT=no
18781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_COMPAT_LAYOUT" >&5
18784 $as_echo "$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" >&6; }
18785 if test "x$ac_cv_have_decl_ADDR_COMPAT_LAYOUT" = x""yes; then
18787 cat >>confdefs.h <<_ACEOF
18788 #define HAVE_DECL_ADDR_COMPAT_LAYOUT 1
18793 cat >>confdefs.h <<_ACEOF
18794 #define HAVE_DECL_ADDR_COMPAT_LAYOUT 0
18799 { $as_echo "$as_me:$LINENO: checking whether READ_IMPLIES_EXEC is declared" >&5
18800 $as_echo_n "checking whether READ_IMPLIES_EXEC is declared... " >&6; }
18801 if test "${ac_cv_have_decl_READ_IMPLIES_EXEC+set}" = set; then
18802 $as_echo_n "(cached) " >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 #include <linux/personality.h>
18815 #ifndef READ_IMPLIES_EXEC
18816 (void) READ_IMPLIES_EXEC;
18823 rm -f conftest.$ac_objext
18824 if { (ac_try="$ac_compile"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18830 $as_echo "$ac_try_echo") >&5
18831 (eval "$ac_compile") 2>conftest.er1
18833 grep -v '^ *+' conftest.er1 >conftest.err
18835 cat conftest.err >&5
18836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } && {
18838 test -z "$ac_c_werror_flag" ||
18839 test ! -s conftest.err
18840 } && test -s conftest.$ac_objext; then
18841 ac_cv_have_decl_READ_IMPLIES_EXEC=yes
18843 $as_echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18846 ac_cv_have_decl_READ_IMPLIES_EXEC=no
18849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_READ_IMPLIES_EXEC" >&5
18852 $as_echo "$ac_cv_have_decl_READ_IMPLIES_EXEC" >&6; }
18853 if test "x$ac_cv_have_decl_READ_IMPLIES_EXEC" = x""yes; then
18855 cat >>confdefs.h <<_ACEOF
18856 #define HAVE_DECL_READ_IMPLIES_EXEC 1
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_DECL_READ_IMPLIES_EXEC 0
18867 { $as_echo "$as_me:$LINENO: checking whether ADDR_LIMIT_32BIT is declared" >&5
18868 $as_echo_n "checking whether ADDR_LIMIT_32BIT is declared... " >&6; }
18869 if test "${ac_cv_have_decl_ADDR_LIMIT_32BIT+set}" = set; then
18870 $as_echo_n "(cached) " >&6
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <linux/personality.h>
18883 #ifndef ADDR_LIMIT_32BIT
18884 (void) ADDR_LIMIT_32BIT;
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18898 $as_echo "$ac_try_echo") >&5
18899 (eval "$ac_compile") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest.$ac_objext; then
18909 ac_cv_have_decl_ADDR_LIMIT_32BIT=yes
18911 $as_echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_have_decl_ADDR_LIMIT_32BIT=no
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_32BIT" >&5
18920 $as_echo "$ac_cv_have_decl_ADDR_LIMIT_32BIT" >&6; }
18921 if test "x$ac_cv_have_decl_ADDR_LIMIT_32BIT" = x""yes; then
18923 cat >>confdefs.h <<_ACEOF
18924 #define HAVE_DECL_ADDR_LIMIT_32BIT 1
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_DECL_ADDR_LIMIT_32BIT 0
18935 { $as_echo "$as_me:$LINENO: checking whether WHOLE_SECONDS is declared" >&5
18936 $as_echo_n "checking whether WHOLE_SECONDS is declared... " >&6; }
18937 if test "${ac_cv_have_decl_WHOLE_SECONDS+set}" = set; then
18938 $as_echo_n "(cached) " >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 #include <linux/personality.h>
18951 #ifndef WHOLE_SECONDS
18952 (void) WHOLE_SECONDS;
18959 rm -f conftest.$ac_objext
18960 if { (ac_try="$ac_compile"
18961 case "(($ac_try" in
18962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18963 *) ac_try_echo=$ac_try;;
18965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18966 $as_echo "$ac_try_echo") >&5
18967 (eval "$ac_compile") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } && {
18974 test -z "$ac_c_werror_flag" ||
18975 test ! -s conftest.err
18976 } && test -s conftest.$ac_objext; then
18977 ac_cv_have_decl_WHOLE_SECONDS=yes
18979 $as_echo "$as_me: failed program was:" >&5
18980 sed 's/^/| /' conftest.$ac_ext >&5
18982 ac_cv_have_decl_WHOLE_SECONDS=no
18985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18987 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_WHOLE_SECONDS" >&5
18988 $as_echo "$ac_cv_have_decl_WHOLE_SECONDS" >&6; }
18989 if test "x$ac_cv_have_decl_WHOLE_SECONDS" = x""yes; then
18991 cat >>confdefs.h <<_ACEOF
18992 #define HAVE_DECL_WHOLE_SECONDS 1
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_DECL_WHOLE_SECONDS 0
19003 { $as_echo "$as_me:$LINENO: checking whether STICKY_TIMEOUTS is declared" >&5
19004 $as_echo_n "checking whether STICKY_TIMEOUTS is declared... " >&6; }
19005 if test "${ac_cv_have_decl_STICKY_TIMEOUTS+set}" = set; then
19006 $as_echo_n "(cached) " >&6
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 #include <linux/personality.h>
19019 #ifndef STICKY_TIMEOUTS
19020 (void) STICKY_TIMEOUTS;
19027 rm -f conftest.$ac_objext
19028 if { (ac_try="$ac_compile"
19029 case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19034 $as_echo "$ac_try_echo") >&5
19035 (eval "$ac_compile") 2>conftest.er1
19037 grep -v '^ *+' conftest.er1 >conftest.err
19039 cat conftest.err >&5
19040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } && {
19042 test -z "$ac_c_werror_flag" ||
19043 test ! -s conftest.err
19044 } && test -s conftest.$ac_objext; then
19045 ac_cv_have_decl_STICKY_TIMEOUTS=yes
19047 $as_echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19050 ac_cv_have_decl_STICKY_TIMEOUTS=no
19053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_STICKY_TIMEOUTS" >&5
19056 $as_echo "$ac_cv_have_decl_STICKY_TIMEOUTS" >&6; }
19057 if test "x$ac_cv_have_decl_STICKY_TIMEOUTS" = x""yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DECL_STICKY_TIMEOUTS 1
19065 cat >>confdefs.h <<_ACEOF
19066 #define HAVE_DECL_STICKY_TIMEOUTS 0
19071 { $as_echo "$as_me:$LINENO: checking whether ADDR_LIMIT_3GB is declared" >&5
19072 $as_echo_n "checking whether ADDR_LIMIT_3GB is declared... " >&6; }
19073 if test "${ac_cv_have_decl_ADDR_LIMIT_3GB+set}" = set; then
19074 $as_echo_n "(cached) " >&6
19076 cat >conftest.$ac_ext <<_ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h. */
19082 #include <linux/personality.h>
19087 #ifndef ADDR_LIMIT_3GB
19088 (void) ADDR_LIMIT_3GB;
19095 rm -f conftest.$ac_objext
19096 if { (ac_try="$ac_compile"
19097 case "(($ac_try" in
19098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19099 *) ac_try_echo=$ac_try;;
19101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19102 $as_echo "$ac_try_echo") >&5
19103 (eval "$ac_compile") 2>conftest.er1
19105 grep -v '^ *+' conftest.er1 >conftest.err
19107 cat conftest.err >&5
19108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } && {
19110 test -z "$ac_c_werror_flag" ||
19111 test ! -s conftest.err
19112 } && test -s conftest.$ac_objext; then
19113 ac_cv_have_decl_ADDR_LIMIT_3GB=yes
19115 $as_echo "$as_me: failed program was:" >&5
19116 sed 's/^/| /' conftest.$ac_ext >&5
19118 ac_cv_have_decl_ADDR_LIMIT_3GB=no
19121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19123 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_LIMIT_3GB" >&5
19124 $as_echo "$ac_cv_have_decl_ADDR_LIMIT_3GB" >&6; }
19125 if test "x$ac_cv_have_decl_ADDR_LIMIT_3GB" = x""yes; then
19127 cat >>confdefs.h <<_ACEOF
19128 #define HAVE_DECL_ADDR_LIMIT_3GB 1
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_ADDR_LIMIT_3GB 0
19143 for ac_header in sys/swap.h
19145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 $as_echo_n "checking for $ac_header... " >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 $as_echo_n "(cached) " >&6
19152 ac_res=`eval 'as_val=${'$as_ac_Header'}
19153 $as_echo "$as_val"'`
19154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19155 $as_echo "$ac_res" >&6; }
19157 # Is the header compilable?
19158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19159 $as_echo_n "checking $ac_header usability... " >&6; }
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 $ac_includes_default
19167 #include <$ac_header>
19169 rm -f conftest.$ac_objext
19170 if { (ac_try="$ac_compile"
19171 case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19176 $as_echo "$ac_try_echo") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest.$ac_objext; then
19187 ac_header_compiler=yes
19189 $as_echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_header_compiler=no
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19197 $as_echo "$ac_header_compiler" >&6; }
19199 # Is the header present?
19200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19201 $as_echo_n "checking $ac_header presence... " >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 #include <$ac_header>
19210 if { (ac_try="$ac_cpp conftest.$ac_ext"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19216 $as_echo "$ac_try_echo") >&5
19217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19219 grep -v '^ *+' conftest.er1 >conftest.err
19221 cat conftest.err >&5
19222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } >/dev/null && {
19224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19225 test ! -s conftest.err
19227 ac_header_preproc=yes
19229 $as_echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_header_preproc=no
19235 rm -f conftest.err conftest.$ac_ext
19236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19237 $as_echo "$ac_header_preproc" >&6; }
19239 # So? What about this header?
19240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19246 ac_header_preproc=yes
19249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19252 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19256 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19262 ## ------------------------------ ##
19263 ## Report this to kzak@redhat.com ##
19264 ## ------------------------------ ##
19266 ) | sed "s/^/$as_me: WARNING: /" >&2
19269 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19270 $as_echo_n "checking for $ac_header... " >&6; }
19271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19272 $as_echo_n "(cached) " >&6
19274 eval "$as_ac_Header=\$ac_header_preproc"
19276 ac_res=`eval 'as_val=${'$as_ac_Header'}
19277 $as_echo "$as_val"'`
19278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19279 $as_echo "$ac_res" >&6; }
19282 as_val=`eval 'as_val=${'$as_ac_Header'}
19283 $as_echo "$as_val"'`
19284 if test "x$as_val" = x""yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19301 #ifdef HAVE_SYS_SWAP_H
19302 # include <sys/swap.h>
19304 #include <unistd.h>
19309 swapon("/dev/null", 0);
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19321 $as_echo "$ac_try_echo") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1 >conftest.err
19326 cat conftest.err >&5
19327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } && {
19329 test -z "$ac_c_werror_flag" ||
19330 test ! -s conftest.err
19331 } && test -s conftest.$ac_objext; then
19333 cat >>confdefs.h <<\_ACEOF
19334 #define SWAPON_HAS_TWO_ARGS 1
19339 $as_echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19342 { $as_echo "$as_me:$LINENO: Your libc thinks that swapon has 1 arg only." >&5
19343 $as_echo "$as_me: Your libc thinks that swapon has 1 arg only." >&6;}
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19355 i?86-*) cpu_I86=true ;;
19357 if test "x$cpu_I86" = xtrue; then
19369 x86_64*) cpu_86_64=true ;;
19371 if test "x$cpu_86_64" = xtrue; then
19373 ARCH_86_64_FALSE='#'
19375 ARCH_86_64_TRUE='#'
19383 ia64*) cpu_IA64=true ;;
19385 if test "x$cpu_IA64" = xtrue; then
19387 ARCH_IA64_FALSE='#'
19397 s390*) cpu_S390=true ;;
19399 if test "x$cpu_S390" = xtrue; then
19401 ARCH_S390_FALSE='#'
19411 sparc*) cpu_SPARC=true ;;
19413 if test "x$cpu_SPARC" = xtrue; then
19415 ARCH_SPARC_FALSE='#'
19417 ARCH_SPARC_TRUE='#'
19425 ppc*|powerpc*) cpu_PPC=true ;;
19427 if test "x$cpu_PPC" = xtrue; then
19439 m68*) cpu_M68K=true ;;
19441 if test "x$cpu_M68K" = xtrue; then
19443 ARCH_M68K_FALSE='#'
19453 mips*) cpu_MIPS=true ;;
19455 if test "x$cpu_MIPS" = xtrue; then
19457 ARCH_MIPS_FALSE='#'
19467 hppa*) cpu_HPPA=true ;;
19469 if test "x$cpu_HPPA" = xtrue; then
19471 ARCH_HPPA_FALSE='#'
19479 # Check whether --enable-arch was given.
19480 if test "${enable_arch+set}" = set; then
19481 enableval=$enable_arch;
19487 if test "x$enable_arch" = xyes; then
19489 BUILD_ARCH_FALSE='#'
19491 BUILD_ARCH_TRUE='#'
19496 # Check whether --enable-agetty was given.
19497 if test "${enable_agetty+set}" = set; then
19498 enableval=$enable_agetty;
19504 if test "x$enable_agetty" = xyes; then
19506 BUILD_AGETTY_FALSE='#'
19508 BUILD_AGETTY_TRUE='#'
19509 BUILD_AGETTY_FALSE=
19513 # Check whether --enable-cramfs was given.
19514 if test "${enable_cramfs+set}" = set; then
19515 enableval=$enable_cramfs;
19517 enable_cramfs=check
19522 if test "x$enable_cramfs" = xno; then
19527 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
19528 $as_echo_n "checking for crc32 in -lz... " >&6; }
19529 if test "${ac_cv_lib_z_crc32+set}" = set; then
19530 $as_echo_n "(cached) " >&6
19532 ac_check_lib_save_LIBS=$LIBS
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19541 /* Override any GCC internal prototype to avoid an error.
19542 Use char because int might match the return type of a GCC
19543 builtin and then its argument prototype would still apply. */
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (ac_try="$ac_link"
19558 case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19563 $as_echo "$ac_try_echo") >&5
19564 (eval "$ac_link") 2>conftest.er1
19566 grep -v '^ *+' conftest.er1 >conftest.err
19568 cat conftest.err >&5
19569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } && {
19571 test -z "$ac_c_werror_flag" ||
19572 test ! -s conftest.err
19573 } && test -s conftest$ac_exeext && {
19574 test "$cross_compiling" = yes ||
19575 $as_test_x conftest$ac_exeext
19577 ac_cv_lib_z_crc32=yes
19579 $as_echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_lib_z_crc32=no
19585 rm -rf conftest.dSYM
19586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19587 conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19590 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
19591 $as_echo "$ac_cv_lib_z_crc32" >&6; }
19592 if test "x$ac_cv_lib_z_crc32" = x""yes; then
19593 cat >>confdefs.h <<_ACEOF
19594 #define HAVE_LIBZ 1
19603 case $enable_cramfs:$build_cramfs in
19604 yes:no) { { $as_echo "$as_me:$LINENO: error: cramfs selected but libz not found" >&5
19605 $as_echo "$as_me: error: cramfs selected but libz not found" >&2;}
19606 { (exit 1); exit 1; }; };;
19609 if test "x$build_cramfs" = xyes; then
19611 BUILD_CRAMFS_FALSE='#'
19613 BUILD_CRAMFS_TRUE='#'
19614 BUILD_CRAMFS_FALSE=
19619 # Check whether --enable-switch_root was given.
19620 if test "${enable_switch_root+set}" = set; then
19621 enableval=$enable_switch_root;
19623 enable_switch_root=check
19628 if test "x$enable_switch_root" = xno; then
19629 build_switch_root=no
19631 build_switch_root=yes
19632 case $enable_switch_root:$linux_os in
19633 yes:no) { { $as_echo "$as_me:$LINENO: error: switch_root selected for non-linux system" >&5
19634 $as_echo "$as_me: error: switch_root selected for non-linux system" >&2;}
19635 { (exit 1); exit 1; }; };;
19636 check:no) { $as_echo "$as_me:$LINENO: WARNING: non-linux system; do not build switch_root" >&5
19637 $as_echo "$as_me: WARNING: non-linux system; do not build switch_root" >&2;}
19638 build_switch_root=no;;
19640 if test "x$build_switch_root" = xyes; then
19641 case $enable_switch_root:$have_openat in
19642 yes:no) { { $as_echo "$as_me:$LINENO: error: switch_root selected but openat() function not found" >&5
19643 $as_echo "$as_me: error: switch_root selected but openat() function not found" >&2;}
19644 { (exit 1); exit 1; }; };;
19645 check:no) { $as_echo "$as_me:$LINENO: WARNING: openat() function not found; do not build switch_root" >&5
19646 $as_echo "$as_me: WARNING: openat() function not found; do not build switch_root" >&2;}
19647 build_switch_root=no;;
19651 if test "x$build_switch_root" = xyes; then
19652 BUILD_SWITCH_ROOT_TRUE=
19653 BUILD_SWITCH_ROOT_FALSE='#'
19655 BUILD_SWITCH_ROOT_TRUE='#'
19656 BUILD_SWITCH_ROOT_FALSE=
19661 # Check whether --enable-elvtune was given.
19662 if test "${enable_elvtune+set}" = set; then
19663 enableval=$enable_elvtune;
19669 if test "x$enable_elvtune" = xyes; then
19670 BUILD_ELVTUNE_TRUE=
19671 BUILD_ELVTUNE_FALSE='#'
19673 BUILD_ELVTUNE_TRUE='#'
19674 BUILD_ELVTUNE_FALSE=
19679 # Check whether --enable-init was given.
19680 if test "${enable_init+set}" = set; then
19681 enableval=$enable_init;
19687 if test "x$enable_init" = xyes; then
19689 BUILD_INIT_FALSE='#'
19691 BUILD_INIT_TRUE='#'
19697 # Check whether --enable-kill was given.
19698 if test "${enable_kill+set}" = set; then
19699 enableval=$enable_kill;
19705 if test "x$enable_kill" = xyes; then
19707 BUILD_KILL_FALSE='#'
19709 BUILD_KILL_TRUE='#'
19715 # Check whether --enable-last was given.
19716 if test "${enable_last+set}" = set; then
19717 enableval=$enable_last;
19723 if test "x$enable_last" = xyes; then
19725 BUILD_LAST_FALSE='#'
19727 BUILD_LAST_TRUE='#'
19733 # Check whether --enable-mesg was given.
19734 if test "${enable_mesg+set}" = set; then
19735 enableval=$enable_mesg;
19741 if test "x$enable_mesg" = xyes; then
19743 BUILD_MESG_FALSE='#'
19745 BUILD_MESG_TRUE='#'
19751 # Check whether --enable-partx was given.
19752 if test "${enable_partx+set}" = set; then
19753 enableval=$enable_partx;
19759 if test "x$enable_partx" = xyes; then
19761 BUILD_PARTX_FALSE='#'
19763 BUILD_PARTX_TRUE='#'
19769 # Check whether --enable-raw was given.
19770 if test "${enable_raw+set}" = set; then
19771 enableval=$enable_raw;
19777 if test "x$enable_raw" = xyes; then
19779 BUILD_RAW_FALSE='#'
19787 # Check whether --enable-rdev was given.
19788 if test "${enable_rdev+set}" = set; then
19789 enableval=$enable_rdev;
19795 if test "x$enable_rdev" = xyes; then
19797 BUILD_RDEV_FALSE='#'
19799 BUILD_RDEV_TRUE='#'
19805 # Check whether --enable-rename was given.
19806 if test "${enable_rename+set}" = set; then
19807 enableval=$enable_rename;
19813 if test "x$enable_rename" = xyes; then
19815 BUILD_RENAME_FALSE='#'
19817 BUILD_RENAME_TRUE='#'
19818 BUILD_RENAME_FALSE=
19823 # Check whether --enable-reset was given.
19824 if test "${enable_reset+set}" = set; then
19825 enableval=$enable_reset;
19831 if test "x$enable_reset" = xyes; then
19833 BUILD_RESET_FALSE='#'
19835 BUILD_RESET_TRUE='#'
19841 # Check whether --enable-login-utils was given.
19842 if test "${enable_login_utils+set}" = set; then
19843 enableval=$enable_login_utils;
19845 enable_login_utils=no
19849 if test "x$enable_login_utils" = xyes; then
19850 BUILD_LOGIN_UTILS_TRUE=
19851 BUILD_LOGIN_UTILS_FALSE='#'
19853 BUILD_LOGIN_UTILS_TRUE='#'
19854 BUILD_LOGIN_UTILS_FALSE=
19859 # Check whether --with-pam was given.
19860 if test "${with_pam+set}" = set; then
19873 if test "x$enable_login_utils" = xyes && test "x$with_pam" != xno; then
19875 for ac_header in security/pam_misc.h
19877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19880 $as_echo_n "checking for $ac_header... " >&6; }
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882 $as_echo_n "(cached) " >&6
19884 ac_res=`eval 'as_val=${'$as_ac_Header'}
19885 $as_echo "$as_val"'`
19886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19887 $as_echo "$ac_res" >&6; }
19889 # Is the header compilable?
19890 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19891 $as_echo_n "checking $ac_header usability... " >&6; }
19892 cat >conftest.$ac_ext <<_ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898 $ac_includes_default
19899 #include <$ac_header>
19901 rm -f conftest.$ac_objext
19902 if { (ac_try="$ac_compile"
19903 case "(($ac_try" in
19904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19905 *) ac_try_echo=$ac_try;;
19907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19908 $as_echo "$ac_try_echo") >&5
19909 (eval "$ac_compile") 2>conftest.er1
19911 grep -v '^ *+' conftest.er1 >conftest.err
19913 cat conftest.err >&5
19914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } && {
19916 test -z "$ac_c_werror_flag" ||
19917 test ! -s conftest.err
19918 } && test -s conftest.$ac_objext; then
19919 ac_header_compiler=yes
19921 $as_echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ac_header_compiler=no
19927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19928 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19929 $as_echo "$ac_header_compiler" >&6; }
19931 # Is the header present?
19932 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19933 $as_echo_n "checking $ac_header presence... " >&6; }
19934 cat >conftest.$ac_ext <<_ACEOF
19937 cat confdefs.h >>conftest.$ac_ext
19938 cat >>conftest.$ac_ext <<_ACEOF
19939 /* end confdefs.h. */
19940 #include <$ac_header>
19942 if { (ac_try="$ac_cpp conftest.$ac_ext"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19948 $as_echo "$ac_try_echo") >&5
19949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19951 grep -v '^ *+' conftest.er1 >conftest.err
19953 cat conftest.err >&5
19954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } >/dev/null && {
19956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19957 test ! -s conftest.err
19959 ac_header_preproc=yes
19961 $as_echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_header_preproc=no
19967 rm -f conftest.err conftest.$ac_ext
19968 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19969 $as_echo "$ac_header_preproc" >&6; }
19971 # So? What about this header?
19972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19975 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19977 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19978 ac_header_preproc=yes
19981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19982 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19984 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19986 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19988 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19990 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19992 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19994 ## ------------------------------ ##
19995 ## Report this to kzak@redhat.com ##
19996 ## ------------------------------ ##
19998 ) | sed "s/^/$as_me: WARNING: /" >&2
20001 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20002 $as_echo_n "checking for $ac_header... " >&6; }
20003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20004 $as_echo_n "(cached) " >&6
20006 eval "$as_ac_Header=\$ac_header_preproc"
20008 ac_res=`eval 'as_val=${'$as_ac_Header'}
20009 $as_echo "$as_val"'`
20010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20011 $as_echo "$ac_res" >&6; }
20014 as_val=`eval 'as_val=${'$as_ac_Header'}
20015 $as_echo "$as_val"'`
20016 if test "x$as_val" = x""yes; then
20017 cat >>confdefs.h <<_ACEOF
20018 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20029 if test "x$with_pam" = xyes; then
20030 { { $as_echo "$as_me:$LINENO: error: PAM selected but security/pam_misc.h not found" >&5
20031 $as_echo "$as_me: error: PAM selected but security/pam_misc.h not found" >&2;}
20032 { (exit 1); exit 1; }; }
20042 # Check whether --with-selinux was given.
20043 if test "${with_selinux+set}" = set; then
20044 withval=$with_selinux;
20051 if test "x$with_selinux" = xno; then
20054 HAVE_SELINUX_FALSE='#'
20056 HAVE_SELINUX_TRUE='#'
20057 HAVE_SELINUX_FALSE=
20065 { $as_echo "$as_me:$LINENO: checking for getprevcon in -lselinux" >&5
20066 $as_echo_n "checking for getprevcon in -lselinux... " >&6; }
20067 if test "${ac_cv_lib_selinux_getprevcon+set}" = set; then
20068 $as_echo_n "(cached) " >&6
20070 ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lselinux $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20085 char getprevcon ();
20089 return getprevcon ();
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20101 $as_echo "$ac_try_echo") >&5
20102 (eval "$ac_link") 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest$ac_exeext && {
20112 test "$cross_compiling" = yes ||
20113 $as_test_x conftest$ac_exeext
20115 ac_cv_lib_selinux_getprevcon=yes
20117 $as_echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_cv_lib_selinux_getprevcon=no
20123 rm -rf conftest.dSYM
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125 conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getprevcon" >&5
20129 $as_echo "$ac_cv_lib_selinux_getprevcon" >&6; }
20130 if test "x$ac_cv_lib_selinux_getprevcon" = x""yes; then
20131 cat >>confdefs.h <<_ACEOF
20132 #define HAVE_LIBSELINUX 1
20135 LIBS="-lselinux $LIBS"
20141 if test $have_selinux = yes; then
20143 HAVE_SELINUX_FALSE='#'
20145 HAVE_SELINUX_TRUE='#'
20146 HAVE_SELINUX_FALSE=
20150 case "$with_selinux:$have_selinux" in
20151 yes:no) { { $as_echo "$as_me:$LINENO: error: SELinux selected but libselinux not found" >&5
20152 $as_echo "$as_me: error: SELinux selected but libselinux not found" >&2;}
20153 { (exit 1); exit 1; }; };;
20157 if test "x$have_selinux" = xyes; then
20158 SELINUX_LIBS="-lselinux -lsepol"
20159 SELINUX_LIBS_STATIC="-lselinux -lsepol"
20160 old_LDFLAGS="$LDFLAGS"
20161 LDFLAGS="$LDFLAGS $SELINUX_LIBS"
20162 # This function is missing in old libselinux 1.xx versions
20164 for ac_func in security_get_initial_context
20166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20167 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20168 $as_echo_n "checking for $ac_func... " >&6; }
20169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20170 $as_echo_n "(cached) " >&6
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20180 #define $ac_func innocuous_$ac_func
20182 /* System header to define __stub macros and hopefully few prototypes,
20183 which can conflict with char $ac_func (); below.
20184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185 <limits.h> exists even on freestanding compilers. */
20188 # include <limits.h>
20190 # include <assert.h>
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20202 /* The GNU C library defines this for functions which it implements
20203 to always fail with ENOSYS. Some functions are actually named
20204 something starting with __ and the normal name is an alias. */
20205 #if defined __stub_$ac_func || defined __stub___$ac_func
20212 return $ac_func ();
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (ac_try="$ac_link"
20219 case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20224 $as_echo "$ac_try_echo") >&5
20225 (eval "$ac_link") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest$ac_exeext && {
20235 test "$cross_compiling" = yes ||
20236 $as_test_x conftest$ac_exeext
20238 eval "$as_ac_var=yes"
20240 $as_echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 eval "$as_ac_var=no"
20246 rm -rf conftest.dSYM
20247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20248 conftest$ac_exeext conftest.$ac_ext
20250 ac_res=`eval 'as_val=${'$as_ac_var'}
20251 $as_echo "$as_val"'`
20252 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20253 $as_echo "$ac_res" >&6; }
20254 as_val=`eval 'as_val=${'$as_ac_var'}
20255 $as_echo "$as_val"'`
20256 if test "x$as_val" = x""yes; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20264 LDFLAGS="$old_LDFLAGS"
20270 # Check whether --with-audit was given.
20271 if test "${with_audit+set}" = set; then
20272 withval=$with_audit;
20279 if test "x$with_audit" = xno; then
20282 HAVE_AUDIT_FALSE='#'
20284 HAVE_AUDIT_TRUE='#'
20293 { $as_echo "$as_me:$LINENO: checking for audit_log_user_message in -laudit" >&5
20294 $as_echo_n "checking for audit_log_user_message in -laudit... " >&6; }
20295 if test "${ac_cv_lib_audit_audit_log_user_message+set}" = set; then
20296 $as_echo_n "(cached) " >&6
20298 ac_check_lib_save_LIBS=$LIBS
20299 LIBS="-laudit $LIBS"
20300 cat >conftest.$ac_ext <<_ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h. */
20307 /* Override any GCC internal prototype to avoid an error.
20308 Use char because int might match the return type of a GCC
20309 builtin and then its argument prototype would still apply. */
20313 char audit_log_user_message ();
20317 return audit_log_user_message ();
20322 rm -f conftest.$ac_objext conftest$ac_exeext
20323 if { (ac_try="$ac_link"
20324 case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329 $as_echo "$ac_try_echo") >&5
20330 (eval "$ac_link") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest$ac_exeext && {
20340 test "$cross_compiling" = yes ||
20341 $as_test_x conftest$ac_exeext
20343 ac_cv_lib_audit_audit_log_user_message=yes
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_lib_audit_audit_log_user_message=no
20351 rm -rf conftest.dSYM
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_message" >&5
20357 $as_echo "$ac_cv_lib_audit_audit_log_user_message" >&6; }
20358 if test "x$ac_cv_lib_audit_audit_log_user_message" = x""yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBAUDIT 1
20363 LIBS="-laudit $LIBS"
20369 if test $have_audit = yes; then
20371 HAVE_AUDIT_FALSE='#'
20373 HAVE_AUDIT_TRUE='#'
20378 case "$with_audit:$have_audit" in
20380 { { $as_echo "$as_me:$LINENO: error: Audit selected but libaudit not found (or doesn't support audit_log_user_message())" >&5
20381 $as_echo "$as_me: error: Audit selected but libaudit not found (or doesn't support audit_log_user_message())" >&2;}
20382 { (exit 1); exit 1; }; }
20387 # Check whether --enable-schedutils was given.
20388 if test "${enable_schedutils+set}" = set; then
20389 enableval=$enable_schedutils;
20391 enable_schedutils=yes
20395 if test "x$enable_schedutils" = xyes; then
20396 BUILD_SCHEDUTILS_TRUE=
20397 BUILD_SCHEDUTILS_FALSE='#'
20399 BUILD_SCHEDUTILS_TRUE='#'
20400 BUILD_SCHEDUTILS_FALSE=
20405 # Check whether --enable-wall was given.
20406 if test "${enable_wall+set}" = set; then
20407 enableval=$enable_wall;
20413 if test "x$enable_wall" = xyes; then
20415 BUILD_WALL_FALSE='#'
20417 BUILD_WALL_TRUE='#'
20423 # Check whether --enable-write was given.
20424 if test "${enable_write+set}" = set; then
20425 enableval=$enable_write;
20431 if test "x$enable_write" = xyes; then
20433 BUILD_WRITE_FALSE='#'
20435 BUILD_WRITE_TRUE='#'
20441 # Check whether --enable-chsh-only-listed was given.
20442 if test "${enable_chsh_only_listed+set}" = set; then
20443 enableval=$enable_chsh_only_listed;
20445 enable_chsh_only_listed=yes
20450 if test "x$enable_chsh_only_listed" = xyes; then
20452 cat >>confdefs.h <<\_ACEOF
20453 #define ONLY_LISTED_SHELLS 1
20459 # Check whether --enable-login-chown-vcs was given.
20460 if test "${enable_login_chown_vcs+set}" = set; then
20461 enableval=$enable_login_chown_vcs;
20463 enable_login_chown_vcs=no
20468 if test "x$enable_login_chown_vcs" = xyes; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define LOGIN_CHOWN_VCS 1
20477 # Check whether --enable-login-stat-mail was given.
20478 if test "${enable_login_stat_mail+set}" = set; then
20479 enableval=$enable_login_stat_mail;
20481 enable_login_stat_mail=no
20486 if test "x$enable_login_stat_mail" = xyes; then
20488 cat >>confdefs.h <<\_ACEOF
20489 #define LOGIN_STAT_MAIL 1
20495 # Check whether --enable-pg-bell was given.
20496 if test "${enable_pg_bell+set}" = set; then
20497 enableval=$enable_pg_bell;
20504 if test "x$enable_pg_bell" = xyes; then
20506 cat >>confdefs.h <<\_ACEOF
20513 # Check whether --enable-require-password was given.
20514 if test "${enable_require_password+set}" = set; then
20515 enableval=$enable_require_password;
20517 enable_require_password=yes
20522 if test "x$enable_require_password" = xyes; then
20524 cat >>confdefs.h <<\_ACEOF
20525 #define REQUIRE_PASSWORD 1
20531 # Check whether --enable-use-tty-group was given.
20532 if test "${enable_use_tty_group+set}" = set; then
20533 enableval=$enable_use_tty_group;
20535 enable_use_tty_group=yes
20539 if test "x$enable_use_tty_group" = xyes; then
20540 USE_TTY_GROUP_TRUE=
20541 USE_TTY_GROUP_FALSE='#'
20543 USE_TTY_GROUP_TRUE='#'
20544 USE_TTY_GROUP_FALSE=
20548 if test "x$enable_use_tty_group" = xyes; then
20550 cat >>confdefs.h <<\_ACEOF
20551 #define USE_TTY_GROUP 1
20556 # Check whether --enable-makeinstall-chown was given.
20557 if test "${enable_makeinstall_chown+set}" = set; then
20558 enableval=$enable_makeinstall_chown;
20560 enable_makeinstall_chown=yes
20564 if test "x$enable_makeinstall_chown" = xyes; then
20565 MAKEINSTALL_DO_CHOWN_TRUE=
20566 MAKEINSTALL_DO_CHOWN_FALSE='#'
20568 MAKEINSTALL_DO_CHOWN_TRUE='#'
20569 MAKEINSTALL_DO_CHOWN_FALSE=
20580 ac_config_headers="$ac_config_headers config.h"
20583 ac_config_files="$ac_config_files disk-utils/Makefile fdisk/Makefile fsck/Makefile getopt/Makefile hwclock/Makefile include/Makefile lib/Makefile login-utils/Makefile Makefile misc-utils/chkdupexe:misc-utils/chkdupexe.pl misc-utils/Makefile mount/Makefile partx/Makefile po/Makefile.in schedutils/Makefile shlibs/blkid/blkid.pc shlibs/blkid/Makefile shlibs/blkid/src/Makefile shlibs/blkid/src/probers/Makefile shlibs/uuid/uuid.pc shlibs/uuid/Makefile shlibs/uuid/man/Makefile shlibs/uuid/src/Makefile shlibs/Makefile sys-utils/Makefile tests/commands.sh tests/helpers/Makefile tests/Makefile text-utils/Makefile"
20587 cat >confcache <<\_ACEOF
20588 # This file is a shell script that caches the results of configure
20589 # tests run on this system so they can be shared between configure
20590 # scripts and configure runs, see configure's option --config-cache.
20591 # It is not useful on other systems. If it contains results you don't
20592 # want to keep, you may remove or edit it.
20594 # config.status only pays attention to the cache file if you give it
20595 # the --recheck option to rerun configure.
20597 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20598 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20599 # following values.
20603 # The following way of writing the cache mishandles newlines in values,
20604 # but we know of no workaround that is simple, portable, and efficient.
20605 # So, we kill variables containing newlines.
20606 # Ultrix sh set writes to stderr and can't be redirected directly,
20607 # and sets the high bit in the cache file unless we assign to the vars.
20609 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20610 eval ac_val=\$$ac_var
20614 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20615 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20618 _ | IFS | as_nl) ;; #(
20619 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20620 *) $as_unset $ac_var ;;
20626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20627 *${as_nl}ac_space=\ *)
20628 # `set' does not quote correctly, so add quotes (double-quote
20629 # substitution turns \\\\ into \\, and sed turns \\ into \).
20632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20635 # `set' quotes correctly as required by POSIX, so do not add quotes.
20636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20650 if test -w "$cache_file"; then
20651 test "x$cache_file" != "x/dev/null" &&
20652 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20653 $as_echo "$as_me: updating cache $cache_file" >&6;}
20654 cat confcache >$cache_file
20656 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20657 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20663 # Let make expand exec_prefix.
20664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20666 DEFS=-DHAVE_CONFIG_H
20670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20671 # 1. Remove the extension, and $U if already installed.
20672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20673 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20675 # will be set to the directory where LIBOBJS objects are built.
20676 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20677 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20679 LIBOBJS=$ac_libobjs
20681 LTLIBOBJS=$ac_ltlibobjs
20684 if test -n "$EXEEXT"; then
20686 am__EXEEXT_FALSE='#'
20688 am__EXEEXT_TRUE='#'
20692 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20693 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20694 Usually this means the macro was only invoked conditionally." >&5
20695 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20696 Usually this means the macro was only invoked conditionally." >&2;}
20697 { (exit 1); exit 1; }; }
20699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20700 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20701 Usually this means the macro was only invoked conditionally." >&5
20702 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20703 Usually this means the macro was only invoked conditionally." >&2;}
20704 { (exit 1); exit 1; }; }
20707 if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
20708 { { $as_echo "$as_me:$LINENO: error: conditional \"LINUX\" was never defined.
20709 Usually this means the macro was only invoked conditionally." >&5
20710 $as_echo "$as_me: error: conditional \"LINUX\" was never defined.
20711 Usually this means the macro was only invoked conditionally." >&2;}
20712 { (exit 1); exit 1; }; }
20714 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
20715 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined.
20716 Usually this means the macro was only invoked conditionally." >&5
20717 $as_echo "$as_me: error: conditional \"HAVE_RAW\" was never defined.
20718 Usually this means the macro was only invoked conditionally." >&2;}
20719 { (exit 1); exit 1; }; }
20721 if test -z "${HAVE_RAW_TRUE}" && test -z "${HAVE_RAW_FALSE}"; then
20722 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_RAW\" was never defined.
20723 Usually this means the macro was only invoked conditionally." >&5
20724 $as_echo "$as_me: error: conditional \"HAVE_RAW\" was never defined.
20725 Usually this means the macro was only invoked conditionally." >&2;}
20726 { (exit 1); exit 1; }; }
20728 if test -z "${HAVE_STATIC_LOSETUP_TRUE}" && test -z "${HAVE_STATIC_LOSETUP_FALSE}"; then
20729 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_LOSETUP\" was never defined.
20730 Usually this means the macro was only invoked conditionally." >&5
20731 $as_echo "$as_me: error: conditional \"HAVE_STATIC_LOSETUP\" was never defined.
20732 Usually this means the macro was only invoked conditionally." >&2;}
20733 { (exit 1); exit 1; }; }
20735 if test -z "${HAVE_STATIC_MOUNT_TRUE}" && test -z "${HAVE_STATIC_MOUNT_FALSE}"; then
20736 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_MOUNT\" was never defined.
20737 Usually this means the macro was only invoked conditionally." >&5
20738 $as_echo "$as_me: error: conditional \"HAVE_STATIC_MOUNT\" was never defined.
20739 Usually this means the macro was only invoked conditionally." >&2;}
20740 { (exit 1); exit 1; }; }
20742 if test -z "${HAVE_STATIC_UMOUNT_TRUE}" && test -z "${HAVE_STATIC_UMOUNT_FALSE}"; then
20743 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_UMOUNT\" was never defined.
20744 Usually this means the macro was only invoked conditionally." >&5
20745 $as_echo "$as_me: error: conditional \"HAVE_STATIC_UMOUNT\" was never defined.
20746 Usually this means the macro was only invoked conditionally." >&2;}
20747 { (exit 1); exit 1; }; }
20749 if test -z "${HAVE_STATIC_FDISK_TRUE}" && test -z "${HAVE_STATIC_FDISK_FALSE}"; then
20750 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_FDISK\" was never defined.
20751 Usually this means the macro was only invoked conditionally." >&5
20752 $as_echo "$as_me: error: conditional \"HAVE_STATIC_FDISK\" was never defined.
20753 Usually this means the macro was only invoked conditionally." >&2;}
20754 { (exit 1); exit 1; }; }
20756 if test -z "${HAVE_STATIC_SFDISK_TRUE}" && test -z "${HAVE_STATIC_SFDISK_FALSE}"; then
20757 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_SFDISK\" was never defined.
20758 Usually this means the macro was only invoked conditionally." >&5
20759 $as_echo "$as_me: error: conditional \"HAVE_STATIC_SFDISK\" was never defined.
20760 Usually this means the macro was only invoked conditionally." >&2;}
20761 { (exit 1); exit 1; }; }
20763 if test -z "${HAVE_STATIC_BLKID_TRUE}" && test -z "${HAVE_STATIC_BLKID_FALSE}"; then
20764 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STATIC_BLKID\" was never defined.
20765 Usually this means the macro was only invoked conditionally." >&5
20766 $as_echo "$as_me: error: conditional \"HAVE_STATIC_BLKID\" was never defined.
20767 Usually this means the macro was only invoked conditionally." >&2;}
20768 { (exit 1); exit 1; }; }
20770 if test -z "${BUILD_MOUNT_TRUE}" && test -z "${BUILD_MOUNT_FALSE}"; then
20771 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MOUNT\" was never defined.
20772 Usually this means the macro was only invoked conditionally." >&5
20773 $as_echo "$as_me: error: conditional \"BUILD_MOUNT\" was never defined.
20774 Usually this means the macro was only invoked conditionally." >&2;}
20775 { (exit 1); exit 1; }; }
20777 if test -z "${BUILD_FSCK_TRUE}" && test -z "${BUILD_FSCK_FALSE}"; then
20778 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_FSCK\" was never defined.
20779 Usually this means the macro was only invoked conditionally." >&5
20780 $as_echo "$as_me: error: conditional \"BUILD_FSCK\" was never defined.
20781 Usually this means the macro was only invoked conditionally." >&2;}
20782 { (exit 1); exit 1; }; }
20784 if test -z "${BUILD_LIBUUID_TRUE}" && test -z "${BUILD_LIBUUID_FALSE}"; then
20785 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBUUID\" was never defined.
20786 Usually this means the macro was only invoked conditionally." >&5
20787 $as_echo "$as_me: error: conditional \"BUILD_LIBUUID\" was never defined.
20788 Usually this means the macro was only invoked conditionally." >&2;}
20789 { (exit 1); exit 1; }; }
20791 if test -z "${HAVE_UUID_TRUE}" && test -z "${HAVE_UUID_FALSE}"; then
20792 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UUID\" was never defined.
20793 Usually this means the macro was only invoked conditionally." >&5
20794 $as_echo "$as_me: error: conditional \"HAVE_UUID\" was never defined.
20795 Usually this means the macro was only invoked conditionally." >&2;}
20796 { (exit 1); exit 1; }; }
20798 if test -z "${BUILD_UUIDD_TRUE}" && test -z "${BUILD_UUIDD_FALSE}"; then
20799 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_UUIDD\" was never defined.
20800 Usually this means the macro was only invoked conditionally." >&5
20801 $as_echo "$as_me: error: conditional \"BUILD_UUIDD\" was never defined.
20802 Usually this means the macro was only invoked conditionally." >&2;}
20803 { (exit 1); exit 1; }; }
20805 if test -z "${BUILD_LIBBLKID_TRUE}" && test -z "${BUILD_LIBBLKID_FALSE}"; then
20806 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LIBBLKID\" was never defined.
20807 Usually this means the macro was only invoked conditionally." >&5
20808 $as_echo "$as_me: error: conditional \"BUILD_LIBBLKID\" was never defined.
20809 Usually this means the macro was only invoked conditionally." >&2;}
20810 { (exit 1); exit 1; }; }
20812 if test -z "${HAVE_BLKID_TRUE}" && test -z "${HAVE_BLKID_FALSE}"; then
20813 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BLKID\" was never defined.
20814 Usually this means the macro was only invoked conditionally." >&5
20815 $as_echo "$as_me: error: conditional \"HAVE_BLKID\" was never defined.
20816 Usually this means the macro was only invoked conditionally." >&2;}
20817 { (exit 1); exit 1; }; }
20819 if test -z "${HAVE_UTIL_TRUE}" && test -z "${HAVE_UTIL_FALSE}"; then
20820 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UTIL\" was never defined.
20821 Usually this means the macro was only invoked conditionally." >&5
20822 $as_echo "$as_me: error: conditional \"HAVE_UTIL\" was never defined.
20823 Usually this means the macro was only invoked conditionally." >&2;}
20824 { (exit 1); exit 1; }; }
20826 if test -z "${HAVE_TERMCAP_TRUE}" && test -z "${HAVE_TERMCAP_FALSE}"; then
20827 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TERMCAP\" was never defined.
20828 Usually this means the macro was only invoked conditionally." >&5
20829 $as_echo "$as_me: error: conditional \"HAVE_TERMCAP\" was never defined.
20830 Usually this means the macro was only invoked conditionally." >&2;}
20831 { (exit 1); exit 1; }; }
20833 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20834 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20835 Usually this means the macro was only invoked conditionally." >&5
20836 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20837 Usually this means the macro was only invoked conditionally." >&2;}
20838 { (exit 1); exit 1; }; }
20840 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20841 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20842 Usually this means the macro was only invoked conditionally." >&5
20843 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20844 Usually this means the macro was only invoked conditionally." >&2;}
20845 { (exit 1); exit 1; }; }
20847 if test -z "${HAVE_NCURSES_TRUE}" && test -z "${HAVE_NCURSES_FALSE}"; then
20848 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_NCURSES\" was never defined.
20849 Usually this means the macro was only invoked conditionally." >&5
20850 $as_echo "$as_me: error: conditional \"HAVE_NCURSES\" was never defined.
20851 Usually this means the macro was only invoked conditionally." >&2;}
20852 { (exit 1); exit 1; }; }
20854 if test -z "${HAVE_TINFO_TRUE}" && test -z "${HAVE_TINFO_FALSE}"; then
20855 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TINFO\" was never defined.
20856 Usually this means the macro was only invoked conditionally." >&5
20857 $as_echo "$as_me: error: conditional \"HAVE_TINFO\" was never defined.
20858 Usually this means the macro was only invoked conditionally." >&2;}
20859 { (exit 1); exit 1; }; }
20861 if test -z "${USE_SLANG_TRUE}" && test -z "${USE_SLANG_FALSE}"; then
20862 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_SLANG\" was never defined.
20863 Usually this means the macro was only invoked conditionally." >&5
20864 $as_echo "$as_me: error: conditional \"USE_SLANG\" was never defined.
20865 Usually this means the macro was only invoked conditionally." >&2;}
20866 { (exit 1); exit 1; }; }
20868 if test -z "${NEED_LIBCRYPT_TRUE}" && test -z "${NEED_LIBCRYPT_FALSE}"; then
20869 { { $as_echo "$as_me:$LINENO: error: conditional \"NEED_LIBCRYPT\" was never defined.
20870 Usually this means the macro was only invoked conditionally." >&5
20871 $as_echo "$as_me: error: conditional \"NEED_LIBCRYPT\" was never defined.
20872 Usually this means the macro was only invoked conditionally." >&2;}
20873 { (exit 1); exit 1; }; }
20875 if test -z "${HAVE_PIVOT_ROOT_TRUE}" && test -z "${HAVE_PIVOT_ROOT_FALSE}"; then
20876 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
20877 Usually this means the macro was only invoked conditionally." >&5
20878 $as_echo "$as_me: error: conditional \"HAVE_PIVOT_ROOT\" was never defined.
20879 Usually this means the macro was only invoked conditionally." >&2;}
20880 { (exit 1); exit 1; }; }
20882 if test -z "${HAVE_SCHED_GETAFFINITY_TRUE}" && test -z "${HAVE_SCHED_GETAFFINITY_FALSE}"; then
20883 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
20884 Usually this means the macro was only invoked conditionally." >&5
20885 $as_echo "$as_me: error: conditional \"HAVE_SCHED_GETAFFINITY\" was never defined.
20886 Usually this means the macro was only invoked conditionally." >&2;}
20887 { (exit 1); exit 1; }; }
20889 if test -z "${HAVE_IOPRIO_SET_TRUE}" && test -z "${HAVE_IOPRIO_SET_FALSE}"; then
20890 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_IOPRIO_SET\" was never defined.
20891 Usually this means the macro was only invoked conditionally." >&5
20892 $as_echo "$as_me: error: conditional \"HAVE_IOPRIO_SET\" was never defined.
20893 Usually this means the macro was only invoked conditionally." >&2;}
20894 { (exit 1); exit 1; }; }
20896 if test -z "${HAVE_IOPRIO_GET_TRUE}" && test -z "${HAVE_IOPRIO_GET_FALSE}"; then
20897 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_IOPRIO_GET\" was never defined.
20898 Usually this means the macro was only invoked conditionally." >&5
20899 $as_echo "$as_me: error: conditional \"HAVE_IOPRIO_GET\" was never defined.
20900 Usually this means the macro was only invoked conditionally." >&2;}
20901 { (exit 1); exit 1; }; }
20903 if test -z "${ARCH_I86_TRUE}" && test -z "${ARCH_I86_FALSE}"; then
20904 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_I86\" was never defined.
20905 Usually this means the macro was only invoked conditionally." >&5
20906 $as_echo "$as_me: error: conditional \"ARCH_I86\" was never defined.
20907 Usually this means the macro was only invoked conditionally." >&2;}
20908 { (exit 1); exit 1; }; }
20910 if test -z "${ARCH_86_64_TRUE}" && test -z "${ARCH_86_64_FALSE}"; then
20911 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_86_64\" was never defined.
20912 Usually this means the macro was only invoked conditionally." >&5
20913 $as_echo "$as_me: error: conditional \"ARCH_86_64\" was never defined.
20914 Usually this means the macro was only invoked conditionally." >&2;}
20915 { (exit 1); exit 1; }; }
20917 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20918 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20919 Usually this means the macro was only invoked conditionally." >&5
20920 $as_echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20921 Usually this means the macro was only invoked conditionally." >&2;}
20922 { (exit 1); exit 1; }; }
20924 if test -z "${ARCH_S390_TRUE}" && test -z "${ARCH_S390_FALSE}"; then
20925 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_S390\" was never defined.
20926 Usually this means the macro was only invoked conditionally." >&5
20927 $as_echo "$as_me: error: conditional \"ARCH_S390\" was never defined.
20928 Usually this means the macro was only invoked conditionally." >&2;}
20929 { (exit 1); exit 1; }; }
20931 if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
20932 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_SPARC\" was never defined.
20933 Usually this means the macro was only invoked conditionally." >&5
20934 $as_echo "$as_me: error: conditional \"ARCH_SPARC\" was never defined.
20935 Usually this means the macro was only invoked conditionally." >&2;}
20936 { (exit 1); exit 1; }; }
20938 if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
20939 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC\" was never defined.
20940 Usually this means the macro was only invoked conditionally." >&5
20941 $as_echo "$as_me: error: conditional \"ARCH_PPC\" was never defined.
20942 Usually this means the macro was only invoked conditionally." >&2;}
20943 { (exit 1); exit 1; }; }
20945 if test -z "${ARCH_M68K_TRUE}" && test -z "${ARCH_M68K_FALSE}"; then
20946 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_M68K\" was never defined.
20947 Usually this means the macro was only invoked conditionally." >&5
20948 $as_echo "$as_me: error: conditional \"ARCH_M68K\" was never defined.
20949 Usually this means the macro was only invoked conditionally." >&2;}
20950 { (exit 1); exit 1; }; }
20952 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
20953 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_MIPS\" was never defined.
20954 Usually this means the macro was only invoked conditionally." >&5
20955 $as_echo "$as_me: error: conditional \"ARCH_MIPS\" was never defined.
20956 Usually this means the macro was only invoked conditionally." >&2;}
20957 { (exit 1); exit 1; }; }
20959 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20960 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20961 Usually this means the macro was only invoked conditionally." >&5
20962 $as_echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20963 Usually this means the macro was only invoked conditionally." >&2;}
20964 { (exit 1); exit 1; }; }
20966 if test -z "${BUILD_ARCH_TRUE}" && test -z "${BUILD_ARCH_FALSE}"; then
20967 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARCH\" was never defined.
20968 Usually this means the macro was only invoked conditionally." >&5
20969 $as_echo "$as_me: error: conditional \"BUILD_ARCH\" was never defined.
20970 Usually this means the macro was only invoked conditionally." >&2;}
20971 { (exit 1); exit 1; }; }
20973 if test -z "${BUILD_AGETTY_TRUE}" && test -z "${BUILD_AGETTY_FALSE}"; then
20974 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_AGETTY\" was never defined.
20975 Usually this means the macro was only invoked conditionally." >&5
20976 $as_echo "$as_me: error: conditional \"BUILD_AGETTY\" was never defined.
20977 Usually this means the macro was only invoked conditionally." >&2;}
20978 { (exit 1); exit 1; }; }
20980 if test -z "${BUILD_CRAMFS_TRUE}" && test -z "${BUILD_CRAMFS_FALSE}"; then
20981 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_CRAMFS\" was never defined.
20982 Usually this means the macro was only invoked conditionally." >&5
20983 $as_echo "$as_me: error: conditional \"BUILD_CRAMFS\" was never defined.
20984 Usually this means the macro was only invoked conditionally." >&2;}
20985 { (exit 1); exit 1; }; }
20987 if test -z "${BUILD_SWITCH_ROOT_TRUE}" && test -z "${BUILD_SWITCH_ROOT_FALSE}"; then
20988 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SWITCH_ROOT\" was never defined.
20989 Usually this means the macro was only invoked conditionally." >&5
20990 $as_echo "$as_me: error: conditional \"BUILD_SWITCH_ROOT\" was never defined.
20991 Usually this means the macro was only invoked conditionally." >&2;}
20992 { (exit 1); exit 1; }; }
20994 if test -z "${BUILD_ELVTUNE_TRUE}" && test -z "${BUILD_ELVTUNE_FALSE}"; then
20995 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ELVTUNE\" was never defined.
20996 Usually this means the macro was only invoked conditionally." >&5
20997 $as_echo "$as_me: error: conditional \"BUILD_ELVTUNE\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&2;}
20999 { (exit 1); exit 1; }; }
21001 if test -z "${BUILD_INIT_TRUE}" && test -z "${BUILD_INIT_FALSE}"; then
21002 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_INIT\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 $as_echo "$as_me: error: conditional \"BUILD_INIT\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
21008 if test -z "${BUILD_KILL_TRUE}" && test -z "${BUILD_KILL_FALSE}"; then
21009 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_KILL\" was never defined.
21010 Usually this means the macro was only invoked conditionally." >&5
21011 $as_echo "$as_me: error: conditional \"BUILD_KILL\" was never defined.
21012 Usually this means the macro was only invoked conditionally." >&2;}
21013 { (exit 1); exit 1; }; }
21015 if test -z "${BUILD_LAST_TRUE}" && test -z "${BUILD_LAST_FALSE}"; then
21016 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LAST\" was never defined.
21017 Usually this means the macro was only invoked conditionally." >&5
21018 $as_echo "$as_me: error: conditional \"BUILD_LAST\" was never defined.
21019 Usually this means the macro was only invoked conditionally." >&2;}
21020 { (exit 1); exit 1; }; }
21022 if test -z "${BUILD_MESG_TRUE}" && test -z "${BUILD_MESG_FALSE}"; then
21023 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_MESG\" was never defined.
21024 Usually this means the macro was only invoked conditionally." >&5
21025 $as_echo "$as_me: error: conditional \"BUILD_MESG\" was never defined.
21026 Usually this means the macro was only invoked conditionally." >&2;}
21027 { (exit 1); exit 1; }; }
21029 if test -z "${BUILD_PARTX_TRUE}" && test -z "${BUILD_PARTX_FALSE}"; then
21030 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PARTX\" was never defined.
21031 Usually this means the macro was only invoked conditionally." >&5
21032 $as_echo "$as_me: error: conditional \"BUILD_PARTX\" was never defined.
21033 Usually this means the macro was only invoked conditionally." >&2;}
21034 { (exit 1); exit 1; }; }
21036 if test -z "${BUILD_RAW_TRUE}" && test -z "${BUILD_RAW_FALSE}"; then
21037 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RAW\" was never defined.
21038 Usually this means the macro was only invoked conditionally." >&5
21039 $as_echo "$as_me: error: conditional \"BUILD_RAW\" was never defined.
21040 Usually this means the macro was only invoked conditionally." >&2;}
21041 { (exit 1); exit 1; }; }
21043 if test -z "${BUILD_RDEV_TRUE}" && test -z "${BUILD_RDEV_FALSE}"; then
21044 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RDEV\" was never defined.
21045 Usually this means the macro was only invoked conditionally." >&5
21046 $as_echo "$as_me: error: conditional \"BUILD_RDEV\" was never defined.
21047 Usually this means the macro was only invoked conditionally." >&2;}
21048 { (exit 1); exit 1; }; }
21050 if test -z "${BUILD_RENAME_TRUE}" && test -z "${BUILD_RENAME_FALSE}"; then
21051 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RENAME\" was never defined.
21052 Usually this means the macro was only invoked conditionally." >&5
21053 $as_echo "$as_me: error: conditional \"BUILD_RENAME\" was never defined.
21054 Usually this means the macro was only invoked conditionally." >&2;}
21055 { (exit 1); exit 1; }; }
21057 if test -z "${BUILD_RESET_TRUE}" && test -z "${BUILD_RESET_FALSE}"; then
21058 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_RESET\" was never defined.
21059 Usually this means the macro was only invoked conditionally." >&5
21060 $as_echo "$as_me: error: conditional \"BUILD_RESET\" was never defined.
21061 Usually this means the macro was only invoked conditionally." >&2;}
21062 { (exit 1); exit 1; }; }
21064 if test -z "${BUILD_LOGIN_UTILS_TRUE}" && test -z "${BUILD_LOGIN_UTILS_FALSE}"; then
21065 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
21066 Usually this means the macro was only invoked conditionally." >&5
21067 $as_echo "$as_me: error: conditional \"BUILD_LOGIN_UTILS\" was never defined.
21068 Usually this means the macro was only invoked conditionally." >&2;}
21069 { (exit 1); exit 1; }; }
21071 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
21072 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
21073 Usually this means the macro was only invoked conditionally." >&5
21074 $as_echo "$as_me: error: conditional \"HAVE_PAM\" was never defined.
21075 Usually this means the macro was only invoked conditionally." >&2;}
21076 { (exit 1); exit 1; }; }
21078 if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
21079 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PAM\" was never defined.
21080 Usually this means the macro was only invoked conditionally." >&5
21081 $as_echo "$as_me: error: conditional \"HAVE_PAM\" was never defined.
21082 Usually this means the macro was only invoked conditionally." >&2;}
21083 { (exit 1); exit 1; }; }
21085 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
21086 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined.
21087 Usually this means the macro was only invoked conditionally." >&5
21088 $as_echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined.
21089 Usually this means the macro was only invoked conditionally." >&2;}
21090 { (exit 1); exit 1; }; }
21092 if test -z "${HAVE_SELINUX_TRUE}" && test -z "${HAVE_SELINUX_FALSE}"; then
21093 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SELINUX\" was never defined.
21094 Usually this means the macro was only invoked conditionally." >&5
21095 $as_echo "$as_me: error: conditional \"HAVE_SELINUX\" was never defined.
21096 Usually this means the macro was only invoked conditionally." >&2;}
21097 { (exit 1); exit 1; }; }
21099 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
21100 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT\" was never defined.
21101 Usually this means the macro was only invoked conditionally." >&5
21102 $as_echo "$as_me: error: conditional \"HAVE_AUDIT\" was never defined.
21103 Usually this means the macro was only invoked conditionally." >&2;}
21104 { (exit 1); exit 1; }; }
21106 if test -z "${HAVE_AUDIT_TRUE}" && test -z "${HAVE_AUDIT_FALSE}"; then
21107 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_AUDIT\" was never defined.
21108 Usually this means the macro was only invoked conditionally." >&5
21109 $as_echo "$as_me: error: conditional \"HAVE_AUDIT\" was never defined.
21110 Usually this means the macro was only invoked conditionally." >&2;}
21111 { (exit 1); exit 1; }; }
21113 if test -z "${BUILD_SCHEDUTILS_TRUE}" && test -z "${BUILD_SCHEDUTILS_FALSE}"; then
21114 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
21115 Usually this means the macro was only invoked conditionally." >&5
21116 $as_echo "$as_me: error: conditional \"BUILD_SCHEDUTILS\" was never defined.
21117 Usually this means the macro was only invoked conditionally." >&2;}
21118 { (exit 1); exit 1; }; }
21120 if test -z "${BUILD_WALL_TRUE}" && test -z "${BUILD_WALL_FALSE}"; then
21121 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WALL\" was never defined.
21122 Usually this means the macro was only invoked conditionally." >&5
21123 $as_echo "$as_me: error: conditional \"BUILD_WALL\" was never defined.
21124 Usually this means the macro was only invoked conditionally." >&2;}
21125 { (exit 1); exit 1; }; }
21127 if test -z "${BUILD_WRITE_TRUE}" && test -z "${BUILD_WRITE_FALSE}"; then
21128 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_WRITE\" was never defined.
21129 Usually this means the macro was only invoked conditionally." >&5
21130 $as_echo "$as_me: error: conditional \"BUILD_WRITE\" was never defined.
21131 Usually this means the macro was only invoked conditionally." >&2;}
21132 { (exit 1); exit 1; }; }
21134 if test -z "${USE_TTY_GROUP_TRUE}" && test -z "${USE_TTY_GROUP_FALSE}"; then
21135 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_TTY_GROUP\" was never defined.
21136 Usually this means the macro was only invoked conditionally." >&5
21137 $as_echo "$as_me: error: conditional \"USE_TTY_GROUP\" was never defined.
21138 Usually this means the macro was only invoked conditionally." >&2;}
21139 { (exit 1); exit 1; }; }
21141 if test -z "${MAKEINSTALL_DO_CHOWN_TRUE}" && test -z "${MAKEINSTALL_DO_CHOWN_FALSE}"; then
21142 { { $as_echo "$as_me:$LINENO: error: conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
21143 Usually this means the macro was only invoked conditionally." >&5
21144 $as_echo "$as_me: error: conditional \"MAKEINSTALL_DO_CHOWN\" was never defined.
21145 Usually this means the macro was only invoked conditionally." >&2;}
21146 { (exit 1); exit 1; }; }
21149 : ${CONFIG_STATUS=./config.status}
21151 ac_clean_files_save=$ac_clean_files
21152 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21153 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21154 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21155 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21157 # Generated by $as_me.
21158 # Run this file to recreate the current configuration.
21159 # Compiler output produced by configure, useful for debugging
21160 # configure, is in config.log if it exists.
21163 ac_cs_recheck=false
21165 SHELL=\${CONFIG_SHELL-$SHELL}
21168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21169 ## --------------------- ##
21170 ## M4sh Initialization. ##
21171 ## --------------------- ##
21173 # Be more Bourne compatible
21174 DUALCASE=1; export DUALCASE # for MKS sh
21175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21179 # is contrary to our usage. Disable this feature.
21180 alias -g '${1+"$@"}'='"$@"'
21181 setopt NO_GLOB_SUBST
21183 case `(set -o) 2>/dev/null` in
21184 *posix*) set -o posix ;;
21193 # Avoid depending upon Character Ranges.
21194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21197 as_cr_digits='0123456789'
21198 as_cr_alnum=$as_cr_Letters$as_cr_digits
21203 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21204 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21205 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21207 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21208 as_echo='printf %s\n'
21209 as_echo_n='printf %s'
21211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21213 as_echo_n='/usr/ucb/echo -n'
21215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21216 as_echo_n_body='eval
21220 expr "X$arg" : "X\\(.*\\)$as_nl";
21221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21225 export as_echo_n_body
21226 as_echo_n='sh -c $as_echo_n_body as_echo'
21228 export as_echo_body
21229 as_echo='sh -c $as_echo_body as_echo'
21232 # The user is always right.
21233 if test "${PATH_SEPARATOR+set}" != set; then
21235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21241 # Support unset when possible.
21242 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21250 # We need space, tab and new line, in precisely that order. Quoting is
21251 # there to prevent editors from complaining about space-tab.
21252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21253 # splitting by setting IFS to empty value.)
21256 # Find who we are. Look in the path if we contain no directory separator.
21258 *[\\/]* ) as_myself=$0 ;;
21259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21260 for as_dir in $PATH
21263 test -z "$as_dir" && as_dir=.
21264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21270 # We did not find ourselves, most probably we were run as `sh COMMAND'
21271 # in which case we are not to be found in the path.
21272 if test "x$as_myself" = x; then
21275 if test ! -f "$as_myself"; then
21276 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21277 { (exit 1); exit 1; }
21280 # Work around bugs in pre-3.0 UWIN ksh.
21281 for as_var in ENV MAIL MAILPATH
21282 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21294 # Required to use basename.
21295 if expr a : '\(a\)' >/dev/null 2>&1 &&
21296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21303 as_basename=basename
21309 # Name of the executable.
21310 as_me=`$as_basename -- "$0" ||
21311 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21312 X"$0" : 'X\(//\)$' \| \
21313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21315 sed '/^.*\/\([^/][^/]*\)\/*$/{
21334 as_lineno_1=$LINENO
21335 as_lineno_2=$LINENO
21336 test "x$as_lineno_1" != "x$as_lineno_2" &&
21337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21340 # uniformly replaced by the line number. The first 'sed' inserts a
21341 # line-number line after each line using $LINENO; the second 'sed'
21342 # does the real work. The second script uses 'N' to pair each
21343 # line-number line with the line containing $LINENO, and appends
21344 # trailing '-' during substitution so that $LINENO is not a special
21345 # case at line end.
21346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21347 # scripts with optimization help from Paolo Bonzini. Blame Lee
21348 # E. McMahon (1931-1989) for sed's syntax. :-)
21360 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21363 ' >$as_me.lineno &&
21364 chmod +x "$as_me.lineno" ||
21365 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21366 { (exit 1); exit 1; }; }
21368 # Don't try to exec as it changes $[0], causing all sort of problems
21369 # (the dirname of $[0] is not the place where we might find the
21370 # original and so on. Autoconf is especially sensitive to this).
21371 . "./$as_me.lineno"
21372 # Exit status is that of the last command.
21377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21383 ECHO_C= ECHO_N= ECHO_T=
21384 case `echo -n x` in
21386 case `echo 'x\c'` in
21387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21393 if expr a : '\(a\)' >/dev/null 2>&1 &&
21394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21400 rm -f conf$$ conf$$.exe conf$$.file
21401 if test -d conf$$.dir; then
21402 rm -f conf$$.dir/conf$$.file
21405 mkdir conf$$.dir 2>/dev/null
21407 if (echo >conf$$.file) 2>/dev/null; then
21408 if ln -s conf$$.file conf$$ 2>/dev/null; then
21410 # ... but there are two gotchas:
21411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21413 # In both cases, we have to default to `cp -p'.
21414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21416 elif ln conf$$.file conf$$ 2>/dev/null; then
21424 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21425 rmdir conf$$.dir 2>/dev/null
21427 if mkdir -p . 2>/dev/null; then
21430 test -d ./-p && rmdir ./-p
21434 if test -x / >/dev/null 2>&1; then
21435 as_test_x='test -x'
21437 if ls -dL / >/dev/null 2>&1; then
21444 if test -d "$1"; then
21450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21451 ???[sx]*):;;*)false;;esac;fi
21455 as_executable_p=$as_test_x
21457 # Sed expression to map a string onto a valid CPP name.
21458 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21460 # Sed expression to map a string onto a valid variable name.
21461 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21466 # Save the log message, to keep $[0] and so on meaningful, and to
21467 # report actual input values of CONFIG_FILES etc. instead of their
21468 # values after options handling.
21470 This file was extended by util-linux-ng $as_me 2.16.2, which was
21471 generated by GNU Autoconf 2.63. Invocation command line was
21473 CONFIG_FILES = $CONFIG_FILES
21474 CONFIG_HEADERS = $CONFIG_HEADERS
21475 CONFIG_LINKS = $CONFIG_LINKS
21476 CONFIG_COMMANDS = $CONFIG_COMMANDS
21479 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21484 case $ac_config_files in *"
21485 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21488 case $ac_config_headers in *"
21489 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21494 # Files that config.status was made for.
21495 config_files="$ac_config_files"
21496 config_headers="$ac_config_headers"
21497 config_commands="$ac_config_commands"
21501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21503 \`$as_me' instantiates files from templates according to the
21504 current configuration.
21506 Usage: $0 [OPTION]... [FILE]...
21508 -h, --help print this help, then exit
21509 -V, --version print version number and configuration settings, then exit
21510 -q, --quiet, --silent
21511 do not print progress messages
21512 -d, --debug don't remove temporary files
21513 --recheck update $as_me by reconfiguring in the same conditions
21514 --file=FILE[:TEMPLATE]
21515 instantiate the configuration file FILE
21516 --header=FILE[:TEMPLATE]
21517 instantiate the configuration header FILE
21519 Configuration files:
21522 Configuration headers:
21525 Configuration commands:
21528 Report bugs to <bug-autoconf@gnu.org>."
21531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21533 util-linux-ng config.status 2.16.2
21534 configured by $0, generated by GNU Autoconf 2.63,
21535 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21537 Copyright (C) 2008 Free Software Foundation, Inc.
21538 This config.status script is free software; the Free Software Foundation
21539 gives unlimited permission to copy, distribute and modify it."
21546 test -n "\$AWK" || AWK=awk
21549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21550 # The default lists apply if the user does not specify any file.
21556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21568 # Handling of the options.
21569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21572 $as_echo "$ac_cs_version"; exit ;;
21573 --debug | --debu | --deb | --de | --d | -d )
21575 --file | --fil | --fi | --f )
21578 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21580 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21581 ac_need_defaults=false;;
21582 --header | --heade | --head | --hea )
21585 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21587 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21588 ac_need_defaults=false;;
21590 # Conflict between --help and --header
21591 { $as_echo "$as_me: error: ambiguous option: $1
21592 Try \`$0 --help' for more information." >&2
21593 { (exit 1); exit 1; }; };;
21594 --help | --hel | -h )
21595 $as_echo "$ac_cs_usage"; exit ;;
21596 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21597 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21600 # This is an error.
21601 -*) { $as_echo "$as_me: error: unrecognized option: $1
21602 Try \`$0 --help' for more information." >&2
21603 { (exit 1); exit 1; }; } ;;
21605 *) ac_config_targets="$ac_config_targets $1"
21606 ac_need_defaults=false ;;
21612 ac_configure_extra_args=
21614 if $ac_cs_silent; then
21616 ac_configure_extra_args="$ac_configure_extra_args --silent"
21620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21621 if \$ac_cs_recheck; then
21622 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21625 CONFIG_SHELL='$SHELL'
21626 export CONFIG_SHELL
21631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21636 ## Running $as_me. ##
21642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21646 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21649 # The HP-UX ksh and POSIX shell print the target directory to stdout
21650 # if CDPATH is set.
21651 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21653 sed_quote_subst='$sed_quote_subst'
21654 double_quote_subst='$double_quote_subst'
21655 delay_variable_subst='$delay_variable_subst'
21656 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21657 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21658 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21659 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21660 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21661 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21662 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21663 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21664 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21665 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21666 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21667 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21668 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21669 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21670 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21671 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21672 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21673 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21674 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21675 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21676 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21677 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21678 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21679 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21680 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21681 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21682 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21683 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21684 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21685 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21686 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21687 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21688 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21689 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21690 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21691 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21692 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21693 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21694 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21695 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21696 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21697 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21698 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21699 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21700 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"`'
21701 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"`'
21702 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21703 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21704 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21705 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21706 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21707 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21708 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21709 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21710 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21711 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21712 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21713 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21714 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21715 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21716 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21717 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21718 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21719 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21720 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21721 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21722 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21723 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21724 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21725 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21726 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21727 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21728 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21729 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21730 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21731 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21732 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21733 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21734 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21735 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21736 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21737 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21738 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21739 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21740 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21741 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21742 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21743 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21744 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21745 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21746 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21747 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21748 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21749 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21750 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21751 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21752 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21753 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21754 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21755 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21756 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21757 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21758 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21759 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21760 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21761 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21762 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21763 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21764 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21765 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21766 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21767 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21768 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21769 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21770 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21771 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21772 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21773 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21776 LTCFLAGS='$LTCFLAGS'
21777 compiler='$compiler_DEFAULT'
21779 # Quote evaled strings.
21791 deplibs_check_method \
21800 lt_cv_sys_global_symbol_pipe \
21801 lt_cv_sys_global_symbol_to_cdecl \
21802 lt_cv_sys_global_symbol_to_c_name_address \
21803 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21806 lt_prog_compiler_no_builtin_flag \
21807 lt_prog_compiler_wl \
21808 lt_prog_compiler_pic \
21809 lt_prog_compiler_static \
21810 lt_cv_prog_compiler_c_o \
21818 export_dynamic_flag_spec \
21819 whole_archive_flag_spec \
21820 compiler_needs_object \
21822 allow_undefined_flag \
21823 no_undefined_flag \
21824 hardcode_libdir_flag_spec \
21825 hardcode_libdir_flag_spec_ld \
21826 hardcode_libdir_separator \
21831 variables_saved_for_relink \
21833 library_names_spec \
21838 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21839 *[\\\\\\\`\\"\\\$]*)
21840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21848 # Double-quote double-evaled strings.
21849 for var in reload_cmds \
21850 old_postinstall_cmds \
21851 old_postuninstall_cmds \
21853 extract_expsyms_cmds \
21854 old_archive_from_new_cmds \
21855 old_archive_from_expsyms_cmds \
21857 archive_expsym_cmds \
21859 module_expsym_cmds \
21860 export_symbols_cmds \
21863 postuninstall_cmds \
21865 sys_lib_search_path_spec \
21866 sys_lib_dlsearch_path_spec; do
21867 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21868 *[\\\\\\\`\\"\\\$]*)
21869 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21872 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21877 # Fix-up fallback echo if it was mangled by the above quoting rules.
21879 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21883 ac_aux_dir='$ac_aux_dir'
21884 xsi_shell='$xsi_shell'
21885 lt_shell_append='$lt_shell_append'
21887 # See if we are running on zsh, and set the options which allow our
21888 # commands through without removal of \ escapes INIT.
21889 if test -n "\${ZSH_VERSION+set}" ; then
21890 setopt NO_GLOB_SUBST
21896 TIMESTAMP='$TIMESTAMP'
21902 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
21903 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
21905 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
21906 # Capture the value of LINGUAS because we need it to compute CATALOGS.
21907 LINGUAS="${LINGUAS-%UNSET%}"
21912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21914 # Handling of arguments.
21915 for ac_config_target in $ac_config_targets
21917 case $ac_config_target in
21918 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21919 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21920 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21921 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21922 "disk-utils/Makefile") CONFIG_FILES="$CONFIG_FILES disk-utils/Makefile" ;;
21923 "fdisk/Makefile") CONFIG_FILES="$CONFIG_FILES fdisk/Makefile" ;;
21924 "fsck/Makefile") CONFIG_FILES="$CONFIG_FILES fsck/Makefile" ;;
21925 "getopt/Makefile") CONFIG_FILES="$CONFIG_FILES getopt/Makefile" ;;
21926 "hwclock/Makefile") CONFIG_FILES="$CONFIG_FILES hwclock/Makefile" ;;
21927 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21928 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
21929 "login-utils/Makefile") CONFIG_FILES="$CONFIG_FILES login-utils/Makefile" ;;
21930 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21931 "misc-utils/chkdupexe") CONFIG_FILES="$CONFIG_FILES misc-utils/chkdupexe:misc-utils/chkdupexe.pl" ;;
21932 "misc-utils/Makefile") CONFIG_FILES="$CONFIG_FILES misc-utils/Makefile" ;;
21933 "mount/Makefile") CONFIG_FILES="$CONFIG_FILES mount/Makefile" ;;
21934 "partx/Makefile") CONFIG_FILES="$CONFIG_FILES partx/Makefile" ;;
21935 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
21936 "schedutils/Makefile") CONFIG_FILES="$CONFIG_FILES schedutils/Makefile" ;;
21937 "shlibs/blkid/blkid.pc") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/blkid.pc" ;;
21938 "shlibs/blkid/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/Makefile" ;;
21939 "shlibs/blkid/src/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/src/Makefile" ;;
21940 "shlibs/blkid/src/probers/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/blkid/src/probers/Makefile" ;;
21941 "shlibs/uuid/uuid.pc") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/uuid.pc" ;;
21942 "shlibs/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/Makefile" ;;
21943 "shlibs/uuid/man/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/man/Makefile" ;;
21944 "shlibs/uuid/src/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/uuid/src/Makefile" ;;
21945 "shlibs/Makefile") CONFIG_FILES="$CONFIG_FILES shlibs/Makefile" ;;
21946 "sys-utils/Makefile") CONFIG_FILES="$CONFIG_FILES sys-utils/Makefile" ;;
21947 "tests/commands.sh") CONFIG_FILES="$CONFIG_FILES tests/commands.sh" ;;
21948 "tests/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES tests/helpers/Makefile" ;;
21949 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21950 "text-utils/Makefile") CONFIG_FILES="$CONFIG_FILES text-utils/Makefile" ;;
21952 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21953 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21954 { (exit 1); exit 1; }; };;
21959 # If the user did not use the arguments to specify the items to instantiate,
21960 # then the envvar interface is used. Set only those that are not.
21961 # We use the long form for the default assignment because of an extremely
21962 # bizarre bug on SunOS 4.1.3.
21963 if $ac_need_defaults; then
21964 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21965 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21966 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21969 # Have a temporary directory for convenience. Make it in the build tree
21970 # simply because there is no reason against having it here, and in addition,
21971 # creating and moving files from /tmp can sometimes cause problems.
21972 # Hook for its removal unless debugging.
21973 # Note that there is a small window in which the directory will not be cleaned:
21974 # after its creation but before its name has been assigned to `$tmp'.
21978 trap 'exit_status=$?
21979 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21981 trap '{ (exit 1); exit 1; }' 1 2 13 15
21983 # Create a (secure) tmp directory for tmp files.
21986 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21987 test -n "$tmp" && test -d "$tmp"
21990 tmp=./conf$$-$RANDOM
21991 (umask 077 && mkdir "$tmp")
21994 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21995 { (exit 1); exit 1; }
21998 # Set up the scripts for CONFIG_FILES section.
21999 # No need to generate them if there are no CONFIG_FILES.
22000 # This happens for instance with `./config.status config.h'.
22001 if test -n "$CONFIG_FILES"; then
22005 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22006 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22009 ac_cs_awk_cr=$ac_cr
22012 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22017 echo "cat >conf$$subs.awk <<_ACEOF" &&
22018 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22020 } >conf$$subs.sh ||
22021 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22022 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22023 { (exit 1); exit 1; }; }
22024 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22026 for ac_last_try in false false false false false :; do
22027 . ./conf$$subs.sh ||
22028 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22029 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22030 { (exit 1); exit 1; }; }
22032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22033 if test $ac_delim_n = $ac_delim_num; then
22035 elif $ac_last_try; then
22036 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22037 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22038 { (exit 1); exit 1; }; }
22040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22043 rm -f conf$$subs.sh
22045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22046 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22050 s/^/S["/; s/!.*/"]=/
22060 s/\(.\{148\}\).*/\1/
22062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22074 s/\(.\{148\}\).*/\1/
22076 s/["\\]/\\&/g; s/^/"/; s/$/"/
22080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22085 ' <conf$$subs.awk | sed '
22090 ' >>$CONFIG_STATUS || ac_write_fail=1
22091 rm -f conf$$subs.awk
22092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22094 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22095 for (key in S) S_is_set[key] = 1
22101 nfields = split(line, field, "@")
22103 len = length(field[1])
22104 for (i = 2; i < nfields; i++) {
22106 keylen = length(key)
22107 if (S_is_set[key]) {
22109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22110 len += length(value) + length(field[++i])
22121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22122 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22123 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22126 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22127 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22128 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
22129 { (exit 1); exit 1; }; }
22132 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22133 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22134 # trailing colons and then remove the whole line if VPATH becomes empty
22135 # (actually we leave an empty line to preserve line numbers).
22136 if test "x$srcdir" = x.; then
22137 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22138 s/:*\$(srcdir):*/:/
22139 s/:*\${srcdir}:*/:/
22141 s/^\([^=]*=[ ]*\):*/\1/
22147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22148 fi # test -n "$CONFIG_FILES"
22150 # Set up the scripts for CONFIG_HEADERS section.
22151 # No need to generate them if there are no CONFIG_HEADERS.
22152 # This happens for instance with `./config.status Makefile'.
22153 if test -n "$CONFIG_HEADERS"; then
22154 cat >"$tmp/defines.awk" <<\_ACAWK ||
22158 # Transform confdefs.h into an awk script `defines.awk', embedded as
22159 # here-document in config.status, that substitutes the proper values into
22160 # config.h.in to produce config.h.
22162 # Create a delimiter string that does not exist in confdefs.h, to ease
22163 # handling of long lines.
22165 for ac_last_try in false false :; do
22166 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
22167 if test -z "$ac_t"; then
22169 elif $ac_last_try; then
22170 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
22171 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
22172 { (exit 1); exit 1; }; }
22174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22178 # For the awk script, D is an array of macro values keyed by name,
22179 # likewise P contains macro parameters if any. Preserve backslash
22180 # newline sequences.
22182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22184 s/.\{148\}/&'"$ac_delim"'/g
22187 s/^[ ]*#[ ]*define[ ][ ]*/ /
22194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22201 D["\1"]=" \3\\\\\\n"\\/p
22203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22208 s/.\{148\}/&'"$ac_delim"'/g
22213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22218 ' <confdefs.h | sed '
22219 s/'"$ac_delim"'/"\\\
22220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22223 for (key in D) D_is_set[key] = 1
22226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22228 split(line, arg, " ")
22229 if (arg[1] == "#") {
22233 defundef = substr(arg[1], 2)
22236 split(mac1, mac2, "(") #)
22238 prefix = substr(line, 1, index(line, defundef) - 1)
22239 if (D_is_set[macro]) {
22240 # Preserve the white space surrounding the "#".
22241 print prefix "define", macro P[macro] D[macro]
22244 # Replace #undef with comments. This is necessary, for example,
22245 # in the case of _POSIX_SOURCE, which is predefined and required
22246 # on some systems where configure will not decide to define it.
22247 if (defundef == "undef") {
22248 print "/*", prefix defundef, macro, "*/"
22256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22257 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
22258 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
22259 { (exit 1); exit 1; }; }
22260 fi # test -n "$CONFIG_HEADERS"
22263 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22268 :[FHLC]) ac_mode=$ac_tag; continue;;
22270 case $ac_mode$ac_tag in
22272 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
22273 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
22274 { (exit 1); exit 1; }; };;
22275 :[FH]-) ac_tag=-:-;;
22276 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22293 -) ac_f="$tmp/stdin";;
22294 *) # Look for the file first in the build tree, then in the source tree
22295 # (if the path is not absolute). The absolute path cannot be DOS-style,
22296 # because $ac_f cannot contain `:'.
22300 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22302 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22303 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22304 { (exit 1); exit 1; }; };;
22306 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22307 ac_file_inputs="$ac_file_inputs '$ac_f'"
22310 # Let's still pretend it is `configure' which instantiates (i.e., don't
22311 # use $as_me), people would be surprised to read:
22312 # /* config.h. Generated by config.status. */
22313 configure_input='Generated from '`
22314 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22316 if test x"$ac_file" != x-; then
22317 configure_input="$ac_file. $configure_input"
22318 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22319 $as_echo "$as_me: creating $ac_file" >&6;}
22321 # Neutralize special characters interpreted by sed in replacement strings.
22322 case $configure_input in #(
22323 *\&* | *\|* | *\\* )
22324 ac_sed_conf_input=`$as_echo "$configure_input" |
22325 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22326 *) ac_sed_conf_input=$configure_input;;
22330 *:-:* | *:-) cat >"$tmp/stdin" \
22331 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22332 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22333 { (exit 1); exit 1; }; } ;;
22338 ac_dir=`$as_dirname -- "$ac_file" ||
22339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22340 X"$ac_file" : 'X\(//\)[^/]' \| \
22341 X"$ac_file" : 'X\(//\)$' \| \
22342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22343 $as_echo X"$ac_file" |
22344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22348 /^X\(\/\/\)[^/].*/{
22363 -*) as_dir=./$as_dir;;
22365 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22370 *) as_qdir=$as_dir;;
22372 as_dirs="'$as_qdir' $as_dirs"
22373 as_dir=`$as_dirname -- "$as_dir" ||
22374 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22375 X"$as_dir" : 'X\(//\)[^/]' \| \
22376 X"$as_dir" : 'X\(//\)$' \| \
22377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22378 $as_echo X"$as_dir" |
22379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22383 /^X\(\/\/\)[^/].*/{
22396 test -d "$as_dir" && break
22398 test -z "$as_dirs" || eval "mkdir $as_dirs"
22399 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22400 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22401 { (exit 1); exit 1; }; }; }
22405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22407 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22408 # A ".." for each directory in $ac_dir_suffix.
22409 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22410 case $ac_top_builddir_sub in
22411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22415 ac_abs_top_builddir=$ac_pwd
22416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22417 # for backward compatibility:
22418 ac_top_builddir=$ac_top_build_prefix
22421 .) # We are building in place.
22423 ac_top_srcdir=$ac_top_builddir_sub
22424 ac_abs_top_srcdir=$ac_pwd ;;
22425 [\\/]* | ?:[\\/]* ) # Absolute name.
22426 ac_srcdir=$srcdir$ac_dir_suffix;
22427 ac_top_srcdir=$srcdir
22428 ac_abs_top_srcdir=$srcdir ;;
22429 *) # Relative name.
22430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22431 ac_top_srcdir=$ac_top_build_prefix$srcdir
22432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22447 ac_MKDIR_P=$MKDIR_P
22449 [\\/$]* | ?:[\\/]* ) ;;
22450 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22455 # If the template does not know about datarootdir, expand it.
22456 # FIXME: This hack should be removed a few years after 2.60.
22457 ac_datarootdir_hack=; ac_datarootdir_seen=
22470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22471 *datarootdir*) ac_datarootdir_seen=yes;;
22472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22473 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22477 ac_datarootdir_hack='
22478 s&@datadir@&$datadir&g
22479 s&@docdir@&$docdir&g
22480 s&@infodir@&$infodir&g
22481 s&@localedir@&$localedir&g
22482 s&@mandir@&$mandir&g
22483 s&\\\${datarootdir}&$datarootdir&g' ;;
22487 # Neutralize VPATH when `$srcdir' = `.'.
22488 # Shell code in configure.ac might set extrasub.
22489 # FIXME: do we really want to maintain this feature?
22490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22491 ac_sed_extra="$ac_vpsub
22494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22497 s|@configure_input@|$ac_sed_conf_input|;t t
22498 s&@top_builddir@&$ac_top_builddir_sub&;t t
22499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22500 s&@srcdir@&$ac_srcdir&;t t
22501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22502 s&@top_srcdir@&$ac_top_srcdir&;t t
22503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22504 s&@builddir@&$ac_builddir&;t t
22505 s&@abs_builddir@&$ac_abs_builddir&;t t
22506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22507 s&@INSTALL@&$ac_INSTALL&;t t
22508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22509 $ac_datarootdir_hack
22511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22512 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22513 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22514 { (exit 1); exit 1; }; }
22516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22519 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22520 which seems to be undefined. Please make sure it is defined." >&5
22521 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22522 which seems to be undefined. Please make sure it is defined." >&2;}
22526 -) cat "$tmp/out" && rm -f "$tmp/out";;
22527 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22529 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22530 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22531 { (exit 1); exit 1; }; }
22537 if test x"$ac_file" != x-; then
22539 $as_echo "/* $configure_input */" \
22540 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
22541 } >"$tmp/config.h" \
22542 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22543 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22544 { (exit 1); exit 1; }; }
22545 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
22546 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22547 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22550 mv "$tmp/config.h" "$ac_file" \
22551 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22552 $as_echo "$as_me: error: could not create $ac_file" >&2;}
22553 { (exit 1); exit 1; }; }
22556 $as_echo "/* $configure_input */" \
22557 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
22558 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
22559 $as_echo "$as_me: error: could not create -" >&2;}
22560 { (exit 1); exit 1; }; }
22562 # Compute "$ac_file"'s index in $config_headers.
22565 for _am_header in $config_headers :; do
22566 case $_am_header in
22567 $_am_arg | $_am_arg:* )
22570 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22573 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22574 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22575 X"$_am_arg" : 'X\(//\)[^/]' \| \
22576 X"$_am_arg" : 'X\(//\)$' \| \
22577 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22578 $as_echo X"$_am_arg" |
22579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22583 /^X\(\/\/\)[^/].*/{
22595 s/.*/./; q'`/stamp-h$_am_stamp_count
22598 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22599 $as_echo "$as_me: executing $ac_file commands" >&6;}
22604 case $ac_file$ac_mode in
22605 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22606 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22607 # are listed without --file. Let's play safe and only enable the eval
22608 # if we detect the quoting.
22609 case $CONFIG_FILES in
22610 *\'*) eval set x "$CONFIG_FILES" ;;
22611 *) set x $CONFIG_FILES ;;
22616 # Strip MF so we end up with the name of the file.
22617 mf=`echo "$mf" | sed -e 's/:.*$//'`
22618 # Check whether this is an Automake generated Makefile or not.
22619 # We used to match only the files named `Makefile.in', but
22620 # some people rename them; so instead we look at the file content.
22621 # Grep'ing the first line is not enough: some people post-process
22622 # each Makefile.in and add a new line on top of each file to say so.
22623 # Grep'ing the whole file is not good either: AIX grep has a line
22624 # limit of 2048, but all sed's we know have understand at least 4000.
22625 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22626 dirpart=`$as_dirname -- "$mf" ||
22627 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22628 X"$mf" : 'X\(//\)[^/]' \| \
22629 X"$mf" : 'X\(//\)$' \| \
22630 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22636 /^X\(\/\/\)[^/].*/{
22652 # Extract the definition of DEPDIR, am__include, and am__quote
22653 # from the Makefile without running `make'.
22654 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22655 test -z "$DEPDIR" && continue
22656 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22657 test -z "am__include" && continue
22658 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22659 # When using ansi2knr, U may be empty or an underscore; expand it
22660 U=`sed -n 's/^U = //p' < "$mf"`
22661 # Find all dependency output files, they are included files with
22662 # $(DEPDIR) in their names. We invoke sed twice because it is the
22663 # simplest approach to changing $(DEPDIR) to its actual value in the
22665 for file in `sed -n "
22666 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22667 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22668 # Make sure the directory exists.
22669 test -f "$dirpart/$file" && continue
22670 fdir=`$as_dirname -- "$file" ||
22671 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22672 X"$file" : 'X\(//\)[^/]' \| \
22673 X"$file" : 'X\(//\)$' \| \
22674 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22675 $as_echo X"$file" |
22676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22680 /^X\(\/\/\)[^/].*/{
22693 { as_dir=$dirpart/$fdir
22695 -*) as_dir=./$as_dir;;
22697 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22702 *) as_qdir=$as_dir;;
22704 as_dirs="'$as_qdir' $as_dirs"
22705 as_dir=`$as_dirname -- "$as_dir" ||
22706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22707 X"$as_dir" : 'X\(//\)[^/]' \| \
22708 X"$as_dir" : 'X\(//\)$' \| \
22709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22710 $as_echo X"$as_dir" |
22711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22715 /^X\(\/\/\)[^/].*/{
22728 test -d "$as_dir" && break
22730 test -z "$as_dirs" || eval "mkdir $as_dirs"
22731 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22732 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22733 { (exit 1); exit 1; }; }; }
22734 # echo "creating $dirpart/$file"
22735 echo '# dummy' > "$dirpart/$file"
22742 # See if we are running on zsh, and set the options which allow our
22743 # commands through without removal of \ escapes.
22744 if test -n "${ZSH_VERSION+set}" ; then
22745 setopt NO_GLOB_SUBST
22748 cfgfile="${ofile}T"
22749 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22752 cat <<_LT_EOF >> "$cfgfile"
22755 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22756 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22757 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22758 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22760 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22761 # 2006, 2007, 2008 Free Software Foundation, Inc.
22762 # Written by Gordon Matzigkeit, 1996
22764 # This file is part of GNU Libtool.
22766 # GNU Libtool is free software; you can redistribute it and/or
22767 # modify it under the terms of the GNU General Public License as
22768 # published by the Free Software Foundation; either version 2 of
22769 # the License, or (at your option) any later version.
22771 # As a special exception to the GNU General Public License,
22772 # if you distribute this file as part of a program or library that
22773 # is built using GNU Libtool, you may include this file under the
22774 # same distribution terms that you use for the rest of that program.
22776 # GNU Libtool is distributed in the hope that it will be useful,
22777 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22778 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22779 # GNU General Public License for more details.
22781 # You should have received a copy of the GNU General Public License
22782 # along with GNU Libtool; see the file COPYING. If not, a copy
22783 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22784 # obtained by writing to the Free Software Foundation, Inc.,
22785 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22788 # The names of the tagged configurations supported by this script.
22791 # ### BEGIN LIBTOOL CONFIG
22793 # Which release of libtool.m4 was used?
22794 macro_version=$macro_version
22795 macro_revision=$macro_revision
22797 # Whether or not to build shared libraries.
22798 build_libtool_libs=$enable_shared
22800 # Whether or not to build static libraries.
22801 build_old_libs=$enable_static
22803 # What type of objects to build.
22806 # Whether or not to optimize for fast installation.
22807 fast_install=$enable_fast_install
22810 host_alias=$host_alias
22814 # The build system.
22815 build_alias=$build_alias
22819 # A sed program that does not truncate output.
22822 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22823 Xsed="\$SED -e 1s/^X//"
22825 # A grep program that handles long lines.
22831 # A literal string matcher.
22834 # A BSD- or MS-compatible name lister.
22837 # Whether we need soft or hard links.
22840 # What is the maximum length of a command?
22841 max_cmd_len=$max_cmd_len
22843 # Object file audit (normally "o").
22846 # Executable file audit (normally "").
22849 # whether the shell understands "unset".
22852 # turn spaces into newlines.
22855 # turn newlines into spaces.
22858 # How to create reloadable object files.
22859 reload_flag=$lt_reload_flag
22860 reload_cmds=$lt_reload_cmds
22862 # An object symbol dumper.
22863 OBJDUMP=$lt_OBJDUMP
22865 # Method to check whether dependent libraries are shared objects.
22866 deplibs_check_method=$lt_deplibs_check_method
22868 # Command to use when deplibs_check_method == "file_magic".
22869 file_magic_cmd=$lt_file_magic_cmd
22873 AR_FLAGS=$lt_AR_FLAGS
22875 # A symbol stripping program.
22878 # Commands used to install an old-style archive.
22880 old_postinstall_cmds=$lt_old_postinstall_cmds
22881 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22886 # LTCC compiler flags.
22887 LTCFLAGS=$lt_CFLAGS
22889 # Take the output of nm and produce a listing of raw symbols and C names.
22890 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22892 # Transform the output of nm in a proper C declaration.
22893 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22895 # Transform the output of nm in a C name address pair.
22896 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22898 # Transform the output of nm in a C name address pair when lib prefix is needed.
22899 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22901 # The name of the directory that contains temporary libtool files.
22904 # Shell to use when invoking shell scripts.
22907 # An echo program that does not interpret backslashes.
22910 # Used to examine libraries when file_magic_cmd begins with "file".
22911 MAGIC_CMD=$MAGIC_CMD
22913 # Must we lock files when doing compilation?
22914 need_locks=$lt_need_locks
22916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22917 DSYMUTIL=$lt_DSYMUTIL
22919 # Tool to change global to local symbols on Mac OS X.
22922 # Tool to manipulate fat objects and archives on Mac OS X.
22925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22929 OTOOL64=$lt_OTOOL64
22931 # Old archive audit (normally "a").
22934 # Shared library audit (normally ".so").
22935 shrext_cmds=$lt_shrext_cmds
22937 # The commands to extract the exported symbol list from a shared archive.
22938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22940 # Variables whose values should be saved in libtool wrapper scripts and
22941 # restored at link time.
22942 variables_saved_for_relink=$lt_variables_saved_for_relink
22944 # Do we need the "lib" prefix for modules?
22945 need_lib_prefix=$need_lib_prefix
22947 # Do we need a version for libraries?
22948 need_version=$need_version
22950 # Library versioning type.
22951 version_type=$version_type
22953 # Shared library runtime path variable.
22954 runpath_var=$runpath_var
22956 # Shared library path variable.
22957 shlibpath_var=$shlibpath_var
22959 # Is shlibpath searched before the hard-coded library search path?
22960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22962 # Format of library name prefix.
22963 libname_spec=$lt_libname_spec
22965 # List of archive names. First name is the real one, the rest are links.
22966 # The last name is the one that the linker finds with -lNAME
22967 library_names_spec=$lt_library_names_spec
22969 # The coded name of the library, if different from the real name.
22970 soname_spec=$lt_soname_spec
22972 # Command to use after installation of a shared archive.
22973 postinstall_cmds=$lt_postinstall_cmds
22975 # Command to use after uninstallation of a shared archive.
22976 postuninstall_cmds=$lt_postuninstall_cmds
22978 # Commands used to finish a libtool library installation in a directory.
22979 finish_cmds=$lt_finish_cmds
22981 # As "finish_cmds", except a single script fragment to be evaled but
22983 finish_eval=$lt_finish_eval
22985 # Whether we should hardcode library paths into libraries.
22986 hardcode_into_libs=$hardcode_into_libs
22988 # Compile-time system search path for libraries.
22989 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22991 # Run-time system search path for libraries.
22992 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22994 # Whether dlopen is supported.
22995 dlopen_support=$enable_dlopen
22997 # Whether dlopen of programs is supported.
22998 dlopen_self=$enable_dlopen_self
23000 # Whether dlopen of statically linked programs is supported.
23001 dlopen_self_static=$enable_dlopen_self_static
23003 # Commands to strip libraries.
23004 old_striplib=$lt_old_striplib
23005 striplib=$lt_striplib
23008 # The linker used to build libraries.
23011 # Commands used to build an old-style archive.
23012 old_archive_cmds=$lt_old_archive_cmds
23014 # A language specific compiler.
23017 # Is the compiler the GNU compiler?
23020 # Compiler flag to turn off builtin functions.
23021 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23023 # How to pass a linker flag through the compiler.
23024 wl=$lt_lt_prog_compiler_wl
23026 # Additional compiler flags for building library objects.
23027 pic_flag=$lt_lt_prog_compiler_pic
23029 # Compiler flag to prevent dynamic linking.
23030 link_static_flag=$lt_lt_prog_compiler_static
23032 # Does compiler simultaneously support -c and -o options?
23033 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23035 # Whether or not to add -lc for building shared libraries.
23036 build_libtool_need_lc=$archive_cmds_need_lc
23038 # Whether or not to disallow shared libs when runtime libs are static.
23039 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23041 # Compiler flag to allow reflexive dlopens.
23042 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23044 # Compiler flag to generate shared objects directly from archives.
23045 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23047 # Whether the compiler copes with passing no objects directly.
23048 compiler_needs_object=$lt_compiler_needs_object
23050 # Create an old-style archive from a shared archive.
23051 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23053 # Create a temporary old-style archive to link instead of a shared archive.
23054 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23056 # Commands used to build a shared archive.
23057 archive_cmds=$lt_archive_cmds
23058 archive_expsym_cmds=$lt_archive_expsym_cmds
23060 # Commands used to build a loadable module if different from building
23061 # a shared archive.
23062 module_cmds=$lt_module_cmds
23063 module_expsym_cmds=$lt_module_expsym_cmds
23065 # Whether we are building with GNU ld or not.
23066 with_gnu_ld=$lt_with_gnu_ld
23068 # Flag that allows shared libraries with undefined symbols to be built.
23069 allow_undefined_flag=$lt_allow_undefined_flag
23071 # Flag that enforces no undefined symbols.
23072 no_undefined_flag=$lt_no_undefined_flag
23074 # Flag to hardcode \$libdir into a binary during linking.
23075 # This must work even if \$libdir does not exist
23076 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23078 # If ld is used when linking, flag to hardcode \$libdir into a binary
23079 # during linking. This must work even if \$libdir does not exist.
23080 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23082 # Whether we need a single "-rpath" flag with a separated argument.
23083 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23085 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23086 # DIR into the resulting binary.
23087 hardcode_direct=$hardcode_direct
23089 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23090 # DIR into the resulting binary and the resulting library dependency is
23091 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23092 # library is relocated.
23093 hardcode_direct_absolute=$hardcode_direct_absolute
23095 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23096 # into the resulting binary.
23097 hardcode_minus_L=$hardcode_minus_L
23099 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23100 # into the resulting binary.
23101 hardcode_shlibpath_var=$hardcode_shlibpath_var
23103 # Set to "yes" if building a shared library automatically hardcodes DIR
23104 # into the library and all subsequent libraries and executables linked
23106 hardcode_automatic=$hardcode_automatic
23108 # Set to yes if linker adds runtime paths of dependent libraries
23109 # to runtime path list.
23110 inherit_rpath=$inherit_rpath
23112 # Whether libtool must link a program against all its dependency libraries.
23113 link_all_deplibs=$link_all_deplibs
23115 # Fix the shell variable \$srcfile for the compiler.
23116 fix_srcfile_path=$lt_fix_srcfile_path
23118 # Set to "yes" if exported symbols are required.
23119 always_export_symbols=$always_export_symbols
23121 # The commands to list exported symbols.
23122 export_symbols_cmds=$lt_export_symbols_cmds
23124 # Symbols that should not be listed in the preloaded symbols.
23125 exclude_expsyms=$lt_exclude_expsyms
23127 # Symbols that must always be exported.
23128 include_expsyms=$lt_include_expsyms
23130 # Commands necessary for linking programs (against libraries) with templates.
23131 prelink_cmds=$lt_prelink_cmds
23133 # Specify filename containing input files.
23134 file_list_spec=$lt_file_list_spec
23136 # How to hardcode a shared library path into an executable.
23137 hardcode_action=$hardcode_action
23139 # ### END LIBTOOL CONFIG
23145 cat <<\_LT_EOF >> "$cfgfile"
23146 # AIX sometimes has problems with the GCC collect2 program. For some
23147 # reason, if we set the COLLECT_NAMES environment variable, the problems
23148 # vanish in a puff of smoke.
23149 if test "X${COLLECT_NAMES+set}" != Xset; then
23151 export COLLECT_NAMES
23158 ltmain="$ac_aux_dir/ltmain.sh"
23161 # We use sed instead of cat because bash on DJGPP gets confused if
23162 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23163 # text mode, it properly converts lines to CR/LF. This bash problem
23164 # is reportedly fixed, but why not run on old versions too?
23165 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23166 || (rm -f "$cfgfile"; exit 1)
23170 cat << \_LT_EOF >> "$cfgfile"
23172 # func_dirname file append nondir_replacement
23173 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23174 # otherwise set result to NONDIR_REPLACEMENT.
23178 */*) func_dirname_result="${1%/*}${2}" ;;
23179 * ) func_dirname_result="${3}" ;;
23183 # func_basename file
23186 func_basename_result="${1##*/}"
23189 # func_dirname_and_basename file append nondir_replacement
23190 # perform func_basename and func_dirname in a single function
23192 # dirname: Compute the dirname of FILE. If nonempty,
23193 # add APPEND to the result, otherwise set result
23194 # to NONDIR_REPLACEMENT.
23195 # value returned in "$func_dirname_result"
23196 # basename: Compute filename of FILE.
23197 # value retuned in "$func_basename_result"
23198 # Implementation must be kept synchronized with func_dirname
23199 # and func_basename. For efficiency, we do not delegate to
23200 # those functions but instead duplicate the functionality here.
23201 func_dirname_and_basename ()
23204 */*) func_dirname_result="${1%/*}${2}" ;;
23205 * ) func_dirname_result="${3}" ;;
23207 func_basename_result="${1##*/}"
23210 # func_stripname prefix suffix name
23211 # strip PREFIX and SUFFIX off of NAME.
23212 # PREFIX and SUFFIX must not contain globbing or regex special
23213 # characters, hashes, percent signs, but SUFFIX may contain a leading
23214 # dot (in which case that matches only a dot).
23217 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23218 # positional parameters, so assign one to ordinary parameter first.
23219 func_stripname_result=${3}
23220 func_stripname_result=${func_stripname_result#"${1}"}
23221 func_stripname_result=${func_stripname_result%"${2}"}
23227 func_opt_split_opt=${1%%=*}
23228 func_opt_split_arg=${1#*=}
23235 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23236 *) func_lo2o_result=${1} ;;
23240 # func_xform libobj-or-source
23243 func_xform_result=${1%.*}.lo
23246 # func_arith arithmetic-term...
23249 func_arith_result=$(( $* ))
23253 # STRING may not start with a hyphen.
23256 func_len_result=${#1}
23261 *) # Bourne compatible functions.
23262 cat << \_LT_EOF >> "$cfgfile"
23264 # func_dirname file append nondir_replacement
23265 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23266 # otherwise set result to NONDIR_REPLACEMENT.
23269 # Extract subdirectory from the argument.
23270 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23271 if test "X$func_dirname_result" = "X${1}"; then
23272 func_dirname_result="${3}"
23274 func_dirname_result="$func_dirname_result${2}"
23278 # func_basename file
23281 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23285 # func_stripname prefix suffix name
23286 # strip PREFIX and SUFFIX off of NAME.
23287 # PREFIX and SUFFIX must not contain globbing or regex special
23288 # characters, hashes, percent signs, but SUFFIX may contain a leading
23289 # dot (in which case that matches only a dot).
23290 # func_strip_suffix prefix name
23294 .*) func_stripname_result=`$ECHO "X${3}" \
23295 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23296 *) func_stripname_result=`$ECHO "X${3}" \
23297 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23302 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23303 my_sed_long_arg='1s/^-[^=]*=//'
23308 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23309 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23315 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23318 # func_xform libobj-or-source
23321 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23324 # func_arith arithmetic-term...
23327 func_arith_result=`expr "$@"`
23331 # STRING may not start with a hyphen.
23334 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23340 case $lt_shell_append in
23342 cat << \_LT_EOF >> "$cfgfile"
23344 # func_append var value
23345 # Append VALUE to the end of shell variable VAR.
23353 cat << \_LT_EOF >> "$cfgfile"
23355 # func_append var value
23356 # Append VALUE to the end of shell variable VAR.
23367 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23368 || (rm -f "$cfgfile"; exit 1)
23370 mv -f "$cfgfile" "$ofile" ||
23371 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23376 for ac_file in $CONFIG_FILES; do
23377 # Support "outfile[:infile[:infile...]]"
23379 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23381 # PO directories have a Makefile.in generated from Makefile.in.in.
23382 case "$ac_file" in */Makefile.in)
23383 # Adjust a relative srcdir.
23384 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
23385 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
23386 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
23387 # In autoconf-2.13 it is called $ac_given_srcdir.
23388 # In autoconf-2.50 it is called $srcdir.
23389 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
23390 case "$ac_given_srcdir" in
23391 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
23392 /*) top_srcdir="$ac_given_srcdir" ;;
23393 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
23395 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
23396 rm -f "$ac_dir/POTFILES"
23397 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
23398 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
23399 POMAKEFILEDEPS="POTFILES.in"
23400 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
23401 # on $ac_dir but don't depend on user-specified configuration
23403 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
23404 # The LINGUAS file contains the set of available languages.
23405 if test -n "$OBSOLETE_ALL_LINGUAS"; then
23406 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
23408 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
23409 # Hide the ALL_LINGUAS assigment from automake.
23410 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
23411 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
23413 # The set of available languages was given in configure.in.
23414 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
23417 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
23418 # Compute UPDATEPOFILES
23419 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
23420 # Compute DUMMYPOFILES
23421 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
23423 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
23424 case "$ac_given_srcdir" in
23426 *) srcdirpre='$(srcdir)/' ;;
23432 for lang in $ALL_LINGUAS; do
23433 POFILES="$POFILES $srcdirpre$lang.po"
23434 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
23435 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
23436 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
23438 # CATALOGS depends on both $ac_dir and the user's LINGUAS
23439 # environment variable.
23441 if test -n "$ALL_LINGUAS"; then
23442 for presentlang in $ALL_LINGUAS; do
23444 if test "%UNSET%" != "$LINGUAS"; then
23445 desiredlanguages="$LINGUAS"
23447 desiredlanguages="$ALL_LINGUAS"
23449 for desiredlang in $desiredlanguages; do
23450 # Use the presentlang catalog if desiredlang is
23451 # a. equal to presentlang, or
23452 # b. a variant of presentlang (because in this case,
23453 # presentlang can be used as a fallback for messages
23454 # which are not translated in the desiredlang catalog).
23455 case "$desiredlang" in
23456 "$presentlang"*) useit=yes;;
23459 if test $useit = yes; then
23460 INST_LINGUAS="$INST_LINGUAS $presentlang"
23465 if test -n "$INST_LINGUAS"; then
23466 for lang in $INST_LINGUAS; do
23467 CATALOGS="$CATALOGS $lang.gmo"
23470 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
23471 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"
23472 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
23473 if test -f "$f"; then
23475 *.orig | *.bak | *~) ;;
23476 *) cat "$f" >> "$ac_dir/Makefile" ;;
23489 { (exit 0); exit 0; }
23491 chmod +x $CONFIG_STATUS
23492 ac_clean_files=$ac_clean_files_save
23494 test $ac_write_fail = 0 ||
23495 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
23496 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
23497 { (exit 1); exit 1; }; }
23500 # configure is writing to config.log, and then calls config.status.
23501 # config.status does its own redirection, appending to config.log.
23502 # Unfortunately, on DOS this fails, as config.log is still kept open
23503 # by configure, so config.status won't be able to write to it; its
23504 # output is simply discarded. So we exec the FD to /dev/null,
23505 # effectively closing config.log, so it can be properly (re)opened and
23506 # appended to by config.status. When coming back to configure, we
23507 # need to make the FD available again.
23508 if test "$no_create" != yes; then
23510 ac_config_status_args=
23511 test "$silent" = yes &&
23512 ac_config_status_args="$ac_config_status_args --quiet"
23514 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23516 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23517 # would make configure fail if this is the last instruction.
23518 $ac_cs_success || { (exit 1); exit 1; }
23520 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23521 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23522 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}