Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.59. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6 | # This configure script is free software; the Free Software Foundation |
| 7 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8 | ## --------------------- ## |
| 9 | ## M4sh Initialization. ## |
| 10 | ## --------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12 | # Be Bourne compatible |
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 | emulate sh |
| 15 | NULLCMD=: |
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 | # is contrary to our usage. Disable this feature. |
| 18 | alias -g '${1+"$@"}'='"$@"' |
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 | set -o posix |
| 21 | fi |
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | test -d ./-p && rmdir ./-p |
| 222 | as_mkdir_p=false |
| 223 | fi |
| 224 | |
| 225 | as_executable_p="test -f" |
| 226 | |
| 227 | # Sed expression to map a string onto a valid CPP name. |
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 | |
| 230 | # Sed expression to map a string onto a valid variable name. |
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 | |
| 233 | |
| 234 | # IFS |
| 235 | # We need space, tab and new line, in precisely that order. |
| 236 | as_nl=' |
| 237 | ' |
| 238 | IFS=" $as_nl" |
| 239 | |
| 240 | # CDPATH. |
| 241 | $as_unset CDPATH |
| 242 | |
| 243 | |
| 244 | # Name of the host. |
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 | # so uname gets run too. |
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 | |
| 249 | exec 6>&1 |
| 250 | |
| 251 | # |
| 252 | # Initializations. |
| 253 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 254 | ac_default_prefix=/usr/local |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 255 | ac_config_libobj_dir=. |
| 256 | cross_compiling=no |
| 257 | subdirs= |
| 258 | MFLAGS= |
| 259 | MAKEFLAGS= |
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 | |
| 262 | # Maximum number of lines to put in a shell here document. |
| 263 | # This variable seems obsolete. It should probably be removed, and |
| 264 | # only ac_max_sed_lines should be used. |
| 265 | : ${ac_max_here_lines=38} |
| 266 | |
| 267 | # Identity of this package. |
| 268 | PACKAGE_NAME= |
| 269 | PACKAGE_TARNAME= |
| 270 | PACKAGE_VERSION= |
| 271 | PACKAGE_STRING= |
| 272 | PACKAGE_BUGREPORT= |
| 273 | |
| 274 | ac_unique_file="version.h" |
| 275 | # Factoring default headers for most tests. |
| 276 | ac_includes_default="\ |
| 277 | #include <stdio.h> |
| 278 | #if HAVE_SYS_TYPES_H |
| 279 | # include <sys/types.h> |
| 280 | #endif |
| 281 | #if HAVE_SYS_STAT_H |
| 282 | # include <sys/stat.h> |
| 283 | #endif |
| 284 | #if STDC_HEADERS |
| 285 | # include <stdlib.h> |
| 286 | # include <stddef.h> |
| 287 | #else |
| 288 | # if HAVE_STDLIB_H |
| 289 | # include <stdlib.h> |
| 290 | # endif |
| 291 | #endif |
| 292 | #if HAVE_STRING_H |
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 294 | # include <memory.h> |
| 295 | # endif |
| 296 | # include <string.h> |
| 297 | #endif |
| 298 | #if HAVE_STRINGS_H |
| 299 | # include <strings.h> |
| 300 | #endif |
| 301 | #if HAVE_INTTYPES_H |
| 302 | # include <inttypes.h> |
| 303 | #else |
| 304 | # if HAVE_STDINT_H |
| 305 | # include <stdint.h> |
| 306 | # endif |
| 307 | #endif |
| 308 | #if HAVE_UNISTD_H |
| 309 | # include <unistd.h> |
| 310 | #endif" |
| 311 | |
| 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS' |
| 313 | ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 314 | |
| 315 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 316 | ac_init_help= |
| 317 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 318 | # The variables have the same names as the options, with |
| 319 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 320 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 321 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 322 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 323 | no_recursion= |
| 324 | prefix=NONE |
| 325 | program_prefix=NONE |
| 326 | program_suffix=NONE |
| 327 | program_transform_name=s,x,x, |
| 328 | silent= |
| 329 | site= |
| 330 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 331 | verbose= |
| 332 | x_includes=NONE |
| 333 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 334 | |
| 335 | # Installation directory options. |
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 337 | # and all the variables that are supposed to be based on exec_prefix |
| 338 | # by default will actually change. |
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 340 | bindir='${exec_prefix}/bin' |
| 341 | sbindir='${exec_prefix}/sbin' |
| 342 | libexecdir='${exec_prefix}/libexec' |
| 343 | datadir='${prefix}/share' |
| 344 | sysconfdir='${prefix}/etc' |
| 345 | sharedstatedir='${prefix}/com' |
| 346 | localstatedir='${prefix}/var' |
| 347 | libdir='${exec_prefix}/lib' |
| 348 | includedir='${prefix}/include' |
| 349 | oldincludedir='/usr/include' |
| 350 | infodir='${prefix}/info' |
| 351 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 352 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 353 | ac_prev= |
| 354 | for ac_option |
| 355 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 356 | # If the previous option needs an argument, assign it. |
| 357 | if test -n "$ac_prev"; then |
| 358 | eval "$ac_prev=\$ac_option" |
| 359 | ac_prev= |
| 360 | continue |
| 361 | fi |
| 362 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 364 | |
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 366 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 367 | case $ac_option in |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 368 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 370 | ac_prev=bindir ;; |
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 372 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 373 | |
| 374 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 375 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 377 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 378 | |
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 381 | ac_prev=cache_file ;; |
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 384 | cache_file=$ac_optarg ;; |
| 385 | |
| 386 | --config-cache | -C) |
| 387 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 388 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 390 | ac_prev=datadir ;; |
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 392 | | --da=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 393 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 394 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 395 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 397 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 400 | { (exit 1); exit 1; }; } |
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 402 | eval "enable_$ac_feature=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 403 | |
| 404 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 406 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 409 | { (exit 1); exit 1; }; } |
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 411 | case $ac_option in |
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 413 | *) ac_optarg=yes ;; |
| 414 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 416 | |
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 419 | | --exec | --exe | --ex) |
| 420 | ac_prev=exec_prefix ;; |
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 423 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 424 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 425 | |
| 426 | -gas | --gas | --ga | --g) |
| 427 | # Obsolete; use --with-gas. |
| 428 | with_gas=yes ;; |
| 429 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 430 | -help | --help | --hel | --he | -h) |
| 431 | ac_init_help=long ;; |
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 433 | ac_init_help=recursive ;; |
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 435 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 436 | |
| 437 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 439 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 440 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 441 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 442 | -includedir | --includedir | --includedi | --included | --include \ |
| 443 | | --includ | --inclu | --incl | --inc) |
| 444 | ac_prev=includedir ;; |
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 447 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 448 | |
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 450 | ac_prev=infodir ;; |
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 452 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 453 | |
| 454 | -libdir | --libdir | --libdi | --libd) |
| 455 | ac_prev=libdir ;; |
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 457 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 458 | |
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 460 | | --libexe | --libex | --libe) |
| 461 | ac_prev=libexecdir ;; |
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 463 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 464 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 465 | |
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 467 | | --localstate | --localstat | --localsta | --localst \ |
| 468 | | --locals | --local | --loca | --loc | --lo) |
| 469 | ac_prev=localstatedir ;; |
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 473 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 474 | |
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 476 | ac_prev=mandir ;; |
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 478 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 479 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 480 | -nfp | --nfp | --nf) |
| 481 | # Obsolete; use --without-fp. |
| 482 | with_fp=no ;; |
| 483 | |
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 485 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 486 | no_create=yes ;; |
| 487 | |
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 490 | no_recursion=yes ;; |
| 491 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 494 | | --oldin | --oldi | --old | --ol | --o) |
| 495 | ac_prev=oldincludedir ;; |
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 499 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 500 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 502 | ac_prev=prefix ;; |
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 504 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 505 | |
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 507 | | --program-pre | --program-pr | --program-p) |
| 508 | ac_prev=program_prefix ;; |
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 511 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 512 | |
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 514 | | --program-suf | --program-su | --program-s) |
| 515 | ac_prev=program_suffix ;; |
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 518 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 519 | |
| 520 | -program-transform-name | --program-transform-name \ |
| 521 | | --program-transform-nam | --program-transform-na \ |
| 522 | | --program-transform-n | --program-transform- \ |
| 523 | | --program-transform | --program-transfor \ |
| 524 | | --program-transfo | --program-transf \ |
| 525 | | --program-trans | --program-tran \ |
| 526 | | --progr-tra | --program-tr | --program-t) |
| 527 | ac_prev=program_transform_name ;; |
| 528 | -program-transform-name=* | --program-transform-name=* \ |
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
| 530 | | --program-transform-n=* | --program-transform-=* \ |
| 531 | | --program-transform=* | --program-transfor=* \ |
| 532 | | --program-transfo=* | --program-transf=* \ |
| 533 | | --program-trans=* | --program-tran=* \ |
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 535 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 536 | |
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 538 | | -silent | --silent | --silen | --sile | --sil) |
| 539 | silent=yes ;; |
| 540 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 542 | ac_prev=sbindir ;; |
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 544 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 545 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 546 | |
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 550 | | --sha | --sh) |
| 551 | ac_prev=sharedstatedir ;; |
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 555 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 556 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 557 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 558 | -site | --site | --sit) |
| 559 | ac_prev=site ;; |
| 560 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 561 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 562 | |
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 564 | ac_prev=srcdir ;; |
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 566 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 567 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 570 | ac_prev=sysconfdir ;; |
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 573 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 574 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 576 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 578 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 579 | |
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 581 | verbose=yes ;; |
| 582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 583 | -version | --version | --versio | --versi | --vers | -V) |
| 584 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 585 | |
| 586 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 588 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 591 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 593 | case $ac_option in |
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 595 | *) ac_optarg=yes ;; |
| 596 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 598 | |
| 599 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 601 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 604 | { (exit 1); exit 1; }; } |
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 606 | eval "with_$ac_package=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 607 | |
| 608 | --x) |
| 609 | # Obsolete; use --with-x. |
| 610 | with_x=yes ;; |
| 611 | |
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
| 614 | ac_prev=x_includes ;; |
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 617 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 618 | |
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 621 | ac_prev=x_libraries ;; |
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 624 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 625 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 627 | Try \`$0 --help' for more information." >&2 |
| 628 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 629 | ;; |
| 630 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 631 | *=*) |
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 633 | # Reject names that are not valid shell variable names. |
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 636 | { (exit 1); exit 1; }; } |
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 638 | eval "$ac_envvar='$ac_optarg'" |
| 639 | export $ac_envvar ;; |
| 640 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 641 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 642 | # FIXME: should be removed in autoconf 3.0. |
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 647 | ;; |
| 648 | |
| 649 | esac |
| 650 | done |
| 651 | |
| 652 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 655 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 656 | fi |
| 657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 658 | # Be sure to have absolute paths. |
| 659 | for ac_var in exec_prefix prefix |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 660 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 661 | eval ac_val=$`echo $ac_var` |
| 662 | case $ac_val in |
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 665 | { (exit 1); exit 1; }; };; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 666 | esac |
| 667 | done |
| 668 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 669 | # Be sure to have absolute paths. |
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
| 672 | do |
| 673 | eval ac_val=$`echo $ac_var` |
| 674 | case $ac_val in |
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 677 | { (exit 1); exit 1; }; };; |
| 678 | esac |
| 679 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 680 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 681 | # There might be people who depend on the old broken behavior: `$host' |
| 682 | # used to hold the argument of --host etc. |
| 683 | # FIXME: To remove some day. |
| 684 | build=$build_alias |
| 685 | host=$host_alias |
| 686 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 687 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 688 | # FIXME: To remove some day. |
| 689 | if test "x$host_alias" != x; then |
| 690 | if test "x$build_alias" = x; then |
| 691 | cross_compiling=maybe |
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
| 695 | cross_compiling=yes |
| 696 | fi |
| 697 | fi |
| 698 | |
| 699 | ac_tool_prefix= |
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 701 | |
| 702 | test "$silent" = yes && exec 6>/dev/null |
| 703 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 704 | |
| 705 | # Find the source files, if location was not specified. |
| 706 | if test -z "$srcdir"; then |
| 707 | ac_srcdir_defaulted=yes |
| 708 | # Try the directory containing this script, then its parent. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
| 712 | X"$0" : 'X\(//\)$' \| \ |
| 713 | X"$0" : 'X\(/\)' \| \ |
| 714 | . : '\(.\)' 2>/dev/null || |
| 715 | echo X"$0" | |
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
| 720 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 721 | srcdir=$ac_confdir |
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
| 723 | srcdir=.. |
| 724 | fi |
| 725 | else |
| 726 | ac_srcdir_defaulted=no |
| 727 | fi |
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 731 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 732 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 734 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 735 | fi |
| 736 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 739 | { (exit 1); exit 1; }; } |
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 741 | ac_env_build_alias_set=${build_alias+set} |
| 742 | ac_env_build_alias_value=$build_alias |
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
| 744 | ac_cv_env_build_alias_value=$build_alias |
| 745 | ac_env_host_alias_set=${host_alias+set} |
| 746 | ac_env_host_alias_value=$host_alias |
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
| 748 | ac_cv_env_host_alias_value=$host_alias |
| 749 | ac_env_target_alias_set=${target_alias+set} |
| 750 | ac_env_target_alias_value=$target_alias |
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
| 752 | ac_cv_env_target_alias_value=$target_alias |
| 753 | ac_env_CC_set=${CC+set} |
| 754 | ac_env_CC_value=$CC |
| 755 | ac_cv_env_CC_set=${CC+set} |
| 756 | ac_cv_env_CC_value=$CC |
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 758 | ac_env_CFLAGS_value=$CFLAGS |
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 769 | ac_env_CPP_set=${CPP+set} |
| 770 | ac_env_CPP_value=$CPP |
| 771 | ac_cv_env_CPP_set=${CPP+set} |
| 772 | ac_cv_env_CPP_value=$CPP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 773 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 774 | # |
| 775 | # Report the --help message. |
| 776 | # |
| 777 | if test "$ac_init_help" = "long"; then |
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 780 | cat <<_ACEOF |
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
| 782 | |
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 784 | |
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 787 | |
| 788 | Defaults for the options are specified in brackets. |
| 789 | |
| 790 | Configuration: |
| 791 | -h, --help display this help and exit |
| 792 | --help=short display options specific to this package |
| 793 | --help=recursive display the short help of all the included packages |
| 794 | -V, --version display version information and exit |
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 798 | -n, --no-create do not create output files |
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 800 | |
| 801 | _ACEOF |
| 802 | |
| 803 | cat <<_ACEOF |
| 804 | Installation directories: |
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 806 | [$ac_default_prefix] |
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 808 | [PREFIX] |
| 809 | |
| 810 | By default, \`make install' will install all the files in |
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 813 | for instance \`--prefix=\$HOME'. |
| 814 | |
| 815 | For better control, use the options below. |
| 816 | |
| 817 | Fine tuning of the installation directories: |
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 826 | --includedir=DIR C header files [PREFIX/include] |
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 828 | --infodir=DIR info documentation [PREFIX/info] |
| 829 | --mandir=DIR man documentation [PREFIX/man] |
| 830 | _ACEOF |
| 831 | |
| 832 | cat <<\_ACEOF |
| 833 | |
| 834 | System types: |
| 835 | --build=BUILD configure for building on BUILD [guessed] |
| 836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 837 | _ACEOF |
| 838 | fi |
| 839 | |
| 840 | if test -n "$ac_init_help"; then |
| 841 | |
| 842 | cat <<\_ACEOF |
| 843 | |
| 844 | Optional Features: |
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 847 | --enable-compression enable EXPERIMENTAL compression support |
| 848 | --enable-htree enable EXPERIMENTAL htree directory support |
| 849 | --enable-htree-clear clear htree because we don't trust e2fsck |
| 850 | --enable-elf-shlibs select ELF shared libraries |
| 851 | --enable-bsd-shlibs select BSD shared libraries |
| 852 | --enable-profile build profiling libraries |
| 853 | --enable-checker build checker libraries |
| 854 | --enable-jbd-debug enable journal debugging |
| 855 | --enable-blkid-debug enable blkid debugging |
| 856 | --enable-testio-debug enable the use of the test I/O manager for debugging |
| 857 | --disable-swapfs disable support of legacy byte-swapped filesystems |
| 858 | --disable-debugfs disable support of debugfs program |
| 859 | --disable-imager disable support of e2image program |
| 860 | --disable-resizer disable support of e2resize program |
| 861 | --enable-dynamic-e2fsck build e2fsck dynamically |
| 862 | --enable-fsck build fsck wrapper program |
| 863 | --enable-e2initrd-helper build e2initrd-helper program |
| 864 | --enable-old-bitops Use old (non-standard but native) bitmask operations |
| 865 | --disable-nls do not use Native Language Support |
| 866 | --disable-rpath do not hardcode runtime library paths |
| 867 | |
| 868 | Optional Packages: |
| 869 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 870 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 871 | --with-diet-libc Use diet libc |
| 872 | --with-cc=COMPILER select compiler to use |
| 873 | --with-linker=LINKER select linker to use |
| 874 | --with-ccopts=CCOPTS select compiler command line options |
| 875 | --with-ldopts=LDOPTS select linker command line options |
| 876 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 877 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 878 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 879 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 880 | --with-included-gettext use the GNU gettext library included here |
| 881 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 882 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 883 | |
| 884 | Some influential environment variables: |
| 885 | CC C compiler command |
| 886 | CFLAGS C compiler flags |
| 887 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 888 | nonstandard directory <lib dir> |
| 889 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 890 | headers in a nonstandard directory <include dir> |
| 891 | CPP C preprocessor |
| 892 | |
| 893 | Use these variables to override the choices made by `configure' or to help |
| 894 | it to find libraries and programs with nonstandard names/locations. |
| 895 | |
| 896 | _ACEOF |
| 897 | fi |
| 898 | |
| 899 | if test "$ac_init_help" = "recursive"; then |
| 900 | # If there are subdirs, report their specific --help. |
| 901 | ac_popdir=`pwd` |
| 902 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 903 | test -d $ac_dir || continue |
| 904 | ac_builddir=. |
| 905 | |
| 906 | if test "$ac_dir" != .; then |
| 907 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 908 | # A "../" for each directory in $ac_dir_suffix. |
| 909 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 910 | else |
| 911 | ac_dir_suffix= ac_top_builddir= |
| 912 | fi |
| 913 | |
| 914 | case $srcdir in |
| 915 | .) # No --srcdir option. We are building in place. |
| 916 | ac_srcdir=. |
| 917 | if test -z "$ac_top_builddir"; then |
| 918 | ac_top_srcdir=. |
| 919 | else |
| 920 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 921 | fi ;; |
| 922 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 923 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 924 | ac_top_srcdir=$srcdir ;; |
| 925 | *) # Relative path. |
| 926 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 927 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 928 | esac |
| 929 | |
| 930 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 931 | # the directories may not exist. |
| 932 | case `pwd` in |
| 933 | .) ac_abs_builddir="$ac_dir";; |
| 934 | *) |
| 935 | case "$ac_dir" in |
| 936 | .) ac_abs_builddir=`pwd`;; |
| 937 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 938 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 939 | esac;; |
| 940 | esac |
| 941 | case $ac_abs_builddir in |
| 942 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 943 | *) |
| 944 | case ${ac_top_builddir}. in |
| 945 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 946 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 947 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 948 | esac;; |
| 949 | esac |
| 950 | case $ac_abs_builddir in |
| 951 | .) ac_abs_srcdir=$ac_srcdir;; |
| 952 | *) |
| 953 | case $ac_srcdir in |
| 954 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 955 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 956 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 957 | esac;; |
| 958 | esac |
| 959 | case $ac_abs_builddir in |
| 960 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 961 | *) |
| 962 | case $ac_top_srcdir in |
| 963 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 964 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 965 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 966 | esac;; |
| 967 | esac |
| 968 | |
| 969 | cd $ac_dir |
| 970 | # Check for guested configure; otherwise get Cygnus style configure. |
| 971 | if test -f $ac_srcdir/configure.gnu; then |
| 972 | echo |
| 973 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 974 | elif test -f $ac_srcdir/configure; then |
| 975 | echo |
| 976 | $SHELL $ac_srcdir/configure --help=recursive |
| 977 | elif test -f $ac_srcdir/configure.ac || |
| 978 | test -f $ac_srcdir/configure.in; then |
| 979 | echo |
| 980 | $ac_configure --help |
| 981 | else |
| 982 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 983 | fi |
| 984 | cd "$ac_popdir" |
| 985 | done |
| 986 | fi |
| 987 | |
| 988 | test -n "$ac_init_help" && exit 0 |
| 989 | if $ac_init_version; then |
| 990 | cat <<\_ACEOF |
| 991 | |
| 992 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 993 | This configure script is free software; the Free Software Foundation |
| 994 | gives unlimited permission to copy, distribute and modify it. |
| 995 | _ACEOF |
| 996 | exit 0 |
| 997 | fi |
| 998 | exec 5>config.log |
| 999 | cat >&5 <<_ACEOF |
| 1000 | This file contains any messages produced by compilers while |
| 1001 | running configure, to aid debugging if configure makes a mistake. |
| 1002 | |
| 1003 | It was created by $as_me, which was |
| 1004 | generated by GNU Autoconf 2.59. Invocation command line was |
| 1005 | |
| 1006 | $ $0 $@ |
| 1007 | |
| 1008 | _ACEOF |
| 1009 | { |
| 1010 | cat <<_ASUNAME |
| 1011 | ## --------- ## |
| 1012 | ## Platform. ## |
| 1013 | ## --------- ## |
| 1014 | |
| 1015 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1016 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1017 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1018 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1019 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1020 | |
| 1021 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1022 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1023 | |
| 1024 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1025 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1026 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1027 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 1028 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1029 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1030 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1031 | |
| 1032 | _ASUNAME |
| 1033 | |
| 1034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1035 | for as_dir in $PATH |
| 1036 | do |
| 1037 | IFS=$as_save_IFS |
| 1038 | test -z "$as_dir" && as_dir=. |
| 1039 | echo "PATH: $as_dir" |
| 1040 | done |
| 1041 | |
| 1042 | } >&5 |
| 1043 | |
| 1044 | cat >&5 <<_ACEOF |
| 1045 | |
| 1046 | |
| 1047 | ## ----------- ## |
| 1048 | ## Core tests. ## |
| 1049 | ## ----------- ## |
| 1050 | |
| 1051 | _ACEOF |
| 1052 | |
| 1053 | |
| 1054 | # Keep a trace of the command line. |
| 1055 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1056 | # Strip out --silent because we don't want to record it for future runs. |
| 1057 | # Also quote any args containing shell meta-characters. |
| 1058 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1059 | ac_configure_args= |
| 1060 | ac_configure_args0= |
| 1061 | ac_configure_args1= |
| 1062 | ac_sep= |
| 1063 | ac_must_keep_next=false |
| 1064 | for ac_pass in 1 2 |
| 1065 | do |
| 1066 | for ac_arg |
| 1067 | do |
| 1068 | case $ac_arg in |
| 1069 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1070 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1071 | | -silent | --silent | --silen | --sile | --sil) |
| 1072 | continue ;; |
| 1073 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1074 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1075 | esac |
| 1076 | case $ac_pass in |
| 1077 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1078 | 2) |
| 1079 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1080 | if test $ac_must_keep_next = true; then |
| 1081 | ac_must_keep_next=false # Got value, back to normal. |
| 1082 | else |
| 1083 | case $ac_arg in |
| 1084 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1085 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1086 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1087 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1088 | case "$ac_configure_args0 " in |
| 1089 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1090 | esac |
| 1091 | ;; |
| 1092 | -* ) ac_must_keep_next=true ;; |
| 1093 | esac |
| 1094 | fi |
| 1095 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1096 | # Get rid of the leading space. |
| 1097 | ac_sep=" " |
| 1098 | ;; |
| 1099 | esac |
| 1100 | done |
| 1101 | done |
| 1102 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1103 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1104 | |
| 1105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1106 | # config.log. We remove comments because anyway the quotes in there |
| 1107 | # would cause problems or look ugly. |
| 1108 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1109 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1110 | trap 'exit_status=$? |
| 1111 | # Save into config.log some information that might help in debugging. |
| 1112 | { |
| 1113 | echo |
| 1114 | |
| 1115 | cat <<\_ASBOX |
| 1116 | ## ---------------- ## |
| 1117 | ## Cache variables. ## |
| 1118 | ## ---------------- ## |
| 1119 | _ASBOX |
| 1120 | echo |
| 1121 | # The following way of writing the cache mishandles newlines in values, |
| 1122 | { |
| 1123 | (set) 2>&1 | |
| 1124 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1125 | *ac_space=\ *) |
| 1126 | sed -n \ |
| 1127 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1128 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1129 | ;; |
| 1130 | *) |
| 1131 | sed -n \ |
| 1132 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1133 | ;; |
| 1134 | esac; |
| 1135 | } |
| 1136 | echo |
| 1137 | |
| 1138 | cat <<\_ASBOX |
| 1139 | ## ----------------- ## |
| 1140 | ## Output variables. ## |
| 1141 | ## ----------------- ## |
| 1142 | _ASBOX |
| 1143 | echo |
| 1144 | for ac_var in $ac_subst_vars |
| 1145 | do |
| 1146 | eval ac_val=$`echo $ac_var` |
| 1147 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1148 | done | sort |
| 1149 | echo |
| 1150 | |
| 1151 | if test -n "$ac_subst_files"; then |
| 1152 | cat <<\_ASBOX |
| 1153 | ## ------------- ## |
| 1154 | ## Output files. ## |
| 1155 | ## ------------- ## |
| 1156 | _ASBOX |
| 1157 | echo |
| 1158 | for ac_var in $ac_subst_files |
| 1159 | do |
| 1160 | eval ac_val=$`echo $ac_var` |
| 1161 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1162 | done | sort |
| 1163 | echo |
| 1164 | fi |
| 1165 | |
| 1166 | if test -s confdefs.h; then |
| 1167 | cat <<\_ASBOX |
| 1168 | ## ----------- ## |
| 1169 | ## confdefs.h. ## |
| 1170 | ## ----------- ## |
| 1171 | _ASBOX |
| 1172 | echo |
| 1173 | sed "/^$/d" confdefs.h | sort |
| 1174 | echo |
| 1175 | fi |
| 1176 | test "$ac_signal" != 0 && |
| 1177 | echo "$as_me: caught signal $ac_signal" |
| 1178 | echo "$as_me: exit $exit_status" |
| 1179 | } >&5 |
| 1180 | rm -f core *.core && |
| 1181 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1182 | exit $exit_status |
| 1183 | ' 0 |
| 1184 | for ac_signal in 1 2 13 15; do |
| 1185 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1186 | done |
| 1187 | ac_signal=0 |
| 1188 | |
| 1189 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1190 | rm -rf conftest* confdefs.h |
| 1191 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1192 | echo >confdefs.h |
| 1193 | |
| 1194 | # Predefined preprocessor variables. |
| 1195 | |
| 1196 | cat >>confdefs.h <<_ACEOF |
| 1197 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1198 | _ACEOF |
| 1199 | |
| 1200 | |
| 1201 | cat >>confdefs.h <<_ACEOF |
| 1202 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1203 | _ACEOF |
| 1204 | |
| 1205 | |
| 1206 | cat >>confdefs.h <<_ACEOF |
| 1207 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1208 | _ACEOF |
| 1209 | |
| 1210 | |
| 1211 | cat >>confdefs.h <<_ACEOF |
| 1212 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1213 | _ACEOF |
| 1214 | |
| 1215 | |
| 1216 | cat >>confdefs.h <<_ACEOF |
| 1217 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1218 | _ACEOF |
| 1219 | |
| 1220 | |
| 1221 | # Let the site file select an alternate cache file if it wants to. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1222 | # Prefer explicitly selected file to automatically selected ones. |
| 1223 | if test -z "$CONFIG_SITE"; then |
| 1224 | if test "x$prefix" != xNONE; then |
| 1225 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1226 | else |
| 1227 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1228 | fi |
| 1229 | fi |
| 1230 | for ac_site_file in $CONFIG_SITE; do |
| 1231 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1232 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1233 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1234 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1235 | . "$ac_site_file" |
| 1236 | fi |
| 1237 | done |
| 1238 | |
| 1239 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1240 | # Some versions of bash will fail to source /dev/null (special |
| 1241 | # files actually), so we avoid doing that. |
| 1242 | if test -f "$cache_file"; then |
| 1243 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1244 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1245 | case $cache_file in |
| 1246 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1247 | *) . ./$cache_file;; |
| 1248 | esac |
| 1249 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1251 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1252 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1253 | >$cache_file |
| 1254 | fi |
| 1255 | |
| 1256 | # Check that the precious variables saved in the cache have kept the same |
| 1257 | # value. |
| 1258 | ac_cache_corrupted=false |
| 1259 | for ac_var in `(set) 2>&1 | |
| 1260 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1263 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1264 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1265 | case $ac_old_set,$ac_new_set in |
| 1266 | set,) |
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1268 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1269 | ac_cache_corrupted=: ;; |
| 1270 | ,set) |
| 1271 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1272 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1273 | ac_cache_corrupted=: ;; |
| 1274 | ,);; |
| 1275 | *) |
| 1276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1277 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1278 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1279 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1280 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1281 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1282 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1283 | ac_cache_corrupted=: |
| 1284 | fi;; |
| 1285 | esac |
| 1286 | # Pass precious variables to config.status. |
| 1287 | if test "$ac_new_set" = set; then |
| 1288 | case $ac_new_val in |
| 1289 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1290 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1291 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1292 | esac |
| 1293 | case " $ac_configure_args " in |
| 1294 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1295 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1296 | esac |
| 1297 | fi |
| 1298 | done |
| 1299 | if $ac_cache_corrupted; then |
| 1300 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1301 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1302 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1303 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1304 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1305 | fi |
| 1306 | |
| 1307 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1308 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1309 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1310 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1311 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1313 | |
| 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
| 1318 | |
| 1319 | |
| 1320 | |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | |
| 1325 | |
| 1326 | |
| 1327 | |
| 1328 | |
| 1329 | |
| 1330 | |
| 1331 | |
| 1332 | ac_aux_dir= |
| 1333 | for ac_dir in config $srcdir/config; do |
| 1334 | if test -f $ac_dir/install-sh; then |
| 1335 | ac_aux_dir=$ac_dir |
| 1336 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1337 | break |
| 1338 | elif test -f $ac_dir/install.sh; then |
| 1339 | ac_aux_dir=$ac_dir |
| 1340 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1341 | break |
| 1342 | elif test -f $ac_dir/shtool; then |
| 1343 | ac_aux_dir=$ac_dir |
| 1344 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1345 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1346 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1347 | done |
| 1348 | if test -z "$ac_aux_dir"; then |
| 1349 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5 |
| 1350 | echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;} |
| 1351 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1352 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1353 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1354 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1355 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1356 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1357 | MCONFIG=./MCONFIG |
| 1358 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1359 | BINARY_TYPE=bin |
| 1360 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1361 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1362 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1363 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1364 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1365 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1366 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1367 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1368 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1369 | E2FSPROGS_YEAR=$YEAR |
| 1370 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1371 | E2FSPROGS_YEAR=19$YEAR |
| 1372 | else |
| 1373 | E2FSPROGS_YEAR=20$YEAR |
| 1374 | fi |
| 1375 | |
| 1376 | case $MONTH in |
| 1377 | Jan) E2FSPROGS_MONTH="January" ;; |
| 1378 | Feb) E2FSPROGS_MONTH="February" ;; |
| 1379 | Mar) E2FSPROGS_MONTH="March" ;; |
| 1380 | Apr) E2FSPROGS_MONTH="April" ;; |
| 1381 | May) E2FSPROGS_MONTH="May" ;; |
| 1382 | Jun) E2FSPROGS_MONTH="June" ;; |
| 1383 | Jul) E2FSPROGS_MONTH="July" ;; |
| 1384 | Aug) E2FSPROGS_MONTH="August" ;; |
| 1385 | Sep) E2FSPROGS_MONTH="September" ;; |
| 1386 | Oct) E2FSPROGS_MONTH="October" ;; |
| 1387 | Nov) E2FSPROGS_MONTH="November" ;; |
| 1388 | Dec) E2FSPROGS_MONTH="December" ;; |
| 1389 | *) echo "Unknown month $MONTH??" ;; |
| 1390 | esac |
| 1391 | |
| 1392 | unset DATE MONTH YEAR |
| 1393 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 1394 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 1395 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1396 | |
| 1397 | |
| 1398 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1399 | # Make sure we can run config.sub. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1400 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1401 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1402 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1403 | { (exit 1); exit 1; }; } |
| 1404 | |
| 1405 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1406 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1407 | if test "${ac_cv_build+set}" = set; then |
| 1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1409 | else |
| 1410 | ac_cv_build_alias=$build_alias |
| 1411 | test -z "$ac_cv_build_alias" && |
| 1412 | ac_cv_build_alias=`$ac_config_guess` |
| 1413 | test -z "$ac_cv_build_alias" && |
| 1414 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1415 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1416 | { (exit 1); exit 1; }; } |
| 1417 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1418 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1419 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1420 | { (exit 1); exit 1; }; } |
| 1421 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1422 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1423 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1424 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1425 | build=$ac_cv_build |
| 1426 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1427 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1428 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1429 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1430 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1431 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1432 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1433 | if test "${ac_cv_host+set}" = set; then |
| 1434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1435 | else |
| 1436 | ac_cv_host_alias=$host_alias |
| 1437 | test -z "$ac_cv_host_alias" && |
| 1438 | ac_cv_host_alias=$ac_cv_build_alias |
| 1439 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1440 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1441 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1442 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1443 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1444 | fi |
| 1445 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1446 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1447 | host=$ac_cv_host |
| 1448 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1449 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1450 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1451 | |
| 1452 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1453 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1454 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 1455 | if test "${with_diet_libc+set}" = set; then |
| 1456 | withval="$with_diet_libc" |
| 1457 | CC="diet cc -nostdinc" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1458 | echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 1459 | echo "${ECHO_T}CC=$CC" >&6 |
| 1460 | fi; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1461 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1462 | if test "${with_cc+set}" = set; then |
| 1463 | withval="$with_cc" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1464 | echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 1465 | echo "${ECHO_T}CC=$withval" >&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1466 | CC=$withval |
| 1467 | else |
| 1468 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 1470 | echo "${ECHO_T}CC defaults to $CC" >&6 |
| 1471 | fi; export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1473 | ac_ext=c |
| 1474 | ac_cpp='$CPP $CPPFLAGS' |
| 1475 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1476 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1477 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1478 | if test -n "$ac_tool_prefix"; then |
| 1479 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1480 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1483 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1485 | else |
| 1486 | if test -n "$CC"; then |
| 1487 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1488 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1490 | for as_dir in $PATH |
| 1491 | do |
| 1492 | IFS=$as_save_IFS |
| 1493 | test -z "$as_dir" && as_dir=. |
| 1494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1496 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1498 | break 2 |
| 1499 | fi |
| 1500 | done |
| 1501 | done |
| 1502 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1503 | fi |
| 1504 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1505 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1506 | if test -n "$CC"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1508 | echo "${ECHO_T}$CC" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1509 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1510 | echo "$as_me:$LINENO: result: no" >&5 |
| 1511 | echo "${ECHO_T}no" >&6 |
| 1512 | fi |
| 1513 | |
| 1514 | fi |
| 1515 | if test -z "$ac_cv_prog_CC"; then |
| 1516 | ac_ct_CC=$CC |
| 1517 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1518 | set dummy gcc; ac_word=$2 |
| 1519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1521 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1523 | else |
| 1524 | if test -n "$ac_ct_CC"; then |
| 1525 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1526 | else |
| 1527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1528 | for as_dir in $PATH |
| 1529 | do |
| 1530 | IFS=$as_save_IFS |
| 1531 | test -z "$as_dir" && as_dir=. |
| 1532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1534 | ac_cv_prog_ac_ct_CC="gcc" |
| 1535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1536 | break 2 |
| 1537 | fi |
| 1538 | done |
| 1539 | done |
| 1540 | |
| 1541 | fi |
| 1542 | fi |
| 1543 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1544 | if test -n "$ac_ct_CC"; then |
| 1545 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1546 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1547 | else |
| 1548 | echo "$as_me:$LINENO: result: no" >&5 |
| 1549 | echo "${ECHO_T}no" >&6 |
| 1550 | fi |
| 1551 | |
| 1552 | CC=$ac_ct_CC |
| 1553 | else |
| 1554 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1555 | fi |
| 1556 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1557 | if test -z "$CC"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1558 | if test -n "$ac_tool_prefix"; then |
| 1559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1563 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1565 | else |
| 1566 | if test -n "$CC"; then |
| 1567 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1568 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1570 | for as_dir in $PATH |
| 1571 | do |
| 1572 | IFS=$as_save_IFS |
| 1573 | test -z "$as_dir" && as_dir=. |
| 1574 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1576 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1578 | break 2 |
| 1579 | fi |
| 1580 | done |
| 1581 | done |
| 1582 | |
| 1583 | fi |
| 1584 | fi |
| 1585 | CC=$ac_cv_prog_CC |
| 1586 | if test -n "$CC"; then |
| 1587 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1588 | echo "${ECHO_T}$CC" >&6 |
| 1589 | else |
| 1590 | echo "$as_me:$LINENO: result: no" >&5 |
| 1591 | echo "${ECHO_T}no" >&6 |
| 1592 | fi |
| 1593 | |
| 1594 | fi |
| 1595 | if test -z "$ac_cv_prog_CC"; then |
| 1596 | ac_ct_CC=$CC |
| 1597 | # Extract the first word of "cc", so it can be a program name with args. |
| 1598 | set dummy cc; ac_word=$2 |
| 1599 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1601 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1603 | else |
| 1604 | if test -n "$ac_ct_CC"; then |
| 1605 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1606 | else |
| 1607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1608 | for as_dir in $PATH |
| 1609 | do |
| 1610 | IFS=$as_save_IFS |
| 1611 | test -z "$as_dir" && as_dir=. |
| 1612 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1613 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1614 | ac_cv_prog_ac_ct_CC="cc" |
| 1615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1616 | break 2 |
| 1617 | fi |
| 1618 | done |
| 1619 | done |
| 1620 | |
| 1621 | fi |
| 1622 | fi |
| 1623 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1624 | if test -n "$ac_ct_CC"; then |
| 1625 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1626 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1627 | else |
| 1628 | echo "$as_me:$LINENO: result: no" >&5 |
| 1629 | echo "${ECHO_T}no" >&6 |
| 1630 | fi |
| 1631 | |
| 1632 | CC=$ac_ct_CC |
| 1633 | else |
| 1634 | CC="$ac_cv_prog_CC" |
| 1635 | fi |
| 1636 | |
| 1637 | fi |
| 1638 | if test -z "$CC"; then |
| 1639 | # Extract the first word of "cc", so it can be a program name with args. |
| 1640 | set dummy cc; ac_word=$2 |
| 1641 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1642 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1643 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1645 | else |
| 1646 | if test -n "$CC"; then |
| 1647 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1648 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1649 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1651 | for as_dir in $PATH |
| 1652 | do |
| 1653 | IFS=$as_save_IFS |
| 1654 | test -z "$as_dir" && as_dir=. |
| 1655 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1657 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1658 | ac_prog_rejected=yes |
| 1659 | continue |
| 1660 | fi |
| 1661 | ac_cv_prog_CC="cc" |
| 1662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1663 | break 2 |
| 1664 | fi |
| 1665 | done |
| 1666 | done |
| 1667 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1668 | if test $ac_prog_rejected = yes; then |
| 1669 | # We found a bogon in the path, so make sure we never use it. |
| 1670 | set dummy $ac_cv_prog_CC |
| 1671 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1672 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1673 | # We chose a different compiler from the bogus one. |
| 1674 | # However, it has the same basename, so the bogon will be chosen |
| 1675 | # first if we set CC to just the basename; use the full file name. |
| 1676 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1677 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1678 | fi |
| 1679 | fi |
| 1680 | fi |
| 1681 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1682 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1683 | if test -n "$CC"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1684 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1685 | echo "${ECHO_T}$CC" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1687 | echo "$as_me:$LINENO: result: no" >&5 |
| 1688 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1689 | fi |
| 1690 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1691 | fi |
| 1692 | if test -z "$CC"; then |
| 1693 | if test -n "$ac_tool_prefix"; then |
| 1694 | for ac_prog in cl |
| 1695 | do |
| 1696 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1697 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1700 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1702 | else |
| 1703 | if test -n "$CC"; then |
| 1704 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1705 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1707 | for as_dir in $PATH |
| 1708 | do |
| 1709 | IFS=$as_save_IFS |
| 1710 | test -z "$as_dir" && as_dir=. |
| 1711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1713 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1715 | break 2 |
| 1716 | fi |
| 1717 | done |
| 1718 | done |
| 1719 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1720 | fi |
| 1721 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1722 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1723 | if test -n "$CC"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1724 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1725 | echo "${ECHO_T}$CC" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1726 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1727 | echo "$as_me:$LINENO: result: no" >&5 |
| 1728 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1729 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1730 | |
| 1731 | test -n "$CC" && break |
| 1732 | done |
| 1733 | fi |
| 1734 | if test -z "$CC"; then |
| 1735 | ac_ct_CC=$CC |
| 1736 | for ac_prog in cl |
| 1737 | do |
| 1738 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1739 | set dummy $ac_prog; ac_word=$2 |
| 1740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1742 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1744 | else |
| 1745 | if test -n "$ac_ct_CC"; then |
| 1746 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1747 | else |
| 1748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1749 | for as_dir in $PATH |
| 1750 | do |
| 1751 | IFS=$as_save_IFS |
| 1752 | test -z "$as_dir" && as_dir=. |
| 1753 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1755 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1757 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1758 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1759 | done |
| 1760 | done |
| 1761 | |
| 1762 | fi |
| 1763 | fi |
| 1764 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1765 | if test -n "$ac_ct_CC"; then |
| 1766 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1767 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1768 | else |
| 1769 | echo "$as_me:$LINENO: result: no" >&5 |
| 1770 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1771 | fi |
| 1772 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1773 | test -n "$ac_ct_CC" && break |
| 1774 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1775 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1776 | CC=$ac_ct_CC |
| 1777 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1778 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1779 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1780 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1781 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1782 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1783 | See \`config.log' for more details." >&5 |
| 1784 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1785 | See \`config.log' for more details." >&2;} |
| 1786 | { (exit 1); exit 1; }; } |
| 1787 | |
| 1788 | # Provide some information about the compiler. |
| 1789 | echo "$as_me:$LINENO:" \ |
| 1790 | "checking for C compiler version" >&5 |
| 1791 | ac_compiler=`set X $ac_compile; echo $2` |
| 1792 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1793 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1794 | ac_status=$? |
| 1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1796 | (exit $ac_status); } |
| 1797 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1798 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1799 | ac_status=$? |
| 1800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1801 | (exit $ac_status); } |
| 1802 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1803 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1804 | ac_status=$? |
| 1805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1806 | (exit $ac_status); } |
| 1807 | |
| 1808 | cat >conftest.$ac_ext <<_ACEOF |
| 1809 | /* confdefs.h. */ |
| 1810 | _ACEOF |
| 1811 | cat confdefs.h >>conftest.$ac_ext |
| 1812 | cat >>conftest.$ac_ext <<_ACEOF |
| 1813 | /* end confdefs.h. */ |
| 1814 | |
| 1815 | int |
| 1816 | main () |
| 1817 | { |
| 1818 | |
| 1819 | ; |
| 1820 | return 0; |
| 1821 | } |
| 1822 | _ACEOF |
| 1823 | ac_clean_files_save=$ac_clean_files |
| 1824 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1825 | # Try to create an executable without -o first, disregard a.out. |
| 1826 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1827 | # of exeext. |
| 1828 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1829 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1830 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1831 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1832 | (eval $ac_link_default) 2>&5 |
| 1833 | ac_status=$? |
| 1834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1835 | (exit $ac_status); }; then |
| 1836 | # Find the output, starting from the most likely. This scheme is |
| 1837 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1838 | # resort. |
| 1839 | |
| 1840 | # Be careful to initialize this variable, since it used to be cached. |
| 1841 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1842 | ac_cv_exeext= |
| 1843 | # b.out is created by i960 compilers. |
| 1844 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1845 | do |
| 1846 | test -f "$ac_file" || continue |
| 1847 | case $ac_file in |
| 1848 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1849 | ;; |
| 1850 | conftest.$ac_ext ) |
| 1851 | # This is the source file. |
| 1852 | ;; |
| 1853 | [ab].out ) |
| 1854 | # We found the default executable, but exeext='' is most |
| 1855 | # certainly right. |
| 1856 | break;; |
| 1857 | *.* ) |
| 1858 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1859 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1860 | # but it would be cool to find out if it's true. Does anybody |
| 1861 | # maintain Libtool? --akim. |
| 1862 | export ac_cv_exeext |
| 1863 | break;; |
| 1864 | * ) |
| 1865 | break;; |
| 1866 | esac |
| 1867 | done |
| 1868 | else |
| 1869 | echo "$as_me: failed program was:" >&5 |
| 1870 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1871 | |
| 1872 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1873 | See \`config.log' for more details." >&5 |
| 1874 | echo "$as_me: error: C compiler cannot create executables |
| 1875 | See \`config.log' for more details." >&2;} |
| 1876 | { (exit 77); exit 77; }; } |
| 1877 | fi |
| 1878 | |
| 1879 | ac_exeext=$ac_cv_exeext |
| 1880 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1881 | echo "${ECHO_T}$ac_file" >&6 |
| 1882 | |
| 1883 | # Check the compiler produces executables we can run. If not, either |
| 1884 | # the compiler is broken, or we cross compile. |
| 1885 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1886 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1887 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1888 | # If not cross compiling, check that we can run a simple program. |
| 1889 | if test "$cross_compiling" != yes; then |
| 1890 | if { ac_try='./$ac_file' |
| 1891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1892 | (eval $ac_try) 2>&5 |
| 1893 | ac_status=$? |
| 1894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1895 | (exit $ac_status); }; }; then |
| 1896 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1897 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1898 | if test "$cross_compiling" = maybe; then |
| 1899 | cross_compiling=yes |
| 1900 | else |
| 1901 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1902 | If you meant to cross compile, use \`--host'. |
| 1903 | See \`config.log' for more details." >&5 |
| 1904 | echo "$as_me: error: cannot run C compiled programs. |
| 1905 | If you meant to cross compile, use \`--host'. |
| 1906 | See \`config.log' for more details." >&2;} |
| 1907 | { (exit 1); exit 1; }; } |
| 1908 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1909 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1910 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1912 | echo "${ECHO_T}yes" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1913 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1914 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1915 | ac_clean_files=$ac_clean_files_save |
| 1916 | # Check the compiler produces executables we can run. If not, either |
| 1917 | # the compiler is broken, or we cross compile. |
| 1918 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1919 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1920 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1921 | echo "${ECHO_T}$cross_compiling" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1923 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1924 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1926 | (eval $ac_link) 2>&5 |
| 1927 | ac_status=$? |
| 1928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1929 | (exit $ac_status); }; then |
| 1930 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1931 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1932 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1933 | # `rm'. |
| 1934 | for ac_file in conftest.exe conftest conftest.*; do |
| 1935 | test -f "$ac_file" || continue |
| 1936 | case $ac_file in |
| 1937 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1938 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1939 | export ac_cv_exeext |
| 1940 | break;; |
| 1941 | * ) break;; |
| 1942 | esac |
| 1943 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1944 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1945 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1946 | See \`config.log' for more details." >&5 |
| 1947 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1948 | See \`config.log' for more details." >&2;} |
| 1949 | { (exit 1); exit 1; }; } |
| 1950 | fi |
| 1951 | |
| 1952 | rm -f conftest$ac_cv_exeext |
| 1953 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1954 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1955 | |
| 1956 | rm -f conftest.$ac_ext |
| 1957 | EXEEXT=$ac_cv_exeext |
| 1958 | ac_exeext=$EXEEXT |
| 1959 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1960 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1961 | if test "${ac_cv_objext+set}" = set; then |
| 1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1963 | else |
| 1964 | cat >conftest.$ac_ext <<_ACEOF |
| 1965 | /* confdefs.h. */ |
| 1966 | _ACEOF |
| 1967 | cat confdefs.h >>conftest.$ac_ext |
| 1968 | cat >>conftest.$ac_ext <<_ACEOF |
| 1969 | /* end confdefs.h. */ |
| 1970 | |
| 1971 | int |
| 1972 | main () |
| 1973 | { |
| 1974 | |
| 1975 | ; |
| 1976 | return 0; |
| 1977 | } |
| 1978 | _ACEOF |
| 1979 | rm -f conftest.o conftest.obj |
| 1980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1981 | (eval $ac_compile) 2>&5 |
| 1982 | ac_status=$? |
| 1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1984 | (exit $ac_status); }; then |
| 1985 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1986 | case $ac_file in |
| 1987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1988 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1989 | break;; |
| 1990 | esac |
| 1991 | done |
| 1992 | else |
| 1993 | echo "$as_me: failed program was:" >&5 |
| 1994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1995 | |
| 1996 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1997 | See \`config.log' for more details." >&5 |
| 1998 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1999 | See \`config.log' for more details." >&2;} |
| 2000 | { (exit 1); exit 1; }; } |
| 2001 | fi |
| 2002 | |
| 2003 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2004 | fi |
| 2005 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2006 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2007 | OBJEXT=$ac_cv_objext |
| 2008 | ac_objext=$OBJEXT |
| 2009 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2010 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2011 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2013 | else |
| 2014 | cat >conftest.$ac_ext <<_ACEOF |
| 2015 | /* confdefs.h. */ |
| 2016 | _ACEOF |
| 2017 | cat confdefs.h >>conftest.$ac_ext |
| 2018 | cat >>conftest.$ac_ext <<_ACEOF |
| 2019 | /* end confdefs.h. */ |
| 2020 | |
| 2021 | int |
| 2022 | main () |
| 2023 | { |
| 2024 | #ifndef __GNUC__ |
| 2025 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2026 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2027 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2028 | ; |
| 2029 | return 0; |
| 2030 | } |
| 2031 | _ACEOF |
| 2032 | rm -f conftest.$ac_objext |
| 2033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2034 | (eval $ac_compile) 2>conftest.er1 |
| 2035 | ac_status=$? |
| 2036 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2037 | rm -f conftest.er1 |
| 2038 | cat conftest.err >&5 |
| 2039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2040 | (exit $ac_status); } && |
| 2041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2043 | (eval $ac_try) 2>&5 |
| 2044 | ac_status=$? |
| 2045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2046 | (exit $ac_status); }; } && |
| 2047 | { ac_try='test -s conftest.$ac_objext' |
| 2048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2049 | (eval $ac_try) 2>&5 |
| 2050 | ac_status=$? |
| 2051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2052 | (exit $ac_status); }; }; then |
| 2053 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2054 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2055 | echo "$as_me: failed program was:" >&5 |
| 2056 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2057 | |
| 2058 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2059 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2061 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2062 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2063 | fi |
| 2064 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2065 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2066 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2067 | ac_test_CFLAGS=${CFLAGS+set} |
| 2068 | ac_save_CFLAGS=$CFLAGS |
| 2069 | CFLAGS="-g" |
| 2070 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2071 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2072 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2074 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2075 | cat >conftest.$ac_ext <<_ACEOF |
| 2076 | /* confdefs.h. */ |
| 2077 | _ACEOF |
| 2078 | cat confdefs.h >>conftest.$ac_ext |
| 2079 | cat >>conftest.$ac_ext <<_ACEOF |
| 2080 | /* end confdefs.h. */ |
| 2081 | |
| 2082 | int |
| 2083 | main () |
| 2084 | { |
| 2085 | |
| 2086 | ; |
| 2087 | return 0; |
| 2088 | } |
| 2089 | _ACEOF |
| 2090 | rm -f conftest.$ac_objext |
| 2091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2092 | (eval $ac_compile) 2>conftest.er1 |
| 2093 | ac_status=$? |
| 2094 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2095 | rm -f conftest.er1 |
| 2096 | cat conftest.err >&5 |
| 2097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2098 | (exit $ac_status); } && |
| 2099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2101 | (eval $ac_try) 2>&5 |
| 2102 | ac_status=$? |
| 2103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2104 | (exit $ac_status); }; } && |
| 2105 | { ac_try='test -s conftest.$ac_objext' |
| 2106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2107 | (eval $ac_try) 2>&5 |
| 2108 | ac_status=$? |
| 2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2110 | (exit $ac_status); }; }; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2111 | ac_cv_prog_cc_g=yes |
| 2112 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2113 | echo "$as_me: failed program was:" >&5 |
| 2114 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2115 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2116 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2117 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2119 | fi |
| 2120 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2121 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2122 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2123 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2124 | elif test $ac_cv_prog_cc_g = yes; then |
| 2125 | if test "$GCC" = yes; then |
| 2126 | CFLAGS="-g -O2" |
| 2127 | else |
| 2128 | CFLAGS="-g" |
| 2129 | fi |
| 2130 | else |
| 2131 | if test "$GCC" = yes; then |
| 2132 | CFLAGS="-O2" |
| 2133 | else |
| 2134 | CFLAGS= |
| 2135 | fi |
| 2136 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2137 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2138 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2139 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2141 | else |
| 2142 | ac_cv_prog_cc_stdc=no |
| 2143 | ac_save_CC=$CC |
| 2144 | cat >conftest.$ac_ext <<_ACEOF |
| 2145 | /* confdefs.h. */ |
| 2146 | _ACEOF |
| 2147 | cat confdefs.h >>conftest.$ac_ext |
| 2148 | cat >>conftest.$ac_ext <<_ACEOF |
| 2149 | /* end confdefs.h. */ |
| 2150 | #include <stdarg.h> |
| 2151 | #include <stdio.h> |
| 2152 | #include <sys/types.h> |
| 2153 | #include <sys/stat.h> |
| 2154 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2155 | struct buf { int x; }; |
| 2156 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2157 | static char *e (p, i) |
| 2158 | char **p; |
| 2159 | int i; |
| 2160 | { |
| 2161 | return p[i]; |
| 2162 | } |
| 2163 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2164 | { |
| 2165 | char *s; |
| 2166 | va_list v; |
| 2167 | va_start (v,p); |
| 2168 | s = g (p, va_arg (v,int)); |
| 2169 | va_end (v); |
| 2170 | return s; |
| 2171 | } |
| 2172 | |
| 2173 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2174 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2175 | These don't provoke an error unfortunately, instead are silently treated |
| 2176 | as 'x'. The following induces an error, until -std1 is added to get |
| 2177 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2178 | array size at least. It's necessary to write '\x00'==0 to get something |
| 2179 | that's true only with -std1. */ |
| 2180 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2181 | |
| 2182 | int test (int i, double x); |
| 2183 | struct s1 {int (*f) (int a);}; |
| 2184 | struct s2 {int (*f) (double a);}; |
| 2185 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2186 | int argc; |
| 2187 | char **argv; |
| 2188 | int |
| 2189 | main () |
| 2190 | { |
| 2191 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2192 | ; |
| 2193 | return 0; |
| 2194 | } |
| 2195 | _ACEOF |
| 2196 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2197 | # breaks some systems' header files. |
| 2198 | # AIX -qlanglvl=ansi |
| 2199 | # Ultrix and OSF/1 -std1 |
| 2200 | # HP-UX 10.20 and later -Ae |
| 2201 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2202 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2203 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2204 | do |
| 2205 | CC="$ac_save_CC $ac_arg" |
| 2206 | rm -f conftest.$ac_objext |
| 2207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2208 | (eval $ac_compile) 2>conftest.er1 |
| 2209 | ac_status=$? |
| 2210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2211 | rm -f conftest.er1 |
| 2212 | cat conftest.err >&5 |
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2214 | (exit $ac_status); } && |
| 2215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2217 | (eval $ac_try) 2>&5 |
| 2218 | ac_status=$? |
| 2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2220 | (exit $ac_status); }; } && |
| 2221 | { ac_try='test -s conftest.$ac_objext' |
| 2222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2223 | (eval $ac_try) 2>&5 |
| 2224 | ac_status=$? |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); }; }; then |
| 2227 | ac_cv_prog_cc_stdc=$ac_arg |
| 2228 | break |
| 2229 | else |
| 2230 | echo "$as_me: failed program was:" >&5 |
| 2231 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2232 | |
| 2233 | fi |
| 2234 | rm -f conftest.err conftest.$ac_objext |
| 2235 | done |
| 2236 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2237 | CC=$ac_save_CC |
| 2238 | |
| 2239 | fi |
| 2240 | |
| 2241 | case "x$ac_cv_prog_cc_stdc" in |
| 2242 | x|xno) |
| 2243 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2244 | echo "${ECHO_T}none needed" >&6 ;; |
| 2245 | *) |
| 2246 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2247 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2248 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2249 | esac |
| 2250 | |
| 2251 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2252 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2253 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2254 | # the declaration of exit, since it's the most demanding environment. |
| 2255 | cat >conftest.$ac_ext <<_ACEOF |
| 2256 | #ifndef __cplusplus |
| 2257 | choke me |
| 2258 | #endif |
| 2259 | _ACEOF |
| 2260 | rm -f conftest.$ac_objext |
| 2261 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2262 | (eval $ac_compile) 2>conftest.er1 |
| 2263 | ac_status=$? |
| 2264 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2265 | rm -f conftest.er1 |
| 2266 | cat conftest.err >&5 |
| 2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2268 | (exit $ac_status); } && |
| 2269 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2271 | (eval $ac_try) 2>&5 |
| 2272 | ac_status=$? |
| 2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2274 | (exit $ac_status); }; } && |
| 2275 | { ac_try='test -s conftest.$ac_objext' |
| 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2277 | (eval $ac_try) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; }; then |
| 2281 | for ac_declaration in \ |
| 2282 | '' \ |
| 2283 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2284 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2285 | 'extern "C" void exit (int) throw ();' \ |
| 2286 | 'extern "C" void exit (int);' \ |
| 2287 | 'void exit (int);' |
| 2288 | do |
| 2289 | cat >conftest.$ac_ext <<_ACEOF |
| 2290 | /* confdefs.h. */ |
| 2291 | _ACEOF |
| 2292 | cat confdefs.h >>conftest.$ac_ext |
| 2293 | cat >>conftest.$ac_ext <<_ACEOF |
| 2294 | /* end confdefs.h. */ |
| 2295 | $ac_declaration |
| 2296 | #include <stdlib.h> |
| 2297 | int |
| 2298 | main () |
| 2299 | { |
| 2300 | exit (42); |
| 2301 | ; |
| 2302 | return 0; |
| 2303 | } |
| 2304 | _ACEOF |
| 2305 | rm -f conftest.$ac_objext |
| 2306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2307 | (eval $ac_compile) 2>conftest.er1 |
| 2308 | ac_status=$? |
| 2309 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2310 | rm -f conftest.er1 |
| 2311 | cat conftest.err >&5 |
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2313 | (exit $ac_status); } && |
| 2314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2316 | (eval $ac_try) 2>&5 |
| 2317 | ac_status=$? |
| 2318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2319 | (exit $ac_status); }; } && |
| 2320 | { ac_try='test -s conftest.$ac_objext' |
| 2321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2322 | (eval $ac_try) 2>&5 |
| 2323 | ac_status=$? |
| 2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2325 | (exit $ac_status); }; }; then |
| 2326 | : |
| 2327 | else |
| 2328 | echo "$as_me: failed program was:" >&5 |
| 2329 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2330 | |
| 2331 | continue |
| 2332 | fi |
| 2333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2334 | cat >conftest.$ac_ext <<_ACEOF |
| 2335 | /* confdefs.h. */ |
| 2336 | _ACEOF |
| 2337 | cat confdefs.h >>conftest.$ac_ext |
| 2338 | cat >>conftest.$ac_ext <<_ACEOF |
| 2339 | /* end confdefs.h. */ |
| 2340 | $ac_declaration |
| 2341 | int |
| 2342 | main () |
| 2343 | { |
| 2344 | exit (42); |
| 2345 | ; |
| 2346 | return 0; |
| 2347 | } |
| 2348 | _ACEOF |
| 2349 | rm -f conftest.$ac_objext |
| 2350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2351 | (eval $ac_compile) 2>conftest.er1 |
| 2352 | ac_status=$? |
| 2353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2354 | rm -f conftest.er1 |
| 2355 | cat conftest.err >&5 |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2357 | (exit $ac_status); } && |
| 2358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; } && |
| 2364 | { ac_try='test -s conftest.$ac_objext' |
| 2365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2366 | (eval $ac_try) 2>&5 |
| 2367 | ac_status=$? |
| 2368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2369 | (exit $ac_status); }; }; then |
| 2370 | break |
| 2371 | else |
| 2372 | echo "$as_me: failed program was:" >&5 |
| 2373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2374 | |
| 2375 | fi |
| 2376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2377 | done |
| 2378 | rm -f conftest* |
| 2379 | if test -n "$ac_declaration"; then |
| 2380 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2381 | echo $ac_declaration >>confdefs.h |
| 2382 | echo '#endif' >>confdefs.h |
| 2383 | fi |
| 2384 | |
| 2385 | else |
| 2386 | echo "$as_me: failed program was:" >&5 |
| 2387 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2388 | |
| 2389 | fi |
| 2390 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2391 | ac_ext=c |
| 2392 | ac_cpp='$CPP $CPPFLAGS' |
| 2393 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2394 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2395 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2396 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2397 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2398 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2399 | if test "${with_linker+set}" = set; then |
| 2400 | withval="$with_linker" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2401 | echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 2402 | echo "${ECHO_T}LD=$withval" >&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2403 | LD=$withval |
| 2404 | else |
| 2405 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2406 | echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 2407 | echo "${ECHO_T}LD defaults to $LD" >&6 |
| 2408 | fi; export LD |
| 2409 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2410 | |
| 2411 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2412 | if test "${with_ccopts+set}" = set; then |
| 2413 | withval="$with_ccopts" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2414 | echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 2415 | echo "${ECHO_T}CCOPTS is $withval" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 2416 | CFLAGS=$withval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2417 | fi; |
| 2418 | ac_ext=c |
| 2419 | ac_cpp='$CPP $CPPFLAGS' |
| 2420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2423 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2424 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2425 | # On Suns, sometimes $CPP names a directory. |
| 2426 | if test -n "$CPP" && test -d "$CPP"; then |
| 2427 | CPP= |
| 2428 | fi |
| 2429 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2430 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2432 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2433 | # Double quotes because CPP needs to be expanded |
| 2434 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2435 | do |
| 2436 | ac_preproc_ok=false |
| 2437 | for ac_c_preproc_warn_flag in '' yes |
| 2438 | do |
| 2439 | # Use a header file that comes with gcc, so configuring glibc |
| 2440 | # with a fresh cross-compiler works. |
| 2441 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2442 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2443 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2444 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2445 | cat >conftest.$ac_ext <<_ACEOF |
| 2446 | /* confdefs.h. */ |
| 2447 | _ACEOF |
| 2448 | cat confdefs.h >>conftest.$ac_ext |
| 2449 | cat >>conftest.$ac_ext <<_ACEOF |
| 2450 | /* end confdefs.h. */ |
| 2451 | #ifdef __STDC__ |
| 2452 | # include <limits.h> |
| 2453 | #else |
| 2454 | # include <assert.h> |
| 2455 | #endif |
| 2456 | Syntax error |
| 2457 | _ACEOF |
| 2458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2460 | ac_status=$? |
| 2461 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2462 | rm -f conftest.er1 |
| 2463 | cat conftest.err >&5 |
| 2464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2465 | (exit $ac_status); } >/dev/null; then |
| 2466 | if test -s conftest.err; then |
| 2467 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2468 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2469 | else |
| 2470 | ac_cpp_err= |
| 2471 | fi |
| 2472 | else |
| 2473 | ac_cpp_err=yes |
| 2474 | fi |
| 2475 | if test -z "$ac_cpp_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2476 | : |
| 2477 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2478 | echo "$as_me: failed program was:" >&5 |
| 2479 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2480 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2481 | # Broken: fails on valid input. |
| 2482 | continue |
| 2483 | fi |
| 2484 | rm -f conftest.err conftest.$ac_ext |
| 2485 | |
| 2486 | # OK, works on sane cases. Now check whether non-existent headers |
| 2487 | # can be detected and how. |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | /* confdefs.h. */ |
| 2490 | _ACEOF |
| 2491 | cat confdefs.h >>conftest.$ac_ext |
| 2492 | cat >>conftest.$ac_ext <<_ACEOF |
| 2493 | /* end confdefs.h. */ |
| 2494 | #include <ac_nonexistent.h> |
| 2495 | _ACEOF |
| 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2498 | ac_status=$? |
| 2499 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); } >/dev/null; then |
| 2504 | if test -s conftest.err; then |
| 2505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2506 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2507 | else |
| 2508 | ac_cpp_err= |
| 2509 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2510 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2511 | ac_cpp_err=yes |
| 2512 | fi |
| 2513 | if test -z "$ac_cpp_err"; then |
| 2514 | # Broken: success on invalid input. |
| 2515 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2516 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2517 | echo "$as_me: failed program was:" >&5 |
| 2518 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2519 | |
| 2520 | # Passes both tests. |
| 2521 | ac_preproc_ok=: |
| 2522 | break |
| 2523 | fi |
| 2524 | rm -f conftest.err conftest.$ac_ext |
| 2525 | |
| 2526 | done |
| 2527 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2528 | rm -f conftest.err conftest.$ac_ext |
| 2529 | if $ac_preproc_ok; then |
| 2530 | break |
| 2531 | fi |
| 2532 | |
| 2533 | done |
| 2534 | ac_cv_prog_CPP=$CPP |
| 2535 | |
| 2536 | fi |
| 2537 | CPP=$ac_cv_prog_CPP |
| 2538 | else |
| 2539 | ac_cv_prog_CPP=$CPP |
| 2540 | fi |
| 2541 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2542 | echo "${ECHO_T}$CPP" >&6 |
| 2543 | ac_preproc_ok=false |
| 2544 | for ac_c_preproc_warn_flag in '' yes |
| 2545 | do |
| 2546 | # Use a header file that comes with gcc, so configuring glibc |
| 2547 | # with a fresh cross-compiler works. |
| 2548 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2549 | # <limits.h> exists even on freestanding compilers. |
| 2550 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2551 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2552 | cat >conftest.$ac_ext <<_ACEOF |
| 2553 | /* confdefs.h. */ |
| 2554 | _ACEOF |
| 2555 | cat confdefs.h >>conftest.$ac_ext |
| 2556 | cat >>conftest.$ac_ext <<_ACEOF |
| 2557 | /* end confdefs.h. */ |
| 2558 | #ifdef __STDC__ |
| 2559 | # include <limits.h> |
| 2560 | #else |
| 2561 | # include <assert.h> |
| 2562 | #endif |
| 2563 | Syntax error |
| 2564 | _ACEOF |
| 2565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2567 | ac_status=$? |
| 2568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2569 | rm -f conftest.er1 |
| 2570 | cat conftest.err >&5 |
| 2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2572 | (exit $ac_status); } >/dev/null; then |
| 2573 | if test -s conftest.err; then |
| 2574 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2576 | else |
| 2577 | ac_cpp_err= |
| 2578 | fi |
| 2579 | else |
| 2580 | ac_cpp_err=yes |
| 2581 | fi |
| 2582 | if test -z "$ac_cpp_err"; then |
| 2583 | : |
| 2584 | else |
| 2585 | echo "$as_me: failed program was:" >&5 |
| 2586 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2587 | |
| 2588 | # Broken: fails on valid input. |
| 2589 | continue |
| 2590 | fi |
| 2591 | rm -f conftest.err conftest.$ac_ext |
| 2592 | |
| 2593 | # OK, works on sane cases. Now check whether non-existent headers |
| 2594 | # can be detected and how. |
| 2595 | cat >conftest.$ac_ext <<_ACEOF |
| 2596 | /* confdefs.h. */ |
| 2597 | _ACEOF |
| 2598 | cat confdefs.h >>conftest.$ac_ext |
| 2599 | cat >>conftest.$ac_ext <<_ACEOF |
| 2600 | /* end confdefs.h. */ |
| 2601 | #include <ac_nonexistent.h> |
| 2602 | _ACEOF |
| 2603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2605 | ac_status=$? |
| 2606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2607 | rm -f conftest.er1 |
| 2608 | cat conftest.err >&5 |
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2610 | (exit $ac_status); } >/dev/null; then |
| 2611 | if test -s conftest.err; then |
| 2612 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2613 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2614 | else |
| 2615 | ac_cpp_err= |
| 2616 | fi |
| 2617 | else |
| 2618 | ac_cpp_err=yes |
| 2619 | fi |
| 2620 | if test -z "$ac_cpp_err"; then |
| 2621 | # Broken: success on invalid input. |
| 2622 | continue |
| 2623 | else |
| 2624 | echo "$as_me: failed program was:" >&5 |
| 2625 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2626 | |
| 2627 | # Passes both tests. |
| 2628 | ac_preproc_ok=: |
| 2629 | break |
| 2630 | fi |
| 2631 | rm -f conftest.err conftest.$ac_ext |
| 2632 | |
| 2633 | done |
| 2634 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2635 | rm -f conftest.err conftest.$ac_ext |
| 2636 | if $ac_preproc_ok; then |
| 2637 | : |
| 2638 | else |
| 2639 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 2640 | See \`config.log' for more details." >&5 |
| 2641 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 2642 | See \`config.log' for more details." >&2;} |
| 2643 | { (exit 1); exit 1; }; } |
| 2644 | fi |
| 2645 | |
| 2646 | ac_ext=c |
| 2647 | ac_cpp='$CPP $CPPFLAGS' |
| 2648 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2649 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2650 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2651 | |
| 2652 | |
| 2653 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 2654 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 2655 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 2656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2657 | else |
| 2658 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 2659 | then ac_cv_prog_egrep='grep -E' |
| 2660 | else ac_cv_prog_egrep='egrep' |
| 2661 | fi |
| 2662 | fi |
| 2663 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 2664 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 2665 | EGREP=$ac_cv_prog_egrep |
| 2666 | |
| 2667 | |
| 2668 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2669 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2670 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2672 | else |
| 2673 | cat >conftest.$ac_ext <<_ACEOF |
| 2674 | /* confdefs.h. */ |
| 2675 | _ACEOF |
| 2676 | cat confdefs.h >>conftest.$ac_ext |
| 2677 | cat >>conftest.$ac_ext <<_ACEOF |
| 2678 | /* end confdefs.h. */ |
| 2679 | #include <stdlib.h> |
| 2680 | #include <stdarg.h> |
| 2681 | #include <string.h> |
| 2682 | #include <float.h> |
| 2683 | |
| 2684 | int |
| 2685 | main () |
| 2686 | { |
| 2687 | |
| 2688 | ; |
| 2689 | return 0; |
| 2690 | } |
| 2691 | _ACEOF |
| 2692 | rm -f conftest.$ac_objext |
| 2693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2694 | (eval $ac_compile) 2>conftest.er1 |
| 2695 | ac_status=$? |
| 2696 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2697 | rm -f conftest.er1 |
| 2698 | cat conftest.err >&5 |
| 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2700 | (exit $ac_status); } && |
| 2701 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2703 | (eval $ac_try) 2>&5 |
| 2704 | ac_status=$? |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2706 | (exit $ac_status); }; } && |
| 2707 | { ac_try='test -s conftest.$ac_objext' |
| 2708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2709 | (eval $ac_try) 2>&5 |
| 2710 | ac_status=$? |
| 2711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2712 | (exit $ac_status); }; }; then |
| 2713 | ac_cv_header_stdc=yes |
| 2714 | else |
| 2715 | echo "$as_me: failed program was:" >&5 |
| 2716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2717 | |
| 2718 | ac_cv_header_stdc=no |
| 2719 | fi |
| 2720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2721 | |
| 2722 | if test $ac_cv_header_stdc = yes; then |
| 2723 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2724 | cat >conftest.$ac_ext <<_ACEOF |
| 2725 | /* confdefs.h. */ |
| 2726 | _ACEOF |
| 2727 | cat confdefs.h >>conftest.$ac_ext |
| 2728 | cat >>conftest.$ac_ext <<_ACEOF |
| 2729 | /* end confdefs.h. */ |
| 2730 | #include <string.h> |
| 2731 | |
| 2732 | _ACEOF |
| 2733 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2734 | $EGREP "memchr" >/dev/null 2>&1; then |
| 2735 | : |
| 2736 | else |
| 2737 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2738 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2739 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2740 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2741 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2742 | |
| 2743 | if test $ac_cv_header_stdc = yes; then |
| 2744 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2745 | cat >conftest.$ac_ext <<_ACEOF |
| 2746 | /* confdefs.h. */ |
| 2747 | _ACEOF |
| 2748 | cat confdefs.h >>conftest.$ac_ext |
| 2749 | cat >>conftest.$ac_ext <<_ACEOF |
| 2750 | /* end confdefs.h. */ |
| 2751 | #include <stdlib.h> |
| 2752 | |
| 2753 | _ACEOF |
| 2754 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2755 | $EGREP "free" >/dev/null 2>&1; then |
| 2756 | : |
| 2757 | else |
| 2758 | ac_cv_header_stdc=no |
| 2759 | fi |
| 2760 | rm -f conftest* |
| 2761 | |
| 2762 | fi |
| 2763 | |
| 2764 | if test $ac_cv_header_stdc = yes; then |
| 2765 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2766 | if test "$cross_compiling" = yes; then |
| 2767 | : |
| 2768 | else |
| 2769 | cat >conftest.$ac_ext <<_ACEOF |
| 2770 | /* confdefs.h. */ |
| 2771 | _ACEOF |
| 2772 | cat confdefs.h >>conftest.$ac_ext |
| 2773 | cat >>conftest.$ac_ext <<_ACEOF |
| 2774 | /* end confdefs.h. */ |
| 2775 | #include <ctype.h> |
| 2776 | #if ((' ' & 0x0FF) == 0x020) |
| 2777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2779 | #else |
| 2780 | # define ISLOWER(c) \ |
| 2781 | (('a' <= (c) && (c) <= 'i') \ |
| 2782 | || ('j' <= (c) && (c) <= 'r') \ |
| 2783 | || ('s' <= (c) && (c) <= 'z')) |
| 2784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2785 | #endif |
| 2786 | |
| 2787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2788 | int |
| 2789 | main () |
| 2790 | { |
| 2791 | int i; |
| 2792 | for (i = 0; i < 256; i++) |
| 2793 | if (XOR (islower (i), ISLOWER (i)) |
| 2794 | || toupper (i) != TOUPPER (i)) |
| 2795 | exit(2); |
| 2796 | exit (0); |
| 2797 | } |
| 2798 | _ACEOF |
| 2799 | rm -f conftest$ac_exeext |
| 2800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2801 | (eval $ac_link) 2>&5 |
| 2802 | ac_status=$? |
| 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2806 | (eval $ac_try) 2>&5 |
| 2807 | ac_status=$? |
| 2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2809 | (exit $ac_status); }; }; then |
| 2810 | : |
| 2811 | else |
| 2812 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2813 | echo "$as_me: failed program was:" >&5 |
| 2814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2815 | |
| 2816 | ( exit $ac_status ) |
| 2817 | ac_cv_header_stdc=no |
| 2818 | fi |
| 2819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2820 | fi |
| 2821 | fi |
| 2822 | fi |
| 2823 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2824 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2825 | if test $ac_cv_header_stdc = yes; then |
| 2826 | |
| 2827 | cat >>confdefs.h <<\_ACEOF |
| 2828 | #define STDC_HEADERS 1 |
| 2829 | _ACEOF |
| 2830 | |
| 2831 | fi |
| 2832 | |
| 2833 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2834 | |
| 2835 | |
| 2836 | |
| 2837 | |
| 2838 | |
| 2839 | |
| 2840 | |
| 2841 | |
| 2842 | |
| 2843 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2844 | inttypes.h stdint.h unistd.h |
| 2845 | do |
| 2846 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2851 | else |
| 2852 | cat >conftest.$ac_ext <<_ACEOF |
| 2853 | /* confdefs.h. */ |
| 2854 | _ACEOF |
| 2855 | cat confdefs.h >>conftest.$ac_ext |
| 2856 | cat >>conftest.$ac_ext <<_ACEOF |
| 2857 | /* end confdefs.h. */ |
| 2858 | $ac_includes_default |
| 2859 | |
| 2860 | #include <$ac_header> |
| 2861 | _ACEOF |
| 2862 | rm -f conftest.$ac_objext |
| 2863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2864 | (eval $ac_compile) 2>conftest.er1 |
| 2865 | ac_status=$? |
| 2866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2867 | rm -f conftest.er1 |
| 2868 | cat conftest.err >&5 |
| 2869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2870 | (exit $ac_status); } && |
| 2871 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2873 | (eval $ac_try) 2>&5 |
| 2874 | ac_status=$? |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2876 | (exit $ac_status); }; } && |
| 2877 | { ac_try='test -s conftest.$ac_objext' |
| 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2879 | (eval $ac_try) 2>&5 |
| 2880 | ac_status=$? |
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2882 | (exit $ac_status); }; }; then |
| 2883 | eval "$as_ac_Header=yes" |
| 2884 | else |
| 2885 | echo "$as_me: failed program was:" >&5 |
| 2886 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2887 | |
| 2888 | eval "$as_ac_Header=no" |
| 2889 | fi |
| 2890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2891 | fi |
| 2892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2894 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2895 | cat >>confdefs.h <<_ACEOF |
| 2896 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2897 | _ACEOF |
| 2898 | |
| 2899 | fi |
| 2900 | |
| 2901 | done |
| 2902 | |
| 2903 | |
| 2904 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 2905 | echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 2906 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 |
| 2907 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2909 | fi |
| 2910 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 2911 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 |
| 2912 | else |
| 2913 | # Is the header compilable? |
| 2914 | echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 2915 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6 |
| 2916 | cat >conftest.$ac_ext <<_ACEOF |
| 2917 | /* confdefs.h. */ |
| 2918 | _ACEOF |
| 2919 | cat confdefs.h >>conftest.$ac_ext |
| 2920 | cat >>conftest.$ac_ext <<_ACEOF |
| 2921 | /* end confdefs.h. */ |
| 2922 | $ac_includes_default |
| 2923 | #include <linux/fs.h> |
| 2924 | _ACEOF |
| 2925 | rm -f conftest.$ac_objext |
| 2926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2927 | (eval $ac_compile) 2>conftest.er1 |
| 2928 | ac_status=$? |
| 2929 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2930 | rm -f conftest.er1 |
| 2931 | cat conftest.err >&5 |
| 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2933 | (exit $ac_status); } && |
| 2934 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2936 | (eval $ac_try) 2>&5 |
| 2937 | ac_status=$? |
| 2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2939 | (exit $ac_status); }; } && |
| 2940 | { ac_try='test -s conftest.$ac_objext' |
| 2941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2942 | (eval $ac_try) 2>&5 |
| 2943 | ac_status=$? |
| 2944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2945 | (exit $ac_status); }; }; then |
| 2946 | ac_header_compiler=yes |
| 2947 | else |
| 2948 | echo "$as_me: failed program was:" >&5 |
| 2949 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2950 | |
| 2951 | ac_header_compiler=no |
| 2952 | fi |
| 2953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2955 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2956 | |
| 2957 | # Is the header present? |
| 2958 | echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 2959 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6 |
| 2960 | cat >conftest.$ac_ext <<_ACEOF |
| 2961 | /* confdefs.h. */ |
| 2962 | _ACEOF |
| 2963 | cat confdefs.h >>conftest.$ac_ext |
| 2964 | cat >>conftest.$ac_ext <<_ACEOF |
| 2965 | /* end confdefs.h. */ |
| 2966 | #include <linux/fs.h> |
| 2967 | _ACEOF |
| 2968 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2969 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2970 | ac_status=$? |
| 2971 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2972 | rm -f conftest.er1 |
| 2973 | cat conftest.err >&5 |
| 2974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2975 | (exit $ac_status); } >/dev/null; then |
| 2976 | if test -s conftest.err; then |
| 2977 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2978 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 2979 | else |
| 2980 | ac_cpp_err= |
| 2981 | fi |
| 2982 | else |
| 2983 | ac_cpp_err=yes |
| 2984 | fi |
| 2985 | if test -z "$ac_cpp_err"; then |
| 2986 | ac_header_preproc=yes |
| 2987 | else |
| 2988 | echo "$as_me: failed program was:" >&5 |
| 2989 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2990 | |
| 2991 | ac_header_preproc=no |
| 2992 | fi |
| 2993 | rm -f conftest.err conftest.$ac_ext |
| 2994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2995 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2996 | |
| 2997 | # So? What about this header? |
| 2998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 2999 | yes:no: ) |
| 3000 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3001 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3002 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3003 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3004 | ac_header_preproc=yes |
| 3005 | ;; |
| 3006 | no:yes:* ) |
| 3007 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3008 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3009 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3010 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3011 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3012 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3013 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3014 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3015 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3016 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3017 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3018 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} |
| 3019 | ( |
| 3020 | cat <<\_ASBOX |
| 3021 | ## ------------------------------------------ ## |
| 3022 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 3023 | ## ------------------------------------------ ## |
| 3024 | _ASBOX |
| 3025 | ) | |
| 3026 | sed "s/^/$as_me: WARNING: /" >&2 |
| 3027 | ;; |
| 3028 | esac |
| 3029 | echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3030 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6 |
| 3031 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3033 | else |
| 3034 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3035 | fi |
| 3036 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3037 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6 |
| 3038 | |
| 3039 | fi |
| 3040 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3041 | linux_headers=yes |
| 3042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3043 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3044 | fi |
| 3045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3046 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3047 | if test "$linux_headers" != yes; then |
| 3048 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3049 | fi |
| 3050 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3051 | echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3052 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3053 | if test "$GCC" = yes |
| 3054 | then |
| 3055 | case "$host_cpu" in |
| 3056 | alpha) addcflags="-mieee" ;; |
| 3057 | esac |
| 3058 | fi |
| 3059 | if test "x$addcflags" != x |
| 3060 | then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3061 | echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3062 | echo "${ECHO_T}$addcflags" >&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3063 | CFLAGS="$addcflags $CFLAGS" |
| 3064 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | echo "$as_me:$LINENO: result: (none)" >&5 |
| 3066 | echo "${ECHO_T}(none)" >&6 |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3067 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3068 | LIB_EXT=.a |
| 3069 | STATIC_LIB_EXT=.a |
| 3070 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3071 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3072 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3073 | if test "${with_ldopts+set}" = set; then |
| 3074 | withval="$with_ldopts" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3075 | echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3076 | echo "${ECHO_T}LDFLAGS is $withval" >&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3077 | LDFLAGS=$withval |
| 3078 | else |
| 3079 | LDFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3080 | fi; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3081 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3082 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 3083 | if test "${with_root_prefix+set}" = set; then |
| 3084 | withval="$with_root_prefix" |
| 3085 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3086 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3087 | root_prefix=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3088 | fi; # Check whether --enable-compression or --disable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3089 | if test "${enable_compression+set}" = set; then |
| 3090 | enableval="$enable_compression" |
| 3091 | if test "$enableval" = "no" |
| 3092 | then |
| 3093 | echo "Disabling compression support" |
| 3094 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3095 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3096 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3097 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3098 | |
| 3099 | echo "Enabling compression support" |
| 3100 | echo "WARNING: Compression support is experimental" |
| 3101 | fi |
| 3102 | |
| 3103 | else |
| 3104 | echo "Disabling compression support by default" |
| 3105 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3106 | fi; |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3107 | # Check whether --enable-htree or --disable-htree was given. |
| 3108 | if test "${enable_htree+set}" = set; then |
| 3109 | enableval="$enable_htree" |
| 3110 | if test "$enableval" = "no" |
| 3111 | then |
| 3112 | HTREE_CMT=# |
| 3113 | echo "Disabling htree directory support" |
| 3114 | else |
| 3115 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3116 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3117 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3119 | |
| 3120 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3121 | fi |
| 3122 | |
| 3123 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3124 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3125 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3126 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3127 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3128 | |
| 3129 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3130 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3131 | fi; |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3132 | |
| 3133 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 3134 | if test "${enable_htree_clear+set}" = set; then |
| 3135 | enableval="$enable_htree_clear" |
| 3136 | if test "$enableval" = "no" |
| 3137 | then |
| 3138 | HTREE_CLR_CMT=# |
| 3139 | echo "Disabling htree clearing" |
| 3140 | else |
| 3141 | HTREE_CLR_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3142 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3143 | #define ENABLE_HTREE_CLEAR 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3144 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3145 | |
| 3146 | echo "Enabling htree clearing" |
| 3147 | fi |
| 3148 | |
| 3149 | else |
| 3150 | HTREE_CLR_CMT=# |
| 3151 | echo "Disabling htree clearing by default" |
| 3152 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3153 | fi; |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3154 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3155 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3156 | if test "${enable_elf_shlibs+set}" = set; then |
| 3157 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3158 | if test "$enableval" = "no" |
| 3159 | then |
| 3160 | ELF_CMT=# |
| 3161 | MAKEFILE_ELF=/dev/null |
| 3162 | echo "Disabling ELF shared libraries" |
| 3163 | else |
| 3164 | ELF_CMT= |
| 3165 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3166 | case "$host_os" in |
| 3167 | solaris2.*) |
| 3168 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3169 | ;; |
| 3170 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3171 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3172 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3173 | echo "Enabling ELF shared libraries" |
| 3174 | fi |
| 3175 | |
| 3176 | else |
| 3177 | MAKEFILE_ELF=/dev/null |
| 3178 | ELF_CMT=# |
| 3179 | echo "Disabling ELF shared libraries by default" |
| 3180 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3181 | fi; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3182 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3183 | |
| 3184 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3185 | if test "${enable_bsd_shlibs+set}" = set; then |
| 3186 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3187 | if test "$enableval" = "no" |
| 3188 | then |
| 3189 | BSDLIB_CMT=# |
| 3190 | MAKEFILE_BSDLIB=/dev/null |
| 3191 | echo "Disabling BSD shared libraries" |
| 3192 | else |
| 3193 | BSDLIB_CMT= |
| 3194 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3195 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3196 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3197 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3198 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3199 | LIB_EXT=.dylib |
| 3200 | ;; |
| 3201 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3202 | echo "Enabling BSD shared libraries" |
| 3203 | fi |
| 3204 | |
| 3205 | else |
| 3206 | MAKEFILE_BSDLIB=/dev/null |
| 3207 | BSDLIB_CMT=# |
| 3208 | echo "Disabling BSD shared libraries by default" |
| 3209 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3210 | fi; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3211 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3212 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3213 | # Check whether --enable-profile or --disable-profile was given. |
| 3214 | if test "${enable_profile+set}" = set; then |
| 3215 | enableval="$enable_profile" |
| 3216 | if test "$enableval" = "no" |
| 3217 | then |
| 3218 | PROFILE_CMT=# |
| 3219 | MAKEFILE_PROFILE=/dev/null |
| 3220 | echo "Disabling profiling libraries" |
| 3221 | else |
| 3222 | PROFILE_CMT= |
| 3223 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3224 | PROFILED_LIB_EXT=_p.a |
| 3225 | echo "Building profiling libraries" |
| 3226 | fi |
| 3227 | |
| 3228 | else |
| 3229 | PROFILE_CMT=# |
| 3230 | MAKEFILE_PROFILE=/dev/null |
| 3231 | echo "Disabling profiling libraries by default" |
| 3232 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3233 | fi; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3234 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3235 | |
| 3236 | # Check whether --enable-checker or --disable-checker was given. |
| 3237 | if test "${enable_checker+set}" = set; then |
| 3238 | enableval="$enable_checker" |
| 3239 | if test "$enableval" = "no" |
| 3240 | then |
| 3241 | CHECKER_CMT=# |
| 3242 | MAKEFILE_CHECKER=/dev/null |
| 3243 | echo "Disabling checker libraries" |
| 3244 | else |
| 3245 | CHECKER_CMT= |
| 3246 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 3247 | echo "Building checker libraries" |
| 3248 | fi |
| 3249 | |
| 3250 | else |
| 3251 | CHECKER_CMT=# |
| 3252 | MAKEFILE_CHECKER=/dev/null |
| 3253 | echo "Disabling checker libraries by default" |
| 3254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3255 | fi; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3256 | |
| 3257 | |
| 3258 | |
| 3259 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3260 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3261 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 3262 | if test "${enable_jbd_debug+set}" = set; then |
| 3263 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3264 | if test "$enableval" = "no" |
| 3265 | then |
| 3266 | echo "Disabling journal debugging" |
| 3267 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3269 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3270 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3271 | |
| 3272 | echo "Enabling journal debugging" |
| 3273 | fi |
| 3274 | |
| 3275 | else |
| 3276 | echo "Disabling journal debugging by default" |
| 3277 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3278 | fi; |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3279 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 3280 | if test "${enable_blkid_debug+set}" = set; then |
| 3281 | enableval="$enable_blkid_debug" |
| 3282 | if test "$enableval" = "no" |
| 3283 | then |
| 3284 | echo "Disabling blkid debugging" |
| 3285 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3286 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3287 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3288 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3289 | |
| 3290 | echo "Enabling blkid debugging" |
| 3291 | fi |
| 3292 | |
| 3293 | else |
| 3294 | echo "Disabling blkid debugging by default" |
| 3295 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3296 | fi; |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3297 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 3298 | if test "${enable_testio_debug+set}" = set; then |
| 3299 | enableval="$enable_testio_debug" |
| 3300 | if test "$enableval" = "no" |
| 3301 | then |
| 3302 | echo "Disabling testio debugging" |
| 3303 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3304 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3305 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3306 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 3307 | |
| 3308 | echo "Enabling testio debugging" |
| 3309 | fi |
| 3310 | |
| 3311 | else |
| 3312 | echo "Disabling testio debugging by default" |
| 3313 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3314 | fi; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3315 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 3316 | if test "${enable_swapfs+set}" = set; then |
| 3317 | enableval="$enable_swapfs" |
| 3318 | if test "$enableval" = "no" |
| 3319 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 3320 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3321 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3322 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 3323 | SWAPFS_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3324 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3325 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3326 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3327 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3328 | echo "Enabling swapfs support" |
| 3329 | fi |
| 3330 | |
| 3331 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 3332 | SWAPFS_CMT= |
| 3333 | echo "Enabling swapfs support by default" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3334 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3335 | #define ENABLE_SWAPFS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3336 | _ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 3337 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3338 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3339 | fi; |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 3340 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3341 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 3342 | if test "${enable_debugfs+set}" = set; then |
| 3343 | enableval="$enable_debugfs" |
| 3344 | if test "$enableval" = "no" |
| 3345 | then |
| 3346 | echo "Disabling debugfs support" |
| 3347 | DEBUGFS_CMT="#" |
| 3348 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3349 | DEBUGFS_CMT= |
| 3350 | echo "Enabling debugfs support" |
| 3351 | fi |
| 3352 | |
| 3353 | else |
| 3354 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3355 | DEBUGFS_CMT= |
| 3356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3357 | fi; |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3358 | |
| 3359 | # Check whether --enable-imager or --disable-imager was given. |
| 3360 | if test "${enable_imager+set}" = set; then |
| 3361 | enableval="$enable_imager" |
| 3362 | if test "$enableval" = "no" |
| 3363 | then |
| 3364 | echo "Disabling e2image support" |
| 3365 | IMAGER_CMT="#" |
| 3366 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3367 | IMAGER_CMT= |
| 3368 | echo "Enabling e2image support" |
| 3369 | fi |
| 3370 | |
| 3371 | else |
| 3372 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3373 | IMAGER_CMT= |
| 3374 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3375 | fi; |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3376 | |
| 3377 | # Check whether --enable-resizer or --disable-resizer was given. |
| 3378 | if test "${enable_resizer+set}" = set; then |
| 3379 | enableval="$enable_resizer" |
| 3380 | if test "$enableval" = "no" |
| 3381 | then |
| 3382 | echo "Disabling e2resize support" |
| 3383 | RESIZER_CMT="#" |
| 3384 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3385 | RESIZER_CMT= |
| 3386 | echo "Enabling e2resize support" |
| 3387 | fi |
| 3388 | |
| 3389 | else |
| 3390 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3391 | RESIZER_CMT= |
| 3392 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3393 | fi; |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3394 | |
| 3395 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 3396 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 3397 | enableval="$enable_dynamic_e2fsck" |
| 3398 | if test "$enableval" = "no" |
| 3399 | then |
| 3400 | E2FSCK_TYPE=static |
| 3401 | echo "Building e2fsck statically" |
| 3402 | else |
| 3403 | E2FSCK_TYPE=shared |
| 3404 | echo "Building e2fsck dynamically" |
| 3405 | fi |
| 3406 | |
| 3407 | else |
| 3408 | E2FSCK_TYPE=static |
| 3409 | echo "Building e2fsck statically by default" |
| 3410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3411 | fi; |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3412 | |
| 3413 | # Check whether --enable-fsck or --disable-fsck was given. |
| 3414 | if test "${enable_fsck+set}" = set; then |
| 3415 | enableval="$enable_fsck" |
| 3416 | if test "$enableval" = "no" |
| 3417 | then |
| 3418 | FSCK_PROG='' FSCK_MAN='' |
| 3419 | echo "Not building fsck wrapper" |
| 3420 | else |
| 3421 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 3422 | echo "Building fsck wrapper" |
| 3423 | fi |
| 3424 | |
| 3425 | else |
| 3426 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 3427 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3428 | FSCK_PROG='' FSCK_MAN='' |
| 3429 | echo "Not building fsck wrapper by default" |
| 3430 | ;; |
| 3431 | *) |
| 3432 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 3433 | echo "Building fsck wrapper by default" |
| 3434 | esac |
| 3435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3436 | fi; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3437 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3438 | |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3439 | # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given. |
| 3440 | if test "${enable_e2initrd_helper+set}" = set; then |
| 3441 | enableval="$enable_e2initrd_helper" |
| 3442 | if test "$enableval" = "no" |
| 3443 | then |
| 3444 | E2INITRD_PROG='' E2INITRD_MAN='' |
| 3445 | echo "Not building e2initrd helper" |
| 3446 | else |
| 3447 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 3448 | echo "Building e2initrd helper" |
| 3449 | fi |
| 3450 | |
| 3451 | else |
| 3452 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
| 3453 | echo "Building e2initrd helper by default" |
| 3454 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3455 | fi; |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 3456 | |
| 3457 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3458 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 3459 | |
| 3460 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 3461 | if test "${enable_old_bitops+set}" = set; then |
| 3462 | enableval="$enable_old_bitops" |
| 3463 | if test "$enableval" = "no" |
| 3464 | then |
| 3465 | echo "Using new (standard) bitmask operations" |
| 3466 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3467 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3468 | #define EXT2_OLD_BITOPS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3469 | _ACEOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3470 | |
| 3471 | echo "Using old (native) bitmask operations" |
| 3472 | |
| 3473 | fi |
| 3474 | |
| 3475 | else |
| 3476 | echo "Using standard bitmask operations by default" |
| 3477 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3478 | fi; |
| 3479 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3480 | PACKAGE=e2fsprogs |
| 3481 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3482 | VERSION=0.14.1 |
| 3483 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3484 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3485 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3486 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3487 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3488 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3489 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3490 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3491 | |
| 3492 | |
| 3493 | |
| 3494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3495 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3496 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 3497 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 3498 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3500 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3501 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3502 | all: |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3503 | @echo 'ac_maketemp="$(MAKE)"' |
| 3504 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3505 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3506 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3507 | if test -n "$ac_maketemp"; then |
| 3508 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 3509 | else |
| 3510 | eval ac_cv_prog_make_${ac_make}_set=no |
| 3511 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3512 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3513 | fi |
| 3514 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3515 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3516 | echo "${ECHO_T}yes" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3517 | SET_MAKE= |
| 3518 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3519 | echo "$as_me:$LINENO: result: no" >&5 |
| 3520 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3521 | SET_MAKE="MAKE=${MAKE-make}" |
| 3522 | fi |
| 3523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3524 | # Find a good install program. We prefer a C program (faster), |
| 3525 | # so one script is as good as another. But avoid the broken or |
| 3526 | # incompatible versions: |
| 3527 | # SysV /etc/install, /usr/sbin/install |
| 3528 | # SunOS /usr/etc/install |
| 3529 | # IRIX /sbin/install |
| 3530 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3531 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3532 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3533 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3534 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3535 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3536 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3538 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3539 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3540 | if test "${ac_cv_path_install+set}" = set; then |
| 3541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3542 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3544 | for as_dir in $PATH |
| 3545 | do |
| 3546 | IFS=$as_save_IFS |
| 3547 | test -z "$as_dir" && as_dir=. |
| 3548 | # Account for people who put trailing slashes in PATH elements. |
| 3549 | case $as_dir/ in |
| 3550 | ./ | .// | /cC/* | \ |
| 3551 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3552 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 3553 | /usr/ucb/* ) ;; |
| 3554 | *) |
| 3555 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3556 | # Don't use installbsd from OSF since it installs stuff as root |
| 3557 | # by default. |
| 3558 | for ac_prog in ginstall scoinst install; do |
| 3559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3560 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3561 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3562 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3563 | # AIX install. It has an incompatible calling convention. |
| 3564 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3565 | elif test $ac_prog = install && |
| 3566 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3567 | # program-specific install script used by HP pwplus--don't use. |
| 3568 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3569 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3570 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3571 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3572 | fi |
| 3573 | fi |
| 3574 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3575 | done |
| 3576 | ;; |
| 3577 | esac |
| 3578 | done |
| 3579 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3580 | |
| 3581 | fi |
| 3582 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3583 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3584 | else |
| 3585 | # As a last resort, use the slow shell script. We don't cache a |
| 3586 | # path for INSTALL within a source directory, because that will |
| 3587 | # break other packages using the cache if that directory is |
| 3588 | # removed, or if the path is relative. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3590 | fi |
| 3591 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3592 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3593 | echo "${ECHO_T}$INSTALL" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3594 | |
| 3595 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3596 | # It thinks the first close brace ends the variable substitution. |
| 3597 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3598 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3599 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3600 | |
| 3601 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3602 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3603 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3604 | MKINSTALLDIRS= |
| 3605 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3606 | case "$ac_aux_dir" in |
| 3607 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 3608 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 3609 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3610 | fi |
| 3611 | if test -z "$MKINSTALLDIRS"; then |
| 3612 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 3613 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3614 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3615 | |
| 3616 | |
| 3617 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 3618 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
| 3619 | # Check whether --enable-nls or --disable-nls was given. |
| 3620 | if test "${enable_nls+set}" = set; then |
| 3621 | enableval="$enable_nls" |
| 3622 | USE_NLS=$enableval |
| 3623 | else |
| 3624 | USE_NLS=yes |
| 3625 | fi; |
| 3626 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 3627 | echo "${ECHO_T}$USE_NLS" >&6 |
| 3628 | |
| 3629 | |
| 3630 | |
| 3631 | |
| 3632 | |
| 3633 | |
| 3634 | # Prepare PATH_SEPARATOR. |
| 3635 | # The user is always right. |
| 3636 | if test "${PATH_SEPARATOR+set}" != set; then |
| 3637 | echo "#! /bin/sh" >conf$$.sh |
| 3638 | echo "exit 0" >>conf$$.sh |
| 3639 | chmod +x conf$$.sh |
| 3640 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 3641 | PATH_SEPARATOR=';' |
| 3642 | else |
| 3643 | PATH_SEPARATOR=: |
| 3644 | fi |
| 3645 | rm -f conf$$.sh |
| 3646 | fi |
| 3647 | |
| 3648 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 3649 | # as systems may use methods other than mode bits to determine executability. |
| 3650 | cat >conf$$.file <<_ASEOF |
| 3651 | #! /bin/sh |
| 3652 | exit 0 |
| 3653 | _ASEOF |
| 3654 | chmod +x conf$$.file |
| 3655 | if test -x conf$$.file >/dev/null 2>&1; then |
| 3656 | ac_executable_p="test -x" |
| 3657 | else |
| 3658 | ac_executable_p="test -f" |
| 3659 | fi |
| 3660 | rm -f conf$$.file |
| 3661 | |
| 3662 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3663 | set dummy msgfmt; ac_word=$2 |
| 3664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3666 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 3667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3668 | else |
| 3669 | case "$MSGFMT" in |
| 3670 | [\\/]* | ?:[\\/]*) |
| 3671 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3672 | ;; |
| 3673 | *) |
| 3674 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3675 | for ac_dir in $PATH; do |
| 3676 | IFS="$ac_save_IFS" |
| 3677 | test -z "$ac_dir" && ac_dir=. |
| 3678 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3679 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3680 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3681 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3682 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 3683 | break 2 |
| 3684 | fi |
| 3685 | fi |
| 3686 | done |
| 3687 | done |
| 3688 | IFS="$ac_save_IFS" |
| 3689 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3690 | ;; |
| 3691 | esac |
| 3692 | fi |
| 3693 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3694 | if test "$MSGFMT" != ":"; then |
| 3695 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 3696 | echo "${ECHO_T}$MSGFMT" >&6 |
| 3697 | else |
| 3698 | echo "$as_me:$LINENO: result: no" >&5 |
| 3699 | echo "${ECHO_T}no" >&6 |
| 3700 | fi |
| 3701 | |
| 3702 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3703 | set dummy gmsgfmt; ac_word=$2 |
| 3704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3706 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3708 | else |
| 3709 | case $GMSGFMT in |
| 3710 | [\\/]* | ?:[\\/]*) |
| 3711 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3712 | ;; |
| 3713 | *) |
| 3714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3715 | for as_dir in $PATH |
| 3716 | do |
| 3717 | IFS=$as_save_IFS |
| 3718 | test -z "$as_dir" && as_dir=. |
| 3719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3721 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 3722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3723 | break 2 |
| 3724 | fi |
| 3725 | done |
| 3726 | done |
| 3727 | |
| 3728 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3729 | ;; |
| 3730 | esac |
| 3731 | fi |
| 3732 | GMSGFMT=$ac_cv_path_GMSGFMT |
| 3733 | |
| 3734 | if test -n "$GMSGFMT"; then |
| 3735 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 3736 | echo "${ECHO_T}$GMSGFMT" >&6 |
| 3737 | else |
| 3738 | echo "$as_me:$LINENO: result: no" >&5 |
| 3739 | echo "${ECHO_T}no" >&6 |
| 3740 | fi |
| 3741 | |
| 3742 | |
| 3743 | |
| 3744 | # Prepare PATH_SEPARATOR. |
| 3745 | # The user is always right. |
| 3746 | if test "${PATH_SEPARATOR+set}" != set; then |
| 3747 | echo "#! /bin/sh" >conf$$.sh |
| 3748 | echo "exit 0" >>conf$$.sh |
| 3749 | chmod +x conf$$.sh |
| 3750 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 3751 | PATH_SEPARATOR=';' |
| 3752 | else |
| 3753 | PATH_SEPARATOR=: |
| 3754 | fi |
| 3755 | rm -f conf$$.sh |
| 3756 | fi |
| 3757 | |
| 3758 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 3759 | # as systems may use methods other than mode bits to determine executability. |
| 3760 | cat >conf$$.file <<_ASEOF |
| 3761 | #! /bin/sh |
| 3762 | exit 0 |
| 3763 | _ASEOF |
| 3764 | chmod +x conf$$.file |
| 3765 | if test -x conf$$.file >/dev/null 2>&1; then |
| 3766 | ac_executable_p="test -x" |
| 3767 | else |
| 3768 | ac_executable_p="test -f" |
| 3769 | fi |
| 3770 | rm -f conf$$.file |
| 3771 | |
| 3772 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3773 | set dummy xgettext; ac_word=$2 |
| 3774 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3775 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3776 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3778 | else |
| 3779 | case "$XGETTEXT" in |
| 3780 | [\\/]* | ?:[\\/]*) |
| 3781 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3782 | ;; |
| 3783 | *) |
| 3784 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3785 | for ac_dir in $PATH; do |
| 3786 | IFS="$ac_save_IFS" |
| 3787 | test -z "$ac_dir" && ac_dir=. |
| 3788 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3789 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3790 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 3791 | (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 |
| 3792 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 3793 | break 2 |
| 3794 | fi |
| 3795 | fi |
| 3796 | done |
| 3797 | done |
| 3798 | IFS="$ac_save_IFS" |
| 3799 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3800 | ;; |
| 3801 | esac |
| 3802 | fi |
| 3803 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3804 | if test "$XGETTEXT" != ":"; then |
| 3805 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 3806 | echo "${ECHO_T}$XGETTEXT" >&6 |
| 3807 | else |
| 3808 | echo "$as_me:$LINENO: result: no" >&5 |
| 3809 | echo "${ECHO_T}no" >&6 |
| 3810 | fi |
| 3811 | |
| 3812 | rm -f messages.po |
| 3813 | |
| 3814 | |
| 3815 | # Prepare PATH_SEPARATOR. |
| 3816 | # The user is always right. |
| 3817 | if test "${PATH_SEPARATOR+set}" != set; then |
| 3818 | echo "#! /bin/sh" >conf$$.sh |
| 3819 | echo "exit 0" >>conf$$.sh |
| 3820 | chmod +x conf$$.sh |
| 3821 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 3822 | PATH_SEPARATOR=';' |
| 3823 | else |
| 3824 | PATH_SEPARATOR=: |
| 3825 | fi |
| 3826 | rm -f conf$$.sh |
| 3827 | fi |
| 3828 | |
| 3829 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 3830 | # as systems may use methods other than mode bits to determine executability. |
| 3831 | cat >conf$$.file <<_ASEOF |
| 3832 | #! /bin/sh |
| 3833 | exit 0 |
| 3834 | _ASEOF |
| 3835 | chmod +x conf$$.file |
| 3836 | if test -x conf$$.file >/dev/null 2>&1; then |
| 3837 | ac_executable_p="test -x" |
| 3838 | else |
| 3839 | ac_executable_p="test -f" |
| 3840 | fi |
| 3841 | rm -f conf$$.file |
| 3842 | |
| 3843 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3844 | set dummy msgmerge; ac_word=$2 |
| 3845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3847 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 3848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3849 | else |
| 3850 | case "$MSGMERGE" in |
| 3851 | [\\/]* | ?:[\\/]*) |
| 3852 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3853 | ;; |
| 3854 | *) |
| 3855 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 3856 | for ac_dir in $PATH; do |
| 3857 | IFS="$ac_save_IFS" |
| 3858 | test -z "$ac_dir" && ac_dir=. |
| 3859 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3860 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 3861 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3862 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 3863 | break 2 |
| 3864 | fi |
| 3865 | fi |
| 3866 | done |
| 3867 | done |
| 3868 | IFS="$ac_save_IFS" |
| 3869 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3870 | ;; |
| 3871 | esac |
| 3872 | fi |
| 3873 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3874 | if test "$MSGMERGE" != ":"; then |
| 3875 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 3876 | echo "${ECHO_T}$MSGMERGE" >&6 |
| 3877 | else |
| 3878 | echo "$as_me:$LINENO: result: no" >&5 |
| 3879 | echo "${ECHO_T}no" >&6 |
| 3880 | fi |
| 3881 | |
| 3882 | |
| 3883 | if test "$GMSGFMT" != ":"; then |
| 3884 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3885 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3886 | : ; |
| 3887 | else |
| 3888 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3889 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 3890 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 |
| 3891 | GMSGFMT=":" |
| 3892 | fi |
| 3893 | fi |
| 3894 | |
| 3895 | if test "$XGETTEXT" != ":"; then |
| 3896 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 3897 | (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 |
| 3898 | : ; |
| 3899 | else |
| 3900 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 3901 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
| 3902 | XGETTEXT=":" |
| 3903 | fi |
| 3904 | rm -f messages.po |
| 3905 | fi |
| 3906 | |
| 3907 | ac_config_commands="$ac_config_commands default-1" |
| 3908 | |
| 3909 | |
| 3910 | if test -n "$ac_tool_prefix"; then |
| 3911 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3912 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3913 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3914 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3915 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3917 | else |
| 3918 | if test -n "$RANLIB"; then |
| 3919 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3920 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3922 | for as_dir in $PATH |
| 3923 | do |
| 3924 | IFS=$as_save_IFS |
| 3925 | test -z "$as_dir" && as_dir=. |
| 3926 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3927 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3928 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3929 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3930 | break 2 |
| 3931 | fi |
| 3932 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3933 | done |
| 3934 | |
| 3935 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3936 | fi |
| 3937 | RANLIB=$ac_cv_prog_RANLIB |
| 3938 | if test -n "$RANLIB"; then |
| 3939 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3940 | echo "${ECHO_T}$RANLIB" >&6 |
| 3941 | else |
| 3942 | echo "$as_me:$LINENO: result: no" >&5 |
| 3943 | echo "${ECHO_T}no" >&6 |
| 3944 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3945 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3946 | fi |
| 3947 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3948 | ac_ct_RANLIB=$RANLIB |
| 3949 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3950 | set dummy ranlib; ac_word=$2 |
| 3951 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3952 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3953 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3955 | else |
| 3956 | if test -n "$ac_ct_RANLIB"; then |
| 3957 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3958 | else |
| 3959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3960 | for as_dir in $PATH |
| 3961 | do |
| 3962 | IFS=$as_save_IFS |
| 3963 | test -z "$as_dir" && as_dir=. |
| 3964 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3965 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3966 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3967 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3968 | break 2 |
| 3969 | fi |
| 3970 | done |
| 3971 | done |
| 3972 | |
| 3973 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3974 | fi |
| 3975 | fi |
| 3976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3977 | if test -n "$ac_ct_RANLIB"; then |
| 3978 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3979 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3980 | else |
| 3981 | echo "$as_me:$LINENO: result: no" >&5 |
| 3982 | echo "${ECHO_T}no" >&6 |
| 3983 | fi |
| 3984 | |
| 3985 | RANLIB=$ac_ct_RANLIB |
| 3986 | else |
| 3987 | RANLIB="$ac_cv_prog_RANLIB" |
| 3988 | fi |
| 3989 | |
| 3990 | |
| 3991 | echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 3992 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 |
| 3993 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 3994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3995 | else |
| 3996 | ac_check_lib_save_LIBS=$LIBS |
| 3997 | LIBS="-lcposix $LIBS" |
| 3998 | cat >conftest.$ac_ext <<_ACEOF |
| 3999 | /* confdefs.h. */ |
| 4000 | _ACEOF |
| 4001 | cat confdefs.h >>conftest.$ac_ext |
| 4002 | cat >>conftest.$ac_ext <<_ACEOF |
| 4003 | /* end confdefs.h. */ |
| 4004 | |
| 4005 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4006 | #ifdef __cplusplus |
| 4007 | extern "C" |
| 4008 | #endif |
| 4009 | /* We use char because int might match the return type of a gcc2 |
| 4010 | builtin and then its argument prototype would still apply. */ |
| 4011 | char strerror (); |
| 4012 | int |
| 4013 | main () |
| 4014 | { |
| 4015 | strerror (); |
| 4016 | ; |
| 4017 | return 0; |
| 4018 | } |
| 4019 | _ACEOF |
| 4020 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4022 | (eval $ac_link) 2>conftest.er1 |
| 4023 | ac_status=$? |
| 4024 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4025 | rm -f conftest.er1 |
| 4026 | cat conftest.err >&5 |
| 4027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4028 | (exit $ac_status); } && |
| 4029 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4031 | (eval $ac_try) 2>&5 |
| 4032 | ac_status=$? |
| 4033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4034 | (exit $ac_status); }; } && |
| 4035 | { ac_try='test -s conftest$ac_exeext' |
| 4036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4037 | (eval $ac_try) 2>&5 |
| 4038 | ac_status=$? |
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4040 | (exit $ac_status); }; }; then |
| 4041 | ac_cv_lib_cposix_strerror=yes |
| 4042 | else |
| 4043 | echo "$as_me: failed program was:" >&5 |
| 4044 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4045 | |
| 4046 | ac_cv_lib_cposix_strerror=no |
| 4047 | fi |
| 4048 | rm -f conftest.err conftest.$ac_objext \ |
| 4049 | conftest$ac_exeext conftest.$ac_ext |
| 4050 | LIBS=$ac_check_lib_save_LIBS |
| 4051 | fi |
| 4052 | echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4053 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 |
| 4054 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4055 | LIBS="$LIBS -lcposix" |
| 4056 | fi |
| 4057 | |
| 4058 | |
| 4059 | |
| 4060 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4061 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 4062 | if test "${ac_cv_c_const+set}" = set; then |
| 4063 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4064 | else |
| 4065 | cat >conftest.$ac_ext <<_ACEOF |
| 4066 | /* confdefs.h. */ |
| 4067 | _ACEOF |
| 4068 | cat confdefs.h >>conftest.$ac_ext |
| 4069 | cat >>conftest.$ac_ext <<_ACEOF |
| 4070 | /* end confdefs.h. */ |
| 4071 | |
| 4072 | int |
| 4073 | main () |
| 4074 | { |
| 4075 | /* FIXME: Include the comments suggested by Paul. */ |
| 4076 | #ifndef __cplusplus |
| 4077 | /* Ultrix mips cc rejects this. */ |
| 4078 | typedef int charset[2]; |
| 4079 | const charset x; |
| 4080 | /* SunOS 4.1.1 cc rejects this. */ |
| 4081 | char const *const *ccp; |
| 4082 | char **p; |
| 4083 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4084 | struct point {int x, y;}; |
| 4085 | static struct point const zero = {0,0}; |
| 4086 | /* AIX XL C 1.02.0.0 rejects this. |
| 4087 | It does not let you subtract one const X* pointer from another in |
| 4088 | an arm of an if-expression whose if-part is not a constant |
| 4089 | expression */ |
| 4090 | const char *g = "string"; |
| 4091 | ccp = &g + (g ? g-g : 0); |
| 4092 | /* HPUX 7.0 cc rejects these. */ |
| 4093 | ++ccp; |
| 4094 | p = (char**) ccp; |
| 4095 | ccp = (char const *const *) p; |
| 4096 | { /* SCO 3.2v4 cc rejects this. */ |
| 4097 | char *t; |
| 4098 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4099 | |
| 4100 | *t++ = 0; |
| 4101 | } |
| 4102 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4103 | int x[] = {25, 17}; |
| 4104 | const int *foo = &x[0]; |
| 4105 | ++foo; |
| 4106 | } |
| 4107 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4108 | typedef const int *iptr; |
| 4109 | iptr p = 0; |
| 4110 | ++p; |
| 4111 | } |
| 4112 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4113 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4114 | struct s { int j; const int *ap[3]; }; |
| 4115 | struct s *b; b->j = 5; |
| 4116 | } |
| 4117 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4118 | const int foo = 10; |
| 4119 | } |
| 4120 | #endif |
| 4121 | |
| 4122 | ; |
| 4123 | return 0; |
| 4124 | } |
| 4125 | _ACEOF |
| 4126 | rm -f conftest.$ac_objext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4128 | (eval $ac_compile) 2>conftest.er1 |
| 4129 | ac_status=$? |
| 4130 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4131 | rm -f conftest.er1 |
| 4132 | cat conftest.err >&5 |
| 4133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4134 | (exit $ac_status); } && |
| 4135 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4137 | (eval $ac_try) 2>&5 |
| 4138 | ac_status=$? |
| 4139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4140 | (exit $ac_status); }; } && |
| 4141 | { ac_try='test -s conftest.$ac_objext' |
| 4142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4143 | (eval $ac_try) 2>&5 |
| 4144 | ac_status=$? |
| 4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4146 | (exit $ac_status); }; }; then |
| 4147 | ac_cv_c_const=yes |
| 4148 | else |
| 4149 | echo "$as_me: failed program was:" >&5 |
| 4150 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4151 | |
| 4152 | ac_cv_c_const=no |
| 4153 | fi |
| 4154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4155 | fi |
| 4156 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4157 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 4158 | if test $ac_cv_c_const = no; then |
| 4159 | |
| 4160 | cat >>confdefs.h <<\_ACEOF |
| 4161 | #define const |
| 4162 | _ACEOF |
| 4163 | |
| 4164 | fi |
| 4165 | |
| 4166 | |
| 4167 | echo "$as_me:$LINENO: checking for signed" >&5 |
| 4168 | echo $ECHO_N "checking for signed... $ECHO_C" >&6 |
| 4169 | if test "${bh_cv_c_signed+set}" = set; then |
| 4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4171 | else |
| 4172 | cat >conftest.$ac_ext <<_ACEOF |
| 4173 | /* confdefs.h. */ |
| 4174 | _ACEOF |
| 4175 | cat confdefs.h >>conftest.$ac_ext |
| 4176 | cat >>conftest.$ac_ext <<_ACEOF |
| 4177 | /* end confdefs.h. */ |
| 4178 | |
| 4179 | int |
| 4180 | main () |
| 4181 | { |
| 4182 | signed char x; |
| 4183 | ; |
| 4184 | return 0; |
| 4185 | } |
| 4186 | _ACEOF |
| 4187 | rm -f conftest.$ac_objext |
| 4188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4189 | (eval $ac_compile) 2>conftest.er1 |
| 4190 | ac_status=$? |
| 4191 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4192 | rm -f conftest.er1 |
| 4193 | cat conftest.err >&5 |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); } && |
| 4196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4198 | (eval $ac_try) 2>&5 |
| 4199 | ac_status=$? |
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4201 | (exit $ac_status); }; } && |
| 4202 | { ac_try='test -s conftest.$ac_objext' |
| 4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4204 | (eval $ac_try) 2>&5 |
| 4205 | ac_status=$? |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); }; }; then |
| 4208 | bh_cv_c_signed=yes |
| 4209 | else |
| 4210 | echo "$as_me: failed program was:" >&5 |
| 4211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4212 | |
| 4213 | bh_cv_c_signed=no |
| 4214 | fi |
| 4215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4216 | fi |
| 4217 | echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 4218 | echo "${ECHO_T}$bh_cv_c_signed" >&6 |
| 4219 | if test $bh_cv_c_signed = no; then |
| 4220 | |
| 4221 | cat >>confdefs.h <<\_ACEOF |
| 4222 | #define signed |
| 4223 | _ACEOF |
| 4224 | |
| 4225 | fi |
| 4226 | |
| 4227 | echo "$as_me:$LINENO: checking for inline" >&5 |
| 4228 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
| 4229 | if test "${ac_cv_c_inline+set}" = set; then |
| 4230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4231 | else |
| 4232 | ac_cv_c_inline=no |
| 4233 | for ac_kw in inline __inline__ __inline; do |
| 4234 | cat >conftest.$ac_ext <<_ACEOF |
| 4235 | /* confdefs.h. */ |
| 4236 | _ACEOF |
| 4237 | cat confdefs.h >>conftest.$ac_ext |
| 4238 | cat >>conftest.$ac_ext <<_ACEOF |
| 4239 | /* end confdefs.h. */ |
| 4240 | #ifndef __cplusplus |
| 4241 | typedef int foo_t; |
| 4242 | static $ac_kw foo_t static_foo () {return 0; } |
| 4243 | $ac_kw foo_t foo () {return 0; } |
| 4244 | #endif |
| 4245 | |
| 4246 | _ACEOF |
| 4247 | rm -f conftest.$ac_objext |
| 4248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4249 | (eval $ac_compile) 2>conftest.er1 |
| 4250 | ac_status=$? |
| 4251 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4252 | rm -f conftest.er1 |
| 4253 | cat conftest.err >&5 |
| 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4255 | (exit $ac_status); } && |
| 4256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4258 | (eval $ac_try) 2>&5 |
| 4259 | ac_status=$? |
| 4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4261 | (exit $ac_status); }; } && |
| 4262 | { ac_try='test -s conftest.$ac_objext' |
| 4263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4264 | (eval $ac_try) 2>&5 |
| 4265 | ac_status=$? |
| 4266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4267 | (exit $ac_status); }; }; then |
| 4268 | ac_cv_c_inline=$ac_kw; break |
| 4269 | else |
| 4270 | echo "$as_me: failed program was:" >&5 |
| 4271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4272 | |
| 4273 | fi |
| 4274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4275 | done |
| 4276 | |
| 4277 | fi |
| 4278 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 4279 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
| 4280 | |
| 4281 | |
| 4282 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4283 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4284 | *) |
| 4285 | case $ac_cv_c_inline in |
| 4286 | no) ac_val=;; |
| 4287 | *) ac_val=$ac_cv_c_inline;; |
| 4288 | esac |
| 4289 | cat >>confdefs.h <<_ACEOF |
| 4290 | #ifndef __cplusplus |
| 4291 | #define inline $ac_val |
| 4292 | #endif |
| 4293 | _ACEOF |
| 4294 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4295 | esac |
| 4296 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4297 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4298 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4299 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4301 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4302 | cat >conftest.$ac_ext <<_ACEOF |
| 4303 | /* confdefs.h. */ |
| 4304 | _ACEOF |
| 4305 | cat confdefs.h >>conftest.$ac_ext |
| 4306 | cat >>conftest.$ac_ext <<_ACEOF |
| 4307 | /* end confdefs.h. */ |
| 4308 | $ac_includes_default |
| 4309 | int |
| 4310 | main () |
| 4311 | { |
| 4312 | if ((off_t *) 0) |
| 4313 | return 0; |
| 4314 | if (sizeof (off_t)) |
| 4315 | return 0; |
| 4316 | ; |
| 4317 | return 0; |
| 4318 | } |
| 4319 | _ACEOF |
| 4320 | rm -f conftest.$ac_objext |
| 4321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4322 | (eval $ac_compile) 2>conftest.er1 |
| 4323 | ac_status=$? |
| 4324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4325 | rm -f conftest.er1 |
| 4326 | cat conftest.err >&5 |
| 4327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4328 | (exit $ac_status); } && |
| 4329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4331 | (eval $ac_try) 2>&5 |
| 4332 | ac_status=$? |
| 4333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4334 | (exit $ac_status); }; } && |
| 4335 | { ac_try='test -s conftest.$ac_objext' |
| 4336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4337 | (eval $ac_try) 2>&5 |
| 4338 | ac_status=$? |
| 4339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4340 | (exit $ac_status); }; }; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 4341 | ac_cv_type_off_t=yes |
| 4342 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4343 | echo "$as_me: failed program was:" >&5 |
| 4344 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 4345 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4346 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4347 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4349 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4350 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4351 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4352 | if test $ac_cv_type_off_t = yes; then |
| 4353 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4354 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4355 | |
| 4356 | cat >>confdefs.h <<_ACEOF |
| 4357 | #define off_t long |
| 4358 | _ACEOF |
| 4359 | |
| 4360 | fi |
| 4361 | |
| 4362 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4363 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4364 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4366 | else |
| 4367 | cat >conftest.$ac_ext <<_ACEOF |
| 4368 | /* confdefs.h. */ |
| 4369 | _ACEOF |
| 4370 | cat confdefs.h >>conftest.$ac_ext |
| 4371 | cat >>conftest.$ac_ext <<_ACEOF |
| 4372 | /* end confdefs.h. */ |
| 4373 | $ac_includes_default |
| 4374 | int |
| 4375 | main () |
| 4376 | { |
| 4377 | if ((size_t *) 0) |
| 4378 | return 0; |
| 4379 | if (sizeof (size_t)) |
| 4380 | return 0; |
| 4381 | ; |
| 4382 | return 0; |
| 4383 | } |
| 4384 | _ACEOF |
| 4385 | rm -f conftest.$ac_objext |
| 4386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4387 | (eval $ac_compile) 2>conftest.er1 |
| 4388 | ac_status=$? |
| 4389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4390 | rm -f conftest.er1 |
| 4391 | cat conftest.err >&5 |
| 4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4393 | (exit $ac_status); } && |
| 4394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4396 | (eval $ac_try) 2>&5 |
| 4397 | ac_status=$? |
| 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4399 | (exit $ac_status); }; } && |
| 4400 | { ac_try='test -s conftest.$ac_objext' |
| 4401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4402 | (eval $ac_try) 2>&5 |
| 4403 | ac_status=$? |
| 4404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4405 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4406 | ac_cv_type_size_t=yes |
| 4407 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4408 | echo "$as_me: failed program was:" >&5 |
| 4409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4410 | |
| 4411 | ac_cv_type_size_t=no |
| 4412 | fi |
| 4413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4414 | fi |
| 4415 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4416 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4417 | if test $ac_cv_type_size_t = yes; then |
| 4418 | : |
| 4419 | else |
| 4420 | |
| 4421 | cat >>confdefs.h <<_ACEOF |
| 4422 | #define size_t unsigned |
| 4423 | _ACEOF |
| 4424 | |
| 4425 | fi |
| 4426 | |
| 4427 | |
| 4428 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 4429 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 4430 | if test "${ac_cv_type_long_long+set}" = set; then |
| 4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4432 | else |
| 4433 | cat >conftest.$ac_ext <<_ACEOF |
| 4434 | /* confdefs.h. */ |
| 4435 | _ACEOF |
| 4436 | cat confdefs.h >>conftest.$ac_ext |
| 4437 | cat >>conftest.$ac_ext <<_ACEOF |
| 4438 | /* end confdefs.h. */ |
| 4439 | long long ll = 1LL; int i = 63; |
| 4440 | int |
| 4441 | main () |
| 4442 | { |
| 4443 | long long llmax = (long long) -1; |
| 4444 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 4445 | ; |
| 4446 | return 0; |
| 4447 | } |
| 4448 | _ACEOF |
| 4449 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4451 | (eval $ac_link) 2>conftest.er1 |
| 4452 | ac_status=$? |
| 4453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4454 | rm -f conftest.er1 |
| 4455 | cat conftest.err >&5 |
| 4456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4457 | (exit $ac_status); } && |
| 4458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4460 | (eval $ac_try) 2>&5 |
| 4461 | ac_status=$? |
| 4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4463 | (exit $ac_status); }; } && |
| 4464 | { ac_try='test -s conftest$ac_exeext' |
| 4465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4466 | (eval $ac_try) 2>&5 |
| 4467 | ac_status=$? |
| 4468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4469 | (exit $ac_status); }; }; then |
| 4470 | ac_cv_type_long_long=yes |
| 4471 | else |
| 4472 | echo "$as_me: failed program was:" >&5 |
| 4473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4474 | |
| 4475 | ac_cv_type_long_long=no |
| 4476 | fi |
| 4477 | rm -f conftest.err conftest.$ac_objext \ |
| 4478 | conftest$ac_exeext conftest.$ac_ext |
| 4479 | fi |
| 4480 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 4481 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 4482 | if test $ac_cv_type_long_long = yes; then |
| 4483 | |
| 4484 | cat >>confdefs.h <<\_ACEOF |
| 4485 | #define HAVE_LONG_LONG 1 |
| 4486 | _ACEOF |
| 4487 | |
| 4488 | fi |
| 4489 | |
| 4490 | |
| 4491 | echo "$as_me:$LINENO: checking for long double" >&5 |
| 4492 | echo $ECHO_N "checking for long double... $ECHO_C" >&6 |
| 4493 | if test "${gt_cv_c_long_double+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | else |
| 4496 | if test "$GCC" = yes; then |
| 4497 | gt_cv_c_long_double=yes |
| 4498 | else |
| 4499 | cat >conftest.$ac_ext <<_ACEOF |
| 4500 | /* confdefs.h. */ |
| 4501 | _ACEOF |
| 4502 | cat confdefs.h >>conftest.$ac_ext |
| 4503 | cat >>conftest.$ac_ext <<_ACEOF |
| 4504 | /* end confdefs.h. */ |
| 4505 | |
| 4506 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 4507 | long double foo = 0.0; |
| 4508 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 4509 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 4510 | |
| 4511 | int |
| 4512 | main () |
| 4513 | { |
| 4514 | |
| 4515 | ; |
| 4516 | return 0; |
| 4517 | } |
| 4518 | _ACEOF |
| 4519 | rm -f conftest.$ac_objext |
| 4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4521 | (eval $ac_compile) 2>conftest.er1 |
| 4522 | ac_status=$? |
| 4523 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4524 | rm -f conftest.er1 |
| 4525 | cat conftest.err >&5 |
| 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4527 | (exit $ac_status); } && |
| 4528 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4530 | (eval $ac_try) 2>&5 |
| 4531 | ac_status=$? |
| 4532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4533 | (exit $ac_status); }; } && |
| 4534 | { ac_try='test -s conftest.$ac_objext' |
| 4535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4536 | (eval $ac_try) 2>&5 |
| 4537 | ac_status=$? |
| 4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4539 | (exit $ac_status); }; }; then |
| 4540 | gt_cv_c_long_double=yes |
| 4541 | else |
| 4542 | echo "$as_me: failed program was:" >&5 |
| 4543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4544 | |
| 4545 | gt_cv_c_long_double=no |
| 4546 | fi |
| 4547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4548 | fi |
| 4549 | fi |
| 4550 | echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 4551 | echo "${ECHO_T}$gt_cv_c_long_double" >&6 |
| 4552 | if test $gt_cv_c_long_double = yes; then |
| 4553 | |
| 4554 | cat >>confdefs.h <<\_ACEOF |
| 4555 | #define HAVE_LONG_DOUBLE 1 |
| 4556 | _ACEOF |
| 4557 | |
| 4558 | fi |
| 4559 | |
| 4560 | |
| 4561 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 4562 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 4563 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4565 | else |
| 4566 | cat >conftest.$ac_ext <<_ACEOF |
| 4567 | /* confdefs.h. */ |
| 4568 | _ACEOF |
| 4569 | cat confdefs.h >>conftest.$ac_ext |
| 4570 | cat >>conftest.$ac_ext <<_ACEOF |
| 4571 | /* end confdefs.h. */ |
| 4572 | #include <stddef.h> |
| 4573 | wchar_t foo = (wchar_t)'\0'; |
| 4574 | int |
| 4575 | main () |
| 4576 | { |
| 4577 | |
| 4578 | ; |
| 4579 | return 0; |
| 4580 | } |
| 4581 | _ACEOF |
| 4582 | rm -f conftest.$ac_objext |
| 4583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4584 | (eval $ac_compile) 2>conftest.er1 |
| 4585 | ac_status=$? |
| 4586 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4587 | rm -f conftest.er1 |
| 4588 | cat conftest.err >&5 |
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4590 | (exit $ac_status); } && |
| 4591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4593 | (eval $ac_try) 2>&5 |
| 4594 | ac_status=$? |
| 4595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4596 | (exit $ac_status); }; } && |
| 4597 | { ac_try='test -s conftest.$ac_objext' |
| 4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4599 | (eval $ac_try) 2>&5 |
| 4600 | ac_status=$? |
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4602 | (exit $ac_status); }; }; then |
| 4603 | gt_cv_c_wchar_t=yes |
| 4604 | else |
| 4605 | echo "$as_me: failed program was:" >&5 |
| 4606 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4607 | |
| 4608 | gt_cv_c_wchar_t=no |
| 4609 | fi |
| 4610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4611 | fi |
| 4612 | echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 4613 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6 |
| 4614 | if test $gt_cv_c_wchar_t = yes; then |
| 4615 | |
| 4616 | cat >>confdefs.h <<\_ACEOF |
| 4617 | #define HAVE_WCHAR_T 1 |
| 4618 | _ACEOF |
| 4619 | |
| 4620 | fi |
| 4621 | |
| 4622 | |
| 4623 | echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 4624 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6 |
| 4625 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 4626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4627 | else |
| 4628 | cat >conftest.$ac_ext <<_ACEOF |
| 4629 | /* confdefs.h. */ |
| 4630 | _ACEOF |
| 4631 | cat confdefs.h >>conftest.$ac_ext |
| 4632 | cat >>conftest.$ac_ext <<_ACEOF |
| 4633 | /* end confdefs.h. */ |
| 4634 | #include <wchar.h> |
| 4635 | wint_t foo = (wchar_t)'\0'; |
| 4636 | int |
| 4637 | main () |
| 4638 | { |
| 4639 | |
| 4640 | ; |
| 4641 | return 0; |
| 4642 | } |
| 4643 | _ACEOF |
| 4644 | rm -f conftest.$ac_objext |
| 4645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4646 | (eval $ac_compile) 2>conftest.er1 |
| 4647 | ac_status=$? |
| 4648 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4649 | rm -f conftest.er1 |
| 4650 | cat conftest.err >&5 |
| 4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4652 | (exit $ac_status); } && |
| 4653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4655 | (eval $ac_try) 2>&5 |
| 4656 | ac_status=$? |
| 4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4658 | (exit $ac_status); }; } && |
| 4659 | { ac_try='test -s conftest.$ac_objext' |
| 4660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4661 | (eval $ac_try) 2>&5 |
| 4662 | ac_status=$? |
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4664 | (exit $ac_status); }; }; then |
| 4665 | gt_cv_c_wint_t=yes |
| 4666 | else |
| 4667 | echo "$as_me: failed program was:" >&5 |
| 4668 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4669 | |
| 4670 | gt_cv_c_wint_t=no |
| 4671 | fi |
| 4672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4673 | fi |
| 4674 | echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 4675 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6 |
| 4676 | if test $gt_cv_c_wint_t = yes; then |
| 4677 | |
| 4678 | cat >>confdefs.h <<\_ACEOF |
| 4679 | #define HAVE_WINT_T 1 |
| 4680 | _ACEOF |
| 4681 | |
| 4682 | fi |
| 4683 | |
| 4684 | |
| 4685 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 4686 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 4687 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4689 | else |
| 4690 | cat >conftest.$ac_ext <<_ACEOF |
| 4691 | /* confdefs.h. */ |
| 4692 | _ACEOF |
| 4693 | cat confdefs.h >>conftest.$ac_ext |
| 4694 | cat >>conftest.$ac_ext <<_ACEOF |
| 4695 | /* end confdefs.h. */ |
| 4696 | #include <sys/types.h> |
| 4697 | #include <inttypes.h> |
| 4698 | int |
| 4699 | main () |
| 4700 | { |
| 4701 | uintmax_t i = (uintmax_t) -1; |
| 4702 | ; |
| 4703 | return 0; |
| 4704 | } |
| 4705 | _ACEOF |
| 4706 | rm -f conftest.$ac_objext |
| 4707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4708 | (eval $ac_compile) 2>conftest.er1 |
| 4709 | ac_status=$? |
| 4710 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4711 | rm -f conftest.er1 |
| 4712 | cat conftest.err >&5 |
| 4713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4714 | (exit $ac_status); } && |
| 4715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4717 | (eval $ac_try) 2>&5 |
| 4718 | ac_status=$? |
| 4719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4720 | (exit $ac_status); }; } && |
| 4721 | { ac_try='test -s conftest.$ac_objext' |
| 4722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4723 | (eval $ac_try) 2>&5 |
| 4724 | ac_status=$? |
| 4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4726 | (exit $ac_status); }; }; then |
| 4727 | jm_ac_cv_header_inttypes_h=yes |
| 4728 | else |
| 4729 | echo "$as_me: failed program was:" >&5 |
| 4730 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4731 | |
| 4732 | jm_ac_cv_header_inttypes_h=no |
| 4733 | fi |
| 4734 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4735 | fi |
| 4736 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 4737 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6 |
| 4738 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 4739 | |
| 4740 | cat >>confdefs.h <<_ACEOF |
| 4741 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 4742 | _ACEOF |
| 4743 | |
| 4744 | fi |
| 4745 | |
| 4746 | |
| 4747 | echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 4748 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6 |
| 4749 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 4750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4751 | else |
| 4752 | cat >conftest.$ac_ext <<_ACEOF |
| 4753 | /* confdefs.h. */ |
| 4754 | _ACEOF |
| 4755 | cat confdefs.h >>conftest.$ac_ext |
| 4756 | cat >>conftest.$ac_ext <<_ACEOF |
| 4757 | /* end confdefs.h. */ |
| 4758 | #include <sys/types.h> |
| 4759 | #include <stdint.h> |
| 4760 | int |
| 4761 | main () |
| 4762 | { |
| 4763 | uintmax_t i = (uintmax_t) -1; |
| 4764 | ; |
| 4765 | return 0; |
| 4766 | } |
| 4767 | _ACEOF |
| 4768 | rm -f conftest.$ac_objext |
| 4769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4770 | (eval $ac_compile) 2>conftest.er1 |
| 4771 | ac_status=$? |
| 4772 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4773 | rm -f conftest.er1 |
| 4774 | cat conftest.err >&5 |
| 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4776 | (exit $ac_status); } && |
| 4777 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4779 | (eval $ac_try) 2>&5 |
| 4780 | ac_status=$? |
| 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4782 | (exit $ac_status); }; } && |
| 4783 | { ac_try='test -s conftest.$ac_objext' |
| 4784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4785 | (eval $ac_try) 2>&5 |
| 4786 | ac_status=$? |
| 4787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4788 | (exit $ac_status); }; }; then |
| 4789 | jm_ac_cv_header_stdint_h=yes |
| 4790 | else |
| 4791 | echo "$as_me: failed program was:" >&5 |
| 4792 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4793 | |
| 4794 | jm_ac_cv_header_stdint_h=no |
| 4795 | fi |
| 4796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4797 | fi |
| 4798 | echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 4799 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6 |
| 4800 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 4801 | |
| 4802 | cat >>confdefs.h <<_ACEOF |
| 4803 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 4804 | _ACEOF |
| 4805 | |
| 4806 | fi |
| 4807 | |
| 4808 | |
| 4809 | |
| 4810 | |
| 4811 | echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 4812 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
| 4813 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4815 | else |
| 4816 | cat >conftest.$ac_ext <<_ACEOF |
| 4817 | /* confdefs.h. */ |
| 4818 | _ACEOF |
| 4819 | cat confdefs.h >>conftest.$ac_ext |
| 4820 | cat >>conftest.$ac_ext <<_ACEOF |
| 4821 | /* end confdefs.h. */ |
| 4822 | |
| 4823 | #include <stddef.h> |
| 4824 | #include <stdlib.h> |
| 4825 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 4826 | #include <stdint.h> |
| 4827 | #endif |
| 4828 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 4829 | #include <inttypes.h> |
| 4830 | #endif |
| 4831 | |
| 4832 | int |
| 4833 | main () |
| 4834 | { |
| 4835 | intmax_t x = -1; |
| 4836 | ; |
| 4837 | return 0; |
| 4838 | } |
| 4839 | _ACEOF |
| 4840 | rm -f conftest.$ac_objext |
| 4841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4842 | (eval $ac_compile) 2>conftest.er1 |
| 4843 | ac_status=$? |
| 4844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4845 | rm -f conftest.er1 |
| 4846 | cat conftest.err >&5 |
| 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4848 | (exit $ac_status); } && |
| 4849 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4851 | (eval $ac_try) 2>&5 |
| 4852 | ac_status=$? |
| 4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4854 | (exit $ac_status); }; } && |
| 4855 | { ac_try='test -s conftest.$ac_objext' |
| 4856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4857 | (eval $ac_try) 2>&5 |
| 4858 | ac_status=$? |
| 4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4860 | (exit $ac_status); }; }; then |
| 4861 | gt_cv_c_intmax_t=yes |
| 4862 | else |
| 4863 | echo "$as_me: failed program was:" >&5 |
| 4864 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4865 | |
| 4866 | gt_cv_c_intmax_t=no |
| 4867 | fi |
| 4868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4869 | fi |
| 4870 | echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 4871 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6 |
| 4872 | if test $gt_cv_c_intmax_t = yes; then |
| 4873 | |
| 4874 | cat >>confdefs.h <<\_ACEOF |
| 4875 | #define HAVE_INTMAX_T 1 |
| 4876 | _ACEOF |
| 4877 | |
| 4878 | fi |
| 4879 | |
| 4880 | |
| 4881 | |
| 4882 | echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 4883 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6 |
| 4884 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 4885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4886 | else |
| 4887 | |
| 4888 | if test "$cross_compiling" = yes; then |
| 4889 | |
| 4890 | cat >conftest.$ac_ext <<_ACEOF |
| 4891 | /* confdefs.h. */ |
| 4892 | _ACEOF |
| 4893 | cat confdefs.h >>conftest.$ac_ext |
| 4894 | cat >>conftest.$ac_ext <<_ACEOF |
| 4895 | /* end confdefs.h. */ |
| 4896 | |
| 4897 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 4898 | notposix |
| 4899 | #endif |
| 4900 | |
| 4901 | _ACEOF |
| 4902 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4903 | $EGREP "notposix" >/dev/null 2>&1; then |
| 4904 | gt_cv_func_printf_posix="guessing no" |
| 4905 | else |
| 4906 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4907 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4908 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4909 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4910 | |
| 4911 | else |
| 4912 | cat >conftest.$ac_ext <<_ACEOF |
| 4913 | /* confdefs.h. */ |
| 4914 | _ACEOF |
| 4915 | cat confdefs.h >>conftest.$ac_ext |
| 4916 | cat >>conftest.$ac_ext <<_ACEOF |
| 4917 | /* end confdefs.h. */ |
| 4918 | |
| 4919 | #include <stdio.h> |
| 4920 | #include <string.h> |
| 4921 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 4922 | dollar expansion (possibly an autoconf bug). */ |
| 4923 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 4924 | static char buf[100]; |
| 4925 | int main () |
| 4926 | { |
| 4927 | sprintf (buf, format, 33, 55); |
| 4928 | return (strcmp (buf, "55 33") != 0); |
| 4929 | } |
| 4930 | _ACEOF |
| 4931 | rm -f conftest$ac_exeext |
| 4932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4933 | (eval $ac_link) 2>&5 |
| 4934 | ac_status=$? |
| 4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4938 | (eval $ac_try) 2>&5 |
| 4939 | ac_status=$? |
| 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | (exit $ac_status); }; }; then |
| 4942 | gt_cv_func_printf_posix=yes |
| 4943 | else |
| 4944 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4945 | echo "$as_me: failed program was:" >&5 |
| 4946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4947 | |
| 4948 | ( exit $ac_status ) |
| 4949 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4950 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4951 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4952 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4953 | |
| 4954 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4955 | echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 4956 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6 |
| 4957 | case $gt_cv_func_printf_posix in |
| 4958 | *yes) |
| 4959 | |
| 4960 | cat >>confdefs.h <<\_ACEOF |
| 4961 | #define HAVE_POSIX_PRINTF 1 |
| 4962 | _ACEOF |
| 4963 | |
| 4964 | ;; |
| 4965 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4966 | |
| 4967 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 4968 | # for constant arguments. Useless! |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4969 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 4970 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 4971 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 4972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4973 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4974 | cat >conftest.$ac_ext <<_ACEOF |
| 4975 | /* confdefs.h. */ |
| 4976 | _ACEOF |
| 4977 | cat confdefs.h >>conftest.$ac_ext |
| 4978 | cat >>conftest.$ac_ext <<_ACEOF |
| 4979 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4980 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4981 | int |
| 4982 | main () |
| 4983 | { |
| 4984 | char *p = (char *) alloca (2 * sizeof (int)); |
| 4985 | ; |
| 4986 | return 0; |
| 4987 | } |
| 4988 | _ACEOF |
| 4989 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4991 | (eval $ac_link) 2>conftest.er1 |
| 4992 | ac_status=$? |
| 4993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4994 | rm -f conftest.er1 |
| 4995 | cat conftest.err >&5 |
| 4996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4997 | (exit $ac_status); } && |
| 4998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5000 | (eval $ac_try) 2>&5 |
| 5001 | ac_status=$? |
| 5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5003 | (exit $ac_status); }; } && |
| 5004 | { ac_try='test -s conftest$ac_exeext' |
| 5005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5006 | (eval $ac_try) 2>&5 |
| 5007 | ac_status=$? |
| 5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5009 | (exit $ac_status); }; }; then |
| 5010 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5011 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5012 | echo "$as_me: failed program was:" >&5 |
| 5013 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5014 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5015 | ac_cv_working_alloca_h=no |
| 5016 | fi |
| 5017 | rm -f conftest.err conftest.$ac_objext \ |
| 5018 | conftest$ac_exeext conftest.$ac_ext |
| 5019 | fi |
| 5020 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5021 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 5022 | if test $ac_cv_working_alloca_h = yes; then |
| 5023 | |
| 5024 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5025 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5026 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5027 | |
| 5028 | fi |
| 5029 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5030 | echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5031 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 5032 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5034 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5035 | cat >conftest.$ac_ext <<_ACEOF |
| 5036 | /* confdefs.h. */ |
| 5037 | _ACEOF |
| 5038 | cat confdefs.h >>conftest.$ac_ext |
| 5039 | cat >>conftest.$ac_ext <<_ACEOF |
| 5040 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5041 | #ifdef __GNUC__ |
| 5042 | # define alloca __builtin_alloca |
| 5043 | #else |
| 5044 | # ifdef _MSC_VER |
| 5045 | # include <malloc.h> |
| 5046 | # define alloca _alloca |
| 5047 | # else |
| 5048 | # if HAVE_ALLOCA_H |
| 5049 | # include <alloca.h> |
| 5050 | # else |
| 5051 | # ifdef _AIX |
| 5052 | #pragma alloca |
| 5053 | # else |
| 5054 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5055 | char *alloca (); |
| 5056 | # endif |
| 5057 | # endif |
| 5058 | # endif |
| 5059 | # endif |
| 5060 | #endif |
| 5061 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5062 | int |
| 5063 | main () |
| 5064 | { |
| 5065 | char *p = (char *) alloca (1); |
| 5066 | ; |
| 5067 | return 0; |
| 5068 | } |
| 5069 | _ACEOF |
| 5070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5072 | (eval $ac_link) 2>conftest.er1 |
| 5073 | ac_status=$? |
| 5074 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5075 | rm -f conftest.er1 |
| 5076 | cat conftest.err >&5 |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); } && |
| 5079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5081 | (eval $ac_try) 2>&5 |
| 5082 | ac_status=$? |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); }; } && |
| 5085 | { ac_try='test -s conftest$ac_exeext' |
| 5086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5087 | (eval $ac_try) 2>&5 |
| 5088 | ac_status=$? |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5090 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5091 | ac_cv_func_alloca_works=yes |
| 5092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5093 | echo "$as_me: failed program was:" >&5 |
| 5094 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5096 | ac_cv_func_alloca_works=no |
| 5097 | fi |
| 5098 | rm -f conftest.err conftest.$ac_objext \ |
| 5099 | conftest$ac_exeext conftest.$ac_ext |
| 5100 | fi |
| 5101 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5102 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 5103 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5104 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5105 | |
| 5106 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5107 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5108 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5109 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5110 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5111 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5112 | # that cause trouble. Some versions do not even contain alloca or |
| 5113 | # contain a buggy version. If you still want to use their alloca, |
| 5114 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5115 | |
| 5116 | ALLOCA=alloca.$ac_objext |
| 5117 | |
| 5118 | cat >>confdefs.h <<\_ACEOF |
| 5119 | #define C_ALLOCA 1 |
| 5120 | _ACEOF |
| 5121 | |
| 5122 | |
| 5123 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5124 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 5125 | if test "${ac_cv_os_cray+set}" = set; then |
| 5126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5127 | else |
| 5128 | cat >conftest.$ac_ext <<_ACEOF |
| 5129 | /* confdefs.h. */ |
| 5130 | _ACEOF |
| 5131 | cat confdefs.h >>conftest.$ac_ext |
| 5132 | cat >>conftest.$ac_ext <<_ACEOF |
| 5133 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5134 | #if defined(CRAY) && ! defined(CRAY2) |
| 5135 | webecray |
| 5136 | #else |
| 5137 | wenotbecray |
| 5138 | #endif |
| 5139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5140 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5141 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5142 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5143 | ac_cv_os_cray=yes |
| 5144 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5145 | ac_cv_os_cray=no |
| 5146 | fi |
| 5147 | rm -f conftest* |
| 5148 | |
| 5149 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5150 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5151 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5152 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5153 | for ac_func in _getb67 GETB67 getb67; do |
| 5154 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5155 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5156 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5157 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5159 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5160 | cat >conftest.$ac_ext <<_ACEOF |
| 5161 | /* confdefs.h. */ |
| 5162 | _ACEOF |
| 5163 | cat confdefs.h >>conftest.$ac_ext |
| 5164 | cat >>conftest.$ac_ext <<_ACEOF |
| 5165 | /* end confdefs.h. */ |
| 5166 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5167 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5168 | #define $ac_func innocuous_$ac_func |
| 5169 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5170 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5171 | which can conflict with char $ac_func (); below. |
| 5172 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5173 | <limits.h> exists even on freestanding compilers. */ |
| 5174 | |
| 5175 | #ifdef __STDC__ |
| 5176 | # include <limits.h> |
| 5177 | #else |
| 5178 | # include <assert.h> |
| 5179 | #endif |
| 5180 | |
| 5181 | #undef $ac_func |
| 5182 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5183 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5184 | #ifdef __cplusplus |
| 5185 | extern "C" |
| 5186 | { |
| 5187 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5188 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5189 | builtin and then its argument prototype would still apply. */ |
| 5190 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5191 | /* The GNU C library defines this for functions which it implements |
| 5192 | to always fail with ENOSYS. Some functions are actually named |
| 5193 | something starting with __ and the normal name is an alias. */ |
| 5194 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5195 | choke me |
| 5196 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5197 | char (*f) () = $ac_func; |
| 5198 | #endif |
| 5199 | #ifdef __cplusplus |
| 5200 | } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5201 | #endif |
| 5202 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5203 | int |
| 5204 | main () |
| 5205 | { |
| 5206 | return f != $ac_func; |
| 5207 | ; |
| 5208 | return 0; |
| 5209 | } |
| 5210 | _ACEOF |
| 5211 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5213 | (eval $ac_link) 2>conftest.er1 |
| 5214 | ac_status=$? |
| 5215 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5216 | rm -f conftest.er1 |
| 5217 | cat conftest.err >&5 |
| 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5219 | (exit $ac_status); } && |
| 5220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5222 | (eval $ac_try) 2>&5 |
| 5223 | ac_status=$? |
| 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5225 | (exit $ac_status); }; } && |
| 5226 | { ac_try='test -s conftest$ac_exeext' |
| 5227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5228 | (eval $ac_try) 2>&5 |
| 5229 | ac_status=$? |
| 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5231 | (exit $ac_status); }; }; then |
| 5232 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5233 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5234 | echo "$as_me: failed program was:" >&5 |
| 5235 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5236 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5237 | eval "$as_ac_var=no" |
| 5238 | fi |
| 5239 | rm -f conftest.err conftest.$ac_objext \ |
| 5240 | conftest$ac_exeext conftest.$ac_ext |
| 5241 | fi |
| 5242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5244 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5245 | |
| 5246 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5247 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5248 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5250 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5251 | fi |
| 5252 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5253 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5254 | fi |
| 5255 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5256 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 5257 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 5258 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5260 | else |
| 5261 | if test "$cross_compiling" = yes; then |
| 5262 | ac_cv_c_stack_direction=0 |
| 5263 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5264 | cat >conftest.$ac_ext <<_ACEOF |
| 5265 | /* confdefs.h. */ |
| 5266 | _ACEOF |
| 5267 | cat confdefs.h >>conftest.$ac_ext |
| 5268 | cat >>conftest.$ac_ext <<_ACEOF |
| 5269 | /* end confdefs.h. */ |
| 5270 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5271 | find_stack_direction () |
| 5272 | { |
| 5273 | static char *addr = 0; |
| 5274 | auto char dummy; |
| 5275 | if (addr == 0) |
| 5276 | { |
| 5277 | addr = &dummy; |
| 5278 | return find_stack_direction (); |
| 5279 | } |
| 5280 | else |
| 5281 | return (&dummy > addr) ? 1 : -1; |
| 5282 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5283 | |
| 5284 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5285 | main () |
| 5286 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5287 | exit (find_stack_direction () < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5288 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5289 | _ACEOF |
| 5290 | rm -f conftest$ac_exeext |
| 5291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5292 | (eval $ac_link) 2>&5 |
| 5293 | ac_status=$? |
| 5294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5297 | (eval $ac_try) 2>&5 |
| 5298 | ac_status=$? |
| 5299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5300 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5301 | ac_cv_c_stack_direction=1 |
| 5302 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5303 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5304 | echo "$as_me: failed program was:" >&5 |
| 5305 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5307 | ( exit $ac_status ) |
| 5308 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5309 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5311 | fi |
| 5312 | fi |
| 5313 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 5314 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5315 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5316 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5317 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5318 | _ACEOF |
| 5319 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5320 | |
| 5321 | fi |
| 5322 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5323 | |
| 5324 | |
| 5325 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5326 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5327 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5333 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5335 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5336 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5337 | # Is the header compilable? |
| 5338 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5339 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5340 | cat >conftest.$ac_ext <<_ACEOF |
| 5341 | /* confdefs.h. */ |
| 5342 | _ACEOF |
| 5343 | cat confdefs.h >>conftest.$ac_ext |
| 5344 | cat >>conftest.$ac_ext <<_ACEOF |
| 5345 | /* end confdefs.h. */ |
| 5346 | $ac_includes_default |
| 5347 | #include <$ac_header> |
| 5348 | _ACEOF |
| 5349 | rm -f conftest.$ac_objext |
| 5350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5351 | (eval $ac_compile) 2>conftest.er1 |
| 5352 | ac_status=$? |
| 5353 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5354 | rm -f conftest.er1 |
| 5355 | cat conftest.err >&5 |
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); } && |
| 5358 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5360 | (eval $ac_try) 2>&5 |
| 5361 | ac_status=$? |
| 5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5363 | (exit $ac_status); }; } && |
| 5364 | { ac_try='test -s conftest.$ac_objext' |
| 5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5366 | (eval $ac_try) 2>&5 |
| 5367 | ac_status=$? |
| 5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5369 | (exit $ac_status); }; }; then |
| 5370 | ac_header_compiler=yes |
| 5371 | else |
| 5372 | echo "$as_me: failed program was:" >&5 |
| 5373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5374 | |
| 5375 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5376 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5379 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5380 | |
| 5381 | # Is the header present? |
| 5382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5384 | cat >conftest.$ac_ext <<_ACEOF |
| 5385 | /* confdefs.h. */ |
| 5386 | _ACEOF |
| 5387 | cat confdefs.h >>conftest.$ac_ext |
| 5388 | cat >>conftest.$ac_ext <<_ACEOF |
| 5389 | /* end confdefs.h. */ |
| 5390 | #include <$ac_header> |
| 5391 | _ACEOF |
| 5392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5394 | ac_status=$? |
| 5395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5396 | rm -f conftest.er1 |
| 5397 | cat conftest.err >&5 |
| 5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5399 | (exit $ac_status); } >/dev/null; then |
| 5400 | if test -s conftest.err; then |
| 5401 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 5403 | else |
| 5404 | ac_cpp_err= |
| 5405 | fi |
| 5406 | else |
| 5407 | ac_cpp_err=yes |
| 5408 | fi |
| 5409 | if test -z "$ac_cpp_err"; then |
| 5410 | ac_header_preproc=yes |
| 5411 | else |
| 5412 | echo "$as_me: failed program was:" >&5 |
| 5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5414 | |
| 5415 | ac_header_preproc=no |
| 5416 | fi |
| 5417 | rm -f conftest.err conftest.$ac_ext |
| 5418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5419 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5420 | |
| 5421 | # So? What about this header? |
| 5422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 5423 | yes:no: ) |
| 5424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 5427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 5428 | ac_header_preproc=yes |
| 5429 | ;; |
| 5430 | no:yes:* ) |
| 5431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 5436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 5437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 5438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 5439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 5442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 5443 | ( |
| 5444 | cat <<\_ASBOX |
| 5445 | ## ------------------------------------------ ## |
| 5446 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 5447 | ## ------------------------------------------ ## |
| 5448 | _ASBOX |
| 5449 | ) | |
| 5450 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5451 | ;; |
| 5452 | esac |
| 5453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5457 | else |
| 5458 | eval "$as_ac_Header=\$ac_header_preproc" |
| 5459 | fi |
| 5460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5462 | |
| 5463 | fi |
| 5464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5465 | cat >>confdefs.h <<_ACEOF |
| 5466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5467 | _ACEOF |
| 5468 | |
| 5469 | fi |
| 5470 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5471 | done |
| 5472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5473 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5474 | for ac_func in getpagesize |
| 5475 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5479 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5481 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5482 | cat >conftest.$ac_ext <<_ACEOF |
| 5483 | /* confdefs.h. */ |
| 5484 | _ACEOF |
| 5485 | cat confdefs.h >>conftest.$ac_ext |
| 5486 | cat >>conftest.$ac_ext <<_ACEOF |
| 5487 | /* end confdefs.h. */ |
| 5488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5490 | #define $ac_func innocuous_$ac_func |
| 5491 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5492 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5493 | which can conflict with char $ac_func (); below. |
| 5494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5495 | <limits.h> exists even on freestanding compilers. */ |
| 5496 | |
| 5497 | #ifdef __STDC__ |
| 5498 | # include <limits.h> |
| 5499 | #else |
| 5500 | # include <assert.h> |
| 5501 | #endif |
| 5502 | |
| 5503 | #undef $ac_func |
| 5504 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5505 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5506 | #ifdef __cplusplus |
| 5507 | extern "C" |
| 5508 | { |
| 5509 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5510 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5511 | builtin and then its argument prototype would still apply. */ |
| 5512 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5513 | /* The GNU C library defines this for functions which it implements |
| 5514 | to always fail with ENOSYS. Some functions are actually named |
| 5515 | something starting with __ and the normal name is an alias. */ |
| 5516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5517 | choke me |
| 5518 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5519 | char (*f) () = $ac_func; |
| 5520 | #endif |
| 5521 | #ifdef __cplusplus |
| 5522 | } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5523 | #endif |
| 5524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5525 | int |
| 5526 | main () |
| 5527 | { |
| 5528 | return f != $ac_func; |
| 5529 | ; |
| 5530 | return 0; |
| 5531 | } |
| 5532 | _ACEOF |
| 5533 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5535 | (eval $ac_link) 2>conftest.er1 |
| 5536 | ac_status=$? |
| 5537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5538 | rm -f conftest.er1 |
| 5539 | cat conftest.err >&5 |
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5541 | (exit $ac_status); } && |
| 5542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5544 | (eval $ac_try) 2>&5 |
| 5545 | ac_status=$? |
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5547 | (exit $ac_status); }; } && |
| 5548 | { ac_try='test -s conftest$ac_exeext' |
| 5549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5550 | (eval $ac_try) 2>&5 |
| 5551 | ac_status=$? |
| 5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5553 | (exit $ac_status); }; }; then |
| 5554 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5555 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5556 | echo "$as_me: failed program was:" >&5 |
| 5557 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5559 | eval "$as_ac_var=no" |
| 5560 | fi |
| 5561 | rm -f conftest.err conftest.$ac_objext \ |
| 5562 | conftest$ac_exeext conftest.$ac_ext |
| 5563 | fi |
| 5564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5567 | cat >>confdefs.h <<_ACEOF |
| 5568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5569 | _ACEOF |
| 5570 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5571 | fi |
| 5572 | done |
| 5573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5574 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 5575 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 5576 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5578 | else |
| 5579 | if test "$cross_compiling" = yes; then |
| 5580 | ac_cv_func_mmap_fixed_mapped=no |
| 5581 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5582 | cat >conftest.$ac_ext <<_ACEOF |
| 5583 | /* confdefs.h. */ |
| 5584 | _ACEOF |
| 5585 | cat confdefs.h >>conftest.$ac_ext |
| 5586 | cat >>conftest.$ac_ext <<_ACEOF |
| 5587 | /* end confdefs.h. */ |
| 5588 | $ac_includes_default |
| 5589 | /* malloc might have been renamed as rpl_malloc. */ |
| 5590 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5591 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5592 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 5593 | Here is a matrix of mmap possibilities: |
| 5594 | mmap private not fixed |
| 5595 | mmap private fixed at somewhere currently unmapped |
| 5596 | mmap private fixed at somewhere already mapped |
| 5597 | mmap shared not fixed |
| 5598 | mmap shared fixed at somewhere currently unmapped |
| 5599 | mmap shared fixed at somewhere already mapped |
| 5600 | For private mappings, we should verify that changes cannot be read() |
| 5601 | back from the file, nor mmap's back from the file at a different |
| 5602 | address. (There have been systems where private was not correctly |
| 5603 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5604 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5605 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 5606 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5607 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5608 | |
| 5609 | Grep wants private fixed already mapped. |
| 5610 | The main things grep needs to know about mmap are: |
| 5611 | * does it exist and is it safe to write into the mmap'd area |
| 5612 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5613 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5614 | #include <fcntl.h> |
| 5615 | #include <sys/mman.h> |
| 5616 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5617 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 5618 | char *malloc (); |
| 5619 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5620 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5621 | /* This mess was copied from the GNU getpagesize.h. */ |
| 5622 | #if !HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5623 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5624 | # if !HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5625 | # define HAVE_SYS_PARAM_H 1 |
| 5626 | # endif |
| 5627 | |
| 5628 | # ifdef _SC_PAGESIZE |
| 5629 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 5630 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5631 | # if HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5632 | # include <sys/param.h> |
| 5633 | # ifdef EXEC_PAGESIZE |
| 5634 | # define getpagesize() EXEC_PAGESIZE |
| 5635 | # else /* no EXEC_PAGESIZE */ |
| 5636 | # ifdef NBPG |
| 5637 | # define getpagesize() NBPG * CLSIZE |
| 5638 | # ifndef CLSIZE |
| 5639 | # define CLSIZE 1 |
| 5640 | # endif /* no CLSIZE */ |
| 5641 | # else /* no NBPG */ |
| 5642 | # ifdef NBPC |
| 5643 | # define getpagesize() NBPC |
| 5644 | # else /* no NBPC */ |
| 5645 | # ifdef PAGESIZE |
| 5646 | # define getpagesize() PAGESIZE |
| 5647 | # endif /* PAGESIZE */ |
| 5648 | # endif /* no NBPC */ |
| 5649 | # endif /* no NBPG */ |
| 5650 | # endif /* no EXEC_PAGESIZE */ |
| 5651 | # else /* no HAVE_SYS_PARAM_H */ |
| 5652 | # define getpagesize() 8192 /* punt totally */ |
| 5653 | # endif /* no HAVE_SYS_PARAM_H */ |
| 5654 | # endif /* no _SC_PAGESIZE */ |
| 5655 | |
| 5656 | #endif /* no HAVE_GETPAGESIZE */ |
| 5657 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5658 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5659 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5660 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5661 | char *data, *data2, *data3; |
| 5662 | int i, pagesize; |
| 5663 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5664 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5665 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5666 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5667 | /* First, make a file with some known garbage in it. */ |
| 5668 | data = (char *) malloc (pagesize); |
| 5669 | if (!data) |
| 5670 | exit (1); |
| 5671 | for (i = 0; i < pagesize; ++i) |
| 5672 | *(data + i) = rand (); |
| 5673 | umask (0); |
| 5674 | fd = creat ("conftest.mmap", 0600); |
| 5675 | if (fd < 0) |
| 5676 | exit (1); |
| 5677 | if (write (fd, data, pagesize) != pagesize) |
| 5678 | exit (1); |
| 5679 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5680 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5681 | /* Next, try to mmap the file at a fixed address which already has |
| 5682 | something else allocated at it. If we can, also make sure that |
| 5683 | we see the same garbage. */ |
| 5684 | fd = open ("conftest.mmap", O_RDWR); |
| 5685 | if (fd < 0) |
| 5686 | exit (1); |
| 5687 | data2 = (char *) malloc (2 * pagesize); |
| 5688 | if (!data2) |
| 5689 | exit (1); |
| 5690 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); |
| 5691 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 5692 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 5693 | exit (1); |
| 5694 | for (i = 0; i < pagesize; ++i) |
| 5695 | if (*(data + i) != *(data2 + i)) |
| 5696 | exit (1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5697 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5698 | /* Finally, make sure that changes to the mapped area do not |
| 5699 | percolate back to the file as seen by read(). (This is a bug on |
| 5700 | some variants of i386 svr4.0.) */ |
| 5701 | for (i = 0; i < pagesize; ++i) |
| 5702 | *(data2 + i) = *(data2 + i) + 1; |
| 5703 | data3 = (char *) malloc (pagesize); |
| 5704 | if (!data3) |
| 5705 | exit (1); |
| 5706 | if (read (fd, data3, pagesize) != pagesize) |
| 5707 | exit (1); |
| 5708 | for (i = 0; i < pagesize; ++i) |
| 5709 | if (*(data + i) != *(data3 + i)) |
| 5710 | exit (1); |
| 5711 | close (fd); |
| 5712 | exit (0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5713 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5714 | _ACEOF |
| 5715 | rm -f conftest$ac_exeext |
| 5716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5717 | (eval $ac_link) 2>&5 |
| 5718 | ac_status=$? |
| 5719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5720 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5722 | (eval $ac_try) 2>&5 |
| 5723 | ac_status=$? |
| 5724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5725 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5726 | ac_cv_func_mmap_fixed_mapped=yes |
| 5727 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5728 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5729 | echo "$as_me: failed program was:" >&5 |
| 5730 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5731 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5732 | ( exit $ac_status ) |
| 5733 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5734 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5735 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5736 | fi |
| 5737 | fi |
| 5738 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 5739 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5740 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5741 | |
| 5742 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5743 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5744 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5745 | |
| 5746 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5747 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5748 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5750 | echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 5751 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6 |
| 5752 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5754 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5755 | cat >conftest.$ac_ext <<_ACEOF |
| 5756 | /* confdefs.h. */ |
| 5757 | _ACEOF |
| 5758 | cat confdefs.h >>conftest.$ac_ext |
| 5759 | cat >>conftest.$ac_ext <<_ACEOF |
| 5760 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5761 | |
| 5762 | #include <features.h> |
| 5763 | #ifdef __GNU_LIBRARY__ |
| 5764 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 5765 | Lucky GNU user |
| 5766 | #endif |
| 5767 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5768 | |
| 5769 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5771 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5772 | ac_cv_gnu_library_2_1=yes |
| 5773 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5774 | ac_cv_gnu_library_2_1=no |
| 5775 | fi |
| 5776 | rm -f conftest* |
| 5777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5778 | |
| 5779 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5780 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5781 | echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 5782 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5783 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5784 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5785 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5787 | |
| 5788 | |
| 5789 | echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 5790 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6 |
| 5791 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 5792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5793 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5794 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5795 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5796 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5797 | # Guess based on the CPU. |
| 5798 | case "$host_cpu" in |
| 5799 | alpha* | i3456786 | m68k | s390*) |
| 5800 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 5801 | *) |
| 5802 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 5803 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5804 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5805 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5806 | cat >conftest.$ac_ext <<_ACEOF |
| 5807 | /* confdefs.h. */ |
| 5808 | _ACEOF |
| 5809 | cat confdefs.h >>conftest.$ac_ext |
| 5810 | cat >>conftest.$ac_ext <<_ACEOF |
| 5811 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5812 | |
| 5813 | #include <stdlib.h> |
| 5814 | #include <signal.h> |
| 5815 | |
| 5816 | static void |
| 5817 | #ifdef __cplusplus |
| 5818 | sigfpe_handler (int sig) |
| 5819 | #else |
| 5820 | sigfpe_handler (sig) int sig; |
| 5821 | #endif |
| 5822 | { |
| 5823 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 5824 | exit (sig != SIGFPE); |
| 5825 | } |
| 5826 | |
| 5827 | int x = 1; |
| 5828 | int y = 0; |
| 5829 | int z; |
| 5830 | int nan; |
| 5831 | |
| 5832 | int main () |
| 5833 | { |
| 5834 | signal (SIGFPE, sigfpe_handler); |
| 5835 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 5836 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 5837 | signal (SIGTRAP, sigfpe_handler); |
| 5838 | #endif |
| 5839 | /* Linux/SPARC yields signal SIGILL. */ |
| 5840 | #if defined (__sparc__) && defined (__linux__) |
| 5841 | signal (SIGILL, sigfpe_handler); |
| 5842 | #endif |
| 5843 | |
| 5844 | z = x / y; |
| 5845 | nan = y / y; |
| 5846 | exit (1); |
| 5847 | } |
| 5848 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5849 | _ACEOF |
| 5850 | rm -f conftest$ac_exeext |
| 5851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5852 | (eval $ac_link) 2>&5 |
| 5853 | ac_status=$? |
| 5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5855 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5857 | (eval $ac_try) 2>&5 |
| 5858 | ac_status=$? |
| 5859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5860 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5861 | gt_cv_int_divbyzero_sigfpe=yes |
| 5862 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5863 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5864 | echo "$as_me: failed program was:" >&5 |
| 5865 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5866 | |
| 5867 | ( exit $ac_status ) |
| 5868 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5869 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5870 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5871 | fi |
| 5872 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5873 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5874 | echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 5875 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5876 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 5877 | *yes) value=1;; |
| 5878 | *) value=0;; |
| 5879 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5880 | |
| 5881 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5882 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5883 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5884 | |
| 5885 | |
| 5886 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5887 | echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 5888 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6 |
| 5889 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5891 | else |
| 5892 | cat >conftest.$ac_ext <<_ACEOF |
| 5893 | /* confdefs.h. */ |
| 5894 | _ACEOF |
| 5895 | cat confdefs.h >>conftest.$ac_ext |
| 5896 | cat >>conftest.$ac_ext <<_ACEOF |
| 5897 | /* end confdefs.h. */ |
| 5898 | unsigned long long ull = 1ULL; int i = 63; |
| 5899 | int |
| 5900 | main () |
| 5901 | { |
| 5902 | unsigned long long ullmax = (unsigned long long) -1; |
| 5903 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 5904 | ; |
| 5905 | return 0; |
| 5906 | } |
| 5907 | _ACEOF |
| 5908 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5910 | (eval $ac_link) 2>conftest.er1 |
| 5911 | ac_status=$? |
| 5912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5913 | rm -f conftest.er1 |
| 5914 | cat conftest.err >&5 |
| 5915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5916 | (exit $ac_status); } && |
| 5917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 5918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5919 | (eval $ac_try) 2>&5 |
| 5920 | ac_status=$? |
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5922 | (exit $ac_status); }; } && |
| 5923 | { ac_try='test -s conftest$ac_exeext' |
| 5924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5925 | (eval $ac_try) 2>&5 |
| 5926 | ac_status=$? |
| 5927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5928 | (exit $ac_status); }; }; then |
| 5929 | ac_cv_type_unsigned_long_long=yes |
| 5930 | else |
| 5931 | echo "$as_me: failed program was:" >&5 |
| 5932 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5933 | |
| 5934 | ac_cv_type_unsigned_long_long=no |
| 5935 | fi |
| 5936 | rm -f conftest.err conftest.$ac_objext \ |
| 5937 | conftest$ac_exeext conftest.$ac_ext |
| 5938 | fi |
| 5939 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 5940 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6 |
| 5941 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 5942 | |
| 5943 | cat >>confdefs.h <<\_ACEOF |
| 5944 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 5945 | _ACEOF |
| 5946 | |
| 5947 | fi |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5952 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5953 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5954 | test $ac_cv_type_unsigned_long_long = yes \ |
| 5955 | && ac_type='unsigned long long' \ |
| 5956 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5957 | |
| 5958 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5959 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5960 | _ACEOF |
| 5961 | |
| 5962 | else |
| 5963 | |
| 5964 | cat >>confdefs.h <<\_ACEOF |
| 5965 | #define HAVE_UINTMAX_T 1 |
| 5966 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5967 | |
| 5968 | fi |
| 5969 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5970 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5971 | echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5972 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6 |
| 5973 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 5974 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5975 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5976 | |
| 5977 | cat >conftest.$ac_ext <<_ACEOF |
| 5978 | /* confdefs.h. */ |
| 5979 | _ACEOF |
| 5980 | cat confdefs.h >>conftest.$ac_ext |
| 5981 | cat >>conftest.$ac_ext <<_ACEOF |
| 5982 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5983 | #include <sys/types.h> |
| 5984 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5985 | int |
| 5986 | main () |
| 5987 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5988 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5989 | ; |
| 5990 | return 0; |
| 5991 | } |
| 5992 | _ACEOF |
| 5993 | rm -f conftest.$ac_objext |
| 5994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5995 | (eval $ac_compile) 2>conftest.er1 |
| 5996 | ac_status=$? |
| 5997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5998 | rm -f conftest.er1 |
| 5999 | cat conftest.err >&5 |
| 6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6001 | (exit $ac_status); } && |
| 6002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6004 | (eval $ac_try) 2>&5 |
| 6005 | ac_status=$? |
| 6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6007 | (exit $ac_status); }; } && |
| 6008 | { ac_try='test -s conftest.$ac_objext' |
| 6009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6010 | (eval $ac_try) 2>&5 |
| 6011 | ac_status=$? |
| 6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6013 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6014 | gt_cv_header_inttypes_h=yes |
| 6015 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6016 | echo "$as_me: failed program was:" >&5 |
| 6017 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6018 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6019 | gt_cv_header_inttypes_h=no |
| 6020 | fi |
| 6021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6022 | |
| 6023 | fi |
| 6024 | echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6025 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6026 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6027 | |
| 6028 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6029 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6030 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6031 | |
| 6032 | fi |
| 6033 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6034 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6035 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6036 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6037 | echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6038 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6 |
| 6039 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6042 | |
| 6043 | cat >conftest.$ac_ext <<_ACEOF |
| 6044 | /* confdefs.h. */ |
| 6045 | _ACEOF |
| 6046 | cat confdefs.h >>conftest.$ac_ext |
| 6047 | cat >>conftest.$ac_ext <<_ACEOF |
| 6048 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6049 | #include <inttypes.h> |
| 6050 | #ifdef PRId32 |
| 6051 | char *p = PRId32; |
| 6052 | #endif |
| 6053 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | int |
| 6055 | main () |
| 6056 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6057 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6058 | ; |
| 6059 | return 0; |
| 6060 | } |
| 6061 | _ACEOF |
| 6062 | rm -f conftest.$ac_objext |
| 6063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6064 | (eval $ac_compile) 2>conftest.er1 |
| 6065 | ac_status=$? |
| 6066 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6067 | rm -f conftest.er1 |
| 6068 | cat conftest.err >&5 |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); } && |
| 6071 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6073 | (eval $ac_try) 2>&5 |
| 6074 | ac_status=$? |
| 6075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6076 | (exit $ac_status); }; } && |
| 6077 | { ac_try='test -s conftest.$ac_objext' |
| 6078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6079 | (eval $ac_try) 2>&5 |
| 6080 | ac_status=$? |
| 6081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6082 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6083 | gt_cv_inttypes_pri_broken=no |
| 6084 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6085 | echo "$as_me: failed program was:" >&5 |
| 6086 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6087 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6088 | gt_cv_inttypes_pri_broken=yes |
| 6089 | fi |
| 6090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6091 | |
| 6092 | fi |
| 6093 | echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6094 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6095 | fi |
| 6096 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | |
| 6098 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6099 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6100 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6101 | |
| 6102 | fi |
| 6103 | |
| 6104 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6105 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6106 | for ac_header in stdint.h |
| 6107 | do |
| 6108 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6114 | fi |
| 6115 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6116 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6117 | else |
| 6118 | # Is the header compilable? |
| 6119 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6120 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 6121 | cat >conftest.$ac_ext <<_ACEOF |
| 6122 | /* confdefs.h. */ |
| 6123 | _ACEOF |
| 6124 | cat confdefs.h >>conftest.$ac_ext |
| 6125 | cat >>conftest.$ac_ext <<_ACEOF |
| 6126 | /* end confdefs.h. */ |
| 6127 | $ac_includes_default |
| 6128 | #include <$ac_header> |
| 6129 | _ACEOF |
| 6130 | rm -f conftest.$ac_objext |
| 6131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6132 | (eval $ac_compile) 2>conftest.er1 |
| 6133 | ac_status=$? |
| 6134 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6135 | rm -f conftest.er1 |
| 6136 | cat conftest.err >&5 |
| 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6138 | (exit $ac_status); } && |
| 6139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6141 | (eval $ac_try) 2>&5 |
| 6142 | ac_status=$? |
| 6143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6144 | (exit $ac_status); }; } && |
| 6145 | { ac_try='test -s conftest.$ac_objext' |
| 6146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6147 | (eval $ac_try) 2>&5 |
| 6148 | ac_status=$? |
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 | (exit $ac_status); }; }; then |
| 6151 | ac_header_compiler=yes |
| 6152 | else |
| 6153 | echo "$as_me: failed program was:" >&5 |
| 6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6155 | |
| 6156 | ac_header_compiler=no |
| 6157 | fi |
| 6158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6160 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 6161 | |
| 6162 | # Is the header present? |
| 6163 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 6165 | cat >conftest.$ac_ext <<_ACEOF |
| 6166 | /* confdefs.h. */ |
| 6167 | _ACEOF |
| 6168 | cat confdefs.h >>conftest.$ac_ext |
| 6169 | cat >>conftest.$ac_ext <<_ACEOF |
| 6170 | /* end confdefs.h. */ |
| 6171 | #include <$ac_header> |
| 6172 | _ACEOF |
| 6173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 6174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6175 | ac_status=$? |
| 6176 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6177 | rm -f conftest.er1 |
| 6178 | cat conftest.err >&5 |
| 6179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6180 | (exit $ac_status); } >/dev/null; then |
| 6181 | if test -s conftest.err; then |
| 6182 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 6183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 6184 | else |
| 6185 | ac_cpp_err= |
| 6186 | fi |
| 6187 | else |
| 6188 | ac_cpp_err=yes |
| 6189 | fi |
| 6190 | if test -z "$ac_cpp_err"; then |
| 6191 | ac_header_preproc=yes |
| 6192 | else |
| 6193 | echo "$as_me: failed program was:" >&5 |
| 6194 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6195 | |
| 6196 | ac_header_preproc=no |
| 6197 | fi |
| 6198 | rm -f conftest.err conftest.$ac_ext |
| 6199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6200 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 6201 | |
| 6202 | # So? What about this header? |
| 6203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6204 | yes:no: ) |
| 6205 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6206 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6208 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6209 | ac_header_preproc=yes |
| 6210 | ;; |
| 6211 | no:yes:* ) |
| 6212 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6213 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6214 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6215 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6216 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6217 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6218 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6219 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6222 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6223 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 6224 | ( |
| 6225 | cat <<\_ASBOX |
| 6226 | ## ------------------------------------------ ## |
| 6227 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 6228 | ## ------------------------------------------ ## |
| 6229 | _ASBOX |
| 6230 | ) | |
| 6231 | sed "s/^/$as_me: WARNING: /" >&2 |
| 6232 | ;; |
| 6233 | esac |
| 6234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 6236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 6237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6238 | else |
| 6239 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6240 | fi |
| 6241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 6242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 6243 | |
| 6244 | fi |
| 6245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6246 | cat >>confdefs.h <<_ACEOF |
| 6247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6248 | _ACEOF |
| 6249 | |
| 6250 | fi |
| 6251 | |
| 6252 | done |
| 6253 | |
| 6254 | echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 6255 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6 |
| 6256 | result= |
| 6257 | cat >conftest.$ac_ext <<_ACEOF |
| 6258 | /* confdefs.h. */ |
| 6259 | _ACEOF |
| 6260 | cat confdefs.h >>conftest.$ac_ext |
| 6261 | cat >>conftest.$ac_ext <<_ACEOF |
| 6262 | /* end confdefs.h. */ |
| 6263 | |
| 6264 | #include <limits.h> |
| 6265 | #if HAVE_STDINT_H |
| 6266 | #include <stdint.h> |
| 6267 | #endif |
| 6268 | #ifdef SIZE_MAX |
| 6269 | Found it |
| 6270 | #endif |
| 6271 | |
| 6272 | _ACEOF |
| 6273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6274 | $EGREP "Found it" >/dev/null 2>&1; then |
| 6275 | result=yes |
| 6276 | fi |
| 6277 | rm -f conftest* |
| 6278 | |
| 6279 | if test -z "$result"; then |
| 6280 | if test "$cross_compiling" = yes; then |
| 6281 | # Depending upon the size, compute the lo and hi bounds. |
| 6282 | cat >conftest.$ac_ext <<_ACEOF |
| 6283 | /* confdefs.h. */ |
| 6284 | _ACEOF |
| 6285 | cat confdefs.h >>conftest.$ac_ext |
| 6286 | cat >>conftest.$ac_ext <<_ACEOF |
| 6287 | /* end confdefs.h. */ |
| 6288 | #include <stddef.h> |
| 6289 | int |
| 6290 | main () |
| 6291 | { |
| 6292 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 6293 | test_array [0] = 0 |
| 6294 | |
| 6295 | ; |
| 6296 | return 0; |
| 6297 | } |
| 6298 | _ACEOF |
| 6299 | rm -f conftest.$ac_objext |
| 6300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6301 | (eval $ac_compile) 2>conftest.er1 |
| 6302 | ac_status=$? |
| 6303 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6304 | rm -f conftest.er1 |
| 6305 | cat conftest.err >&5 |
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 | (exit $ac_status); } && |
| 6308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6310 | (eval $ac_try) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); }; } && |
| 6314 | { ac_try='test -s conftest.$ac_objext' |
| 6315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6316 | (eval $ac_try) 2>&5 |
| 6317 | ac_status=$? |
| 6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6319 | (exit $ac_status); }; }; then |
| 6320 | ac_lo=0 ac_mid=0 |
| 6321 | while :; do |
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | /* confdefs.h. */ |
| 6324 | _ACEOF |
| 6325 | cat confdefs.h >>conftest.$ac_ext |
| 6326 | cat >>conftest.$ac_ext <<_ACEOF |
| 6327 | /* end confdefs.h. */ |
| 6328 | #include <stddef.h> |
| 6329 | int |
| 6330 | main () |
| 6331 | { |
| 6332 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 6333 | test_array [0] = 0 |
| 6334 | |
| 6335 | ; |
| 6336 | return 0; |
| 6337 | } |
| 6338 | _ACEOF |
| 6339 | rm -f conftest.$ac_objext |
| 6340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6341 | (eval $ac_compile) 2>conftest.er1 |
| 6342 | ac_status=$? |
| 6343 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6344 | rm -f conftest.er1 |
| 6345 | cat conftest.err >&5 |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); } && |
| 6348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6350 | (eval $ac_try) 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); }; } && |
| 6354 | { ac_try='test -s conftest.$ac_objext' |
| 6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6356 | (eval $ac_try) 2>&5 |
| 6357 | ac_status=$? |
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); }; }; then |
| 6360 | ac_hi=$ac_mid; break |
| 6361 | else |
| 6362 | echo "$as_me: failed program was:" >&5 |
| 6363 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6364 | |
| 6365 | ac_lo=`expr $ac_mid + 1` |
| 6366 | if test $ac_lo -le $ac_mid; then |
| 6367 | ac_lo= ac_hi= |
| 6368 | break |
| 6369 | fi |
| 6370 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6371 | fi |
| 6372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6373 | done |
| 6374 | else |
| 6375 | echo "$as_me: failed program was:" >&5 |
| 6376 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6377 | |
| 6378 | cat >conftest.$ac_ext <<_ACEOF |
| 6379 | /* confdefs.h. */ |
| 6380 | _ACEOF |
| 6381 | cat confdefs.h >>conftest.$ac_ext |
| 6382 | cat >>conftest.$ac_ext <<_ACEOF |
| 6383 | /* end confdefs.h. */ |
| 6384 | #include <stddef.h> |
| 6385 | int |
| 6386 | main () |
| 6387 | { |
| 6388 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 6389 | test_array [0] = 0 |
| 6390 | |
| 6391 | ; |
| 6392 | return 0; |
| 6393 | } |
| 6394 | _ACEOF |
| 6395 | rm -f conftest.$ac_objext |
| 6396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6397 | (eval $ac_compile) 2>conftest.er1 |
| 6398 | ac_status=$? |
| 6399 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6400 | rm -f conftest.er1 |
| 6401 | cat conftest.err >&5 |
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); } && |
| 6404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6406 | (eval $ac_try) 2>&5 |
| 6407 | ac_status=$? |
| 6408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6409 | (exit $ac_status); }; } && |
| 6410 | { ac_try='test -s conftest.$ac_objext' |
| 6411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6412 | (eval $ac_try) 2>&5 |
| 6413 | ac_status=$? |
| 6414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6415 | (exit $ac_status); }; }; then |
| 6416 | ac_hi=-1 ac_mid=-1 |
| 6417 | while :; do |
| 6418 | cat >conftest.$ac_ext <<_ACEOF |
| 6419 | /* confdefs.h. */ |
| 6420 | _ACEOF |
| 6421 | cat confdefs.h >>conftest.$ac_ext |
| 6422 | cat >>conftest.$ac_ext <<_ACEOF |
| 6423 | /* end confdefs.h. */ |
| 6424 | #include <stddef.h> |
| 6425 | int |
| 6426 | main () |
| 6427 | { |
| 6428 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 6429 | test_array [0] = 0 |
| 6430 | |
| 6431 | ; |
| 6432 | return 0; |
| 6433 | } |
| 6434 | _ACEOF |
| 6435 | rm -f conftest.$ac_objext |
| 6436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6437 | (eval $ac_compile) 2>conftest.er1 |
| 6438 | ac_status=$? |
| 6439 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6440 | rm -f conftest.er1 |
| 6441 | cat conftest.err >&5 |
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6443 | (exit $ac_status); } && |
| 6444 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6446 | (eval $ac_try) 2>&5 |
| 6447 | ac_status=$? |
| 6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6449 | (exit $ac_status); }; } && |
| 6450 | { ac_try='test -s conftest.$ac_objext' |
| 6451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6452 | (eval $ac_try) 2>&5 |
| 6453 | ac_status=$? |
| 6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6455 | (exit $ac_status); }; }; then |
| 6456 | ac_lo=$ac_mid; break |
| 6457 | else |
| 6458 | echo "$as_me: failed program was:" >&5 |
| 6459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6460 | |
| 6461 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6462 | if test $ac_mid -le $ac_hi; then |
| 6463 | ac_lo= ac_hi= |
| 6464 | break |
| 6465 | fi |
| 6466 | ac_mid=`expr 2 '*' $ac_mid` |
| 6467 | fi |
| 6468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6469 | done |
| 6470 | else |
| 6471 | echo "$as_me: failed program was:" >&5 |
| 6472 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6473 | |
| 6474 | ac_lo= ac_hi= |
| 6475 | fi |
| 6476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6477 | fi |
| 6478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6479 | # Binary search between lo and hi bounds. |
| 6480 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6481 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6482 | cat >conftest.$ac_ext <<_ACEOF |
| 6483 | /* confdefs.h. */ |
| 6484 | _ACEOF |
| 6485 | cat confdefs.h >>conftest.$ac_ext |
| 6486 | cat >>conftest.$ac_ext <<_ACEOF |
| 6487 | /* end confdefs.h. */ |
| 6488 | #include <stddef.h> |
| 6489 | int |
| 6490 | main () |
| 6491 | { |
| 6492 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 6493 | test_array [0] = 0 |
| 6494 | |
| 6495 | ; |
| 6496 | return 0; |
| 6497 | } |
| 6498 | _ACEOF |
| 6499 | rm -f conftest.$ac_objext |
| 6500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6501 | (eval $ac_compile) 2>conftest.er1 |
| 6502 | ac_status=$? |
| 6503 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6504 | rm -f conftest.er1 |
| 6505 | cat conftest.err >&5 |
| 6506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6507 | (exit $ac_status); } && |
| 6508 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6510 | (eval $ac_try) 2>&5 |
| 6511 | ac_status=$? |
| 6512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6513 | (exit $ac_status); }; } && |
| 6514 | { ac_try='test -s conftest.$ac_objext' |
| 6515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6516 | (eval $ac_try) 2>&5 |
| 6517 | ac_status=$? |
| 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6519 | (exit $ac_status); }; }; then |
| 6520 | ac_hi=$ac_mid |
| 6521 | else |
| 6522 | echo "$as_me: failed program was:" >&5 |
| 6523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6524 | |
| 6525 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6526 | fi |
| 6527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6528 | done |
| 6529 | case $ac_lo in |
| 6530 | ?*) res_hi=$ac_lo;; |
| 6531 | '') result=? ;; |
| 6532 | esac |
| 6533 | else |
| 6534 | if test "$cross_compiling" = yes; then |
| 6535 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 6536 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 6537 | { (exit 1); exit 1; }; } |
| 6538 | else |
| 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | /* confdefs.h. */ |
| 6541 | _ACEOF |
| 6542 | cat confdefs.h >>conftest.$ac_ext |
| 6543 | cat >>conftest.$ac_ext <<_ACEOF |
| 6544 | /* end confdefs.h. */ |
| 6545 | #include <stddef.h> |
| 6546 | long longval () { return ~(size_t)0 / 10; } |
| 6547 | unsigned long ulongval () { return ~(size_t)0 / 10; } |
| 6548 | #include <stdio.h> |
| 6549 | #include <stdlib.h> |
| 6550 | int |
| 6551 | main () |
| 6552 | { |
| 6553 | |
| 6554 | FILE *f = fopen ("conftest.val", "w"); |
| 6555 | if (! f) |
| 6556 | exit (1); |
| 6557 | if ((~(size_t)0 / 10) < 0) |
| 6558 | { |
| 6559 | long i = longval (); |
| 6560 | if (i != (~(size_t)0 / 10)) |
| 6561 | exit (1); |
| 6562 | fprintf (f, "%ld\n", i); |
| 6563 | } |
| 6564 | else |
| 6565 | { |
| 6566 | unsigned long i = ulongval (); |
| 6567 | if (i != (~(size_t)0 / 10)) |
| 6568 | exit (1); |
| 6569 | fprintf (f, "%lu\n", i); |
| 6570 | } |
| 6571 | exit (ferror (f) || fclose (f) != 0); |
| 6572 | |
| 6573 | ; |
| 6574 | return 0; |
| 6575 | } |
| 6576 | _ACEOF |
| 6577 | rm -f conftest$ac_exeext |
| 6578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6579 | (eval $ac_link) 2>&5 |
| 6580 | ac_status=$? |
| 6581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6582 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6584 | (eval $ac_try) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); }; }; then |
| 6588 | res_hi=`cat conftest.val` |
| 6589 | else |
| 6590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6591 | echo "$as_me: failed program was:" >&5 |
| 6592 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6593 | |
| 6594 | ( exit $ac_status ) |
| 6595 | result=? |
| 6596 | fi |
| 6597 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6598 | fi |
| 6599 | fi |
| 6600 | rm -f conftest.val |
| 6601 | if test "$cross_compiling" = yes; then |
| 6602 | # Depending upon the size, compute the lo and hi bounds. |
| 6603 | cat >conftest.$ac_ext <<_ACEOF |
| 6604 | /* confdefs.h. */ |
| 6605 | _ACEOF |
| 6606 | cat confdefs.h >>conftest.$ac_ext |
| 6607 | cat >>conftest.$ac_ext <<_ACEOF |
| 6608 | /* end confdefs.h. */ |
| 6609 | #include <stddef.h> |
| 6610 | int |
| 6611 | main () |
| 6612 | { |
| 6613 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 6614 | test_array [0] = 0 |
| 6615 | |
| 6616 | ; |
| 6617 | return 0; |
| 6618 | } |
| 6619 | _ACEOF |
| 6620 | rm -f conftest.$ac_objext |
| 6621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6622 | (eval $ac_compile) 2>conftest.er1 |
| 6623 | ac_status=$? |
| 6624 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6625 | rm -f conftest.er1 |
| 6626 | cat conftest.err >&5 |
| 6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6628 | (exit $ac_status); } && |
| 6629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6631 | (eval $ac_try) 2>&5 |
| 6632 | ac_status=$? |
| 6633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6634 | (exit $ac_status); }; } && |
| 6635 | { ac_try='test -s conftest.$ac_objext' |
| 6636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6637 | (eval $ac_try) 2>&5 |
| 6638 | ac_status=$? |
| 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6640 | (exit $ac_status); }; }; then |
| 6641 | ac_lo=0 ac_mid=0 |
| 6642 | while :; do |
| 6643 | cat >conftest.$ac_ext <<_ACEOF |
| 6644 | /* confdefs.h. */ |
| 6645 | _ACEOF |
| 6646 | cat confdefs.h >>conftest.$ac_ext |
| 6647 | cat >>conftest.$ac_ext <<_ACEOF |
| 6648 | /* end confdefs.h. */ |
| 6649 | #include <stddef.h> |
| 6650 | int |
| 6651 | main () |
| 6652 | { |
| 6653 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 6654 | test_array [0] = 0 |
| 6655 | |
| 6656 | ; |
| 6657 | return 0; |
| 6658 | } |
| 6659 | _ACEOF |
| 6660 | rm -f conftest.$ac_objext |
| 6661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6662 | (eval $ac_compile) 2>conftest.er1 |
| 6663 | ac_status=$? |
| 6664 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6665 | rm -f conftest.er1 |
| 6666 | cat conftest.err >&5 |
| 6667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6668 | (exit $ac_status); } && |
| 6669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6671 | (eval $ac_try) 2>&5 |
| 6672 | ac_status=$? |
| 6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6674 | (exit $ac_status); }; } && |
| 6675 | { ac_try='test -s conftest.$ac_objext' |
| 6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6677 | (eval $ac_try) 2>&5 |
| 6678 | ac_status=$? |
| 6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6680 | (exit $ac_status); }; }; then |
| 6681 | ac_hi=$ac_mid; break |
| 6682 | else |
| 6683 | echo "$as_me: failed program was:" >&5 |
| 6684 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6685 | |
| 6686 | ac_lo=`expr $ac_mid + 1` |
| 6687 | if test $ac_lo -le $ac_mid; then |
| 6688 | ac_lo= ac_hi= |
| 6689 | break |
| 6690 | fi |
| 6691 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6692 | fi |
| 6693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6694 | done |
| 6695 | else |
| 6696 | echo "$as_me: failed program was:" >&5 |
| 6697 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6698 | |
| 6699 | cat >conftest.$ac_ext <<_ACEOF |
| 6700 | /* confdefs.h. */ |
| 6701 | _ACEOF |
| 6702 | cat confdefs.h >>conftest.$ac_ext |
| 6703 | cat >>conftest.$ac_ext <<_ACEOF |
| 6704 | /* end confdefs.h. */ |
| 6705 | #include <stddef.h> |
| 6706 | int |
| 6707 | main () |
| 6708 | { |
| 6709 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 6710 | test_array [0] = 0 |
| 6711 | |
| 6712 | ; |
| 6713 | return 0; |
| 6714 | } |
| 6715 | _ACEOF |
| 6716 | rm -f conftest.$ac_objext |
| 6717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6718 | (eval $ac_compile) 2>conftest.er1 |
| 6719 | ac_status=$? |
| 6720 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6721 | rm -f conftest.er1 |
| 6722 | cat conftest.err >&5 |
| 6723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6724 | (exit $ac_status); } && |
| 6725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6727 | (eval $ac_try) 2>&5 |
| 6728 | ac_status=$? |
| 6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6730 | (exit $ac_status); }; } && |
| 6731 | { ac_try='test -s conftest.$ac_objext' |
| 6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6733 | (eval $ac_try) 2>&5 |
| 6734 | ac_status=$? |
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6736 | (exit $ac_status); }; }; then |
| 6737 | ac_hi=-1 ac_mid=-1 |
| 6738 | while :; do |
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | /* confdefs.h. */ |
| 6741 | _ACEOF |
| 6742 | cat confdefs.h >>conftest.$ac_ext |
| 6743 | cat >>conftest.$ac_ext <<_ACEOF |
| 6744 | /* end confdefs.h. */ |
| 6745 | #include <stddef.h> |
| 6746 | int |
| 6747 | main () |
| 6748 | { |
| 6749 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 6750 | test_array [0] = 0 |
| 6751 | |
| 6752 | ; |
| 6753 | return 0; |
| 6754 | } |
| 6755 | _ACEOF |
| 6756 | rm -f conftest.$ac_objext |
| 6757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6758 | (eval $ac_compile) 2>conftest.er1 |
| 6759 | ac_status=$? |
| 6760 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6761 | rm -f conftest.er1 |
| 6762 | cat conftest.err >&5 |
| 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6764 | (exit $ac_status); } && |
| 6765 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6767 | (eval $ac_try) 2>&5 |
| 6768 | ac_status=$? |
| 6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6770 | (exit $ac_status); }; } && |
| 6771 | { ac_try='test -s conftest.$ac_objext' |
| 6772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6773 | (eval $ac_try) 2>&5 |
| 6774 | ac_status=$? |
| 6775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6776 | (exit $ac_status); }; }; then |
| 6777 | ac_lo=$ac_mid; break |
| 6778 | else |
| 6779 | echo "$as_me: failed program was:" >&5 |
| 6780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6781 | |
| 6782 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6783 | if test $ac_mid -le $ac_hi; then |
| 6784 | ac_lo= ac_hi= |
| 6785 | break |
| 6786 | fi |
| 6787 | ac_mid=`expr 2 '*' $ac_mid` |
| 6788 | fi |
| 6789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6790 | done |
| 6791 | else |
| 6792 | echo "$as_me: failed program was:" >&5 |
| 6793 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6794 | |
| 6795 | ac_lo= ac_hi= |
| 6796 | fi |
| 6797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6798 | fi |
| 6799 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6800 | # Binary search between lo and hi bounds. |
| 6801 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6802 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6803 | cat >conftest.$ac_ext <<_ACEOF |
| 6804 | /* confdefs.h. */ |
| 6805 | _ACEOF |
| 6806 | cat confdefs.h >>conftest.$ac_ext |
| 6807 | cat >>conftest.$ac_ext <<_ACEOF |
| 6808 | /* end confdefs.h. */ |
| 6809 | #include <stddef.h> |
| 6810 | int |
| 6811 | main () |
| 6812 | { |
| 6813 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 6814 | test_array [0] = 0 |
| 6815 | |
| 6816 | ; |
| 6817 | return 0; |
| 6818 | } |
| 6819 | _ACEOF |
| 6820 | rm -f conftest.$ac_objext |
| 6821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6822 | (eval $ac_compile) 2>conftest.er1 |
| 6823 | ac_status=$? |
| 6824 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6825 | rm -f conftest.er1 |
| 6826 | cat conftest.err >&5 |
| 6827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6828 | (exit $ac_status); } && |
| 6829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6831 | (eval $ac_try) 2>&5 |
| 6832 | ac_status=$? |
| 6833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6834 | (exit $ac_status); }; } && |
| 6835 | { ac_try='test -s conftest.$ac_objext' |
| 6836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6837 | (eval $ac_try) 2>&5 |
| 6838 | ac_status=$? |
| 6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6840 | (exit $ac_status); }; }; then |
| 6841 | ac_hi=$ac_mid |
| 6842 | else |
| 6843 | echo "$as_me: failed program was:" >&5 |
| 6844 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6845 | |
| 6846 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6847 | fi |
| 6848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6849 | done |
| 6850 | case $ac_lo in |
| 6851 | ?*) res_lo=$ac_lo;; |
| 6852 | '') result=? ;; |
| 6853 | esac |
| 6854 | else |
| 6855 | if test "$cross_compiling" = yes; then |
| 6856 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 6857 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 6858 | { (exit 1); exit 1; }; } |
| 6859 | else |
| 6860 | cat >conftest.$ac_ext <<_ACEOF |
| 6861 | /* confdefs.h. */ |
| 6862 | _ACEOF |
| 6863 | cat confdefs.h >>conftest.$ac_ext |
| 6864 | cat >>conftest.$ac_ext <<_ACEOF |
| 6865 | /* end confdefs.h. */ |
| 6866 | #include <stddef.h> |
| 6867 | long longval () { return ~(size_t)0 % 10; } |
| 6868 | unsigned long ulongval () { return ~(size_t)0 % 10; } |
| 6869 | #include <stdio.h> |
| 6870 | #include <stdlib.h> |
| 6871 | int |
| 6872 | main () |
| 6873 | { |
| 6874 | |
| 6875 | FILE *f = fopen ("conftest.val", "w"); |
| 6876 | if (! f) |
| 6877 | exit (1); |
| 6878 | if ((~(size_t)0 % 10) < 0) |
| 6879 | { |
| 6880 | long i = longval (); |
| 6881 | if (i != (~(size_t)0 % 10)) |
| 6882 | exit (1); |
| 6883 | fprintf (f, "%ld\n", i); |
| 6884 | } |
| 6885 | else |
| 6886 | { |
| 6887 | unsigned long i = ulongval (); |
| 6888 | if (i != (~(size_t)0 % 10)) |
| 6889 | exit (1); |
| 6890 | fprintf (f, "%lu\n", i); |
| 6891 | } |
| 6892 | exit (ferror (f) || fclose (f) != 0); |
| 6893 | |
| 6894 | ; |
| 6895 | return 0; |
| 6896 | } |
| 6897 | _ACEOF |
| 6898 | rm -f conftest$ac_exeext |
| 6899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6900 | (eval $ac_link) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6905 | (eval $ac_try) 2>&5 |
| 6906 | ac_status=$? |
| 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6908 | (exit $ac_status); }; }; then |
| 6909 | res_lo=`cat conftest.val` |
| 6910 | else |
| 6911 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6912 | echo "$as_me: failed program was:" >&5 |
| 6913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6914 | |
| 6915 | ( exit $ac_status ) |
| 6916 | result=? |
| 6917 | fi |
| 6918 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6919 | fi |
| 6920 | fi |
| 6921 | rm -f conftest.val |
| 6922 | if test "$cross_compiling" = yes; then |
| 6923 | # Depending upon the size, compute the lo and hi bounds. |
| 6924 | cat >conftest.$ac_ext <<_ACEOF |
| 6925 | /* confdefs.h. */ |
| 6926 | _ACEOF |
| 6927 | cat confdefs.h >>conftest.$ac_ext |
| 6928 | cat >>conftest.$ac_ext <<_ACEOF |
| 6929 | /* end confdefs.h. */ |
| 6930 | #include <stddef.h> |
| 6931 | int |
| 6932 | main () |
| 6933 | { |
| 6934 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 6935 | test_array [0] = 0 |
| 6936 | |
| 6937 | ; |
| 6938 | return 0; |
| 6939 | } |
| 6940 | _ACEOF |
| 6941 | rm -f conftest.$ac_objext |
| 6942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6943 | (eval $ac_compile) 2>conftest.er1 |
| 6944 | ac_status=$? |
| 6945 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6946 | rm -f conftest.er1 |
| 6947 | cat conftest.err >&5 |
| 6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6949 | (exit $ac_status); } && |
| 6950 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6952 | (eval $ac_try) 2>&5 |
| 6953 | ac_status=$? |
| 6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6955 | (exit $ac_status); }; } && |
| 6956 | { ac_try='test -s conftest.$ac_objext' |
| 6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6958 | (eval $ac_try) 2>&5 |
| 6959 | ac_status=$? |
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6961 | (exit $ac_status); }; }; then |
| 6962 | ac_lo=0 ac_mid=0 |
| 6963 | while :; do |
| 6964 | cat >conftest.$ac_ext <<_ACEOF |
| 6965 | /* confdefs.h. */ |
| 6966 | _ACEOF |
| 6967 | cat confdefs.h >>conftest.$ac_ext |
| 6968 | cat >>conftest.$ac_ext <<_ACEOF |
| 6969 | /* end confdefs.h. */ |
| 6970 | #include <stddef.h> |
| 6971 | int |
| 6972 | main () |
| 6973 | { |
| 6974 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 6975 | test_array [0] = 0 |
| 6976 | |
| 6977 | ; |
| 6978 | return 0; |
| 6979 | } |
| 6980 | _ACEOF |
| 6981 | rm -f conftest.$ac_objext |
| 6982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6983 | (eval $ac_compile) 2>conftest.er1 |
| 6984 | ac_status=$? |
| 6985 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6986 | rm -f conftest.er1 |
| 6987 | cat conftest.err >&5 |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); } && |
| 6990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 6991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6992 | (eval $ac_try) 2>&5 |
| 6993 | ac_status=$? |
| 6994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6995 | (exit $ac_status); }; } && |
| 6996 | { ac_try='test -s conftest.$ac_objext' |
| 6997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6998 | (eval $ac_try) 2>&5 |
| 6999 | ac_status=$? |
| 7000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7001 | (exit $ac_status); }; }; then |
| 7002 | ac_hi=$ac_mid; break |
| 7003 | else |
| 7004 | echo "$as_me: failed program was:" >&5 |
| 7005 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7006 | |
| 7007 | ac_lo=`expr $ac_mid + 1` |
| 7008 | if test $ac_lo -le $ac_mid; then |
| 7009 | ac_lo= ac_hi= |
| 7010 | break |
| 7011 | fi |
| 7012 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7013 | fi |
| 7014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7015 | done |
| 7016 | else |
| 7017 | echo "$as_me: failed program was:" >&5 |
| 7018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7019 | |
| 7020 | cat >conftest.$ac_ext <<_ACEOF |
| 7021 | /* confdefs.h. */ |
| 7022 | _ACEOF |
| 7023 | cat confdefs.h >>conftest.$ac_ext |
| 7024 | cat >>conftest.$ac_ext <<_ACEOF |
| 7025 | /* end confdefs.h. */ |
| 7026 | #include <stddef.h> |
| 7027 | int |
| 7028 | main () |
| 7029 | { |
| 7030 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7031 | test_array [0] = 0 |
| 7032 | |
| 7033 | ; |
| 7034 | return 0; |
| 7035 | } |
| 7036 | _ACEOF |
| 7037 | rm -f conftest.$ac_objext |
| 7038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7039 | (eval $ac_compile) 2>conftest.er1 |
| 7040 | ac_status=$? |
| 7041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7042 | rm -f conftest.er1 |
| 7043 | cat conftest.err >&5 |
| 7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7045 | (exit $ac_status); } && |
| 7046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7048 | (eval $ac_try) 2>&5 |
| 7049 | ac_status=$? |
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7051 | (exit $ac_status); }; } && |
| 7052 | { ac_try='test -s conftest.$ac_objext' |
| 7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7054 | (eval $ac_try) 2>&5 |
| 7055 | ac_status=$? |
| 7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7057 | (exit $ac_status); }; }; then |
| 7058 | ac_hi=-1 ac_mid=-1 |
| 7059 | while :; do |
| 7060 | cat >conftest.$ac_ext <<_ACEOF |
| 7061 | /* confdefs.h. */ |
| 7062 | _ACEOF |
| 7063 | cat confdefs.h >>conftest.$ac_ext |
| 7064 | cat >>conftest.$ac_ext <<_ACEOF |
| 7065 | /* end confdefs.h. */ |
| 7066 | #include <stddef.h> |
| 7067 | int |
| 7068 | main () |
| 7069 | { |
| 7070 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7071 | test_array [0] = 0 |
| 7072 | |
| 7073 | ; |
| 7074 | return 0; |
| 7075 | } |
| 7076 | _ACEOF |
| 7077 | rm -f conftest.$ac_objext |
| 7078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7079 | (eval $ac_compile) 2>conftest.er1 |
| 7080 | ac_status=$? |
| 7081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7082 | rm -f conftest.er1 |
| 7083 | cat conftest.err >&5 |
| 7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7085 | (exit $ac_status); } && |
| 7086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7088 | (eval $ac_try) 2>&5 |
| 7089 | ac_status=$? |
| 7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7091 | (exit $ac_status); }; } && |
| 7092 | { ac_try='test -s conftest.$ac_objext' |
| 7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7094 | (eval $ac_try) 2>&5 |
| 7095 | ac_status=$? |
| 7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7097 | (exit $ac_status); }; }; then |
| 7098 | ac_lo=$ac_mid; break |
| 7099 | else |
| 7100 | echo "$as_me: failed program was:" >&5 |
| 7101 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7102 | |
| 7103 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7104 | if test $ac_mid -le $ac_hi; then |
| 7105 | ac_lo= ac_hi= |
| 7106 | break |
| 7107 | fi |
| 7108 | ac_mid=`expr 2 '*' $ac_mid` |
| 7109 | fi |
| 7110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7111 | done |
| 7112 | else |
| 7113 | echo "$as_me: failed program was:" >&5 |
| 7114 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7115 | |
| 7116 | ac_lo= ac_hi= |
| 7117 | fi |
| 7118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7119 | fi |
| 7120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7121 | # Binary search between lo and hi bounds. |
| 7122 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7123 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7124 | cat >conftest.$ac_ext <<_ACEOF |
| 7125 | /* confdefs.h. */ |
| 7126 | _ACEOF |
| 7127 | cat confdefs.h >>conftest.$ac_ext |
| 7128 | cat >>conftest.$ac_ext <<_ACEOF |
| 7129 | /* end confdefs.h. */ |
| 7130 | #include <stddef.h> |
| 7131 | int |
| 7132 | main () |
| 7133 | { |
| 7134 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7135 | test_array [0] = 0 |
| 7136 | |
| 7137 | ; |
| 7138 | return 0; |
| 7139 | } |
| 7140 | _ACEOF |
| 7141 | rm -f conftest.$ac_objext |
| 7142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7143 | (eval $ac_compile) 2>conftest.er1 |
| 7144 | ac_status=$? |
| 7145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7146 | rm -f conftest.er1 |
| 7147 | cat conftest.err >&5 |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); } && |
| 7150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7152 | (eval $ac_try) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); }; } && |
| 7156 | { ac_try='test -s conftest.$ac_objext' |
| 7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7158 | (eval $ac_try) 2>&5 |
| 7159 | ac_status=$? |
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7161 | (exit $ac_status); }; }; then |
| 7162 | ac_hi=$ac_mid |
| 7163 | else |
| 7164 | echo "$as_me: failed program was:" >&5 |
| 7165 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7166 | |
| 7167 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7168 | fi |
| 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7170 | done |
| 7171 | case $ac_lo in |
| 7172 | ?*) fits_in_uint=$ac_lo;; |
| 7173 | '') result=? ;; |
| 7174 | esac |
| 7175 | else |
| 7176 | if test "$cross_compiling" = yes; then |
| 7177 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 7178 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 7179 | { (exit 1); exit 1; }; } |
| 7180 | else |
| 7181 | cat >conftest.$ac_ext <<_ACEOF |
| 7182 | /* confdefs.h. */ |
| 7183 | _ACEOF |
| 7184 | cat confdefs.h >>conftest.$ac_ext |
| 7185 | cat >>conftest.$ac_ext <<_ACEOF |
| 7186 | /* end confdefs.h. */ |
| 7187 | #include <stddef.h> |
| 7188 | long longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7189 | unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7190 | #include <stdio.h> |
| 7191 | #include <stdlib.h> |
| 7192 | int |
| 7193 | main () |
| 7194 | { |
| 7195 | |
| 7196 | FILE *f = fopen ("conftest.val", "w"); |
| 7197 | if (! f) |
| 7198 | exit (1); |
| 7199 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7200 | { |
| 7201 | long i = longval (); |
| 7202 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 7203 | exit (1); |
| 7204 | fprintf (f, "%ld\n", i); |
| 7205 | } |
| 7206 | else |
| 7207 | { |
| 7208 | unsigned long i = ulongval (); |
| 7209 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
| 7210 | exit (1); |
| 7211 | fprintf (f, "%lu\n", i); |
| 7212 | } |
| 7213 | exit (ferror (f) || fclose (f) != 0); |
| 7214 | |
| 7215 | ; |
| 7216 | return 0; |
| 7217 | } |
| 7218 | _ACEOF |
| 7219 | rm -f conftest$ac_exeext |
| 7220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7221 | (eval $ac_link) 2>&5 |
| 7222 | ac_status=$? |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7226 | (eval $ac_try) 2>&5 |
| 7227 | ac_status=$? |
| 7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7229 | (exit $ac_status); }; }; then |
| 7230 | fits_in_uint=`cat conftest.val` |
| 7231 | else |
| 7232 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7233 | echo "$as_me: failed program was:" >&5 |
| 7234 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7235 | |
| 7236 | ( exit $ac_status ) |
| 7237 | result=? |
| 7238 | fi |
| 7239 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7240 | fi |
| 7241 | fi |
| 7242 | rm -f conftest.val |
| 7243 | if test "$fits_in_uint" = 1; then |
| 7244 | cat >conftest.$ac_ext <<_ACEOF |
| 7245 | /* confdefs.h. */ |
| 7246 | _ACEOF |
| 7247 | cat confdefs.h >>conftest.$ac_ext |
| 7248 | cat >>conftest.$ac_ext <<_ACEOF |
| 7249 | /* end confdefs.h. */ |
| 7250 | #include <stddef.h> |
| 7251 | extern size_t foo; |
| 7252 | extern unsigned long foo; |
| 7253 | |
| 7254 | int |
| 7255 | main () |
| 7256 | { |
| 7257 | |
| 7258 | ; |
| 7259 | return 0; |
| 7260 | } |
| 7261 | _ACEOF |
| 7262 | rm -f conftest.$ac_objext |
| 7263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7264 | (eval $ac_compile) 2>conftest.er1 |
| 7265 | ac_status=$? |
| 7266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7267 | rm -f conftest.er1 |
| 7268 | cat conftest.err >&5 |
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7270 | (exit $ac_status); } && |
| 7271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7273 | (eval $ac_try) 2>&5 |
| 7274 | ac_status=$? |
| 7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7276 | (exit $ac_status); }; } && |
| 7277 | { ac_try='test -s conftest.$ac_objext' |
| 7278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7279 | (eval $ac_try) 2>&5 |
| 7280 | ac_status=$? |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); }; }; then |
| 7283 | fits_in_uint=0 |
| 7284 | else |
| 7285 | echo "$as_me: failed program was:" >&5 |
| 7286 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7287 | |
| 7288 | fi |
| 7289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7290 | fi |
| 7291 | if test -z "$result"; then |
| 7292 | if test "$fits_in_uint" = 1; then |
| 7293 | result="$res_hi$res_lo"U |
| 7294 | else |
| 7295 | result="$res_hi$res_lo"UL |
| 7296 | fi |
| 7297 | else |
| 7298 | result='~(size_t)0' |
| 7299 | fi |
| 7300 | fi |
| 7301 | echo "$as_me:$LINENO: result: $result" >&5 |
| 7302 | echo "${ECHO_T}$result" >&6 |
| 7303 | if test "$result" != yes; then |
| 7304 | |
| 7305 | cat >>confdefs.h <<_ACEOF |
| 7306 | #define SIZE_MAX $result |
| 7307 | _ACEOF |
| 7308 | |
| 7309 | fi |
| 7310 | |
| 7311 | |
| 7312 | |
| 7313 | |
| 7314 | for ac_header in stdint.h |
| 7315 | do |
| 7316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7322 | fi |
| 7323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7325 | else |
| 7326 | # Is the header compilable? |
| 7327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 7329 | cat >conftest.$ac_ext <<_ACEOF |
| 7330 | /* confdefs.h. */ |
| 7331 | _ACEOF |
| 7332 | cat confdefs.h >>conftest.$ac_ext |
| 7333 | cat >>conftest.$ac_ext <<_ACEOF |
| 7334 | /* end confdefs.h. */ |
| 7335 | $ac_includes_default |
| 7336 | #include <$ac_header> |
| 7337 | _ACEOF |
| 7338 | rm -f conftest.$ac_objext |
| 7339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7340 | (eval $ac_compile) 2>conftest.er1 |
| 7341 | ac_status=$? |
| 7342 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7343 | rm -f conftest.er1 |
| 7344 | cat conftest.err >&5 |
| 7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7346 | (exit $ac_status); } && |
| 7347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 7348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7349 | (eval $ac_try) 2>&5 |
| 7350 | ac_status=$? |
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7352 | (exit $ac_status); }; } && |
| 7353 | { ac_try='test -s conftest.$ac_objext' |
| 7354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7355 | (eval $ac_try) 2>&5 |
| 7356 | ac_status=$? |
| 7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7358 | (exit $ac_status); }; }; then |
| 7359 | ac_header_compiler=yes |
| 7360 | else |
| 7361 | echo "$as_me: failed program was:" >&5 |
| 7362 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7363 | |
| 7364 | ac_header_compiler=no |
| 7365 | fi |
| 7366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7367 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7368 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 7369 | |
| 7370 | # Is the header present? |
| 7371 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7372 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 7373 | cat >conftest.$ac_ext <<_ACEOF |
| 7374 | /* confdefs.h. */ |
| 7375 | _ACEOF |
| 7376 | cat confdefs.h >>conftest.$ac_ext |
| 7377 | cat >>conftest.$ac_ext <<_ACEOF |
| 7378 | /* end confdefs.h. */ |
| 7379 | #include <$ac_header> |
| 7380 | _ACEOF |
| 7381 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 7382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7383 | ac_status=$? |
| 7384 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7385 | rm -f conftest.er1 |
| 7386 | cat conftest.err >&5 |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); } >/dev/null; then |
| 7389 | if test -s conftest.err; then |
| 7390 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 7391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 7392 | else |
| 7393 | ac_cpp_err= |
| 7394 | fi |
| 7395 | else |
| 7396 | ac_cpp_err=yes |
| 7397 | fi |
| 7398 | if test -z "$ac_cpp_err"; then |
| 7399 | ac_header_preproc=yes |
| 7400 | else |
| 7401 | echo "$as_me: failed program was:" >&5 |
| 7402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7403 | |
| 7404 | ac_header_preproc=no |
| 7405 | fi |
| 7406 | rm -f conftest.err conftest.$ac_ext |
| 7407 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7408 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 7409 | |
| 7410 | # So? What about this header? |
| 7411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7412 | yes:no: ) |
| 7413 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7414 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7415 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7416 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7417 | ac_header_preproc=yes |
| 7418 | ;; |
| 7419 | no:yes:* ) |
| 7420 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7421 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7422 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7423 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7424 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7425 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7426 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7427 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7429 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7430 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7431 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 7432 | ( |
| 7433 | cat <<\_ASBOX |
| 7434 | ## ------------------------------------------ ## |
| 7435 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 7436 | ## ------------------------------------------ ## |
| 7437 | _ASBOX |
| 7438 | ) | |
| 7439 | sed "s/^/$as_me: WARNING: /" >&2 |
| 7440 | ;; |
| 7441 | esac |
| 7442 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 7444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 7445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7446 | else |
| 7447 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7448 | fi |
| 7449 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 7450 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 7451 | |
| 7452 | fi |
| 7453 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7454 | cat >>confdefs.h <<_ACEOF |
| 7455 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7456 | _ACEOF |
| 7457 | |
| 7458 | fi |
| 7459 | |
| 7460 | done |
| 7461 | |
| 7462 | |
| 7463 | |
| 7464 | if test "X$prefix" = "XNONE"; then |
| 7465 | acl_final_prefix="$ac_default_prefix" |
| 7466 | else |
| 7467 | acl_final_prefix="$prefix" |
| 7468 | fi |
| 7469 | if test "X$exec_prefix" = "XNONE"; then |
| 7470 | acl_final_exec_prefix='${prefix}' |
| 7471 | else |
| 7472 | acl_final_exec_prefix="$exec_prefix" |
| 7473 | fi |
| 7474 | acl_save_prefix="$prefix" |
| 7475 | prefix="$acl_final_prefix" |
| 7476 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7477 | prefix="$acl_save_prefix" |
| 7478 | |
| 7479 | |
| 7480 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 7481 | if test "${with_gnu_ld+set}" = set; then |
| 7482 | withval="$with_gnu_ld" |
| 7483 | test "$withval" = no || with_gnu_ld=yes |
| 7484 | else |
| 7485 | with_gnu_ld=no |
| 7486 | fi; |
| 7487 | # Prepare PATH_SEPARATOR. |
| 7488 | # The user is always right. |
| 7489 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7490 | echo "#! /bin/sh" >conf$$.sh |
| 7491 | echo "exit 0" >>conf$$.sh |
| 7492 | chmod +x conf$$.sh |
| 7493 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7494 | PATH_SEPARATOR=';' |
| 7495 | else |
| 7496 | PATH_SEPARATOR=: |
| 7497 | fi |
| 7498 | rm -f conf$$.sh |
| 7499 | fi |
| 7500 | ac_prog=ld |
| 7501 | if test "$GCC" = yes; then |
| 7502 | # Check if gcc -print-prog-name=ld gives a path. |
| 7503 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 7504 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 7505 | case $host in |
| 7506 | *-*-mingw*) |
| 7507 | # gcc leaves a trailing carriage return which upsets mingw |
| 7508 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7509 | *) |
| 7510 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7511 | esac |
| 7512 | case $ac_prog in |
| 7513 | # Accept absolute paths. |
| 7514 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7515 | re_direlt='/[^/][^/]*/\.\./' |
| 7516 | # Canonicalize the path of ld |
| 7517 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7518 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7519 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7520 | done |
| 7521 | test -z "$LD" && LD="$ac_prog" |
| 7522 | ;; |
| 7523 | "") |
| 7524 | # If it fails, then pretend we aren't using GCC. |
| 7525 | ac_prog=ld |
| 7526 | ;; |
| 7527 | *) |
| 7528 | # If it is relative, then search for the first ld in PATH. |
| 7529 | with_gnu_ld=unknown |
| 7530 | ;; |
| 7531 | esac |
| 7532 | elif test "$with_gnu_ld" = yes; then |
| 7533 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 7534 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 7535 | else |
| 7536 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 7537 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 7538 | fi |
| 7539 | if test "${acl_cv_path_LD+set}" = set; then |
| 7540 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7541 | else |
| 7542 | if test -z "$LD"; then |
| 7543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7544 | for ac_dir in $PATH; do |
| 7545 | test -z "$ac_dir" && ac_dir=. |
| 7546 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7547 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7548 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7549 | # but apparently some GNU ld's only accept -v. |
| 7550 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7551 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7552 | *GNU* | *'with BFD'*) |
| 7553 | test "$with_gnu_ld" != no && break ;; |
| 7554 | *) |
| 7555 | test "$with_gnu_ld" != yes && break ;; |
| 7556 | esac |
| 7557 | fi |
| 7558 | done |
| 7559 | IFS="$ac_save_ifs" |
| 7560 | else |
| 7561 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7562 | fi |
| 7563 | fi |
| 7564 | |
| 7565 | LD="$acl_cv_path_LD" |
| 7566 | if test -n "$LD"; then |
| 7567 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 7568 | echo "${ECHO_T}$LD" >&6 |
| 7569 | else |
| 7570 | echo "$as_me:$LINENO: result: no" >&5 |
| 7571 | echo "${ECHO_T}no" >&6 |
| 7572 | fi |
| 7573 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 7574 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 7575 | { (exit 1); exit 1; }; } |
| 7576 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 7577 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 7578 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7580 | else |
| 7581 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7582 | case `$LD -v 2>&1 </dev/null` in |
| 7583 | *GNU* | *'with BFD'*) |
| 7584 | acl_cv_prog_gnu_ld=yes ;; |
| 7585 | *) |
| 7586 | acl_cv_prog_gnu_ld=no ;; |
| 7587 | esac |
| 7588 | fi |
| 7589 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 7590 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 |
| 7591 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7592 | |
| 7593 | |
| 7594 | |
| 7595 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 7596 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 |
| 7597 | if test "${acl_cv_rpath+set}" = set; then |
| 7598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7599 | else |
| 7600 | |
| 7601 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7602 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7603 | . ./conftest.sh |
| 7604 | rm -f ./conftest.sh |
| 7605 | acl_cv_rpath=done |
| 7606 | |
| 7607 | fi |
| 7608 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 7609 | echo "${ECHO_T}$acl_cv_rpath" >&6 |
| 7610 | wl="$acl_cv_wl" |
| 7611 | libext="$acl_cv_libext" |
| 7612 | shlibext="$acl_cv_shlibext" |
| 7613 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7614 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7615 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7616 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 7617 | # Check whether --enable-rpath or --disable-rpath was given. |
| 7618 | if test "${enable_rpath+set}" = set; then |
| 7619 | enableval="$enable_rpath" |
| 7620 | : |
| 7621 | else |
| 7622 | enable_rpath=yes |
| 7623 | fi; |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7631 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7632 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7633 | acl_save_prefix="$prefix" |
| 7634 | prefix="$acl_final_prefix" |
| 7635 | acl_save_exec_prefix="$exec_prefix" |
| 7636 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7637 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7638 | eval additional_includedir=\"$includedir\" |
| 7639 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7640 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7641 | exec_prefix="$acl_save_exec_prefix" |
| 7642 | prefix="$acl_save_prefix" |
| 7643 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7644 | |
| 7645 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7646 | if test "${with_libiconv_prefix+set}" = set; then |
| 7647 | withval="$with_libiconv_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7648 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7649 | if test "X$withval" = "Xno"; then |
| 7650 | use_additional=no |
| 7651 | else |
| 7652 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7653 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7654 | acl_save_prefix="$prefix" |
| 7655 | prefix="$acl_final_prefix" |
| 7656 | acl_save_exec_prefix="$exec_prefix" |
| 7657 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7659 | eval additional_includedir=\"$includedir\" |
| 7660 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7661 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7662 | exec_prefix="$acl_save_exec_prefix" |
| 7663 | prefix="$acl_save_prefix" |
| 7664 | |
| 7665 | else |
| 7666 | additional_includedir="$withval/include" |
| 7667 | additional_libdir="$withval/lib" |
| 7668 | fi |
| 7669 | fi |
| 7670 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7671 | fi; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7672 | LIBICONV= |
| 7673 | LTLIBICONV= |
| 7674 | INCICONV= |
| 7675 | rpathdirs= |
| 7676 | ltrpathdirs= |
| 7677 | names_already_handled= |
| 7678 | names_next_round='iconv ' |
| 7679 | while test -n "$names_next_round"; do |
| 7680 | names_this_round="$names_next_round" |
| 7681 | names_next_round= |
| 7682 | for name in $names_this_round; do |
| 7683 | already_handled= |
| 7684 | for n in $names_already_handled; do |
| 7685 | if test "$n" = "$name"; then |
| 7686 | already_handled=yes |
| 7687 | break |
| 7688 | fi |
| 7689 | done |
| 7690 | if test -z "$already_handled"; then |
| 7691 | names_already_handled="$names_already_handled $name" |
| 7692 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7693 | eval value=\"\$HAVE_LIB$uppername\" |
| 7694 | if test -n "$value"; then |
| 7695 | if test "$value" = yes; then |
| 7696 | eval value=\"\$LIB$uppername\" |
| 7697 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7698 | eval value=\"\$LTLIB$uppername\" |
| 7699 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7700 | else |
| 7701 | : |
| 7702 | fi |
| 7703 | else |
| 7704 | found_dir= |
| 7705 | found_la= |
| 7706 | found_so= |
| 7707 | found_a= |
| 7708 | if test $use_additional = yes; then |
| 7709 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7710 | found_dir="$additional_libdir" |
| 7711 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7712 | if test -f "$additional_libdir/lib$name.la"; then |
| 7713 | found_la="$additional_libdir/lib$name.la" |
| 7714 | fi |
| 7715 | else |
| 7716 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7717 | found_dir="$additional_libdir" |
| 7718 | found_a="$additional_libdir/lib$name.$libext" |
| 7719 | if test -f "$additional_libdir/lib$name.la"; then |
| 7720 | found_la="$additional_libdir/lib$name.la" |
| 7721 | fi |
| 7722 | fi |
| 7723 | fi |
| 7724 | fi |
| 7725 | if test "X$found_dir" = "X"; then |
| 7726 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7727 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7728 | acl_save_prefix="$prefix" |
| 7729 | prefix="$acl_final_prefix" |
| 7730 | acl_save_exec_prefix="$exec_prefix" |
| 7731 | exec_prefix="$acl_final_exec_prefix" |
| 7732 | eval x=\"$x\" |
| 7733 | exec_prefix="$acl_save_exec_prefix" |
| 7734 | prefix="$acl_save_prefix" |
| 7735 | |
| 7736 | case "$x" in |
| 7737 | -L*) |
| 7738 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7739 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7740 | found_dir="$dir" |
| 7741 | found_so="$dir/lib$name.$shlibext" |
| 7742 | if test -f "$dir/lib$name.la"; then |
| 7743 | found_la="$dir/lib$name.la" |
| 7744 | fi |
| 7745 | else |
| 7746 | if test -f "$dir/lib$name.$libext"; then |
| 7747 | found_dir="$dir" |
| 7748 | found_a="$dir/lib$name.$libext" |
| 7749 | if test -f "$dir/lib$name.la"; then |
| 7750 | found_la="$dir/lib$name.la" |
| 7751 | fi |
| 7752 | fi |
| 7753 | fi |
| 7754 | ;; |
| 7755 | esac |
| 7756 | if test "X$found_dir" != "X"; then |
| 7757 | break |
| 7758 | fi |
| 7759 | done |
| 7760 | fi |
| 7761 | if test "X$found_dir" != "X"; then |
| 7762 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7763 | if test "X$found_so" != "X"; then |
| 7764 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7765 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7766 | else |
| 7767 | haveit= |
| 7768 | for x in $ltrpathdirs; do |
| 7769 | if test "X$x" = "X$found_dir"; then |
| 7770 | haveit=yes |
| 7771 | break |
| 7772 | fi |
| 7773 | done |
| 7774 | if test -z "$haveit"; then |
| 7775 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7776 | fi |
| 7777 | if test "$hardcode_direct" = yes; then |
| 7778 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7779 | else |
| 7780 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7781 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7782 | haveit= |
| 7783 | for x in $rpathdirs; do |
| 7784 | if test "X$x" = "X$found_dir"; then |
| 7785 | haveit=yes |
| 7786 | break |
| 7787 | fi |
| 7788 | done |
| 7789 | if test -z "$haveit"; then |
| 7790 | rpathdirs="$rpathdirs $found_dir" |
| 7791 | fi |
| 7792 | else |
| 7793 | haveit= |
| 7794 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7795 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7796 | acl_save_prefix="$prefix" |
| 7797 | prefix="$acl_final_prefix" |
| 7798 | acl_save_exec_prefix="$exec_prefix" |
| 7799 | exec_prefix="$acl_final_exec_prefix" |
| 7800 | eval x=\"$x\" |
| 7801 | exec_prefix="$acl_save_exec_prefix" |
| 7802 | prefix="$acl_save_prefix" |
| 7803 | |
| 7804 | if test "X$x" = "X-L$found_dir"; then |
| 7805 | haveit=yes |
| 7806 | break |
| 7807 | fi |
| 7808 | done |
| 7809 | if test -z "$haveit"; then |
| 7810 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7811 | fi |
| 7812 | if test "$hardcode_minus_L" != no; then |
| 7813 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7814 | else |
| 7815 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7816 | fi |
| 7817 | fi |
| 7818 | fi |
| 7819 | fi |
| 7820 | else |
| 7821 | if test "X$found_a" != "X"; then |
| 7822 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7823 | else |
| 7824 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7825 | fi |
| 7826 | fi |
| 7827 | additional_includedir= |
| 7828 | case "$found_dir" in |
| 7829 | */lib | */lib/) |
| 7830 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7831 | additional_includedir="$basedir/include" |
| 7832 | ;; |
| 7833 | esac |
| 7834 | if test "X$additional_includedir" != "X"; then |
| 7835 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7836 | haveit= |
| 7837 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7838 | if test -n "$GCC"; then |
| 7839 | case $host_os in |
| 7840 | linux*) haveit=yes;; |
| 7841 | esac |
| 7842 | fi |
| 7843 | fi |
| 7844 | if test -z "$haveit"; then |
| 7845 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7846 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7847 | acl_save_prefix="$prefix" |
| 7848 | prefix="$acl_final_prefix" |
| 7849 | acl_save_exec_prefix="$exec_prefix" |
| 7850 | exec_prefix="$acl_final_exec_prefix" |
| 7851 | eval x=\"$x\" |
| 7852 | exec_prefix="$acl_save_exec_prefix" |
| 7853 | prefix="$acl_save_prefix" |
| 7854 | |
| 7855 | if test "X$x" = "X-I$additional_includedir"; then |
| 7856 | haveit=yes |
| 7857 | break |
| 7858 | fi |
| 7859 | done |
| 7860 | if test -z "$haveit"; then |
| 7861 | if test -d "$additional_includedir"; then |
| 7862 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 7863 | fi |
| 7864 | fi |
| 7865 | fi |
| 7866 | fi |
| 7867 | fi |
| 7868 | if test -n "$found_la"; then |
| 7869 | save_libdir="$libdir" |
| 7870 | case "$found_la" in |
| 7871 | */* | *\\*) . "$found_la" ;; |
| 7872 | *) . "./$found_la" ;; |
| 7873 | esac |
| 7874 | libdir="$save_libdir" |
| 7875 | for dep in $dependency_libs; do |
| 7876 | case "$dep" in |
| 7877 | -L*) |
| 7878 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 7879 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 7880 | haveit= |
| 7881 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 7882 | if test -n "$GCC"; then |
| 7883 | case $host_os in |
| 7884 | linux*) haveit=yes;; |
| 7885 | esac |
| 7886 | fi |
| 7887 | fi |
| 7888 | if test -z "$haveit"; then |
| 7889 | haveit= |
| 7890 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7891 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7892 | acl_save_prefix="$prefix" |
| 7893 | prefix="$acl_final_prefix" |
| 7894 | acl_save_exec_prefix="$exec_prefix" |
| 7895 | exec_prefix="$acl_final_exec_prefix" |
| 7896 | eval x=\"$x\" |
| 7897 | exec_prefix="$acl_save_exec_prefix" |
| 7898 | prefix="$acl_save_prefix" |
| 7899 | |
| 7900 | if test "X$x" = "X-L$additional_libdir"; then |
| 7901 | haveit=yes |
| 7902 | break |
| 7903 | fi |
| 7904 | done |
| 7905 | if test -z "$haveit"; then |
| 7906 | if test -d "$additional_libdir"; then |
| 7907 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 7908 | fi |
| 7909 | fi |
| 7910 | haveit= |
| 7911 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7912 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7913 | acl_save_prefix="$prefix" |
| 7914 | prefix="$acl_final_prefix" |
| 7915 | acl_save_exec_prefix="$exec_prefix" |
| 7916 | exec_prefix="$acl_final_exec_prefix" |
| 7917 | eval x=\"$x\" |
| 7918 | exec_prefix="$acl_save_exec_prefix" |
| 7919 | prefix="$acl_save_prefix" |
| 7920 | |
| 7921 | if test "X$x" = "X-L$additional_libdir"; then |
| 7922 | haveit=yes |
| 7923 | break |
| 7924 | fi |
| 7925 | done |
| 7926 | if test -z "$haveit"; then |
| 7927 | if test -d "$additional_libdir"; then |
| 7928 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 7929 | fi |
| 7930 | fi |
| 7931 | fi |
| 7932 | fi |
| 7933 | ;; |
| 7934 | -R*) |
| 7935 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 7936 | if test "$enable_rpath" != no; then |
| 7937 | haveit= |
| 7938 | for x in $rpathdirs; do |
| 7939 | if test "X$x" = "X$dir"; then |
| 7940 | haveit=yes |
| 7941 | break |
| 7942 | fi |
| 7943 | done |
| 7944 | if test -z "$haveit"; then |
| 7945 | rpathdirs="$rpathdirs $dir" |
| 7946 | fi |
| 7947 | haveit= |
| 7948 | for x in $ltrpathdirs; do |
| 7949 | if test "X$x" = "X$dir"; then |
| 7950 | haveit=yes |
| 7951 | break |
| 7952 | fi |
| 7953 | done |
| 7954 | if test -z "$haveit"; then |
| 7955 | ltrpathdirs="$ltrpathdirs $dir" |
| 7956 | fi |
| 7957 | fi |
| 7958 | ;; |
| 7959 | -l*) |
| 7960 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 7961 | ;; |
| 7962 | *.la) |
| 7963 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 7964 | ;; |
| 7965 | *) |
| 7966 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 7967 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 7968 | ;; |
| 7969 | esac |
| 7970 | done |
| 7971 | fi |
| 7972 | else |
| 7973 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7974 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 7975 | fi |
| 7976 | fi |
| 7977 | fi |
| 7978 | done |
| 7979 | done |
| 7980 | if test "X$rpathdirs" != "X"; then |
| 7981 | if test -n "$hardcode_libdir_separator"; then |
| 7982 | alldirs= |
| 7983 | for found_dir in $rpathdirs; do |
| 7984 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 7985 | done |
| 7986 | acl_save_libdir="$libdir" |
| 7987 | libdir="$alldirs" |
| 7988 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7989 | libdir="$acl_save_libdir" |
| 7990 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7991 | else |
| 7992 | for found_dir in $rpathdirs; do |
| 7993 | acl_save_libdir="$libdir" |
| 7994 | libdir="$found_dir" |
| 7995 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 7996 | libdir="$acl_save_libdir" |
| 7997 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 7998 | done |
| 7999 | fi |
| 8000 | fi |
| 8001 | if test "X$ltrpathdirs" != "X"; then |
| 8002 | for found_dir in $ltrpathdirs; do |
| 8003 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8004 | done |
| 8005 | fi |
| 8006 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8007 | |
| 8008 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8009 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8010 | |
| 8011 | |
| 8012 | |
| 8013 | |
| 8014 | echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8015 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6 |
| 8016 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8018 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8019 | cat >conftest.$ac_ext <<_ACEOF |
| 8020 | /* confdefs.h. */ |
| 8021 | _ACEOF |
| 8022 | cat confdefs.h >>conftest.$ac_ext |
| 8023 | cat >>conftest.$ac_ext <<_ACEOF |
| 8024 | /* end confdefs.h. */ |
| 8025 | $ac_includes_default |
| 8026 | int |
| 8027 | main () |
| 8028 | { |
| 8029 | if ((ptrdiff_t *) 0) |
| 8030 | return 0; |
| 8031 | if (sizeof (ptrdiff_t)) |
| 8032 | return 0; |
| 8033 | ; |
| 8034 | return 0; |
| 8035 | } |
| 8036 | _ACEOF |
| 8037 | rm -f conftest.$ac_objext |
| 8038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8039 | (eval $ac_compile) 2>conftest.er1 |
| 8040 | ac_status=$? |
| 8041 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8042 | rm -f conftest.er1 |
| 8043 | cat conftest.err >&5 |
| 8044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8045 | (exit $ac_status); } && |
| 8046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8048 | (eval $ac_try) 2>&5 |
| 8049 | ac_status=$? |
| 8050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8051 | (exit $ac_status); }; } && |
| 8052 | { ac_try='test -s conftest.$ac_objext' |
| 8053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8054 | (eval $ac_try) 2>&5 |
| 8055 | ac_status=$? |
| 8056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8057 | (exit $ac_status); }; }; then |
| 8058 | ac_cv_type_ptrdiff_t=yes |
| 8059 | else |
| 8060 | echo "$as_me: failed program was:" >&5 |
| 8061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8062 | |
| 8063 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8064 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8066 | fi |
| 8067 | echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8068 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6 |
| 8069 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8070 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8071 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8072 | |
| 8073 | cat >>confdefs.h <<\_ACEOF |
| 8074 | #define ptrdiff_t long |
| 8075 | _ACEOF |
| 8076 | |
| 8077 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8078 | fi |
| 8079 | |
| 8080 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8081 | |
| 8082 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8083 | |
| 8084 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8091 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8092 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8093 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8094 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8095 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8096 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8097 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8099 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8100 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8101 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8103 | # Is the header compilable? |
| 8104 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8105 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 8106 | cat >conftest.$ac_ext <<_ACEOF |
| 8107 | /* confdefs.h. */ |
| 8108 | _ACEOF |
| 8109 | cat confdefs.h >>conftest.$ac_ext |
| 8110 | cat >>conftest.$ac_ext <<_ACEOF |
| 8111 | /* end confdefs.h. */ |
| 8112 | $ac_includes_default |
| 8113 | #include <$ac_header> |
| 8114 | _ACEOF |
| 8115 | rm -f conftest.$ac_objext |
| 8116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8117 | (eval $ac_compile) 2>conftest.er1 |
| 8118 | ac_status=$? |
| 8119 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8120 | rm -f conftest.er1 |
| 8121 | cat conftest.err >&5 |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); } && |
| 8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8126 | (eval $ac_try) 2>&5 |
| 8127 | ac_status=$? |
| 8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8129 | (exit $ac_status); }; } && |
| 8130 | { ac_try='test -s conftest.$ac_objext' |
| 8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8132 | (eval $ac_try) 2>&5 |
| 8133 | ac_status=$? |
| 8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8135 | (exit $ac_status); }; }; then |
| 8136 | ac_header_compiler=yes |
| 8137 | else |
| 8138 | echo "$as_me: failed program was:" >&5 |
| 8139 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8140 | |
| 8141 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8142 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8145 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 8146 | |
| 8147 | # Is the header present? |
| 8148 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8149 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 8150 | cat >conftest.$ac_ext <<_ACEOF |
| 8151 | /* confdefs.h. */ |
| 8152 | _ACEOF |
| 8153 | cat confdefs.h >>conftest.$ac_ext |
| 8154 | cat >>conftest.$ac_ext <<_ACEOF |
| 8155 | /* end confdefs.h. */ |
| 8156 | #include <$ac_header> |
| 8157 | _ACEOF |
| 8158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 8159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8160 | ac_status=$? |
| 8161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8162 | rm -f conftest.er1 |
| 8163 | cat conftest.err >&5 |
| 8164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8165 | (exit $ac_status); } >/dev/null; then |
| 8166 | if test -s conftest.err; then |
| 8167 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 8168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 8169 | else |
| 8170 | ac_cpp_err= |
| 8171 | fi |
| 8172 | else |
| 8173 | ac_cpp_err=yes |
| 8174 | fi |
| 8175 | if test -z "$ac_cpp_err"; then |
| 8176 | ac_header_preproc=yes |
| 8177 | else |
| 8178 | echo "$as_me: failed program was:" >&5 |
| 8179 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8180 | |
| 8181 | ac_header_preproc=no |
| 8182 | fi |
| 8183 | rm -f conftest.err conftest.$ac_ext |
| 8184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8185 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 8186 | |
| 8187 | # So? What about this header? |
| 8188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8189 | yes:no: ) |
| 8190 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8191 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8193 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8194 | ac_header_preproc=yes |
| 8195 | ;; |
| 8196 | no:yes:* ) |
| 8197 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8198 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8199 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8200 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8201 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8202 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8203 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8204 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8206 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8207 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8208 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 8209 | ( |
| 8210 | cat <<\_ASBOX |
| 8211 | ## ------------------------------------------ ## |
| 8212 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 8213 | ## ------------------------------------------ ## |
| 8214 | _ASBOX |
| 8215 | ) | |
| 8216 | sed "s/^/$as_me: WARNING: /" >&2 |
| 8217 | ;; |
| 8218 | esac |
| 8219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 8222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8223 | else |
| 8224 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8225 | fi |
| 8226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 8227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8228 | |
| 8229 | fi |
| 8230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8231 | cat >>confdefs.h <<_ACEOF |
| 8232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8233 | _ACEOF |
| 8234 | |
| 8235 | fi |
| 8236 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8237 | done |
| 8238 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8239 | |
| 8240 | |
| 8241 | |
| 8242 | |
| 8243 | |
| 8244 | |
| 8245 | |
| 8246 | |
| 8247 | |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | |
| 8252 | |
| 8253 | |
| 8254 | |
| 8255 | |
| 8256 | |
| 8257 | |
| 8258 | |
| 8259 | |
| 8260 | |
| 8261 | |
| 8262 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 8263 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8264 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8265 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8266 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8267 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8268 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 8269 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8270 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 8271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8273 | cat >conftest.$ac_ext <<_ACEOF |
| 8274 | /* confdefs.h. */ |
| 8275 | _ACEOF |
| 8276 | cat confdefs.h >>conftest.$ac_ext |
| 8277 | cat >>conftest.$ac_ext <<_ACEOF |
| 8278 | /* end confdefs.h. */ |
| 8279 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 8280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 8281 | #define $ac_func innocuous_$ac_func |
| 8282 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8283 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8284 | which can conflict with char $ac_func (); below. |
| 8285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 8286 | <limits.h> exists even on freestanding compilers. */ |
| 8287 | |
| 8288 | #ifdef __STDC__ |
| 8289 | # include <limits.h> |
| 8290 | #else |
| 8291 | # include <assert.h> |
| 8292 | #endif |
| 8293 | |
| 8294 | #undef $ac_func |
| 8295 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8296 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | #ifdef __cplusplus |
| 8298 | extern "C" |
| 8299 | { |
| 8300 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8301 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8302 | builtin and then its argument prototype would still apply. */ |
| 8303 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8304 | /* The GNU C library defines this for functions which it implements |
| 8305 | to always fail with ENOSYS. Some functions are actually named |
| 8306 | something starting with __ and the normal name is an alias. */ |
| 8307 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 8308 | choke me |
| 8309 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8310 | char (*f) () = $ac_func; |
| 8311 | #endif |
| 8312 | #ifdef __cplusplus |
| 8313 | } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8314 | #endif |
| 8315 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8316 | int |
| 8317 | main () |
| 8318 | { |
| 8319 | return f != $ac_func; |
| 8320 | ; |
| 8321 | return 0; |
| 8322 | } |
| 8323 | _ACEOF |
| 8324 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8325 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8326 | (eval $ac_link) 2>conftest.er1 |
| 8327 | ac_status=$? |
| 8328 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8329 | rm -f conftest.er1 |
| 8330 | cat conftest.err >&5 |
| 8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8332 | (exit $ac_status); } && |
| 8333 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8335 | (eval $ac_try) 2>&5 |
| 8336 | ac_status=$? |
| 8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8338 | (exit $ac_status); }; } && |
| 8339 | { ac_try='test -s conftest$ac_exeext' |
| 8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8341 | (eval $ac_try) 2>&5 |
| 8342 | ac_status=$? |
| 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8344 | (exit $ac_status); }; }; then |
| 8345 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8346 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8347 | echo "$as_me: failed program was:" >&5 |
| 8348 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8349 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8350 | eval "$as_ac_var=no" |
| 8351 | fi |
| 8352 | rm -f conftest.err conftest.$ac_objext \ |
| 8353 | conftest$ac_exeext conftest.$ac_ext |
| 8354 | fi |
| 8355 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 8356 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8357 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 8358 | cat >>confdefs.h <<_ACEOF |
| 8359 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 8360 | _ACEOF |
| 8361 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8362 | fi |
| 8363 | done |
| 8364 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8365 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8366 | |
| 8367 | echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 8368 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6 |
| 8369 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 8370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8371 | else |
| 8372 | cat >conftest.$ac_ext <<_ACEOF |
| 8373 | /* confdefs.h. */ |
| 8374 | _ACEOF |
| 8375 | cat confdefs.h >>conftest.$ac_ext |
| 8376 | cat >>conftest.$ac_ext <<_ACEOF |
| 8377 | /* end confdefs.h. */ |
| 8378 | #include <stdio.h> |
| 8379 | int |
| 8380 | main () |
| 8381 | { |
| 8382 | |
| 8383 | #ifndef _snprintf |
| 8384 | char *p = (char *) _snprintf; |
| 8385 | #endif |
| 8386 | |
| 8387 | ; |
| 8388 | return 0; |
| 8389 | } |
| 8390 | _ACEOF |
| 8391 | rm -f conftest.$ac_objext |
| 8392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8393 | (eval $ac_compile) 2>conftest.er1 |
| 8394 | ac_status=$? |
| 8395 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8396 | rm -f conftest.er1 |
| 8397 | cat conftest.err >&5 |
| 8398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8399 | (exit $ac_status); } && |
| 8400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8402 | (eval $ac_try) 2>&5 |
| 8403 | ac_status=$? |
| 8404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8405 | (exit $ac_status); }; } && |
| 8406 | { ac_try='test -s conftest.$ac_objext' |
| 8407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8408 | (eval $ac_try) 2>&5 |
| 8409 | ac_status=$? |
| 8410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8411 | (exit $ac_status); }; }; then |
| 8412 | ac_cv_have_decl__snprintf=yes |
| 8413 | else |
| 8414 | echo "$as_me: failed program was:" >&5 |
| 8415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8416 | |
| 8417 | ac_cv_have_decl__snprintf=no |
| 8418 | fi |
| 8419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8420 | fi |
| 8421 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 8422 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6 |
| 8423 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8424 | gt_value=1 |
| 8425 | else |
| 8426 | gt_value=0 |
| 8427 | fi |
| 8428 | |
| 8429 | cat >>confdefs.h <<_ACEOF |
| 8430 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8431 | _ACEOF |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 8436 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6 |
| 8437 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 8438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8439 | else |
| 8440 | cat >conftest.$ac_ext <<_ACEOF |
| 8441 | /* confdefs.h. */ |
| 8442 | _ACEOF |
| 8443 | cat confdefs.h >>conftest.$ac_ext |
| 8444 | cat >>conftest.$ac_ext <<_ACEOF |
| 8445 | /* end confdefs.h. */ |
| 8446 | #include <stdio.h> |
| 8447 | int |
| 8448 | main () |
| 8449 | { |
| 8450 | |
| 8451 | #ifndef _snwprintf |
| 8452 | char *p = (char *) _snwprintf; |
| 8453 | #endif |
| 8454 | |
| 8455 | ; |
| 8456 | return 0; |
| 8457 | } |
| 8458 | _ACEOF |
| 8459 | rm -f conftest.$ac_objext |
| 8460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8461 | (eval $ac_compile) 2>conftest.er1 |
| 8462 | ac_status=$? |
| 8463 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8464 | rm -f conftest.er1 |
| 8465 | cat conftest.err >&5 |
| 8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8467 | (exit $ac_status); } && |
| 8468 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8470 | (eval $ac_try) 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); }; } && |
| 8474 | { ac_try='test -s conftest.$ac_objext' |
| 8475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8476 | (eval $ac_try) 2>&5 |
| 8477 | ac_status=$? |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8479 | (exit $ac_status); }; }; then |
| 8480 | ac_cv_have_decl__snwprintf=yes |
| 8481 | else |
| 8482 | echo "$as_me: failed program was:" >&5 |
| 8483 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8484 | |
| 8485 | ac_cv_have_decl__snwprintf=no |
| 8486 | fi |
| 8487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8488 | fi |
| 8489 | echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 8490 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6 |
| 8491 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8492 | gt_value=1 |
| 8493 | else |
| 8494 | gt_value=0 |
| 8495 | fi |
| 8496 | |
| 8497 | cat >>confdefs.h <<_ACEOF |
| 8498 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8499 | _ACEOF |
| 8500 | |
| 8501 | |
| 8502 | |
| 8503 | |
| 8504 | echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 8505 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6 |
| 8506 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 8507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8508 | else |
| 8509 | cat >conftest.$ac_ext <<_ACEOF |
| 8510 | /* confdefs.h. */ |
| 8511 | _ACEOF |
| 8512 | cat confdefs.h >>conftest.$ac_ext |
| 8513 | cat >>conftest.$ac_ext <<_ACEOF |
| 8514 | /* end confdefs.h. */ |
| 8515 | #include <stdio.h> |
| 8516 | int |
| 8517 | main () |
| 8518 | { |
| 8519 | |
| 8520 | #ifndef feof_unlocked |
| 8521 | char *p = (char *) feof_unlocked; |
| 8522 | #endif |
| 8523 | |
| 8524 | ; |
| 8525 | return 0; |
| 8526 | } |
| 8527 | _ACEOF |
| 8528 | rm -f conftest.$ac_objext |
| 8529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8530 | (eval $ac_compile) 2>conftest.er1 |
| 8531 | ac_status=$? |
| 8532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8533 | rm -f conftest.er1 |
| 8534 | cat conftest.err >&5 |
| 8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8536 | (exit $ac_status); } && |
| 8537 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8539 | (eval $ac_try) 2>&5 |
| 8540 | ac_status=$? |
| 8541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8542 | (exit $ac_status); }; } && |
| 8543 | { ac_try='test -s conftest.$ac_objext' |
| 8544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8545 | (eval $ac_try) 2>&5 |
| 8546 | ac_status=$? |
| 8547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8548 | (exit $ac_status); }; }; then |
| 8549 | ac_cv_have_decl_feof_unlocked=yes |
| 8550 | else |
| 8551 | echo "$as_me: failed program was:" >&5 |
| 8552 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8553 | |
| 8554 | ac_cv_have_decl_feof_unlocked=no |
| 8555 | fi |
| 8556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8557 | fi |
| 8558 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 8559 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6 |
| 8560 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8561 | gt_value=1 |
| 8562 | else |
| 8563 | gt_value=0 |
| 8564 | fi |
| 8565 | |
| 8566 | cat >>confdefs.h <<_ACEOF |
| 8567 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8568 | _ACEOF |
| 8569 | |
| 8570 | |
| 8571 | |
| 8572 | echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 8573 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6 |
| 8574 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 8575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8576 | else |
| 8577 | cat >conftest.$ac_ext <<_ACEOF |
| 8578 | /* confdefs.h. */ |
| 8579 | _ACEOF |
| 8580 | cat confdefs.h >>conftest.$ac_ext |
| 8581 | cat >>conftest.$ac_ext <<_ACEOF |
| 8582 | /* end confdefs.h. */ |
| 8583 | #include <stdio.h> |
| 8584 | int |
| 8585 | main () |
| 8586 | { |
| 8587 | |
| 8588 | #ifndef fgets_unlocked |
| 8589 | char *p = (char *) fgets_unlocked; |
| 8590 | #endif |
| 8591 | |
| 8592 | ; |
| 8593 | return 0; |
| 8594 | } |
| 8595 | _ACEOF |
| 8596 | rm -f conftest.$ac_objext |
| 8597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8598 | (eval $ac_compile) 2>conftest.er1 |
| 8599 | ac_status=$? |
| 8600 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8601 | rm -f conftest.er1 |
| 8602 | cat conftest.err >&5 |
| 8603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8604 | (exit $ac_status); } && |
| 8605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8607 | (eval $ac_try) 2>&5 |
| 8608 | ac_status=$? |
| 8609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8610 | (exit $ac_status); }; } && |
| 8611 | { ac_try='test -s conftest.$ac_objext' |
| 8612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8613 | (eval $ac_try) 2>&5 |
| 8614 | ac_status=$? |
| 8615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8616 | (exit $ac_status); }; }; then |
| 8617 | ac_cv_have_decl_fgets_unlocked=yes |
| 8618 | else |
| 8619 | echo "$as_me: failed program was:" >&5 |
| 8620 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8621 | |
| 8622 | ac_cv_have_decl_fgets_unlocked=no |
| 8623 | fi |
| 8624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8625 | fi |
| 8626 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 8627 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6 |
| 8628 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8629 | gt_value=1 |
| 8630 | else |
| 8631 | gt_value=0 |
| 8632 | fi |
| 8633 | |
| 8634 | cat >>confdefs.h <<_ACEOF |
| 8635 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8636 | _ACEOF |
| 8637 | |
| 8638 | |
| 8639 | |
| 8640 | echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 8641 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6 |
| 8642 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 8643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8644 | else |
| 8645 | cat >conftest.$ac_ext <<_ACEOF |
| 8646 | /* confdefs.h. */ |
| 8647 | _ACEOF |
| 8648 | cat confdefs.h >>conftest.$ac_ext |
| 8649 | cat >>conftest.$ac_ext <<_ACEOF |
| 8650 | /* end confdefs.h. */ |
| 8651 | #include <stdio.h> |
| 8652 | int |
| 8653 | main () |
| 8654 | { |
| 8655 | |
| 8656 | #ifndef getc_unlocked |
| 8657 | char *p = (char *) getc_unlocked; |
| 8658 | #endif |
| 8659 | |
| 8660 | ; |
| 8661 | return 0; |
| 8662 | } |
| 8663 | _ACEOF |
| 8664 | rm -f conftest.$ac_objext |
| 8665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8666 | (eval $ac_compile) 2>conftest.er1 |
| 8667 | ac_status=$? |
| 8668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8669 | rm -f conftest.er1 |
| 8670 | cat conftest.err >&5 |
| 8671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8672 | (exit $ac_status); } && |
| 8673 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8675 | (eval $ac_try) 2>&5 |
| 8676 | ac_status=$? |
| 8677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8678 | (exit $ac_status); }; } && |
| 8679 | { ac_try='test -s conftest.$ac_objext' |
| 8680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8681 | (eval $ac_try) 2>&5 |
| 8682 | ac_status=$? |
| 8683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8684 | (exit $ac_status); }; }; then |
| 8685 | ac_cv_have_decl_getc_unlocked=yes |
| 8686 | else |
| 8687 | echo "$as_me: failed program was:" >&5 |
| 8688 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8689 | |
| 8690 | ac_cv_have_decl_getc_unlocked=no |
| 8691 | fi |
| 8692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8693 | fi |
| 8694 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 8695 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6 |
| 8696 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8697 | gt_value=1 |
| 8698 | else |
| 8699 | gt_value=0 |
| 8700 | fi |
| 8701 | |
| 8702 | cat >>confdefs.h <<_ACEOF |
| 8703 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8704 | _ACEOF |
| 8705 | |
| 8706 | |
| 8707 | |
| 8708 | case $gt_cv_func_printf_posix in |
| 8709 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8710 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8711 | esac |
| 8712 | |
| 8713 | if test "$ac_cv_func_asprintf" = yes; then |
| 8714 | HAVE_ASPRINTF=1 |
| 8715 | else |
| 8716 | HAVE_ASPRINTF=0 |
| 8717 | fi |
| 8718 | |
| 8719 | if test "$ac_cv_func_snprintf" = yes; then |
| 8720 | HAVE_SNPRINTF=1 |
| 8721 | else |
| 8722 | HAVE_SNPRINTF=0 |
| 8723 | fi |
| 8724 | |
| 8725 | if test "$ac_cv_func_wprintf" = yes; then |
| 8726 | HAVE_WPRINTF=1 |
| 8727 | else |
| 8728 | HAVE_WPRINTF=0 |
| 8729 | fi |
| 8730 | |
| 8731 | |
| 8732 | |
| 8733 | |
| 8734 | |
| 8735 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8736 | |
| 8737 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8738 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8739 | for element in $INCICONV; do |
| 8740 | haveit= |
| 8741 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8742 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8743 | acl_save_prefix="$prefix" |
| 8744 | prefix="$acl_final_prefix" |
| 8745 | acl_save_exec_prefix="$exec_prefix" |
| 8746 | exec_prefix="$acl_final_exec_prefix" |
| 8747 | eval x=\"$x\" |
| 8748 | exec_prefix="$acl_save_exec_prefix" |
| 8749 | prefix="$acl_save_prefix" |
| 8750 | |
| 8751 | if test "X$x" = "X$element"; then |
| 8752 | haveit=yes |
| 8753 | break |
| 8754 | fi |
| 8755 | done |
| 8756 | if test -z "$haveit"; then |
| 8757 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8758 | fi |
| 8759 | done |
| 8760 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8761 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8762 | echo "$as_me:$LINENO: checking for iconv" >&5 |
| 8763 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 |
| 8764 | if test "${am_cv_func_iconv+set}" = set; then |
| 8765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8766 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8767 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8768 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8769 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8770 | cat >conftest.$ac_ext <<_ACEOF |
| 8771 | /* confdefs.h. */ |
| 8772 | _ACEOF |
| 8773 | cat confdefs.h >>conftest.$ac_ext |
| 8774 | cat >>conftest.$ac_ext <<_ACEOF |
| 8775 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8776 | #include <stdlib.h> |
| 8777 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8778 | int |
| 8779 | main () |
| 8780 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8781 | iconv_t cd = iconv_open("",""); |
| 8782 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8783 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8784 | ; |
| 8785 | return 0; |
| 8786 | } |
| 8787 | _ACEOF |
| 8788 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8790 | (eval $ac_link) 2>conftest.er1 |
| 8791 | ac_status=$? |
| 8792 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8793 | rm -f conftest.er1 |
| 8794 | cat conftest.err >&5 |
| 8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8796 | (exit $ac_status); } && |
| 8797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8799 | (eval $ac_try) 2>&5 |
| 8800 | ac_status=$? |
| 8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8802 | (exit $ac_status); }; } && |
| 8803 | { ac_try='test -s conftest$ac_exeext' |
| 8804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8805 | (eval $ac_try) 2>&5 |
| 8806 | ac_status=$? |
| 8807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8808 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8809 | am_cv_func_iconv=yes |
| 8810 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8811 | echo "$as_me: failed program was:" >&5 |
| 8812 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8813 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8814 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8815 | rm -f conftest.err conftest.$ac_objext \ |
| 8816 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8817 | if test "$am_cv_func_iconv" != yes; then |
| 8818 | am_save_LIBS="$LIBS" |
| 8819 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8820 | cat >conftest.$ac_ext <<_ACEOF |
| 8821 | /* confdefs.h. */ |
| 8822 | _ACEOF |
| 8823 | cat confdefs.h >>conftest.$ac_ext |
| 8824 | cat >>conftest.$ac_ext <<_ACEOF |
| 8825 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8826 | #include <stdlib.h> |
| 8827 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8828 | int |
| 8829 | main () |
| 8830 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8831 | iconv_t cd = iconv_open("",""); |
| 8832 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8833 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8834 | ; |
| 8835 | return 0; |
| 8836 | } |
| 8837 | _ACEOF |
| 8838 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8840 | (eval $ac_link) 2>conftest.er1 |
| 8841 | ac_status=$? |
| 8842 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8843 | rm -f conftest.er1 |
| 8844 | cat conftest.err >&5 |
| 8845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8846 | (exit $ac_status); } && |
| 8847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8849 | (eval $ac_try) 2>&5 |
| 8850 | ac_status=$? |
| 8851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8852 | (exit $ac_status); }; } && |
| 8853 | { ac_try='test -s conftest$ac_exeext' |
| 8854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8855 | (eval $ac_try) 2>&5 |
| 8856 | ac_status=$? |
| 8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8858 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8859 | am_cv_lib_iconv=yes |
| 8860 | am_cv_func_iconv=yes |
| 8861 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8862 | echo "$as_me: failed program was:" >&5 |
| 8863 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8864 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8865 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8866 | rm -f conftest.err conftest.$ac_objext \ |
| 8867 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8868 | LIBS="$am_save_LIBS" |
| 8869 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8871 | fi |
| 8872 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 8873 | echo "${ECHO_T}$am_cv_func_iconv" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8874 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8875 | |
| 8876 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8877 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8878 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8879 | |
| 8880 | fi |
| 8881 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 8883 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6 |
| 8884 | echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 8885 | echo "${ECHO_T}$LIBICONV" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8886 | else |
| 8887 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8888 | LIBICONV= |
| 8889 | LTLIBICONV= |
| 8890 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8891 | |
| 8892 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8893 | |
| 8894 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8895 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 8896 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 |
| 8897 | if test "${am_cv_proto_iconv+set}" = set; then |
| 8898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8899 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8900 | |
| 8901 | cat >conftest.$ac_ext <<_ACEOF |
| 8902 | /* confdefs.h. */ |
| 8903 | _ACEOF |
| 8904 | cat confdefs.h >>conftest.$ac_ext |
| 8905 | cat >>conftest.$ac_ext <<_ACEOF |
| 8906 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8907 | |
| 8908 | #include <stdlib.h> |
| 8909 | #include <iconv.h> |
| 8910 | extern |
| 8911 | #ifdef __cplusplus |
| 8912 | "C" |
| 8913 | #endif |
| 8914 | #if defined(__STDC__) || defined(__cplusplus) |
| 8915 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8916 | #else |
| 8917 | size_t iconv(); |
| 8918 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8919 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8920 | int |
| 8921 | main () |
| 8922 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8923 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8924 | ; |
| 8925 | return 0; |
| 8926 | } |
| 8927 | _ACEOF |
| 8928 | rm -f conftest.$ac_objext |
| 8929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8930 | (eval $ac_compile) 2>conftest.er1 |
| 8931 | ac_status=$? |
| 8932 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8933 | rm -f conftest.er1 |
| 8934 | cat conftest.err >&5 |
| 8935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8936 | (exit $ac_status); } && |
| 8937 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 8938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8939 | (eval $ac_try) 2>&5 |
| 8940 | ac_status=$? |
| 8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8942 | (exit $ac_status); }; } && |
| 8943 | { ac_try='test -s conftest.$ac_objext' |
| 8944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8945 | (eval $ac_try) 2>&5 |
| 8946 | ac_status=$? |
| 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8948 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8949 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8950 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8951 | echo "$as_me: failed program was:" >&5 |
| 8952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8953 | |
| 8954 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8955 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8957 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8958 | fi |
| 8959 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8960 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8961 | echo "$as_me:$LINENO: result: ${ac_t:- |
| 8962 | }$am_cv_proto_iconv" >&5 |
| 8963 | echo "${ECHO_T}${ac_t:- |
| 8964 | }$am_cv_proto_iconv" >&6 |
| 8965 | |
| 8966 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8967 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8968 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8969 | |
| 8970 | fi |
| 8971 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8972 | |
| 8973 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 8974 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
| 8975 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 8976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8977 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8978 | cat >conftest.$ac_ext <<_ACEOF |
| 8979 | /* confdefs.h. */ |
| 8980 | _ACEOF |
| 8981 | cat confdefs.h >>conftest.$ac_ext |
| 8982 | cat >>conftest.$ac_ext <<_ACEOF |
| 8983 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8984 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8985 | int |
| 8986 | main () |
| 8987 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8988 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8989 | ; |
| 8990 | return 0; |
| 8991 | } |
| 8992 | _ACEOF |
| 8993 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8995 | (eval $ac_link) 2>conftest.er1 |
| 8996 | ac_status=$? |
| 8997 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8998 | rm -f conftest.er1 |
| 8999 | cat conftest.err >&5 |
| 9000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9001 | (exit $ac_status); } && |
| 9002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9004 | (eval $ac_try) 2>&5 |
| 9005 | ac_status=$? |
| 9006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9007 | (exit $ac_status); }; } && |
| 9008 | { ac_try='test -s conftest$ac_exeext' |
| 9009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9010 | (eval $ac_try) 2>&5 |
| 9011 | ac_status=$? |
| 9012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9013 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9014 | am_cv_langinfo_codeset=yes |
| 9015 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9016 | echo "$as_me: failed program was:" >&5 |
| 9017 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9018 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9019 | am_cv_langinfo_codeset=no |
| 9020 | fi |
| 9021 | rm -f conftest.err conftest.$ac_objext \ |
| 9022 | conftest$ac_exeext conftest.$ac_ext |
| 9023 | |
| 9024 | fi |
| 9025 | echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9026 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9027 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9028 | |
| 9029 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9030 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9031 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9033 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9034 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9035 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9036 | |
| 9037 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9038 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
| 9039 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9041 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9042 | cat >conftest.$ac_ext <<_ACEOF |
| 9043 | /* confdefs.h. */ |
| 9044 | _ACEOF |
| 9045 | cat confdefs.h >>conftest.$ac_ext |
| 9046 | cat >>conftest.$ac_ext <<_ACEOF |
| 9047 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9048 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9049 | int |
| 9050 | main () |
| 9051 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9052 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9053 | ; |
| 9054 | return 0; |
| 9055 | } |
| 9056 | _ACEOF |
| 9057 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9059 | (eval $ac_link) 2>conftest.er1 |
| 9060 | ac_status=$? |
| 9061 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9062 | rm -f conftest.er1 |
| 9063 | cat conftest.err >&5 |
| 9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9065 | (exit $ac_status); } && |
| 9066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9068 | (eval $ac_try) 2>&5 |
| 9069 | ac_status=$? |
| 9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9071 | (exit $ac_status); }; } && |
| 9072 | { ac_try='test -s conftest$ac_exeext' |
| 9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9074 | (eval $ac_try) 2>&5 |
| 9075 | ac_status=$? |
| 9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9077 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9078 | am_cv_val_LC_MESSAGES=yes |
| 9079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9080 | echo "$as_me: failed program was:" >&5 |
| 9081 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9082 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9083 | am_cv_val_LC_MESSAGES=no |
| 9084 | fi |
| 9085 | rm -f conftest.err conftest.$ac_objext \ |
| 9086 | conftest$ac_exeext conftest.$ac_ext |
| 9087 | fi |
| 9088 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9089 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9090 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | |
| 9092 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9093 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9094 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9095 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9096 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9097 | |
| 9098 | fi |
| 9099 | |
| 9100 | for ac_prog in bison |
| 9101 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9102 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9103 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9104 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9106 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9108 | else |
| 9109 | if test -n "$INTLBISON"; then |
| 9110 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9113 | for as_dir in $PATH |
| 9114 | do |
| 9115 | IFS=$as_save_IFS |
| 9116 | test -z "$as_dir" && as_dir=. |
| 9117 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9119 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9121 | break 2 |
| 9122 | fi |
| 9123 | done |
| 9124 | done |
| 9125 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9126 | fi |
| 9127 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9128 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9129 | if test -n "$INTLBISON"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9130 | echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9131 | echo "${ECHO_T}$INTLBISON" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9132 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9133 | echo "$as_me:$LINENO: result: no" >&5 |
| 9134 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9135 | fi |
| 9136 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9137 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9138 | done |
| 9139 | |
| 9140 | if test -z "$INTLBISON"; then |
| 9141 | ac_verc_fail=yes |
| 9142 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9143 | echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9144 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9145 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9146 | case $ac_prog_version in |
| 9147 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9148 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9149 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9150 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9151 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9152 | echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9153 | echo "${ECHO_T}$ac_prog_version" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9154 | fi |
| 9155 | if test $ac_verc_fail = yes; then |
| 9156 | INTLBISON=: |
| 9157 | fi |
| 9158 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9159 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9160 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9161 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9162 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9163 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9164 | |
| 9165 | |
| 9166 | |
| 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
| 9171 | |
| 9172 | |
| 9173 | |
| 9174 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9175 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9176 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9177 | if test "${enable_nls+set}" = set; then |
| 9178 | enableval="$enable_nls" |
| 9179 | USE_NLS=$enableval |
| 9180 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9181 | USE_NLS=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9182 | fi; |
| 9183 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9184 | echo "${ECHO_T}$USE_NLS" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9185 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9186 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9187 | |
| 9188 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9189 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9190 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9191 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9192 | LIBINTL= |
| 9193 | LTLIBINTL= |
| 9194 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9195 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9196 | if test "$USE_NLS" = "yes"; then |
| 9197 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9198 | |
| 9199 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9200 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
| 9201 | |
| 9202 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9203 | if test "${with_included_gettext+set}" = set; then |
| 9204 | withval="$with_included_gettext" |
| 9205 | nls_cv_force_use_gnu_gettext=$withval |
| 9206 | else |
| 9207 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9208 | fi; |
| 9209 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9210 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9211 | |
| 9212 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9213 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9214 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9215 | |
| 9216 | |
| 9217 | |
| 9218 | |
| 9219 | |
| 9220 | echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9221 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6 |
| 9222 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9224 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9225 | cat >conftest.$ac_ext <<_ACEOF |
| 9226 | /* confdefs.h. */ |
| 9227 | _ACEOF |
| 9228 | cat confdefs.h >>conftest.$ac_ext |
| 9229 | cat >>conftest.$ac_ext <<_ACEOF |
| 9230 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9231 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9232 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9233 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9234 | int |
| 9235 | main () |
| 9236 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9237 | bindtextdomain ("", ""); |
| 9238 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9239 | ; |
| 9240 | return 0; |
| 9241 | } |
| 9242 | _ACEOF |
| 9243 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9245 | (eval $ac_link) 2>conftest.er1 |
| 9246 | ac_status=$? |
| 9247 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9248 | rm -f conftest.er1 |
| 9249 | cat conftest.err >&5 |
| 9250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9251 | (exit $ac_status); } && |
| 9252 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9254 | (eval $ac_try) 2>&5 |
| 9255 | ac_status=$? |
| 9256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9257 | (exit $ac_status); }; } && |
| 9258 | { ac_try='test -s conftest$ac_exeext' |
| 9259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9260 | (eval $ac_try) 2>&5 |
| 9261 | ac_status=$? |
| 9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9263 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9264 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9265 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9266 | echo "$as_me: failed program was:" >&5 |
| 9267 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9269 | gt_cv_func_gnugettext1_libc=no |
| 9270 | fi |
| 9271 | rm -f conftest.err conftest.$ac_objext \ |
| 9272 | conftest$ac_exeext conftest.$ac_ext |
| 9273 | fi |
| 9274 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9275 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9276 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9277 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9278 | |
| 9279 | |
| 9280 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9281 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9282 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9283 | acl_save_prefix="$prefix" |
| 9284 | prefix="$acl_final_prefix" |
| 9285 | acl_save_exec_prefix="$exec_prefix" |
| 9286 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9287 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9288 | eval additional_includedir=\"$includedir\" |
| 9289 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9290 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9291 | exec_prefix="$acl_save_exec_prefix" |
| 9292 | prefix="$acl_save_prefix" |
| 9293 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9294 | |
| 9295 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9296 | if test "${with_libintl_prefix+set}" = set; then |
| 9297 | withval="$with_libintl_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9298 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9299 | if test "X$withval" = "Xno"; then |
| 9300 | use_additional=no |
| 9301 | else |
| 9302 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9303 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9304 | acl_save_prefix="$prefix" |
| 9305 | prefix="$acl_final_prefix" |
| 9306 | acl_save_exec_prefix="$exec_prefix" |
| 9307 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9308 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9309 | eval additional_includedir=\"$includedir\" |
| 9310 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9311 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9312 | exec_prefix="$acl_save_exec_prefix" |
| 9313 | prefix="$acl_save_prefix" |
| 9314 | |
| 9315 | else |
| 9316 | additional_includedir="$withval/include" |
| 9317 | additional_libdir="$withval/lib" |
| 9318 | fi |
| 9319 | fi |
| 9320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9321 | fi; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9322 | LIBINTL= |
| 9323 | LTLIBINTL= |
| 9324 | INCINTL= |
| 9325 | rpathdirs= |
| 9326 | ltrpathdirs= |
| 9327 | names_already_handled= |
| 9328 | names_next_round='intl ' |
| 9329 | while test -n "$names_next_round"; do |
| 9330 | names_this_round="$names_next_round" |
| 9331 | names_next_round= |
| 9332 | for name in $names_this_round; do |
| 9333 | already_handled= |
| 9334 | for n in $names_already_handled; do |
| 9335 | if test "$n" = "$name"; then |
| 9336 | already_handled=yes |
| 9337 | break |
| 9338 | fi |
| 9339 | done |
| 9340 | if test -z "$already_handled"; then |
| 9341 | names_already_handled="$names_already_handled $name" |
| 9342 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 9343 | eval value=\"\$HAVE_LIB$uppername\" |
| 9344 | if test -n "$value"; then |
| 9345 | if test "$value" = yes; then |
| 9346 | eval value=\"\$LIB$uppername\" |
| 9347 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 9348 | eval value=\"\$LTLIB$uppername\" |
| 9349 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 9350 | else |
| 9351 | : |
| 9352 | fi |
| 9353 | else |
| 9354 | found_dir= |
| 9355 | found_la= |
| 9356 | found_so= |
| 9357 | found_a= |
| 9358 | if test $use_additional = yes; then |
| 9359 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 9360 | found_dir="$additional_libdir" |
| 9361 | found_so="$additional_libdir/lib$name.$shlibext" |
| 9362 | if test -f "$additional_libdir/lib$name.la"; then |
| 9363 | found_la="$additional_libdir/lib$name.la" |
| 9364 | fi |
| 9365 | else |
| 9366 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 9367 | found_dir="$additional_libdir" |
| 9368 | found_a="$additional_libdir/lib$name.$libext" |
| 9369 | if test -f "$additional_libdir/lib$name.la"; then |
| 9370 | found_la="$additional_libdir/lib$name.la" |
| 9371 | fi |
| 9372 | fi |
| 9373 | fi |
| 9374 | fi |
| 9375 | if test "X$found_dir" = "X"; then |
| 9376 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9377 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9378 | acl_save_prefix="$prefix" |
| 9379 | prefix="$acl_final_prefix" |
| 9380 | acl_save_exec_prefix="$exec_prefix" |
| 9381 | exec_prefix="$acl_final_exec_prefix" |
| 9382 | eval x=\"$x\" |
| 9383 | exec_prefix="$acl_save_exec_prefix" |
| 9384 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9385 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9386 | case "$x" in |
| 9387 | -L*) |
| 9388 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 9389 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 9390 | found_dir="$dir" |
| 9391 | found_so="$dir/lib$name.$shlibext" |
| 9392 | if test -f "$dir/lib$name.la"; then |
| 9393 | found_la="$dir/lib$name.la" |
| 9394 | fi |
| 9395 | else |
| 9396 | if test -f "$dir/lib$name.$libext"; then |
| 9397 | found_dir="$dir" |
| 9398 | found_a="$dir/lib$name.$libext" |
| 9399 | if test -f "$dir/lib$name.la"; then |
| 9400 | found_la="$dir/lib$name.la" |
| 9401 | fi |
| 9402 | fi |
| 9403 | fi |
| 9404 | ;; |
| 9405 | esac |
| 9406 | if test "X$found_dir" != "X"; then |
| 9407 | break |
| 9408 | fi |
| 9409 | done |
| 9410 | fi |
| 9411 | if test "X$found_dir" != "X"; then |
| 9412 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 9413 | if test "X$found_so" != "X"; then |
| 9414 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 9415 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9416 | else |
| 9417 | haveit= |
| 9418 | for x in $ltrpathdirs; do |
| 9419 | if test "X$x" = "X$found_dir"; then |
| 9420 | haveit=yes |
| 9421 | break |
| 9422 | fi |
| 9423 | done |
| 9424 | if test -z "$haveit"; then |
| 9425 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 9426 | fi |
| 9427 | if test "$hardcode_direct" = yes; then |
| 9428 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9429 | else |
| 9430 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 9431 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9432 | haveit= |
| 9433 | for x in $rpathdirs; do |
| 9434 | if test "X$x" = "X$found_dir"; then |
| 9435 | haveit=yes |
| 9436 | break |
| 9437 | fi |
| 9438 | done |
| 9439 | if test -z "$haveit"; then |
| 9440 | rpathdirs="$rpathdirs $found_dir" |
| 9441 | fi |
| 9442 | else |
| 9443 | haveit= |
| 9444 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9445 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9446 | acl_save_prefix="$prefix" |
| 9447 | prefix="$acl_final_prefix" |
| 9448 | acl_save_exec_prefix="$exec_prefix" |
| 9449 | exec_prefix="$acl_final_exec_prefix" |
| 9450 | eval x=\"$x\" |
| 9451 | exec_prefix="$acl_save_exec_prefix" |
| 9452 | prefix="$acl_save_prefix" |
| 9453 | |
| 9454 | if test "X$x" = "X-L$found_dir"; then |
| 9455 | haveit=yes |
| 9456 | break |
| 9457 | fi |
| 9458 | done |
| 9459 | if test -z "$haveit"; then |
| 9460 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 9461 | fi |
| 9462 | if test "$hardcode_minus_L" != no; then |
| 9463 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 9464 | else |
| 9465 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9466 | fi |
| 9467 | fi |
| 9468 | fi |
| 9469 | fi |
| 9470 | else |
| 9471 | if test "X$found_a" != "X"; then |
| 9472 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 9473 | else |
| 9474 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 9475 | fi |
| 9476 | fi |
| 9477 | additional_includedir= |
| 9478 | case "$found_dir" in |
| 9479 | */lib | */lib/) |
| 9480 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 9481 | additional_includedir="$basedir/include" |
| 9482 | ;; |
| 9483 | esac |
| 9484 | if test "X$additional_includedir" != "X"; then |
| 9485 | if test "X$additional_includedir" != "X/usr/include"; then |
| 9486 | haveit= |
| 9487 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 9488 | if test -n "$GCC"; then |
| 9489 | case $host_os in |
| 9490 | linux*) haveit=yes;; |
| 9491 | esac |
| 9492 | fi |
| 9493 | fi |
| 9494 | if test -z "$haveit"; then |
| 9495 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9496 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9497 | acl_save_prefix="$prefix" |
| 9498 | prefix="$acl_final_prefix" |
| 9499 | acl_save_exec_prefix="$exec_prefix" |
| 9500 | exec_prefix="$acl_final_exec_prefix" |
| 9501 | eval x=\"$x\" |
| 9502 | exec_prefix="$acl_save_exec_prefix" |
| 9503 | prefix="$acl_save_prefix" |
| 9504 | |
| 9505 | if test "X$x" = "X-I$additional_includedir"; then |
| 9506 | haveit=yes |
| 9507 | break |
| 9508 | fi |
| 9509 | done |
| 9510 | if test -z "$haveit"; then |
| 9511 | if test -d "$additional_includedir"; then |
| 9512 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9513 | fi |
| 9514 | fi |
| 9515 | fi |
| 9516 | fi |
| 9517 | fi |
| 9518 | if test -n "$found_la"; then |
| 9519 | save_libdir="$libdir" |
| 9520 | case "$found_la" in |
| 9521 | */* | *\\*) . "$found_la" ;; |
| 9522 | *) . "./$found_la" ;; |
| 9523 | esac |
| 9524 | libdir="$save_libdir" |
| 9525 | for dep in $dependency_libs; do |
| 9526 | case "$dep" in |
| 9527 | -L*) |
| 9528 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9529 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9530 | haveit= |
| 9531 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9532 | if test -n "$GCC"; then |
| 9533 | case $host_os in |
| 9534 | linux*) haveit=yes;; |
| 9535 | esac |
| 9536 | fi |
| 9537 | fi |
| 9538 | if test -z "$haveit"; then |
| 9539 | haveit= |
| 9540 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9541 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9542 | acl_save_prefix="$prefix" |
| 9543 | prefix="$acl_final_prefix" |
| 9544 | acl_save_exec_prefix="$exec_prefix" |
| 9545 | exec_prefix="$acl_final_exec_prefix" |
| 9546 | eval x=\"$x\" |
| 9547 | exec_prefix="$acl_save_exec_prefix" |
| 9548 | prefix="$acl_save_prefix" |
| 9549 | |
| 9550 | if test "X$x" = "X-L$additional_libdir"; then |
| 9551 | haveit=yes |
| 9552 | break |
| 9553 | fi |
| 9554 | done |
| 9555 | if test -z "$haveit"; then |
| 9556 | if test -d "$additional_libdir"; then |
| 9557 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9558 | fi |
| 9559 | fi |
| 9560 | haveit= |
| 9561 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9562 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9563 | acl_save_prefix="$prefix" |
| 9564 | prefix="$acl_final_prefix" |
| 9565 | acl_save_exec_prefix="$exec_prefix" |
| 9566 | exec_prefix="$acl_final_exec_prefix" |
| 9567 | eval x=\"$x\" |
| 9568 | exec_prefix="$acl_save_exec_prefix" |
| 9569 | prefix="$acl_save_prefix" |
| 9570 | |
| 9571 | if test "X$x" = "X-L$additional_libdir"; then |
| 9572 | haveit=yes |
| 9573 | break |
| 9574 | fi |
| 9575 | done |
| 9576 | if test -z "$haveit"; then |
| 9577 | if test -d "$additional_libdir"; then |
| 9578 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9579 | fi |
| 9580 | fi |
| 9581 | fi |
| 9582 | fi |
| 9583 | ;; |
| 9584 | -R*) |
| 9585 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9586 | if test "$enable_rpath" != no; then |
| 9587 | haveit= |
| 9588 | for x in $rpathdirs; do |
| 9589 | if test "X$x" = "X$dir"; then |
| 9590 | haveit=yes |
| 9591 | break |
| 9592 | fi |
| 9593 | done |
| 9594 | if test -z "$haveit"; then |
| 9595 | rpathdirs="$rpathdirs $dir" |
| 9596 | fi |
| 9597 | haveit= |
| 9598 | for x in $ltrpathdirs; do |
| 9599 | if test "X$x" = "X$dir"; then |
| 9600 | haveit=yes |
| 9601 | break |
| 9602 | fi |
| 9603 | done |
| 9604 | if test -z "$haveit"; then |
| 9605 | ltrpathdirs="$ltrpathdirs $dir" |
| 9606 | fi |
| 9607 | fi |
| 9608 | ;; |
| 9609 | -l*) |
| 9610 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9611 | ;; |
| 9612 | *.la) |
| 9613 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9614 | ;; |
| 9615 | *) |
| 9616 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9617 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9618 | ;; |
| 9619 | esac |
| 9620 | done |
| 9621 | fi |
| 9622 | else |
| 9623 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9624 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9625 | fi |
| 9626 | fi |
| 9627 | fi |
| 9628 | done |
| 9629 | done |
| 9630 | if test "X$rpathdirs" != "X"; then |
| 9631 | if test -n "$hardcode_libdir_separator"; then |
| 9632 | alldirs= |
| 9633 | for found_dir in $rpathdirs; do |
| 9634 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9635 | done |
| 9636 | acl_save_libdir="$libdir" |
| 9637 | libdir="$alldirs" |
| 9638 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9639 | libdir="$acl_save_libdir" |
| 9640 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9641 | else |
| 9642 | for found_dir in $rpathdirs; do |
| 9643 | acl_save_libdir="$libdir" |
| 9644 | libdir="$found_dir" |
| 9645 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9646 | libdir="$acl_save_libdir" |
| 9647 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9648 | done |
| 9649 | fi |
| 9650 | fi |
| 9651 | if test "X$ltrpathdirs" != "X"; then |
| 9652 | for found_dir in $ltrpathdirs; do |
| 9653 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9654 | done |
| 9655 | fi |
| 9656 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9657 | echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 9658 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6 |
| 9659 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 9660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9661 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9662 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9663 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9664 | gt_save_LIBS="$LIBS" |
| 9665 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | cat >conftest.$ac_ext <<_ACEOF |
| 9667 | /* confdefs.h. */ |
| 9668 | _ACEOF |
| 9669 | cat confdefs.h >>conftest.$ac_ext |
| 9670 | cat >>conftest.$ac_ext <<_ACEOF |
| 9671 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9672 | #include <libintl.h> |
| 9673 | extern int _nl_msg_cat_cntr; |
| 9674 | extern |
| 9675 | #ifdef __cplusplus |
| 9676 | "C" |
| 9677 | #endif |
| 9678 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9679 | int |
| 9680 | main () |
| 9681 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9682 | bindtextdomain ("", ""); |
| 9683 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9684 | ; |
| 9685 | return 0; |
| 9686 | } |
| 9687 | _ACEOF |
| 9688 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9690 | (eval $ac_link) 2>conftest.er1 |
| 9691 | ac_status=$? |
| 9692 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9693 | rm -f conftest.er1 |
| 9694 | cat conftest.err >&5 |
| 9695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9696 | (exit $ac_status); } && |
| 9697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9699 | (eval $ac_try) 2>&5 |
| 9700 | ac_status=$? |
| 9701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9702 | (exit $ac_status); }; } && |
| 9703 | { ac_try='test -s conftest$ac_exeext' |
| 9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9705 | (eval $ac_try) 2>&5 |
| 9706 | ac_status=$? |
| 9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9708 | (exit $ac_status); }; }; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9709 | gt_cv_func_gnugettext1_libintl=yes |
| 9710 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9711 | echo "$as_me: failed program was:" >&5 |
| 9712 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9713 | |
| 9714 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9716 | rm -f conftest.err conftest.$ac_objext \ |
| 9717 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9718 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9719 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9720 | cat >conftest.$ac_ext <<_ACEOF |
| 9721 | /* confdefs.h. */ |
| 9722 | _ACEOF |
| 9723 | cat confdefs.h >>conftest.$ac_ext |
| 9724 | cat >>conftest.$ac_ext <<_ACEOF |
| 9725 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9726 | #include <libintl.h> |
| 9727 | extern int _nl_msg_cat_cntr; |
| 9728 | extern |
| 9729 | #ifdef __cplusplus |
| 9730 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9731 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9732 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9733 | int |
| 9734 | main () |
| 9735 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9736 | bindtextdomain ("", ""); |
| 9737 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9738 | ; |
| 9739 | return 0; |
| 9740 | } |
| 9741 | _ACEOF |
| 9742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9744 | (eval $ac_link) 2>conftest.er1 |
| 9745 | ac_status=$? |
| 9746 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9747 | rm -f conftest.er1 |
| 9748 | cat conftest.err >&5 |
| 9749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9750 | (exit $ac_status); } && |
| 9751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 9752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9753 | (eval $ac_try) 2>&5 |
| 9754 | ac_status=$? |
| 9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9756 | (exit $ac_status); }; } && |
| 9757 | { ac_try='test -s conftest$ac_exeext' |
| 9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9759 | (eval $ac_try) 2>&5 |
| 9760 | ac_status=$? |
| 9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9762 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9763 | LIBINTL="$LIBINTL $LIBICONV" |
| 9764 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9765 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9766 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9767 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9768 | echo "$as_me: failed program was:" >&5 |
| 9769 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9770 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9771 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9772 | rm -f conftest.err conftest.$ac_objext \ |
| 9773 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9774 | fi |
| 9775 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9776 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9777 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9778 | echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 9779 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9780 | fi |
| 9781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9782 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9783 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9784 | && test "$PACKAGE" != gettext-runtime \ |
| 9785 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9786 | gt_use_preinstalled_gnugettext=yes |
| 9787 | else |
| 9788 | LIBINTL= |
| 9789 | LTLIBINTL= |
| 9790 | INCINTL= |
| 9791 | fi |
| 9792 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9793 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9794 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9795 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9796 | fi |
| 9797 | fi |
| 9798 | |
| 9799 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9800 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9801 | USE_INCLUDED_LIBINTL=yes |
| 9802 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9803 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9804 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9805 | fi |
| 9806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9807 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9808 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9809 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9810 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9811 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9812 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9813 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9814 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9815 | |
| 9816 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9817 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9818 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9819 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9820 | else |
| 9821 | USE_NLS=no |
| 9822 | fi |
| 9823 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9824 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9825 | echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 9826 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6 |
| 9827 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9828 | echo "${ECHO_T}$USE_NLS" >&6 |
| 9829 | if test "$USE_NLS" = "yes"; then |
| 9830 | echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 9831 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6 |
| 9832 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9833 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9834 | gt_source="external libintl" |
| 9835 | else |
| 9836 | gt_source="libc" |
| 9837 | fi |
| 9838 | else |
| 9839 | gt_source="included intl directory" |
| 9840 | fi |
| 9841 | echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 9842 | echo "${ECHO_T}$gt_source" >&6 |
| 9843 | fi |
| 9844 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9845 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9846 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9847 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9848 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9849 | echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 9850 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6 |
| 9851 | echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 9852 | echo "${ECHO_T}$LIBINTL" >&6 |
| 9853 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9854 | for element in $INCINTL; do |
| 9855 | haveit= |
| 9856 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9857 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9858 | acl_save_prefix="$prefix" |
| 9859 | prefix="$acl_final_prefix" |
| 9860 | acl_save_exec_prefix="$exec_prefix" |
| 9861 | exec_prefix="$acl_final_exec_prefix" |
| 9862 | eval x=\"$x\" |
| 9863 | exec_prefix="$acl_save_exec_prefix" |
| 9864 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9865 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9866 | if test "X$x" = "X$element"; then |
| 9867 | haveit=yes |
| 9868 | break |
| 9869 | fi |
| 9870 | done |
| 9871 | if test -z "$haveit"; then |
| 9872 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9873 | fi |
| 9874 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9875 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9876 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9877 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9878 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9879 | cat >>confdefs.h <<\_ACEOF |
| 9880 | #define HAVE_GETTEXT 1 |
| 9881 | _ACEOF |
| 9882 | |
| 9883 | |
| 9884 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9885 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9886 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9887 | |
| 9888 | fi |
| 9889 | |
| 9890 | POSUB=po |
| 9891 | fi |
| 9892 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9893 | |
| 9894 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9895 | BUILD_INCLUDED_LIBINTL=yes |
| 9896 | fi |
| 9897 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9898 | |
| 9899 | |
| 9900 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9901 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9902 | nls_cv_header_intl= |
| 9903 | nls_cv_header_libgt= |
| 9904 | |
| 9905 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9906 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9907 | |
| 9908 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9909 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9910 | |
| 9911 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9912 | |
| 9913 | |
| 9914 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9915 | INTLOBJS="\$(GETTOBJS)" |
| 9916 | fi |
| 9917 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9918 | |
| 9919 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9920 | |
| 9921 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9922 | |
| 9923 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9924 | |
| 9925 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9926 | |
| 9927 | |
| 9928 | |
| 9929 | |
| 9930 | |
| 9931 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 9932 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 9933 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
| 9934 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9936 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9938 | all: |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9939 | @echo 'ac_maketemp="$(MAKE)"' |
| 9940 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9941 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9942 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9943 | if test -n "$ac_maketemp"; then |
| 9944 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 9945 | else |
| 9946 | eval ac_cv_prog_make_${ac_make}_set=no |
| 9947 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9948 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9949 | fi |
| 9950 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9951 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9952 | echo "${ECHO_T}yes" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9953 | SET_MAKE= |
| 9954 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9955 | echo "$as_me:$LINENO: result: no" >&5 |
| 9956 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9957 | SET_MAKE="MAKE=${MAKE-make}" |
| 9958 | fi |
| 9959 | |
| 9960 | # Extract the first word of "ln", so it can be a program name with args. |
| 9961 | set dummy ln; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9962 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9963 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 9964 | if test "${ac_cv_path_LN+set}" = set; then |
| 9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9966 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9967 | case $LN in |
| 9968 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9969 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9970 | ;; |
| 9971 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9973 | for as_dir in $PATH |
| 9974 | do |
| 9975 | IFS=$as_save_IFS |
| 9976 | test -z "$as_dir" && as_dir=. |
| 9977 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9978 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 9979 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 9980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9981 | break 2 |
| 9982 | fi |
| 9983 | done |
| 9984 | done |
| 9985 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9986 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9987 | ;; |
| 9988 | esac |
| 9989 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9990 | LN=$ac_cv_path_LN |
| 9991 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9992 | if test -n "$LN"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9993 | echo "$as_me:$LINENO: result: $LN" >&5 |
| 9994 | echo "${ECHO_T}$LN" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9995 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9996 | echo "$as_me:$LINENO: result: no" >&5 |
| 9997 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9998 | fi |
| 9999 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10000 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10001 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 10002 | LN_S=$as_ln_s |
| 10003 | if test "$LN_S" = "ln -s"; then |
| 10004 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10005 | echo "${ECHO_T}yes" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10006 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10007 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10008 | echo "${ECHO_T}no, using $LN_S" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10009 | fi |
| 10010 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10011 | # Extract the first word of "mv", so it can be a program name with args. |
| 10012 | set dummy mv; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10013 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10014 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10015 | if test "${ac_cv_path_MV+set}" = set; then |
| 10016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10017 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10018 | case $MV in |
| 10019 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10020 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10021 | ;; |
| 10022 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10024 | for as_dir in $PATH |
| 10025 | do |
| 10026 | IFS=$as_save_IFS |
| 10027 | test -z "$as_dir" && as_dir=. |
| 10028 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10029 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10030 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10031 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10032 | break 2 |
| 10033 | fi |
| 10034 | done |
| 10035 | done |
| 10036 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10037 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10038 | ;; |
| 10039 | esac |
| 10040 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10041 | MV=$ac_cv_path_MV |
| 10042 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10043 | if test -n "$MV"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10044 | echo "$as_me:$LINENO: result: $MV" >&5 |
| 10045 | echo "${ECHO_T}$MV" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10046 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10047 | echo "$as_me:$LINENO: result: no" >&5 |
| 10048 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10049 | fi |
| 10050 | |
| 10051 | # Extract the first word of "cp", so it can be a program name with args. |
| 10052 | set dummy cp; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10053 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10055 | if test "${ac_cv_path_CP+set}" = set; then |
| 10056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10057 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10058 | case $CP in |
| 10059 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10060 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10061 | ;; |
| 10062 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10064 | for as_dir in $PATH |
| 10065 | do |
| 10066 | IFS=$as_save_IFS |
| 10067 | test -z "$as_dir" && as_dir=. |
| 10068 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10070 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10072 | break 2 |
| 10073 | fi |
| 10074 | done |
| 10075 | done |
| 10076 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10077 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10078 | ;; |
| 10079 | esac |
| 10080 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10081 | CP=$ac_cv_path_CP |
| 10082 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10083 | if test -n "$CP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10084 | echo "$as_me:$LINENO: result: $CP" >&5 |
| 10085 | echo "${ECHO_T}$CP" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10086 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10087 | echo "$as_me:$LINENO: result: no" >&5 |
| 10088 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10089 | fi |
| 10090 | |
| 10091 | # Extract the first word of "rm", so it can be a program name with args. |
| 10092 | set dummy rm; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10093 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10094 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10095 | if test "${ac_cv_path_RM+set}" = set; then |
| 10096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10097 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10098 | case $RM in |
| 10099 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10100 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10101 | ;; |
| 10102 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10104 | for as_dir in $PATH |
| 10105 | do |
| 10106 | IFS=$as_save_IFS |
| 10107 | test -z "$as_dir" && as_dir=. |
| 10108 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10110 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10112 | break 2 |
| 10113 | fi |
| 10114 | done |
| 10115 | done |
| 10116 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10117 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10118 | ;; |
| 10119 | esac |
| 10120 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10121 | RM=$ac_cv_path_RM |
| 10122 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10123 | if test -n "$RM"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10124 | echo "$as_me:$LINENO: result: $RM" >&5 |
| 10125 | echo "${ECHO_T}$RM" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10126 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10127 | echo "$as_me:$LINENO: result: no" >&5 |
| 10128 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10129 | fi |
| 10130 | |
| 10131 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10132 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10133 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10134 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10135 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10137 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10138 | case $CHMOD in |
| 10139 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10140 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10141 | ;; |
| 10142 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10144 | for as_dir in $PATH |
| 10145 | do |
| 10146 | IFS=$as_save_IFS |
| 10147 | test -z "$as_dir" && as_dir=. |
| 10148 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10149 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10150 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10152 | break 2 |
| 10153 | fi |
| 10154 | done |
| 10155 | done |
| 10156 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10157 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10158 | ;; |
| 10159 | esac |
| 10160 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10161 | CHMOD=$ac_cv_path_CHMOD |
| 10162 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10163 | if test -n "$CHMOD"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10164 | echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10165 | echo "${ECHO_T}$CHMOD" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10166 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10167 | echo "$as_me:$LINENO: result: no" >&5 |
| 10168 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10169 | fi |
| 10170 | |
| 10171 | # Extract the first word of "awk", so it can be a program name with args. |
| 10172 | set dummy awk; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10173 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10174 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10175 | if test "${ac_cv_path_AWK+set}" = set; then |
| 10176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10177 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10178 | case $AWK in |
| 10179 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10180 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 10181 | ;; |
| 10182 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10184 | for as_dir in $PATH |
| 10185 | do |
| 10186 | IFS=$as_save_IFS |
| 10187 | test -z "$as_dir" && as_dir=. |
| 10188 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10190 | ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" |
| 10191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10192 | break 2 |
| 10193 | fi |
| 10194 | done |
| 10195 | done |
| 10196 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10197 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 10198 | ;; |
| 10199 | esac |
| 10200 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10201 | AWK=$ac_cv_path_AWK |
| 10202 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10203 | if test -n "$AWK"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10204 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10205 | echo "${ECHO_T}$AWK" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10206 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10207 | echo "$as_me:$LINENO: result: no" >&5 |
| 10208 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10209 | fi |
| 10210 | |
| 10211 | # Extract the first word of "sed", so it can be a program name with args. |
| 10212 | set dummy sed; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10215 | if test "${ac_cv_path_SED+set}" = set; then |
| 10216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | case $SED in |
| 10219 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10220 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 10221 | ;; |
| 10222 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10224 | for as_dir in $PATH |
| 10225 | do |
| 10226 | IFS=$as_save_IFS |
| 10227 | test -z "$as_dir" && as_dir=. |
| 10228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10230 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 10231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10232 | break 2 |
| 10233 | fi |
| 10234 | done |
| 10235 | done |
| 10236 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10237 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 10238 | ;; |
| 10239 | esac |
| 10240 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10241 | SED=$ac_cv_path_SED |
| 10242 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10243 | if test -n "$SED"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10244 | echo "$as_me:$LINENO: result: $SED" >&5 |
| 10245 | echo "${ECHO_T}$SED" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | echo "$as_me:$LINENO: result: no" >&5 |
| 10248 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10249 | fi |
| 10250 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10251 | # Extract the first word of "perl", so it can be a program name with args. |
| 10252 | set dummy perl; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10255 | if test "${ac_cv_path_PERL+set}" = set; then |
| 10256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10257 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10258 | case $PERL in |
| 10259 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10260 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 10261 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10262 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10264 | for as_dir in $PATH |
| 10265 | do |
| 10266 | IFS=$as_save_IFS |
| 10267 | test -z "$as_dir" && as_dir=. |
| 10268 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10269 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10270 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 10271 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10272 | break 2 |
| 10273 | fi |
| 10274 | done |
| 10275 | done |
| 10276 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10277 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 10278 | ;; |
| 10279 | esac |
| 10280 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10281 | PERL=$ac_cv_path_PERL |
| 10282 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10283 | if test -n "$PERL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10284 | echo "$as_me:$LINENO: result: $PERL" >&5 |
| 10285 | echo "${ECHO_T}$PERL" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10286 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10287 | echo "$as_me:$LINENO: result: no" >&5 |
| 10288 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 10289 | fi |
| 10290 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10291 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 10292 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10295 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 10296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10297 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10298 | case $LDCONFIG in |
| 10299 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10300 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 10301 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10302 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10303 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10304 | for as_dir in $PATH |
| 10305 | do |
| 10306 | IFS=$as_save_IFS |
| 10307 | test -z "$as_dir" && as_dir=. |
| 10308 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10309 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10310 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 10311 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10312 | break 2 |
| 10313 | fi |
| 10314 | done |
| 10315 | done |
| 10316 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10317 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 10318 | ;; |
| 10319 | esac |
| 10320 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10321 | LDCONFIG=$ac_cv_path_LDCONFIG |
| 10322 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10323 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10324 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 10325 | echo "${ECHO_T}$LDCONFIG" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10326 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10327 | echo "$as_me:$LINENO: result: no" >&5 |
| 10328 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 10329 | fi |
| 10330 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10331 | if test -n "$ac_tool_prefix"; then |
| 10332 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10333 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10336 | if test "${ac_cv_prog_AR+set}" = set; then |
| 10337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10338 | else |
| 10339 | if test -n "$AR"; then |
| 10340 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 10341 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10343 | for as_dir in $PATH |
| 10344 | do |
| 10345 | IFS=$as_save_IFS |
| 10346 | test -z "$as_dir" && as_dir=. |
| 10347 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10349 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 10350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10351 | break 2 |
| 10352 | fi |
| 10353 | done |
| 10354 | done |
| 10355 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10356 | fi |
| 10357 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10358 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10359 | if test -n "$AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10360 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 10361 | echo "${ECHO_T}$AR" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10362 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10363 | echo "$as_me:$LINENO: result: no" >&5 |
| 10364 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10365 | fi |
| 10366 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10367 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10368 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10369 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10370 | # Extract the first word of "ar", so it can be a program name with args. |
| 10371 | set dummy ar; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10374 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 10375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10376 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10377 | if test -n "$ac_ct_AR"; then |
| 10378 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10381 | for as_dir in $PATH |
| 10382 | do |
| 10383 | IFS=$as_save_IFS |
| 10384 | test -z "$as_dir" && as_dir=. |
| 10385 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10387 | ac_cv_prog_ac_ct_AR="ar" |
| 10388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10389 | break 2 |
| 10390 | fi |
| 10391 | done |
| 10392 | done |
| 10393 | |
| 10394 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10395 | fi |
| 10396 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10397 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 10398 | if test -n "$ac_ct_AR"; then |
| 10399 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 10400 | echo "${ECHO_T}$ac_ct_AR" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10401 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10402 | echo "$as_me:$LINENO: result: no" >&5 |
| 10403 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10404 | fi |
| 10405 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10406 | AR=$ac_ct_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10407 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10408 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10409 | fi |
| 10410 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10411 | if test -n "$ac_tool_prefix"; then |
| 10412 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10413 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10416 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 10417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10418 | else |
| 10419 | if test -n "$RANLIB"; then |
| 10420 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 10421 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10423 | for as_dir in $PATH |
| 10424 | do |
| 10425 | IFS=$as_save_IFS |
| 10426 | test -z "$as_dir" && as_dir=. |
| 10427 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10429 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 10430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10431 | break 2 |
| 10432 | fi |
| 10433 | done |
| 10434 | done |
| 10435 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10436 | fi |
| 10437 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10438 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10439 | if test -n "$RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10440 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 10441 | echo "${ECHO_T}$RANLIB" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10442 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10443 | echo "$as_me:$LINENO: result: no" >&5 |
| 10444 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10445 | fi |
| 10446 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10447 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10448 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10449 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10450 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10451 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10452 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10454 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10456 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | if test -n "$ac_ct_RANLIB"; then |
| 10458 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10459 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10461 | for as_dir in $PATH |
| 10462 | do |
| 10463 | IFS=$as_save_IFS |
| 10464 | test -z "$as_dir" && as_dir=. |
| 10465 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10467 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 10468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10469 | break 2 |
| 10470 | fi |
| 10471 | done |
| 10472 | done |
| 10473 | |
| 10474 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10475 | fi |
| 10476 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10477 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10478 | if test -n "$ac_ct_RANLIB"; then |
| 10479 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 10480 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10481 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10482 | echo "$as_me:$LINENO: result: no" >&5 |
| 10483 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10484 | fi |
| 10485 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10486 | RANLIB=$ac_ct_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10487 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10488 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10489 | fi |
| 10490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10491 | if test -n "$ac_tool_prefix"; then |
| 10492 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10493 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10496 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 10497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10498 | else |
| 10499 | if test -n "$STRIP"; then |
| 10500 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10501 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10503 | for as_dir in $PATH |
| 10504 | do |
| 10505 | IFS=$as_save_IFS |
| 10506 | test -z "$as_dir" && as_dir=. |
| 10507 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10509 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 10510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10511 | break 2 |
| 10512 | fi |
| 10513 | done |
| 10514 | done |
| 10515 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10516 | fi |
| 10517 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10518 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10519 | if test -n "$STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 10521 | echo "${ECHO_T}$STRIP" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10522 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10523 | echo "$as_me:$LINENO: result: no" >&5 |
| 10524 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10525 | fi |
| 10526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10527 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10528 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10529 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10530 | # Extract the first word of "strip", so it can be a program name with args. |
| 10531 | set dummy strip; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10532 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10534 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 10535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10536 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10537 | if test -n "$ac_ct_STRIP"; then |
| 10538 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10539 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10541 | for as_dir in $PATH |
| 10542 | do |
| 10543 | IFS=$as_save_IFS |
| 10544 | test -z "$as_dir" && as_dir=. |
| 10545 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10547 | ac_cv_prog_ac_ct_STRIP="strip" |
| 10548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10549 | break 2 |
| 10550 | fi |
| 10551 | done |
| 10552 | done |
| 10553 | |
| 10554 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10555 | fi |
| 10556 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10557 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10558 | if test -n "$ac_ct_STRIP"; then |
| 10559 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 10560 | echo "${ECHO_T}$ac_ct_STRIP" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10561 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10562 | echo "$as_me:$LINENO: result: no" >&5 |
| 10563 | echo "${ECHO_T}no" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10564 | fi |
| 10565 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10566 | STRIP=$ac_ct_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10567 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10568 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10569 | fi |
| 10570 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10571 | # Find a good install program. We prefer a C program (faster), |
| 10572 | # so one script is as good as another. But avoid the broken or |
| 10573 | # incompatible versions: |
| 10574 | # SysV /etc/install, /usr/sbin/install |
| 10575 | # SunOS /usr/etc/install |
| 10576 | # IRIX /sbin/install |
| 10577 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10578 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 10579 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10580 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 10581 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10582 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10583 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10584 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 10585 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10586 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10587 | if test "${ac_cv_path_install+set}" = set; then |
| 10588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10589 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10591 | for as_dir in $PATH |
| 10592 | do |
| 10593 | IFS=$as_save_IFS |
| 10594 | test -z "$as_dir" && as_dir=. |
| 10595 | # Account for people who put trailing slashes in PATH elements. |
| 10596 | case $as_dir/ in |
| 10597 | ./ | .// | /cC/* | \ |
| 10598 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 10599 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 10600 | /usr/ucb/* ) ;; |
| 10601 | *) |
| 10602 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 10603 | # Don't use installbsd from OSF since it installs stuff as root |
| 10604 | # by default. |
| 10605 | for ac_prog in ginstall scoinst install; do |
| 10606 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10607 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10608 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10609 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10610 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10611 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10612 | elif test $ac_prog = install && |
| 10613 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 10614 | # program-specific install script used by HP pwplus--don't use. |
| 10615 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10616 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10617 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 10618 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10619 | fi |
| 10620 | fi |
| 10621 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10622 | done |
| 10623 | ;; |
| 10624 | esac |
| 10625 | done |
| 10626 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 10627 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10628 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 10629 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10630 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 10631 | else |
| 10632 | # As a last resort, use the slow shell script. We don't cache a |
| 10633 | # path for INSTALL within a source directory, because that will |
| 10634 | # break other packages using the cache if that directory is |
| 10635 | # removed, or if the path is relative. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10636 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 10637 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10638 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10639 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 10640 | echo "${ECHO_T}$INSTALL" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10641 | |
| 10642 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 10643 | # It thinks the first close brace ends the variable substitution. |
| 10644 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 10645 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10646 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 10647 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10648 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 10649 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10650 | # See if we need a separate native compiler. |
| 10651 | if test $cross_compiling = no; then |
| 10652 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10653 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10654 | else |
| 10655 | for ac_prog in gcc cc |
| 10656 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10657 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10658 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 10661 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 10662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10663 | else |
| 10664 | if test -n "$BUILD_CC"; then |
| 10665 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10666 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10668 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10669 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10670 | IFS=$as_save_IFS |
| 10671 | test -z "$as_dir" && as_dir=. |
| 10672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 10674 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 10675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10676 | break 2 |
| 10677 | fi |
| 10678 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10679 | done |
| 10680 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10681 | fi |
| 10682 | fi |
| 10683 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10684 | if test -n "$BUILD_CC"; then |
| 10685 | echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 10686 | echo "${ECHO_T}$BUILD_CC" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10687 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10688 | echo "$as_me:$LINENO: result: no" >&5 |
| 10689 | echo "${ECHO_T}no" >&6 |
| 10690 | fi |
| 10691 | |
| 10692 | test -n "$BUILD_CC" && break |
| 10693 | done |
| 10694 | |
| 10695 | fi |
| 10696 | |
| 10697 | |
| 10698 | |
| 10699 | |
| 10700 | |
| 10701 | |
| 10702 | |
| 10703 | |
| 10704 | |
| 10705 | |
| 10706 | |
| 10707 | |
| 10708 | |
| 10709 | |
| 10710 | |
| 10711 | |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | |
| 10716 | |
| 10717 | |
| 10718 | |
| 10719 | |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | |
| 10725 | |
| 10726 | |
| 10727 | |
| 10728 | for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h |
| 10729 | do |
| 10730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10732 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10734 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10736 | fi |
| 10737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10738 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10739 | else |
| 10740 | # Is the header compilable? |
| 10741 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 10742 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 10743 | cat >conftest.$ac_ext <<_ACEOF |
| 10744 | /* confdefs.h. */ |
| 10745 | _ACEOF |
| 10746 | cat confdefs.h >>conftest.$ac_ext |
| 10747 | cat >>conftest.$ac_ext <<_ACEOF |
| 10748 | /* end confdefs.h. */ |
| 10749 | $ac_includes_default |
| 10750 | #include <$ac_header> |
| 10751 | _ACEOF |
| 10752 | rm -f conftest.$ac_objext |
| 10753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10754 | (eval $ac_compile) 2>conftest.er1 |
| 10755 | ac_status=$? |
| 10756 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10757 | rm -f conftest.er1 |
| 10758 | cat conftest.err >&5 |
| 10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10760 | (exit $ac_status); } && |
| 10761 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10763 | (eval $ac_try) 2>&5 |
| 10764 | ac_status=$? |
| 10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10766 | (exit $ac_status); }; } && |
| 10767 | { ac_try='test -s conftest.$ac_objext' |
| 10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10769 | (eval $ac_try) 2>&5 |
| 10770 | ac_status=$? |
| 10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10772 | (exit $ac_status); }; }; then |
| 10773 | ac_header_compiler=yes |
| 10774 | else |
| 10775 | echo "$as_me: failed program was:" >&5 |
| 10776 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10777 | |
| 10778 | ac_header_compiler=no |
| 10779 | fi |
| 10780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10782 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10783 | |
| 10784 | # Is the header present? |
| 10785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 10786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 10787 | cat >conftest.$ac_ext <<_ACEOF |
| 10788 | /* confdefs.h. */ |
| 10789 | _ACEOF |
| 10790 | cat confdefs.h >>conftest.$ac_ext |
| 10791 | cat >>conftest.$ac_ext <<_ACEOF |
| 10792 | /* end confdefs.h. */ |
| 10793 | #include <$ac_header> |
| 10794 | _ACEOF |
| 10795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10797 | ac_status=$? |
| 10798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10799 | rm -f conftest.er1 |
| 10800 | cat conftest.err >&5 |
| 10801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10802 | (exit $ac_status); } >/dev/null; then |
| 10803 | if test -s conftest.err; then |
| 10804 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 10806 | else |
| 10807 | ac_cpp_err= |
| 10808 | fi |
| 10809 | else |
| 10810 | ac_cpp_err=yes |
| 10811 | fi |
| 10812 | if test -z "$ac_cpp_err"; then |
| 10813 | ac_header_preproc=yes |
| 10814 | else |
| 10815 | echo "$as_me: failed program was:" >&5 |
| 10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10817 | |
| 10818 | ac_header_preproc=no |
| 10819 | fi |
| 10820 | rm -f conftest.err conftest.$ac_ext |
| 10821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10822 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10823 | |
| 10824 | # So? What about this header? |
| 10825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 10826 | yes:no: ) |
| 10827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 10830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 10831 | ac_header_preproc=yes |
| 10832 | ;; |
| 10833 | no:yes:* ) |
| 10834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 10835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 10836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 10837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 10838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 10839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 10840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 10841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 10842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 10843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 10844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 10845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 10846 | ( |
| 10847 | cat <<\_ASBOX |
| 10848 | ## ------------------------------------------ ## |
| 10849 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 10850 | ## ------------------------------------------ ## |
| 10851 | _ASBOX |
| 10852 | ) | |
| 10853 | sed "s/^/$as_me: WARNING: /" >&2 |
| 10854 | ;; |
| 10855 | esac |
| 10856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 10857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 10859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10860 | else |
| 10861 | eval "$as_ac_Header=\$ac_header_preproc" |
| 10862 | fi |
| 10863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 10864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10865 | |
| 10866 | fi |
| 10867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 10868 | cat >>confdefs.h <<_ACEOF |
| 10869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 10870 | _ACEOF |
| 10871 | |
| 10872 | fi |
| 10873 | |
| 10874 | done |
| 10875 | |
| 10876 | |
| 10877 | for ac_func in vprintf |
| 10878 | do |
| 10879 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10880 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10882 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10884 | else |
| 10885 | cat >conftest.$ac_ext <<_ACEOF |
| 10886 | /* confdefs.h. */ |
| 10887 | _ACEOF |
| 10888 | cat confdefs.h >>conftest.$ac_ext |
| 10889 | cat >>conftest.$ac_ext <<_ACEOF |
| 10890 | /* end confdefs.h. */ |
| 10891 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 10892 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10893 | #define $ac_func innocuous_$ac_func |
| 10894 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10895 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10896 | which can conflict with char $ac_func (); below. |
| 10897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10898 | <limits.h> exists even on freestanding compilers. */ |
| 10899 | |
| 10900 | #ifdef __STDC__ |
| 10901 | # include <limits.h> |
| 10902 | #else |
| 10903 | # include <assert.h> |
| 10904 | #endif |
| 10905 | |
| 10906 | #undef $ac_func |
| 10907 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10908 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10909 | #ifdef __cplusplus |
| 10910 | extern "C" |
| 10911 | { |
| 10912 | #endif |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 10913 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10914 | builtin and then its argument prototype would still apply. */ |
| 10915 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10916 | /* The GNU C library defines this for functions which it implements |
| 10917 | to always fail with ENOSYS. Some functions are actually named |
| 10918 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10920 | choke me |
| 10921 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10922 | char (*f) () = $ac_func; |
| 10923 | #endif |
| 10924 | #ifdef __cplusplus |
| 10925 | } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10926 | #endif |
| 10927 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10928 | int |
| 10929 | main () |
| 10930 | { |
| 10931 | return f != $ac_func; |
| 10932 | ; |
| 10933 | return 0; |
| 10934 | } |
| 10935 | _ACEOF |
| 10936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10938 | (eval $ac_link) 2>conftest.er1 |
| 10939 | ac_status=$? |
| 10940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10941 | rm -f conftest.er1 |
| 10942 | cat conftest.err >&5 |
| 10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10944 | (exit $ac_status); } && |
| 10945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 10946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10947 | (eval $ac_try) 2>&5 |
| 10948 | ac_status=$? |
| 10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10950 | (exit $ac_status); }; } && |
| 10951 | { ac_try='test -s conftest$ac_exeext' |
| 10952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10953 | (eval $ac_try) 2>&5 |
| 10954 | ac_status=$? |
| 10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10956 | (exit $ac_status); }; }; then |
| 10957 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10958 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10959 | echo "$as_me: failed program was:" >&5 |
| 10960 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10961 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10962 | eval "$as_ac_var=no" |
| 10963 | fi |
| 10964 | rm -f conftest.err conftest.$ac_objext \ |
| 10965 | conftest$ac_exeext conftest.$ac_ext |
| 10966 | fi |
| 10967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10968 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10969 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10970 | cat >>confdefs.h <<_ACEOF |
| 10971 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10972 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10973 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10974 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 10975 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
| 10976 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 10977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10978 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10979 | cat >conftest.$ac_ext <<_ACEOF |
| 10980 | /* confdefs.h. */ |
| 10981 | _ACEOF |
| 10982 | cat confdefs.h >>conftest.$ac_ext |
| 10983 | cat >>conftest.$ac_ext <<_ACEOF |
| 10984 | /* end confdefs.h. */ |
| 10985 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 10986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 10987 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10988 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10989 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10990 | which can conflict with char _doprnt (); below. |
| 10991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 10992 | <limits.h> exists even on freestanding compilers. */ |
| 10993 | |
| 10994 | #ifdef __STDC__ |
| 10995 | # include <limits.h> |
| 10996 | #else |
| 10997 | # include <assert.h> |
| 10998 | #endif |
| 10999 | |
| 11000 | #undef _doprnt |
| 11001 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11002 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11003 | #ifdef __cplusplus |
| 11004 | extern "C" |
| 11005 | { |
| 11006 | #endif |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11007 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11008 | builtin and then its argument prototype would still apply. */ |
| 11009 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11010 | /* The GNU C library defines this for functions which it implements |
| 11011 | to always fail with ENOSYS. Some functions are actually named |
| 11012 | something starting with __ and the normal name is an alias. */ |
| 11013 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 11014 | choke me |
| 11015 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11016 | char (*f) () = _doprnt; |
| 11017 | #endif |
| 11018 | #ifdef __cplusplus |
| 11019 | } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11020 | #endif |
| 11021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11022 | int |
| 11023 | main () |
| 11024 | { |
| 11025 | return f != _doprnt; |
| 11026 | ; |
| 11027 | return 0; |
| 11028 | } |
| 11029 | _ACEOF |
| 11030 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11032 | (eval $ac_link) 2>conftest.er1 |
| 11033 | ac_status=$? |
| 11034 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11035 | rm -f conftest.er1 |
| 11036 | cat conftest.err >&5 |
| 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11038 | (exit $ac_status); } && |
| 11039 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11041 | (eval $ac_try) 2>&5 |
| 11042 | ac_status=$? |
| 11043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11044 | (exit $ac_status); }; } && |
| 11045 | { ac_try='test -s conftest$ac_exeext' |
| 11046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11047 | (eval $ac_try) 2>&5 |
| 11048 | ac_status=$? |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11050 | (exit $ac_status); }; }; then |
| 11051 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11052 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11053 | echo "$as_me: failed program was:" >&5 |
| 11054 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11055 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11056 | ac_cv_func__doprnt=no |
| 11057 | fi |
| 11058 | rm -f conftest.err conftest.$ac_objext \ |
| 11059 | conftest$ac_exeext conftest.$ac_ext |
| 11060 | fi |
| 11061 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 11062 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
| 11063 | if test $ac_cv_func__doprnt = yes; then |
| 11064 | |
| 11065 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11066 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11067 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11068 | |
| 11069 | fi |
| 11070 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11071 | fi |
| 11072 | done |
| 11073 | |
| 11074 | |
| 11075 | echo "$as_me:$LINENO: checking whether d_reclen declared in dirent" >&5 |
| 11076 | echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6 |
| 11077 | if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then |
| 11078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11080 | cat >conftest.$ac_ext <<_ACEOF |
| 11081 | /* confdefs.h. */ |
| 11082 | _ACEOF |
| 11083 | cat confdefs.h >>conftest.$ac_ext |
| 11084 | cat >>conftest.$ac_ext <<_ACEOF |
| 11085 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11086 | #include <dirent.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11087 | int |
| 11088 | main () |
| 11089 | { |
| 11090 | struct dirent de; de.d_reclen = 0; |
| 11091 | ; |
| 11092 | return 0; |
| 11093 | } |
| 11094 | _ACEOF |
| 11095 | rm -f conftest.$ac_objext |
| 11096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11097 | (eval $ac_compile) 2>conftest.er1 |
| 11098 | ac_status=$? |
| 11099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11100 | rm -f conftest.er1 |
| 11101 | cat conftest.err >&5 |
| 11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11103 | (exit $ac_status); } && |
| 11104 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11106 | (eval $ac_try) 2>&5 |
| 11107 | ac_status=$? |
| 11108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11109 | (exit $ac_status); }; } && |
| 11110 | { ac_try='test -s conftest.$ac_objext' |
| 11111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11112 | (eval $ac_try) 2>&5 |
| 11113 | ac_status=$? |
| 11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11115 | (exit $ac_status); }; }; then |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11116 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 11117 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11118 | echo "$as_me: failed program was:" >&5 |
| 11119 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11120 | |
| 11121 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11122 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11124 | fi |
| 11125 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11126 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5 |
| 11127 | echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11128 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11129 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11130 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11131 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11132 | |
| 11133 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11134 | echo "$as_me:$LINENO: checking whether ssize_t declared" >&5 |
| 11135 | echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6 |
| 11136 | if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then |
| 11137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11138 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11139 | cat >conftest.$ac_ext <<_ACEOF |
| 11140 | /* confdefs.h. */ |
| 11141 | _ACEOF |
| 11142 | cat confdefs.h >>conftest.$ac_ext |
| 11143 | cat >>conftest.$ac_ext <<_ACEOF |
| 11144 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11145 | #include <sys/types.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11146 | int |
| 11147 | main () |
| 11148 | { |
| 11149 | ssize_t a = 0; |
| 11150 | ; |
| 11151 | return 0; |
| 11152 | } |
| 11153 | _ACEOF |
| 11154 | rm -f conftest.$ac_objext |
| 11155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11156 | (eval $ac_compile) 2>conftest.er1 |
| 11157 | ac_status=$? |
| 11158 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11159 | rm -f conftest.er1 |
| 11160 | cat conftest.err >&5 |
| 11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11162 | (exit $ac_status); } && |
| 11163 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11165 | (eval $ac_try) 2>&5 |
| 11166 | ac_status=$? |
| 11167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11168 | (exit $ac_status); }; } && |
| 11169 | { ac_try='test -s conftest.$ac_objext' |
| 11170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11171 | (eval $ac_try) 2>&5 |
| 11172 | ac_status=$? |
| 11173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11174 | (exit $ac_status); }; }; then |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11175 | e2fsprogs_cv_have_ssize_t=yes |
| 11176 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11177 | echo "$as_me: failed program was:" >&5 |
| 11178 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11179 | |
| 11180 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11181 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11183 | fi |
| 11184 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11185 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_ssize_t" >&5 |
| 11186 | echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11187 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11188 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11189 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11190 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11191 | |
| 11192 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11193 | echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5 |
| 11194 | echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6 |
| 11195 | if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then |
| 11196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11197 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11198 | cat >conftest.$ac_ext <<_ACEOF |
| 11199 | /* confdefs.h. */ |
| 11200 | _ACEOF |
| 11201 | cat confdefs.h >>conftest.$ac_ext |
| 11202 | cat >>conftest.$ac_ext <<_ACEOF |
| 11203 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11204 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11205 | int |
| 11206 | main () |
| 11207 | { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11208 | extern int llseek(int); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11209 | ; |
| 11210 | return 0; |
| 11211 | } |
| 11212 | _ACEOF |
| 11213 | rm -f conftest.$ac_objext |
| 11214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11215 | (eval $ac_compile) 2>conftest.er1 |
| 11216 | ac_status=$? |
| 11217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11218 | rm -f conftest.er1 |
| 11219 | cat conftest.err >&5 |
| 11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11221 | (exit $ac_status); } && |
| 11222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11224 | (eval $ac_try) 2>&5 |
| 11225 | ac_status=$? |
| 11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11227 | (exit $ac_status); }; } && |
| 11228 | { ac_try='test -s conftest.$ac_objext' |
| 11229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11230 | (eval $ac_try) 2>&5 |
| 11231 | ac_status=$? |
| 11232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11233 | (exit $ac_status); }; }; then |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11234 | e2fsprogs_cv_have_llseek_prototype=no |
| 11235 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11236 | echo "$as_me: failed program was:" >&5 |
| 11237 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11238 | |
| 11239 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11240 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11242 | fi |
| 11243 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11244 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_llseek_prototype" >&5 |
| 11245 | echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11246 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11247 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11248 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11249 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 11250 | |
| 11251 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11252 | echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5 |
| 11253 | echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6 |
| 11254 | if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then |
| 11255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11256 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11257 | cat >conftest.$ac_ext <<_ACEOF |
| 11258 | /* confdefs.h. */ |
| 11259 | _ACEOF |
| 11260 | cat confdefs.h >>conftest.$ac_ext |
| 11261 | cat >>conftest.$ac_ext <<_ACEOF |
| 11262 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11263 | #define _LARGEFILE_SOURCE |
| 11264 | #define _LARGEFILE64_SOURCE |
| 11265 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11266 | int |
| 11267 | main () |
| 11268 | { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11269 | extern int lseek64(int); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11270 | ; |
| 11271 | return 0; |
| 11272 | } |
| 11273 | _ACEOF |
| 11274 | rm -f conftest.$ac_objext |
| 11275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11276 | (eval $ac_compile) 2>conftest.er1 |
| 11277 | ac_status=$? |
| 11278 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11279 | rm -f conftest.er1 |
| 11280 | cat conftest.err >&5 |
| 11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11282 | (exit $ac_status); } && |
| 11283 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11285 | (eval $ac_try) 2>&5 |
| 11286 | ac_status=$? |
| 11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11288 | (exit $ac_status); }; } && |
| 11289 | { ac_try='test -s conftest.$ac_objext' |
| 11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11291 | (eval $ac_try) 2>&5 |
| 11292 | ac_status=$? |
| 11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11294 | (exit $ac_status); }; }; then |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11295 | e2fsprogs_cv_have_lseek64_prototype=no |
| 11296 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11297 | echo "$as_me: failed program was:" >&5 |
| 11298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11299 | |
| 11300 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11301 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11303 | fi |
| 11304 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11305 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_lseek64_prototype" >&5 |
| 11306 | echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11307 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11308 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11309 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11310 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 11311 | |
| 11312 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11313 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11314 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | ac_cv_sizeof_short=2 |
| 11316 | ac_cv_sizeof_int=4 |
| 11317 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11318 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11319 | { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5 |
| 11320 | echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11321 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11322 | echo "$as_me:$LINENO: checking for short" >&5 |
| 11323 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 11324 | if test "${ac_cv_type_short+set}" = set; then |
| 11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11326 | else |
| 11327 | cat >conftest.$ac_ext <<_ACEOF |
| 11328 | /* confdefs.h. */ |
| 11329 | _ACEOF |
| 11330 | cat confdefs.h >>conftest.$ac_ext |
| 11331 | cat >>conftest.$ac_ext <<_ACEOF |
| 11332 | /* end confdefs.h. */ |
| 11333 | $ac_includes_default |
| 11334 | int |
| 11335 | main () |
| 11336 | { |
| 11337 | if ((short *) 0) |
| 11338 | return 0; |
| 11339 | if (sizeof (short)) |
| 11340 | return 0; |
| 11341 | ; |
| 11342 | return 0; |
| 11343 | } |
| 11344 | _ACEOF |
| 11345 | rm -f conftest.$ac_objext |
| 11346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11347 | (eval $ac_compile) 2>conftest.er1 |
| 11348 | ac_status=$? |
| 11349 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11350 | rm -f conftest.er1 |
| 11351 | cat conftest.err >&5 |
| 11352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11353 | (exit $ac_status); } && |
| 11354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11356 | (eval $ac_try) 2>&5 |
| 11357 | ac_status=$? |
| 11358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11359 | (exit $ac_status); }; } && |
| 11360 | { ac_try='test -s conftest.$ac_objext' |
| 11361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11362 | (eval $ac_try) 2>&5 |
| 11363 | ac_status=$? |
| 11364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11365 | (exit $ac_status); }; }; then |
| 11366 | ac_cv_type_short=yes |
| 11367 | else |
| 11368 | echo "$as_me: failed program was:" >&5 |
| 11369 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11370 | |
| 11371 | ac_cv_type_short=no |
| 11372 | fi |
| 11373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11374 | fi |
| 11375 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 11376 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 11377 | |
| 11378 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 11379 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 11380 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11382 | else |
| 11383 | if test "$ac_cv_type_short" = yes; then |
| 11384 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 11385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11387 | # This bug is HP SR number 8606223364. |
| 11388 | if test "$cross_compiling" = yes; then |
| 11389 | # Depending upon the size, compute the lo and hi bounds. |
| 11390 | cat >conftest.$ac_ext <<_ACEOF |
| 11391 | /* confdefs.h. */ |
| 11392 | _ACEOF |
| 11393 | cat confdefs.h >>conftest.$ac_ext |
| 11394 | cat >>conftest.$ac_ext <<_ACEOF |
| 11395 | /* end confdefs.h. */ |
| 11396 | $ac_includes_default |
| 11397 | int |
| 11398 | main () |
| 11399 | { |
| 11400 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 11401 | test_array [0] = 0 |
| 11402 | |
| 11403 | ; |
| 11404 | return 0; |
| 11405 | } |
| 11406 | _ACEOF |
| 11407 | rm -f conftest.$ac_objext |
| 11408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11409 | (eval $ac_compile) 2>conftest.er1 |
| 11410 | ac_status=$? |
| 11411 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11412 | rm -f conftest.er1 |
| 11413 | cat conftest.err >&5 |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); } && |
| 11416 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11418 | (eval $ac_try) 2>&5 |
| 11419 | ac_status=$? |
| 11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11421 | (exit $ac_status); }; } && |
| 11422 | { ac_try='test -s conftest.$ac_objext' |
| 11423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11424 | (eval $ac_try) 2>&5 |
| 11425 | ac_status=$? |
| 11426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11427 | (exit $ac_status); }; }; then |
| 11428 | ac_lo=0 ac_mid=0 |
| 11429 | while :; do |
| 11430 | cat >conftest.$ac_ext <<_ACEOF |
| 11431 | /* confdefs.h. */ |
| 11432 | _ACEOF |
| 11433 | cat confdefs.h >>conftest.$ac_ext |
| 11434 | cat >>conftest.$ac_ext <<_ACEOF |
| 11435 | /* end confdefs.h. */ |
| 11436 | $ac_includes_default |
| 11437 | int |
| 11438 | main () |
| 11439 | { |
| 11440 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 11441 | test_array [0] = 0 |
| 11442 | |
| 11443 | ; |
| 11444 | return 0; |
| 11445 | } |
| 11446 | _ACEOF |
| 11447 | rm -f conftest.$ac_objext |
| 11448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11449 | (eval $ac_compile) 2>conftest.er1 |
| 11450 | ac_status=$? |
| 11451 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11452 | rm -f conftest.er1 |
| 11453 | cat conftest.err >&5 |
| 11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11455 | (exit $ac_status); } && |
| 11456 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11458 | (eval $ac_try) 2>&5 |
| 11459 | ac_status=$? |
| 11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11461 | (exit $ac_status); }; } && |
| 11462 | { ac_try='test -s conftest.$ac_objext' |
| 11463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11464 | (eval $ac_try) 2>&5 |
| 11465 | ac_status=$? |
| 11466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11467 | (exit $ac_status); }; }; then |
| 11468 | ac_hi=$ac_mid; break |
| 11469 | else |
| 11470 | echo "$as_me: failed program was:" >&5 |
| 11471 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11472 | |
| 11473 | ac_lo=`expr $ac_mid + 1` |
| 11474 | if test $ac_lo -le $ac_mid; then |
| 11475 | ac_lo= ac_hi= |
| 11476 | break |
| 11477 | fi |
| 11478 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11479 | fi |
| 11480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11481 | done |
| 11482 | else |
| 11483 | echo "$as_me: failed program was:" >&5 |
| 11484 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11485 | |
| 11486 | cat >conftest.$ac_ext <<_ACEOF |
| 11487 | /* confdefs.h. */ |
| 11488 | _ACEOF |
| 11489 | cat confdefs.h >>conftest.$ac_ext |
| 11490 | cat >>conftest.$ac_ext <<_ACEOF |
| 11491 | /* end confdefs.h. */ |
| 11492 | $ac_includes_default |
| 11493 | int |
| 11494 | main () |
| 11495 | { |
| 11496 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 11497 | test_array [0] = 0 |
| 11498 | |
| 11499 | ; |
| 11500 | return 0; |
| 11501 | } |
| 11502 | _ACEOF |
| 11503 | rm -f conftest.$ac_objext |
| 11504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11505 | (eval $ac_compile) 2>conftest.er1 |
| 11506 | ac_status=$? |
| 11507 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11508 | rm -f conftest.er1 |
| 11509 | cat conftest.err >&5 |
| 11510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11511 | (exit $ac_status); } && |
| 11512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11514 | (eval $ac_try) 2>&5 |
| 11515 | ac_status=$? |
| 11516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11517 | (exit $ac_status); }; } && |
| 11518 | { ac_try='test -s conftest.$ac_objext' |
| 11519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11520 | (eval $ac_try) 2>&5 |
| 11521 | ac_status=$? |
| 11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11523 | (exit $ac_status); }; }; then |
| 11524 | ac_hi=-1 ac_mid=-1 |
| 11525 | while :; do |
| 11526 | cat >conftest.$ac_ext <<_ACEOF |
| 11527 | /* confdefs.h. */ |
| 11528 | _ACEOF |
| 11529 | cat confdefs.h >>conftest.$ac_ext |
| 11530 | cat >>conftest.$ac_ext <<_ACEOF |
| 11531 | /* end confdefs.h. */ |
| 11532 | $ac_includes_default |
| 11533 | int |
| 11534 | main () |
| 11535 | { |
| 11536 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 11537 | test_array [0] = 0 |
| 11538 | |
| 11539 | ; |
| 11540 | return 0; |
| 11541 | } |
| 11542 | _ACEOF |
| 11543 | rm -f conftest.$ac_objext |
| 11544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11545 | (eval $ac_compile) 2>conftest.er1 |
| 11546 | ac_status=$? |
| 11547 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11548 | rm -f conftest.er1 |
| 11549 | cat conftest.err >&5 |
| 11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11551 | (exit $ac_status); } && |
| 11552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11554 | (eval $ac_try) 2>&5 |
| 11555 | ac_status=$? |
| 11556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11557 | (exit $ac_status); }; } && |
| 11558 | { ac_try='test -s conftest.$ac_objext' |
| 11559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11560 | (eval $ac_try) 2>&5 |
| 11561 | ac_status=$? |
| 11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11563 | (exit $ac_status); }; }; then |
| 11564 | ac_lo=$ac_mid; break |
| 11565 | else |
| 11566 | echo "$as_me: failed program was:" >&5 |
| 11567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11568 | |
| 11569 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11570 | if test $ac_mid -le $ac_hi; then |
| 11571 | ac_lo= ac_hi= |
| 11572 | break |
| 11573 | fi |
| 11574 | ac_mid=`expr 2 '*' $ac_mid` |
| 11575 | fi |
| 11576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11577 | done |
| 11578 | else |
| 11579 | echo "$as_me: failed program was:" >&5 |
| 11580 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11581 | |
| 11582 | ac_lo= ac_hi= |
| 11583 | fi |
| 11584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11585 | fi |
| 11586 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11587 | # Binary search between lo and hi bounds. |
| 11588 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11589 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11590 | cat >conftest.$ac_ext <<_ACEOF |
| 11591 | /* confdefs.h. */ |
| 11592 | _ACEOF |
| 11593 | cat confdefs.h >>conftest.$ac_ext |
| 11594 | cat >>conftest.$ac_ext <<_ACEOF |
| 11595 | /* end confdefs.h. */ |
| 11596 | $ac_includes_default |
| 11597 | int |
| 11598 | main () |
| 11599 | { |
| 11600 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 11601 | test_array [0] = 0 |
| 11602 | |
| 11603 | ; |
| 11604 | return 0; |
| 11605 | } |
| 11606 | _ACEOF |
| 11607 | rm -f conftest.$ac_objext |
| 11608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11609 | (eval $ac_compile) 2>conftest.er1 |
| 11610 | ac_status=$? |
| 11611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11612 | rm -f conftest.er1 |
| 11613 | cat conftest.err >&5 |
| 11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11615 | (exit $ac_status); } && |
| 11616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11618 | (eval $ac_try) 2>&5 |
| 11619 | ac_status=$? |
| 11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11621 | (exit $ac_status); }; } && |
| 11622 | { ac_try='test -s conftest.$ac_objext' |
| 11623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11624 | (eval $ac_try) 2>&5 |
| 11625 | ac_status=$? |
| 11626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11627 | (exit $ac_status); }; }; then |
| 11628 | ac_hi=$ac_mid |
| 11629 | else |
| 11630 | echo "$as_me: failed program was:" >&5 |
| 11631 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11632 | |
| 11633 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 11634 | fi |
| 11635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11636 | done |
| 11637 | case $ac_lo in |
| 11638 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 11639 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 11640 | See \`config.log' for more details." >&5 |
| 11641 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 11642 | See \`config.log' for more details." >&2;} |
| 11643 | { (exit 1); exit 1; }; } ;; |
| 11644 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11645 | else |
| 11646 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11647 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 11648 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 11649 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11650 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11651 | cat >conftest.$ac_ext <<_ACEOF |
| 11652 | /* confdefs.h. */ |
| 11653 | _ACEOF |
| 11654 | cat confdefs.h >>conftest.$ac_ext |
| 11655 | cat >>conftest.$ac_ext <<_ACEOF |
| 11656 | /* end confdefs.h. */ |
| 11657 | $ac_includes_default |
| 11658 | long longval () { return (long) (sizeof (short)); } |
| 11659 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11660 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11661 | #include <stdlib.h> |
| 11662 | int |
| 11663 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11664 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11665 | |
| 11666 | FILE *f = fopen ("conftest.val", "w"); |
| 11667 | if (! f) |
| 11668 | exit (1); |
| 11669 | if (((long) (sizeof (short))) < 0) |
| 11670 | { |
| 11671 | long i = longval (); |
| 11672 | if (i != ((long) (sizeof (short)))) |
| 11673 | exit (1); |
| 11674 | fprintf (f, "%ld\n", i); |
| 11675 | } |
| 11676 | else |
| 11677 | { |
| 11678 | unsigned long i = ulongval (); |
| 11679 | if (i != ((long) (sizeof (short)))) |
| 11680 | exit (1); |
| 11681 | fprintf (f, "%lu\n", i); |
| 11682 | } |
| 11683 | exit (ferror (f) || fclose (f) != 0); |
| 11684 | |
| 11685 | ; |
| 11686 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11687 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11688 | _ACEOF |
| 11689 | rm -f conftest$ac_exeext |
| 11690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11691 | (eval $ac_link) 2>&5 |
| 11692 | ac_status=$? |
| 11693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11696 | (eval $ac_try) 2>&5 |
| 11697 | ac_status=$? |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); }; }; then |
| 11700 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11701 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11702 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11703 | echo "$as_me: failed program was:" >&5 |
| 11704 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11705 | |
| 11706 | ( exit $ac_status ) |
| 11707 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
| 11708 | See \`config.log' for more details." >&5 |
| 11709 | echo "$as_me: error: cannot compute sizeof (short), 77 |
| 11710 | See \`config.log' for more details." >&2;} |
| 11711 | { (exit 1); exit 1; }; } |
| 11712 | fi |
| 11713 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11714 | fi |
| 11715 | fi |
| 11716 | rm -f conftest.val |
| 11717 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11718 | ac_cv_sizeof_short=0 |
| 11719 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11720 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11721 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 11722 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 11723 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11724 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11725 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11726 | |
| 11727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11728 | echo "$as_me:$LINENO: checking for int" >&5 |
| 11729 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 11730 | if test "${ac_cv_type_int+set}" = set; then |
| 11731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11732 | else |
| 11733 | cat >conftest.$ac_ext <<_ACEOF |
| 11734 | /* confdefs.h. */ |
| 11735 | _ACEOF |
| 11736 | cat confdefs.h >>conftest.$ac_ext |
| 11737 | cat >>conftest.$ac_ext <<_ACEOF |
| 11738 | /* end confdefs.h. */ |
| 11739 | $ac_includes_default |
| 11740 | int |
| 11741 | main () |
| 11742 | { |
| 11743 | if ((int *) 0) |
| 11744 | return 0; |
| 11745 | if (sizeof (int)) |
| 11746 | return 0; |
| 11747 | ; |
| 11748 | return 0; |
| 11749 | } |
| 11750 | _ACEOF |
| 11751 | rm -f conftest.$ac_objext |
| 11752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11753 | (eval $ac_compile) 2>conftest.er1 |
| 11754 | ac_status=$? |
| 11755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11756 | rm -f conftest.er1 |
| 11757 | cat conftest.err >&5 |
| 11758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11759 | (exit $ac_status); } && |
| 11760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11762 | (eval $ac_try) 2>&5 |
| 11763 | ac_status=$? |
| 11764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11765 | (exit $ac_status); }; } && |
| 11766 | { ac_try='test -s conftest.$ac_objext' |
| 11767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11768 | (eval $ac_try) 2>&5 |
| 11769 | ac_status=$? |
| 11770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11771 | (exit $ac_status); }; }; then |
| 11772 | ac_cv_type_int=yes |
| 11773 | else |
| 11774 | echo "$as_me: failed program was:" >&5 |
| 11775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11776 | |
| 11777 | ac_cv_type_int=no |
| 11778 | fi |
| 11779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11780 | fi |
| 11781 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 11782 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 11783 | |
| 11784 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 11785 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 11786 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 11787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11788 | else |
| 11789 | if test "$ac_cv_type_int" = yes; then |
| 11790 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 11791 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 11792 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 11793 | # This bug is HP SR number 8606223364. |
| 11794 | if test "$cross_compiling" = yes; then |
| 11795 | # Depending upon the size, compute the lo and hi bounds. |
| 11796 | cat >conftest.$ac_ext <<_ACEOF |
| 11797 | /* confdefs.h. */ |
| 11798 | _ACEOF |
| 11799 | cat confdefs.h >>conftest.$ac_ext |
| 11800 | cat >>conftest.$ac_ext <<_ACEOF |
| 11801 | /* end confdefs.h. */ |
| 11802 | $ac_includes_default |
| 11803 | int |
| 11804 | main () |
| 11805 | { |
| 11806 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 11807 | test_array [0] = 0 |
| 11808 | |
| 11809 | ; |
| 11810 | return 0; |
| 11811 | } |
| 11812 | _ACEOF |
| 11813 | rm -f conftest.$ac_objext |
| 11814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11815 | (eval $ac_compile) 2>conftest.er1 |
| 11816 | ac_status=$? |
| 11817 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11818 | rm -f conftest.er1 |
| 11819 | cat conftest.err >&5 |
| 11820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11821 | (exit $ac_status); } && |
| 11822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11824 | (eval $ac_try) 2>&5 |
| 11825 | ac_status=$? |
| 11826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11827 | (exit $ac_status); }; } && |
| 11828 | { ac_try='test -s conftest.$ac_objext' |
| 11829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11830 | (eval $ac_try) 2>&5 |
| 11831 | ac_status=$? |
| 11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11833 | (exit $ac_status); }; }; then |
| 11834 | ac_lo=0 ac_mid=0 |
| 11835 | while :; do |
| 11836 | cat >conftest.$ac_ext <<_ACEOF |
| 11837 | /* confdefs.h. */ |
| 11838 | _ACEOF |
| 11839 | cat confdefs.h >>conftest.$ac_ext |
| 11840 | cat >>conftest.$ac_ext <<_ACEOF |
| 11841 | /* end confdefs.h. */ |
| 11842 | $ac_includes_default |
| 11843 | int |
| 11844 | main () |
| 11845 | { |
| 11846 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 11847 | test_array [0] = 0 |
| 11848 | |
| 11849 | ; |
| 11850 | return 0; |
| 11851 | } |
| 11852 | _ACEOF |
| 11853 | rm -f conftest.$ac_objext |
| 11854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11855 | (eval $ac_compile) 2>conftest.er1 |
| 11856 | ac_status=$? |
| 11857 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11858 | rm -f conftest.er1 |
| 11859 | cat conftest.err >&5 |
| 11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11861 | (exit $ac_status); } && |
| 11862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11864 | (eval $ac_try) 2>&5 |
| 11865 | ac_status=$? |
| 11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11867 | (exit $ac_status); }; } && |
| 11868 | { ac_try='test -s conftest.$ac_objext' |
| 11869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11870 | (eval $ac_try) 2>&5 |
| 11871 | ac_status=$? |
| 11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11873 | (exit $ac_status); }; }; then |
| 11874 | ac_hi=$ac_mid; break |
| 11875 | else |
| 11876 | echo "$as_me: failed program was:" >&5 |
| 11877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11878 | |
| 11879 | ac_lo=`expr $ac_mid + 1` |
| 11880 | if test $ac_lo -le $ac_mid; then |
| 11881 | ac_lo= ac_hi= |
| 11882 | break |
| 11883 | fi |
| 11884 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 11885 | fi |
| 11886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11887 | done |
| 11888 | else |
| 11889 | echo "$as_me: failed program was:" >&5 |
| 11890 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11891 | |
| 11892 | cat >conftest.$ac_ext <<_ACEOF |
| 11893 | /* confdefs.h. */ |
| 11894 | _ACEOF |
| 11895 | cat confdefs.h >>conftest.$ac_ext |
| 11896 | cat >>conftest.$ac_ext <<_ACEOF |
| 11897 | /* end confdefs.h. */ |
| 11898 | $ac_includes_default |
| 11899 | int |
| 11900 | main () |
| 11901 | { |
| 11902 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 11903 | test_array [0] = 0 |
| 11904 | |
| 11905 | ; |
| 11906 | return 0; |
| 11907 | } |
| 11908 | _ACEOF |
| 11909 | rm -f conftest.$ac_objext |
| 11910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11911 | (eval $ac_compile) 2>conftest.er1 |
| 11912 | ac_status=$? |
| 11913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11914 | rm -f conftest.er1 |
| 11915 | cat conftest.err >&5 |
| 11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11917 | (exit $ac_status); } && |
| 11918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11920 | (eval $ac_try) 2>&5 |
| 11921 | ac_status=$? |
| 11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11923 | (exit $ac_status); }; } && |
| 11924 | { ac_try='test -s conftest.$ac_objext' |
| 11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11926 | (eval $ac_try) 2>&5 |
| 11927 | ac_status=$? |
| 11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11929 | (exit $ac_status); }; }; then |
| 11930 | ac_hi=-1 ac_mid=-1 |
| 11931 | while :; do |
| 11932 | cat >conftest.$ac_ext <<_ACEOF |
| 11933 | /* confdefs.h. */ |
| 11934 | _ACEOF |
| 11935 | cat confdefs.h >>conftest.$ac_ext |
| 11936 | cat >>conftest.$ac_ext <<_ACEOF |
| 11937 | /* end confdefs.h. */ |
| 11938 | $ac_includes_default |
| 11939 | int |
| 11940 | main () |
| 11941 | { |
| 11942 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 11943 | test_array [0] = 0 |
| 11944 | |
| 11945 | ; |
| 11946 | return 0; |
| 11947 | } |
| 11948 | _ACEOF |
| 11949 | rm -f conftest.$ac_objext |
| 11950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11951 | (eval $ac_compile) 2>conftest.er1 |
| 11952 | ac_status=$? |
| 11953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11954 | rm -f conftest.er1 |
| 11955 | cat conftest.err >&5 |
| 11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11957 | (exit $ac_status); } && |
| 11958 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 11959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11960 | (eval $ac_try) 2>&5 |
| 11961 | ac_status=$? |
| 11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11963 | (exit $ac_status); }; } && |
| 11964 | { ac_try='test -s conftest.$ac_objext' |
| 11965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11966 | (eval $ac_try) 2>&5 |
| 11967 | ac_status=$? |
| 11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11969 | (exit $ac_status); }; }; then |
| 11970 | ac_lo=$ac_mid; break |
| 11971 | else |
| 11972 | echo "$as_me: failed program was:" >&5 |
| 11973 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11974 | |
| 11975 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 11976 | if test $ac_mid -le $ac_hi; then |
| 11977 | ac_lo= ac_hi= |
| 11978 | break |
| 11979 | fi |
| 11980 | ac_mid=`expr 2 '*' $ac_mid` |
| 11981 | fi |
| 11982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11983 | done |
| 11984 | else |
| 11985 | echo "$as_me: failed program was:" >&5 |
| 11986 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11987 | |
| 11988 | ac_lo= ac_hi= |
| 11989 | fi |
| 11990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11991 | fi |
| 11992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11993 | # Binary search between lo and hi bounds. |
| 11994 | while test "x$ac_lo" != "x$ac_hi"; do |
| 11995 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 11996 | cat >conftest.$ac_ext <<_ACEOF |
| 11997 | /* confdefs.h. */ |
| 11998 | _ACEOF |
| 11999 | cat confdefs.h >>conftest.$ac_ext |
| 12000 | cat >>conftest.$ac_ext <<_ACEOF |
| 12001 | /* end confdefs.h. */ |
| 12002 | $ac_includes_default |
| 12003 | int |
| 12004 | main () |
| 12005 | { |
| 12006 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 12007 | test_array [0] = 0 |
| 12008 | |
| 12009 | ; |
| 12010 | return 0; |
| 12011 | } |
| 12012 | _ACEOF |
| 12013 | rm -f conftest.$ac_objext |
| 12014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12015 | (eval $ac_compile) 2>conftest.er1 |
| 12016 | ac_status=$? |
| 12017 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12018 | rm -f conftest.er1 |
| 12019 | cat conftest.err >&5 |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); } && |
| 12022 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12024 | (eval $ac_try) 2>&5 |
| 12025 | ac_status=$? |
| 12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12027 | (exit $ac_status); }; } && |
| 12028 | { ac_try='test -s conftest.$ac_objext' |
| 12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12030 | (eval $ac_try) 2>&5 |
| 12031 | ac_status=$? |
| 12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12033 | (exit $ac_status); }; }; then |
| 12034 | ac_hi=$ac_mid |
| 12035 | else |
| 12036 | echo "$as_me: failed program was:" >&5 |
| 12037 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12038 | |
| 12039 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12040 | fi |
| 12041 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12042 | done |
| 12043 | case $ac_lo in |
| 12044 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 12045 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 12046 | See \`config.log' for more details." >&5 |
| 12047 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 12048 | See \`config.log' for more details." >&2;} |
| 12049 | { (exit 1); exit 1; }; } ;; |
| 12050 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12051 | else |
| 12052 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12053 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 12054 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 12055 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12056 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | /* confdefs.h. */ |
| 12059 | _ACEOF |
| 12060 | cat confdefs.h >>conftest.$ac_ext |
| 12061 | cat >>conftest.$ac_ext <<_ACEOF |
| 12062 | /* end confdefs.h. */ |
| 12063 | $ac_includes_default |
| 12064 | long longval () { return (long) (sizeof (int)); } |
| 12065 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12066 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12067 | #include <stdlib.h> |
| 12068 | int |
| 12069 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12070 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12071 | |
| 12072 | FILE *f = fopen ("conftest.val", "w"); |
| 12073 | if (! f) |
| 12074 | exit (1); |
| 12075 | if (((long) (sizeof (int))) < 0) |
| 12076 | { |
| 12077 | long i = longval (); |
| 12078 | if (i != ((long) (sizeof (int)))) |
| 12079 | exit (1); |
| 12080 | fprintf (f, "%ld\n", i); |
| 12081 | } |
| 12082 | else |
| 12083 | { |
| 12084 | unsigned long i = ulongval (); |
| 12085 | if (i != ((long) (sizeof (int)))) |
| 12086 | exit (1); |
| 12087 | fprintf (f, "%lu\n", i); |
| 12088 | } |
| 12089 | exit (ferror (f) || fclose (f) != 0); |
| 12090 | |
| 12091 | ; |
| 12092 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12093 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12094 | _ACEOF |
| 12095 | rm -f conftest$ac_exeext |
| 12096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12097 | (eval $ac_link) 2>&5 |
| 12098 | ac_status=$? |
| 12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12102 | (eval $ac_try) 2>&5 |
| 12103 | ac_status=$? |
| 12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12105 | (exit $ac_status); }; }; then |
| 12106 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12107 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12108 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12109 | echo "$as_me: failed program was:" >&5 |
| 12110 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12111 | |
| 12112 | ( exit $ac_status ) |
| 12113 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
| 12114 | See \`config.log' for more details." >&5 |
| 12115 | echo "$as_me: error: cannot compute sizeof (int), 77 |
| 12116 | See \`config.log' for more details." >&2;} |
| 12117 | { (exit 1); exit 1; }; } |
| 12118 | fi |
| 12119 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12120 | fi |
| 12121 | fi |
| 12122 | rm -f conftest.val |
| 12123 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12124 | ac_cv_sizeof_int=0 |
| 12125 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12126 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12127 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 12128 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 12129 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12130 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12131 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12132 | |
| 12133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12134 | echo "$as_me:$LINENO: checking for long" >&5 |
| 12135 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 12136 | if test "${ac_cv_type_long+set}" = set; then |
| 12137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12138 | else |
| 12139 | cat >conftest.$ac_ext <<_ACEOF |
| 12140 | /* confdefs.h. */ |
| 12141 | _ACEOF |
| 12142 | cat confdefs.h >>conftest.$ac_ext |
| 12143 | cat >>conftest.$ac_ext <<_ACEOF |
| 12144 | /* end confdefs.h. */ |
| 12145 | $ac_includes_default |
| 12146 | int |
| 12147 | main () |
| 12148 | { |
| 12149 | if ((long *) 0) |
| 12150 | return 0; |
| 12151 | if (sizeof (long)) |
| 12152 | return 0; |
| 12153 | ; |
| 12154 | return 0; |
| 12155 | } |
| 12156 | _ACEOF |
| 12157 | rm -f conftest.$ac_objext |
| 12158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12159 | (eval $ac_compile) 2>conftest.er1 |
| 12160 | ac_status=$? |
| 12161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12162 | rm -f conftest.er1 |
| 12163 | cat conftest.err >&5 |
| 12164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12165 | (exit $ac_status); } && |
| 12166 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12168 | (eval $ac_try) 2>&5 |
| 12169 | ac_status=$? |
| 12170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12171 | (exit $ac_status); }; } && |
| 12172 | { ac_try='test -s conftest.$ac_objext' |
| 12173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12174 | (eval $ac_try) 2>&5 |
| 12175 | ac_status=$? |
| 12176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12177 | (exit $ac_status); }; }; then |
| 12178 | ac_cv_type_long=yes |
| 12179 | else |
| 12180 | echo "$as_me: failed program was:" >&5 |
| 12181 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12182 | |
| 12183 | ac_cv_type_long=no |
| 12184 | fi |
| 12185 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12186 | fi |
| 12187 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 12188 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 12189 | |
| 12190 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 12191 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 12192 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 12193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12194 | else |
| 12195 | if test "$ac_cv_type_long" = yes; then |
| 12196 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12199 | # This bug is HP SR number 8606223364. |
| 12200 | if test "$cross_compiling" = yes; then |
| 12201 | # Depending upon the size, compute the lo and hi bounds. |
| 12202 | cat >conftest.$ac_ext <<_ACEOF |
| 12203 | /* confdefs.h. */ |
| 12204 | _ACEOF |
| 12205 | cat confdefs.h >>conftest.$ac_ext |
| 12206 | cat >>conftest.$ac_ext <<_ACEOF |
| 12207 | /* end confdefs.h. */ |
| 12208 | $ac_includes_default |
| 12209 | int |
| 12210 | main () |
| 12211 | { |
| 12212 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 12213 | test_array [0] = 0 |
| 12214 | |
| 12215 | ; |
| 12216 | return 0; |
| 12217 | } |
| 12218 | _ACEOF |
| 12219 | rm -f conftest.$ac_objext |
| 12220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12221 | (eval $ac_compile) 2>conftest.er1 |
| 12222 | ac_status=$? |
| 12223 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12224 | rm -f conftest.er1 |
| 12225 | cat conftest.err >&5 |
| 12226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12227 | (exit $ac_status); } && |
| 12228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12230 | (eval $ac_try) 2>&5 |
| 12231 | ac_status=$? |
| 12232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12233 | (exit $ac_status); }; } && |
| 12234 | { ac_try='test -s conftest.$ac_objext' |
| 12235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12236 | (eval $ac_try) 2>&5 |
| 12237 | ac_status=$? |
| 12238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12239 | (exit $ac_status); }; }; then |
| 12240 | ac_lo=0 ac_mid=0 |
| 12241 | while :; do |
| 12242 | cat >conftest.$ac_ext <<_ACEOF |
| 12243 | /* confdefs.h. */ |
| 12244 | _ACEOF |
| 12245 | cat confdefs.h >>conftest.$ac_ext |
| 12246 | cat >>conftest.$ac_ext <<_ACEOF |
| 12247 | /* end confdefs.h. */ |
| 12248 | $ac_includes_default |
| 12249 | int |
| 12250 | main () |
| 12251 | { |
| 12252 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 12253 | test_array [0] = 0 |
| 12254 | |
| 12255 | ; |
| 12256 | return 0; |
| 12257 | } |
| 12258 | _ACEOF |
| 12259 | rm -f conftest.$ac_objext |
| 12260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12261 | (eval $ac_compile) 2>conftest.er1 |
| 12262 | ac_status=$? |
| 12263 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12264 | rm -f conftest.er1 |
| 12265 | cat conftest.err >&5 |
| 12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12267 | (exit $ac_status); } && |
| 12268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12270 | (eval $ac_try) 2>&5 |
| 12271 | ac_status=$? |
| 12272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12273 | (exit $ac_status); }; } && |
| 12274 | { ac_try='test -s conftest.$ac_objext' |
| 12275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12276 | (eval $ac_try) 2>&5 |
| 12277 | ac_status=$? |
| 12278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12279 | (exit $ac_status); }; }; then |
| 12280 | ac_hi=$ac_mid; break |
| 12281 | else |
| 12282 | echo "$as_me: failed program was:" >&5 |
| 12283 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12284 | |
| 12285 | ac_lo=`expr $ac_mid + 1` |
| 12286 | if test $ac_lo -le $ac_mid; then |
| 12287 | ac_lo= ac_hi= |
| 12288 | break |
| 12289 | fi |
| 12290 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12291 | fi |
| 12292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12293 | done |
| 12294 | else |
| 12295 | echo "$as_me: failed program was:" >&5 |
| 12296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12297 | |
| 12298 | cat >conftest.$ac_ext <<_ACEOF |
| 12299 | /* confdefs.h. */ |
| 12300 | _ACEOF |
| 12301 | cat confdefs.h >>conftest.$ac_ext |
| 12302 | cat >>conftest.$ac_ext <<_ACEOF |
| 12303 | /* end confdefs.h. */ |
| 12304 | $ac_includes_default |
| 12305 | int |
| 12306 | main () |
| 12307 | { |
| 12308 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 12309 | test_array [0] = 0 |
| 12310 | |
| 12311 | ; |
| 12312 | return 0; |
| 12313 | } |
| 12314 | _ACEOF |
| 12315 | rm -f conftest.$ac_objext |
| 12316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12317 | (eval $ac_compile) 2>conftest.er1 |
| 12318 | ac_status=$? |
| 12319 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12320 | rm -f conftest.er1 |
| 12321 | cat conftest.err >&5 |
| 12322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12323 | (exit $ac_status); } && |
| 12324 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12326 | (eval $ac_try) 2>&5 |
| 12327 | ac_status=$? |
| 12328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12329 | (exit $ac_status); }; } && |
| 12330 | { ac_try='test -s conftest.$ac_objext' |
| 12331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12332 | (eval $ac_try) 2>&5 |
| 12333 | ac_status=$? |
| 12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12335 | (exit $ac_status); }; }; then |
| 12336 | ac_hi=-1 ac_mid=-1 |
| 12337 | while :; do |
| 12338 | cat >conftest.$ac_ext <<_ACEOF |
| 12339 | /* confdefs.h. */ |
| 12340 | _ACEOF |
| 12341 | cat confdefs.h >>conftest.$ac_ext |
| 12342 | cat >>conftest.$ac_ext <<_ACEOF |
| 12343 | /* end confdefs.h. */ |
| 12344 | $ac_includes_default |
| 12345 | int |
| 12346 | main () |
| 12347 | { |
| 12348 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 12349 | test_array [0] = 0 |
| 12350 | |
| 12351 | ; |
| 12352 | return 0; |
| 12353 | } |
| 12354 | _ACEOF |
| 12355 | rm -f conftest.$ac_objext |
| 12356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12357 | (eval $ac_compile) 2>conftest.er1 |
| 12358 | ac_status=$? |
| 12359 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12360 | rm -f conftest.er1 |
| 12361 | cat conftest.err >&5 |
| 12362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12363 | (exit $ac_status); } && |
| 12364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12366 | (eval $ac_try) 2>&5 |
| 12367 | ac_status=$? |
| 12368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12369 | (exit $ac_status); }; } && |
| 12370 | { ac_try='test -s conftest.$ac_objext' |
| 12371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12372 | (eval $ac_try) 2>&5 |
| 12373 | ac_status=$? |
| 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); }; }; then |
| 12376 | ac_lo=$ac_mid; break |
| 12377 | else |
| 12378 | echo "$as_me: failed program was:" >&5 |
| 12379 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12380 | |
| 12381 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12382 | if test $ac_mid -le $ac_hi; then |
| 12383 | ac_lo= ac_hi= |
| 12384 | break |
| 12385 | fi |
| 12386 | ac_mid=`expr 2 '*' $ac_mid` |
| 12387 | fi |
| 12388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12389 | done |
| 12390 | else |
| 12391 | echo "$as_me: failed program was:" >&5 |
| 12392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12393 | |
| 12394 | ac_lo= ac_hi= |
| 12395 | fi |
| 12396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12397 | fi |
| 12398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12399 | # Binary search between lo and hi bounds. |
| 12400 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12401 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12402 | cat >conftest.$ac_ext <<_ACEOF |
| 12403 | /* confdefs.h. */ |
| 12404 | _ACEOF |
| 12405 | cat confdefs.h >>conftest.$ac_ext |
| 12406 | cat >>conftest.$ac_ext <<_ACEOF |
| 12407 | /* end confdefs.h. */ |
| 12408 | $ac_includes_default |
| 12409 | int |
| 12410 | main () |
| 12411 | { |
| 12412 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 12413 | test_array [0] = 0 |
| 12414 | |
| 12415 | ; |
| 12416 | return 0; |
| 12417 | } |
| 12418 | _ACEOF |
| 12419 | rm -f conftest.$ac_objext |
| 12420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12421 | (eval $ac_compile) 2>conftest.er1 |
| 12422 | ac_status=$? |
| 12423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12424 | rm -f conftest.er1 |
| 12425 | cat conftest.err >&5 |
| 12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12427 | (exit $ac_status); } && |
| 12428 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12430 | (eval $ac_try) 2>&5 |
| 12431 | ac_status=$? |
| 12432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12433 | (exit $ac_status); }; } && |
| 12434 | { ac_try='test -s conftest.$ac_objext' |
| 12435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12436 | (eval $ac_try) 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); }; }; then |
| 12440 | ac_hi=$ac_mid |
| 12441 | else |
| 12442 | echo "$as_me: failed program was:" >&5 |
| 12443 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12444 | |
| 12445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12446 | fi |
| 12447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12448 | done |
| 12449 | case $ac_lo in |
| 12450 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 12451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 12452 | See \`config.log' for more details." >&5 |
| 12453 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 12454 | See \`config.log' for more details." >&2;} |
| 12455 | { (exit 1); exit 1; }; } ;; |
| 12456 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12457 | else |
| 12458 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 12460 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 12461 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12462 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12463 | cat >conftest.$ac_ext <<_ACEOF |
| 12464 | /* confdefs.h. */ |
| 12465 | _ACEOF |
| 12466 | cat confdefs.h >>conftest.$ac_ext |
| 12467 | cat >>conftest.$ac_ext <<_ACEOF |
| 12468 | /* end confdefs.h. */ |
| 12469 | $ac_includes_default |
| 12470 | long longval () { return (long) (sizeof (long)); } |
| 12471 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12472 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12473 | #include <stdlib.h> |
| 12474 | int |
| 12475 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12476 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | |
| 12478 | FILE *f = fopen ("conftest.val", "w"); |
| 12479 | if (! f) |
| 12480 | exit (1); |
| 12481 | if (((long) (sizeof (long))) < 0) |
| 12482 | { |
| 12483 | long i = longval (); |
| 12484 | if (i != ((long) (sizeof (long)))) |
| 12485 | exit (1); |
| 12486 | fprintf (f, "%ld\n", i); |
| 12487 | } |
| 12488 | else |
| 12489 | { |
| 12490 | unsigned long i = ulongval (); |
| 12491 | if (i != ((long) (sizeof (long)))) |
| 12492 | exit (1); |
| 12493 | fprintf (f, "%lu\n", i); |
| 12494 | } |
| 12495 | exit (ferror (f) || fclose (f) != 0); |
| 12496 | |
| 12497 | ; |
| 12498 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12499 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12500 | _ACEOF |
| 12501 | rm -f conftest$ac_exeext |
| 12502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12503 | (eval $ac_link) 2>&5 |
| 12504 | ac_status=$? |
| 12505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12508 | (eval $ac_try) 2>&5 |
| 12509 | ac_status=$? |
| 12510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12511 | (exit $ac_status); }; }; then |
| 12512 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12513 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12514 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12515 | echo "$as_me: failed program was:" >&5 |
| 12516 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12517 | |
| 12518 | ( exit $ac_status ) |
| 12519 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
| 12520 | See \`config.log' for more details." >&5 |
| 12521 | echo "$as_me: error: cannot compute sizeof (long), 77 |
| 12522 | See \`config.log' for more details." >&2;} |
| 12523 | { (exit 1); exit 1; }; } |
| 12524 | fi |
| 12525 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12526 | fi |
| 12527 | fi |
| 12528 | rm -f conftest.val |
| 12529 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12530 | ac_cv_sizeof_long=0 |
| 12531 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12532 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12533 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 12534 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 12535 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12536 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12537 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12538 | |
| 12539 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12540 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 12541 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 12542 | if test "${ac_cv_type_long_long+set}" = set; then |
| 12543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12544 | else |
| 12545 | cat >conftest.$ac_ext <<_ACEOF |
| 12546 | /* confdefs.h. */ |
| 12547 | _ACEOF |
| 12548 | cat confdefs.h >>conftest.$ac_ext |
| 12549 | cat >>conftest.$ac_ext <<_ACEOF |
| 12550 | /* end confdefs.h. */ |
| 12551 | $ac_includes_default |
| 12552 | int |
| 12553 | main () |
| 12554 | { |
| 12555 | if ((long long *) 0) |
| 12556 | return 0; |
| 12557 | if (sizeof (long long)) |
| 12558 | return 0; |
| 12559 | ; |
| 12560 | return 0; |
| 12561 | } |
| 12562 | _ACEOF |
| 12563 | rm -f conftest.$ac_objext |
| 12564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12565 | (eval $ac_compile) 2>conftest.er1 |
| 12566 | ac_status=$? |
| 12567 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12568 | rm -f conftest.er1 |
| 12569 | cat conftest.err >&5 |
| 12570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12571 | (exit $ac_status); } && |
| 12572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12574 | (eval $ac_try) 2>&5 |
| 12575 | ac_status=$? |
| 12576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12577 | (exit $ac_status); }; } && |
| 12578 | { ac_try='test -s conftest.$ac_objext' |
| 12579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12580 | (eval $ac_try) 2>&5 |
| 12581 | ac_status=$? |
| 12582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12583 | (exit $ac_status); }; }; then |
| 12584 | ac_cv_type_long_long=yes |
| 12585 | else |
| 12586 | echo "$as_me: failed program was:" >&5 |
| 12587 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12588 | |
| 12589 | ac_cv_type_long_long=no |
| 12590 | fi |
| 12591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12592 | fi |
| 12593 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 12594 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 12595 | |
| 12596 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 12597 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 12598 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 12599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12600 | else |
| 12601 | if test "$ac_cv_type_long_long" = yes; then |
| 12602 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 12603 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12604 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12605 | # This bug is HP SR number 8606223364. |
| 12606 | if test "$cross_compiling" = yes; then |
| 12607 | # Depending upon the size, compute the lo and hi bounds. |
| 12608 | cat >conftest.$ac_ext <<_ACEOF |
| 12609 | /* confdefs.h. */ |
| 12610 | _ACEOF |
| 12611 | cat confdefs.h >>conftest.$ac_ext |
| 12612 | cat >>conftest.$ac_ext <<_ACEOF |
| 12613 | /* end confdefs.h. */ |
| 12614 | $ac_includes_default |
| 12615 | int |
| 12616 | main () |
| 12617 | { |
| 12618 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 12619 | test_array [0] = 0 |
| 12620 | |
| 12621 | ; |
| 12622 | return 0; |
| 12623 | } |
| 12624 | _ACEOF |
| 12625 | rm -f conftest.$ac_objext |
| 12626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12627 | (eval $ac_compile) 2>conftest.er1 |
| 12628 | ac_status=$? |
| 12629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12630 | rm -f conftest.er1 |
| 12631 | cat conftest.err >&5 |
| 12632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12633 | (exit $ac_status); } && |
| 12634 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12636 | (eval $ac_try) 2>&5 |
| 12637 | ac_status=$? |
| 12638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12639 | (exit $ac_status); }; } && |
| 12640 | { ac_try='test -s conftest.$ac_objext' |
| 12641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12642 | (eval $ac_try) 2>&5 |
| 12643 | ac_status=$? |
| 12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12645 | (exit $ac_status); }; }; then |
| 12646 | ac_lo=0 ac_mid=0 |
| 12647 | while :; do |
| 12648 | cat >conftest.$ac_ext <<_ACEOF |
| 12649 | /* confdefs.h. */ |
| 12650 | _ACEOF |
| 12651 | cat confdefs.h >>conftest.$ac_ext |
| 12652 | cat >>conftest.$ac_ext <<_ACEOF |
| 12653 | /* end confdefs.h. */ |
| 12654 | $ac_includes_default |
| 12655 | int |
| 12656 | main () |
| 12657 | { |
| 12658 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12659 | test_array [0] = 0 |
| 12660 | |
| 12661 | ; |
| 12662 | return 0; |
| 12663 | } |
| 12664 | _ACEOF |
| 12665 | rm -f conftest.$ac_objext |
| 12666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12667 | (eval $ac_compile) 2>conftest.er1 |
| 12668 | ac_status=$? |
| 12669 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12670 | rm -f conftest.er1 |
| 12671 | cat conftest.err >&5 |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && |
| 12674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12676 | (eval $ac_try) 2>&5 |
| 12677 | ac_status=$? |
| 12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12679 | (exit $ac_status); }; } && |
| 12680 | { ac_try='test -s conftest.$ac_objext' |
| 12681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12682 | (eval $ac_try) 2>&5 |
| 12683 | ac_status=$? |
| 12684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12685 | (exit $ac_status); }; }; then |
| 12686 | ac_hi=$ac_mid; break |
| 12687 | else |
| 12688 | echo "$as_me: failed program was:" >&5 |
| 12689 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12690 | |
| 12691 | ac_lo=`expr $ac_mid + 1` |
| 12692 | if test $ac_lo -le $ac_mid; then |
| 12693 | ac_lo= ac_hi= |
| 12694 | break |
| 12695 | fi |
| 12696 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 12697 | fi |
| 12698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12699 | done |
| 12700 | else |
| 12701 | echo "$as_me: failed program was:" >&5 |
| 12702 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12703 | |
| 12704 | cat >conftest.$ac_ext <<_ACEOF |
| 12705 | /* confdefs.h. */ |
| 12706 | _ACEOF |
| 12707 | cat confdefs.h >>conftest.$ac_ext |
| 12708 | cat >>conftest.$ac_ext <<_ACEOF |
| 12709 | /* end confdefs.h. */ |
| 12710 | $ac_includes_default |
| 12711 | int |
| 12712 | main () |
| 12713 | { |
| 12714 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 12715 | test_array [0] = 0 |
| 12716 | |
| 12717 | ; |
| 12718 | return 0; |
| 12719 | } |
| 12720 | _ACEOF |
| 12721 | rm -f conftest.$ac_objext |
| 12722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12723 | (eval $ac_compile) 2>conftest.er1 |
| 12724 | ac_status=$? |
| 12725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12726 | rm -f conftest.er1 |
| 12727 | cat conftest.err >&5 |
| 12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12729 | (exit $ac_status); } && |
| 12730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12732 | (eval $ac_try) 2>&5 |
| 12733 | ac_status=$? |
| 12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12735 | (exit $ac_status); }; } && |
| 12736 | { ac_try='test -s conftest.$ac_objext' |
| 12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12738 | (eval $ac_try) 2>&5 |
| 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); }; }; then |
| 12742 | ac_hi=-1 ac_mid=-1 |
| 12743 | while :; do |
| 12744 | cat >conftest.$ac_ext <<_ACEOF |
| 12745 | /* confdefs.h. */ |
| 12746 | _ACEOF |
| 12747 | cat confdefs.h >>conftest.$ac_ext |
| 12748 | cat >>conftest.$ac_ext <<_ACEOF |
| 12749 | /* end confdefs.h. */ |
| 12750 | $ac_includes_default |
| 12751 | int |
| 12752 | main () |
| 12753 | { |
| 12754 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 12755 | test_array [0] = 0 |
| 12756 | |
| 12757 | ; |
| 12758 | return 0; |
| 12759 | } |
| 12760 | _ACEOF |
| 12761 | rm -f conftest.$ac_objext |
| 12762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12763 | (eval $ac_compile) 2>conftest.er1 |
| 12764 | ac_status=$? |
| 12765 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12766 | rm -f conftest.er1 |
| 12767 | cat conftest.err >&5 |
| 12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12769 | (exit $ac_status); } && |
| 12770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12772 | (eval $ac_try) 2>&5 |
| 12773 | ac_status=$? |
| 12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12775 | (exit $ac_status); }; } && |
| 12776 | { ac_try='test -s conftest.$ac_objext' |
| 12777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12778 | (eval $ac_try) 2>&5 |
| 12779 | ac_status=$? |
| 12780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12781 | (exit $ac_status); }; }; then |
| 12782 | ac_lo=$ac_mid; break |
| 12783 | else |
| 12784 | echo "$as_me: failed program was:" >&5 |
| 12785 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12786 | |
| 12787 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12788 | if test $ac_mid -le $ac_hi; then |
| 12789 | ac_lo= ac_hi= |
| 12790 | break |
| 12791 | fi |
| 12792 | ac_mid=`expr 2 '*' $ac_mid` |
| 12793 | fi |
| 12794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12795 | done |
| 12796 | else |
| 12797 | echo "$as_me: failed program was:" >&5 |
| 12798 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12799 | |
| 12800 | ac_lo= ac_hi= |
| 12801 | fi |
| 12802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12803 | fi |
| 12804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12805 | # Binary search between lo and hi bounds. |
| 12806 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12807 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12808 | cat >conftest.$ac_ext <<_ACEOF |
| 12809 | /* confdefs.h. */ |
| 12810 | _ACEOF |
| 12811 | cat confdefs.h >>conftest.$ac_ext |
| 12812 | cat >>conftest.$ac_ext <<_ACEOF |
| 12813 | /* end confdefs.h. */ |
| 12814 | $ac_includes_default |
| 12815 | int |
| 12816 | main () |
| 12817 | { |
| 12818 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 12819 | test_array [0] = 0 |
| 12820 | |
| 12821 | ; |
| 12822 | return 0; |
| 12823 | } |
| 12824 | _ACEOF |
| 12825 | rm -f conftest.$ac_objext |
| 12826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12827 | (eval $ac_compile) 2>conftest.er1 |
| 12828 | ac_status=$? |
| 12829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12830 | rm -f conftest.er1 |
| 12831 | cat conftest.err >&5 |
| 12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12833 | (exit $ac_status); } && |
| 12834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12836 | (eval $ac_try) 2>&5 |
| 12837 | ac_status=$? |
| 12838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12839 | (exit $ac_status); }; } && |
| 12840 | { ac_try='test -s conftest.$ac_objext' |
| 12841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12842 | (eval $ac_try) 2>&5 |
| 12843 | ac_status=$? |
| 12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12845 | (exit $ac_status); }; }; then |
| 12846 | ac_hi=$ac_mid |
| 12847 | else |
| 12848 | echo "$as_me: failed program was:" >&5 |
| 12849 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12850 | |
| 12851 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 12852 | fi |
| 12853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12854 | done |
| 12855 | case $ac_lo in |
| 12856 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 12857 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 12858 | See \`config.log' for more details." >&5 |
| 12859 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 12860 | See \`config.log' for more details." >&2;} |
| 12861 | { (exit 1); exit 1; }; } ;; |
| 12862 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12863 | else |
| 12864 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12865 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
| 12866 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} |
| 12867 | { (exit 1); exit 1; }; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12868 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12869 | cat >conftest.$ac_ext <<_ACEOF |
| 12870 | /* confdefs.h. */ |
| 12871 | _ACEOF |
| 12872 | cat confdefs.h >>conftest.$ac_ext |
| 12873 | cat >>conftest.$ac_ext <<_ACEOF |
| 12874 | /* end confdefs.h. */ |
| 12875 | $ac_includes_default |
| 12876 | long longval () { return (long) (sizeof (long long)); } |
| 12877 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12878 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12879 | #include <stdlib.h> |
| 12880 | int |
| 12881 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12882 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12883 | |
| 12884 | FILE *f = fopen ("conftest.val", "w"); |
| 12885 | if (! f) |
| 12886 | exit (1); |
| 12887 | if (((long) (sizeof (long long))) < 0) |
| 12888 | { |
| 12889 | long i = longval (); |
| 12890 | if (i != ((long) (sizeof (long long)))) |
| 12891 | exit (1); |
| 12892 | fprintf (f, "%ld\n", i); |
| 12893 | } |
| 12894 | else |
| 12895 | { |
| 12896 | unsigned long i = ulongval (); |
| 12897 | if (i != ((long) (sizeof (long long)))) |
| 12898 | exit (1); |
| 12899 | fprintf (f, "%lu\n", i); |
| 12900 | } |
| 12901 | exit (ferror (f) || fclose (f) != 0); |
| 12902 | |
| 12903 | ; |
| 12904 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12905 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12906 | _ACEOF |
| 12907 | rm -f conftest$ac_exeext |
| 12908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12909 | (eval $ac_link) 2>&5 |
| 12910 | ac_status=$? |
| 12911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12912 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12914 | (eval $ac_try) 2>&5 |
| 12915 | ac_status=$? |
| 12916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12917 | (exit $ac_status); }; }; then |
| 12918 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12919 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12920 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12921 | echo "$as_me: failed program was:" >&5 |
| 12922 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12923 | |
| 12924 | ( exit $ac_status ) |
| 12925 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
| 12926 | See \`config.log' for more details." >&5 |
| 12927 | echo "$as_me: error: cannot compute sizeof (long long), 77 |
| 12928 | See \`config.log' for more details." >&2;} |
| 12929 | { (exit 1); exit 1; }; } |
| 12930 | fi |
| 12931 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 12932 | fi |
| 12933 | fi |
| 12934 | rm -f conftest.val |
| 12935 | else |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12936 | ac_cv_sizeof_long_long=0 |
| 12937 | fi |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12938 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12939 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 12940 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 12941 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12942 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12943 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12944 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12945 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12946 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 12947 | SIZEOF_INT=$ac_cv_sizeof_int |
| 12948 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 12949 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 12950 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12951 | |
| 12952 | |
| 12953 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12954 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 12955 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 12956 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 12957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12958 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12959 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 12960 | cat >conftest.$ac_ext <<_ACEOF |
| 12961 | /* confdefs.h. */ |
| 12962 | _ACEOF |
| 12963 | cat confdefs.h >>conftest.$ac_ext |
| 12964 | cat >>conftest.$ac_ext <<_ACEOF |
| 12965 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12966 | #include <sys/types.h> |
| 12967 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12968 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12969 | int |
| 12970 | main () |
| 12971 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 12972 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 12973 | bogus endian macros |
| 12974 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12975 | |
| 12976 | ; |
| 12977 | return 0; |
| 12978 | } |
| 12979 | _ACEOF |
| 12980 | rm -f conftest.$ac_objext |
| 12981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12982 | (eval $ac_compile) 2>conftest.er1 |
| 12983 | ac_status=$? |
| 12984 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12985 | rm -f conftest.er1 |
| 12986 | cat conftest.err >&5 |
| 12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12988 | (exit $ac_status); } && |
| 12989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12991 | (eval $ac_try) 2>&5 |
| 12992 | ac_status=$? |
| 12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12994 | (exit $ac_status); }; } && |
| 12995 | { ac_try='test -s conftest.$ac_objext' |
| 12996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12997 | (eval $ac_try) 2>&5 |
| 12998 | ac_status=$? |
| 12999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13000 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13001 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13002 | cat >conftest.$ac_ext <<_ACEOF |
| 13003 | /* confdefs.h. */ |
| 13004 | _ACEOF |
| 13005 | cat confdefs.h >>conftest.$ac_ext |
| 13006 | cat >>conftest.$ac_ext <<_ACEOF |
| 13007 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13008 | #include <sys/types.h> |
| 13009 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13011 | int |
| 13012 | main () |
| 13013 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13014 | #if BYTE_ORDER != BIG_ENDIAN |
| 13015 | not big endian |
| 13016 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13017 | |
| 13018 | ; |
| 13019 | return 0; |
| 13020 | } |
| 13021 | _ACEOF |
| 13022 | rm -f conftest.$ac_objext |
| 13023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13024 | (eval $ac_compile) 2>conftest.er1 |
| 13025 | ac_status=$? |
| 13026 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13027 | rm -f conftest.er1 |
| 13028 | cat conftest.err >&5 |
| 13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13030 | (exit $ac_status); } && |
| 13031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13033 | (eval $ac_try) 2>&5 |
| 13034 | ac_status=$? |
| 13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13036 | (exit $ac_status); }; } && |
| 13037 | { ac_try='test -s conftest.$ac_objext' |
| 13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13039 | (eval $ac_try) 2>&5 |
| 13040 | ac_status=$? |
| 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13042 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13043 | ac_cv_c_bigendian=yes |
| 13044 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13045 | echo "$as_me: failed program was:" >&5 |
| 13046 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13047 | |
| 13048 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13049 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13051 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13052 | echo "$as_me: failed program was:" >&5 |
| 13053 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13054 | |
| 13055 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13056 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13057 | # try to guess the endianness by grepping values into an object file |
| 13058 | ac_cv_c_bigendian=unknown |
| 13059 | cat >conftest.$ac_ext <<_ACEOF |
| 13060 | /* confdefs.h. */ |
| 13061 | _ACEOF |
| 13062 | cat confdefs.h >>conftest.$ac_ext |
| 13063 | cat >>conftest.$ac_ext <<_ACEOF |
| 13064 | /* end confdefs.h. */ |
| 13065 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 13066 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 13067 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 13068 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 13069 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 13070 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 13071 | int |
| 13072 | main () |
| 13073 | { |
| 13074 | _ascii (); _ebcdic (); |
| 13075 | ; |
| 13076 | return 0; |
| 13077 | } |
| 13078 | _ACEOF |
| 13079 | rm -f conftest.$ac_objext |
| 13080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13081 | (eval $ac_compile) 2>conftest.er1 |
| 13082 | ac_status=$? |
| 13083 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13084 | rm -f conftest.er1 |
| 13085 | cat conftest.err >&5 |
| 13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13087 | (exit $ac_status); } && |
| 13088 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13090 | (eval $ac_try) 2>&5 |
| 13091 | ac_status=$? |
| 13092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13093 | (exit $ac_status); }; } && |
| 13094 | { ac_try='test -s conftest.$ac_objext' |
| 13095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13096 | (eval $ac_try) 2>&5 |
| 13097 | ac_status=$? |
| 13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13099 | (exit $ac_status); }; }; then |
| 13100 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 13101 | ac_cv_c_bigendian=yes |
| 13102 | fi |
| 13103 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 13104 | if test "$ac_cv_c_bigendian" = unknown; then |
| 13105 | ac_cv_c_bigendian=no |
| 13106 | else |
| 13107 | # finding both strings is unlikely to happen, but who knows? |
| 13108 | ac_cv_c_bigendian=unknown |
| 13109 | fi |
| 13110 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13112 | echo "$as_me: failed program was:" >&5 |
| 13113 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13114 | |
| 13115 | fi |
| 13116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13117 | else |
| 13118 | cat >conftest.$ac_ext <<_ACEOF |
| 13119 | /* confdefs.h. */ |
| 13120 | _ACEOF |
| 13121 | cat confdefs.h >>conftest.$ac_ext |
| 13122 | cat >>conftest.$ac_ext <<_ACEOF |
| 13123 | /* end confdefs.h. */ |
| 13124 | int |
| 13125 | main () |
| 13126 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13127 | /* Are we little or big endian? From Harbison&Steele. */ |
| 13128 | union |
| 13129 | { |
| 13130 | long l; |
| 13131 | char c[sizeof (long)]; |
| 13132 | } u; |
| 13133 | u.l = 1; |
| 13134 | exit (u.c[sizeof (long) - 1] == 1); |
| 13135 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13136 | _ACEOF |
| 13137 | rm -f conftest$ac_exeext |
| 13138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13139 | (eval $ac_link) 2>&5 |
| 13140 | ac_status=$? |
| 13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13144 | (eval $ac_try) 2>&5 |
| 13145 | ac_status=$? |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13148 | ac_cv_c_bigendian=no |
| 13149 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13150 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13151 | echo "$as_me: failed program was:" >&5 |
| 13152 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13153 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13154 | ( exit $ac_status ) |
| 13155 | ac_cv_c_bigendian=yes |
| 13156 | fi |
| 13157 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13158 | fi |
| 13159 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13161 | fi |
| 13162 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 13163 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 13164 | case $ac_cv_c_bigendian in |
| 13165 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13166 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13167 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13168 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13169 | _ACEOF |
| 13170 | ;; |
| 13171 | no) |
| 13172 | ;; |
| 13173 | *) |
| 13174 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 13175 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 13176 | echo "$as_me: error: unknown endianness |
| 13177 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 13178 | { (exit 1); exit 1; }; } ;; |
| 13179 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13180 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 13181 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13182 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13183 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13184 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 13185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13190 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13191 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13192 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13193 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13194 | # Is the header compilable? |
| 13195 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 13196 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 13197 | cat >conftest.$ac_ext <<_ACEOF |
| 13198 | /* confdefs.h. */ |
| 13199 | _ACEOF |
| 13200 | cat confdefs.h >>conftest.$ac_ext |
| 13201 | cat >>conftest.$ac_ext <<_ACEOF |
| 13202 | /* end confdefs.h. */ |
| 13203 | $ac_includes_default |
| 13204 | #include <$ac_header> |
| 13205 | _ACEOF |
| 13206 | rm -f conftest.$ac_objext |
| 13207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13208 | (eval $ac_compile) 2>conftest.er1 |
| 13209 | ac_status=$? |
| 13210 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13211 | rm -f conftest.er1 |
| 13212 | cat conftest.err >&5 |
| 13213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13214 | (exit $ac_status); } && |
| 13215 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13217 | (eval $ac_try) 2>&5 |
| 13218 | ac_status=$? |
| 13219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13220 | (exit $ac_status); }; } && |
| 13221 | { ac_try='test -s conftest.$ac_objext' |
| 13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13223 | (eval $ac_try) 2>&5 |
| 13224 | ac_status=$? |
| 13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13226 | (exit $ac_status); }; }; then |
| 13227 | ac_header_compiler=yes |
| 13228 | else |
| 13229 | echo "$as_me: failed program was:" >&5 |
| 13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13231 | |
| 13232 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13233 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13235 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 13236 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 13237 | |
| 13238 | # Is the header present? |
| 13239 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 13240 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 13241 | cat >conftest.$ac_ext <<_ACEOF |
| 13242 | /* confdefs.h. */ |
| 13243 | _ACEOF |
| 13244 | cat confdefs.h >>conftest.$ac_ext |
| 13245 | cat >>conftest.$ac_ext <<_ACEOF |
| 13246 | /* end confdefs.h. */ |
| 13247 | #include <$ac_header> |
| 13248 | _ACEOF |
| 13249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 13250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 13251 | ac_status=$? |
| 13252 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13253 | rm -f conftest.er1 |
| 13254 | cat conftest.err >&5 |
| 13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13256 | (exit $ac_status); } >/dev/null; then |
| 13257 | if test -s conftest.err; then |
| 13258 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 13259 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
| 13260 | else |
| 13261 | ac_cpp_err= |
| 13262 | fi |
| 13263 | else |
| 13264 | ac_cpp_err=yes |
| 13265 | fi |
| 13266 | if test -z "$ac_cpp_err"; then |
| 13267 | ac_header_preproc=yes |
| 13268 | else |
| 13269 | echo "$as_me: failed program was:" >&5 |
| 13270 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13271 | |
| 13272 | ac_header_preproc=no |
| 13273 | fi |
| 13274 | rm -f conftest.err conftest.$ac_ext |
| 13275 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 13276 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 13277 | |
| 13278 | # So? What about this header? |
| 13279 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 13280 | yes:no: ) |
| 13281 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 13282 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 13283 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 13284 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 13285 | ac_header_preproc=yes |
| 13286 | ;; |
| 13287 | no:yes:* ) |
| 13288 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 13289 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 13290 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 13291 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 13292 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 13293 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 13294 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 13295 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 13296 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 13297 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 13298 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 13299 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
| 13300 | ( |
| 13301 | cat <<\_ASBOX |
| 13302 | ## ------------------------------------------ ## |
| 13303 | ## Report this to the AC_PACKAGE_NAME lists. ## |
| 13304 | ## ------------------------------------------ ## |
| 13305 | _ASBOX |
| 13306 | ) | |
| 13307 | sed "s/^/$as_me: WARNING: /" >&2 |
| 13308 | ;; |
| 13309 | esac |
| 13310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 13311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 13312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13314 | else |
| 13315 | eval "$as_ac_Header=\$ac_header_preproc" |
| 13316 | fi |
| 13317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 13318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 13319 | |
| 13320 | fi |
| 13321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 13322 | cat >>confdefs.h <<_ACEOF |
| 13323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 13324 | _ACEOF |
| 13325 | |
| 13326 | fi |
| 13327 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13328 | done |
| 13329 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13330 | echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 13331 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6 |
| 13332 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 13333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13334 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13335 | cat >conftest.$ac_ext <<_ACEOF |
| 13336 | /* confdefs.h. */ |
| 13337 | _ACEOF |
| 13338 | cat confdefs.h >>conftest.$ac_ext |
| 13339 | cat >>conftest.$ac_ext <<_ACEOF |
| 13340 | /* end confdefs.h. */ |
| 13341 | $ac_includes_default |
| 13342 | int |
| 13343 | main () |
| 13344 | { |
| 13345 | if ((intptr_t *) 0) |
| 13346 | return 0; |
| 13347 | if (sizeof (intptr_t)) |
| 13348 | return 0; |
| 13349 | ; |
| 13350 | return 0; |
| 13351 | } |
| 13352 | _ACEOF |
| 13353 | rm -f conftest.$ac_objext |
| 13354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13355 | (eval $ac_compile) 2>conftest.er1 |
| 13356 | ac_status=$? |
| 13357 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13358 | rm -f conftest.er1 |
| 13359 | cat conftest.err >&5 |
| 13360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13361 | (exit $ac_status); } && |
| 13362 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13364 | (eval $ac_try) 2>&5 |
| 13365 | ac_status=$? |
| 13366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13367 | (exit $ac_status); }; } && |
| 13368 | { ac_try='test -s conftest.$ac_objext' |
| 13369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13370 | (eval $ac_try) 2>&5 |
| 13371 | ac_status=$? |
| 13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13373 | (exit $ac_status); }; }; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13374 | ac_cv_type_intptr_t=yes |
| 13375 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13376 | echo "$as_me: failed program was:" >&5 |
| 13377 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13378 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13379 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13380 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 13382 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13383 | echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 13384 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6 |
| 13385 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13386 | |
| 13387 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 13388 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13389 | _ACEOF |
| 13390 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 13391 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13392 | fi |
| 13393 | |
| 13394 | echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 13395 | echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6 |
| 13396 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 13397 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13398 | else |
| 13399 | cat >conftest.$ac_ext <<_ACEOF |
| 13400 | /* confdefs.h. */ |
| 13401 | _ACEOF |
| 13402 | cat confdefs.h >>conftest.$ac_ext |
| 13403 | cat >>conftest.$ac_ext <<_ACEOF |
| 13404 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13405 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13406 | int |
| 13407 | main () |
| 13408 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13409 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13410 | ; |
| 13411 | return 0; |
| 13412 | } |
| 13413 | _ACEOF |
| 13414 | rm -f conftest.$ac_objext |
| 13415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13416 | (eval $ac_compile) 2>conftest.er1 |
| 13417 | ac_status=$? |
| 13418 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13419 | rm -f conftest.er1 |
| 13420 | cat conftest.err >&5 |
| 13421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13422 | (exit $ac_status); } && |
| 13423 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13425 | (eval $ac_try) 2>&5 |
| 13426 | ac_status=$? |
| 13427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13428 | (exit $ac_status); }; } && |
| 13429 | { ac_try='test -s conftest.$ac_objext' |
| 13430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13431 | (eval $ac_try) 2>&5 |
| 13432 | ac_status=$? |
| 13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13434 | (exit $ac_status); }; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13435 | e2fsprogs_cv_struct_st_flags=yes |
| 13436 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13437 | echo "$as_me: failed program was:" >&5 |
| 13438 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13439 | |
| 13440 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13441 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13443 | fi |
| 13444 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13445 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 13446 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13447 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13448 | echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 13449 | echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6 |
| 13450 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 13451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13452 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13453 | cat >conftest.$ac_ext <<_ACEOF |
| 13454 | /* confdefs.h. */ |
| 13455 | _ACEOF |
| 13456 | cat confdefs.h >>conftest.$ac_ext |
| 13457 | cat >>conftest.$ac_ext <<_ACEOF |
| 13458 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13459 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13460 | int |
| 13461 | main () |
| 13462 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13463 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13464 | ; |
| 13465 | return 0; |
| 13466 | } |
| 13467 | _ACEOF |
| 13468 | rm -f conftest.$ac_objext |
| 13469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13470 | (eval $ac_compile) 2>conftest.er1 |
| 13471 | ac_status=$? |
| 13472 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13473 | rm -f conftest.er1 |
| 13474 | cat conftest.err >&5 |
| 13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13476 | (exit $ac_status); } && |
| 13477 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13479 | (eval $ac_try) 2>&5 |
| 13480 | ac_status=$? |
| 13481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13482 | (exit $ac_status); }; } && |
| 13483 | { ac_try='test -s conftest.$ac_objext' |
| 13484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13485 | (eval $ac_try) 2>&5 |
| 13486 | ac_status=$? |
| 13487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13488 | (exit $ac_status); }; }; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13489 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 13490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13491 | echo "$as_me: failed program was:" >&5 |
| 13492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13493 | |
| 13494 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13495 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13497 | fi |
| 13498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13499 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 13500 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13501 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13502 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13503 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13504 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13505 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 13506 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13507 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13508 | echo "$as_me:$LINENO: checking whether struct sockaddr contains sa_len" >&5 |
| 13509 | echo $ECHO_N "checking whether struct sockaddr contains sa_len... $ECHO_C" >&6 |
| 13510 | if test "${e2fsprogs_cv_sockaddr_sa_len+set}" = set; then |
| 13511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13512 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13513 | cat >conftest.$ac_ext <<_ACEOF |
| 13514 | /* confdefs.h. */ |
| 13515 | _ACEOF |
| 13516 | cat confdefs.h >>conftest.$ac_ext |
| 13517 | cat >>conftest.$ac_ext <<_ACEOF |
| 13518 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13519 | #include <sys/types.h> |
| 13520 | #include <sys/socket.h> |
| 13521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13522 | int |
| 13523 | main () |
| 13524 | { |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13525 | struct sockaddr sa; |
| 13526 | sa.sa_len; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13527 | ; |
| 13528 | return 0; |
| 13529 | } |
| 13530 | _ACEOF |
| 13531 | rm -f conftest.$ac_objext |
| 13532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13533 | (eval $ac_compile) 2>conftest.er1 |
| 13534 | ac_status=$? |
| 13535 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13536 | rm -f conftest.er1 |
| 13537 | cat conftest.err >&5 |
| 13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13539 | (exit $ac_status); } && |
| 13540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13542 | (eval $ac_try) 2>&5 |
| 13543 | ac_status=$? |
| 13544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13545 | (exit $ac_status); }; } && |
| 13546 | { ac_try='test -s conftest.$ac_objext' |
| 13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13548 | (eval $ac_try) 2>&5 |
| 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); }; }; then |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13552 | e2fsprogs_cv_sockaddr_sa_len=yes |
| 13553 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13554 | echo "$as_me: failed program was:" >&5 |
| 13555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13556 | |
| 13557 | e2fsprogs_cv_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13558 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13560 | fi |
| 13561 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13562 | echo "$as_me:$LINENO: result: $e2fsprogs_cv_sockaddr_sa_len" >&5 |
| 13563 | echo "${ECHO_T}$e2fsprogs_cv_sockaddr_sa_len" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13564 | if test $e2fsprogs_cv_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13565 | |
| 13566 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13567 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13568 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 13569 | |
| 13570 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 13590 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13591 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13595 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13597 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13598 | cat >conftest.$ac_ext <<_ACEOF |
| 13599 | /* confdefs.h. */ |
| 13600 | _ACEOF |
| 13601 | cat confdefs.h >>conftest.$ac_ext |
| 13602 | cat >>conftest.$ac_ext <<_ACEOF |
| 13603 | /* end confdefs.h. */ |
| 13604 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 13605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 13606 | #define $ac_func innocuous_$ac_func |
| 13607 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13608 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13609 | which can conflict with char $ac_func (); below. |
| 13610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 13611 | <limits.h> exists even on freestanding compilers. */ |
| 13612 | |
| 13613 | #ifdef __STDC__ |
| 13614 | # include <limits.h> |
| 13615 | #else |
| 13616 | # include <assert.h> |
| 13617 | #endif |
| 13618 | |
| 13619 | #undef $ac_func |
| 13620 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13621 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13622 | #ifdef __cplusplus |
| 13623 | extern "C" |
| 13624 | { |
| 13625 | #endif |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13626 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13627 | builtin and then its argument prototype would still apply. */ |
| 13628 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13629 | /* The GNU C library defines this for functions which it implements |
| 13630 | to always fail with ENOSYS. Some functions are actually named |
| 13631 | something starting with __ and the normal name is an alias. */ |
| 13632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13633 | choke me |
| 13634 | #else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13635 | char (*f) () = $ac_func; |
| 13636 | #endif |
| 13637 | #ifdef __cplusplus |
| 13638 | } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13639 | #endif |
| 13640 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13641 | int |
| 13642 | main () |
| 13643 | { |
| 13644 | return f != $ac_func; |
| 13645 | ; |
| 13646 | return 0; |
| 13647 | } |
| 13648 | _ACEOF |
| 13649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13651 | (eval $ac_link) 2>conftest.er1 |
| 13652 | ac_status=$? |
| 13653 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13654 | rm -f conftest.er1 |
| 13655 | cat conftest.err >&5 |
| 13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13657 | (exit $ac_status); } && |
| 13658 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13660 | (eval $ac_try) 2>&5 |
| 13661 | ac_status=$? |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); }; } && |
| 13664 | { ac_try='test -s conftest$ac_exeext' |
| 13665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13666 | (eval $ac_try) 2>&5 |
| 13667 | ac_status=$? |
| 13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13669 | (exit $ac_status); }; }; then |
| 13670 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13671 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13672 | echo "$as_me: failed program was:" >&5 |
| 13673 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13674 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13675 | eval "$as_ac_var=no" |
| 13676 | fi |
| 13677 | rm -f conftest.err conftest.$ac_objext \ |
| 13678 | conftest$ac_exeext conftest.$ac_ext |
| 13679 | fi |
| 13680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13681 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13682 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13683 | cat >>confdefs.h <<_ACEOF |
| 13684 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13685 | _ACEOF |
| 13686 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13687 | fi |
| 13688 | done |
| 13689 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13690 | SOCKET_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13691 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 13692 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 13693 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 13694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13695 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13696 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13697 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13698 | cat >conftest.$ac_ext <<_ACEOF |
| 13699 | /* confdefs.h. */ |
| 13700 | _ACEOF |
| 13701 | cat confdefs.h >>conftest.$ac_ext |
| 13702 | cat >>conftest.$ac_ext <<_ACEOF |
| 13703 | /* end confdefs.h. */ |
| 13704 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13705 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13706 | #ifdef __cplusplus |
| 13707 | extern "C" |
| 13708 | #endif |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 13709 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13710 | builtin and then its argument prototype would still apply. */ |
| 13711 | char socket (); |
| 13712 | int |
| 13713 | main () |
| 13714 | { |
| 13715 | socket (); |
| 13716 | ; |
| 13717 | return 0; |
| 13718 | } |
| 13719 | _ACEOF |
| 13720 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13722 | (eval $ac_link) 2>conftest.er1 |
| 13723 | ac_status=$? |
| 13724 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13725 | rm -f conftest.er1 |
| 13726 | cat conftest.err >&5 |
| 13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13728 | (exit $ac_status); } && |
| 13729 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13731 | (eval $ac_try) 2>&5 |
| 13732 | ac_status=$? |
| 13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13734 | (exit $ac_status); }; } && |
| 13735 | { ac_try='test -s conftest$ac_exeext' |
| 13736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13737 | (eval $ac_try) 2>&5 |
| 13738 | ac_status=$? |
| 13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13740 | (exit $ac_status); }; }; then |
| 13741 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13742 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13743 | echo "$as_me: failed program was:" >&5 |
| 13744 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13746 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13747 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13748 | rm -f conftest.err conftest.$ac_objext \ |
| 13749 | conftest$ac_exeext conftest.$ac_ext |
| 13750 | LIBS=$ac_check_lib_save_LIBS |
| 13751 | fi |
| 13752 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 13753 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 13754 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13755 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13756 | fi |
| 13757 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13758 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13759 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13760 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 13761 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 13762 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 13763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13764 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13765 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13766 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13767 | cat >conftest.$ac_ext <<_ACEOF |
| 13768 | /* confdefs.h. */ |
| 13769 | _ACEOF |
| 13770 | cat confdefs.h >>conftest.$ac_ext |
| 13771 | cat >>conftest.$ac_ext <<_ACEOF |
| 13772 | /* end confdefs.h. */ |
| 13773 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13774 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13775 | #ifdef __cplusplus |
| 13776 | extern "C" |
| 13777 | #endif |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13778 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13779 | builtin and then its argument prototype would still apply. */ |
| 13780 | char dlopen (); |
| 13781 | int |
| 13782 | main () |
| 13783 | { |
| 13784 | dlopen (); |
| 13785 | ; |
| 13786 | return 0; |
| 13787 | } |
| 13788 | _ACEOF |
| 13789 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13791 | (eval $ac_link) 2>conftest.er1 |
| 13792 | ac_status=$? |
| 13793 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13794 | rm -f conftest.er1 |
| 13795 | cat conftest.err >&5 |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && |
| 13798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13800 | (eval $ac_try) 2>&5 |
| 13801 | ac_status=$? |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13803 | (exit $ac_status); }; } && |
| 13804 | { ac_try='test -s conftest$ac_exeext' |
| 13805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13806 | (eval $ac_try) 2>&5 |
| 13807 | ac_status=$? |
| 13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13809 | (exit $ac_status); }; }; then |
| 13810 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13811 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13812 | echo "$as_me: failed program was:" >&5 |
| 13813 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13814 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13815 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13816 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13817 | rm -f conftest.err conftest.$ac_objext \ |
| 13818 | conftest$ac_exeext conftest.$ac_ext |
| 13819 | LIBS=$ac_check_lib_save_LIBS |
| 13820 | fi |
| 13821 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13822 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 13823 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13824 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13825 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13826 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13827 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13828 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 13829 | fi |
| 13830 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13831 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13832 | echo "$as_me:$LINENO: checking for optreset" >&5 |
| 13833 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6 |
| 13834 | if test "${ac_cv_have_optreset+set}" = set; then |
| 13835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13836 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13837 | cat >conftest.$ac_ext <<_ACEOF |
| 13838 | /* confdefs.h. */ |
| 13839 | _ACEOF |
| 13840 | cat confdefs.h >>conftest.$ac_ext |
| 13841 | cat >>conftest.$ac_ext <<_ACEOF |
| 13842 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13843 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13844 | |
| 13845 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13847 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13848 | ac_cv_have_optreset=yes |
| 13849 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13850 | ac_cv_have_optreset=no |
| 13851 | fi |
| 13852 | rm -f conftest* |
| 13853 | |
| 13854 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13855 | echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 13856 | echo "${ECHO_T}$ac_cv_have_optreset" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13857 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13858 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13859 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13860 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13861 | |
| 13862 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13863 | case "$host_os" in |
| 13864 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13865 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13866 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13867 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13868 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 13869 | ;; |
| 13870 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13871 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13872 | CYGWIN_CMT="#" |
| 13873 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13874 | case "$host_os" in |
| 13875 | linux*) |
| 13876 | LINUX_CMT= |
| 13877 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13878 | cygwin) |
| 13879 | CYGWIN_CMT= |
| 13880 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 13881 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 13882 | esac |
| 13883 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13884 | |
| 13885 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13886 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13887 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13888 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 13889 | root_prefix=""; |
| 13890 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13891 | fi |
| 13892 | ;; |
| 13893 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13894 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13895 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13896 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13897 | prefix="/usr"; |
| 13898 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 13899 | if test "$mandir" = '${prefix}/man' ; then |
| 13900 | echo "...and mandir defaults to /usr/share/man" |
| 13901 | mandir=/usr/share/man |
| 13902 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13903 | fi |
| 13904 | ;; |
| 13905 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13906 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 13907 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13908 | root_prefix="$ac_default_prefix" |
| 13909 | else |
| 13910 | root_prefix="$prefix" |
| 13911 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 13912 | root_bindir=$bindir |
| 13913 | root_sbindir=$sbindir |
| 13914 | root_libdir=$libdir |
| 13915 | root_sysconfdir=$sysconfdir |
| 13916 | else |
| 13917 | root_bindir='${root_prefix}/bin' |
| 13918 | root_sbindir='${root_prefix}/sbin' |
| 13919 | root_libdir='${root_prefix}/lib' |
| 13920 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 13921 | fi |
| 13922 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13923 | |
| 13924 | |
| 13925 | |
| 13926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13927 | echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 13928 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6 |
| 13929 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 13930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13931 | else |
| 13932 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13933 | cat >conftest.$ac_ext <<_ACEOF |
| 13934 | /* confdefs.h. */ |
| 13935 | _ACEOF |
| 13936 | cat confdefs.h >>conftest.$ac_ext |
| 13937 | cat >>conftest.$ac_ext <<_ACEOF |
| 13938 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13939 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13940 | int |
| 13941 | main () |
| 13942 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13943 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13944 | ; |
| 13945 | return 0; |
| 13946 | } |
| 13947 | _ACEOF |
| 13948 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13950 | (eval $ac_link) 2>conftest.er1 |
| 13951 | ac_status=$? |
| 13952 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13953 | rm -f conftest.er1 |
| 13954 | cat conftest.err >&5 |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); } && |
| 13957 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13959 | (eval $ac_try) 2>&5 |
| 13960 | ac_status=$? |
| 13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13962 | (exit $ac_status); }; } && |
| 13963 | { ac_try='test -s conftest$ac_exeext' |
| 13964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13965 | (eval $ac_try) 2>&5 |
| 13966 | ac_status=$? |
| 13967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13968 | (exit $ac_status); }; }; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13969 | ac_cv_e2fsprogs_use_static=yes |
| 13970 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13971 | echo "$as_me: failed program was:" >&5 |
| 13972 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13973 | |
| 13974 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13975 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13976 | rm -f conftest.err conftest.$ac_objext \ |
| 13977 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13978 | LDFLAGS=$SAVE_LDFLAGS |
| 13979 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13980 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13981 | case "$host_os" in |
| 13982 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13983 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 13984 | ;; |
| 13985 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13986 | echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 13987 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 13988 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13989 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13990 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 13991 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13992 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13993 | case "$host_os" in |
| 13994 | darwin*) |
| 13995 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13996 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13997 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 13999 | |
| 14000 | ;; |
| 14001 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14002 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 14003 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 14004 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14005 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14006 | if test "$cross_compiling" = yes ; then |
| 14007 | DO_TEST_SUITE= |
| 14008 | else |
| 14009 | DO_TEST_SUITE=check |
| 14010 | fi |
| 14011 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 14012 | INTL_FLAGS= |
| 14013 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 14014 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 14015 | fi |
| 14016 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14017 | test -d lib || mkdir lib |
| 14018 | test -d include || mkdir include |
| 14019 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 14020 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 14021 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 14022 | util/Makefile util/subst.conf util/gen-tarball \ |
| 14023 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 14024 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 14025 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 14026 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 14027 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 14028 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 14029 | if test -d `dirname ${srcdir}/$i` ; then |
| 14030 | outlist="$outlist $i" |
| 14031 | fi |
| 14032 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14033 | ac_config_files="$ac_config_files $outlist" |
| 14034 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14035 | # This file is a shell script that caches the results of configure |
| 14036 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14037 | # scripts and configure runs, see configure's option --config-cache. |
| 14038 | # It is not useful on other systems. If it contains results you don't |
| 14039 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14040 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14041 | # config.status only pays attention to the cache file if you give it |
| 14042 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14043 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14044 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14045 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14046 | # following values. |
| 14047 | |
| 14048 | _ACEOF |
| 14049 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14050 | # The following way of writing the cache mishandles newlines in values, |
| 14051 | # but we know of no workaround that is simple, portable, and efficient. |
| 14052 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14053 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14054 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14055 | { |
| 14056 | (set) 2>&1 | |
| 14057 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 14058 | *ac_space=\ *) |
| 14059 | # `set' does not quote correctly, so add quotes (double-quote |
| 14060 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 14061 | sed -n \ |
| 14062 | "s/'/'\\\\''/g; |
| 14063 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 14064 | ;; |
| 14065 | *) |
| 14066 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 14067 | sed -n \ |
| 14068 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 14069 | ;; |
| 14070 | esac; |
| 14071 | } | |
| 14072 | sed ' |
| 14073 | t clear |
| 14074 | : clear |
| 14075 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14076 | t end |
| 14077 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14078 | : end' >>confcache |
| 14079 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14080 | if test -w $cache_file; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14081 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 14082 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14083 | else |
| 14084 | echo "not updating unwritable cache $cache_file" |
| 14085 | fi |
| 14086 | fi |
| 14087 | rm -f confcache |
| 14088 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14089 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14090 | # Let make expand exec_prefix. |
| 14091 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14092 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14093 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 14094 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 14095 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 14096 | # (actually we leave an empty line to preserve line numbers). |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14097 | if test "x$srcdir" = x.; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14098 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 14099 | s/:*\$(srcdir):*/:/; |
| 14100 | s/:*\${srcdir}:*/:/; |
| 14101 | s/:*@srcdir@:*/:/; |
| 14102 | s/^\([^=]*=[ ]*\):*/\1/; |
| 14103 | s/:*$//; |
| 14104 | s/^[^=]*=[ ]*$//; |
| 14105 | }' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14106 | fi |
| 14107 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14108 | # Transform confdefs.h into DEFS. |
| 14109 | # Protect against shell expansion while executing Makefile rules. |
| 14110 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14111 | # |
| 14112 | # If the first sed substitution is executed (which looks for macros that |
| 14113 | # take arguments), then we branch to the quote section. Otherwise, |
| 14114 | # look for a macro that doesn't take arguments. |
| 14115 | cat >confdef2opt.sed <<\_ACEOF |
| 14116 | t clear |
| 14117 | : clear |
| 14118 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
| 14119 | t quote |
| 14120 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
| 14121 | t quote |
| 14122 | d |
| 14123 | : quote |
| 14124 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
| 14125 | s,\[,\\&,g |
| 14126 | s,\],\\&,g |
| 14127 | s,\$,$$,g |
| 14128 | p |
| 14129 | _ACEOF |
| 14130 | # We use echo to avoid assuming a particular line-breaking character. |
| 14131 | # The extra dot is to prevent the shell from consuming trailing |
| 14132 | # line-breaks from the sub-command output. A line-break within |
| 14133 | # single-quotes doesn't work because, if this script is created in a |
| 14134 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
| 14135 | # would break. |
| 14136 | ac_LF_and_DOT=`echo; echo .` |
| 14137 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
| 14138 | rm -f confdef2opt.sed |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14139 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14140 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14141 | ac_libobjs= |
| 14142 | ac_ltlibobjs= |
| 14143 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14144 | # 1. Remove the extension, and $U if already installed. |
| 14145 | ac_i=`echo "$ac_i" | |
| 14146 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 14147 | # 2. Add them. |
| 14148 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 14149 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 14150 | done |
| 14151 | LIBOBJS=$ac_libobjs |
| 14152 | |
| 14153 | LTLIBOBJS=$ac_ltlibobjs |
| 14154 | |
| 14155 | |
| 14156 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14157 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14158 | ac_clean_files_save=$ac_clean_files |
| 14159 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 14160 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 14161 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14162 | cat >$CONFIG_STATUS <<_ACEOF |
| 14163 | #! $SHELL |
| 14164 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14165 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14166 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14169 | debug=false |
| 14170 | ac_cs_recheck=false |
| 14171 | ac_cs_silent=false |
| 14172 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14173 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14174 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14175 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14176 | ## --------------------- ## |
| 14177 | ## M4sh Initialization. ## |
| 14178 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14179 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14180 | # Be Bourne compatible |
| 14181 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14182 | emulate sh |
| 14183 | NULLCMD=: |
| 14184 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 14185 | # is contrary to our usage. Disable this feature. |
| 14186 | alias -g '${1+"$@"}'='"$@"' |
| 14187 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 14188 | set -o posix |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14189 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14190 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14191 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14192 | # Support unset when possible. |
| 14193 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 14194 | as_unset=unset |
| 14195 | else |
| 14196 | as_unset=false |
| 14197 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14198 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14199 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14200 | # Work around bugs in pre-3.0 UWIN ksh. |
| 14201 | $as_unset ENV MAIL MAILPATH |
| 14202 | PS1='$ ' |
| 14203 | PS2='> ' |
| 14204 | PS4='+ ' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14205 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14206 | # NLS nuisances. |
| 14207 | for as_var in \ |
| 14208 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 14209 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 14210 | LC_TELEPHONE LC_TIME |
| 14211 | do |
| 14212 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 14213 | eval $as_var=C; export $as_var |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14214 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14215 | $as_unset $as_var |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14216 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14217 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14218 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14219 | # Required to use basename. |
| 14220 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14221 | as_expr=expr |
| 14222 | else |
| 14223 | as_expr=false |
| 14224 | fi |
| 14225 | |
| 14226 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 14227 | as_basename=basename |
| 14228 | else |
| 14229 | as_basename=false |
| 14230 | fi |
| 14231 | |
| 14232 | |
| 14233 | # Name of the executable. |
| 14234 | as_me=`$as_basename "$0" || |
| 14235 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14236 | X"$0" : 'X\(//\)$' \| \ |
| 14237 | X"$0" : 'X\(/\)$' \| \ |
| 14238 | . : '\(.\)' 2>/dev/null || |
| 14239 | echo X/"$0" | |
| 14240 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 14241 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 14242 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 14243 | s/.*/./; q'` |
| 14244 | |
| 14245 | |
| 14246 | # PATH needs CR, and LINENO needs CR and PATH. |
| 14247 | # Avoid depending upon Character Ranges. |
| 14248 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14249 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14250 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14251 | as_cr_digits='0123456789' |
| 14252 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 14253 | |
| 14254 | # The user is always right. |
| 14255 | if test "${PATH_SEPARATOR+set}" != set; then |
| 14256 | echo "#! /bin/sh" >conf$$.sh |
| 14257 | echo "exit 0" >>conf$$.sh |
| 14258 | chmod +x conf$$.sh |
| 14259 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 14260 | PATH_SEPARATOR=';' |
| 14261 | else |
| 14262 | PATH_SEPARATOR=: |
| 14263 | fi |
| 14264 | rm -f conf$$.sh |
| 14265 | fi |
| 14266 | |
| 14267 | |
| 14268 | as_lineno_1=$LINENO |
| 14269 | as_lineno_2=$LINENO |
| 14270 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14271 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14272 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 14273 | # Find who we are. Look in the path if we contain no path at all |
| 14274 | # relative or not. |
| 14275 | case $0 in |
| 14276 | *[\\/]* ) as_myself=$0 ;; |
| 14277 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14278 | for as_dir in $PATH |
| 14279 | do |
| 14280 | IFS=$as_save_IFS |
| 14281 | test -z "$as_dir" && as_dir=. |
| 14282 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14283 | done |
| 14284 | |
| 14285 | ;; |
| 14286 | esac |
| 14287 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14288 | # in which case we are not to be found in the path. |
| 14289 | if test "x$as_myself" = x; then |
| 14290 | as_myself=$0 |
| 14291 | fi |
| 14292 | if test ! -f "$as_myself"; then |
| 14293 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 14294 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 14295 | { (exit 1); exit 1; }; } |
| 14296 | fi |
| 14297 | case $CONFIG_SHELL in |
| 14298 | '') |
| 14299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14300 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 14301 | do |
| 14302 | IFS=$as_save_IFS |
| 14303 | test -z "$as_dir" && as_dir=. |
| 14304 | for as_base in sh bash ksh sh5; do |
| 14305 | case $as_dir in |
| 14306 | /*) |
| 14307 | if ("$as_dir/$as_base" -c ' |
| 14308 | as_lineno_1=$LINENO |
| 14309 | as_lineno_2=$LINENO |
| 14310 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 14311 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 14312 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 14313 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 14314 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 14315 | CONFIG_SHELL=$as_dir/$as_base |
| 14316 | export CONFIG_SHELL |
| 14317 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 14318 | fi;; |
| 14319 | esac |
| 14320 | done |
| 14321 | done |
| 14322 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14323 | esac |
| 14324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14325 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 14326 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 14327 | # line-number line before each line; the second 'sed' does the real |
| 14328 | # work. The second script uses 'N' to pair each line-number line |
| 14329 | # with the numbered line, and appends trailing '-' during |
| 14330 | # substitution so that $LINENO is not a special case at line end. |
| 14331 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 14332 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 14333 | sed '=' <$as_myself | |
| 14334 | sed ' |
| 14335 | N |
| 14336 | s,$,-, |
| 14337 | : loop |
| 14338 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 14339 | t loop |
| 14340 | s,-$,, |
| 14341 | s,^['$as_cr_digits']*\n,, |
| 14342 | ' >$as_me.lineno && |
| 14343 | chmod +x $as_me.lineno || |
| 14344 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 14345 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 14346 | { (exit 1); exit 1; }; } |
| 14347 | |
| 14348 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 14349 | # (the dirname of $[0] is not the place where we might find the |
| 14350 | # original and so on. Autoconf is especially sensible to this). |
| 14351 | . ./$as_me.lineno |
| 14352 | # Exit status is that of the last command. |
| 14353 | exit |
| 14354 | } |
| 14355 | |
| 14356 | |
| 14357 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 14358 | *c*,-n*) ECHO_N= ECHO_C=' |
| 14359 | ' ECHO_T=' ' ;; |
| 14360 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 14361 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 14362 | esac |
| 14363 | |
| 14364 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 14365 | as_expr=expr |
| 14366 | else |
| 14367 | as_expr=false |
| 14368 | fi |
| 14369 | |
| 14370 | rm -f conf$$ conf$$.exe conf$$.file |
| 14371 | echo >conf$$.file |
| 14372 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14373 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 14374 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 14375 | if test -f conf$$.exe; then |
| 14376 | # Don't use ln at all; we don't have any links |
| 14377 | as_ln_s='cp -p' |
| 14378 | else |
| 14379 | as_ln_s='ln -s' |
| 14380 | fi |
| 14381 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14382 | as_ln_s=ln |
| 14383 | else |
| 14384 | as_ln_s='cp -p' |
| 14385 | fi |
| 14386 | rm -f conf$$ conf$$.exe conf$$.file |
| 14387 | |
| 14388 | if mkdir -p . 2>/dev/null; then |
| 14389 | as_mkdir_p=: |
| 14390 | else |
| 14391 | test -d ./-p && rmdir ./-p |
| 14392 | as_mkdir_p=false |
| 14393 | fi |
| 14394 | |
| 14395 | as_executable_p="test -f" |
| 14396 | |
| 14397 | # Sed expression to map a string onto a valid CPP name. |
| 14398 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14399 | |
| 14400 | # Sed expression to map a string onto a valid variable name. |
| 14401 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14402 | |
| 14403 | |
| 14404 | # IFS |
| 14405 | # We need space, tab and new line, in precisely that order. |
| 14406 | as_nl=' |
| 14407 | ' |
| 14408 | IFS=" $as_nl" |
| 14409 | |
| 14410 | # CDPATH. |
| 14411 | $as_unset CDPATH |
| 14412 | |
| 14413 | exec 6>&1 |
| 14414 | |
| 14415 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 14416 | # report actual input values of CONFIG_FILES etc. instead of their |
| 14417 | # values after options handling. Logging --version etc. is OK. |
| 14418 | exec 5>>config.log |
| 14419 | { |
| 14420 | echo |
| 14421 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 14422 | ## Running $as_me. ## |
| 14423 | _ASBOX |
| 14424 | } >&5 |
| 14425 | cat >&5 <<_CSEOF |
| 14426 | |
| 14427 | This file was extended by $as_me, which was |
| 14428 | generated by GNU Autoconf 2.59. Invocation command line was |
| 14429 | |
| 14430 | CONFIG_FILES = $CONFIG_FILES |
| 14431 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14432 | CONFIG_LINKS = $CONFIG_LINKS |
| 14433 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14434 | $ $0 $@ |
| 14435 | |
| 14436 | _CSEOF |
| 14437 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 14438 | echo >&5 |
| 14439 | _ACEOF |
| 14440 | |
| 14441 | # Files that config.status was made for. |
| 14442 | if test -n "$ac_config_files"; then |
| 14443 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 14444 | fi |
| 14445 | |
| 14446 | if test -n "$ac_config_headers"; then |
| 14447 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 14448 | fi |
| 14449 | |
| 14450 | if test -n "$ac_config_links"; then |
| 14451 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 14452 | fi |
| 14453 | |
| 14454 | if test -n "$ac_config_commands"; then |
| 14455 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 14456 | fi |
| 14457 | |
| 14458 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14459 | |
| 14460 | ac_cs_usage="\ |
| 14461 | \`$as_me' instantiates files from templates according to the |
| 14462 | current configuration. |
| 14463 | |
| 14464 | Usage: $0 [OPTIONS] [FILE]... |
| 14465 | |
| 14466 | -h, --help print this help, then exit |
| 14467 | -V, --version print version number, then exit |
| 14468 | -q, --quiet do not print progress messages |
| 14469 | -d, --debug don't remove temporary files |
| 14470 | --recheck update $as_me by reconfiguring in the same conditions |
| 14471 | --file=FILE[:TEMPLATE] |
| 14472 | instantiate the configuration file FILE |
| 14473 | |
| 14474 | Configuration files: |
| 14475 | $config_files |
| 14476 | |
| 14477 | Configuration commands: |
| 14478 | $config_commands |
| 14479 | |
| 14480 | Report bugs to <bug-autoconf@gnu.org>." |
| 14481 | _ACEOF |
| 14482 | |
| 14483 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14484 | ac_cs_version="\\ |
| 14485 | config.status |
| 14486 | configured by $0, generated by GNU Autoconf 2.59, |
| 14487 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 14488 | |
| 14489 | Copyright (C) 2003 Free Software Foundation, Inc. |
| 14490 | This config.status script is free software; the Free Software Foundation |
| 14491 | gives unlimited permission to copy, distribute and modify it." |
| 14492 | srcdir=$srcdir |
| 14493 | INSTALL="$INSTALL" |
| 14494 | _ACEOF |
| 14495 | |
| 14496 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14497 | # If no file are specified by the user, then we need to provide default |
| 14498 | # value. By we need to know if files were specified by the user. |
| 14499 | ac_need_defaults=: |
| 14500 | while test $# != 0 |
| 14501 | do |
| 14502 | case $1 in |
| 14503 | --*=*) |
| 14504 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 14505 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 14506 | ac_shift=: |
| 14507 | ;; |
| 14508 | -*) |
| 14509 | ac_option=$1 |
| 14510 | ac_optarg=$2 |
| 14511 | ac_shift=shift |
| 14512 | ;; |
| 14513 | *) # This is not an option, so the user has probably given explicit |
| 14514 | # arguments. |
| 14515 | ac_option=$1 |
| 14516 | ac_need_defaults=false;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14517 | esac |
| 14518 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14519 | case $ac_option in |
| 14520 | # Handling of the options. |
| 14521 | _ACEOF |
| 14522 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14523 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 14524 | ac_cs_recheck=: ;; |
| 14525 | --version | --vers* | -V ) |
| 14526 | echo "$ac_cs_version"; exit 0 ;; |
| 14527 | --he | --h) |
| 14528 | # Conflict between --help and --header |
| 14529 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 14530 | Try \`$0 --help' for more information." >&5 |
| 14531 | echo "$as_me: error: ambiguous option: $1 |
| 14532 | Try \`$0 --help' for more information." >&2;} |
| 14533 | { (exit 1); exit 1; }; };; |
| 14534 | --help | --hel | -h ) |
| 14535 | echo "$ac_cs_usage"; exit 0 ;; |
| 14536 | --debug | --d* | -d ) |
| 14537 | debug=: ;; |
| 14538 | --file | --fil | --fi | --f ) |
| 14539 | $ac_shift |
| 14540 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 14541 | ac_need_defaults=false;; |
| 14542 | --header | --heade | --head | --hea ) |
| 14543 | $ac_shift |
| 14544 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 14545 | ac_need_defaults=false;; |
| 14546 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 14547 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 14548 | ac_cs_silent=: ;; |
| 14549 | |
| 14550 | # This is an error. |
| 14551 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 14552 | Try \`$0 --help' for more information." >&5 |
| 14553 | echo "$as_me: error: unrecognized option: $1 |
| 14554 | Try \`$0 --help' for more information." >&2;} |
| 14555 | { (exit 1); exit 1; }; } ;; |
| 14556 | |
| 14557 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 14558 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14559 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14560 | shift |
| 14561 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14562 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14563 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14564 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14565 | if $ac_cs_silent; then |
| 14566 | exec 6>/dev/null |
| 14567 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 14568 | fi |
| 14569 | |
| 14570 | _ACEOF |
| 14571 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14572 | if \$ac_cs_recheck; then |
| 14573 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 14574 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 14575 | fi |
| 14576 | |
| 14577 | _ACEOF |
| 14578 | |
| 14579 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14580 | # |
| 14581 | # INIT-COMMANDS section. |
| 14582 | # |
| 14583 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14584 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14585 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14586 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14587 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14588 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 14589 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14590 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 14591 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | _ACEOF |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14597 | for ac_config_target in $ac_config_targets |
| 14598 | do |
| 14599 | case "$ac_config_target" in |
| 14600 | # Handling of arguments. |
| 14601 | "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 14602 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 14603 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 14604 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 14605 | { (exit 1); exit 1; }; };; |
| 14606 | esac |
| 14607 | done |
| 14608 | |
| 14609 | # If the user did not use the arguments to specify the items to instantiate, |
| 14610 | # then the envvar interface is used. Set only those that are not. |
| 14611 | # We use the long form for the default assignment because of an extremely |
| 14612 | # bizarre bug on SunOS 4.1.3. |
| 14613 | if $ac_need_defaults; then |
| 14614 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 14615 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 14616 | fi |
| 14617 | |
| 14618 | # Have a temporary directory for convenience. Make it in the build tree |
| 14619 | # simply because there is no reason to put it here, and in addition, |
| 14620 | # creating and moving files from /tmp can sometimes cause problems. |
| 14621 | # Create a temporary directory, and hook for its removal unless debugging. |
| 14622 | $debug || |
| 14623 | { |
| 14624 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 14625 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 14626 | } |
| 14627 | |
| 14628 | # Create a (secure) tmp directory for tmp files. |
| 14629 | |
| 14630 | { |
| 14631 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 14632 | test -n "$tmp" && test -d "$tmp" |
| 14633 | } || |
| 14634 | { |
| 14635 | tmp=./confstat$$-$RANDOM |
| 14636 | (umask 077 && mkdir $tmp) |
| 14637 | } || |
| 14638 | { |
| 14639 | echo "$me: cannot create a temporary directory in ." >&2 |
| 14640 | { (exit 1); exit 1; } |
| 14641 | } |
| 14642 | |
| 14643 | _ACEOF |
| 14644 | |
| 14645 | cat >>$CONFIG_STATUS <<_ACEOF |
| 14646 | |
| 14647 | # |
| 14648 | # CONFIG_FILES section. |
| 14649 | # |
| 14650 | |
| 14651 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 14652 | # This happens for instance when ./config.status config.h |
| 14653 | if test -n "\$CONFIG_FILES"; then |
| 14654 | # Protect against being on the right side of a sed subst in config.status. |
| 14655 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 14656 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 14657 | s,@SHELL@,$SHELL,;t t |
| 14658 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 14659 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 14660 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 14661 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 14662 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 14663 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 14664 | s,@exec_prefix@,$exec_prefix,;t t |
| 14665 | s,@prefix@,$prefix,;t t |
| 14666 | s,@program_transform_name@,$program_transform_name,;t t |
| 14667 | s,@bindir@,$bindir,;t t |
| 14668 | s,@sbindir@,$sbindir,;t t |
| 14669 | s,@libexecdir@,$libexecdir,;t t |
| 14670 | s,@datadir@,$datadir,;t t |
| 14671 | s,@sysconfdir@,$sysconfdir,;t t |
| 14672 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 14673 | s,@localstatedir@,$localstatedir,;t t |
| 14674 | s,@libdir@,$libdir,;t t |
| 14675 | s,@includedir@,$includedir,;t t |
| 14676 | s,@oldincludedir@,$oldincludedir,;t t |
| 14677 | s,@infodir@,$infodir,;t t |
| 14678 | s,@mandir@,$mandir,;t t |
| 14679 | s,@build_alias@,$build_alias,;t t |
| 14680 | s,@host_alias@,$host_alias,;t t |
| 14681 | s,@target_alias@,$target_alias,;t t |
| 14682 | s,@DEFS@,$DEFS,;t t |
| 14683 | s,@ECHO_C@,$ECHO_C,;t t |
| 14684 | s,@ECHO_N@,$ECHO_N,;t t |
| 14685 | s,@ECHO_T@,$ECHO_T,;t t |
| 14686 | s,@LIBS@,$LIBS,;t t |
| 14687 | s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t |
| 14688 | s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t |
| 14689 | s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t |
| 14690 | s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t |
| 14691 | s,@build@,$build,;t t |
| 14692 | s,@build_cpu@,$build_cpu,;t t |
| 14693 | s,@build_vendor@,$build_vendor,;t t |
| 14694 | s,@build_os@,$build_os,;t t |
| 14695 | s,@host@,$host,;t t |
| 14696 | s,@host_cpu@,$host_cpu,;t t |
| 14697 | s,@host_vendor@,$host_vendor,;t t |
| 14698 | s,@host_os@,$host_os,;t t |
| 14699 | s,@CC@,$CC,;t t |
| 14700 | s,@CFLAGS@,$CFLAGS,;t t |
| 14701 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 14702 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 14703 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 14704 | s,@EXEEXT@,$EXEEXT,;t t |
| 14705 | s,@OBJEXT@,$OBJEXT,;t t |
| 14706 | s,@LD@,$LD,;t t |
| 14707 | s,@CPP@,$CPP,;t t |
| 14708 | s,@EGREP@,$EGREP,;t t |
| 14709 | s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t |
| 14710 | s,@HTREE_CMT@,$HTREE_CMT,;t t |
| 14711 | s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t |
| 14712 | s,@ELF_CMT@,$ELF_CMT,;t t |
| 14713 | s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t |
| 14714 | s,@PROFILE_CMT@,$PROFILE_CMT,;t t |
| 14715 | s,@CHECKER_CMT@,$CHECKER_CMT,;t t |
| 14716 | s,@LIB_EXT@,$LIB_EXT,;t t |
| 14717 | s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t |
| 14718 | s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t |
| 14719 | s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t |
| 14720 | s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t |
| 14721 | s,@IMAGER_CMT@,$IMAGER_CMT,;t t |
| 14722 | s,@RESIZER_CMT@,$RESIZER_CMT,;t t |
| 14723 | s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t |
| 14724 | s,@FSCK_PROG@,$FSCK_PROG,;t t |
| 14725 | s,@FSCK_MAN@,$FSCK_MAN,;t t |
| 14726 | s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t |
| 14727 | s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t |
| 14728 | s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t |
| 14729 | s,@PACKAGE@,$PACKAGE,;t t |
| 14730 | s,@VERSION@,$VERSION,;t t |
| 14731 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 14732 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 14733 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 14734 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 14735 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
| 14736 | s,@USE_NLS@,$USE_NLS,;t t |
| 14737 | s,@MSGFMT@,$MSGFMT,;t t |
| 14738 | s,@GMSGFMT@,$GMSGFMT,;t t |
| 14739 | s,@XGETTEXT@,$XGETTEXT,;t t |
| 14740 | s,@MSGMERGE@,$MSGMERGE,;t t |
| 14741 | s,@RANLIB@,$RANLIB,;t t |
| 14742 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 14743 | s,@ALLOCA@,$ALLOCA,;t t |
| 14744 | s,@GLIBC21@,$GLIBC21,;t t |
| 14745 | s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t |
| 14746 | s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t |
| 14747 | s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t |
| 14748 | s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t |
| 14749 | s,@LIBICONV@,$LIBICONV,;t t |
| 14750 | s,@LTLIBICONV@,$LTLIBICONV,;t t |
| 14751 | s,@INTLBISON@,$INTLBISON,;t t |
| 14752 | s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t |
| 14753 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t |
| 14754 | s,@CATOBJEXT@,$CATOBJEXT,;t t |
| 14755 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
| 14756 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
| 14757 | s,@GENCAT@,$GENCAT,;t t |
| 14758 | s,@INTLOBJS@,$INTLOBJS,;t t |
| 14759 | s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t |
| 14760 | s,@INTLLIBS@,$INTLLIBS,;t t |
| 14761 | s,@LIBINTL@,$LIBINTL,;t t |
| 14762 | s,@LTLIBINTL@,$LTLIBINTL,;t t |
| 14763 | s,@POSUB@,$POSUB,;t t |
| 14764 | s,@BINARY_TYPE@,$BINARY_TYPE,;t t |
| 14765 | s,@LN@,$LN,;t t |
| 14766 | s,@LN_S@,$LN_S,;t t |
| 14767 | s,@MV@,$MV,;t t |
| 14768 | s,@CP@,$CP,;t t |
| 14769 | s,@RM@,$RM,;t t |
| 14770 | s,@CHMOD@,$CHMOD,;t t |
| 14771 | s,@AWK@,$AWK,;t t |
| 14772 | s,@SED@,$SED,;t t |
| 14773 | s,@PERL@,$PERL,;t t |
| 14774 | s,@LDCONFIG@,$LDCONFIG,;t t |
| 14775 | s,@AR@,$AR,;t t |
| 14776 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
| 14777 | s,@STRIP@,$STRIP,;t t |
| 14778 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
| 14779 | s,@BUILD_CC@,$BUILD_CC,;t t |
| 14780 | s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t |
| 14781 | s,@SIZEOF_INT@,$SIZEOF_INT,;t t |
| 14782 | s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t |
| 14783 | s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t |
| 14784 | s,@SOCKET_LIB@,$SOCKET_LIB,;t t |
| 14785 | s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t |
| 14786 | s,@LINUX_CMT@,$LINUX_CMT,;t t |
| 14787 | s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t |
| 14788 | s,@UNIX_CMT@,$UNIX_CMT,;t t |
| 14789 | s,@root_prefix@,$root_prefix,;t t |
| 14790 | s,@root_bindir@,$root_bindir,;t t |
| 14791 | s,@root_sbindir@,$root_sbindir,;t t |
| 14792 | s,@root_libdir@,$root_libdir,;t t |
| 14793 | s,@root_sysconfdir@,$root_sysconfdir,;t t |
| 14794 | s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t |
| 14795 | s,@SS_DIR@,$SS_DIR,;t t |
| 14796 | s,@ET_DIR@,$ET_DIR,;t t |
| 14797 | s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t |
| 14798 | s,@INTL_FLAGS@,$INTL_FLAGS,;t t |
| 14799 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 14800 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 14801 | /@MCONFIG@/r $MCONFIG |
| 14802 | s,@MCONFIG@,,;t t |
| 14803 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 14804 | s,@MAKEFILE_ELF@,,;t t |
| 14805 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 14806 | s,@MAKEFILE_BSDLIB@,,;t t |
| 14807 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 14808 | s,@MAKEFILE_PROFILE@,,;t t |
| 14809 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 14810 | s,@MAKEFILE_CHECKER@,,;t t |
| 14811 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 14812 | s,@MAKEFILE_LIBRARY@,,;t t |
| 14813 | CEOF |
| 14814 | |
| 14815 | _ACEOF |
| 14816 | |
| 14817 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14818 | # Split the substitutions into bite-sized pieces for seds with |
| 14819 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 14820 | ac_max_sed_lines=48 |
| 14821 | ac_sed_frag=1 # Number of current file. |
| 14822 | ac_beg=1 # First line for current file. |
| 14823 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 14824 | ac_more_lines=: |
| 14825 | ac_sed_cmds= |
| 14826 | while $ac_more_lines; do |
| 14827 | if test $ac_beg -gt 1; then |
| 14828 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14829 | else |
| 14830 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 14831 | fi |
| 14832 | if test ! -s $tmp/subs.frag; then |
| 14833 | ac_more_lines=false |
| 14834 | else |
| 14835 | # The purpose of the label and of the branching condition is to |
| 14836 | # speed up the sed processing (if there are no `@' at all, there |
| 14837 | # is no need to browse any of the substitutions). |
| 14838 | # These are the two extra sed commands mentioned above. |
| 14839 | (echo ':t |
| 14840 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 14841 | if test -z "$ac_sed_cmds"; then |
| 14842 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14843 | else |
| 14844 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 14845 | fi |
| 14846 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 14847 | ac_beg=$ac_end |
| 14848 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 14849 | fi |
| 14850 | done |
| 14851 | if test -z "$ac_sed_cmds"; then |
| 14852 | ac_sed_cmds=cat |
| 14853 | fi |
| 14854 | fi # test -n "$CONFIG_FILES" |
| 14855 | |
| 14856 | _ACEOF |
| 14857 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 14858 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 14859 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 14860 | case $ac_file in |
| 14861 | - | *:- | *:-:* ) # input from stdin |
| 14862 | cat >$tmp/stdin |
| 14863 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14864 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14865 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 14866 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 14867 | * ) ac_file_in=$ac_file.in ;; |
| 14868 | esac |
| 14869 | |
| 14870 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 14871 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 14872 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14873 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 14874 | X"$ac_file" : 'X\(//\)$' \| \ |
| 14875 | X"$ac_file" : 'X\(/\)' \| \ |
| 14876 | . : '\(.\)' 2>/dev/null || |
| 14877 | echo X"$ac_file" | |
| 14878 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14879 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14880 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14881 | /^X\(\/\).*/{ s//\1/; q; } |
| 14882 | s/.*/./; q'` |
| 14883 | { if $as_mkdir_p; then |
| 14884 | mkdir -p "$ac_dir" |
| 14885 | else |
| 14886 | as_dir="$ac_dir" |
| 14887 | as_dirs= |
| 14888 | while test ! -d "$as_dir"; do |
| 14889 | as_dirs="$as_dir $as_dirs" |
| 14890 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 14891 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14892 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14893 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14894 | X"$as_dir" : 'X\(/\)' \| \ |
| 14895 | . : '\(.\)' 2>/dev/null || |
| 14896 | echo X"$as_dir" | |
| 14897 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 14898 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 14899 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 14900 | /^X\(\/\).*/{ s//\1/; q; } |
| 14901 | s/.*/./; q'` |
| 14902 | done |
| 14903 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 14904 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 14905 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 14906 | { (exit 1); exit 1; }; }; } |
| 14907 | |
| 14908 | ac_builddir=. |
| 14909 | |
| 14910 | if test "$ac_dir" != .; then |
| 14911 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 14912 | # A "../" for each directory in $ac_dir_suffix. |
| 14913 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 14914 | else |
| 14915 | ac_dir_suffix= ac_top_builddir= |
| 14916 | fi |
| 14917 | |
| 14918 | case $srcdir in |
| 14919 | .) # No --srcdir option. We are building in place. |
| 14920 | ac_srcdir=. |
| 14921 | if test -z "$ac_top_builddir"; then |
| 14922 | ac_top_srcdir=. |
| 14923 | else |
| 14924 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 14925 | fi ;; |
| 14926 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 14927 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 14928 | ac_top_srcdir=$srcdir ;; |
| 14929 | *) # Relative path. |
| 14930 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 14931 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 14932 | esac |
| 14933 | |
| 14934 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 14935 | # the directories may not exist. |
| 14936 | case `pwd` in |
| 14937 | .) ac_abs_builddir="$ac_dir";; |
| 14938 | *) |
| 14939 | case "$ac_dir" in |
| 14940 | .) ac_abs_builddir=`pwd`;; |
| 14941 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 14942 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 14943 | esac;; |
| 14944 | esac |
| 14945 | case $ac_abs_builddir in |
| 14946 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 14947 | *) |
| 14948 | case ${ac_top_builddir}. in |
| 14949 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 14950 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 14951 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 14952 | esac;; |
| 14953 | esac |
| 14954 | case $ac_abs_builddir in |
| 14955 | .) ac_abs_srcdir=$ac_srcdir;; |
| 14956 | *) |
| 14957 | case $ac_srcdir in |
| 14958 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 14959 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 14960 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 14961 | esac;; |
| 14962 | esac |
| 14963 | case $ac_abs_builddir in |
| 14964 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 14965 | *) |
| 14966 | case $ac_top_srcdir in |
| 14967 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 14968 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 14969 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 14970 | esac;; |
| 14971 | esac |
| 14972 | |
| 14973 | |
| 14974 | case $INSTALL in |
| 14975 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 14976 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 14977 | esac |
| 14978 | |
| 14979 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 14980 | # use $as_me), people would be surprised to read: |
| 14981 | # /* config.h. Generated by config.status. */ |
| 14982 | if test x"$ac_file" = x-; then |
| 14983 | configure_input= |
| 14984 | else |
| 14985 | configure_input="$ac_file. " |
| 14986 | fi |
| 14987 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 14988 | sed 's,.*/,,'` by configure." |
| 14989 | |
| 14990 | # First look for the input files in the build tree, otherwise in the |
| 14991 | # src tree. |
| 14992 | ac_file_inputs=`IFS=: |
| 14993 | for f in $ac_file_in; do |
| 14994 | case $f in |
| 14995 | -) echo $tmp/stdin ;; |
| 14996 | [\\/$]*) |
| 14997 | # Absolute (can't be DOS-style, as IFS=:) |
| 14998 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 14999 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15000 | { (exit 1); exit 1; }; } |
| 15001 | echo "$f";; |
| 15002 | *) # Relative |
| 15003 | if test -f "$f"; then |
| 15004 | # Build tree |
| 15005 | echo "$f" |
| 15006 | elif test -f "$srcdir/$f"; then |
| 15007 | # Source tree |
| 15008 | echo "$srcdir/$f" |
| 15009 | else |
| 15010 | # /dev/null tree |
| 15011 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 15012 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 15013 | { (exit 1); exit 1; }; } |
| 15014 | fi;; |
| 15015 | esac |
| 15016 | done` || { (exit 1); exit 1; } |
| 15017 | |
| 15018 | if test x"$ac_file" != x-; then |
| 15019 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 15020 | echo "$as_me: creating $ac_file" >&6;} |
| 15021 | rm -f "$ac_file" |
| 15022 | fi |
| 15023 | _ACEOF |
| 15024 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15025 | sed "$ac_vpsub |
| 15026 | $extrasub |
| 15027 | _ACEOF |
| 15028 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15029 | :t |
| 15030 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15031 | s,@configure_input@,$configure_input,;t t |
| 15032 | s,@srcdir@,$ac_srcdir,;t t |
| 15033 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 15034 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 15035 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 15036 | s,@builddir@,$ac_builddir,;t t |
| 15037 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 15038 | s,@top_builddir@,$ac_top_builddir,;t t |
| 15039 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 15040 | s,@INSTALL@,$ac_INSTALL,;t t |
| 15041 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 15042 | rm -f $tmp/stdin |
| 15043 | if test x"$ac_file" != x-; then |
| 15044 | mv $tmp/out $ac_file |
| 15045 | else |
| 15046 | cat $tmp/out |
| 15047 | rm -f $tmp/out |
| 15048 | fi |
| 15049 | |
| 15050 | done |
| 15051 | _ACEOF |
| 15052 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15053 | |
| 15054 | # |
| 15055 | # CONFIG_COMMANDS section. |
| 15056 | # |
| 15057 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 15058 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 15059 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 15060 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 15061 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15062 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 15063 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 15064 | X"$ac_dest" : 'X\(/\)' \| \ |
| 15065 | . : '\(.\)' 2>/dev/null || |
| 15066 | echo X"$ac_dest" | |
| 15067 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15068 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15069 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15070 | /^X\(\/\).*/{ s//\1/; q; } |
| 15071 | s/.*/./; q'` |
| 15072 | { if $as_mkdir_p; then |
| 15073 | mkdir -p "$ac_dir" |
| 15074 | else |
| 15075 | as_dir="$ac_dir" |
| 15076 | as_dirs= |
| 15077 | while test ! -d "$as_dir"; do |
| 15078 | as_dirs="$as_dir $as_dirs" |
| 15079 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 15080 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15081 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15082 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15083 | X"$as_dir" : 'X\(/\)' \| \ |
| 15084 | . : '\(.\)' 2>/dev/null || |
| 15085 | echo X"$as_dir" | |
| 15086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 15087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 15088 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 15089 | /^X\(\/\).*/{ s//\1/; q; } |
| 15090 | s/.*/./; q'` |
| 15091 | done |
| 15092 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 15093 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 15094 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 15095 | { (exit 1); exit 1; }; }; } |
| 15096 | |
| 15097 | ac_builddir=. |
| 15098 | |
| 15099 | if test "$ac_dir" != .; then |
| 15100 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 15101 | # A "../" for each directory in $ac_dir_suffix. |
| 15102 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 15103 | else |
| 15104 | ac_dir_suffix= ac_top_builddir= |
| 15105 | fi |
| 15106 | |
| 15107 | case $srcdir in |
| 15108 | .) # No --srcdir option. We are building in place. |
| 15109 | ac_srcdir=. |
| 15110 | if test -z "$ac_top_builddir"; then |
| 15111 | ac_top_srcdir=. |
| 15112 | else |
| 15113 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 15114 | fi ;; |
| 15115 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 15116 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 15117 | ac_top_srcdir=$srcdir ;; |
| 15118 | *) # Relative path. |
| 15119 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 15120 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 15121 | esac |
| 15122 | |
| 15123 | # Do not use `cd foo && pwd` to compute absolute paths, because |
| 15124 | # the directories may not exist. |
| 15125 | case `pwd` in |
| 15126 | .) ac_abs_builddir="$ac_dir";; |
| 15127 | *) |
| 15128 | case "$ac_dir" in |
| 15129 | .) ac_abs_builddir=`pwd`;; |
| 15130 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 15131 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 15132 | esac;; |
| 15133 | esac |
| 15134 | case $ac_abs_builddir in |
| 15135 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15136 | *) |
| 15137 | case ${ac_top_builddir}. in |
| 15138 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
| 15139 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 15140 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 15141 | esac;; |
| 15142 | esac |
| 15143 | case $ac_abs_builddir in |
| 15144 | .) ac_abs_srcdir=$ac_srcdir;; |
| 15145 | *) |
| 15146 | case $ac_srcdir in |
| 15147 | .) ac_abs_srcdir=$ac_abs_builddir;; |
| 15148 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 15149 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 15150 | esac;; |
| 15151 | esac |
| 15152 | case $ac_abs_builddir in |
| 15153 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15154 | *) |
| 15155 | case $ac_top_srcdir in |
| 15156 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 15157 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 15158 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 15159 | esac;; |
| 15160 | esac |
| 15161 | |
| 15162 | |
| 15163 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 15164 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 15165 | case $ac_dest in |
| 15166 | default-1 ) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15167 | for ac_file in $CONFIG_FILES; do |
| 15168 | # Support "outfile[:infile[:infile...]]" |
| 15169 | case "$ac_file" in |
| 15170 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 15171 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15172 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 15173 | case "$ac_file" in */Makefile.in) |
| 15174 | # Adjust a relative srcdir. |
| 15175 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 15176 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 15177 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 15178 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 15179 | # In autoconf-2.50 it is called $srcdir. |
| 15180 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 15181 | case "$ac_given_srcdir" in |
| 15182 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 15183 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 15184 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 15185 | esac |
| 15186 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 15187 | rm -f "$ac_dir/POTFILES" |
| 15188 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 15189 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15190 | POMAKEFILEDEPS="POTFILES.in" |
| 15191 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15192 | # on $ac_dir but don't depend on user-specified configuration |
| 15193 | # parameters. |
| 15194 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 15195 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15196 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15197 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 15198 | fi |
| 15199 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 15200 | # Hide the ALL_LINGUAS assigment from automake. |
| 15201 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15202 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 15203 | else |
| 15204 | # The set of available languages was given in configure.in. |
| 15205 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15206 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15207 | # Compute POFILES |
| 15208 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 15209 | # Compute UPDATEPOFILES |
| 15210 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 15211 | # Compute DUMMYPOFILES |
| 15212 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 15213 | # Compute GMOFILES |
| 15214 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15215 | case "$ac_given_srcdir" in |
| 15216 | .) srcdirpre= ;; |
| 15217 | *) srcdirpre='$(srcdir)/' ;; |
| 15218 | esac |
| 15219 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15220 | UPDATEPOFILES= |
| 15221 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15222 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15223 | for lang in $ALL_LINGUAS; do |
| 15224 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15225 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 15226 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15227 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15228 | done |
| 15229 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 15230 | # environment variable. |
| 15231 | INST_LINGUAS= |
| 15232 | if test -n "$ALL_LINGUAS"; then |
| 15233 | for presentlang in $ALL_LINGUAS; do |
| 15234 | useit=no |
| 15235 | if test "%UNSET%" != "$LINGUAS"; then |
| 15236 | desiredlanguages="$LINGUAS" |
| 15237 | else |
| 15238 | desiredlanguages="$ALL_LINGUAS" |
| 15239 | fi |
| 15240 | for desiredlang in $desiredlanguages; do |
| 15241 | # Use the presentlang catalog if desiredlang is |
| 15242 | # a. equal to presentlang, or |
| 15243 | # b. a variant of presentlang (because in this case, |
| 15244 | # presentlang can be used as a fallback for messages |
| 15245 | # which are not translated in the desiredlang catalog). |
| 15246 | case "$desiredlang" in |
| 15247 | "$presentlang"*) useit=yes;; |
| 15248 | esac |
| 15249 | done |
| 15250 | if test $useit = yes; then |
| 15251 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 15252 | fi |
| 15253 | done |
| 15254 | fi |
| 15255 | CATALOGS= |
| 15256 | if test -n "$INST_LINGUAS"; then |
| 15257 | for lang in $INST_LINGUAS; do |
| 15258 | CATALOGS="$CATALOGS $lang.gmo" |
| 15259 | done |
| 15260 | fi |
| 15261 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15262 | 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" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15263 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 15264 | if test -f "$f"; then |
| 15265 | case "$f" in |
| 15266 | *.orig | *.bak | *~) ;; |
| 15267 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 15268 | esac |
| 15269 | fi |
| 15270 | done |
| 15271 | fi |
| 15272 | ;; |
| 15273 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15274 | done ;; |
| 15275 | esac |
| 15276 | done |
| 15277 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15278 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15279 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15280 | |
| 15281 | { (exit 0); exit 0; } |
| 15282 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15283 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15284 | ac_clean_files=$ac_clean_files_save |
| 15285 | |
| 15286 | |
| 15287 | # configure is writing to config.log, and then calls config.status. |
| 15288 | # config.status does its own redirection, appending to config.log. |
| 15289 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 15290 | # by configure, so config.status won't be able to write to it; its |
| 15291 | # output is simply discarded. So we exec the FD to /dev/null, |
| 15292 | # effectively closing config.log, so it can be properly (re)opened and |
| 15293 | # appended to by config.status. When coming back to configure, we |
| 15294 | # need to make the FD available again. |
| 15295 | if test "$no_create" != yes; then |
| 15296 | ac_cs_success=: |
| 15297 | ac_config_status_args= |
| 15298 | test "$silent" = yes && |
| 15299 | ac_config_status_args="$ac_config_status_args --quiet" |
| 15300 | exec 5>/dev/null |
| 15301 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 15302 | exec 5>>config.log |
| 15303 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 15304 | # would make configure fail if this is the last instruction. |
| 15305 | $ac_cs_success || { (exit 1); exit 1; } |
| 15306 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15307 | |