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 | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.61. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13 | # Be more Bourne compatible |
| 14 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16 | emulate sh |
| 17 | NULLCMD=: |
| 18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 19 | # is contrary to our usage. Disable this feature. |
| 20 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 21 | setopt NO_GLOB_SUBST |
| 22 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 23 | case `(set -o) 2>/dev/null` in |
| 24 | *posix*) set -o posix ;; |
| 25 | esac |
| 26 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 27 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 28 | |
| 29 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 30 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 31 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 32 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | # Avoid depending upon Character Ranges. |
| 34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 37 | as_cr_digits='0123456789' |
| 38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 39 | |
| 40 | # The user is always right. |
| 41 | if test "${PATH_SEPARATOR+set}" != set; then |
| 42 | echo "#! /bin/sh" >conf$$.sh |
| 43 | echo "exit 0" >>conf$$.sh |
| 44 | chmod +x conf$$.sh |
| 45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 46 | PATH_SEPARATOR=';' |
| 47 | else |
| 48 | PATH_SEPARATOR=: |
| 49 | fi |
| 50 | rm -f conf$$.sh |
| 51 | fi |
| 52 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 53 | # Support unset when possible. |
| 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 55 | as_unset=unset |
| 56 | else |
| 57 | as_unset=false |
| 58 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 59 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 60 | |
| 61 | # IFS |
| 62 | # We need space, tab and new line, in precisely that order. Quoting is |
| 63 | # there to prevent editors from complaining about space-tab. |
| 64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 65 | # splitting by setting IFS to empty value.) |
| 66 | as_nl=' |
| 67 | ' |
| 68 | IFS=" "" $as_nl" |
| 69 | |
| 70 | # Find who we are. Look in the path if we contain no directory separator. |
| 71 | case $0 in |
| 72 | *[\\/]* ) as_myself=$0 ;; |
| 73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | for as_dir in $PATH |
| 75 | do |
| 76 | IFS=$as_save_IFS |
| 77 | test -z "$as_dir" && as_dir=. |
| 78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 79 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 80 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 82 | ;; |
| 83 | esac |
| 84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 85 | # in which case we are not to be found in the path. |
| 86 | if test "x$as_myself" = x; then |
| 87 | as_myself=$0 |
| 88 | fi |
| 89 | if test ! -f "$as_myself"; then |
| 90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 91 | { (exit 1); exit 1; } |
| 92 | fi |
| 93 | |
| 94 | # Work around bugs in pre-3.0 UWIN ksh. |
| 95 | for as_var in ENV MAIL MAILPATH |
| 96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 97 | done |
| 98 | PS1='$ ' |
| 99 | PS2='> ' |
| 100 | PS4='+ ' |
| 101 | |
| 102 | # NLS nuisances. |
| 103 | for as_var in \ |
| 104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 106 | LC_TELEPHONE LC_TIME |
| 107 | do |
| 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 109 | eval $as_var=C; export $as_var |
| 110 | else |
| 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | done |
| 114 | |
| 115 | # Required to use basename. |
| 116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 118 | as_expr=expr |
| 119 | else |
| 120 | as_expr=false |
| 121 | fi |
| 122 | |
| 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 124 | as_basename=basename |
| 125 | else |
| 126 | as_basename=false |
| 127 | fi |
| 128 | |
| 129 | |
| 130 | # Name of the executable. |
| 131 | as_me=`$as_basename -- "$0" || |
| 132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 133 | X"$0" : 'X\(//\)$' \| \ |
| 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 135 | echo X/"$0" | |
| 136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 137 | s//\1/ |
| 138 | q |
| 139 | } |
| 140 | /^X\/\(\/\/\)$/{ |
| 141 | s//\1/ |
| 142 | q |
| 143 | } |
| 144 | /^X\/\(\/\).*/{ |
| 145 | s//\1/ |
| 146 | q |
| 147 | } |
| 148 | s/.*/./; q'` |
| 149 | |
| 150 | # CDPATH. |
| 151 | $as_unset CDPATH |
| 152 | |
| 153 | |
| 154 | if test "x$CONFIG_SHELL" = x; then |
| 155 | if (eval ":") 2>/dev/null; then |
| 156 | as_have_required=yes |
| 157 | else |
| 158 | as_have_required=no |
| 159 | fi |
| 160 | |
| 161 | if test $as_have_required = yes && (eval ": |
| 162 | (as_func_return () { |
| 163 | (exit \$1) |
| 164 | } |
| 165 | as_func_success () { |
| 166 | as_func_return 0 |
| 167 | } |
| 168 | as_func_failure () { |
| 169 | as_func_return 1 |
| 170 | } |
| 171 | as_func_ret_success () { |
| 172 | return 0 |
| 173 | } |
| 174 | as_func_ret_failure () { |
| 175 | return 1 |
| 176 | } |
| 177 | |
| 178 | exitcode=0 |
| 179 | if as_func_success; then |
| 180 | : |
| 181 | else |
| 182 | exitcode=1 |
| 183 | echo as_func_success failed. |
| 184 | fi |
| 185 | |
| 186 | if as_func_failure; then |
| 187 | exitcode=1 |
| 188 | echo as_func_failure succeeded. |
| 189 | fi |
| 190 | |
| 191 | if as_func_ret_success; then |
| 192 | : |
| 193 | else |
| 194 | exitcode=1 |
| 195 | echo as_func_ret_success failed. |
| 196 | fi |
| 197 | |
| 198 | if as_func_ret_failure; then |
| 199 | exitcode=1 |
| 200 | echo as_func_ret_failure succeeded. |
| 201 | fi |
| 202 | |
| 203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 204 | : |
| 205 | else |
| 206 | exitcode=1 |
| 207 | echo positional parameters were not saved. |
| 208 | fi |
| 209 | |
| 210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
| 211 | |
| 212 | ( |
| 213 | as_lineno_1=\$LINENO |
| 214 | as_lineno_2=\$LINENO |
| 215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
| 216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
| 217 | ") 2> /dev/null; then |
| 218 | : |
| 219 | else |
| 220 | as_candidate_shells= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 223 | do |
| 224 | IFS=$as_save_IFS |
| 225 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 226 | case $as_dir in |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 227 | /*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 228 | for as_base in sh bash ksh sh5; do |
| 229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
| 230 | done;; |
| 231 | esac |
| 232 | done |
| 233 | IFS=$as_save_IFS |
| 234 | |
| 235 | |
| 236 | for as_shell in $as_candidate_shells $SHELL; do |
| 237 | # Try only shells that exist, to save several forks. |
| 238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 241 | emulate sh |
| 242 | NULLCMD=: |
| 243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 244 | # is contrary to our usage. Disable this feature. |
| 245 | alias -g '${1+"$@"}'='"$@"' |
| 246 | setopt NO_GLOB_SUBST |
| 247 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 248 | case `(set -o) 2>/dev/null` in |
| 249 | *posix*) set -o posix ;; |
| 250 | esac |
| 251 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 252 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 254 | |
| 255 | : |
| 256 | _ASEOF |
| 257 | }; then |
| 258 | CONFIG_SHELL=$as_shell |
| 259 | as_have_required=yes |
| 260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 262 | emulate sh |
| 263 | NULLCMD=: |
| 264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 265 | # is contrary to our usage. Disable this feature. |
| 266 | alias -g '${1+"$@"}'='"$@"' |
| 267 | setopt NO_GLOB_SUBST |
| 268 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 269 | case `(set -o) 2>/dev/null` in |
| 270 | *posix*) set -o posix ;; |
| 271 | esac |
| 272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 273 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 274 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 275 | |
| 276 | : |
| 277 | (as_func_return () { |
| 278 | (exit $1) |
| 279 | } |
| 280 | as_func_success () { |
| 281 | as_func_return 0 |
| 282 | } |
| 283 | as_func_failure () { |
| 284 | as_func_return 1 |
| 285 | } |
| 286 | as_func_ret_success () { |
| 287 | return 0 |
| 288 | } |
| 289 | as_func_ret_failure () { |
| 290 | return 1 |
| 291 | } |
| 292 | |
| 293 | exitcode=0 |
| 294 | if as_func_success; then |
| 295 | : |
| 296 | else |
| 297 | exitcode=1 |
| 298 | echo as_func_success failed. |
| 299 | fi |
| 300 | |
| 301 | if as_func_failure; then |
| 302 | exitcode=1 |
| 303 | echo as_func_failure succeeded. |
| 304 | fi |
| 305 | |
| 306 | if as_func_ret_success; then |
| 307 | : |
| 308 | else |
| 309 | exitcode=1 |
| 310 | echo as_func_ret_success failed. |
| 311 | fi |
| 312 | |
| 313 | if as_func_ret_failure; then |
| 314 | exitcode=1 |
| 315 | echo as_func_ret_failure succeeded. |
| 316 | fi |
| 317 | |
| 318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
| 319 | : |
| 320 | else |
| 321 | exitcode=1 |
| 322 | echo positional parameters were not saved. |
| 323 | fi |
| 324 | |
| 325 | test $exitcode = 0) || { (exit 1); exit 1; } |
| 326 | |
| 327 | ( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 328 | as_lineno_1=$LINENO |
| 329 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
| 332 | |
| 333 | _ASEOF |
| 334 | }; then |
| 335 | break |
| 336 | fi |
| 337 | |
| 338 | fi |
| 339 | |
| 340 | done |
| 341 | |
| 342 | if test "x$CONFIG_SHELL" != x; then |
| 343 | for as_var in BASH_ENV ENV |
| 344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 345 | done |
| 346 | export CONFIG_SHELL |
| 347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 348 | fi |
| 349 | |
| 350 | |
| 351 | if test $as_have_required = no; then |
| 352 | echo This script requires a shell more modern than all the |
| 353 | echo shells that I found on your system. Please install a |
| 354 | echo modern shell, or manually run the script under such a |
| 355 | echo shell if you do have one. |
| 356 | { (exit 1); exit 1; } |
| 357 | fi |
| 358 | |
| 359 | |
| 360 | fi |
| 361 | |
| 362 | fi |
| 363 | |
| 364 | |
| 365 | |
| 366 | (eval "as_func_return () { |
| 367 | (exit \$1) |
| 368 | } |
| 369 | as_func_success () { |
| 370 | as_func_return 0 |
| 371 | } |
| 372 | as_func_failure () { |
| 373 | as_func_return 1 |
| 374 | } |
| 375 | as_func_ret_success () { |
| 376 | return 0 |
| 377 | } |
| 378 | as_func_ret_failure () { |
| 379 | return 1 |
| 380 | } |
| 381 | |
| 382 | exitcode=0 |
| 383 | if as_func_success; then |
| 384 | : |
| 385 | else |
| 386 | exitcode=1 |
| 387 | echo as_func_success failed. |
| 388 | fi |
| 389 | |
| 390 | if as_func_failure; then |
| 391 | exitcode=1 |
| 392 | echo as_func_failure succeeded. |
| 393 | fi |
| 394 | |
| 395 | if as_func_ret_success; then |
| 396 | : |
| 397 | else |
| 398 | exitcode=1 |
| 399 | echo as_func_ret_success failed. |
| 400 | fi |
| 401 | |
| 402 | if as_func_ret_failure; then |
| 403 | exitcode=1 |
| 404 | echo as_func_ret_failure succeeded. |
| 405 | fi |
| 406 | |
| 407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
| 408 | : |
| 409 | else |
| 410 | exitcode=1 |
| 411 | echo positional parameters were not saved. |
| 412 | fi |
| 413 | |
| 414 | test \$exitcode = 0") || { |
| 415 | echo No shell found that supports shell functions. |
| 416 | echo Please tell autoconf@gnu.org about your system, |
| 417 | echo including any error possibly output before this |
| 418 | echo message |
| 419 | } |
| 420 | |
| 421 | |
| 422 | |
| 423 | as_lineno_1=$LINENO |
| 424 | as_lineno_2=$LINENO |
| 425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 427 | |
| 428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 429 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 430 | # line-number line after each line using $LINENO; the second 'sed' |
| 431 | # does the real work. The second script uses 'N' to pair each |
| 432 | # line-number line with the line containing $LINENO, and appends |
| 433 | # trailing '-' during substitution so that $LINENO is not a special |
| 434 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 438 | sed -n ' |
| 439 | p |
| 440 | /[$]LINENO/= |
| 441 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 442 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 443 | s/[$]LINENO.*/&-/ |
| 444 | t lineno |
| 445 | b |
| 446 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 447 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 448 | :loop |
| 449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 450 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 451 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 452 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 453 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 455 | { (exit 1); exit 1; }; } |
| 456 | |
| 457 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 458 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 459 | # original and so on. Autoconf is especially sensitive to this). |
| 460 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 461 | # Exit status is that of the last command. |
| 462 | exit |
| 463 | } |
| 464 | |
| 465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 467 | as_dirname=dirname |
| 468 | else |
| 469 | as_dirname=false |
| 470 | fi |
| 471 | |
| 472 | ECHO_C= ECHO_N= ECHO_T= |
| 473 | case `echo -n x` in |
| 474 | -n*) |
| 475 | case `echo 'x\c'` in |
| 476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 477 | *) ECHO_C='\c';; |
| 478 | esac;; |
| 479 | *) |
| 480 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 481 | esac |
| 482 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 485 | as_expr=expr |
| 486 | else |
| 487 | as_expr=false |
| 488 | fi |
| 489 | |
| 490 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 491 | if test -d conf$$.dir; then |
| 492 | rm -f conf$$.dir/conf$$.file |
| 493 | else |
| 494 | rm -f conf$$.dir |
| 495 | mkdir conf$$.dir |
| 496 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 497 | echo >conf$$.file |
| 498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 499 | as_ln_s='ln -s' |
| 500 | # ... but there are two gotchas: |
| 501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 503 | # In both cases, we have to default to `cp -p'. |
| 504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 505 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 507 | as_ln_s=ln |
| 508 | else |
| 509 | as_ln_s='cp -p' |
| 510 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 512 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 513 | |
| 514 | if mkdir -p . 2>/dev/null; then |
| 515 | as_mkdir_p=: |
| 516 | else |
| 517 | test -d ./-p && rmdir ./-p |
| 518 | as_mkdir_p=false |
| 519 | fi |
| 520 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 521 | if test -x / >/dev/null 2>&1; then |
| 522 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 523 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 524 | if ls -dL / >/dev/null 2>&1; then |
| 525 | as_ls_L_option=L |
| 526 | else |
| 527 | as_ls_L_option= |
| 528 | fi |
| 529 | as_test_x=' |
| 530 | eval sh -c '\'' |
| 531 | if test -d "$1"; then |
| 532 | test -d "$1/."; |
| 533 | else |
| 534 | case $1 in |
| 535 | -*)set "./$1";; |
| 536 | esac; |
| 537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 538 | ???[sx]*):;;*)false;;esac;fi |
| 539 | '\'' sh |
| 540 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 542 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 543 | |
| 544 | # Sed expression to map a string onto a valid CPP name. |
| 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 546 | |
| 547 | # Sed expression to map a string onto a valid variable name. |
| 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 549 | |
| 550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 552 | exec 7<&0 </dev/null 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 553 | |
| 554 | # Name of the host. |
| 555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 556 | # so uname gets run too. |
| 557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 558 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 559 | # |
| 560 | # Initializations. |
| 561 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 562 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 563 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 564 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 565 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 566 | cross_compiling=no |
| 567 | subdirs= |
| 568 | MFLAGS= |
| 569 | MAKEFLAGS= |
| 570 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 571 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # Identity of this package. |
| 573 | PACKAGE_NAME= |
| 574 | PACKAGE_TARNAME= |
| 575 | PACKAGE_VERSION= |
| 576 | PACKAGE_STRING= |
| 577 | PACKAGE_BUGREPORT= |
| 578 | |
| 579 | ac_unique_file="version.h" |
| 580 | # Factoring default headers for most tests. |
| 581 | ac_includes_default="\ |
| 582 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 583 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 584 | # include <sys/types.h> |
| 585 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 586 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 587 | # include <sys/stat.h> |
| 588 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 589 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 590 | # include <stdlib.h> |
| 591 | # include <stddef.h> |
| 592 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 593 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 594 | # include <stdlib.h> |
| 595 | # endif |
| 596 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 597 | #ifdef HAVE_STRING_H |
| 598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 599 | # include <memory.h> |
| 600 | # endif |
| 601 | # include <string.h> |
| 602 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 603 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 604 | # include <strings.h> |
| 605 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 606 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 607 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 608 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 609 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 610 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 611 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 612 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 613 | # include <unistd.h> |
| 614 | #endif" |
| 615 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 616 | ac_subst_vars='SHELL |
| 617 | PATH_SEPARATOR |
| 618 | PACKAGE_NAME |
| 619 | PACKAGE_TARNAME |
| 620 | PACKAGE_VERSION |
| 621 | PACKAGE_STRING |
| 622 | PACKAGE_BUGREPORT |
| 623 | exec_prefix |
| 624 | prefix |
| 625 | program_transform_name |
| 626 | bindir |
| 627 | sbindir |
| 628 | libexecdir |
| 629 | datarootdir |
| 630 | datadir |
| 631 | sysconfdir |
| 632 | sharedstatedir |
| 633 | localstatedir |
| 634 | includedir |
| 635 | oldincludedir |
| 636 | docdir |
| 637 | infodir |
| 638 | htmldir |
| 639 | dvidir |
| 640 | pdfdir |
| 641 | psdir |
| 642 | libdir |
| 643 | localedir |
| 644 | mandir |
| 645 | DEFS |
| 646 | ECHO_C |
| 647 | ECHO_N |
| 648 | ECHO_T |
| 649 | LIBS |
| 650 | build_alias |
| 651 | host_alias |
| 652 | target_alias |
| 653 | E2FSPROGS_YEAR |
| 654 | E2FSPROGS_MONTH |
| 655 | E2FSPROGS_DAY |
| 656 | E2FSPROGS_VERSION |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 657 | E2FSPROGS_PKGVER |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 658 | build |
| 659 | build_cpu |
| 660 | build_vendor |
| 661 | build_os |
| 662 | host |
| 663 | host_cpu |
| 664 | host_vendor |
| 665 | host_os |
| 666 | CC |
| 667 | CFLAGS |
| 668 | LDFLAGS |
| 669 | CPPFLAGS |
| 670 | ac_ct_CC |
| 671 | EXEEXT |
| 672 | OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 673 | CPP |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 674 | LD |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 675 | GREP |
| 676 | EGREP |
| 677 | LINUX_INCLUDE |
| 678 | MAINTAINER_CMT |
| 679 | HTREE_CMT |
| 680 | ELF_CMT |
| 681 | BSDLIB_CMT |
| 682 | PROFILE_CMT |
| 683 | CHECKER_CMT |
| 684 | LIB_EXT |
| 685 | STATIC_LIB_EXT |
| 686 | PROFILED_LIB_EXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 687 | DEBUGFS_CMT |
| 688 | IMAGER_CMT |
| 689 | RESIZER_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 690 | FSCK_PROG |
| 691 | FSCK_MAN |
| 692 | E2INITRD_PROG |
| 693 | E2INITRD_MAN |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 694 | UUIDD_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 695 | GETTEXT_PACKAGE |
| 696 | PACKAGE |
| 697 | VERSION |
| 698 | SET_MAKE |
| 699 | INSTALL_PROGRAM |
| 700 | INSTALL_SCRIPT |
| 701 | INSTALL_DATA |
| 702 | MKINSTALLDIRS |
| 703 | USE_NLS |
| 704 | MSGFMT |
| 705 | GMSGFMT |
| 706 | XGETTEXT |
| 707 | MSGMERGE |
| 708 | RANLIB |
| 709 | ALLOCA |
| 710 | GLIBC21 |
| 711 | HAVE_POSIX_PRINTF |
| 712 | HAVE_ASPRINTF |
| 713 | HAVE_SNPRINTF |
| 714 | HAVE_WPRINTF |
| 715 | LIBICONV |
| 716 | LTLIBICONV |
| 717 | INTLBISON |
| 718 | BUILD_INCLUDED_LIBINTL |
| 719 | USE_INCLUDED_LIBINTL |
| 720 | CATOBJEXT |
| 721 | DATADIRNAME |
| 722 | INSTOBJEXT |
| 723 | GENCAT |
| 724 | INTLOBJS |
| 725 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 726 | INTLLIBS |
| 727 | LIBINTL |
| 728 | LTLIBINTL |
| 729 | POSUB |
| 730 | BINARY_TYPE |
| 731 | LN |
| 732 | LN_S |
| 733 | MV |
| 734 | CP |
| 735 | RM |
| 736 | CHMOD |
| 737 | AWK |
| 738 | SED |
| 739 | PERL |
| 740 | LDCONFIG |
| 741 | AR |
| 742 | STRIP |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 743 | MAKEINFO |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 744 | BUILD_CC |
| 745 | SIZEOF_SHORT |
| 746 | SIZEOF_INT |
| 747 | SIZEOF_LONG |
| 748 | SIZEOF_LONG_LONG |
| 749 | SOCKET_LIB |
| 750 | DLOPEN_LIB |
| 751 | UNI_DIFF_OPTS |
| 752 | LINUX_CMT |
| 753 | CYGWIN_CMT |
| 754 | UNIX_CMT |
| 755 | root_prefix |
| 756 | root_bindir |
| 757 | root_sbindir |
| 758 | root_libdir |
| 759 | root_sysconfdir |
| 760 | LDFLAG_STATIC |
| 761 | SS_DIR |
| 762 | ET_DIR |
| 763 | DO_TEST_SUITE |
| 764 | INTL_FLAGS |
| 765 | BUILD_CFLAGS |
| 766 | BUILD_LDFLAGS |
| 767 | LIBOBJS |
| 768 | LTLIBOBJS' |
| 769 | ac_subst_files='MCONFIG |
| 770 | MAKEFILE_ELF |
| 771 | MAKEFILE_BSDLIB |
| 772 | MAKEFILE_PROFILE |
| 773 | MAKEFILE_CHECKER |
| 774 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 775 | ASM_TYPES_HEADER |
| 776 | PUBLIC_CONFIG_HEADER' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 777 | ac_precious_vars='build_alias |
| 778 | host_alias |
| 779 | target_alias |
| 780 | CC |
| 781 | CFLAGS |
| 782 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 783 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 784 | CPPFLAGS |
Theodore Ts'o | 7515a74 | 2008-08-26 23:56:00 -0400 | [diff] [blame] | 785 | CPP' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 786 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 787 | |
| 788 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 789 | ac_init_help= |
| 790 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 791 | # The variables have the same names as the options, with |
| 792 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 793 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 794 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 795 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 796 | no_recursion= |
| 797 | prefix=NONE |
| 798 | program_prefix=NONE |
| 799 | program_suffix=NONE |
| 800 | program_transform_name=s,x,x, |
| 801 | silent= |
| 802 | site= |
| 803 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 804 | verbose= |
| 805 | x_includes=NONE |
| 806 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 807 | |
| 808 | # Installation directory options. |
| 809 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 810 | # and all the variables that are supposed to be based on exec_prefix |
| 811 | # by default will actually change. |
| 812 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 813 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 814 | bindir='${exec_prefix}/bin' |
| 815 | sbindir='${exec_prefix}/sbin' |
| 816 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 817 | datarootdir='${prefix}/share' |
| 818 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 819 | sysconfdir='${prefix}/etc' |
| 820 | sharedstatedir='${prefix}/com' |
| 821 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 822 | includedir='${prefix}/include' |
| 823 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 824 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 825 | infodir='${datarootdir}/info' |
| 826 | htmldir='${docdir}' |
| 827 | dvidir='${docdir}' |
| 828 | pdfdir='${docdir}' |
| 829 | psdir='${docdir}' |
| 830 | libdir='${exec_prefix}/lib' |
| 831 | localedir='${datarootdir}/locale' |
| 832 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 833 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 834 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 835 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 836 | for ac_option |
| 837 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 838 | # If the previous option needs an argument, assign it. |
| 839 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 840 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 841 | ac_prev= |
| 842 | continue |
| 843 | fi |
| 844 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 845 | case $ac_option in |
| 846 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 847 | *) ac_optarg=yes ;; |
| 848 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 849 | |
| 850 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 852 | case $ac_dashdash$ac_option in |
| 853 | --) |
| 854 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 855 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 856 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 857 | ac_prev=bindir ;; |
| 858 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 859 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 860 | |
| 861 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 862 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 863 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 864 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 865 | |
| 866 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 867 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 868 | ac_prev=cache_file ;; |
| 869 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 870 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 871 | cache_file=$ac_optarg ;; |
| 872 | |
| 873 | --config-cache | -C) |
| 874 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 876 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 877 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 878 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 879 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 881 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 882 | | --dataroo | --dataro | --datar) |
| 883 | ac_prev=datarootdir ;; |
| 884 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 885 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 886 | datarootdir=$ac_optarg ;; |
| 887 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 888 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 889 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 890 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 891 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 892 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 893 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 894 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 895 | eval enable_$ac_feature=no ;; |
| 896 | |
| 897 | -docdir | --docdir | --docdi | --doc | --do) |
| 898 | ac_prev=docdir ;; |
| 899 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 900 | docdir=$ac_optarg ;; |
| 901 | |
| 902 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 903 | ac_prev=dvidir ;; |
| 904 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 905 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 906 | |
| 907 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 908 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 910 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 911 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 912 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 913 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 914 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 915 | |
| 916 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 917 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 918 | | --exec | --exe | --ex) |
| 919 | ac_prev=exec_prefix ;; |
| 920 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 921 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 922 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 923 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 924 | |
| 925 | -gas | --gas | --ga | --g) |
| 926 | # Obsolete; use --with-gas. |
| 927 | with_gas=yes ;; |
| 928 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 929 | -help | --help | --hel | --he | -h) |
| 930 | ac_init_help=long ;; |
| 931 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 932 | ac_init_help=recursive ;; |
| 933 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 934 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 935 | |
| 936 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 937 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 938 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 939 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 940 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 941 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 942 | ac_prev=htmldir ;; |
| 943 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 944 | | --ht=*) |
| 945 | htmldir=$ac_optarg ;; |
| 946 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 947 | -includedir | --includedir | --includedi | --included | --include \ |
| 948 | | --includ | --inclu | --incl | --inc) |
| 949 | ac_prev=includedir ;; |
| 950 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 951 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 952 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 953 | |
| 954 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 955 | ac_prev=infodir ;; |
| 956 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 957 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 958 | |
| 959 | -libdir | --libdir | --libdi | --libd) |
| 960 | ac_prev=libdir ;; |
| 961 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 962 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 963 | |
| 964 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 965 | | --libexe | --libex | --libe) |
| 966 | ac_prev=libexecdir ;; |
| 967 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 968 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 969 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 970 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 971 | -localedir | --localedir | --localedi | --localed | --locale) |
| 972 | ac_prev=localedir ;; |
| 973 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 974 | localedir=$ac_optarg ;; |
| 975 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 976 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 977 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 978 | ac_prev=localstatedir ;; |
| 979 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 980 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 981 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 982 | |
| 983 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 984 | ac_prev=mandir ;; |
| 985 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 986 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 987 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 988 | -nfp | --nfp | --nf) |
| 989 | # Obsolete; use --without-fp. |
| 990 | with_fp=no ;; |
| 991 | |
| 992 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 993 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 994 | no_create=yes ;; |
| 995 | |
| 996 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 997 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 998 | no_recursion=yes ;; |
| 999 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1000 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1001 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1002 | | --oldin | --oldi | --old | --ol | --o) |
| 1003 | ac_prev=oldincludedir ;; |
| 1004 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1005 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1006 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1007 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1008 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1009 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1010 | ac_prev=prefix ;; |
| 1011 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1012 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1013 | |
| 1014 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1015 | | --program-pre | --program-pr | --program-p) |
| 1016 | ac_prev=program_prefix ;; |
| 1017 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1018 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1019 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1020 | |
| 1021 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1022 | | --program-suf | --program-su | --program-s) |
| 1023 | ac_prev=program_suffix ;; |
| 1024 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1025 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1026 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1027 | |
| 1028 | -program-transform-name | --program-transform-name \ |
| 1029 | | --program-transform-nam | --program-transform-na \ |
| 1030 | | --program-transform-n | --program-transform- \ |
| 1031 | | --program-transform | --program-transfor \ |
| 1032 | | --program-transfo | --program-transf \ |
| 1033 | | --program-trans | --program-tran \ |
| 1034 | | --progr-tra | --program-tr | --program-t) |
| 1035 | ac_prev=program_transform_name ;; |
| 1036 | -program-transform-name=* | --program-transform-name=* \ |
| 1037 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1038 | | --program-transform-n=* | --program-transform-=* \ |
| 1039 | | --program-transform=* | --program-transfor=* \ |
| 1040 | | --program-transfo=* | --program-transf=* \ |
| 1041 | | --program-trans=* | --program-tran=* \ |
| 1042 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1043 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1045 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1046 | ac_prev=pdfdir ;; |
| 1047 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1048 | pdfdir=$ac_optarg ;; |
| 1049 | |
| 1050 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1051 | ac_prev=psdir ;; |
| 1052 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1053 | psdir=$ac_optarg ;; |
| 1054 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1055 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1056 | | -silent | --silent | --silen | --sile | --sil) |
| 1057 | silent=yes ;; |
| 1058 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1059 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1060 | ac_prev=sbindir ;; |
| 1061 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1062 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1063 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1064 | |
| 1065 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1066 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1067 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1068 | | --sha | --sh) |
| 1069 | ac_prev=sharedstatedir ;; |
| 1070 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1071 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1072 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1073 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1074 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1075 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1076 | -site | --site | --sit) |
| 1077 | ac_prev=site ;; |
| 1078 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1079 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1080 | |
| 1081 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1082 | ac_prev=srcdir ;; |
| 1083 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1084 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1085 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1086 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1087 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1088 | ac_prev=sysconfdir ;; |
| 1089 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1090 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1091 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1092 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1093 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1095 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1096 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1097 | |
| 1098 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1099 | verbose=yes ;; |
| 1100 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1101 | -version | --version | --versio | --versi | --vers | -V) |
| 1102 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1103 | |
| 1104 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1105 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1106 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1107 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1108 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1109 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1110 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1111 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | |
| 1113 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1114 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1115 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1116 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1117 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1118 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1119 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1120 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1121 | |
| 1122 | --x) |
| 1123 | # Obsolete; use --with-x. |
| 1124 | with_x=yes ;; |
| 1125 | |
| 1126 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1127 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1128 | ac_prev=x_includes ;; |
| 1129 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1130 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1132 | |
| 1133 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1134 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1135 | ac_prev=x_libraries ;; |
| 1136 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1137 | | --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] | 1138 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1139 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1140 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1141 | Try \`$0 --help' for more information." >&2 |
| 1142 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1143 | ;; |
| 1144 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1145 | *=*) |
| 1146 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1147 | # Reject names that are not valid shell variable names. |
| 1148 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1149 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1150 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1151 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | export $ac_envvar ;; |
| 1153 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1154 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1155 | # FIXME: should be removed in autoconf 3.0. |
| 1156 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1157 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1158 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1159 | : ${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] | 1160 | ;; |
| 1161 | |
| 1162 | esac |
| 1163 | done |
| 1164 | |
| 1165 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1166 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1167 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1168 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1169 | fi |
| 1170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1171 | # Be sure to have absolute directory names. |
| 1172 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1173 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1174 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1175 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1176 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1177 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1178 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1179 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1180 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1182 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1183 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1184 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1185 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1186 | # There might be people who depend on the old broken behavior: `$host' |
| 1187 | # used to hold the argument of --host etc. |
| 1188 | # FIXME: To remove some day. |
| 1189 | build=$build_alias |
| 1190 | host=$host_alias |
| 1191 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1192 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1193 | # FIXME: To remove some day. |
| 1194 | if test "x$host_alias" != x; then |
| 1195 | if test "x$build_alias" = x; then |
| 1196 | cross_compiling=maybe |
| 1197 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1198 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1199 | elif test "x$build_alias" != "x$host_alias"; then |
| 1200 | cross_compiling=yes |
| 1201 | fi |
| 1202 | fi |
| 1203 | |
| 1204 | ac_tool_prefix= |
| 1205 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1206 | |
| 1207 | test "$silent" = yes && exec 6>/dev/null |
| 1208 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1209 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1210 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1211 | ac_ls_di=`ls -di .` && |
| 1212 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1213 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1214 | { (exit 1); exit 1; }; } |
| 1215 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1216 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1217 | { (exit 1); exit 1; }; } |
| 1218 | |
| 1219 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1220 | # Find the source files, if location was not specified. |
| 1221 | if test -z "$srcdir"; then |
| 1222 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1223 | # Try the directory containing this script, then the parent directory. |
| 1224 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1225 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1226 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1227 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1228 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1229 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1230 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1231 | s//\1/ |
| 1232 | q |
| 1233 | } |
| 1234 | /^X\(\/\/\)[^/].*/{ |
| 1235 | s//\1/ |
| 1236 | q |
| 1237 | } |
| 1238 | /^X\(\/\/\)$/{ |
| 1239 | s//\1/ |
| 1240 | q |
| 1241 | } |
| 1242 | /^X\(\/\).*/{ |
| 1243 | s//\1/ |
| 1244 | q |
| 1245 | } |
| 1246 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1247 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1248 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1249 | srcdir=.. |
| 1250 | fi |
| 1251 | else |
| 1252 | ac_srcdir_defaulted=no |
| 1253 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1254 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1255 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1256 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1257 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1258 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1259 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1260 | ac_abs_confdir=`( |
| 1261 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1262 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1263 | pwd)` |
| 1264 | # When building in place, set srcdir=. |
| 1265 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1266 | srcdir=. |
| 1267 | fi |
| 1268 | # Remove unnecessary trailing slashes from srcdir. |
| 1269 | # Double slashes in file names in object file debugging info |
| 1270 | # mess up M-x gdb in Emacs. |
| 1271 | case $srcdir in |
| 1272 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1273 | esac |
| 1274 | for ac_var in $ac_precious_vars; do |
| 1275 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1276 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1277 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1278 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1279 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1281 | # |
| 1282 | # Report the --help message. |
| 1283 | # |
| 1284 | if test "$ac_init_help" = "long"; then |
| 1285 | # Omit some internal or obsolete options to make the list less imposing. |
| 1286 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1287 | cat <<_ACEOF |
| 1288 | \`configure' configures this package to adapt to many kinds of systems. |
| 1289 | |
| 1290 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1291 | |
| 1292 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1293 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1294 | |
| 1295 | Defaults for the options are specified in brackets. |
| 1296 | |
| 1297 | Configuration: |
| 1298 | -h, --help display this help and exit |
| 1299 | --help=short display options specific to this package |
| 1300 | --help=recursive display the short help of all the included packages |
| 1301 | -V, --version display version information and exit |
| 1302 | -q, --quiet, --silent do not print \`checking...' messages |
| 1303 | --cache-file=FILE cache test results in FILE [disabled] |
| 1304 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1305 | -n, --no-create do not create output files |
| 1306 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1307 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1308 | Installation directories: |
| 1309 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1310 | [$ac_default_prefix] |
| 1311 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1312 | [PREFIX] |
| 1313 | |
| 1314 | By default, \`make install' will install all the files in |
| 1315 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1316 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1317 | for instance \`--prefix=\$HOME'. |
| 1318 | |
| 1319 | For better control, use the options below. |
| 1320 | |
| 1321 | Fine tuning of the installation directories: |
| 1322 | --bindir=DIR user executables [EPREFIX/bin] |
| 1323 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1324 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1325 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1326 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1327 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1328 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1329 | --includedir=DIR C header files [PREFIX/include] |
| 1330 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1331 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1332 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1333 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1334 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1335 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1336 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1337 | --htmldir=DIR html documentation [DOCDIR] |
| 1338 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1339 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1340 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1341 | _ACEOF |
| 1342 | |
| 1343 | cat <<\_ACEOF |
| 1344 | |
| 1345 | System types: |
| 1346 | --build=BUILD configure for building on BUILD [guessed] |
| 1347 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1348 | _ACEOF |
| 1349 | fi |
| 1350 | |
| 1351 | if test -n "$ac_init_help"; then |
| 1352 | |
| 1353 | cat <<\_ACEOF |
| 1354 | |
| 1355 | Optional Features: |
| 1356 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1357 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1358 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1359 | --enable-compression enable EXPERIMENTAL compression support |
| 1360 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1361 | --enable-elf-shlibs select ELF shared libraries |
| 1362 | --enable-bsd-shlibs select BSD shared libraries |
| 1363 | --enable-profile build profiling libraries |
| 1364 | --enable-checker build checker libraries |
| 1365 | --enable-jbd-debug enable journal debugging |
| 1366 | --enable-blkid-debug enable blkid debugging |
| 1367 | --enable-testio-debug enable the use of the test I/O manager for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1368 | --disable-debugfs disable support of debugfs program |
| 1369 | --disable-imager disable support of e2image program |
| 1370 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1371 | --enable-fsck build fsck wrapper program |
| 1372 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1373 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1374 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1375 | --disable-nls do not use Native Language Support |
| 1376 | --disable-rpath do not hardcode runtime library paths |
| 1377 | |
| 1378 | Optional Packages: |
| 1379 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1380 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1381 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1382 | --with-cc=COMPILER select compiler to use |
| 1383 | --with-linker=LINKER select linker to use |
| 1384 | --with-ccopts=CCOPTS select compiler command line options |
| 1385 | --with-ldopts=LDOPTS select linker command line options |
| 1386 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1387 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1388 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1389 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1390 | --with-included-gettext use the GNU gettext library included here |
| 1391 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1392 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1393 | |
| 1394 | Some influential environment variables: |
| 1395 | CC C compiler command |
| 1396 | CFLAGS C compiler flags |
| 1397 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1398 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1399 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1400 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1401 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1402 | CPP C preprocessor |
| 1403 | |
| 1404 | Use these variables to override the choices made by `configure' or to help |
| 1405 | it to find libraries and programs with nonstandard names/locations. |
| 1406 | |
| 1407 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1408 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1409 | fi |
| 1410 | |
| 1411 | if test "$ac_init_help" = "recursive"; then |
| 1412 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1413 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1414 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1415 | ac_builddir=. |
| 1416 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1417 | case "$ac_dir" in |
| 1418 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1419 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1420 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1421 | # A ".." for each directory in $ac_dir_suffix. |
| 1422 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1423 | case $ac_top_builddir_sub in |
| 1424 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1425 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1426 | esac ;; |
| 1427 | esac |
| 1428 | ac_abs_top_builddir=$ac_pwd |
| 1429 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1430 | # for backward compatibility: |
| 1431 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1432 | |
| 1433 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1434 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1435 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1436 | ac_top_srcdir=$ac_top_builddir_sub |
| 1437 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1438 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1439 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1440 | ac_top_srcdir=$srcdir |
| 1441 | ac_abs_top_srcdir=$srcdir ;; |
| 1442 | *) # Relative name. |
| 1443 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1444 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1445 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1446 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1447 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1449 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1450 | # Check for guested configure. |
| 1451 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1452 | echo && |
| 1453 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1454 | elif test -f "$ac_srcdir/configure"; then |
| 1455 | echo && |
| 1456 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1457 | else |
| 1458 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1459 | fi || ac_status=$? |
| 1460 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1461 | done |
| 1462 | fi |
| 1463 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1464 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1465 | if $ac_init_version; then |
| 1466 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1467 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1468 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1469 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1470 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1471 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1472 | This configure script is free software; the Free Software Foundation |
| 1473 | gives unlimited permission to copy, distribute and modify it. |
| 1474 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1475 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1477 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1478 | This file contains any messages produced by compilers while |
| 1479 | running configure, to aid debugging if configure makes a mistake. |
| 1480 | |
| 1481 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1482 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1483 | |
| 1484 | $ $0 $@ |
| 1485 | |
| 1486 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1487 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1488 | { |
| 1489 | cat <<_ASUNAME |
| 1490 | ## --------- ## |
| 1491 | ## Platform. ## |
| 1492 | ## --------- ## |
| 1493 | |
| 1494 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1495 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1496 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1497 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1498 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1499 | |
| 1500 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1501 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1502 | |
| 1503 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1504 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1505 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1506 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1507 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1508 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1509 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1510 | |
| 1511 | _ASUNAME |
| 1512 | |
| 1513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1514 | for as_dir in $PATH |
| 1515 | do |
| 1516 | IFS=$as_save_IFS |
| 1517 | test -z "$as_dir" && as_dir=. |
| 1518 | echo "PATH: $as_dir" |
| 1519 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1520 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1521 | |
| 1522 | } >&5 |
| 1523 | |
| 1524 | cat >&5 <<_ACEOF |
| 1525 | |
| 1526 | |
| 1527 | ## ----------- ## |
| 1528 | ## Core tests. ## |
| 1529 | ## ----------- ## |
| 1530 | |
| 1531 | _ACEOF |
| 1532 | |
| 1533 | |
| 1534 | # Keep a trace of the command line. |
| 1535 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1536 | # Strip out --silent because we don't want to record it for future runs. |
| 1537 | # Also quote any args containing shell meta-characters. |
| 1538 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1539 | ac_configure_args= |
| 1540 | ac_configure_args0= |
| 1541 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | ac_must_keep_next=false |
| 1543 | for ac_pass in 1 2 |
| 1544 | do |
| 1545 | for ac_arg |
| 1546 | do |
| 1547 | case $ac_arg in |
| 1548 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1549 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1550 | | -silent | --silent | --silen | --sile | --sil) |
| 1551 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1552 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1553 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1554 | esac |
| 1555 | case $ac_pass in |
| 1556 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1557 | 2) |
| 1558 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1559 | if test $ac_must_keep_next = true; then |
| 1560 | ac_must_keep_next=false # Got value, back to normal. |
| 1561 | else |
| 1562 | case $ac_arg in |
| 1563 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1564 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1565 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1566 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1567 | case "$ac_configure_args0 " in |
| 1568 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1569 | esac |
| 1570 | ;; |
| 1571 | -* ) ac_must_keep_next=true ;; |
| 1572 | esac |
| 1573 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1574 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1575 | ;; |
| 1576 | esac |
| 1577 | done |
| 1578 | done |
| 1579 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1580 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1581 | |
| 1582 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1583 | # config.log. We remove comments because anyway the quotes in there |
| 1584 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1585 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1586 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1587 | trap 'exit_status=$? |
| 1588 | # Save into config.log some information that might help in debugging. |
| 1589 | { |
| 1590 | echo |
| 1591 | |
| 1592 | cat <<\_ASBOX |
| 1593 | ## ---------------- ## |
| 1594 | ## Cache variables. ## |
| 1595 | ## ---------------- ## |
| 1596 | _ASBOX |
| 1597 | echo |
| 1598 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1599 | ( |
| 1600 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1601 | eval ac_val=\$$ac_var |
| 1602 | case $ac_val in #( |
| 1603 | *${as_nl}*) |
| 1604 | case $ac_var in #( |
| 1605 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1606 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1607 | esac |
| 1608 | case $ac_var in #( |
| 1609 | _ | IFS | as_nl) ;; #( |
| 1610 | *) $as_unset $ac_var ;; |
| 1611 | esac ;; |
| 1612 | esac |
| 1613 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1614 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1615 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1616 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1617 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1618 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1619 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1620 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1621 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1622 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1623 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1624 | esac | |
| 1625 | sort |
| 1626 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1627 | echo |
| 1628 | |
| 1629 | cat <<\_ASBOX |
| 1630 | ## ----------------- ## |
| 1631 | ## Output variables. ## |
| 1632 | ## ----------------- ## |
| 1633 | _ASBOX |
| 1634 | echo |
| 1635 | for ac_var in $ac_subst_vars |
| 1636 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1637 | eval ac_val=\$$ac_var |
| 1638 | case $ac_val in |
| 1639 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1640 | esac |
| 1641 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1642 | done | sort |
| 1643 | echo |
| 1644 | |
| 1645 | if test -n "$ac_subst_files"; then |
| 1646 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1647 | ## ------------------- ## |
| 1648 | ## File substitutions. ## |
| 1649 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1650 | _ASBOX |
| 1651 | echo |
| 1652 | for ac_var in $ac_subst_files |
| 1653 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1654 | eval ac_val=\$$ac_var |
| 1655 | case $ac_val in |
| 1656 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1657 | esac |
| 1658 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1659 | done | sort |
| 1660 | echo |
| 1661 | fi |
| 1662 | |
| 1663 | if test -s confdefs.h; then |
| 1664 | cat <<\_ASBOX |
| 1665 | ## ----------- ## |
| 1666 | ## confdefs.h. ## |
| 1667 | ## ----------- ## |
| 1668 | _ASBOX |
| 1669 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1670 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1671 | echo |
| 1672 | fi |
| 1673 | test "$ac_signal" != 0 && |
| 1674 | echo "$as_me: caught signal $ac_signal" |
| 1675 | echo "$as_me: exit $exit_status" |
| 1676 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1677 | rm -f core *.core core.conftest.* && |
| 1678 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1679 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1680 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1681 | for ac_signal in 1 2 13 15; do |
| 1682 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1683 | done |
| 1684 | ac_signal=0 |
| 1685 | |
| 1686 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1687 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1688 | |
| 1689 | # Predefined preprocessor variables. |
| 1690 | |
| 1691 | cat >>confdefs.h <<_ACEOF |
| 1692 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1693 | _ACEOF |
| 1694 | |
| 1695 | |
| 1696 | cat >>confdefs.h <<_ACEOF |
| 1697 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1698 | _ACEOF |
| 1699 | |
| 1700 | |
| 1701 | cat >>confdefs.h <<_ACEOF |
| 1702 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1703 | _ACEOF |
| 1704 | |
| 1705 | |
| 1706 | cat >>confdefs.h <<_ACEOF |
| 1707 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1708 | _ACEOF |
| 1709 | |
| 1710 | |
| 1711 | cat >>confdefs.h <<_ACEOF |
| 1712 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1713 | _ACEOF |
| 1714 | |
| 1715 | |
| 1716 | # 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] | 1717 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1718 | if test -n "$CONFIG_SITE"; then |
| 1719 | set x "$CONFIG_SITE" |
| 1720 | elif test "x$prefix" != xNONE; then |
| 1721 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1722 | else |
| 1723 | set x "$ac_default_prefix/share/config.site" \ |
| 1724 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1725 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1726 | shift |
| 1727 | for ac_site_file |
| 1728 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1729 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1730 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1731 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1732 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1733 | . "$ac_site_file" |
| 1734 | fi |
| 1735 | done |
| 1736 | |
| 1737 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1738 | # Some versions of bash will fail to source /dev/null (special |
| 1739 | # files actually), so we avoid doing that. |
| 1740 | if test -f "$cache_file"; then |
| 1741 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1742 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1743 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1744 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1745 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1746 | esac |
| 1747 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1748 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1749 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1750 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1751 | >$cache_file |
| 1752 | fi |
| 1753 | |
| 1754 | # Check that the precious variables saved in the cache have kept the same |
| 1755 | # value. |
| 1756 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1757 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1758 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1759 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1760 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1761 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1762 | case $ac_old_set,$ac_new_set in |
| 1763 | set,) |
| 1764 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1765 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1766 | ac_cache_corrupted=: ;; |
| 1767 | ,set) |
| 1768 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1769 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1770 | ac_cache_corrupted=: ;; |
| 1771 | ,);; |
| 1772 | *) |
| 1773 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1774 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1775 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1776 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1777 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1778 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1779 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1780 | ac_cache_corrupted=: |
| 1781 | fi;; |
| 1782 | esac |
| 1783 | # Pass precious variables to config.status. |
| 1784 | if test "$ac_new_set" = set; then |
| 1785 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1786 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1787 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1788 | esac |
| 1789 | case " $ac_configure_args " in |
| 1790 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1791 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1792 | esac |
| 1793 | fi |
| 1794 | done |
| 1795 | if $ac_cache_corrupted; then |
| 1796 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1797 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1798 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1799 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1800 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1801 | fi |
| 1802 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1803 | |
| 1804 | |
| 1805 | |
| 1806 | |
| 1807 | |
| 1808 | |
| 1809 | |
| 1810 | |
| 1811 | |
| 1812 | |
| 1813 | |
| 1814 | |
| 1815 | |
| 1816 | |
| 1817 | |
| 1818 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1819 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1820 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1824 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1825 | |
| 1826 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1827 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1828 | for ac_dir in config "$srcdir"/config; do |
| 1829 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1830 | ac_aux_dir=$ac_dir |
| 1831 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1832 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1833 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1834 | ac_aux_dir=$ac_dir |
| 1835 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1836 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1837 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1838 | ac_aux_dir=$ac_dir |
| 1839 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1840 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1841 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1842 | done |
| 1843 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1844 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1845 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1846 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1847 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1848 | |
| 1849 | # These three variables are undocumented and unsupported, |
| 1850 | # and are intended to be withdrawn in a future Autoconf release. |
| 1851 | # They can cause serious problems if a builder's source tree is in a directory |
| 1852 | # whose full name contains unusual characters. |
| 1853 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1854 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1855 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1856 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1857 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1858 | MCONFIG=./MCONFIG |
| 1859 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1860 | BINARY_TYPE=bin |
| 1861 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1862 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1863 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1864 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1865 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1866 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1867 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1868 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1869 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1870 | E2FSPROGS_YEAR=$YEAR |
| 1871 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1872 | E2FSPROGS_YEAR=19$YEAR |
| 1873 | else |
| 1874 | E2FSPROGS_YEAR=20$YEAR |
| 1875 | fi |
| 1876 | |
| 1877 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1878 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1879 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1880 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1881 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1882 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1883 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1884 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1885 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1886 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1887 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1888 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1889 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1890 | *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
| 1891 | echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1892 | esac |
| 1893 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1894 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1895 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1896 | |
| 1897 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1898 | |
| 1899 | case $E2FSPROGS_VERSION in |
| 1900 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 1901 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1902 | ;; |
| 1903 | *) |
| 1904 | E2FSPROGS_PKGVER="$base_ver" |
| 1905 | ;; |
| 1906 | esac |
| 1907 | |
| 1908 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1909 | { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
| 1910 | echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
| 1911 | { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
| 1912 | echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1913 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1914 | |
| 1915 | |
| 1916 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1917 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1918 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1919 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1920 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1921 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1922 | { (exit 1); exit 1; }; } |
| 1923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1924 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1925 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1926 | if test "${ac_cv_build+set}" = set; then |
| 1927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1928 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1929 | ac_build_alias=$build_alias |
| 1930 | test "x$ac_build_alias" = x && |
| 1931 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1932 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1933 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1934 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1935 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1936 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1937 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1938 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1939 | { (exit 1); exit 1; }; } |
| 1940 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1941 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1942 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1943 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1944 | case $ac_cv_build in |
| 1945 | *-*-*) ;; |
| 1946 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1947 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1948 | { (exit 1); exit 1; }; };; |
| 1949 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1950 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1951 | ac_save_IFS=$IFS; IFS='-' |
| 1952 | set x $ac_cv_build |
| 1953 | shift |
| 1954 | build_cpu=$1 |
| 1955 | build_vendor=$2 |
| 1956 | shift; shift |
| 1957 | # Remember, the first character of IFS is used to create $*, |
| 1958 | # except with old shells: |
| 1959 | build_os=$* |
| 1960 | IFS=$ac_save_IFS |
| 1961 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1962 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1964 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1965 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1966 | if test "${ac_cv_host+set}" = set; then |
| 1967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1968 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1969 | if test "x$host_alias" = x; then |
| 1970 | ac_cv_host=$ac_cv_build |
| 1971 | else |
| 1972 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1973 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1974 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1975 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1976 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1977 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1978 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1979 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1980 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1981 | case $ac_cv_host in |
| 1982 | *-*-*) ;; |
| 1983 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1984 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 1985 | { (exit 1); exit 1; }; };; |
| 1986 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1987 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1988 | ac_save_IFS=$IFS; IFS='-' |
| 1989 | set x $ac_cv_host |
| 1990 | shift |
| 1991 | host_cpu=$1 |
| 1992 | host_vendor=$2 |
| 1993 | shift; shift |
| 1994 | # Remember, the first character of IFS is used to create $*, |
| 1995 | # except with old shells: |
| 1996 | host_os=$* |
| 1997 | IFS=$ac_save_IFS |
| 1998 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1999 | |
| 2000 | |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2001 | WITH_DIET_LIBC= |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2003 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2004 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2005 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2006 | WITH_DIET_LIBC=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2007 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2008 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2009 | fi |
| 2010 | |
| 2011 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2012 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2013 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2014 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2015 | CC=$withval |
| 2016 | else |
| 2017 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2018 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2019 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2020 | fi |
| 2021 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2022 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2023 | ac_ext=c |
| 2024 | ac_cpp='$CPP $CPPFLAGS' |
| 2025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2028 | if test -n "$ac_tool_prefix"; then |
| 2029 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2030 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2033 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2035 | else |
| 2036 | if test -n "$CC"; then |
| 2037 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2038 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2040 | for as_dir in $PATH |
| 2041 | do |
| 2042 | IFS=$as_save_IFS |
| 2043 | test -z "$as_dir" && as_dir=. |
| 2044 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2045 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2046 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2047 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2048 | break 2 |
| 2049 | fi |
| 2050 | done |
| 2051 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2052 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2053 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2054 | fi |
| 2055 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2056 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2057 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2058 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2059 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2060 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2061 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2062 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2063 | fi |
| 2064 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2065 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2066 | fi |
| 2067 | if test -z "$ac_cv_prog_CC"; then |
| 2068 | ac_ct_CC=$CC |
| 2069 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2070 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2071 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2072 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2073 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2074 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2075 | else |
| 2076 | if test -n "$ac_ct_CC"; then |
| 2077 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2078 | else |
| 2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2080 | for as_dir in $PATH |
| 2081 | do |
| 2082 | IFS=$as_save_IFS |
| 2083 | test -z "$as_dir" && as_dir=. |
| 2084 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2085 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2086 | ac_cv_prog_ac_ct_CC="gcc" |
| 2087 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2088 | break 2 |
| 2089 | fi |
| 2090 | done |
| 2091 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2092 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2093 | |
| 2094 | fi |
| 2095 | fi |
| 2096 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2097 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2098 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2099 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2100 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2101 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2102 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2103 | fi |
| 2104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2105 | if test "x$ac_ct_CC" = x; then |
| 2106 | CC="" |
| 2107 | else |
| 2108 | case $cross_compiling:$ac_tool_warned in |
| 2109 | yes:) |
| 2110 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2111 | whose name does not start with the host triplet. If you think this |
| 2112 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2113 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2114 | whose name does not start with the host triplet. If you think this |
| 2115 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2116 | ac_tool_warned=yes ;; |
| 2117 | esac |
| 2118 | CC=$ac_ct_CC |
| 2119 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2120 | else |
| 2121 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2122 | fi |
| 2123 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2124 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2125 | if test -n "$ac_tool_prefix"; then |
| 2126 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2127 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2128 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2130 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2132 | else |
| 2133 | if test -n "$CC"; then |
| 2134 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2135 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2137 | for as_dir in $PATH |
| 2138 | do |
| 2139 | IFS=$as_save_IFS |
| 2140 | test -z "$as_dir" && as_dir=. |
| 2141 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2143 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2145 | break 2 |
| 2146 | fi |
| 2147 | done |
| 2148 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2149 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2150 | |
| 2151 | fi |
| 2152 | fi |
| 2153 | CC=$ac_cv_prog_CC |
| 2154 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2155 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2156 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2157 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2158 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2159 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2160 | fi |
| 2161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2162 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2163 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2164 | fi |
| 2165 | if test -z "$CC"; then |
| 2166 | # Extract the first word of "cc", so it can be a program name with args. |
| 2167 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2168 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2170 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2172 | else |
| 2173 | if test -n "$CC"; then |
| 2174 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2175 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2176 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2178 | for as_dir in $PATH |
| 2179 | do |
| 2180 | IFS=$as_save_IFS |
| 2181 | test -z "$as_dir" && as_dir=. |
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2185 | ac_prog_rejected=yes |
| 2186 | continue |
| 2187 | fi |
| 2188 | ac_cv_prog_CC="cc" |
| 2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2190 | break 2 |
| 2191 | fi |
| 2192 | done |
| 2193 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2194 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2195 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2196 | if test $ac_prog_rejected = yes; then |
| 2197 | # We found a bogon in the path, so make sure we never use it. |
| 2198 | set dummy $ac_cv_prog_CC |
| 2199 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2200 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2201 | # We chose a different compiler from the bogus one. |
| 2202 | # However, it has the same basename, so the bogon will be chosen |
| 2203 | # first if we set CC to just the basename; use the full file name. |
| 2204 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2205 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2206 | fi |
| 2207 | fi |
| 2208 | fi |
| 2209 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2210 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2211 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2212 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2213 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2214 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2215 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2216 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2217 | fi |
| 2218 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2219 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2220 | fi |
| 2221 | if test -z "$CC"; then |
| 2222 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2223 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2224 | do |
| 2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2227 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2229 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2231 | else |
| 2232 | if test -n "$CC"; then |
| 2233 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2234 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2236 | for as_dir in $PATH |
| 2237 | do |
| 2238 | IFS=$as_save_IFS |
| 2239 | test -z "$as_dir" && as_dir=. |
| 2240 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2244 | break 2 |
| 2245 | fi |
| 2246 | done |
| 2247 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2248 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2249 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2250 | fi |
| 2251 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2252 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2253 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2254 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2255 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2256 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2257 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2258 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2259 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2260 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2261 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2262 | test -n "$CC" && break |
| 2263 | done |
| 2264 | fi |
| 2265 | if test -z "$CC"; then |
| 2266 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2267 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2268 | do |
| 2269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2270 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2271 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2273 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2275 | else |
| 2276 | if test -n "$ac_ct_CC"; then |
| 2277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2278 | else |
| 2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2280 | for as_dir in $PATH |
| 2281 | do |
| 2282 | IFS=$as_save_IFS |
| 2283 | test -z "$as_dir" && as_dir=. |
| 2284 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2285 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2286 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2288 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2289 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2290 | done |
| 2291 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2292 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2293 | |
| 2294 | fi |
| 2295 | fi |
| 2296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2297 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2298 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2299 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2300 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2301 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2302 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2303 | fi |
| 2304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2305 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2306 | test -n "$ac_ct_CC" && break |
| 2307 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2309 | if test "x$ac_ct_CC" = x; then |
| 2310 | CC="" |
| 2311 | else |
| 2312 | case $cross_compiling:$ac_tool_warned in |
| 2313 | yes:) |
| 2314 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2315 | whose name does not start with the host triplet. If you think this |
| 2316 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2317 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2318 | whose name does not start with the host triplet. If you think this |
| 2319 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2320 | ac_tool_warned=yes ;; |
| 2321 | esac |
| 2322 | CC=$ac_ct_CC |
| 2323 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2324 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2325 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2326 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2327 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2328 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2329 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2330 | See \`config.log' for more details." >&5 |
| 2331 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2332 | See \`config.log' for more details." >&2;} |
| 2333 | { (exit 1); exit 1; }; } |
| 2334 | |
| 2335 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2336 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2337 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2338 | { (ac_try="$ac_compiler --version >&5" |
| 2339 | case "(($ac_try" in |
| 2340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2341 | *) ac_try_echo=$ac_try;; |
| 2342 | esac |
| 2343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2344 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2345 | ac_status=$? |
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2347 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2348 | { (ac_try="$ac_compiler -v >&5" |
| 2349 | case "(($ac_try" in |
| 2350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2351 | *) ac_try_echo=$ac_try;; |
| 2352 | esac |
| 2353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2354 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2357 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2358 | { (ac_try="$ac_compiler -V >&5" |
| 2359 | case "(($ac_try" in |
| 2360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2361 | *) ac_try_echo=$ac_try;; |
| 2362 | esac |
| 2363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2364 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2365 | ac_status=$? |
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2367 | (exit $ac_status); } |
| 2368 | |
| 2369 | cat >conftest.$ac_ext <<_ACEOF |
| 2370 | /* confdefs.h. */ |
| 2371 | _ACEOF |
| 2372 | cat confdefs.h >>conftest.$ac_ext |
| 2373 | cat >>conftest.$ac_ext <<_ACEOF |
| 2374 | /* end confdefs.h. */ |
| 2375 | |
| 2376 | int |
| 2377 | main () |
| 2378 | { |
| 2379 | |
| 2380 | ; |
| 2381 | return 0; |
| 2382 | } |
| 2383 | _ACEOF |
| 2384 | ac_clean_files_save=$ac_clean_files |
| 2385 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2386 | # Try to create an executable without -o first, disregard a.out. |
| 2387 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2388 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2389 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2390 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2391 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2392 | # |
| 2393 | # List of possible output files, starting from the most likely. |
| 2394 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2395 | # only as a last resort. b.out is created by i960 compilers. |
| 2396 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2397 | # |
| 2398 | # The IRIX 6 linker writes into existing files which may not be |
| 2399 | # executable, retaining their permissions. Remove them first so a |
| 2400 | # subsequent execution test works. |
| 2401 | ac_rmfiles= |
| 2402 | for ac_file in $ac_files |
| 2403 | do |
| 2404 | case $ac_file in |
| 2405 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2406 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2407 | esac |
| 2408 | done |
| 2409 | rm -f $ac_rmfiles |
| 2410 | |
| 2411 | if { (ac_try="$ac_link_default" |
| 2412 | case "(($ac_try" in |
| 2413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2414 | *) ac_try_echo=$ac_try;; |
| 2415 | esac |
| 2416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2417 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2418 | ac_status=$? |
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2420 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2421 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2422 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2423 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2424 | # so that the user can short-circuit this test for compilers unknown to |
| 2425 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2426 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2427 | do |
| 2428 | test -f "$ac_file" || continue |
| 2429 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2430 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2431 | ;; |
| 2432 | [ab].out ) |
| 2433 | # We found the default executable, but exeext='' is most |
| 2434 | # certainly right. |
| 2435 | break;; |
| 2436 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2438 | then :; else |
| 2439 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2440 | fi |
| 2441 | # We set ac_cv_exeext here because the later test for it is not |
| 2442 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2443 | # argument, so we may need to know it at that point already. |
| 2444 | # Even if this section looks crufty: it has the advantage of |
| 2445 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2446 | break;; |
| 2447 | * ) |
| 2448 | break;; |
| 2449 | esac |
| 2450 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2451 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2453 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2454 | ac_file='' |
| 2455 | fi |
| 2456 | |
| 2457 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2458 | echo "${ECHO_T}$ac_file" >&6; } |
| 2459 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2460 | echo "$as_me: failed program was:" >&5 |
| 2461 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2462 | |
| 2463 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2464 | See \`config.log' for more details." >&5 |
| 2465 | echo "$as_me: error: C compiler cannot create executables |
| 2466 | See \`config.log' for more details." >&2;} |
| 2467 | { (exit 77); exit 77; }; } |
| 2468 | fi |
| 2469 | |
| 2470 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2471 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2472 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2473 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2474 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2475 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2476 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2477 | # If not cross compiling, check that we can run a simple program. |
| 2478 | if test "$cross_compiling" != yes; then |
| 2479 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2480 | { (case "(($ac_try" in |
| 2481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2482 | *) ac_try_echo=$ac_try;; |
| 2483 | esac |
| 2484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2485 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | ac_status=$? |
| 2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2488 | (exit $ac_status); }; }; then |
| 2489 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2491 | if test "$cross_compiling" = maybe; then |
| 2492 | cross_compiling=yes |
| 2493 | else |
| 2494 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2495 | If you meant to cross compile, use \`--host'. |
| 2496 | See \`config.log' for more details." >&5 |
| 2497 | echo "$as_me: error: cannot run C compiled programs. |
| 2498 | If you meant to cross compile, use \`--host'. |
| 2499 | See \`config.log' for more details." >&2;} |
| 2500 | { (exit 1); exit 1; }; } |
| 2501 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2502 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2503 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2504 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2505 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2506 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2507 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2508 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2509 | # Check that the compiler produces executables we can run. If not, either |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2510 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2511 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2512 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2513 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2514 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2516 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2517 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2518 | if { (ac_try="$ac_link" |
| 2519 | case "(($ac_try" in |
| 2520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2521 | *) ac_try_echo=$ac_try;; |
| 2522 | esac |
| 2523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2524 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2525 | ac_status=$? |
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2527 | (exit $ac_status); }; then |
| 2528 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2529 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2530 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2531 | # `rm'. |
| 2532 | for ac_file in conftest.exe conftest conftest.*; do |
| 2533 | test -f "$ac_file" || continue |
| 2534 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2535 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2536 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2537 | break;; |
| 2538 | * ) break;; |
| 2539 | esac |
| 2540 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2542 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2543 | See \`config.log' for more details." >&5 |
| 2544 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2545 | See \`config.log' for more details." >&2;} |
| 2546 | { (exit 1); exit 1; }; } |
| 2547 | fi |
| 2548 | |
| 2549 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2551 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | |
| 2553 | rm -f conftest.$ac_ext |
| 2554 | EXEEXT=$ac_cv_exeext |
| 2555 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2556 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2557 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2558 | if test "${ac_cv_objext+set}" = set; then |
| 2559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2560 | else |
| 2561 | cat >conftest.$ac_ext <<_ACEOF |
| 2562 | /* confdefs.h. */ |
| 2563 | _ACEOF |
| 2564 | cat confdefs.h >>conftest.$ac_ext |
| 2565 | cat >>conftest.$ac_ext <<_ACEOF |
| 2566 | /* end confdefs.h. */ |
| 2567 | |
| 2568 | int |
| 2569 | main () |
| 2570 | { |
| 2571 | |
| 2572 | ; |
| 2573 | return 0; |
| 2574 | } |
| 2575 | _ACEOF |
| 2576 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2577 | if { (ac_try="$ac_compile" |
| 2578 | case "(($ac_try" in |
| 2579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2580 | *) ac_try_echo=$ac_try;; |
| 2581 | esac |
| 2582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2583 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2584 | ac_status=$? |
| 2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2586 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2587 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2588 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2589 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2590 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2591 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2592 | break;; |
| 2593 | esac |
| 2594 | done |
| 2595 | else |
| 2596 | echo "$as_me: failed program was:" >&5 |
| 2597 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2598 | |
| 2599 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2600 | See \`config.log' for more details." >&5 |
| 2601 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2602 | See \`config.log' for more details." >&2;} |
| 2603 | { (exit 1); exit 1; }; } |
| 2604 | fi |
| 2605 | |
| 2606 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2608 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2609 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2610 | OBJEXT=$ac_cv_objext |
| 2611 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2612 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2613 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2614 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2616 | else |
| 2617 | cat >conftest.$ac_ext <<_ACEOF |
| 2618 | /* confdefs.h. */ |
| 2619 | _ACEOF |
| 2620 | cat confdefs.h >>conftest.$ac_ext |
| 2621 | cat >>conftest.$ac_ext <<_ACEOF |
| 2622 | /* end confdefs.h. */ |
| 2623 | |
| 2624 | int |
| 2625 | main () |
| 2626 | { |
| 2627 | #ifndef __GNUC__ |
| 2628 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2629 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2630 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2631 | ; |
| 2632 | return 0; |
| 2633 | } |
| 2634 | _ACEOF |
| 2635 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2636 | if { (ac_try="$ac_compile" |
| 2637 | case "(($ac_try" in |
| 2638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2639 | *) ac_try_echo=$ac_try;; |
| 2640 | esac |
| 2641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2642 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2643 | ac_status=$? |
| 2644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2645 | rm -f conftest.er1 |
| 2646 | cat conftest.err >&5 |
| 2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2648 | (exit $ac_status); } && { |
| 2649 | test -z "$ac_c_werror_flag" || |
| 2650 | test ! -s conftest.err |
| 2651 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2652 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2653 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2654 | echo "$as_me: failed program was:" >&5 |
| 2655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2657 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2658 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2659 | |
| 2660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2661 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2664 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2665 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2666 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2667 | ac_test_CFLAGS=${CFLAGS+set} |
| 2668 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2669 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2670 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2671 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2673 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2674 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2675 | ac_c_werror_flag=yes |
| 2676 | ac_cv_prog_cc_g=no |
| 2677 | CFLAGS="-g" |
| 2678 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2679 | /* confdefs.h. */ |
| 2680 | _ACEOF |
| 2681 | cat confdefs.h >>conftest.$ac_ext |
| 2682 | cat >>conftest.$ac_ext <<_ACEOF |
| 2683 | /* end confdefs.h. */ |
| 2684 | |
| 2685 | int |
| 2686 | main () |
| 2687 | { |
| 2688 | |
| 2689 | ; |
| 2690 | return 0; |
| 2691 | } |
| 2692 | _ACEOF |
| 2693 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2694 | if { (ac_try="$ac_compile" |
| 2695 | case "(($ac_try" in |
| 2696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2697 | *) ac_try_echo=$ac_try;; |
| 2698 | esac |
| 2699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2700 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2701 | ac_status=$? |
| 2702 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2703 | rm -f conftest.er1 |
| 2704 | cat conftest.err >&5 |
| 2705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2706 | (exit $ac_status); } && { |
| 2707 | test -z "$ac_c_werror_flag" || |
| 2708 | test ! -s conftest.err |
| 2709 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2710 | ac_cv_prog_cc_g=yes |
| 2711 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2712 | echo "$as_me: failed program was:" >&5 |
| 2713 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2714 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2715 | CFLAGS="" |
| 2716 | cat >conftest.$ac_ext <<_ACEOF |
| 2717 | /* confdefs.h. */ |
| 2718 | _ACEOF |
| 2719 | cat confdefs.h >>conftest.$ac_ext |
| 2720 | cat >>conftest.$ac_ext <<_ACEOF |
| 2721 | /* end confdefs.h. */ |
| 2722 | |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | |
| 2727 | ; |
| 2728 | return 0; |
| 2729 | } |
| 2730 | _ACEOF |
| 2731 | rm -f conftest.$ac_objext |
| 2732 | if { (ac_try="$ac_compile" |
| 2733 | case "(($ac_try" in |
| 2734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2735 | *) ac_try_echo=$ac_try;; |
| 2736 | esac |
| 2737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2738 | (eval "$ac_compile") 2>conftest.er1 |
| 2739 | ac_status=$? |
| 2740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2741 | rm -f conftest.er1 |
| 2742 | cat conftest.err >&5 |
| 2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2744 | (exit $ac_status); } && { |
| 2745 | test -z "$ac_c_werror_flag" || |
| 2746 | test ! -s conftest.err |
| 2747 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2748 | : |
| 2749 | else |
| 2750 | echo "$as_me: failed program was:" >&5 |
| 2751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2752 | |
| 2753 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2754 | CFLAGS="-g" |
| 2755 | cat >conftest.$ac_ext <<_ACEOF |
| 2756 | /* confdefs.h. */ |
| 2757 | _ACEOF |
| 2758 | cat confdefs.h >>conftest.$ac_ext |
| 2759 | cat >>conftest.$ac_ext <<_ACEOF |
| 2760 | /* end confdefs.h. */ |
| 2761 | |
| 2762 | int |
| 2763 | main () |
| 2764 | { |
| 2765 | |
| 2766 | ; |
| 2767 | return 0; |
| 2768 | } |
| 2769 | _ACEOF |
| 2770 | rm -f conftest.$ac_objext |
| 2771 | if { (ac_try="$ac_compile" |
| 2772 | case "(($ac_try" in |
| 2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2774 | *) ac_try_echo=$ac_try;; |
| 2775 | esac |
| 2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2777 | (eval "$ac_compile") 2>conftest.er1 |
| 2778 | ac_status=$? |
| 2779 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2780 | rm -f conftest.er1 |
| 2781 | cat conftest.err >&5 |
| 2782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2783 | (exit $ac_status); } && { |
| 2784 | test -z "$ac_c_werror_flag" || |
| 2785 | test ! -s conftest.err |
| 2786 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2787 | ac_cv_prog_cc_g=yes |
| 2788 | else |
| 2789 | echo "$as_me: failed program was:" >&5 |
| 2790 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2791 | |
| 2792 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2793 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2794 | |
| 2795 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2796 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2797 | |
| 2798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2799 | fi |
| 2800 | |
| 2801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2802 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2803 | fi |
| 2804 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2805 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2806 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2807 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2808 | elif test $ac_cv_prog_cc_g = yes; then |
| 2809 | if test "$GCC" = yes; then |
| 2810 | CFLAGS="-g -O2" |
| 2811 | else |
| 2812 | CFLAGS="-g" |
| 2813 | fi |
| 2814 | else |
| 2815 | if test "$GCC" = yes; then |
| 2816 | CFLAGS="-O2" |
| 2817 | else |
| 2818 | CFLAGS= |
| 2819 | fi |
| 2820 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2821 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2822 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2823 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2825 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2826 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2827 | ac_save_CC=$CC |
| 2828 | cat >conftest.$ac_ext <<_ACEOF |
| 2829 | /* confdefs.h. */ |
| 2830 | _ACEOF |
| 2831 | cat confdefs.h >>conftest.$ac_ext |
| 2832 | cat >>conftest.$ac_ext <<_ACEOF |
| 2833 | /* end confdefs.h. */ |
| 2834 | #include <stdarg.h> |
| 2835 | #include <stdio.h> |
| 2836 | #include <sys/types.h> |
| 2837 | #include <sys/stat.h> |
| 2838 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2839 | struct buf { int x; }; |
| 2840 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2841 | static char *e (p, i) |
| 2842 | char **p; |
| 2843 | int i; |
| 2844 | { |
| 2845 | return p[i]; |
| 2846 | } |
| 2847 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2848 | { |
| 2849 | char *s; |
| 2850 | va_list v; |
| 2851 | va_start (v,p); |
| 2852 | s = g (p, va_arg (v,int)); |
| 2853 | va_end (v); |
| 2854 | return s; |
| 2855 | } |
| 2856 | |
| 2857 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2858 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2859 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2860 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2861 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2862 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2863 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2864 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2865 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2866 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2867 | inside strings and character constants. */ |
| 2868 | #define FOO(x) 'x' |
| 2869 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2871 | int test (int i, double x); |
| 2872 | struct s1 {int (*f) (int a);}; |
| 2873 | struct s2 {int (*f) (double a);}; |
| 2874 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2875 | int argc; |
| 2876 | char **argv; |
| 2877 | int |
| 2878 | main () |
| 2879 | { |
| 2880 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2881 | ; |
| 2882 | return 0; |
| 2883 | } |
| 2884 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2885 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2886 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2887 | do |
| 2888 | CC="$ac_save_CC $ac_arg" |
| 2889 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2890 | if { (ac_try="$ac_compile" |
| 2891 | case "(($ac_try" in |
| 2892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2893 | *) ac_try_echo=$ac_try;; |
| 2894 | esac |
| 2895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2896 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2897 | ac_status=$? |
| 2898 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2899 | rm -f conftest.er1 |
| 2900 | cat conftest.err >&5 |
| 2901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2902 | (exit $ac_status); } && { |
| 2903 | test -z "$ac_c_werror_flag" || |
| 2904 | test ! -s conftest.err |
| 2905 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2906 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2907 | else |
| 2908 | echo "$as_me: failed program was:" >&5 |
| 2909 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2910 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2911 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2912 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2913 | |
| 2914 | rm -f core conftest.err conftest.$ac_objext |
| 2915 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2916 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2917 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2918 | CC=$ac_save_CC |
| 2919 | |
| 2920 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2921 | # AC_CACHE_VAL |
| 2922 | case "x$ac_cv_prog_cc_c89" in |
| 2923 | x) |
| 2924 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2925 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2926 | xno) |
| 2927 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2928 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2929 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2930 | CC="$CC $ac_cv_prog_cc_c89" |
| 2931 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2932 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | esac |
| 2934 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2936 | ac_ext=c |
| 2937 | ac_cpp='$CPP $CPPFLAGS' |
| 2938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2942 | ac_ext=c |
| 2943 | ac_cpp='$CPP $CPPFLAGS' |
| 2944 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2945 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2946 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2947 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2948 | 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] | 2949 | # On Suns, sometimes $CPP names a directory. |
| 2950 | if test -n "$CPP" && test -d "$CPP"; then |
| 2951 | CPP= |
| 2952 | fi |
| 2953 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2954 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | # Double quotes because CPP needs to be expanded |
| 2958 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2959 | do |
| 2960 | ac_preproc_ok=false |
| 2961 | for ac_c_preproc_warn_flag in '' yes |
| 2962 | do |
| 2963 | # Use a header file that comes with gcc, so configuring glibc |
| 2964 | # with a fresh cross-compiler works. |
| 2965 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2966 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2967 | # 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] | 2968 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2969 | cat >conftest.$ac_ext <<_ACEOF |
| 2970 | /* confdefs.h. */ |
| 2971 | _ACEOF |
| 2972 | cat confdefs.h >>conftest.$ac_ext |
| 2973 | cat >>conftest.$ac_ext <<_ACEOF |
| 2974 | /* end confdefs.h. */ |
| 2975 | #ifdef __STDC__ |
| 2976 | # include <limits.h> |
| 2977 | #else |
| 2978 | # include <assert.h> |
| 2979 | #endif |
| 2980 | Syntax error |
| 2981 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2982 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2983 | case "(($ac_try" in |
| 2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2985 | *) ac_try_echo=$ac_try;; |
| 2986 | esac |
| 2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2988 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2989 | ac_status=$? |
| 2990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2991 | rm -f conftest.er1 |
| 2992 | cat conftest.err >&5 |
| 2993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2994 | (exit $ac_status); } >/dev/null && { |
| 2995 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2996 | test ! -s conftest.err |
| 2997 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2998 | : |
| 2999 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3000 | echo "$as_me: failed program was:" >&5 |
| 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3002 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3003 | # Broken: fails on valid input. |
| 3004 | continue |
| 3005 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | rm -f conftest.err conftest.$ac_ext |
| 3008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3009 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3010 | # can be detected and how. |
| 3011 | cat >conftest.$ac_ext <<_ACEOF |
| 3012 | /* confdefs.h. */ |
| 3013 | _ACEOF |
| 3014 | cat confdefs.h >>conftest.$ac_ext |
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
| 3016 | /* end confdefs.h. */ |
| 3017 | #include <ac_nonexistent.h> |
| 3018 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3020 | case "(($ac_try" in |
| 3021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3022 | *) ac_try_echo=$ac_try;; |
| 3023 | esac |
| 3024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3026 | ac_status=$? |
| 3027 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3028 | rm -f conftest.er1 |
| 3029 | cat conftest.err >&5 |
| 3030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3031 | (exit $ac_status); } >/dev/null && { |
| 3032 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3033 | test ! -s conftest.err |
| 3034 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | # Broken: success on invalid input. |
| 3036 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3037 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | echo "$as_me: failed program was:" >&5 |
| 3039 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3040 | |
| 3041 | # Passes both tests. |
| 3042 | ac_preproc_ok=: |
| 3043 | break |
| 3044 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3046 | rm -f conftest.err conftest.$ac_ext |
| 3047 | |
| 3048 | done |
| 3049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3050 | rm -f conftest.err conftest.$ac_ext |
| 3051 | if $ac_preproc_ok; then |
| 3052 | break |
| 3053 | fi |
| 3054 | |
| 3055 | done |
| 3056 | ac_cv_prog_CPP=$CPP |
| 3057 | |
| 3058 | fi |
| 3059 | CPP=$ac_cv_prog_CPP |
| 3060 | else |
| 3061 | ac_cv_prog_CPP=$CPP |
| 3062 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3063 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3064 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | ac_preproc_ok=false |
| 3066 | for ac_c_preproc_warn_flag in '' yes |
| 3067 | do |
| 3068 | # Use a header file that comes with gcc, so configuring glibc |
| 3069 | # with a fresh cross-compiler works. |
| 3070 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3071 | # <limits.h> exists even on freestanding compilers. |
| 3072 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3073 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3074 | cat >conftest.$ac_ext <<_ACEOF |
| 3075 | /* confdefs.h. */ |
| 3076 | _ACEOF |
| 3077 | cat confdefs.h >>conftest.$ac_ext |
| 3078 | cat >>conftest.$ac_ext <<_ACEOF |
| 3079 | /* end confdefs.h. */ |
| 3080 | #ifdef __STDC__ |
| 3081 | # include <limits.h> |
| 3082 | #else |
| 3083 | # include <assert.h> |
| 3084 | #endif |
| 3085 | Syntax error |
| 3086 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3087 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3088 | case "(($ac_try" in |
| 3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3090 | *) ac_try_echo=$ac_try;; |
| 3091 | esac |
| 3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3093 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3094 | ac_status=$? |
| 3095 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3096 | rm -f conftest.er1 |
| 3097 | cat conftest.err >&5 |
| 3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3099 | (exit $ac_status); } >/dev/null && { |
| 3100 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3101 | test ! -s conftest.err |
| 3102 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | : |
| 3104 | else |
| 3105 | echo "$as_me: failed program was:" >&5 |
| 3106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3107 | |
| 3108 | # Broken: fails on valid input. |
| 3109 | continue |
| 3110 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3111 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3112 | rm -f conftest.err conftest.$ac_ext |
| 3113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3114 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3115 | # can be detected and how. |
| 3116 | cat >conftest.$ac_ext <<_ACEOF |
| 3117 | /* confdefs.h. */ |
| 3118 | _ACEOF |
| 3119 | cat confdefs.h >>conftest.$ac_ext |
| 3120 | cat >>conftest.$ac_ext <<_ACEOF |
| 3121 | /* end confdefs.h. */ |
| 3122 | #include <ac_nonexistent.h> |
| 3123 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3124 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3125 | case "(($ac_try" in |
| 3126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3127 | *) ac_try_echo=$ac_try;; |
| 3128 | esac |
| 3129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3130 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3131 | ac_status=$? |
| 3132 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3133 | rm -f conftest.er1 |
| 3134 | cat conftest.err >&5 |
| 3135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3136 | (exit $ac_status); } >/dev/null && { |
| 3137 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3138 | test ! -s conftest.err |
| 3139 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3140 | # Broken: success on invalid input. |
| 3141 | continue |
| 3142 | else |
| 3143 | echo "$as_me: failed program was:" >&5 |
| 3144 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3145 | |
| 3146 | # Passes both tests. |
| 3147 | ac_preproc_ok=: |
| 3148 | break |
| 3149 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3150 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3151 | rm -f conftest.err conftest.$ac_ext |
| 3152 | |
| 3153 | done |
| 3154 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3155 | rm -f conftest.err conftest.$ac_ext |
| 3156 | if $ac_preproc_ok; then |
| 3157 | : |
| 3158 | else |
| 3159 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3160 | See \`config.log' for more details." >&5 |
| 3161 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3162 | See \`config.log' for more details." >&2;} |
| 3163 | { (exit 1); exit 1; }; } |
| 3164 | fi |
| 3165 | |
| 3166 | ac_ext=c |
| 3167 | ac_cpp='$CPP $CPPFLAGS' |
| 3168 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3169 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3170 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3171 | |
| 3172 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3173 | # Check whether --with-linker was given. |
| 3174 | if test "${with_linker+set}" = set; then |
| 3175 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3176 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3177 | LD=$withval |
| 3178 | else |
| 3179 | if test -z "$LD" ; then LD=$CC; fi |
| 3180 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3181 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3182 | fi |
| 3183 | export LD |
| 3184 | |
| 3185 | |
| 3186 | # Check whether --with-ccopts was given. |
| 3187 | if test "${with_ccopts+set}" = set; then |
| 3188 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3189 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3190 | CFLAGS=$withval |
| 3191 | fi |
| 3192 | |
| 3193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3194 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3195 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3196 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3197 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3198 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3199 | # Extract the first word of "grep ggrep" to use in msg output |
| 3200 | if test -z "$GREP"; then |
| 3201 | set dummy grep ggrep; ac_prog_name=$2 |
| 3202 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3204 | else |
| 3205 | ac_path_GREP_found=false |
| 3206 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3208 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3209 | do |
| 3210 | IFS=$as_save_IFS |
| 3211 | test -z "$as_dir" && as_dir=. |
| 3212 | for ac_prog in grep ggrep; do |
| 3213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3214 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3215 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3216 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3217 | # Check for GNU $ac_path_GREP |
| 3218 | case `"$ac_path_GREP" --version 2>&1` in |
| 3219 | *GNU*) |
| 3220 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3221 | *) |
| 3222 | ac_count=0 |
| 3223 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3224 | while : |
| 3225 | do |
| 3226 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3227 | mv "conftest.tmp" "conftest.in" |
| 3228 | cp "conftest.in" "conftest.nl" |
| 3229 | echo 'GREP' >> "conftest.nl" |
| 3230 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3231 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3232 | ac_count=`expr $ac_count + 1` |
| 3233 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3234 | # Best one so far, save it but keep looking for a better one |
| 3235 | ac_cv_path_GREP="$ac_path_GREP" |
| 3236 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3237 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3238 | # 10*(2^10) chars as input seems more than enough |
| 3239 | test $ac_count -gt 10 && break |
| 3240 | done |
| 3241 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3242 | esac |
| 3243 | |
| 3244 | |
| 3245 | $ac_path_GREP_found && break 3 |
| 3246 | done |
| 3247 | done |
| 3248 | |
| 3249 | done |
| 3250 | IFS=$as_save_IFS |
| 3251 | |
| 3252 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3253 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3254 | |
| 3255 | GREP="$ac_cv_path_GREP" |
| 3256 | if test -z "$GREP"; then |
| 3257 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3258 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3259 | { (exit 1); exit 1; }; } |
| 3260 | fi |
| 3261 | |
| 3262 | else |
| 3263 | ac_cv_path_GREP=$GREP |
| 3264 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3265 | |
| 3266 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3267 | fi |
| 3268 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3269 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3270 | GREP="$ac_cv_path_GREP" |
| 3271 | |
| 3272 | |
| 3273 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3274 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3275 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3277 | else |
| 3278 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3279 | then ac_cv_path_EGREP="$GREP -E" |
| 3280 | else |
| 3281 | # Extract the first word of "egrep" to use in msg output |
| 3282 | if test -z "$EGREP"; then |
| 3283 | set dummy egrep; ac_prog_name=$2 |
| 3284 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3286 | else |
| 3287 | ac_path_EGREP_found=false |
| 3288 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3290 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3291 | do |
| 3292 | IFS=$as_save_IFS |
| 3293 | test -z "$as_dir" && as_dir=. |
| 3294 | for ac_prog in egrep; do |
| 3295 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3296 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3297 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3298 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3299 | # Check for GNU $ac_path_EGREP |
| 3300 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3301 | *GNU*) |
| 3302 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3303 | *) |
| 3304 | ac_count=0 |
| 3305 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3306 | while : |
| 3307 | do |
| 3308 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3309 | mv "conftest.tmp" "conftest.in" |
| 3310 | cp "conftest.in" "conftest.nl" |
| 3311 | echo 'EGREP' >> "conftest.nl" |
| 3312 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3313 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3314 | ac_count=`expr $ac_count + 1` |
| 3315 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3316 | # Best one so far, save it but keep looking for a better one |
| 3317 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3318 | ac_path_EGREP_max=$ac_count |
| 3319 | fi |
| 3320 | # 10*(2^10) chars as input seems more than enough |
| 3321 | test $ac_count -gt 10 && break |
| 3322 | done |
| 3323 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3324 | esac |
| 3325 | |
| 3326 | |
| 3327 | $ac_path_EGREP_found && break 3 |
| 3328 | done |
| 3329 | done |
| 3330 | |
| 3331 | done |
| 3332 | IFS=$as_save_IFS |
| 3333 | |
| 3334 | |
| 3335 | fi |
| 3336 | |
| 3337 | EGREP="$ac_cv_path_EGREP" |
| 3338 | if test -z "$EGREP"; then |
| 3339 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3340 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3341 | { (exit 1); exit 1; }; } |
| 3342 | fi |
| 3343 | |
| 3344 | else |
| 3345 | ac_cv_path_EGREP=$EGREP |
| 3346 | fi |
| 3347 | |
| 3348 | |
| 3349 | fi |
| 3350 | fi |
| 3351 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3352 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3353 | EGREP="$ac_cv_path_EGREP" |
| 3354 | |
| 3355 | |
| 3356 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3357 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3358 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3360 | else |
| 3361 | cat >conftest.$ac_ext <<_ACEOF |
| 3362 | /* confdefs.h. */ |
| 3363 | _ACEOF |
| 3364 | cat confdefs.h >>conftest.$ac_ext |
| 3365 | cat >>conftest.$ac_ext <<_ACEOF |
| 3366 | /* end confdefs.h. */ |
| 3367 | #include <stdlib.h> |
| 3368 | #include <stdarg.h> |
| 3369 | #include <string.h> |
| 3370 | #include <float.h> |
| 3371 | |
| 3372 | int |
| 3373 | main () |
| 3374 | { |
| 3375 | |
| 3376 | ; |
| 3377 | return 0; |
| 3378 | } |
| 3379 | _ACEOF |
| 3380 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3381 | if { (ac_try="$ac_compile" |
| 3382 | case "(($ac_try" in |
| 3383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3384 | *) ac_try_echo=$ac_try;; |
| 3385 | esac |
| 3386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3387 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3388 | ac_status=$? |
| 3389 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3390 | rm -f conftest.er1 |
| 3391 | cat conftest.err >&5 |
| 3392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3393 | (exit $ac_status); } && { |
| 3394 | test -z "$ac_c_werror_flag" || |
| 3395 | test ! -s conftest.err |
| 3396 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3397 | ac_cv_header_stdc=yes |
| 3398 | else |
| 3399 | echo "$as_me: failed program was:" >&5 |
| 3400 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3401 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3402 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3403 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3404 | |
| 3405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3406 | |
| 3407 | if test $ac_cv_header_stdc = yes; then |
| 3408 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3409 | cat >conftest.$ac_ext <<_ACEOF |
| 3410 | /* confdefs.h. */ |
| 3411 | _ACEOF |
| 3412 | cat confdefs.h >>conftest.$ac_ext |
| 3413 | cat >>conftest.$ac_ext <<_ACEOF |
| 3414 | /* end confdefs.h. */ |
| 3415 | #include <string.h> |
| 3416 | |
| 3417 | _ACEOF |
| 3418 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3419 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3420 | : |
| 3421 | else |
| 3422 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3423 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3424 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3425 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3426 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3427 | |
| 3428 | if test $ac_cv_header_stdc = yes; then |
| 3429 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3430 | cat >conftest.$ac_ext <<_ACEOF |
| 3431 | /* confdefs.h. */ |
| 3432 | _ACEOF |
| 3433 | cat confdefs.h >>conftest.$ac_ext |
| 3434 | cat >>conftest.$ac_ext <<_ACEOF |
| 3435 | /* end confdefs.h. */ |
| 3436 | #include <stdlib.h> |
| 3437 | |
| 3438 | _ACEOF |
| 3439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3440 | $EGREP "free" >/dev/null 2>&1; then |
| 3441 | : |
| 3442 | else |
| 3443 | ac_cv_header_stdc=no |
| 3444 | fi |
| 3445 | rm -f conftest* |
| 3446 | |
| 3447 | fi |
| 3448 | |
| 3449 | if test $ac_cv_header_stdc = yes; then |
| 3450 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3451 | if test "$cross_compiling" = yes; then |
| 3452 | : |
| 3453 | else |
| 3454 | cat >conftest.$ac_ext <<_ACEOF |
| 3455 | /* confdefs.h. */ |
| 3456 | _ACEOF |
| 3457 | cat confdefs.h >>conftest.$ac_ext |
| 3458 | cat >>conftest.$ac_ext <<_ACEOF |
| 3459 | /* end confdefs.h. */ |
| 3460 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3461 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3462 | #if ((' ' & 0x0FF) == 0x020) |
| 3463 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3464 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3465 | #else |
| 3466 | # define ISLOWER(c) \ |
| 3467 | (('a' <= (c) && (c) <= 'i') \ |
| 3468 | || ('j' <= (c) && (c) <= 'r') \ |
| 3469 | || ('s' <= (c) && (c) <= 'z')) |
| 3470 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3471 | #endif |
| 3472 | |
| 3473 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3474 | int |
| 3475 | main () |
| 3476 | { |
| 3477 | int i; |
| 3478 | for (i = 0; i < 256; i++) |
| 3479 | if (XOR (islower (i), ISLOWER (i)) |
| 3480 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3481 | return 2; |
| 3482 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3483 | } |
| 3484 | _ACEOF |
| 3485 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3486 | if { (ac_try="$ac_link" |
| 3487 | case "(($ac_try" in |
| 3488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3489 | *) ac_try_echo=$ac_try;; |
| 3490 | esac |
| 3491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3492 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3493 | ac_status=$? |
| 3494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3495 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3496 | { (case "(($ac_try" in |
| 3497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3498 | *) ac_try_echo=$ac_try;; |
| 3499 | esac |
| 3500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3501 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3502 | ac_status=$? |
| 3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3504 | (exit $ac_status); }; }; then |
| 3505 | : |
| 3506 | else |
| 3507 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3508 | echo "$as_me: failed program was:" >&5 |
| 3509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3510 | |
| 3511 | ( exit $ac_status ) |
| 3512 | ac_cv_header_stdc=no |
| 3513 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3514 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3515 | fi |
| 3516 | |
| 3517 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3518 | fi |
| 3519 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3520 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3521 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3522 | if test $ac_cv_header_stdc = yes; then |
| 3523 | |
| 3524 | cat >>confdefs.h <<\_ACEOF |
| 3525 | #define STDC_HEADERS 1 |
| 3526 | _ACEOF |
| 3527 | |
| 3528 | fi |
| 3529 | |
| 3530 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3531 | |
| 3532 | |
| 3533 | |
| 3534 | |
| 3535 | |
| 3536 | |
| 3537 | |
| 3538 | |
| 3539 | |
| 3540 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3541 | inttypes.h stdint.h unistd.h |
| 3542 | do |
| 3543 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3544 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3545 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3546 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3548 | else |
| 3549 | cat >conftest.$ac_ext <<_ACEOF |
| 3550 | /* confdefs.h. */ |
| 3551 | _ACEOF |
| 3552 | cat confdefs.h >>conftest.$ac_ext |
| 3553 | cat >>conftest.$ac_ext <<_ACEOF |
| 3554 | /* end confdefs.h. */ |
| 3555 | $ac_includes_default |
| 3556 | |
| 3557 | #include <$ac_header> |
| 3558 | _ACEOF |
| 3559 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3560 | if { (ac_try="$ac_compile" |
| 3561 | case "(($ac_try" in |
| 3562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3563 | *) ac_try_echo=$ac_try;; |
| 3564 | esac |
| 3565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3566 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3567 | ac_status=$? |
| 3568 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3569 | rm -f conftest.er1 |
| 3570 | cat conftest.err >&5 |
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3572 | (exit $ac_status); } && { |
| 3573 | test -z "$ac_c_werror_flag" || |
| 3574 | test ! -s conftest.err |
| 3575 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3576 | eval "$as_ac_Header=yes" |
| 3577 | else |
| 3578 | echo "$as_me: failed program was:" >&5 |
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3580 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3581 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3583 | |
| 3584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3586 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3587 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3588 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3590 | cat >>confdefs.h <<_ACEOF |
| 3591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3592 | _ACEOF |
| 3593 | |
| 3594 | fi |
| 3595 | |
| 3596 | done |
| 3597 | |
| 3598 | |
| 3599 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3600 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3601 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3602 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3604 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3605 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3606 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3607 | else |
| 3608 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3609 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3610 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3611 | cat >conftest.$ac_ext <<_ACEOF |
| 3612 | /* confdefs.h. */ |
| 3613 | _ACEOF |
| 3614 | cat confdefs.h >>conftest.$ac_ext |
| 3615 | cat >>conftest.$ac_ext <<_ACEOF |
| 3616 | /* end confdefs.h. */ |
| 3617 | $ac_includes_default |
| 3618 | #include <linux/fs.h> |
| 3619 | _ACEOF |
| 3620 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3621 | if { (ac_try="$ac_compile" |
| 3622 | case "(($ac_try" in |
| 3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3624 | *) ac_try_echo=$ac_try;; |
| 3625 | esac |
| 3626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3627 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3628 | ac_status=$? |
| 3629 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3630 | rm -f conftest.er1 |
| 3631 | cat conftest.err >&5 |
| 3632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3633 | (exit $ac_status); } && { |
| 3634 | test -z "$ac_c_werror_flag" || |
| 3635 | test ! -s conftest.err |
| 3636 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3637 | ac_header_compiler=yes |
| 3638 | else |
| 3639 | echo "$as_me: failed program was:" >&5 |
| 3640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3641 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3642 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3643 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3644 | |
| 3645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3646 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3647 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3648 | |
| 3649 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3650 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3651 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | cat >conftest.$ac_ext <<_ACEOF |
| 3653 | /* confdefs.h. */ |
| 3654 | _ACEOF |
| 3655 | cat confdefs.h >>conftest.$ac_ext |
| 3656 | cat >>conftest.$ac_ext <<_ACEOF |
| 3657 | /* end confdefs.h. */ |
| 3658 | #include <linux/fs.h> |
| 3659 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3660 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3661 | case "(($ac_try" in |
| 3662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3663 | *) ac_try_echo=$ac_try;; |
| 3664 | esac |
| 3665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3666 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3667 | ac_status=$? |
| 3668 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3669 | rm -f conftest.er1 |
| 3670 | cat conftest.err >&5 |
| 3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3672 | (exit $ac_status); } >/dev/null && { |
| 3673 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3674 | test ! -s conftest.err |
| 3675 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3676 | ac_header_preproc=yes |
| 3677 | else |
| 3678 | echo "$as_me: failed program was:" >&5 |
| 3679 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3680 | |
| 3681 | ac_header_preproc=no |
| 3682 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3683 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3684 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3685 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3686 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3687 | |
| 3688 | # So? What about this header? |
| 3689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3690 | yes:no: ) |
| 3691 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3692 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3693 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3694 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3695 | ac_header_preproc=yes |
| 3696 | ;; |
| 3697 | no:yes:* ) |
| 3698 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3699 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3700 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3701 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3702 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3703 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3704 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3705 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3706 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3707 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3708 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3709 | echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3711 | ;; |
| 3712 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3713 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3714 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3715 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3717 | else |
| 3718 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3720 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3721 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3722 | |
| 3723 | fi |
| 3724 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3725 | linux_headers=yes |
| 3726 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3727 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3728 | fi |
| 3729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3730 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3731 | if test "$linux_headers" != yes; then |
| 3732 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3733 | fi |
| 3734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3735 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3736 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3737 | if test "$GCC" = yes |
| 3738 | then |
| 3739 | case "$host_cpu" in |
| 3740 | alpha) addcflags="-mieee" ;; |
| 3741 | esac |
| 3742 | fi |
| 3743 | if test "x$addcflags" != x |
| 3744 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3745 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3746 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3747 | CFLAGS="$addcflags $CFLAGS" |
| 3748 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3749 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3750 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3751 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3752 | LIB_EXT=.a |
| 3753 | STATIC_LIB_EXT=.a |
| 3754 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3755 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3756 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3757 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3758 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3759 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3760 | LDFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3761 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3762 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3763 | |
| 3764 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3765 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3766 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3767 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3768 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3769 | fi |
| 3770 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3771 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3772 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3773 | then |
| 3774 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3775 | { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
| 3776 | echo "${ECHO_T}Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3777 | else |
| 3778 | MAINTAINER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3779 | { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
| 3780 | echo "${ECHO_T}Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3781 | fi |
| 3782 | |
| 3783 | else |
| 3784 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3785 | { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
| 3786 | echo "${ECHO_T}Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3787 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3788 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3789 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3790 | |
| 3791 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3792 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3793 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3794 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3795 | { echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
| 3796 | echo "${ECHO_T}Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3797 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3798 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3799 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3800 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3801 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3802 | { echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
| 3803 | echo "${ECHO_T}Enabling compression support" >&6; } |
| 3804 | { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 |
| 3805 | echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3806 | fi |
| 3807 | |
| 3808 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3809 | { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
| 3810 | echo "${ECHO_T}Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3812 | fi |
| 3813 | |
| 3814 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3815 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3816 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3817 | then |
| 3818 | HTREE_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3819 | { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
| 3820 | echo "${ECHO_T}Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3821 | else |
| 3822 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3823 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3824 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3825 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3826 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3827 | { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
| 3828 | echo "${ECHO_T}Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3829 | fi |
| 3830 | |
| 3831 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3832 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3833 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3834 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3835 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3836 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3837 | { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
| 3838 | echo "${ECHO_T}Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3839 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3840 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3842 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3843 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3844 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3845 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3846 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3847 | then |
| 3848 | ELF_CMT=# |
| 3849 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3850 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
| 3851 | echo "${ECHO_T}Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3852 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3853 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3854 | ELF_CMT= |
| 3855 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3856 | case "$host_os" in |
| 3857 | solaris2.*) |
| 3858 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3859 | ;; |
| 3860 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3861 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3862 | LIB_EXT=.so |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3863 | { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
| 3864 | echo "${ECHO_T}Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3865 | fi |
| 3866 | |
| 3867 | else |
| 3868 | MAKEFILE_ELF=/dev/null |
| 3869 | ELF_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3870 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
| 3871 | echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3872 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3873 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3874 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3876 | |
| 3877 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3878 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3879 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3880 | then |
| 3881 | BSDLIB_CMT=# |
| 3882 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3883 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
| 3884 | echo "${ECHO_T}Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3885 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3886 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3887 | BSDLIB_CMT= |
| 3888 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3889 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3890 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3891 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3892 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3893 | LIB_EXT=.dylib |
| 3894 | ;; |
| 3895 | esac |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3896 | { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
| 3897 | echo "${ECHO_T}Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3898 | fi |
| 3899 | |
| 3900 | else |
| 3901 | MAKEFILE_BSDLIB=/dev/null |
| 3902 | BSDLIB_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3903 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
| 3904 | echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3906 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3907 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3909 | |
| 3910 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3911 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3912 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3913 | then |
| 3914 | PROFILE_CMT=# |
| 3915 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3916 | { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
| 3917 | echo "${ECHO_T}Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3918 | else |
| 3919 | PROFILE_CMT= |
| 3920 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3921 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3922 | { echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
| 3923 | echo "${ECHO_T}Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3924 | fi |
| 3925 | |
| 3926 | else |
| 3927 | PROFILE_CMT=# |
| 3928 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3929 | { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
| 3930 | echo "${ECHO_T}Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3932 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3933 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3935 | |
| 3936 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3937 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3938 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3939 | then |
| 3940 | CHECKER_CMT=# |
| 3941 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3942 | { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
| 3943 | echo "${ECHO_T}Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3944 | else |
| 3945 | CHECKER_CMT= |
| 3946 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3947 | { echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
| 3948 | echo "${ECHO_T}Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3949 | fi |
| 3950 | |
| 3951 | else |
| 3952 | CHECKER_CMT=# |
| 3953 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3954 | { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
| 3955 | echo "${ECHO_T}Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3957 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3962 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3963 | |
| 3964 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3965 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3966 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3967 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3968 | { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
| 3969 | echo "${ECHO_T}Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3970 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3971 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3972 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3973 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3974 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3975 | { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
| 3976 | echo "${ECHO_T}Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3977 | fi |
| 3978 | |
| 3979 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3980 | { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5 |
| 3981 | echo "${ECHO_T}Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3983 | fi |
| 3984 | |
| 3985 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3986 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3987 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3988 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3989 | { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
| 3990 | echo "${ECHO_T}Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3991 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3992 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3993 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3994 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3995 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3996 | { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
| 3997 | echo "${ECHO_T}Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 3998 | fi |
| 3999 | |
| 4000 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4001 | { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5 |
| 4002 | echo "${ECHO_T}Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4004 | fi |
| 4005 | |
| 4006 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4007 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4008 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4009 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4010 | { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
| 4011 | echo "${ECHO_T}Disabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4012 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4013 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4014 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4015 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4016 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4017 | { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
| 4018 | echo "${ECHO_T}Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4019 | fi |
| 4020 | |
| 4021 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4022 | { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5 |
| 4023 | echo "${ECHO_T}Disabling testio debugging by default" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4025 | fi |
| 4026 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4027 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4028 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4029 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4030 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4031 | { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
| 4032 | echo "${ECHO_T}Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4033 | DEBUGFS_CMT="#" |
| 4034 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4035 | DEBUGFS_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4036 | { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
| 4037 | echo "${ECHO_T}Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4038 | fi |
| 4039 | |
| 4040 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4041 | { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
| 4042 | echo "${ECHO_T}Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4043 | DEBUGFS_CMT= |
| 4044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4045 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4046 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4047 | |
| 4048 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4049 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4050 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4051 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4052 | { echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
| 4053 | echo "${ECHO_T}Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4054 | IMAGER_CMT="#" |
| 4055 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4056 | IMAGER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4057 | { echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
| 4058 | echo "${ECHO_T}Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4059 | fi |
| 4060 | |
| 4061 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4062 | { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
| 4063 | echo "${ECHO_T}Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4064 | IMAGER_CMT= |
| 4065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4066 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4067 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4068 | |
| 4069 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4070 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4071 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4072 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4073 | { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
| 4074 | echo "${ECHO_T}Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4075 | RESIZER_CMT="#" |
| 4076 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4077 | RESIZER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4078 | { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
| 4079 | echo "${ECHO_T}Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4080 | fi |
| 4081 | |
| 4082 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4083 | { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
| 4084 | echo "${ECHO_T}Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4085 | RESIZER_CMT= |
| 4086 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4087 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4088 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4089 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4090 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4091 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4092 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4093 | then |
| 4094 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4095 | { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
| 4096 | echo "${ECHO_T}Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4097 | else |
| 4098 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4099 | { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
| 4100 | echo "${ECHO_T}Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | |
| 4103 | else |
| 4104 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4105 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4106 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4107 | { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
| 4108 | echo "${ECHO_T}Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4109 | ;; |
| 4110 | *) |
| 4111 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4112 | { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
| 4113 | echo "${ECHO_T}Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4114 | esac |
| 4115 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4116 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4117 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4118 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4119 | |
| 4120 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4121 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4122 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4123 | then |
| 4124 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4125 | { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
| 4126 | echo "${ECHO_T}Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4127 | else |
| 4128 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4129 | { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
| 4130 | echo "${ECHO_T}Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4131 | fi |
| 4132 | |
| 4133 | else |
| 4134 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4135 | { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
| 4136 | echo "${ECHO_T}Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4138 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4139 | |
| 4140 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4141 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4142 | # Check whether --enable-tls was given. |
| 4143 | if test "${enable_tls+set}" = set; then |
| 4144 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4145 | then |
| 4146 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4147 | { echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
| 4148 | echo "${ECHO_T}Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4149 | else |
| 4150 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4151 | { echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
| 4152 | echo "${ECHO_T}Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4153 | fi |
| 4154 | |
| 4155 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4156 | if test -n "$WITH_DIET_LIBC" |
| 4157 | then |
| 4158 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4159 | { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
| 4160 | echo "${ECHO_T}Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4161 | else |
| 4162 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4163 | { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
| 4164 | echo "${ECHO_T}Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4165 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4166 | |
| 4167 | fi |
| 4168 | |
| 4169 | if test "$try_tls" = "yes" |
| 4170 | then |
| 4171 | |
| 4172 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4173 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4174 | if test "${ac_cv_tls+set}" = set; then |
| 4175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4176 | else |
| 4177 | |
| 4178 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4179 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4180 | case $ax_tls_keyword in |
| 4181 | none) ac_cv_tls=none ; break ;; |
| 4182 | *) |
| 4183 | cat >conftest.$ac_ext <<_ACEOF |
| 4184 | /* confdefs.h. */ |
| 4185 | _ACEOF |
| 4186 | cat confdefs.h >>conftest.$ac_ext |
| 4187 | cat >>conftest.$ac_ext <<_ACEOF |
| 4188 | /* end confdefs.h. */ |
| 4189 | #include <stdlib.h> |
| 4190 | static void |
| 4191 | foo(void) { |
| 4192 | static $ax_tls_keyword int bar; |
| 4193 | exit(1); |
| 4194 | } |
| 4195 | int |
| 4196 | main () |
| 4197 | { |
| 4198 | |
| 4199 | ; |
| 4200 | return 0; |
| 4201 | } |
| 4202 | _ACEOF |
| 4203 | rm -f conftest.$ac_objext |
| 4204 | if { (ac_try="$ac_compile" |
| 4205 | case "(($ac_try" in |
| 4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4207 | *) ac_try_echo=$ac_try;; |
| 4208 | esac |
| 4209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4210 | (eval "$ac_compile") 2>conftest.er1 |
| 4211 | ac_status=$? |
| 4212 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4213 | rm -f conftest.er1 |
| 4214 | cat conftest.err >&5 |
| 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4216 | (exit $ac_status); } && { |
| 4217 | test -z "$ac_c_werror_flag" || |
| 4218 | test ! -s conftest.err |
| 4219 | } && test -s conftest.$ac_objext; then |
| 4220 | ac_cv_tls=$ax_tls_keyword ; break |
| 4221 | else |
| 4222 | echo "$as_me: failed program was:" >&5 |
| 4223 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4224 | |
| 4225 | ac_cv_tls=none |
| 4226 | |
| 4227 | fi |
| 4228 | |
| 4229 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4230 | esac |
| 4231 | done |
| 4232 | |
| 4233 | fi |
| 4234 | |
| 4235 | |
| 4236 | if test "$ac_cv_tls" != "none"; then |
| 4237 | |
| 4238 | cat >>confdefs.h <<_ACEOF |
| 4239 | #define TLS $ac_cv_tls |
| 4240 | _ACEOF |
| 4241 | |
| 4242 | fi |
| 4243 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4244 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4245 | |
| 4246 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4247 | # Check whether --enable-uuidd was given. |
| 4248 | if test "${enable_uuidd+set}" = set; then |
| 4249 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4250 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4251 | { echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
| 4252 | echo "${ECHO_T}Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4253 | UUIDD_CMT="#" |
| 4254 | else |
| 4255 | cat >>confdefs.h <<\_ACEOF |
| 4256 | #define USE_UUIDD 1 |
| 4257 | _ACEOF |
| 4258 | |
| 4259 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4260 | { echo "$as_me:$LINENO: result: Building uuidd" >&5 |
| 4261 | echo "${ECHO_T}Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4262 | fi |
| 4263 | |
| 4264 | else |
| 4265 | cat >>confdefs.h <<\_ACEOF |
| 4266 | #define USE_UUIDD 1 |
| 4267 | _ACEOF |
| 4268 | |
| 4269 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4270 | { echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
| 4271 | echo "${ECHO_T}Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4272 | |
| 4273 | fi |
| 4274 | |
| 4275 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4276 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4277 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4278 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4279 | PACKAGE=e2fsprogs |
| 4280 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4281 | VERSION=0.14.1 |
| 4282 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4283 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4284 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4285 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4286 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4287 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4288 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4289 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4290 | |
| 4291 | |
| 4292 | |
| 4293 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4294 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4295 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4296 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4297 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4299 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4300 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4301 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4302 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4303 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4304 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4305 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4306 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4307 | *@@@%%%=?*=@@@%%%*) |
| 4308 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4309 | *) |
| 4310 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4311 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4312 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4313 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4314 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4315 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4316 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4317 | SET_MAKE= |
| 4318 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4319 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4320 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4321 | SET_MAKE="MAKE=${MAKE-make}" |
| 4322 | fi |
| 4323 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4324 | # Find a good install program. We prefer a C program (faster), |
| 4325 | # so one script is as good as another. But avoid the broken or |
| 4326 | # incompatible versions: |
| 4327 | # SysV /etc/install, /usr/sbin/install |
| 4328 | # SunOS /usr/etc/install |
| 4329 | # IRIX /sbin/install |
| 4330 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4331 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4332 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4333 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4334 | # 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] | 4335 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4336 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4337 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4338 | 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] | 4339 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4340 | if test "${ac_cv_path_install+set}" = set; then |
| 4341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4342 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4344 | for as_dir in $PATH |
| 4345 | do |
| 4346 | IFS=$as_save_IFS |
| 4347 | test -z "$as_dir" && as_dir=. |
| 4348 | # Account for people who put trailing slashes in PATH elements. |
| 4349 | case $as_dir/ in |
| 4350 | ./ | .// | /cC/* | \ |
| 4351 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4352 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4353 | /usr/ucb/* ) ;; |
| 4354 | *) |
| 4355 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4356 | # Don't use installbsd from OSF since it installs stuff as root |
| 4357 | # by default. |
| 4358 | for ac_prog in ginstall scoinst install; do |
| 4359 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4360 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4361 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4362 | 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] | 4363 | # AIX install. It has an incompatible calling convention. |
| 4364 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4365 | elif test $ac_prog = install && |
| 4366 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4367 | # program-specific install script used by HP pwplus--don't use. |
| 4368 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4369 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4370 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4371 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4372 | fi |
| 4373 | fi |
| 4374 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4375 | done |
| 4376 | ;; |
| 4377 | esac |
| 4378 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4379 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4380 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4381 | |
| 4382 | fi |
| 4383 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4384 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4385 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4386 | # As a last resort, use the slow shell script. Don't cache a |
| 4387 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4388 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4389 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4390 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4391 | fi |
| 4392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4393 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4394 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4395 | |
| 4396 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4397 | # It thinks the first close brace ends the variable substitution. |
| 4398 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4399 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4400 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4401 | |
| 4402 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4403 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4404 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4405 | MKINSTALLDIRS= |
| 4406 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4407 | case "$ac_aux_dir" in |
| 4408 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4409 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4410 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4411 | fi |
| 4412 | if test -z "$MKINSTALLDIRS"; then |
| 4413 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4414 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4415 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4416 | |
| 4417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4418 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4419 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4420 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4421 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4422 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4423 | else |
| 4424 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4425 | fi |
| 4426 | |
| 4427 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4428 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4429 | |
| 4430 | |
| 4431 | |
| 4432 | |
| 4433 | |
| 4434 | |
| 4435 | # Prepare PATH_SEPARATOR. |
| 4436 | # The user is always right. |
| 4437 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4438 | echo "#! /bin/sh" >conf$$.sh |
| 4439 | echo "exit 0" >>conf$$.sh |
| 4440 | chmod +x conf$$.sh |
| 4441 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4442 | PATH_SEPARATOR=';' |
| 4443 | else |
| 4444 | PATH_SEPARATOR=: |
| 4445 | fi |
| 4446 | rm -f conf$$.sh |
| 4447 | fi |
| 4448 | |
| 4449 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4450 | # as systems may use methods other than mode bits to determine executability. |
| 4451 | cat >conf$$.file <<_ASEOF |
| 4452 | #! /bin/sh |
| 4453 | exit 0 |
| 4454 | _ASEOF |
| 4455 | chmod +x conf$$.file |
| 4456 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4457 | ac_executable_p="test -x" |
| 4458 | else |
| 4459 | ac_executable_p="test -f" |
| 4460 | fi |
| 4461 | rm -f conf$$.file |
| 4462 | |
| 4463 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4464 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4465 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4467 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4469 | else |
| 4470 | case "$MSGFMT" in |
| 4471 | [\\/]* | ?:[\\/]*) |
| 4472 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4473 | ;; |
| 4474 | *) |
| 4475 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4476 | for ac_dir in $PATH; do |
| 4477 | IFS="$ac_save_IFS" |
| 4478 | test -z "$ac_dir" && ac_dir=. |
| 4479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4480 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4481 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4482 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4483 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4484 | break 2 |
| 4485 | fi |
| 4486 | fi |
| 4487 | done |
| 4488 | done |
| 4489 | IFS="$ac_save_IFS" |
| 4490 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4491 | ;; |
| 4492 | esac |
| 4493 | fi |
| 4494 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4495 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4496 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4497 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4498 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4499 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4500 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4501 | fi |
| 4502 | |
| 4503 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4504 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4505 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4507 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4509 | else |
| 4510 | case $GMSGFMT in |
| 4511 | [\\/]* | ?:[\\/]*) |
| 4512 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4513 | ;; |
| 4514 | *) |
| 4515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4516 | for as_dir in $PATH |
| 4517 | do |
| 4518 | IFS=$as_save_IFS |
| 4519 | test -z "$as_dir" && as_dir=. |
| 4520 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4521 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4522 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4524 | break 2 |
| 4525 | fi |
| 4526 | done |
| 4527 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4528 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4529 | |
| 4530 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4531 | ;; |
| 4532 | esac |
| 4533 | fi |
| 4534 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4535 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4536 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4537 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4538 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4539 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4540 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4541 | fi |
| 4542 | |
| 4543 | |
| 4544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4545 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4546 | # Prepare PATH_SEPARATOR. |
| 4547 | # The user is always right. |
| 4548 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4549 | echo "#! /bin/sh" >conf$$.sh |
| 4550 | echo "exit 0" >>conf$$.sh |
| 4551 | chmod +x conf$$.sh |
| 4552 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4553 | PATH_SEPARATOR=';' |
| 4554 | else |
| 4555 | PATH_SEPARATOR=: |
| 4556 | fi |
| 4557 | rm -f conf$$.sh |
| 4558 | fi |
| 4559 | |
| 4560 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4561 | # as systems may use methods other than mode bits to determine executability. |
| 4562 | cat >conf$$.file <<_ASEOF |
| 4563 | #! /bin/sh |
| 4564 | exit 0 |
| 4565 | _ASEOF |
| 4566 | chmod +x conf$$.file |
| 4567 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4568 | ac_executable_p="test -x" |
| 4569 | else |
| 4570 | ac_executable_p="test -f" |
| 4571 | fi |
| 4572 | rm -f conf$$.file |
| 4573 | |
| 4574 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4575 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4576 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4578 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4580 | else |
| 4581 | case "$XGETTEXT" in |
| 4582 | [\\/]* | ?:[\\/]*) |
| 4583 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4584 | ;; |
| 4585 | *) |
| 4586 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4587 | for ac_dir in $PATH; do |
| 4588 | IFS="$ac_save_IFS" |
| 4589 | test -z "$ac_dir" && ac_dir=. |
| 4590 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4591 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4592 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4593 | (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 |
| 4594 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4595 | break 2 |
| 4596 | fi |
| 4597 | fi |
| 4598 | done |
| 4599 | done |
| 4600 | IFS="$ac_save_IFS" |
| 4601 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4602 | ;; |
| 4603 | esac |
| 4604 | fi |
| 4605 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4606 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4607 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4608 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4609 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4610 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4611 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4612 | fi |
| 4613 | |
| 4614 | rm -f messages.po |
| 4615 | |
| 4616 | |
| 4617 | # Prepare PATH_SEPARATOR. |
| 4618 | # The user is always right. |
| 4619 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4620 | echo "#! /bin/sh" >conf$$.sh |
| 4621 | echo "exit 0" >>conf$$.sh |
| 4622 | chmod +x conf$$.sh |
| 4623 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4624 | PATH_SEPARATOR=';' |
| 4625 | else |
| 4626 | PATH_SEPARATOR=: |
| 4627 | fi |
| 4628 | rm -f conf$$.sh |
| 4629 | fi |
| 4630 | |
| 4631 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4632 | # as systems may use methods other than mode bits to determine executability. |
| 4633 | cat >conf$$.file <<_ASEOF |
| 4634 | #! /bin/sh |
| 4635 | exit 0 |
| 4636 | _ASEOF |
| 4637 | chmod +x conf$$.file |
| 4638 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4639 | ac_executable_p="test -x" |
| 4640 | else |
| 4641 | ac_executable_p="test -f" |
| 4642 | fi |
| 4643 | rm -f conf$$.file |
| 4644 | |
| 4645 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4646 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4647 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4649 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4651 | else |
| 4652 | case "$MSGMERGE" in |
| 4653 | [\\/]* | ?:[\\/]*) |
| 4654 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4655 | ;; |
| 4656 | *) |
| 4657 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4658 | for ac_dir in $PATH; do |
| 4659 | IFS="$ac_save_IFS" |
| 4660 | test -z "$ac_dir" && ac_dir=. |
| 4661 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4662 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4663 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4664 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4665 | break 2 |
| 4666 | fi |
| 4667 | fi |
| 4668 | done |
| 4669 | done |
| 4670 | IFS="$ac_save_IFS" |
| 4671 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4672 | ;; |
| 4673 | esac |
| 4674 | fi |
| 4675 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4676 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4677 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4678 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4679 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4680 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4681 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4682 | fi |
| 4683 | |
| 4684 | |
| 4685 | if test "$GMSGFMT" != ":"; then |
| 4686 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4687 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4688 | : ; |
| 4689 | else |
| 4690 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4691 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4692 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4693 | GMSGFMT=":" |
| 4694 | fi |
| 4695 | fi |
| 4696 | |
| 4697 | if test "$XGETTEXT" != ":"; then |
| 4698 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4699 | (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 |
| 4700 | : ; |
| 4701 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4702 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4703 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4704 | XGETTEXT=":" |
| 4705 | fi |
| 4706 | rm -f messages.po |
| 4707 | fi |
| 4708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4709 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4710 | |
| 4711 | |
| 4712 | if test -n "$ac_tool_prefix"; then |
| 4713 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4714 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4715 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4716 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4717 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4719 | else |
| 4720 | if test -n "$RANLIB"; then |
| 4721 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4722 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4724 | for as_dir in $PATH |
| 4725 | do |
| 4726 | IFS=$as_save_IFS |
| 4727 | test -z "$as_dir" && as_dir=. |
| 4728 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4729 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4730 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 4731 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4732 | break 2 |
| 4733 | fi |
| 4734 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4735 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4736 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4737 | |
| 4738 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4739 | fi |
| 4740 | RANLIB=$ac_cv_prog_RANLIB |
| 4741 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4742 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 4743 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4744 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4745 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4746 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4747 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4748 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4750 | fi |
| 4751 | if test -z "$ac_cv_prog_RANLIB"; then |
| 4752 | ac_ct_RANLIB=$RANLIB |
| 4753 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 4754 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4755 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4757 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4759 | else |
| 4760 | if test -n "$ac_ct_RANLIB"; then |
| 4761 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 4762 | else |
| 4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4764 | for as_dir in $PATH |
| 4765 | do |
| 4766 | IFS=$as_save_IFS |
| 4767 | test -z "$as_dir" && as_dir=. |
| 4768 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4769 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4770 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 4771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4772 | break 2 |
| 4773 | fi |
| 4774 | done |
| 4775 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4776 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4777 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4778 | fi |
| 4779 | fi |
| 4780 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 4781 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4782 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 4783 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4784 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4785 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4786 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4787 | fi |
| 4788 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4789 | if test "x$ac_ct_RANLIB" = x; then |
| 4790 | RANLIB=":" |
| 4791 | else |
| 4792 | case $cross_compiling:$ac_tool_warned in |
| 4793 | yes:) |
| 4794 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4795 | whose name does not start with the host triplet. If you think this |
| 4796 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4797 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4798 | whose name does not start with the host triplet. If you think this |
| 4799 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4800 | ac_tool_warned=yes ;; |
| 4801 | esac |
| 4802 | RANLIB=$ac_ct_RANLIB |
| 4803 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4804 | else |
| 4805 | RANLIB="$ac_cv_prog_RANLIB" |
| 4806 | fi |
| 4807 | |
| 4808 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4809 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 4810 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4811 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 4812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4813 | else |
| 4814 | ac_check_lib_save_LIBS=$LIBS |
| 4815 | LIBS="-lcposix $LIBS" |
| 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 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4823 | /* Override any GCC internal prototype to avoid an error. |
| 4824 | Use char because int might match the return type of a GCC |
| 4825 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4826 | #ifdef __cplusplus |
| 4827 | extern "C" |
| 4828 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4829 | char strerror (); |
| 4830 | int |
| 4831 | main () |
| 4832 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4833 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4834 | ; |
| 4835 | return 0; |
| 4836 | } |
| 4837 | _ACEOF |
| 4838 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4839 | if { (ac_try="$ac_link" |
| 4840 | case "(($ac_try" in |
| 4841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4842 | *) ac_try_echo=$ac_try;; |
| 4843 | esac |
| 4844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4845 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4846 | ac_status=$? |
| 4847 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4848 | rm -f conftest.er1 |
| 4849 | cat conftest.err >&5 |
| 4850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4851 | (exit $ac_status); } && { |
| 4852 | test -z "$ac_c_werror_flag" || |
| 4853 | test ! -s conftest.err |
| 4854 | } && test -s conftest$ac_exeext && |
| 4855 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4856 | ac_cv_lib_cposix_strerror=yes |
| 4857 | else |
| 4858 | echo "$as_me: failed program was:" >&5 |
| 4859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4860 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4861 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4862 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4863 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4864 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4865 | conftest$ac_exeext conftest.$ac_ext |
| 4866 | LIBS=$ac_check_lib_save_LIBS |
| 4867 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4868 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 4869 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4870 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 4871 | LIBS="$LIBS -lcposix" |
| 4872 | fi |
| 4873 | |
| 4874 | |
| 4875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4876 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 4877 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4878 | if test "${ac_cv_c_const+set}" = set; then |
| 4879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4880 | else |
| 4881 | cat >conftest.$ac_ext <<_ACEOF |
| 4882 | /* confdefs.h. */ |
| 4883 | _ACEOF |
| 4884 | cat confdefs.h >>conftest.$ac_ext |
| 4885 | cat >>conftest.$ac_ext <<_ACEOF |
| 4886 | /* end confdefs.h. */ |
| 4887 | |
| 4888 | int |
| 4889 | main () |
| 4890 | { |
| 4891 | /* FIXME: Include the comments suggested by Paul. */ |
| 4892 | #ifndef __cplusplus |
| 4893 | /* Ultrix mips cc rejects this. */ |
| 4894 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4895 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4896 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4897 | char const *const *pcpcc; |
| 4898 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4899 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 4900 | struct point {int x, y;}; |
| 4901 | static struct point const zero = {0,0}; |
| 4902 | /* AIX XL C 1.02.0.0 rejects this. |
| 4903 | It does not let you subtract one const X* pointer from another in |
| 4904 | an arm of an if-expression whose if-part is not a constant |
| 4905 | expression */ |
| 4906 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4907 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4908 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4909 | ++pcpcc; |
| 4910 | ppc = (char**) pcpcc; |
| 4911 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4912 | { /* SCO 3.2v4 cc rejects this. */ |
| 4913 | char *t; |
| 4914 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 4915 | |
| 4916 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4917 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4918 | } |
| 4919 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 4920 | int x[] = {25, 17}; |
| 4921 | const int *foo = &x[0]; |
| 4922 | ++foo; |
| 4923 | } |
| 4924 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 4925 | typedef const int *iptr; |
| 4926 | iptr p = 0; |
| 4927 | ++p; |
| 4928 | } |
| 4929 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 4930 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 4931 | struct s { int j; const int *ap[3]; }; |
| 4932 | struct s *b; b->j = 5; |
| 4933 | } |
| 4934 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 4935 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4936 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4937 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4938 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4939 | #endif |
| 4940 | |
| 4941 | ; |
| 4942 | return 0; |
| 4943 | } |
| 4944 | _ACEOF |
| 4945 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4946 | if { (ac_try="$ac_compile" |
| 4947 | case "(($ac_try" in |
| 4948 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4949 | *) ac_try_echo=$ac_try;; |
| 4950 | esac |
| 4951 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4952 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4953 | ac_status=$? |
| 4954 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4955 | rm -f conftest.er1 |
| 4956 | cat conftest.err >&5 |
| 4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4958 | (exit $ac_status); } && { |
| 4959 | test -z "$ac_c_werror_flag" || |
| 4960 | test ! -s conftest.err |
| 4961 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4962 | ac_cv_c_const=yes |
| 4963 | else |
| 4964 | echo "$as_me: failed program was:" >&5 |
| 4965 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4966 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4967 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4968 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4969 | |
| 4970 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4971 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4972 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 4973 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4974 | if test $ac_cv_c_const = no; then |
| 4975 | |
| 4976 | cat >>confdefs.h <<\_ACEOF |
| 4977 | #define const |
| 4978 | _ACEOF |
| 4979 | |
| 4980 | fi |
| 4981 | |
| 4982 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4983 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 4984 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4985 | if test "${bh_cv_c_signed+set}" = set; then |
| 4986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4987 | else |
| 4988 | cat >conftest.$ac_ext <<_ACEOF |
| 4989 | /* confdefs.h. */ |
| 4990 | _ACEOF |
| 4991 | cat confdefs.h >>conftest.$ac_ext |
| 4992 | cat >>conftest.$ac_ext <<_ACEOF |
| 4993 | /* end confdefs.h. */ |
| 4994 | |
| 4995 | int |
| 4996 | main () |
| 4997 | { |
| 4998 | signed char x; |
| 4999 | ; |
| 5000 | return 0; |
| 5001 | } |
| 5002 | _ACEOF |
| 5003 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5004 | if { (ac_try="$ac_compile" |
| 5005 | case "(($ac_try" in |
| 5006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5007 | *) ac_try_echo=$ac_try;; |
| 5008 | esac |
| 5009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5010 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5011 | ac_status=$? |
| 5012 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5013 | rm -f conftest.er1 |
| 5014 | cat conftest.err >&5 |
| 5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5016 | (exit $ac_status); } && { |
| 5017 | test -z "$ac_c_werror_flag" || |
| 5018 | test ! -s conftest.err |
| 5019 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5020 | bh_cv_c_signed=yes |
| 5021 | else |
| 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5025 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5026 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5027 | |
| 5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5029 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5030 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5031 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5032 | if test $bh_cv_c_signed = no; then |
| 5033 | |
| 5034 | cat >>confdefs.h <<\_ACEOF |
| 5035 | #define signed |
| 5036 | _ACEOF |
| 5037 | |
| 5038 | fi |
| 5039 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5040 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5041 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5042 | if test "${ac_cv_c_inline+set}" = set; then |
| 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5044 | else |
| 5045 | ac_cv_c_inline=no |
| 5046 | for ac_kw in inline __inline__ __inline; do |
| 5047 | cat >conftest.$ac_ext <<_ACEOF |
| 5048 | /* confdefs.h. */ |
| 5049 | _ACEOF |
| 5050 | cat confdefs.h >>conftest.$ac_ext |
| 5051 | cat >>conftest.$ac_ext <<_ACEOF |
| 5052 | /* end confdefs.h. */ |
| 5053 | #ifndef __cplusplus |
| 5054 | typedef int foo_t; |
| 5055 | static $ac_kw foo_t static_foo () {return 0; } |
| 5056 | $ac_kw foo_t foo () {return 0; } |
| 5057 | #endif |
| 5058 | |
| 5059 | _ACEOF |
| 5060 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5061 | if { (ac_try="$ac_compile" |
| 5062 | case "(($ac_try" in |
| 5063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5064 | *) ac_try_echo=$ac_try;; |
| 5065 | esac |
| 5066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5067 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5068 | ac_status=$? |
| 5069 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5070 | rm -f conftest.er1 |
| 5071 | cat conftest.err >&5 |
| 5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5073 | (exit $ac_status); } && { |
| 5074 | test -z "$ac_c_werror_flag" || |
| 5075 | test ! -s conftest.err |
| 5076 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5077 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5078 | else |
| 5079 | echo "$as_me: failed program was:" >&5 |
| 5080 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5081 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5082 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5083 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5084 | |
| 5085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5086 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5087 | done |
| 5088 | |
| 5089 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5090 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5091 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5092 | |
| 5093 | |
| 5094 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5095 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5096 | *) |
| 5097 | case $ac_cv_c_inline in |
| 5098 | no) ac_val=;; |
| 5099 | *) ac_val=$ac_cv_c_inline;; |
| 5100 | esac |
| 5101 | cat >>confdefs.h <<_ACEOF |
| 5102 | #ifndef __cplusplus |
| 5103 | #define inline $ac_val |
| 5104 | #endif |
| 5105 | _ACEOF |
| 5106 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5107 | esac |
| 5108 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5109 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5110 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5111 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5113 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5114 | cat >conftest.$ac_ext <<_ACEOF |
| 5115 | /* confdefs.h. */ |
| 5116 | _ACEOF |
| 5117 | cat confdefs.h >>conftest.$ac_ext |
| 5118 | cat >>conftest.$ac_ext <<_ACEOF |
| 5119 | /* end confdefs.h. */ |
| 5120 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5121 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5122 | int |
| 5123 | main () |
| 5124 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5125 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5126 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5127 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5128 | return 0; |
| 5129 | ; |
| 5130 | return 0; |
| 5131 | } |
| 5132 | _ACEOF |
| 5133 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5134 | if { (ac_try="$ac_compile" |
| 5135 | case "(($ac_try" in |
| 5136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5137 | *) ac_try_echo=$ac_try;; |
| 5138 | esac |
| 5139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5140 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5141 | ac_status=$? |
| 5142 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5143 | rm -f conftest.er1 |
| 5144 | cat conftest.err >&5 |
| 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5146 | (exit $ac_status); } && { |
| 5147 | test -z "$ac_c_werror_flag" || |
| 5148 | test ! -s conftest.err |
| 5149 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5150 | ac_cv_type_off_t=yes |
| 5151 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5152 | echo "$as_me: failed program was:" >&5 |
| 5153 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5154 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5155 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5156 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5157 | |
| 5158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5159 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5160 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5161 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5162 | if test $ac_cv_type_off_t = yes; then |
| 5163 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5164 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5165 | |
| 5166 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5167 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5168 | _ACEOF |
| 5169 | |
| 5170 | fi |
| 5171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5172 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5173 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5174 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5176 | else |
| 5177 | cat >conftest.$ac_ext <<_ACEOF |
| 5178 | /* confdefs.h. */ |
| 5179 | _ACEOF |
| 5180 | cat confdefs.h >>conftest.$ac_ext |
| 5181 | cat >>conftest.$ac_ext <<_ACEOF |
| 5182 | /* end confdefs.h. */ |
| 5183 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5184 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5185 | int |
| 5186 | main () |
| 5187 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5188 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5189 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5190 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5191 | return 0; |
| 5192 | ; |
| 5193 | return 0; |
| 5194 | } |
| 5195 | _ACEOF |
| 5196 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5197 | if { (ac_try="$ac_compile" |
| 5198 | case "(($ac_try" in |
| 5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5200 | *) ac_try_echo=$ac_try;; |
| 5201 | esac |
| 5202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5203 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5204 | ac_status=$? |
| 5205 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5206 | rm -f conftest.er1 |
| 5207 | cat conftest.err >&5 |
| 5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5209 | (exit $ac_status); } && { |
| 5210 | test -z "$ac_c_werror_flag" || |
| 5211 | test ! -s conftest.err |
| 5212 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5213 | ac_cv_type_size_t=yes |
| 5214 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5215 | echo "$as_me: failed program was:" >&5 |
| 5216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5217 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5218 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5219 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5220 | |
| 5221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5222 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5223 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5224 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5225 | if test $ac_cv_type_size_t = yes; then |
| 5226 | : |
| 5227 | else |
| 5228 | |
| 5229 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5230 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5231 | _ACEOF |
| 5232 | |
| 5233 | fi |
| 5234 | |
| 5235 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5236 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5237 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5238 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5240 | else |
| 5241 | cat >conftest.$ac_ext <<_ACEOF |
| 5242 | /* confdefs.h. */ |
| 5243 | _ACEOF |
| 5244 | cat confdefs.h >>conftest.$ac_ext |
| 5245 | cat >>conftest.$ac_ext <<_ACEOF |
| 5246 | /* end confdefs.h. */ |
| 5247 | long long ll = 1LL; int i = 63; |
| 5248 | int |
| 5249 | main () |
| 5250 | { |
| 5251 | long long llmax = (long long) -1; |
| 5252 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5253 | ; |
| 5254 | return 0; |
| 5255 | } |
| 5256 | _ACEOF |
| 5257 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5258 | if { (ac_try="$ac_link" |
| 5259 | case "(($ac_try" in |
| 5260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5261 | *) ac_try_echo=$ac_try;; |
| 5262 | esac |
| 5263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5264 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5265 | ac_status=$? |
| 5266 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5267 | rm -f conftest.er1 |
| 5268 | cat conftest.err >&5 |
| 5269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5270 | (exit $ac_status); } && { |
| 5271 | test -z "$ac_c_werror_flag" || |
| 5272 | test ! -s conftest.err |
| 5273 | } && test -s conftest$ac_exeext && |
| 5274 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5275 | ac_cv_type_long_long=yes |
| 5276 | else |
| 5277 | echo "$as_me: failed program was:" >&5 |
| 5278 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5279 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5280 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5281 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5282 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5283 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5284 | conftest$ac_exeext conftest.$ac_ext |
| 5285 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5286 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5287 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5288 | if test $ac_cv_type_long_long = yes; then |
| 5289 | |
| 5290 | cat >>confdefs.h <<\_ACEOF |
| 5291 | #define HAVE_LONG_LONG 1 |
| 5292 | _ACEOF |
| 5293 | |
| 5294 | fi |
| 5295 | |
| 5296 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5297 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5298 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5299 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5301 | else |
| 5302 | if test "$GCC" = yes; then |
| 5303 | gt_cv_c_long_double=yes |
| 5304 | else |
| 5305 | cat >conftest.$ac_ext <<_ACEOF |
| 5306 | /* confdefs.h. */ |
| 5307 | _ACEOF |
| 5308 | cat confdefs.h >>conftest.$ac_ext |
| 5309 | cat >>conftest.$ac_ext <<_ACEOF |
| 5310 | /* end confdefs.h. */ |
| 5311 | |
| 5312 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5313 | long double foo = 0.0; |
| 5314 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5315 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5316 | |
| 5317 | int |
| 5318 | main () |
| 5319 | { |
| 5320 | |
| 5321 | ; |
| 5322 | return 0; |
| 5323 | } |
| 5324 | _ACEOF |
| 5325 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5326 | if { (ac_try="$ac_compile" |
| 5327 | case "(($ac_try" in |
| 5328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5329 | *) ac_try_echo=$ac_try;; |
| 5330 | esac |
| 5331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5332 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5333 | ac_status=$? |
| 5334 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5335 | rm -f conftest.er1 |
| 5336 | cat conftest.err >&5 |
| 5337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5338 | (exit $ac_status); } && { |
| 5339 | test -z "$ac_c_werror_flag" || |
| 5340 | test ! -s conftest.err |
| 5341 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5342 | gt_cv_c_long_double=yes |
| 5343 | else |
| 5344 | echo "$as_me: failed program was:" >&5 |
| 5345 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5346 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5347 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5349 | |
| 5350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5351 | fi |
| 5352 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5354 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5355 | if test $gt_cv_c_long_double = yes; then |
| 5356 | |
| 5357 | cat >>confdefs.h <<\_ACEOF |
| 5358 | #define HAVE_LONG_DOUBLE 1 |
| 5359 | _ACEOF |
| 5360 | |
| 5361 | fi |
| 5362 | |
| 5363 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5364 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5365 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5366 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5368 | else |
| 5369 | cat >conftest.$ac_ext <<_ACEOF |
| 5370 | /* confdefs.h. */ |
| 5371 | _ACEOF |
| 5372 | cat confdefs.h >>conftest.$ac_ext |
| 5373 | cat >>conftest.$ac_ext <<_ACEOF |
| 5374 | /* end confdefs.h. */ |
| 5375 | #include <stddef.h> |
| 5376 | wchar_t foo = (wchar_t)'\0'; |
| 5377 | int |
| 5378 | main () |
| 5379 | { |
| 5380 | |
| 5381 | ; |
| 5382 | return 0; |
| 5383 | } |
| 5384 | _ACEOF |
| 5385 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5386 | if { (ac_try="$ac_compile" |
| 5387 | case "(($ac_try" in |
| 5388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5389 | *) ac_try_echo=$ac_try;; |
| 5390 | esac |
| 5391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5392 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5393 | ac_status=$? |
| 5394 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5395 | rm -f conftest.er1 |
| 5396 | cat conftest.err >&5 |
| 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5398 | (exit $ac_status); } && { |
| 5399 | test -z "$ac_c_werror_flag" || |
| 5400 | test ! -s conftest.err |
| 5401 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5402 | gt_cv_c_wchar_t=yes |
| 5403 | else |
| 5404 | echo "$as_me: failed program was:" >&5 |
| 5405 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5406 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5407 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5408 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5409 | |
| 5410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5411 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5412 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5413 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5414 | if test $gt_cv_c_wchar_t = yes; then |
| 5415 | |
| 5416 | cat >>confdefs.h <<\_ACEOF |
| 5417 | #define HAVE_WCHAR_T 1 |
| 5418 | _ACEOF |
| 5419 | |
| 5420 | fi |
| 5421 | |
| 5422 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5423 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5424 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5425 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5427 | else |
| 5428 | cat >conftest.$ac_ext <<_ACEOF |
| 5429 | /* confdefs.h. */ |
| 5430 | _ACEOF |
| 5431 | cat confdefs.h >>conftest.$ac_ext |
| 5432 | cat >>conftest.$ac_ext <<_ACEOF |
| 5433 | /* end confdefs.h. */ |
| 5434 | #include <wchar.h> |
| 5435 | wint_t foo = (wchar_t)'\0'; |
| 5436 | int |
| 5437 | main () |
| 5438 | { |
| 5439 | |
| 5440 | ; |
| 5441 | return 0; |
| 5442 | } |
| 5443 | _ACEOF |
| 5444 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5445 | if { (ac_try="$ac_compile" |
| 5446 | case "(($ac_try" in |
| 5447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5448 | *) ac_try_echo=$ac_try;; |
| 5449 | esac |
| 5450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5451 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5452 | ac_status=$? |
| 5453 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5454 | rm -f conftest.er1 |
| 5455 | cat conftest.err >&5 |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5457 | (exit $ac_status); } && { |
| 5458 | test -z "$ac_c_werror_flag" || |
| 5459 | test ! -s conftest.err |
| 5460 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5461 | gt_cv_c_wint_t=yes |
| 5462 | else |
| 5463 | echo "$as_me: failed program was:" >&5 |
| 5464 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5465 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5466 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5467 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5468 | |
| 5469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5470 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5471 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5472 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5473 | if test $gt_cv_c_wint_t = yes; then |
| 5474 | |
| 5475 | cat >>confdefs.h <<\_ACEOF |
| 5476 | #define HAVE_WINT_T 1 |
| 5477 | _ACEOF |
| 5478 | |
| 5479 | fi |
| 5480 | |
| 5481 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5482 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5483 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5484 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5486 | else |
| 5487 | cat >conftest.$ac_ext <<_ACEOF |
| 5488 | /* confdefs.h. */ |
| 5489 | _ACEOF |
| 5490 | cat confdefs.h >>conftest.$ac_ext |
| 5491 | cat >>conftest.$ac_ext <<_ACEOF |
| 5492 | /* end confdefs.h. */ |
| 5493 | #include <sys/types.h> |
| 5494 | #include <inttypes.h> |
| 5495 | int |
| 5496 | main () |
| 5497 | { |
| 5498 | uintmax_t i = (uintmax_t) -1; |
| 5499 | ; |
| 5500 | return 0; |
| 5501 | } |
| 5502 | _ACEOF |
| 5503 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5504 | if { (ac_try="$ac_compile" |
| 5505 | case "(($ac_try" in |
| 5506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5507 | *) ac_try_echo=$ac_try;; |
| 5508 | esac |
| 5509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5510 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5511 | ac_status=$? |
| 5512 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5513 | rm -f conftest.er1 |
| 5514 | cat conftest.err >&5 |
| 5515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5516 | (exit $ac_status); } && { |
| 5517 | test -z "$ac_c_werror_flag" || |
| 5518 | test ! -s conftest.err |
| 5519 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5520 | jm_ac_cv_header_inttypes_h=yes |
| 5521 | else |
| 5522 | echo "$as_me: failed program was:" >&5 |
| 5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5524 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5525 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5526 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5527 | |
| 5528 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5529 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5530 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5531 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5532 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5533 | |
| 5534 | cat >>confdefs.h <<_ACEOF |
| 5535 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5536 | _ACEOF |
| 5537 | |
| 5538 | fi |
| 5539 | |
| 5540 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5541 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5542 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5543 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5545 | else |
| 5546 | cat >conftest.$ac_ext <<_ACEOF |
| 5547 | /* confdefs.h. */ |
| 5548 | _ACEOF |
| 5549 | cat confdefs.h >>conftest.$ac_ext |
| 5550 | cat >>conftest.$ac_ext <<_ACEOF |
| 5551 | /* end confdefs.h. */ |
| 5552 | #include <sys/types.h> |
| 5553 | #include <stdint.h> |
| 5554 | int |
| 5555 | main () |
| 5556 | { |
| 5557 | uintmax_t i = (uintmax_t) -1; |
| 5558 | ; |
| 5559 | return 0; |
| 5560 | } |
| 5561 | _ACEOF |
| 5562 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5563 | if { (ac_try="$ac_compile" |
| 5564 | case "(($ac_try" in |
| 5565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5566 | *) ac_try_echo=$ac_try;; |
| 5567 | esac |
| 5568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5569 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5570 | ac_status=$? |
| 5571 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5572 | rm -f conftest.er1 |
| 5573 | cat conftest.err >&5 |
| 5574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5575 | (exit $ac_status); } && { |
| 5576 | test -z "$ac_c_werror_flag" || |
| 5577 | test ! -s conftest.err |
| 5578 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5579 | jm_ac_cv_header_stdint_h=yes |
| 5580 | else |
| 5581 | echo "$as_me: failed program was:" >&5 |
| 5582 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5584 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5585 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5586 | |
| 5587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5589 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5590 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5591 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5592 | |
| 5593 | cat >>confdefs.h <<_ACEOF |
| 5594 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5595 | _ACEOF |
| 5596 | |
| 5597 | fi |
| 5598 | |
| 5599 | |
| 5600 | |
| 5601 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5602 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5603 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5604 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5606 | else |
| 5607 | cat >conftest.$ac_ext <<_ACEOF |
| 5608 | /* confdefs.h. */ |
| 5609 | _ACEOF |
| 5610 | cat confdefs.h >>conftest.$ac_ext |
| 5611 | cat >>conftest.$ac_ext <<_ACEOF |
| 5612 | /* end confdefs.h. */ |
| 5613 | |
| 5614 | #include <stddef.h> |
| 5615 | #include <stdlib.h> |
| 5616 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5617 | #include <stdint.h> |
| 5618 | #endif |
| 5619 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5620 | #include <inttypes.h> |
| 5621 | #endif |
| 5622 | |
| 5623 | int |
| 5624 | main () |
| 5625 | { |
| 5626 | intmax_t x = -1; |
| 5627 | ; |
| 5628 | return 0; |
| 5629 | } |
| 5630 | _ACEOF |
| 5631 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5632 | if { (ac_try="$ac_compile" |
| 5633 | case "(($ac_try" in |
| 5634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5635 | *) ac_try_echo=$ac_try;; |
| 5636 | esac |
| 5637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5638 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5639 | ac_status=$? |
| 5640 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5641 | rm -f conftest.er1 |
| 5642 | cat conftest.err >&5 |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5644 | (exit $ac_status); } && { |
| 5645 | test -z "$ac_c_werror_flag" || |
| 5646 | test ! -s conftest.err |
| 5647 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5648 | gt_cv_c_intmax_t=yes |
| 5649 | else |
| 5650 | echo "$as_me: failed program was:" >&5 |
| 5651 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5652 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5653 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5655 | |
| 5656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5657 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5658 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5659 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5660 | if test $gt_cv_c_intmax_t = yes; then |
| 5661 | |
| 5662 | cat >>confdefs.h <<\_ACEOF |
| 5663 | #define HAVE_INTMAX_T 1 |
| 5664 | _ACEOF |
| 5665 | |
| 5666 | fi |
| 5667 | |
| 5668 | |
| 5669 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5670 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5671 | echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5672 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5674 | else |
| 5675 | |
| 5676 | if test "$cross_compiling" = yes; then |
| 5677 | |
| 5678 | cat >conftest.$ac_ext <<_ACEOF |
| 5679 | /* confdefs.h. */ |
| 5680 | _ACEOF |
| 5681 | cat confdefs.h >>conftest.$ac_ext |
| 5682 | cat >>conftest.$ac_ext <<_ACEOF |
| 5683 | /* end confdefs.h. */ |
| 5684 | |
| 5685 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5686 | notposix |
| 5687 | #endif |
| 5688 | |
| 5689 | _ACEOF |
| 5690 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5691 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5692 | gt_cv_func_printf_posix="guessing no" |
| 5693 | else |
| 5694 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5695 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5696 | rm -f conftest* |
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 | |
| 5699 | else |
| 5700 | cat >conftest.$ac_ext <<_ACEOF |
| 5701 | /* confdefs.h. */ |
| 5702 | _ACEOF |
| 5703 | cat confdefs.h >>conftest.$ac_ext |
| 5704 | cat >>conftest.$ac_ext <<_ACEOF |
| 5705 | /* end confdefs.h. */ |
| 5706 | |
| 5707 | #include <stdio.h> |
| 5708 | #include <string.h> |
| 5709 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5710 | dollar expansion (possibly an autoconf bug). */ |
| 5711 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5712 | static char buf[100]; |
| 5713 | int main () |
| 5714 | { |
| 5715 | sprintf (buf, format, 33, 55); |
| 5716 | return (strcmp (buf, "55 33") != 0); |
| 5717 | } |
| 5718 | _ACEOF |
| 5719 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5720 | if { (ac_try="$ac_link" |
| 5721 | case "(($ac_try" in |
| 5722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5723 | *) ac_try_echo=$ac_try;; |
| 5724 | esac |
| 5725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5726 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5727 | ac_status=$? |
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5730 | { (case "(($ac_try" in |
| 5731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5732 | *) ac_try_echo=$ac_try;; |
| 5733 | esac |
| 5734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5735 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5736 | ac_status=$? |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); }; }; then |
| 5739 | gt_cv_func_printf_posix=yes |
| 5740 | else |
| 5741 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5742 | echo "$as_me: failed program was:" >&5 |
| 5743 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5744 | |
| 5745 | ( exit $ac_status ) |
| 5746 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5747 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5749 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5750 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5751 | |
| 5752 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5753 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5754 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 5755 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5756 | case $gt_cv_func_printf_posix in |
| 5757 | *yes) |
| 5758 | |
| 5759 | cat >>confdefs.h <<\_ACEOF |
| 5760 | #define HAVE_POSIX_PRINTF 1 |
| 5761 | _ACEOF |
| 5762 | |
| 5763 | ;; |
| 5764 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5765 | |
| 5766 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 5767 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5768 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 5769 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5770 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 5771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5772 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5773 | cat >conftest.$ac_ext <<_ACEOF |
| 5774 | /* confdefs.h. */ |
| 5775 | _ACEOF |
| 5776 | cat confdefs.h >>conftest.$ac_ext |
| 5777 | cat >>conftest.$ac_ext <<_ACEOF |
| 5778 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5779 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5780 | int |
| 5781 | main () |
| 5782 | { |
| 5783 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5784 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5785 | ; |
| 5786 | return 0; |
| 5787 | } |
| 5788 | _ACEOF |
| 5789 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5790 | if { (ac_try="$ac_link" |
| 5791 | case "(($ac_try" in |
| 5792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5793 | *) ac_try_echo=$ac_try;; |
| 5794 | esac |
| 5795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5796 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5797 | ac_status=$? |
| 5798 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5799 | rm -f conftest.er1 |
| 5800 | cat conftest.err >&5 |
| 5801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5802 | (exit $ac_status); } && { |
| 5803 | test -z "$ac_c_werror_flag" || |
| 5804 | test ! -s conftest.err |
| 5805 | } && test -s conftest$ac_exeext && |
| 5806 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5807 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5808 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5809 | echo "$as_me: failed program was:" >&5 |
| 5810 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5811 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5812 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5813 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5814 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5815 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5816 | conftest$ac_exeext conftest.$ac_ext |
| 5817 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5818 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 5819 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5820 | if test $ac_cv_working_alloca_h = yes; then |
| 5821 | |
| 5822 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5823 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5824 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5825 | |
| 5826 | fi |
| 5827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5828 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 5829 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5830 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 5831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5832 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5833 | cat >conftest.$ac_ext <<_ACEOF |
| 5834 | /* confdefs.h. */ |
| 5835 | _ACEOF |
| 5836 | cat confdefs.h >>conftest.$ac_ext |
| 5837 | cat >>conftest.$ac_ext <<_ACEOF |
| 5838 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5839 | #ifdef __GNUC__ |
| 5840 | # define alloca __builtin_alloca |
| 5841 | #else |
| 5842 | # ifdef _MSC_VER |
| 5843 | # include <malloc.h> |
| 5844 | # define alloca _alloca |
| 5845 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5846 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5847 | # include <alloca.h> |
| 5848 | # else |
| 5849 | # ifdef _AIX |
| 5850 | #pragma alloca |
| 5851 | # else |
| 5852 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 5853 | char *alloca (); |
| 5854 | # endif |
| 5855 | # endif |
| 5856 | # endif |
| 5857 | # endif |
| 5858 | #endif |
| 5859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5860 | int |
| 5861 | main () |
| 5862 | { |
| 5863 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5864 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5865 | ; |
| 5866 | return 0; |
| 5867 | } |
| 5868 | _ACEOF |
| 5869 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5870 | if { (ac_try="$ac_link" |
| 5871 | case "(($ac_try" in |
| 5872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5873 | *) ac_try_echo=$ac_try;; |
| 5874 | esac |
| 5875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5876 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5877 | ac_status=$? |
| 5878 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5879 | rm -f conftest.er1 |
| 5880 | cat conftest.err >&5 |
| 5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5882 | (exit $ac_status); } && { |
| 5883 | test -z "$ac_c_werror_flag" || |
| 5884 | test ! -s conftest.err |
| 5885 | } && test -s conftest$ac_exeext && |
| 5886 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5887 | ac_cv_func_alloca_works=yes |
| 5888 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5889 | echo "$as_me: failed program was:" >&5 |
| 5890 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5892 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5893 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5894 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5895 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5896 | conftest$ac_exeext conftest.$ac_ext |
| 5897 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5898 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 5899 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5900 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5901 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5902 | |
| 5903 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5904 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5905 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5906 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5907 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5908 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 5909 | # that cause trouble. Some versions do not even contain alloca or |
| 5910 | # contain a buggy version. If you still want to use their alloca, |
| 5911 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 5912 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5913 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5914 | |
| 5915 | cat >>confdefs.h <<\_ACEOF |
| 5916 | #define C_ALLOCA 1 |
| 5917 | _ACEOF |
| 5918 | |
| 5919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5920 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 5921 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5922 | if test "${ac_cv_os_cray+set}" = set; then |
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5924 | else |
| 5925 | cat >conftest.$ac_ext <<_ACEOF |
| 5926 | /* confdefs.h. */ |
| 5927 | _ACEOF |
| 5928 | cat confdefs.h >>conftest.$ac_ext |
| 5929 | cat >>conftest.$ac_ext <<_ACEOF |
| 5930 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5931 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5932 | webecray |
| 5933 | #else |
| 5934 | wenotbecray |
| 5935 | #endif |
| 5936 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5937 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5939 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5940 | ac_cv_os_cray=yes |
| 5941 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5942 | ac_cv_os_cray=no |
| 5943 | fi |
| 5944 | rm -f conftest* |
| 5945 | |
| 5946 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5947 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 5948 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5949 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5950 | for ac_func in _getb67 GETB67 getb67; do |
| 5951 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5952 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5953 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 5954 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5956 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5957 | cat >conftest.$ac_ext <<_ACEOF |
| 5958 | /* confdefs.h. */ |
| 5959 | _ACEOF |
| 5960 | cat confdefs.h >>conftest.$ac_ext |
| 5961 | cat >>conftest.$ac_ext <<_ACEOF |
| 5962 | /* end confdefs.h. */ |
| 5963 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 5964 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 5965 | #define $ac_func innocuous_$ac_func |
| 5966 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5967 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5968 | which can conflict with char $ac_func (); below. |
| 5969 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5970 | <limits.h> exists even on freestanding compilers. */ |
| 5971 | |
| 5972 | #ifdef __STDC__ |
| 5973 | # include <limits.h> |
| 5974 | #else |
| 5975 | # include <assert.h> |
| 5976 | #endif |
| 5977 | |
| 5978 | #undef $ac_func |
| 5979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5980 | /* Override any GCC internal prototype to avoid an error. |
| 5981 | Use char because int might match the return type of a GCC |
| 5982 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5983 | #ifdef __cplusplus |
| 5984 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5985 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5986 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5987 | /* The GNU C library defines this for functions which it implements |
| 5988 | to always fail with ENOSYS. Some functions are actually named |
| 5989 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5990 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5991 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5992 | #endif |
| 5993 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5994 | int |
| 5995 | main () |
| 5996 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5997 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5998 | ; |
| 5999 | return 0; |
| 6000 | } |
| 6001 | _ACEOF |
| 6002 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6003 | if { (ac_try="$ac_link" |
| 6004 | case "(($ac_try" in |
| 6005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6006 | *) ac_try_echo=$ac_try;; |
| 6007 | esac |
| 6008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6009 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6010 | ac_status=$? |
| 6011 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6012 | rm -f conftest.er1 |
| 6013 | cat conftest.err >&5 |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6015 | (exit $ac_status); } && { |
| 6016 | test -z "$ac_c_werror_flag" || |
| 6017 | test ! -s conftest.err |
| 6018 | } && test -s conftest$ac_exeext && |
| 6019 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6020 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6021 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6022 | echo "$as_me: failed program was:" >&5 |
| 6023 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6025 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6026 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6027 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6028 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6029 | conftest$ac_exeext conftest.$ac_ext |
| 6030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6031 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6033 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6034 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6035 | |
| 6036 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6037 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6038 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6039 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6040 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6041 | fi |
| 6042 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6043 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6044 | fi |
| 6045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6046 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6047 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6048 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6050 | else |
| 6051 | if test "$cross_compiling" = yes; then |
| 6052 | ac_cv_c_stack_direction=0 |
| 6053 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | cat >conftest.$ac_ext <<_ACEOF |
| 6055 | /* confdefs.h. */ |
| 6056 | _ACEOF |
| 6057 | cat confdefs.h >>conftest.$ac_ext |
| 6058 | cat >>conftest.$ac_ext <<_ACEOF |
| 6059 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6060 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6061 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6062 | find_stack_direction () |
| 6063 | { |
| 6064 | static char *addr = 0; |
| 6065 | auto char dummy; |
| 6066 | if (addr == 0) |
| 6067 | { |
| 6068 | addr = &dummy; |
| 6069 | return find_stack_direction (); |
| 6070 | } |
| 6071 | else |
| 6072 | return (&dummy > addr) ? 1 : -1; |
| 6073 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6074 | |
| 6075 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6076 | main () |
| 6077 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6078 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6079 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6080 | _ACEOF |
| 6081 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6082 | if { (ac_try="$ac_link" |
| 6083 | case "(($ac_try" in |
| 6084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6085 | *) ac_try_echo=$ac_try;; |
| 6086 | esac |
| 6087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6088 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6089 | ac_status=$? |
| 6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6092 | { (case "(($ac_try" in |
| 6093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6094 | *) ac_try_echo=$ac_try;; |
| 6095 | esac |
| 6096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6097 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6101 | ac_cv_c_stack_direction=1 |
| 6102 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6103 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6104 | echo "$as_me: failed program was:" >&5 |
| 6105 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6107 | ( exit $ac_status ) |
| 6108 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6109 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6110 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6111 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6112 | |
| 6113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6114 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6115 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6116 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6117 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6118 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6119 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6120 | _ACEOF |
| 6121 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6122 | |
| 6123 | fi |
| 6124 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6125 | |
| 6126 | |
| 6127 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6128 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6130 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6131 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6135 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6136 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6137 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6138 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6139 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6140 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6141 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6142 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6143 | cat >conftest.$ac_ext <<_ACEOF |
| 6144 | /* confdefs.h. */ |
| 6145 | _ACEOF |
| 6146 | cat confdefs.h >>conftest.$ac_ext |
| 6147 | cat >>conftest.$ac_ext <<_ACEOF |
| 6148 | /* end confdefs.h. */ |
| 6149 | $ac_includes_default |
| 6150 | #include <$ac_header> |
| 6151 | _ACEOF |
| 6152 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6153 | if { (ac_try="$ac_compile" |
| 6154 | case "(($ac_try" in |
| 6155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6156 | *) ac_try_echo=$ac_try;; |
| 6157 | esac |
| 6158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6159 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6160 | ac_status=$? |
| 6161 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6162 | rm -f conftest.er1 |
| 6163 | cat conftest.err >&5 |
| 6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6165 | (exit $ac_status); } && { |
| 6166 | test -z "$ac_c_werror_flag" || |
| 6167 | test ! -s conftest.err |
| 6168 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6169 | ac_header_compiler=yes |
| 6170 | else |
| 6171 | echo "$as_me: failed program was:" >&5 |
| 6172 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6173 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6174 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6175 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6176 | |
| 6177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6178 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6179 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6180 | |
| 6181 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6182 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6184 | cat >conftest.$ac_ext <<_ACEOF |
| 6185 | /* confdefs.h. */ |
| 6186 | _ACEOF |
| 6187 | cat confdefs.h >>conftest.$ac_ext |
| 6188 | cat >>conftest.$ac_ext <<_ACEOF |
| 6189 | /* end confdefs.h. */ |
| 6190 | #include <$ac_header> |
| 6191 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6192 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6193 | case "(($ac_try" in |
| 6194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6195 | *) ac_try_echo=$ac_try;; |
| 6196 | esac |
| 6197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6198 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6199 | ac_status=$? |
| 6200 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6201 | rm -f conftest.er1 |
| 6202 | cat conftest.err >&5 |
| 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6204 | (exit $ac_status); } >/dev/null && { |
| 6205 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6206 | test ! -s conftest.err |
| 6207 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6208 | ac_header_preproc=yes |
| 6209 | else |
| 6210 | echo "$as_me: failed program was:" >&5 |
| 6211 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6212 | |
| 6213 | ac_header_preproc=no |
| 6214 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6215 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6217 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6218 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6219 | |
| 6220 | # So? What about this header? |
| 6221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6222 | yes:no: ) |
| 6223 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6224 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6225 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6226 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6227 | ac_header_preproc=yes |
| 6228 | ;; |
| 6229 | no:yes:* ) |
| 6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6231 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6232 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6233 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6234 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6235 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6236 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6237 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6238 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6239 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6240 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6241 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6242 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6243 | ;; |
| 6244 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6245 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6246 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6247 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6249 | else |
| 6250 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6251 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6252 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6253 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6254 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6255 | |
| 6256 | fi |
| 6257 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6258 | cat >>confdefs.h <<_ACEOF |
| 6259 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6260 | _ACEOF |
| 6261 | |
| 6262 | fi |
| 6263 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6264 | done |
| 6265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6266 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6267 | for ac_func in getpagesize |
| 6268 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6269 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6270 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6271 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6272 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6273 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6274 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | cat >conftest.$ac_ext <<_ACEOF |
| 6276 | /* confdefs.h. */ |
| 6277 | _ACEOF |
| 6278 | cat confdefs.h >>conftest.$ac_ext |
| 6279 | cat >>conftest.$ac_ext <<_ACEOF |
| 6280 | /* end confdefs.h. */ |
| 6281 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6282 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6283 | #define $ac_func innocuous_$ac_func |
| 6284 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6285 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6286 | which can conflict with char $ac_func (); below. |
| 6287 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6288 | <limits.h> exists even on freestanding compilers. */ |
| 6289 | |
| 6290 | #ifdef __STDC__ |
| 6291 | # include <limits.h> |
| 6292 | #else |
| 6293 | # include <assert.h> |
| 6294 | #endif |
| 6295 | |
| 6296 | #undef $ac_func |
| 6297 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6298 | /* Override any GCC internal prototype to avoid an error. |
| 6299 | Use char because int might match the return type of a GCC |
| 6300 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6301 | #ifdef __cplusplus |
| 6302 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6303 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6304 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6305 | /* The GNU C library defines this for functions which it implements |
| 6306 | to always fail with ENOSYS. Some functions are actually named |
| 6307 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6308 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6309 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6310 | #endif |
| 6311 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6312 | int |
| 6313 | main () |
| 6314 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6315 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6316 | ; |
| 6317 | return 0; |
| 6318 | } |
| 6319 | _ACEOF |
| 6320 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6321 | if { (ac_try="$ac_link" |
| 6322 | case "(($ac_try" in |
| 6323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6324 | *) ac_try_echo=$ac_try;; |
| 6325 | esac |
| 6326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6327 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6328 | ac_status=$? |
| 6329 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6330 | rm -f conftest.er1 |
| 6331 | cat conftest.err >&5 |
| 6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6333 | (exit $ac_status); } && { |
| 6334 | test -z "$ac_c_werror_flag" || |
| 6335 | test ! -s conftest.err |
| 6336 | } && test -s conftest$ac_exeext && |
| 6337 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6338 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6339 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6340 | echo "$as_me: failed program was:" >&5 |
| 6341 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6343 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6344 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6345 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6346 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6347 | conftest$ac_exeext conftest.$ac_ext |
| 6348 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6349 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6350 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6351 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6352 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6353 | cat >>confdefs.h <<_ACEOF |
| 6354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6355 | _ACEOF |
| 6356 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6357 | fi |
| 6358 | done |
| 6359 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6360 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6361 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6362 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6363 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6364 | else |
| 6365 | if test "$cross_compiling" = yes; then |
| 6366 | ac_cv_func_mmap_fixed_mapped=no |
| 6367 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6368 | cat >conftest.$ac_ext <<_ACEOF |
| 6369 | /* confdefs.h. */ |
| 6370 | _ACEOF |
| 6371 | cat confdefs.h >>conftest.$ac_ext |
| 6372 | cat >>conftest.$ac_ext <<_ACEOF |
| 6373 | /* end confdefs.h. */ |
| 6374 | $ac_includes_default |
| 6375 | /* malloc might have been renamed as rpl_malloc. */ |
| 6376 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6377 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6378 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6379 | Here is a matrix of mmap possibilities: |
| 6380 | mmap private not fixed |
| 6381 | mmap private fixed at somewhere currently unmapped |
| 6382 | mmap private fixed at somewhere already mapped |
| 6383 | mmap shared not fixed |
| 6384 | mmap shared fixed at somewhere currently unmapped |
| 6385 | mmap shared fixed at somewhere already mapped |
| 6386 | For private mappings, we should verify that changes cannot be read() |
| 6387 | back from the file, nor mmap's back from the file at a different |
| 6388 | address. (There have been systems where private was not correctly |
| 6389 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6390 | 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] | 6391 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6392 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6393 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6394 | |
| 6395 | Grep wants private fixed already mapped. |
| 6396 | The main things grep needs to know about mmap are: |
| 6397 | * does it exist and is it safe to write into the mmap'd area |
| 6398 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6399 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6400 | #include <fcntl.h> |
| 6401 | #include <sys/mman.h> |
| 6402 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6403 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6404 | char *malloc (); |
| 6405 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6406 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6407 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6408 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6409 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6410 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6411 | # define HAVE_SYS_PARAM_H 1 |
| 6412 | # endif |
| 6413 | |
| 6414 | # ifdef _SC_PAGESIZE |
| 6415 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6416 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6417 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6418 | # include <sys/param.h> |
| 6419 | # ifdef EXEC_PAGESIZE |
| 6420 | # define getpagesize() EXEC_PAGESIZE |
| 6421 | # else /* no EXEC_PAGESIZE */ |
| 6422 | # ifdef NBPG |
| 6423 | # define getpagesize() NBPG * CLSIZE |
| 6424 | # ifndef CLSIZE |
| 6425 | # define CLSIZE 1 |
| 6426 | # endif /* no CLSIZE */ |
| 6427 | # else /* no NBPG */ |
| 6428 | # ifdef NBPC |
| 6429 | # define getpagesize() NBPC |
| 6430 | # else /* no NBPC */ |
| 6431 | # ifdef PAGESIZE |
| 6432 | # define getpagesize() PAGESIZE |
| 6433 | # endif /* PAGESIZE */ |
| 6434 | # endif /* no NBPC */ |
| 6435 | # endif /* no NBPG */ |
| 6436 | # endif /* no EXEC_PAGESIZE */ |
| 6437 | # else /* no HAVE_SYS_PARAM_H */ |
| 6438 | # define getpagesize() 8192 /* punt totally */ |
| 6439 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6440 | # endif /* no _SC_PAGESIZE */ |
| 6441 | |
| 6442 | #endif /* no HAVE_GETPAGESIZE */ |
| 6443 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6444 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6445 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6446 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6447 | char *data, *data2, *data3; |
| 6448 | int i, pagesize; |
| 6449 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6452 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6453 | /* First, make a file with some known garbage in it. */ |
| 6454 | data = (char *) malloc (pagesize); |
| 6455 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6456 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6457 | for (i = 0; i < pagesize; ++i) |
| 6458 | *(data + i) = rand (); |
| 6459 | umask (0); |
| 6460 | fd = creat ("conftest.mmap", 0600); |
| 6461 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6462 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6463 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6464 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6465 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6466 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6467 | /* Next, try to mmap the file at a fixed address which already has |
| 6468 | something else allocated at it. If we can, also make sure that |
| 6469 | we see the same garbage. */ |
| 6470 | fd = open ("conftest.mmap", O_RDWR); |
| 6471 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6472 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6473 | data2 = (char *) malloc (2 * pagesize); |
| 6474 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6475 | return 1; |
| 6476 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6477 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6478 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6479 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6480 | for (i = 0; i < pagesize; ++i) |
| 6481 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6482 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6483 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6484 | /* Finally, make sure that changes to the mapped area do not |
| 6485 | percolate back to the file as seen by read(). (This is a bug on |
| 6486 | some variants of i386 svr4.0.) */ |
| 6487 | for (i = 0; i < pagesize; ++i) |
| 6488 | *(data2 + i) = *(data2 + i) + 1; |
| 6489 | data3 = (char *) malloc (pagesize); |
| 6490 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6491 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6492 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6493 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6494 | for (i = 0; i < pagesize; ++i) |
| 6495 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6496 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6497 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6498 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6499 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6500 | _ACEOF |
| 6501 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6502 | if { (ac_try="$ac_link" |
| 6503 | case "(($ac_try" in |
| 6504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6505 | *) ac_try_echo=$ac_try;; |
| 6506 | esac |
| 6507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6508 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6509 | ac_status=$? |
| 6510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6511 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6512 | { (case "(($ac_try" in |
| 6513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6514 | *) ac_try_echo=$ac_try;; |
| 6515 | esac |
| 6516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6517 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6518 | ac_status=$? |
| 6519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6520 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6521 | ac_cv_func_mmap_fixed_mapped=yes |
| 6522 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6523 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6524 | echo "$as_me: failed program was:" >&5 |
| 6525 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6526 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6527 | ( exit $ac_status ) |
| 6528 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6529 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6530 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6531 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6532 | |
| 6533 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6534 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6535 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6536 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6537 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | |
| 6539 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6540 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6541 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6542 | |
| 6543 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6544 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6545 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6546 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6547 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6548 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6549 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6551 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6552 | cat >conftest.$ac_ext <<_ACEOF |
| 6553 | /* confdefs.h. */ |
| 6554 | _ACEOF |
| 6555 | cat confdefs.h >>conftest.$ac_ext |
| 6556 | cat >>conftest.$ac_ext <<_ACEOF |
| 6557 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6558 | |
| 6559 | #include <features.h> |
| 6560 | #ifdef __GNU_LIBRARY__ |
| 6561 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6562 | Lucky GNU user |
| 6563 | #endif |
| 6564 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6565 | |
| 6566 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6568 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6569 | ac_cv_gnu_library_2_1=yes |
| 6570 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6571 | ac_cv_gnu_library_2_1=no |
| 6572 | fi |
| 6573 | rm -f conftest* |
| 6574 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6575 | |
| 6576 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6578 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6579 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6580 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6581 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6582 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6583 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6584 | |
| 6585 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6586 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6587 | echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6588 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6590 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6591 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6592 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6593 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6594 | # Guess based on the CPU. |
| 6595 | case "$host_cpu" in |
| 6596 | alpha* | i3456786 | m68k | s390*) |
| 6597 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6598 | *) |
| 6599 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6600 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6602 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6609 | |
| 6610 | #include <stdlib.h> |
| 6611 | #include <signal.h> |
| 6612 | |
| 6613 | static void |
| 6614 | #ifdef __cplusplus |
| 6615 | sigfpe_handler (int sig) |
| 6616 | #else |
| 6617 | sigfpe_handler (sig) int sig; |
| 6618 | #endif |
| 6619 | { |
| 6620 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6621 | exit (sig != SIGFPE); |
| 6622 | } |
| 6623 | |
| 6624 | int x = 1; |
| 6625 | int y = 0; |
| 6626 | int z; |
| 6627 | int nan; |
| 6628 | |
| 6629 | int main () |
| 6630 | { |
| 6631 | signal (SIGFPE, sigfpe_handler); |
| 6632 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6633 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6634 | signal (SIGTRAP, sigfpe_handler); |
| 6635 | #endif |
| 6636 | /* Linux/SPARC yields signal SIGILL. */ |
| 6637 | #if defined (__sparc__) && defined (__linux__) |
| 6638 | signal (SIGILL, sigfpe_handler); |
| 6639 | #endif |
| 6640 | |
| 6641 | z = x / y; |
| 6642 | nan = y / y; |
| 6643 | exit (1); |
| 6644 | } |
| 6645 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6646 | _ACEOF |
| 6647 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6648 | if { (ac_try="$ac_link" |
| 6649 | case "(($ac_try" in |
| 6650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6651 | *) ac_try_echo=$ac_try;; |
| 6652 | esac |
| 6653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6654 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6655 | ac_status=$? |
| 6656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6658 | { (case "(($ac_try" in |
| 6659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6660 | *) ac_try_echo=$ac_try;; |
| 6661 | esac |
| 6662 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6663 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6664 | ac_status=$? |
| 6665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6666 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6667 | gt_cv_int_divbyzero_sigfpe=yes |
| 6668 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6669 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6670 | echo "$as_me: failed program was:" >&5 |
| 6671 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6672 | |
| 6673 | ( exit $ac_status ) |
| 6674 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6675 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6676 | rm -f core *.core core.conftest.* 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] | 6677 | fi |
| 6678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6679 | |
| 6680 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6681 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6682 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6683 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6684 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6685 | *yes) value=1;; |
| 6686 | *) value=0;; |
| 6687 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | |
| 6689 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6690 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6691 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6692 | |
| 6693 | |
| 6694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6695 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6696 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6697 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6699 | else |
| 6700 | cat >conftest.$ac_ext <<_ACEOF |
| 6701 | /* confdefs.h. */ |
| 6702 | _ACEOF |
| 6703 | cat confdefs.h >>conftest.$ac_ext |
| 6704 | cat >>conftest.$ac_ext <<_ACEOF |
| 6705 | /* end confdefs.h. */ |
| 6706 | unsigned long long ull = 1ULL; int i = 63; |
| 6707 | int |
| 6708 | main () |
| 6709 | { |
| 6710 | unsigned long long ullmax = (unsigned long long) -1; |
| 6711 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6712 | ; |
| 6713 | return 0; |
| 6714 | } |
| 6715 | _ACEOF |
| 6716 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6717 | if { (ac_try="$ac_link" |
| 6718 | case "(($ac_try" in |
| 6719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6720 | *) ac_try_echo=$ac_try;; |
| 6721 | esac |
| 6722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6723 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6724 | ac_status=$? |
| 6725 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6726 | rm -f conftest.er1 |
| 6727 | cat conftest.err >&5 |
| 6728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6729 | (exit $ac_status); } && { |
| 6730 | test -z "$ac_c_werror_flag" || |
| 6731 | test ! -s conftest.err |
| 6732 | } && test -s conftest$ac_exeext && |
| 6733 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6734 | ac_cv_type_unsigned_long_long=yes |
| 6735 | else |
| 6736 | echo "$as_me: failed program was:" >&5 |
| 6737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6738 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6739 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6741 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6743 | conftest$ac_exeext conftest.$ac_ext |
| 6744 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6745 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 6746 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6747 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 6748 | |
| 6749 | cat >>confdefs.h <<\_ACEOF |
| 6750 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 6751 | _ACEOF |
| 6752 | |
| 6753 | fi |
| 6754 | |
| 6755 | |
| 6756 | |
| 6757 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6758 | 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] | 6759 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6760 | test $ac_cv_type_unsigned_long_long = yes \ |
| 6761 | && ac_type='unsigned long long' \ |
| 6762 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6763 | |
| 6764 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6765 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6766 | _ACEOF |
| 6767 | |
| 6768 | else |
| 6769 | |
| 6770 | cat >>confdefs.h <<\_ACEOF |
| 6771 | #define HAVE_UINTMAX_T 1 |
| 6772 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6773 | |
| 6774 | fi |
| 6775 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6776 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6777 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 6778 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6779 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 6780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6781 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6782 | |
| 6783 | cat >conftest.$ac_ext <<_ACEOF |
| 6784 | /* confdefs.h. */ |
| 6785 | _ACEOF |
| 6786 | cat confdefs.h >>conftest.$ac_ext |
| 6787 | cat >>conftest.$ac_ext <<_ACEOF |
| 6788 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6789 | #include <sys/types.h> |
| 6790 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6791 | int |
| 6792 | main () |
| 6793 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6794 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | ; |
| 6796 | return 0; |
| 6797 | } |
| 6798 | _ACEOF |
| 6799 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6800 | if { (ac_try="$ac_compile" |
| 6801 | case "(($ac_try" in |
| 6802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6803 | *) ac_try_echo=$ac_try;; |
| 6804 | esac |
| 6805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6806 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6807 | ac_status=$? |
| 6808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6809 | rm -f conftest.er1 |
| 6810 | cat conftest.err >&5 |
| 6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6812 | (exit $ac_status); } && { |
| 6813 | test -z "$ac_c_werror_flag" || |
| 6814 | test ! -s conftest.err |
| 6815 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6816 | gt_cv_header_inttypes_h=yes |
| 6817 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6818 | echo "$as_me: failed program was:" >&5 |
| 6819 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6820 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6821 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6822 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6823 | |
| 6824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6825 | |
| 6826 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6827 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 6828 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6829 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6830 | |
| 6831 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6832 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6834 | |
| 6835 | fi |
| 6836 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6837 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6838 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6839 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6840 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 6841 | echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 6843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6844 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6845 | |
| 6846 | cat >conftest.$ac_ext <<_ACEOF |
| 6847 | /* confdefs.h. */ |
| 6848 | _ACEOF |
| 6849 | cat confdefs.h >>conftest.$ac_ext |
| 6850 | cat >>conftest.$ac_ext <<_ACEOF |
| 6851 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6852 | #include <inttypes.h> |
| 6853 | #ifdef PRId32 |
| 6854 | char *p = PRId32; |
| 6855 | #endif |
| 6856 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6857 | int |
| 6858 | main () |
| 6859 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6860 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6861 | ; |
| 6862 | return 0; |
| 6863 | } |
| 6864 | _ACEOF |
| 6865 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6866 | if { (ac_try="$ac_compile" |
| 6867 | case "(($ac_try" in |
| 6868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6869 | *) ac_try_echo=$ac_try;; |
| 6870 | esac |
| 6871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6872 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6873 | ac_status=$? |
| 6874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6875 | rm -f conftest.er1 |
| 6876 | cat conftest.err >&5 |
| 6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6878 | (exit $ac_status); } && { |
| 6879 | test -z "$ac_c_werror_flag" || |
| 6880 | test ! -s conftest.err |
| 6881 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6882 | gt_cv_inttypes_pri_broken=no |
| 6883 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6884 | echo "$as_me: failed program was:" >&5 |
| 6885 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6887 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6889 | |
| 6890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6891 | |
| 6892 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6893 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 6894 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6895 | fi |
| 6896 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6897 | |
| 6898 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6899 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6900 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6901 | |
| 6902 | fi |
| 6903 | |
| 6904 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6905 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6906 | for ac_header in stdint.h |
| 6907 | do |
| 6908 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6909 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6910 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6914 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6915 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6916 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6917 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6918 | else |
| 6919 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6920 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6921 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6922 | cat >conftest.$ac_ext <<_ACEOF |
| 6923 | /* confdefs.h. */ |
| 6924 | _ACEOF |
| 6925 | cat confdefs.h >>conftest.$ac_ext |
| 6926 | cat >>conftest.$ac_ext <<_ACEOF |
| 6927 | /* end confdefs.h. */ |
| 6928 | $ac_includes_default |
| 6929 | #include <$ac_header> |
| 6930 | _ACEOF |
| 6931 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6932 | if { (ac_try="$ac_compile" |
| 6933 | case "(($ac_try" in |
| 6934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6935 | *) ac_try_echo=$ac_try;; |
| 6936 | esac |
| 6937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6938 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6939 | ac_status=$? |
| 6940 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6941 | rm -f conftest.er1 |
| 6942 | cat conftest.err >&5 |
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6944 | (exit $ac_status); } && { |
| 6945 | test -z "$ac_c_werror_flag" || |
| 6946 | test ! -s conftest.err |
| 6947 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6948 | ac_header_compiler=yes |
| 6949 | else |
| 6950 | echo "$as_me: failed program was:" >&5 |
| 6951 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6952 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6953 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6954 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6955 | |
| 6956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6957 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6958 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6959 | |
| 6960 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6961 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6962 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6963 | cat >conftest.$ac_ext <<_ACEOF |
| 6964 | /* confdefs.h. */ |
| 6965 | _ACEOF |
| 6966 | cat confdefs.h >>conftest.$ac_ext |
| 6967 | cat >>conftest.$ac_ext <<_ACEOF |
| 6968 | /* end confdefs.h. */ |
| 6969 | #include <$ac_header> |
| 6970 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6971 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6972 | case "(($ac_try" in |
| 6973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6974 | *) ac_try_echo=$ac_try;; |
| 6975 | esac |
| 6976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6977 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6978 | ac_status=$? |
| 6979 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6980 | rm -f conftest.er1 |
| 6981 | cat conftest.err >&5 |
| 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6983 | (exit $ac_status); } >/dev/null && { |
| 6984 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6985 | test ! -s conftest.err |
| 6986 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6987 | ac_header_preproc=yes |
| 6988 | else |
| 6989 | echo "$as_me: failed program was:" >&5 |
| 6990 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6991 | |
| 6992 | ac_header_preproc=no |
| 6993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6994 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6996 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6997 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6998 | |
| 6999 | # So? What about this header? |
| 7000 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7001 | yes:no: ) |
| 7002 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7003 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7005 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7006 | ac_header_preproc=yes |
| 7007 | ;; |
| 7008 | no:yes:* ) |
| 7009 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7010 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7011 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7012 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7013 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7014 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7015 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7016 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7018 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7019 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7020 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7022 | ;; |
| 7023 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7024 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7026 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7028 | else |
| 7029 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7031 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7032 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7033 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7034 | |
| 7035 | fi |
| 7036 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7037 | cat >>confdefs.h <<_ACEOF |
| 7038 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7039 | _ACEOF |
| 7040 | |
| 7041 | fi |
| 7042 | |
| 7043 | done |
| 7044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7045 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7046 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7047 | result= |
| 7048 | cat >conftest.$ac_ext <<_ACEOF |
| 7049 | /* confdefs.h. */ |
| 7050 | _ACEOF |
| 7051 | cat confdefs.h >>conftest.$ac_ext |
| 7052 | cat >>conftest.$ac_ext <<_ACEOF |
| 7053 | /* end confdefs.h. */ |
| 7054 | |
| 7055 | #include <limits.h> |
| 7056 | #if HAVE_STDINT_H |
| 7057 | #include <stdint.h> |
| 7058 | #endif |
| 7059 | #ifdef SIZE_MAX |
| 7060 | Found it |
| 7061 | #endif |
| 7062 | |
| 7063 | _ACEOF |
| 7064 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7065 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7066 | result=yes |
| 7067 | fi |
| 7068 | rm -f conftest* |
| 7069 | |
| 7070 | if test -z "$result"; then |
| 7071 | if test "$cross_compiling" = yes; then |
| 7072 | # Depending upon the size, compute the lo and hi bounds. |
| 7073 | cat >conftest.$ac_ext <<_ACEOF |
| 7074 | /* confdefs.h. */ |
| 7075 | _ACEOF |
| 7076 | cat confdefs.h >>conftest.$ac_ext |
| 7077 | cat >>conftest.$ac_ext <<_ACEOF |
| 7078 | /* end confdefs.h. */ |
| 7079 | #include <stddef.h> |
| 7080 | int |
| 7081 | main () |
| 7082 | { |
| 7083 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7084 | test_array [0] = 0 |
| 7085 | |
| 7086 | ; |
| 7087 | return 0; |
| 7088 | } |
| 7089 | _ACEOF |
| 7090 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7091 | if { (ac_try="$ac_compile" |
| 7092 | case "(($ac_try" in |
| 7093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7094 | *) ac_try_echo=$ac_try;; |
| 7095 | esac |
| 7096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7097 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7098 | ac_status=$? |
| 7099 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7100 | rm -f conftest.er1 |
| 7101 | cat conftest.err >&5 |
| 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7103 | (exit $ac_status); } && { |
| 7104 | test -z "$ac_c_werror_flag" || |
| 7105 | test ! -s conftest.err |
| 7106 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | ac_lo=0 ac_mid=0 |
| 7108 | while :; do |
| 7109 | cat >conftest.$ac_ext <<_ACEOF |
| 7110 | /* confdefs.h. */ |
| 7111 | _ACEOF |
| 7112 | cat confdefs.h >>conftest.$ac_ext |
| 7113 | cat >>conftest.$ac_ext <<_ACEOF |
| 7114 | /* end confdefs.h. */ |
| 7115 | #include <stddef.h> |
| 7116 | int |
| 7117 | main () |
| 7118 | { |
| 7119 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7120 | test_array [0] = 0 |
| 7121 | |
| 7122 | ; |
| 7123 | return 0; |
| 7124 | } |
| 7125 | _ACEOF |
| 7126 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7127 | if { (ac_try="$ac_compile" |
| 7128 | case "(($ac_try" in |
| 7129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7130 | *) ac_try_echo=$ac_try;; |
| 7131 | esac |
| 7132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7133 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | ac_status=$? |
| 7135 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7136 | rm -f conftest.er1 |
| 7137 | cat conftest.err >&5 |
| 7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7139 | (exit $ac_status); } && { |
| 7140 | test -z "$ac_c_werror_flag" || |
| 7141 | test ! -s conftest.err |
| 7142 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7143 | ac_hi=$ac_mid; break |
| 7144 | else |
| 7145 | echo "$as_me: failed program was:" >&5 |
| 7146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7147 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7148 | ac_lo=`expr $ac_mid + 1` |
| 7149 | if test $ac_lo -le $ac_mid; then |
| 7150 | ac_lo= ac_hi= |
| 7151 | break |
| 7152 | fi |
| 7153 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7154 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7155 | |
| 7156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7157 | done |
| 7158 | else |
| 7159 | echo "$as_me: failed program was:" >&5 |
| 7160 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7161 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7162 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7163 | /* confdefs.h. */ |
| 7164 | _ACEOF |
| 7165 | cat confdefs.h >>conftest.$ac_ext |
| 7166 | cat >>conftest.$ac_ext <<_ACEOF |
| 7167 | /* end confdefs.h. */ |
| 7168 | #include <stddef.h> |
| 7169 | int |
| 7170 | main () |
| 7171 | { |
| 7172 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7173 | test_array [0] = 0 |
| 7174 | |
| 7175 | ; |
| 7176 | return 0; |
| 7177 | } |
| 7178 | _ACEOF |
| 7179 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7180 | if { (ac_try="$ac_compile" |
| 7181 | case "(($ac_try" in |
| 7182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7183 | *) ac_try_echo=$ac_try;; |
| 7184 | esac |
| 7185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7186 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7187 | ac_status=$? |
| 7188 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7189 | rm -f conftest.er1 |
| 7190 | cat conftest.err >&5 |
| 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7192 | (exit $ac_status); } && { |
| 7193 | test -z "$ac_c_werror_flag" || |
| 7194 | test ! -s conftest.err |
| 7195 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7196 | ac_hi=-1 ac_mid=-1 |
| 7197 | while :; do |
| 7198 | cat >conftest.$ac_ext <<_ACEOF |
| 7199 | /* confdefs.h. */ |
| 7200 | _ACEOF |
| 7201 | cat confdefs.h >>conftest.$ac_ext |
| 7202 | cat >>conftest.$ac_ext <<_ACEOF |
| 7203 | /* end confdefs.h. */ |
| 7204 | #include <stddef.h> |
| 7205 | int |
| 7206 | main () |
| 7207 | { |
| 7208 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7209 | test_array [0] = 0 |
| 7210 | |
| 7211 | ; |
| 7212 | return 0; |
| 7213 | } |
| 7214 | _ACEOF |
| 7215 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7216 | if { (ac_try="$ac_compile" |
| 7217 | case "(($ac_try" in |
| 7218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7219 | *) ac_try_echo=$ac_try;; |
| 7220 | esac |
| 7221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7222 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7223 | ac_status=$? |
| 7224 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7225 | rm -f conftest.er1 |
| 7226 | cat conftest.err >&5 |
| 7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7228 | (exit $ac_status); } && { |
| 7229 | test -z "$ac_c_werror_flag" || |
| 7230 | test ! -s conftest.err |
| 7231 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | ac_lo=$ac_mid; break |
| 7233 | else |
| 7234 | echo "$as_me: failed program was:" >&5 |
| 7235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7236 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7237 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7238 | if test $ac_mid -le $ac_hi; then |
| 7239 | ac_lo= ac_hi= |
| 7240 | break |
| 7241 | fi |
| 7242 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7243 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7244 | |
| 7245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7246 | done |
| 7247 | else |
| 7248 | echo "$as_me: failed program was:" >&5 |
| 7249 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7250 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7251 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7252 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7253 | |
| 7254 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7256 | |
| 7257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7258 | # Binary search between lo and hi bounds. |
| 7259 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7260 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7261 | cat >conftest.$ac_ext <<_ACEOF |
| 7262 | /* confdefs.h. */ |
| 7263 | _ACEOF |
| 7264 | cat confdefs.h >>conftest.$ac_ext |
| 7265 | cat >>conftest.$ac_ext <<_ACEOF |
| 7266 | /* end confdefs.h. */ |
| 7267 | #include <stddef.h> |
| 7268 | int |
| 7269 | main () |
| 7270 | { |
| 7271 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7272 | test_array [0] = 0 |
| 7273 | |
| 7274 | ; |
| 7275 | return 0; |
| 7276 | } |
| 7277 | _ACEOF |
| 7278 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7279 | if { (ac_try="$ac_compile" |
| 7280 | case "(($ac_try" in |
| 7281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7282 | *) ac_try_echo=$ac_try;; |
| 7283 | esac |
| 7284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7285 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7286 | ac_status=$? |
| 7287 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7288 | rm -f conftest.er1 |
| 7289 | cat conftest.err >&5 |
| 7290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7291 | (exit $ac_status); } && { |
| 7292 | test -z "$ac_c_werror_flag" || |
| 7293 | test ! -s conftest.err |
| 7294 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7295 | ac_hi=$ac_mid |
| 7296 | else |
| 7297 | echo "$as_me: failed program was:" >&5 |
| 7298 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7299 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7300 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7301 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7302 | |
| 7303 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7304 | done |
| 7305 | case $ac_lo in |
| 7306 | ?*) res_hi=$ac_lo;; |
| 7307 | '') result=? ;; |
| 7308 | esac |
| 7309 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7310 | cat >conftest.$ac_ext <<_ACEOF |
| 7311 | /* confdefs.h. */ |
| 7312 | _ACEOF |
| 7313 | cat confdefs.h >>conftest.$ac_ext |
| 7314 | cat >>conftest.$ac_ext <<_ACEOF |
| 7315 | /* end confdefs.h. */ |
| 7316 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7317 | static long int longval () { return ~(size_t)0 / 10; } |
| 7318 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7319 | #include <stdio.h> |
| 7320 | #include <stdlib.h> |
| 7321 | int |
| 7322 | main () |
| 7323 | { |
| 7324 | |
| 7325 | FILE *f = fopen ("conftest.val", "w"); |
| 7326 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7327 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7328 | if ((~(size_t)0 / 10) < 0) |
| 7329 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7330 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7331 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7332 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7333 | fprintf (f, "%ld\n", i); |
| 7334 | } |
| 7335 | else |
| 7336 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7337 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7339 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7340 | fprintf (f, "%lu\n", i); |
| 7341 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7342 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7343 | |
| 7344 | ; |
| 7345 | return 0; |
| 7346 | } |
| 7347 | _ACEOF |
| 7348 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7349 | if { (ac_try="$ac_link" |
| 7350 | case "(($ac_try" in |
| 7351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7352 | *) ac_try_echo=$ac_try;; |
| 7353 | esac |
| 7354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7355 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7356 | ac_status=$? |
| 7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7358 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7359 | { (case "(($ac_try" in |
| 7360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7361 | *) ac_try_echo=$ac_try;; |
| 7362 | esac |
| 7363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7364 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7365 | ac_status=$? |
| 7366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7367 | (exit $ac_status); }; }; then |
| 7368 | res_hi=`cat conftest.val` |
| 7369 | else |
| 7370 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7371 | echo "$as_me: failed program was:" >&5 |
| 7372 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7373 | |
| 7374 | ( exit $ac_status ) |
| 7375 | result=? |
| 7376 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7377 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7378 | fi |
| 7379 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7380 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7381 | if test "$cross_compiling" = yes; then |
| 7382 | # Depending upon the size, compute the lo and hi bounds. |
| 7383 | cat >conftest.$ac_ext <<_ACEOF |
| 7384 | /* confdefs.h. */ |
| 7385 | _ACEOF |
| 7386 | cat confdefs.h >>conftest.$ac_ext |
| 7387 | cat >>conftest.$ac_ext <<_ACEOF |
| 7388 | /* end confdefs.h. */ |
| 7389 | #include <stddef.h> |
| 7390 | int |
| 7391 | main () |
| 7392 | { |
| 7393 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7394 | test_array [0] = 0 |
| 7395 | |
| 7396 | ; |
| 7397 | return 0; |
| 7398 | } |
| 7399 | _ACEOF |
| 7400 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7401 | if { (ac_try="$ac_compile" |
| 7402 | case "(($ac_try" in |
| 7403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7404 | *) ac_try_echo=$ac_try;; |
| 7405 | esac |
| 7406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7407 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7408 | ac_status=$? |
| 7409 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7410 | rm -f conftest.er1 |
| 7411 | cat conftest.err >&5 |
| 7412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7413 | (exit $ac_status); } && { |
| 7414 | test -z "$ac_c_werror_flag" || |
| 7415 | test ! -s conftest.err |
| 7416 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7417 | ac_lo=0 ac_mid=0 |
| 7418 | while :; do |
| 7419 | cat >conftest.$ac_ext <<_ACEOF |
| 7420 | /* confdefs.h. */ |
| 7421 | _ACEOF |
| 7422 | cat confdefs.h >>conftest.$ac_ext |
| 7423 | cat >>conftest.$ac_ext <<_ACEOF |
| 7424 | /* end confdefs.h. */ |
| 7425 | #include <stddef.h> |
| 7426 | int |
| 7427 | main () |
| 7428 | { |
| 7429 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7430 | test_array [0] = 0 |
| 7431 | |
| 7432 | ; |
| 7433 | return 0; |
| 7434 | } |
| 7435 | _ACEOF |
| 7436 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7437 | if { (ac_try="$ac_compile" |
| 7438 | case "(($ac_try" in |
| 7439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7440 | *) ac_try_echo=$ac_try;; |
| 7441 | esac |
| 7442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7443 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7444 | ac_status=$? |
| 7445 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7446 | rm -f conftest.er1 |
| 7447 | cat conftest.err >&5 |
| 7448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7449 | (exit $ac_status); } && { |
| 7450 | test -z "$ac_c_werror_flag" || |
| 7451 | test ! -s conftest.err |
| 7452 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | ac_hi=$ac_mid; break |
| 7454 | else |
| 7455 | echo "$as_me: failed program was:" >&5 |
| 7456 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7457 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7458 | ac_lo=`expr $ac_mid + 1` |
| 7459 | if test $ac_lo -le $ac_mid; then |
| 7460 | ac_lo= ac_hi= |
| 7461 | break |
| 7462 | fi |
| 7463 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7465 | |
| 7466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7467 | done |
| 7468 | else |
| 7469 | echo "$as_me: failed program was:" >&5 |
| 7470 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7471 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7472 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | /* confdefs.h. */ |
| 7474 | _ACEOF |
| 7475 | cat confdefs.h >>conftest.$ac_ext |
| 7476 | cat >>conftest.$ac_ext <<_ACEOF |
| 7477 | /* end confdefs.h. */ |
| 7478 | #include <stddef.h> |
| 7479 | int |
| 7480 | main () |
| 7481 | { |
| 7482 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7483 | test_array [0] = 0 |
| 7484 | |
| 7485 | ; |
| 7486 | return 0; |
| 7487 | } |
| 7488 | _ACEOF |
| 7489 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7490 | if { (ac_try="$ac_compile" |
| 7491 | case "(($ac_try" in |
| 7492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7493 | *) ac_try_echo=$ac_try;; |
| 7494 | esac |
| 7495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7496 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7497 | ac_status=$? |
| 7498 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7499 | rm -f conftest.er1 |
| 7500 | cat conftest.err >&5 |
| 7501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7502 | (exit $ac_status); } && { |
| 7503 | test -z "$ac_c_werror_flag" || |
| 7504 | test ! -s conftest.err |
| 7505 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7506 | ac_hi=-1 ac_mid=-1 |
| 7507 | while :; do |
| 7508 | cat >conftest.$ac_ext <<_ACEOF |
| 7509 | /* confdefs.h. */ |
| 7510 | _ACEOF |
| 7511 | cat confdefs.h >>conftest.$ac_ext |
| 7512 | cat >>conftest.$ac_ext <<_ACEOF |
| 7513 | /* end confdefs.h. */ |
| 7514 | #include <stddef.h> |
| 7515 | int |
| 7516 | main () |
| 7517 | { |
| 7518 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7519 | test_array [0] = 0 |
| 7520 | |
| 7521 | ; |
| 7522 | return 0; |
| 7523 | } |
| 7524 | _ACEOF |
| 7525 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7526 | if { (ac_try="$ac_compile" |
| 7527 | case "(($ac_try" in |
| 7528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7529 | *) ac_try_echo=$ac_try;; |
| 7530 | esac |
| 7531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7532 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7533 | ac_status=$? |
| 7534 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7535 | rm -f conftest.er1 |
| 7536 | cat conftest.err >&5 |
| 7537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7538 | (exit $ac_status); } && { |
| 7539 | test -z "$ac_c_werror_flag" || |
| 7540 | test ! -s conftest.err |
| 7541 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7542 | ac_lo=$ac_mid; break |
| 7543 | else |
| 7544 | echo "$as_me: failed program was:" >&5 |
| 7545 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7546 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7547 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7548 | if test $ac_mid -le $ac_hi; then |
| 7549 | ac_lo= ac_hi= |
| 7550 | break |
| 7551 | fi |
| 7552 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7553 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7554 | |
| 7555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7556 | done |
| 7557 | else |
| 7558 | echo "$as_me: failed program was:" >&5 |
| 7559 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7560 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7561 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7562 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7563 | |
| 7564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7565 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7566 | |
| 7567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | # Binary search between lo and hi bounds. |
| 7569 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7570 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7571 | cat >conftest.$ac_ext <<_ACEOF |
| 7572 | /* confdefs.h. */ |
| 7573 | _ACEOF |
| 7574 | cat confdefs.h >>conftest.$ac_ext |
| 7575 | cat >>conftest.$ac_ext <<_ACEOF |
| 7576 | /* end confdefs.h. */ |
| 7577 | #include <stddef.h> |
| 7578 | int |
| 7579 | main () |
| 7580 | { |
| 7581 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7582 | test_array [0] = 0 |
| 7583 | |
| 7584 | ; |
| 7585 | return 0; |
| 7586 | } |
| 7587 | _ACEOF |
| 7588 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7589 | if { (ac_try="$ac_compile" |
| 7590 | case "(($ac_try" in |
| 7591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7592 | *) ac_try_echo=$ac_try;; |
| 7593 | esac |
| 7594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7595 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | ac_status=$? |
| 7597 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7598 | rm -f conftest.er1 |
| 7599 | cat conftest.err >&5 |
| 7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7601 | (exit $ac_status); } && { |
| 7602 | test -z "$ac_c_werror_flag" || |
| 7603 | test ! -s conftest.err |
| 7604 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7605 | ac_hi=$ac_mid |
| 7606 | else |
| 7607 | echo "$as_me: failed program was:" >&5 |
| 7608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7609 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7610 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7611 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7612 | |
| 7613 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7614 | done |
| 7615 | case $ac_lo in |
| 7616 | ?*) res_lo=$ac_lo;; |
| 7617 | '') result=? ;; |
| 7618 | esac |
| 7619 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | cat >conftest.$ac_ext <<_ACEOF |
| 7621 | /* confdefs.h. */ |
| 7622 | _ACEOF |
| 7623 | cat confdefs.h >>conftest.$ac_ext |
| 7624 | cat >>conftest.$ac_ext <<_ACEOF |
| 7625 | /* end confdefs.h. */ |
| 7626 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7627 | static long int longval () { return ~(size_t)0 % 10; } |
| 7628 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7629 | #include <stdio.h> |
| 7630 | #include <stdlib.h> |
| 7631 | int |
| 7632 | main () |
| 7633 | { |
| 7634 | |
| 7635 | FILE *f = fopen ("conftest.val", "w"); |
| 7636 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7637 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7638 | if ((~(size_t)0 % 10) < 0) |
| 7639 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7640 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7641 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7642 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7643 | fprintf (f, "%ld\n", i); |
| 7644 | } |
| 7645 | else |
| 7646 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7647 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7648 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7649 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7650 | fprintf (f, "%lu\n", i); |
| 7651 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7652 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7653 | |
| 7654 | ; |
| 7655 | return 0; |
| 7656 | } |
| 7657 | _ACEOF |
| 7658 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7659 | if { (ac_try="$ac_link" |
| 7660 | case "(($ac_try" in |
| 7661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7662 | *) ac_try_echo=$ac_try;; |
| 7663 | esac |
| 7664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7665 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7666 | ac_status=$? |
| 7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7669 | { (case "(($ac_try" in |
| 7670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7671 | *) ac_try_echo=$ac_try;; |
| 7672 | esac |
| 7673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7674 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7675 | ac_status=$? |
| 7676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7677 | (exit $ac_status); }; }; then |
| 7678 | res_lo=`cat conftest.val` |
| 7679 | else |
| 7680 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7681 | echo "$as_me: failed program was:" >&5 |
| 7682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7683 | |
| 7684 | ( exit $ac_status ) |
| 7685 | result=? |
| 7686 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7687 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7688 | fi |
| 7689 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7690 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7691 | if test "$cross_compiling" = yes; then |
| 7692 | # Depending upon the size, compute the lo and hi bounds. |
| 7693 | cat >conftest.$ac_ext <<_ACEOF |
| 7694 | /* confdefs.h. */ |
| 7695 | _ACEOF |
| 7696 | cat confdefs.h >>conftest.$ac_ext |
| 7697 | cat >>conftest.$ac_ext <<_ACEOF |
| 7698 | /* end confdefs.h. */ |
| 7699 | #include <stddef.h> |
| 7700 | int |
| 7701 | main () |
| 7702 | { |
| 7703 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7704 | test_array [0] = 0 |
| 7705 | |
| 7706 | ; |
| 7707 | return 0; |
| 7708 | } |
| 7709 | _ACEOF |
| 7710 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7711 | if { (ac_try="$ac_compile" |
| 7712 | case "(($ac_try" in |
| 7713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7714 | *) ac_try_echo=$ac_try;; |
| 7715 | esac |
| 7716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7717 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7718 | ac_status=$? |
| 7719 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7720 | rm -f conftest.er1 |
| 7721 | cat conftest.err >&5 |
| 7722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7723 | (exit $ac_status); } && { |
| 7724 | test -z "$ac_c_werror_flag" || |
| 7725 | test ! -s conftest.err |
| 7726 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7727 | ac_lo=0 ac_mid=0 |
| 7728 | while :; do |
| 7729 | cat >conftest.$ac_ext <<_ACEOF |
| 7730 | /* confdefs.h. */ |
| 7731 | _ACEOF |
| 7732 | cat confdefs.h >>conftest.$ac_ext |
| 7733 | cat >>conftest.$ac_ext <<_ACEOF |
| 7734 | /* end confdefs.h. */ |
| 7735 | #include <stddef.h> |
| 7736 | int |
| 7737 | main () |
| 7738 | { |
| 7739 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7740 | test_array [0] = 0 |
| 7741 | |
| 7742 | ; |
| 7743 | return 0; |
| 7744 | } |
| 7745 | _ACEOF |
| 7746 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7747 | if { (ac_try="$ac_compile" |
| 7748 | case "(($ac_try" in |
| 7749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7750 | *) ac_try_echo=$ac_try;; |
| 7751 | esac |
| 7752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7753 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7754 | ac_status=$? |
| 7755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7756 | rm -f conftest.er1 |
| 7757 | cat conftest.err >&5 |
| 7758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7759 | (exit $ac_status); } && { |
| 7760 | test -z "$ac_c_werror_flag" || |
| 7761 | test ! -s conftest.err |
| 7762 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7763 | ac_hi=$ac_mid; break |
| 7764 | else |
| 7765 | echo "$as_me: failed program was:" >&5 |
| 7766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7768 | ac_lo=`expr $ac_mid + 1` |
| 7769 | if test $ac_lo -le $ac_mid; then |
| 7770 | ac_lo= ac_hi= |
| 7771 | break |
| 7772 | fi |
| 7773 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7775 | |
| 7776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7777 | done |
| 7778 | else |
| 7779 | echo "$as_me: failed program was:" >&5 |
| 7780 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7782 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | /* confdefs.h. */ |
| 7784 | _ACEOF |
| 7785 | cat confdefs.h >>conftest.$ac_ext |
| 7786 | cat >>conftest.$ac_ext <<_ACEOF |
| 7787 | /* end confdefs.h. */ |
| 7788 | #include <stddef.h> |
| 7789 | int |
| 7790 | main () |
| 7791 | { |
| 7792 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 7793 | test_array [0] = 0 |
| 7794 | |
| 7795 | ; |
| 7796 | return 0; |
| 7797 | } |
| 7798 | _ACEOF |
| 7799 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7800 | if { (ac_try="$ac_compile" |
| 7801 | case "(($ac_try" in |
| 7802 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7803 | *) ac_try_echo=$ac_try;; |
| 7804 | esac |
| 7805 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7806 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7807 | ac_status=$? |
| 7808 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7809 | rm -f conftest.er1 |
| 7810 | cat conftest.err >&5 |
| 7811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7812 | (exit $ac_status); } && { |
| 7813 | test -z "$ac_c_werror_flag" || |
| 7814 | test ! -s conftest.err |
| 7815 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7816 | ac_hi=-1 ac_mid=-1 |
| 7817 | while :; do |
| 7818 | cat >conftest.$ac_ext <<_ACEOF |
| 7819 | /* confdefs.h. */ |
| 7820 | _ACEOF |
| 7821 | cat confdefs.h >>conftest.$ac_ext |
| 7822 | cat >>conftest.$ac_ext <<_ACEOF |
| 7823 | /* end confdefs.h. */ |
| 7824 | #include <stddef.h> |
| 7825 | int |
| 7826 | main () |
| 7827 | { |
| 7828 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 7829 | test_array [0] = 0 |
| 7830 | |
| 7831 | ; |
| 7832 | return 0; |
| 7833 | } |
| 7834 | _ACEOF |
| 7835 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7836 | if { (ac_try="$ac_compile" |
| 7837 | case "(($ac_try" in |
| 7838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7839 | *) ac_try_echo=$ac_try;; |
| 7840 | esac |
| 7841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7842 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7843 | ac_status=$? |
| 7844 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7845 | rm -f conftest.er1 |
| 7846 | cat conftest.err >&5 |
| 7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7848 | (exit $ac_status); } && { |
| 7849 | test -z "$ac_c_werror_flag" || |
| 7850 | test ! -s conftest.err |
| 7851 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7852 | ac_lo=$ac_mid; break |
| 7853 | else |
| 7854 | echo "$as_me: failed program was:" >&5 |
| 7855 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7857 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7858 | if test $ac_mid -le $ac_hi; then |
| 7859 | ac_lo= ac_hi= |
| 7860 | break |
| 7861 | fi |
| 7862 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7863 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7864 | |
| 7865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7866 | done |
| 7867 | else |
| 7868 | echo "$as_me: failed program was:" >&5 |
| 7869 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7870 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7871 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7872 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7873 | |
| 7874 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7875 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7876 | |
| 7877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7878 | # Binary search between lo and hi bounds. |
| 7879 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7880 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7881 | cat >conftest.$ac_ext <<_ACEOF |
| 7882 | /* confdefs.h. */ |
| 7883 | _ACEOF |
| 7884 | cat confdefs.h >>conftest.$ac_ext |
| 7885 | cat >>conftest.$ac_ext <<_ACEOF |
| 7886 | /* end confdefs.h. */ |
| 7887 | #include <stddef.h> |
| 7888 | int |
| 7889 | main () |
| 7890 | { |
| 7891 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 7892 | test_array [0] = 0 |
| 7893 | |
| 7894 | ; |
| 7895 | return 0; |
| 7896 | } |
| 7897 | _ACEOF |
| 7898 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7899 | if { (ac_try="$ac_compile" |
| 7900 | case "(($ac_try" in |
| 7901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7902 | *) ac_try_echo=$ac_try;; |
| 7903 | esac |
| 7904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7905 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7906 | ac_status=$? |
| 7907 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7908 | rm -f conftest.er1 |
| 7909 | cat conftest.err >&5 |
| 7910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7911 | (exit $ac_status); } && { |
| 7912 | test -z "$ac_c_werror_flag" || |
| 7913 | test ! -s conftest.err |
| 7914 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7915 | ac_hi=$ac_mid |
| 7916 | else |
| 7917 | echo "$as_me: failed program was:" >&5 |
| 7918 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7920 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7922 | |
| 7923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7924 | done |
| 7925 | case $ac_lo in |
| 7926 | ?*) fits_in_uint=$ac_lo;; |
| 7927 | '') result=? ;; |
| 7928 | esac |
| 7929 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7930 | cat >conftest.$ac_ext <<_ACEOF |
| 7931 | /* confdefs.h. */ |
| 7932 | _ACEOF |
| 7933 | cat confdefs.h >>conftest.$ac_ext |
| 7934 | cat >>conftest.$ac_ext <<_ACEOF |
| 7935 | /* end confdefs.h. */ |
| 7936 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7937 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 7938 | static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7939 | #include <stdio.h> |
| 7940 | #include <stdlib.h> |
| 7941 | int |
| 7942 | main () |
| 7943 | { |
| 7944 | |
| 7945 | FILE *f = fopen ("conftest.val", "w"); |
| 7946 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7947 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7948 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 7949 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7950 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7951 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7952 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7953 | fprintf (f, "%ld\n", i); |
| 7954 | } |
| 7955 | else |
| 7956 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7957 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7958 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7959 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7960 | fprintf (f, "%lu\n", i); |
| 7961 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7962 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7963 | |
| 7964 | ; |
| 7965 | return 0; |
| 7966 | } |
| 7967 | _ACEOF |
| 7968 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7969 | if { (ac_try="$ac_link" |
| 7970 | case "(($ac_try" in |
| 7971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7972 | *) ac_try_echo=$ac_try;; |
| 7973 | esac |
| 7974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7975 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7976 | ac_status=$? |
| 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7979 | { (case "(($ac_try" in |
| 7980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7981 | *) ac_try_echo=$ac_try;; |
| 7982 | esac |
| 7983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7984 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7985 | ac_status=$? |
| 7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7987 | (exit $ac_status); }; }; then |
| 7988 | fits_in_uint=`cat conftest.val` |
| 7989 | else |
| 7990 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7991 | echo "$as_me: failed program was:" >&5 |
| 7992 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7993 | |
| 7994 | ( exit $ac_status ) |
| 7995 | result=? |
| 7996 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7997 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7998 | fi |
| 7999 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8000 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8001 | if test "$fits_in_uint" = 1; then |
| 8002 | cat >conftest.$ac_ext <<_ACEOF |
| 8003 | /* confdefs.h. */ |
| 8004 | _ACEOF |
| 8005 | cat confdefs.h >>conftest.$ac_ext |
| 8006 | cat >>conftest.$ac_ext <<_ACEOF |
| 8007 | /* end confdefs.h. */ |
| 8008 | #include <stddef.h> |
| 8009 | extern size_t foo; |
| 8010 | extern unsigned long foo; |
| 8011 | |
| 8012 | int |
| 8013 | main () |
| 8014 | { |
| 8015 | |
| 8016 | ; |
| 8017 | return 0; |
| 8018 | } |
| 8019 | _ACEOF |
| 8020 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8021 | if { (ac_try="$ac_compile" |
| 8022 | case "(($ac_try" in |
| 8023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8024 | *) ac_try_echo=$ac_try;; |
| 8025 | esac |
| 8026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8027 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8028 | ac_status=$? |
| 8029 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8030 | rm -f conftest.er1 |
| 8031 | cat conftest.err >&5 |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8033 | (exit $ac_status); } && { |
| 8034 | test -z "$ac_c_werror_flag" || |
| 8035 | test ! -s conftest.err |
| 8036 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8037 | fits_in_uint=0 |
| 8038 | else |
| 8039 | echo "$as_me: failed program was:" >&5 |
| 8040 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8041 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8042 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8043 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8044 | |
| 8045 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8046 | fi |
| 8047 | if test -z "$result"; then |
| 8048 | if test "$fits_in_uint" = 1; then |
| 8049 | result="$res_hi$res_lo"U |
| 8050 | else |
| 8051 | result="$res_hi$res_lo"UL |
| 8052 | fi |
| 8053 | else |
| 8054 | result='~(size_t)0' |
| 8055 | fi |
| 8056 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8057 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8058 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8059 | if test "$result" != yes; then |
| 8060 | |
| 8061 | cat >>confdefs.h <<_ACEOF |
| 8062 | #define SIZE_MAX $result |
| 8063 | _ACEOF |
| 8064 | |
| 8065 | fi |
| 8066 | |
| 8067 | |
| 8068 | |
| 8069 | |
| 8070 | for ac_header in stdint.h |
| 8071 | do |
| 8072 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8073 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8074 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8075 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8076 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8079 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8080 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8081 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8082 | else |
| 8083 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8084 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8085 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8086 | cat >conftest.$ac_ext <<_ACEOF |
| 8087 | /* confdefs.h. */ |
| 8088 | _ACEOF |
| 8089 | cat confdefs.h >>conftest.$ac_ext |
| 8090 | cat >>conftest.$ac_ext <<_ACEOF |
| 8091 | /* end confdefs.h. */ |
| 8092 | $ac_includes_default |
| 8093 | #include <$ac_header> |
| 8094 | _ACEOF |
| 8095 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8096 | if { (ac_try="$ac_compile" |
| 8097 | case "(($ac_try" in |
| 8098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8099 | *) ac_try_echo=$ac_try;; |
| 8100 | esac |
| 8101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8102 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8103 | ac_status=$? |
| 8104 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8105 | rm -f conftest.er1 |
| 8106 | cat conftest.err >&5 |
| 8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8108 | (exit $ac_status); } && { |
| 8109 | test -z "$ac_c_werror_flag" || |
| 8110 | test ! -s conftest.err |
| 8111 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8112 | ac_header_compiler=yes |
| 8113 | else |
| 8114 | echo "$as_me: failed program was:" >&5 |
| 8115 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8116 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8117 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8118 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8119 | |
| 8120 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8121 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8122 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8123 | |
| 8124 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8125 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8126 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8127 | cat >conftest.$ac_ext <<_ACEOF |
| 8128 | /* confdefs.h. */ |
| 8129 | _ACEOF |
| 8130 | cat confdefs.h >>conftest.$ac_ext |
| 8131 | cat >>conftest.$ac_ext <<_ACEOF |
| 8132 | /* end confdefs.h. */ |
| 8133 | #include <$ac_header> |
| 8134 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8135 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8136 | case "(($ac_try" in |
| 8137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8138 | *) ac_try_echo=$ac_try;; |
| 8139 | esac |
| 8140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8141 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8142 | ac_status=$? |
| 8143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8144 | rm -f conftest.er1 |
| 8145 | cat conftest.err >&5 |
| 8146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8147 | (exit $ac_status); } >/dev/null && { |
| 8148 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8149 | test ! -s conftest.err |
| 8150 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8151 | ac_header_preproc=yes |
| 8152 | else |
| 8153 | echo "$as_me: failed program was:" >&5 |
| 8154 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8155 | |
| 8156 | ac_header_preproc=no |
| 8157 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8158 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8159 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8160 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8161 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8162 | |
| 8163 | # So? What about this header? |
| 8164 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8165 | yes:no: ) |
| 8166 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8167 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8168 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8169 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8170 | ac_header_preproc=yes |
| 8171 | ;; |
| 8172 | no:yes:* ) |
| 8173 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8174 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8175 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8176 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8177 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8178 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8179 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8180 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8181 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8182 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8183 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8184 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8185 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8186 | ;; |
| 8187 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8188 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8190 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8192 | else |
| 8193 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8194 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8195 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8197 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8198 | |
| 8199 | fi |
| 8200 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8201 | cat >>confdefs.h <<_ACEOF |
| 8202 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8203 | _ACEOF |
| 8204 | |
| 8205 | fi |
| 8206 | |
| 8207 | done |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | if test "X$prefix" = "XNONE"; then |
| 8212 | acl_final_prefix="$ac_default_prefix" |
| 8213 | else |
| 8214 | acl_final_prefix="$prefix" |
| 8215 | fi |
| 8216 | if test "X$exec_prefix" = "XNONE"; then |
| 8217 | acl_final_exec_prefix='${prefix}' |
| 8218 | else |
| 8219 | acl_final_exec_prefix="$exec_prefix" |
| 8220 | fi |
| 8221 | acl_save_prefix="$prefix" |
| 8222 | prefix="$acl_final_prefix" |
| 8223 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8224 | prefix="$acl_save_prefix" |
| 8225 | |
| 8226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8227 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8228 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8229 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8230 | else |
| 8231 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8232 | fi |
| 8233 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8234 | # Prepare PATH_SEPARATOR. |
| 8235 | # The user is always right. |
| 8236 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8237 | echo "#! /bin/sh" >conf$$.sh |
| 8238 | echo "exit 0" >>conf$$.sh |
| 8239 | chmod +x conf$$.sh |
| 8240 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8241 | PATH_SEPARATOR=';' |
| 8242 | else |
| 8243 | PATH_SEPARATOR=: |
| 8244 | fi |
| 8245 | rm -f conf$$.sh |
| 8246 | fi |
| 8247 | ac_prog=ld |
| 8248 | if test "$GCC" = yes; then |
| 8249 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8250 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8251 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8252 | case $host in |
| 8253 | *-*-mingw*) |
| 8254 | # gcc leaves a trailing carriage return which upsets mingw |
| 8255 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8256 | *) |
| 8257 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8258 | esac |
| 8259 | case $ac_prog in |
| 8260 | # Accept absolute paths. |
| 8261 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8262 | re_direlt='/[^/][^/]*/\.\./' |
| 8263 | # Canonicalize the path of ld |
| 8264 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8265 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8266 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8267 | done |
| 8268 | test -z "$LD" && LD="$ac_prog" |
| 8269 | ;; |
| 8270 | "") |
| 8271 | # If it fails, then pretend we aren't using GCC. |
| 8272 | ac_prog=ld |
| 8273 | ;; |
| 8274 | *) |
| 8275 | # If it is relative, then search for the first ld in PATH. |
| 8276 | with_gnu_ld=unknown |
| 8277 | ;; |
| 8278 | esac |
| 8279 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8280 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8281 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8282 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8283 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8284 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8285 | fi |
| 8286 | if test "${acl_cv_path_LD+set}" = set; then |
| 8287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8288 | else |
| 8289 | if test -z "$LD"; then |
| 8290 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8291 | for ac_dir in $PATH; do |
| 8292 | test -z "$ac_dir" && ac_dir=. |
| 8293 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8294 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8295 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8296 | # but apparently some GNU ld's only accept -v. |
| 8297 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8298 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8299 | *GNU* | *'with BFD'*) |
| 8300 | test "$with_gnu_ld" != no && break ;; |
| 8301 | *) |
| 8302 | test "$with_gnu_ld" != yes && break ;; |
| 8303 | esac |
| 8304 | fi |
| 8305 | done |
| 8306 | IFS="$ac_save_ifs" |
| 8307 | else |
| 8308 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8309 | fi |
| 8310 | fi |
| 8311 | |
| 8312 | LD="$acl_cv_path_LD" |
| 8313 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8314 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8315 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8316 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8318 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8319 | fi |
| 8320 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8321 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8322 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8323 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8324 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8325 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8327 | else |
| 8328 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8329 | case `$LD -v 2>&1 </dev/null` in |
| 8330 | *GNU* | *'with BFD'*) |
| 8331 | acl_cv_prog_gnu_ld=yes ;; |
| 8332 | *) |
| 8333 | acl_cv_prog_gnu_ld=no ;; |
| 8334 | esac |
| 8335 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8336 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8337 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8338 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8339 | |
| 8340 | |
| 8341 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8342 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8343 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8344 | if test "${acl_cv_rpath+set}" = set; then |
| 8345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8346 | else |
| 8347 | |
| 8348 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8349 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8350 | . ./conftest.sh |
| 8351 | rm -f ./conftest.sh |
| 8352 | acl_cv_rpath=done |
| 8353 | |
| 8354 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8355 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8356 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8357 | wl="$acl_cv_wl" |
| 8358 | libext="$acl_cv_libext" |
| 8359 | shlibext="$acl_cv_shlibext" |
| 8360 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8361 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8362 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8363 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8364 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8365 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8366 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8367 | else |
| 8368 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8369 | fi |
| 8370 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8378 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8379 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8380 | acl_save_prefix="$prefix" |
| 8381 | prefix="$acl_final_prefix" |
| 8382 | acl_save_exec_prefix="$exec_prefix" |
| 8383 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8384 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8385 | eval additional_includedir=\"$includedir\" |
| 8386 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8387 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8388 | exec_prefix="$acl_save_exec_prefix" |
| 8389 | prefix="$acl_save_prefix" |
| 8390 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8391 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8392 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8393 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8394 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8395 | if test "X$withval" = "Xno"; then |
| 8396 | use_additional=no |
| 8397 | else |
| 8398 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8399 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8400 | acl_save_prefix="$prefix" |
| 8401 | prefix="$acl_final_prefix" |
| 8402 | acl_save_exec_prefix="$exec_prefix" |
| 8403 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8404 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8405 | eval additional_includedir=\"$includedir\" |
| 8406 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8407 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8408 | exec_prefix="$acl_save_exec_prefix" |
| 8409 | prefix="$acl_save_prefix" |
| 8410 | |
| 8411 | else |
| 8412 | additional_includedir="$withval/include" |
| 8413 | additional_libdir="$withval/lib" |
| 8414 | fi |
| 8415 | fi |
| 8416 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8417 | fi |
| 8418 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8419 | LIBICONV= |
| 8420 | LTLIBICONV= |
| 8421 | INCICONV= |
| 8422 | rpathdirs= |
| 8423 | ltrpathdirs= |
| 8424 | names_already_handled= |
| 8425 | names_next_round='iconv ' |
| 8426 | while test -n "$names_next_round"; do |
| 8427 | names_this_round="$names_next_round" |
| 8428 | names_next_round= |
| 8429 | for name in $names_this_round; do |
| 8430 | already_handled= |
| 8431 | for n in $names_already_handled; do |
| 8432 | if test "$n" = "$name"; then |
| 8433 | already_handled=yes |
| 8434 | break |
| 8435 | fi |
| 8436 | done |
| 8437 | if test -z "$already_handled"; then |
| 8438 | names_already_handled="$names_already_handled $name" |
| 8439 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8440 | eval value=\"\$HAVE_LIB$uppername\" |
| 8441 | if test -n "$value"; then |
| 8442 | if test "$value" = yes; then |
| 8443 | eval value=\"\$LIB$uppername\" |
| 8444 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8445 | eval value=\"\$LTLIB$uppername\" |
| 8446 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8447 | else |
| 8448 | : |
| 8449 | fi |
| 8450 | else |
| 8451 | found_dir= |
| 8452 | found_la= |
| 8453 | found_so= |
| 8454 | found_a= |
| 8455 | if test $use_additional = yes; then |
| 8456 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8457 | found_dir="$additional_libdir" |
| 8458 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8459 | if test -f "$additional_libdir/lib$name.la"; then |
| 8460 | found_la="$additional_libdir/lib$name.la" |
| 8461 | fi |
| 8462 | else |
| 8463 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8464 | found_dir="$additional_libdir" |
| 8465 | found_a="$additional_libdir/lib$name.$libext" |
| 8466 | if test -f "$additional_libdir/lib$name.la"; then |
| 8467 | found_la="$additional_libdir/lib$name.la" |
| 8468 | fi |
| 8469 | fi |
| 8470 | fi |
| 8471 | fi |
| 8472 | if test "X$found_dir" = "X"; then |
| 8473 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8474 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8475 | acl_save_prefix="$prefix" |
| 8476 | prefix="$acl_final_prefix" |
| 8477 | acl_save_exec_prefix="$exec_prefix" |
| 8478 | exec_prefix="$acl_final_exec_prefix" |
| 8479 | eval x=\"$x\" |
| 8480 | exec_prefix="$acl_save_exec_prefix" |
| 8481 | prefix="$acl_save_prefix" |
| 8482 | |
| 8483 | case "$x" in |
| 8484 | -L*) |
| 8485 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8486 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8487 | found_dir="$dir" |
| 8488 | found_so="$dir/lib$name.$shlibext" |
| 8489 | if test -f "$dir/lib$name.la"; then |
| 8490 | found_la="$dir/lib$name.la" |
| 8491 | fi |
| 8492 | else |
| 8493 | if test -f "$dir/lib$name.$libext"; then |
| 8494 | found_dir="$dir" |
| 8495 | found_a="$dir/lib$name.$libext" |
| 8496 | if test -f "$dir/lib$name.la"; then |
| 8497 | found_la="$dir/lib$name.la" |
| 8498 | fi |
| 8499 | fi |
| 8500 | fi |
| 8501 | ;; |
| 8502 | esac |
| 8503 | if test "X$found_dir" != "X"; then |
| 8504 | break |
| 8505 | fi |
| 8506 | done |
| 8507 | fi |
| 8508 | if test "X$found_dir" != "X"; then |
| 8509 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8510 | if test "X$found_so" != "X"; then |
| 8511 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8512 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8513 | else |
| 8514 | haveit= |
| 8515 | for x in $ltrpathdirs; do |
| 8516 | if test "X$x" = "X$found_dir"; then |
| 8517 | haveit=yes |
| 8518 | break |
| 8519 | fi |
| 8520 | done |
| 8521 | if test -z "$haveit"; then |
| 8522 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8523 | fi |
| 8524 | if test "$hardcode_direct" = yes; then |
| 8525 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8526 | else |
| 8527 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8528 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8529 | haveit= |
| 8530 | for x in $rpathdirs; do |
| 8531 | if test "X$x" = "X$found_dir"; then |
| 8532 | haveit=yes |
| 8533 | break |
| 8534 | fi |
| 8535 | done |
| 8536 | if test -z "$haveit"; then |
| 8537 | rpathdirs="$rpathdirs $found_dir" |
| 8538 | fi |
| 8539 | else |
| 8540 | haveit= |
| 8541 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8542 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8543 | acl_save_prefix="$prefix" |
| 8544 | prefix="$acl_final_prefix" |
| 8545 | acl_save_exec_prefix="$exec_prefix" |
| 8546 | exec_prefix="$acl_final_exec_prefix" |
| 8547 | eval x=\"$x\" |
| 8548 | exec_prefix="$acl_save_exec_prefix" |
| 8549 | prefix="$acl_save_prefix" |
| 8550 | |
| 8551 | if test "X$x" = "X-L$found_dir"; then |
| 8552 | haveit=yes |
| 8553 | break |
| 8554 | fi |
| 8555 | done |
| 8556 | if test -z "$haveit"; then |
| 8557 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8558 | fi |
| 8559 | if test "$hardcode_minus_L" != no; then |
| 8560 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8561 | else |
| 8562 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8563 | fi |
| 8564 | fi |
| 8565 | fi |
| 8566 | fi |
| 8567 | else |
| 8568 | if test "X$found_a" != "X"; then |
| 8569 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8570 | else |
| 8571 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8572 | fi |
| 8573 | fi |
| 8574 | additional_includedir= |
| 8575 | case "$found_dir" in |
| 8576 | */lib | */lib/) |
| 8577 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8578 | additional_includedir="$basedir/include" |
| 8579 | ;; |
| 8580 | esac |
| 8581 | if test "X$additional_includedir" != "X"; then |
| 8582 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8583 | haveit= |
| 8584 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8585 | if test -n "$GCC"; then |
| 8586 | case $host_os in |
| 8587 | linux*) haveit=yes;; |
| 8588 | esac |
| 8589 | fi |
| 8590 | fi |
| 8591 | if test -z "$haveit"; then |
| 8592 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8593 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8594 | acl_save_prefix="$prefix" |
| 8595 | prefix="$acl_final_prefix" |
| 8596 | acl_save_exec_prefix="$exec_prefix" |
| 8597 | exec_prefix="$acl_final_exec_prefix" |
| 8598 | eval x=\"$x\" |
| 8599 | exec_prefix="$acl_save_exec_prefix" |
| 8600 | prefix="$acl_save_prefix" |
| 8601 | |
| 8602 | if test "X$x" = "X-I$additional_includedir"; then |
| 8603 | haveit=yes |
| 8604 | break |
| 8605 | fi |
| 8606 | done |
| 8607 | if test -z "$haveit"; then |
| 8608 | if test -d "$additional_includedir"; then |
| 8609 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8610 | fi |
| 8611 | fi |
| 8612 | fi |
| 8613 | fi |
| 8614 | fi |
| 8615 | if test -n "$found_la"; then |
| 8616 | save_libdir="$libdir" |
| 8617 | case "$found_la" in |
| 8618 | */* | *\\*) . "$found_la" ;; |
| 8619 | *) . "./$found_la" ;; |
| 8620 | esac |
| 8621 | libdir="$save_libdir" |
| 8622 | for dep in $dependency_libs; do |
| 8623 | case "$dep" in |
| 8624 | -L*) |
| 8625 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8626 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8627 | haveit= |
| 8628 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8629 | if test -n "$GCC"; then |
| 8630 | case $host_os in |
| 8631 | linux*) haveit=yes;; |
| 8632 | esac |
| 8633 | fi |
| 8634 | fi |
| 8635 | if test -z "$haveit"; then |
| 8636 | haveit= |
| 8637 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8638 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8639 | acl_save_prefix="$prefix" |
| 8640 | prefix="$acl_final_prefix" |
| 8641 | acl_save_exec_prefix="$exec_prefix" |
| 8642 | exec_prefix="$acl_final_exec_prefix" |
| 8643 | eval x=\"$x\" |
| 8644 | exec_prefix="$acl_save_exec_prefix" |
| 8645 | prefix="$acl_save_prefix" |
| 8646 | |
| 8647 | if test "X$x" = "X-L$additional_libdir"; then |
| 8648 | haveit=yes |
| 8649 | break |
| 8650 | fi |
| 8651 | done |
| 8652 | if test -z "$haveit"; then |
| 8653 | if test -d "$additional_libdir"; then |
| 8654 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8655 | fi |
| 8656 | fi |
| 8657 | haveit= |
| 8658 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8659 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8660 | acl_save_prefix="$prefix" |
| 8661 | prefix="$acl_final_prefix" |
| 8662 | acl_save_exec_prefix="$exec_prefix" |
| 8663 | exec_prefix="$acl_final_exec_prefix" |
| 8664 | eval x=\"$x\" |
| 8665 | exec_prefix="$acl_save_exec_prefix" |
| 8666 | prefix="$acl_save_prefix" |
| 8667 | |
| 8668 | if test "X$x" = "X-L$additional_libdir"; then |
| 8669 | haveit=yes |
| 8670 | break |
| 8671 | fi |
| 8672 | done |
| 8673 | if test -z "$haveit"; then |
| 8674 | if test -d "$additional_libdir"; then |
| 8675 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8676 | fi |
| 8677 | fi |
| 8678 | fi |
| 8679 | fi |
| 8680 | ;; |
| 8681 | -R*) |
| 8682 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8683 | if test "$enable_rpath" != no; then |
| 8684 | haveit= |
| 8685 | for x in $rpathdirs; do |
| 8686 | if test "X$x" = "X$dir"; then |
| 8687 | haveit=yes |
| 8688 | break |
| 8689 | fi |
| 8690 | done |
| 8691 | if test -z "$haveit"; then |
| 8692 | rpathdirs="$rpathdirs $dir" |
| 8693 | fi |
| 8694 | haveit= |
| 8695 | for x in $ltrpathdirs; do |
| 8696 | if test "X$x" = "X$dir"; then |
| 8697 | haveit=yes |
| 8698 | break |
| 8699 | fi |
| 8700 | done |
| 8701 | if test -z "$haveit"; then |
| 8702 | ltrpathdirs="$ltrpathdirs $dir" |
| 8703 | fi |
| 8704 | fi |
| 8705 | ;; |
| 8706 | -l*) |
| 8707 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8708 | ;; |
| 8709 | *.la) |
| 8710 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8711 | ;; |
| 8712 | *) |
| 8713 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8714 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8715 | ;; |
| 8716 | esac |
| 8717 | done |
| 8718 | fi |
| 8719 | else |
| 8720 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8721 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8722 | fi |
| 8723 | fi |
| 8724 | fi |
| 8725 | done |
| 8726 | done |
| 8727 | if test "X$rpathdirs" != "X"; then |
| 8728 | if test -n "$hardcode_libdir_separator"; then |
| 8729 | alldirs= |
| 8730 | for found_dir in $rpathdirs; do |
| 8731 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8732 | done |
| 8733 | acl_save_libdir="$libdir" |
| 8734 | libdir="$alldirs" |
| 8735 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8736 | libdir="$acl_save_libdir" |
| 8737 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8738 | else |
| 8739 | for found_dir in $rpathdirs; do |
| 8740 | acl_save_libdir="$libdir" |
| 8741 | libdir="$found_dir" |
| 8742 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8743 | libdir="$acl_save_libdir" |
| 8744 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8745 | done |
| 8746 | fi |
| 8747 | fi |
| 8748 | if test "X$ltrpathdirs" != "X"; then |
| 8749 | for found_dir in $ltrpathdirs; do |
| 8750 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8751 | done |
| 8752 | fi |
| 8753 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8754 | |
| 8755 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8756 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8757 | |
| 8758 | |
| 8759 | |
| 8760 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8761 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 8762 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8763 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 8764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8765 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8766 | cat >conftest.$ac_ext <<_ACEOF |
| 8767 | /* confdefs.h. */ |
| 8768 | _ACEOF |
| 8769 | cat confdefs.h >>conftest.$ac_ext |
| 8770 | cat >>conftest.$ac_ext <<_ACEOF |
| 8771 | /* end confdefs.h. */ |
| 8772 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8773 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8774 | int |
| 8775 | main () |
| 8776 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8777 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8778 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8779 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8780 | return 0; |
| 8781 | ; |
| 8782 | return 0; |
| 8783 | } |
| 8784 | _ACEOF |
| 8785 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8786 | if { (ac_try="$ac_compile" |
| 8787 | case "(($ac_try" in |
| 8788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8789 | *) ac_try_echo=$ac_try;; |
| 8790 | esac |
| 8791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8792 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8793 | ac_status=$? |
| 8794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8795 | rm -f conftest.er1 |
| 8796 | cat conftest.err >&5 |
| 8797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8798 | (exit $ac_status); } && { |
| 8799 | test -z "$ac_c_werror_flag" || |
| 8800 | test ! -s conftest.err |
| 8801 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8802 | ac_cv_type_ptrdiff_t=yes |
| 8803 | else |
| 8804 | echo "$as_me: failed program was:" >&5 |
| 8805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8806 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8807 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8809 | |
| 8810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8812 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 8813 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8814 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 8815 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8816 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8817 | |
| 8818 | cat >>confdefs.h <<\_ACEOF |
| 8819 | #define ptrdiff_t long |
| 8820 | _ACEOF |
| 8821 | |
| 8822 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8823 | fi |
| 8824 | |
| 8825 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8826 | |
| 8827 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8828 | |
| 8829 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8830 | |
| 8831 | |
| 8832 | |
| 8833 | |
| 8834 | |
| 8835 | 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] | 8836 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8837 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8838 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8839 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8840 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8841 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8842 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8844 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8845 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8846 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8847 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8848 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8849 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8850 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8851 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8852 | cat >conftest.$ac_ext <<_ACEOF |
| 8853 | /* confdefs.h. */ |
| 8854 | _ACEOF |
| 8855 | cat confdefs.h >>conftest.$ac_ext |
| 8856 | cat >>conftest.$ac_ext <<_ACEOF |
| 8857 | /* end confdefs.h. */ |
| 8858 | $ac_includes_default |
| 8859 | #include <$ac_header> |
| 8860 | _ACEOF |
| 8861 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8862 | if { (ac_try="$ac_compile" |
| 8863 | case "(($ac_try" in |
| 8864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8865 | *) ac_try_echo=$ac_try;; |
| 8866 | esac |
| 8867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8868 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8869 | ac_status=$? |
| 8870 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8871 | rm -f conftest.er1 |
| 8872 | cat conftest.err >&5 |
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8874 | (exit $ac_status); } && { |
| 8875 | test -z "$ac_c_werror_flag" || |
| 8876 | test ! -s conftest.err |
| 8877 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8878 | ac_header_compiler=yes |
| 8879 | else |
| 8880 | echo "$as_me: failed program was:" >&5 |
| 8881 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8882 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8883 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8884 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8885 | |
| 8886 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8887 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8888 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8889 | |
| 8890 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8891 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8892 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8893 | cat >conftest.$ac_ext <<_ACEOF |
| 8894 | /* confdefs.h. */ |
| 8895 | _ACEOF |
| 8896 | cat confdefs.h >>conftest.$ac_ext |
| 8897 | cat >>conftest.$ac_ext <<_ACEOF |
| 8898 | /* end confdefs.h. */ |
| 8899 | #include <$ac_header> |
| 8900 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8901 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8902 | case "(($ac_try" in |
| 8903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8904 | *) ac_try_echo=$ac_try;; |
| 8905 | esac |
| 8906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8907 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8908 | ac_status=$? |
| 8909 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8910 | rm -f conftest.er1 |
| 8911 | cat conftest.err >&5 |
| 8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8913 | (exit $ac_status); } >/dev/null && { |
| 8914 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8915 | test ! -s conftest.err |
| 8916 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8917 | ac_header_preproc=yes |
| 8918 | else |
| 8919 | echo "$as_me: failed program was:" >&5 |
| 8920 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8921 | |
| 8922 | ac_header_preproc=no |
| 8923 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8924 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8925 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8926 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8927 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8928 | |
| 8929 | # So? What about this header? |
| 8930 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8931 | yes:no: ) |
| 8932 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8933 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8934 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8935 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8936 | ac_header_preproc=yes |
| 8937 | ;; |
| 8938 | no:yes:* ) |
| 8939 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8940 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8941 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8942 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8943 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8944 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8945 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8946 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8948 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8949 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8950 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8951 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8952 | ;; |
| 8953 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8954 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8956 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8958 | else |
| 8959 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8960 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8961 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8962 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8963 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8964 | |
| 8965 | fi |
| 8966 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8967 | cat >>confdefs.h <<_ACEOF |
| 8968 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8969 | _ACEOF |
| 8970 | |
| 8971 | fi |
| 8972 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8973 | done |
| 8974 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8975 | |
| 8976 | |
| 8977 | |
| 8978 | |
| 8979 | |
| 8980 | |
| 8981 | |
| 8982 | |
| 8983 | |
| 8984 | |
| 8985 | |
| 8986 | |
| 8987 | |
| 8988 | |
| 8989 | |
| 8990 | |
| 8991 | |
| 8992 | |
| 8993 | |
| 8994 | |
| 8995 | |
| 8996 | |
| 8997 | |
| 8998 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 8999 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9000 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9001 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9002 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9004 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9006 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9008 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9009 | cat >conftest.$ac_ext <<_ACEOF |
| 9010 | /* confdefs.h. */ |
| 9011 | _ACEOF |
| 9012 | cat confdefs.h >>conftest.$ac_ext |
| 9013 | cat >>conftest.$ac_ext <<_ACEOF |
| 9014 | /* end confdefs.h. */ |
| 9015 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9016 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9017 | #define $ac_func innocuous_$ac_func |
| 9018 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9019 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9020 | which can conflict with char $ac_func (); below. |
| 9021 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9022 | <limits.h> exists even on freestanding compilers. */ |
| 9023 | |
| 9024 | #ifdef __STDC__ |
| 9025 | # include <limits.h> |
| 9026 | #else |
| 9027 | # include <assert.h> |
| 9028 | #endif |
| 9029 | |
| 9030 | #undef $ac_func |
| 9031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9032 | /* Override any GCC internal prototype to avoid an error. |
| 9033 | Use char because int might match the return type of a GCC |
| 9034 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9035 | #ifdef __cplusplus |
| 9036 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9037 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9038 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9039 | /* The GNU C library defines this for functions which it implements |
| 9040 | to always fail with ENOSYS. Some functions are actually named |
| 9041 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9042 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9043 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9044 | #endif |
| 9045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9046 | int |
| 9047 | main () |
| 9048 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9049 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9050 | ; |
| 9051 | return 0; |
| 9052 | } |
| 9053 | _ACEOF |
| 9054 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9055 | if { (ac_try="$ac_link" |
| 9056 | case "(($ac_try" in |
| 9057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9058 | *) ac_try_echo=$ac_try;; |
| 9059 | esac |
| 9060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9061 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9062 | ac_status=$? |
| 9063 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9064 | rm -f conftest.er1 |
| 9065 | cat conftest.err >&5 |
| 9066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9067 | (exit $ac_status); } && { |
| 9068 | test -z "$ac_c_werror_flag" || |
| 9069 | test ! -s conftest.err |
| 9070 | } && test -s conftest$ac_exeext && |
| 9071 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9072 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9073 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9074 | echo "$as_me: failed program was:" >&5 |
| 9075 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9076 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9077 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9078 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9079 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9081 | conftest$ac_exeext conftest.$ac_ext |
| 9082 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9083 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9084 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9085 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9086 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9087 | cat >>confdefs.h <<_ACEOF |
| 9088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9089 | _ACEOF |
| 9090 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9091 | fi |
| 9092 | done |
| 9093 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9094 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9095 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9096 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9097 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9098 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9100 | else |
| 9101 | cat >conftest.$ac_ext <<_ACEOF |
| 9102 | /* confdefs.h. */ |
| 9103 | _ACEOF |
| 9104 | cat confdefs.h >>conftest.$ac_ext |
| 9105 | cat >>conftest.$ac_ext <<_ACEOF |
| 9106 | /* end confdefs.h. */ |
| 9107 | #include <stdio.h> |
| 9108 | int |
| 9109 | main () |
| 9110 | { |
| 9111 | |
| 9112 | #ifndef _snprintf |
| 9113 | char *p = (char *) _snprintf; |
| 9114 | #endif |
| 9115 | |
| 9116 | ; |
| 9117 | return 0; |
| 9118 | } |
| 9119 | _ACEOF |
| 9120 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9121 | if { (ac_try="$ac_compile" |
| 9122 | case "(($ac_try" in |
| 9123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9124 | *) ac_try_echo=$ac_try;; |
| 9125 | esac |
| 9126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9127 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9128 | ac_status=$? |
| 9129 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9130 | rm -f conftest.er1 |
| 9131 | cat conftest.err >&5 |
| 9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9133 | (exit $ac_status); } && { |
| 9134 | test -z "$ac_c_werror_flag" || |
| 9135 | test ! -s conftest.err |
| 9136 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9137 | ac_cv_have_decl__snprintf=yes |
| 9138 | else |
| 9139 | echo "$as_me: failed program was:" >&5 |
| 9140 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9141 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9142 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9143 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9144 | |
| 9145 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9146 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9147 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9148 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9149 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9150 | gt_value=1 |
| 9151 | else |
| 9152 | gt_value=0 |
| 9153 | fi |
| 9154 | |
| 9155 | cat >>confdefs.h <<_ACEOF |
| 9156 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9157 | _ACEOF |
| 9158 | |
| 9159 | |
| 9160 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9161 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9162 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9163 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9165 | else |
| 9166 | cat >conftest.$ac_ext <<_ACEOF |
| 9167 | /* confdefs.h. */ |
| 9168 | _ACEOF |
| 9169 | cat confdefs.h >>conftest.$ac_ext |
| 9170 | cat >>conftest.$ac_ext <<_ACEOF |
| 9171 | /* end confdefs.h. */ |
| 9172 | #include <stdio.h> |
| 9173 | int |
| 9174 | main () |
| 9175 | { |
| 9176 | |
| 9177 | #ifndef _snwprintf |
| 9178 | char *p = (char *) _snwprintf; |
| 9179 | #endif |
| 9180 | |
| 9181 | ; |
| 9182 | return 0; |
| 9183 | } |
| 9184 | _ACEOF |
| 9185 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9186 | if { (ac_try="$ac_compile" |
| 9187 | case "(($ac_try" in |
| 9188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9189 | *) ac_try_echo=$ac_try;; |
| 9190 | esac |
| 9191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9192 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | ac_status=$? |
| 9194 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9195 | rm -f conftest.er1 |
| 9196 | cat conftest.err >&5 |
| 9197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9198 | (exit $ac_status); } && { |
| 9199 | test -z "$ac_c_werror_flag" || |
| 9200 | test ! -s conftest.err |
| 9201 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9202 | ac_cv_have_decl__snwprintf=yes |
| 9203 | else |
| 9204 | echo "$as_me: failed program was:" >&5 |
| 9205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9207 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9208 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9209 | |
| 9210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9211 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9212 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9213 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9214 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9215 | gt_value=1 |
| 9216 | else |
| 9217 | gt_value=0 |
| 9218 | fi |
| 9219 | |
| 9220 | cat >>confdefs.h <<_ACEOF |
| 9221 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9222 | _ACEOF |
| 9223 | |
| 9224 | |
| 9225 | |
| 9226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9227 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9228 | echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9229 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9231 | else |
| 9232 | cat >conftest.$ac_ext <<_ACEOF |
| 9233 | /* confdefs.h. */ |
| 9234 | _ACEOF |
| 9235 | cat confdefs.h >>conftest.$ac_ext |
| 9236 | cat >>conftest.$ac_ext <<_ACEOF |
| 9237 | /* end confdefs.h. */ |
| 9238 | #include <stdio.h> |
| 9239 | int |
| 9240 | main () |
| 9241 | { |
| 9242 | |
| 9243 | #ifndef feof_unlocked |
| 9244 | char *p = (char *) feof_unlocked; |
| 9245 | #endif |
| 9246 | |
| 9247 | ; |
| 9248 | return 0; |
| 9249 | } |
| 9250 | _ACEOF |
| 9251 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9252 | if { (ac_try="$ac_compile" |
| 9253 | case "(($ac_try" in |
| 9254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9255 | *) ac_try_echo=$ac_try;; |
| 9256 | esac |
| 9257 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9258 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | ac_status=$? |
| 9260 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9261 | rm -f conftest.er1 |
| 9262 | cat conftest.err >&5 |
| 9263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9264 | (exit $ac_status); } && { |
| 9265 | test -z "$ac_c_werror_flag" || |
| 9266 | test ! -s conftest.err |
| 9267 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9268 | ac_cv_have_decl_feof_unlocked=yes |
| 9269 | else |
| 9270 | echo "$as_me: failed program was:" >&5 |
| 9271 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9272 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9273 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9274 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9275 | |
| 9276 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9277 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9278 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9279 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9280 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9281 | gt_value=1 |
| 9282 | else |
| 9283 | gt_value=0 |
| 9284 | fi |
| 9285 | |
| 9286 | cat >>confdefs.h <<_ACEOF |
| 9287 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9288 | _ACEOF |
| 9289 | |
| 9290 | |
| 9291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9292 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9293 | echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9294 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9296 | else |
| 9297 | cat >conftest.$ac_ext <<_ACEOF |
| 9298 | /* confdefs.h. */ |
| 9299 | _ACEOF |
| 9300 | cat confdefs.h >>conftest.$ac_ext |
| 9301 | cat >>conftest.$ac_ext <<_ACEOF |
| 9302 | /* end confdefs.h. */ |
| 9303 | #include <stdio.h> |
| 9304 | int |
| 9305 | main () |
| 9306 | { |
| 9307 | |
| 9308 | #ifndef fgets_unlocked |
| 9309 | char *p = (char *) fgets_unlocked; |
| 9310 | #endif |
| 9311 | |
| 9312 | ; |
| 9313 | return 0; |
| 9314 | } |
| 9315 | _ACEOF |
| 9316 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9317 | if { (ac_try="$ac_compile" |
| 9318 | case "(($ac_try" in |
| 9319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9320 | *) ac_try_echo=$ac_try;; |
| 9321 | esac |
| 9322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9323 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9324 | ac_status=$? |
| 9325 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9326 | rm -f conftest.er1 |
| 9327 | cat conftest.err >&5 |
| 9328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9329 | (exit $ac_status); } && { |
| 9330 | test -z "$ac_c_werror_flag" || |
| 9331 | test ! -s conftest.err |
| 9332 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9333 | ac_cv_have_decl_fgets_unlocked=yes |
| 9334 | else |
| 9335 | echo "$as_me: failed program was:" >&5 |
| 9336 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9337 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9338 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9339 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9340 | |
| 9341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9342 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9343 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9344 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9345 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9346 | gt_value=1 |
| 9347 | else |
| 9348 | gt_value=0 |
| 9349 | fi |
| 9350 | |
| 9351 | cat >>confdefs.h <<_ACEOF |
| 9352 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9353 | _ACEOF |
| 9354 | |
| 9355 | |
| 9356 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9357 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9358 | echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9359 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9361 | else |
| 9362 | cat >conftest.$ac_ext <<_ACEOF |
| 9363 | /* confdefs.h. */ |
| 9364 | _ACEOF |
| 9365 | cat confdefs.h >>conftest.$ac_ext |
| 9366 | cat >>conftest.$ac_ext <<_ACEOF |
| 9367 | /* end confdefs.h. */ |
| 9368 | #include <stdio.h> |
| 9369 | int |
| 9370 | main () |
| 9371 | { |
| 9372 | |
| 9373 | #ifndef getc_unlocked |
| 9374 | char *p = (char *) getc_unlocked; |
| 9375 | #endif |
| 9376 | |
| 9377 | ; |
| 9378 | return 0; |
| 9379 | } |
| 9380 | _ACEOF |
| 9381 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9382 | if { (ac_try="$ac_compile" |
| 9383 | case "(($ac_try" in |
| 9384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9385 | *) ac_try_echo=$ac_try;; |
| 9386 | esac |
| 9387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9388 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9389 | ac_status=$? |
| 9390 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9391 | rm -f conftest.er1 |
| 9392 | cat conftest.err >&5 |
| 9393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9394 | (exit $ac_status); } && { |
| 9395 | test -z "$ac_c_werror_flag" || |
| 9396 | test ! -s conftest.err |
| 9397 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9398 | ac_cv_have_decl_getc_unlocked=yes |
| 9399 | else |
| 9400 | echo "$as_me: failed program was:" >&5 |
| 9401 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9403 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9404 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9405 | |
| 9406 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9407 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9408 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9409 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9410 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9411 | gt_value=1 |
| 9412 | else |
| 9413 | gt_value=0 |
| 9414 | fi |
| 9415 | |
| 9416 | cat >>confdefs.h <<_ACEOF |
| 9417 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9418 | _ACEOF |
| 9419 | |
| 9420 | |
| 9421 | |
| 9422 | case $gt_cv_func_printf_posix in |
| 9423 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9424 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9425 | esac |
| 9426 | |
| 9427 | if test "$ac_cv_func_asprintf" = yes; then |
| 9428 | HAVE_ASPRINTF=1 |
| 9429 | else |
| 9430 | HAVE_ASPRINTF=0 |
| 9431 | fi |
| 9432 | |
| 9433 | if test "$ac_cv_func_snprintf" = yes; then |
| 9434 | HAVE_SNPRINTF=1 |
| 9435 | else |
| 9436 | HAVE_SNPRINTF=0 |
| 9437 | fi |
| 9438 | |
| 9439 | if test "$ac_cv_func_wprintf" = yes; then |
| 9440 | HAVE_WPRINTF=1 |
| 9441 | else |
| 9442 | HAVE_WPRINTF=0 |
| 9443 | fi |
| 9444 | |
| 9445 | |
| 9446 | |
| 9447 | |
| 9448 | |
| 9449 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9450 | |
| 9451 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9452 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9453 | for element in $INCICONV; do |
| 9454 | haveit= |
| 9455 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9456 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9457 | acl_save_prefix="$prefix" |
| 9458 | prefix="$acl_final_prefix" |
| 9459 | acl_save_exec_prefix="$exec_prefix" |
| 9460 | exec_prefix="$acl_final_exec_prefix" |
| 9461 | eval x=\"$x\" |
| 9462 | exec_prefix="$acl_save_exec_prefix" |
| 9463 | prefix="$acl_save_prefix" |
| 9464 | |
| 9465 | if test "X$x" = "X$element"; then |
| 9466 | haveit=yes |
| 9467 | break |
| 9468 | fi |
| 9469 | done |
| 9470 | if test -z "$haveit"; then |
| 9471 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9472 | fi |
| 9473 | done |
| 9474 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9476 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9477 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9478 | if test "${am_cv_func_iconv+set}" = set; then |
| 9479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9480 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9481 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9482 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9483 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9484 | cat >conftest.$ac_ext <<_ACEOF |
| 9485 | /* confdefs.h. */ |
| 9486 | _ACEOF |
| 9487 | cat confdefs.h >>conftest.$ac_ext |
| 9488 | cat >>conftest.$ac_ext <<_ACEOF |
| 9489 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9490 | #include <stdlib.h> |
| 9491 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9492 | int |
| 9493 | main () |
| 9494 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9495 | iconv_t cd = iconv_open("",""); |
| 9496 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9497 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9498 | ; |
| 9499 | return 0; |
| 9500 | } |
| 9501 | _ACEOF |
| 9502 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9503 | if { (ac_try="$ac_link" |
| 9504 | case "(($ac_try" in |
| 9505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9506 | *) ac_try_echo=$ac_try;; |
| 9507 | esac |
| 9508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9509 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9510 | ac_status=$? |
| 9511 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9512 | rm -f conftest.er1 |
| 9513 | cat conftest.err >&5 |
| 9514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9515 | (exit $ac_status); } && { |
| 9516 | test -z "$ac_c_werror_flag" || |
| 9517 | test ! -s conftest.err |
| 9518 | } && test -s conftest$ac_exeext && |
| 9519 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9520 | am_cv_func_iconv=yes |
| 9521 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9522 | echo "$as_me: failed program was:" >&5 |
| 9523 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9524 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9525 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9526 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9527 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9528 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9529 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9530 | if test "$am_cv_func_iconv" != yes; then |
| 9531 | am_save_LIBS="$LIBS" |
| 9532 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9533 | cat >conftest.$ac_ext <<_ACEOF |
| 9534 | /* confdefs.h. */ |
| 9535 | _ACEOF |
| 9536 | cat confdefs.h >>conftest.$ac_ext |
| 9537 | cat >>conftest.$ac_ext <<_ACEOF |
| 9538 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9539 | #include <stdlib.h> |
| 9540 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9541 | int |
| 9542 | main () |
| 9543 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9544 | iconv_t cd = iconv_open("",""); |
| 9545 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9546 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9547 | ; |
| 9548 | return 0; |
| 9549 | } |
| 9550 | _ACEOF |
| 9551 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9552 | if { (ac_try="$ac_link" |
| 9553 | case "(($ac_try" in |
| 9554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9555 | *) ac_try_echo=$ac_try;; |
| 9556 | esac |
| 9557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9558 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9559 | ac_status=$? |
| 9560 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9561 | rm -f conftest.er1 |
| 9562 | cat conftest.err >&5 |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9564 | (exit $ac_status); } && { |
| 9565 | test -z "$ac_c_werror_flag" || |
| 9566 | test ! -s conftest.err |
| 9567 | } && test -s conftest$ac_exeext && |
| 9568 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9569 | am_cv_lib_iconv=yes |
| 9570 | am_cv_func_iconv=yes |
| 9571 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9572 | echo "$as_me: failed program was:" >&5 |
| 9573 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9575 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9576 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9577 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9579 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9580 | LIBS="$am_save_LIBS" |
| 9581 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9582 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9583 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9584 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9585 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9586 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9587 | |
| 9588 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9589 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9590 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9591 | |
| 9592 | fi |
| 9593 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9594 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9595 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9596 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9597 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9598 | else |
| 9599 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9600 | LIBICONV= |
| 9601 | LTLIBICONV= |
| 9602 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9603 | |
| 9604 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9605 | |
| 9606 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9607 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9608 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9609 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9611 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9612 | |
| 9613 | cat >conftest.$ac_ext <<_ACEOF |
| 9614 | /* confdefs.h. */ |
| 9615 | _ACEOF |
| 9616 | cat confdefs.h >>conftest.$ac_ext |
| 9617 | cat >>conftest.$ac_ext <<_ACEOF |
| 9618 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9619 | |
| 9620 | #include <stdlib.h> |
| 9621 | #include <iconv.h> |
| 9622 | extern |
| 9623 | #ifdef __cplusplus |
| 9624 | "C" |
| 9625 | #endif |
| 9626 | #if defined(__STDC__) || defined(__cplusplus) |
| 9627 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9628 | #else |
| 9629 | size_t iconv(); |
| 9630 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9631 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9632 | int |
| 9633 | main () |
| 9634 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9635 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9636 | ; |
| 9637 | return 0; |
| 9638 | } |
| 9639 | _ACEOF |
| 9640 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9641 | if { (ac_try="$ac_compile" |
| 9642 | case "(($ac_try" in |
| 9643 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9644 | *) ac_try_echo=$ac_try;; |
| 9645 | esac |
| 9646 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9647 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9648 | ac_status=$? |
| 9649 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9650 | rm -f conftest.er1 |
| 9651 | cat conftest.err >&5 |
| 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9653 | (exit $ac_status); } && { |
| 9654 | test -z "$ac_c_werror_flag" || |
| 9655 | test ! -s conftest.err |
| 9656 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9657 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9658 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9659 | echo "$as_me: failed program was:" >&5 |
| 9660 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9662 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9663 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9664 | |
| 9665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9666 | 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] | 9667 | fi |
| 9668 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9669 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9670 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9671 | }$am_cv_proto_iconv" >&5 |
| 9672 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9673 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9674 | |
| 9675 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9676 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9677 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9678 | |
| 9679 | fi |
| 9680 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9681 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9682 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9683 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9684 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9686 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | cat >conftest.$ac_ext <<_ACEOF |
| 9688 | /* confdefs.h. */ |
| 9689 | _ACEOF |
| 9690 | cat confdefs.h >>conftest.$ac_ext |
| 9691 | cat >>conftest.$ac_ext <<_ACEOF |
| 9692 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9693 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9694 | int |
| 9695 | main () |
| 9696 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9697 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9698 | ; |
| 9699 | return 0; |
| 9700 | } |
| 9701 | _ACEOF |
| 9702 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9703 | if { (ac_try="$ac_link" |
| 9704 | case "(($ac_try" in |
| 9705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9706 | *) ac_try_echo=$ac_try;; |
| 9707 | esac |
| 9708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9709 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9710 | ac_status=$? |
| 9711 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9712 | rm -f conftest.er1 |
| 9713 | cat conftest.err >&5 |
| 9714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9715 | (exit $ac_status); } && { |
| 9716 | test -z "$ac_c_werror_flag" || |
| 9717 | test ! -s conftest.err |
| 9718 | } && test -s conftest$ac_exeext && |
| 9719 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9720 | am_cv_langinfo_codeset=yes |
| 9721 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9722 | echo "$as_me: failed program was:" >&5 |
| 9723 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9725 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9726 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9727 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9728 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9729 | conftest$ac_exeext conftest.$ac_ext |
| 9730 | |
| 9731 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9732 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 9733 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9734 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9735 | |
| 9736 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9737 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9738 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9739 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9740 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9741 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9742 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9743 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9744 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 9745 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9746 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9748 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9749 | cat >conftest.$ac_ext <<_ACEOF |
| 9750 | /* confdefs.h. */ |
| 9751 | _ACEOF |
| 9752 | cat confdefs.h >>conftest.$ac_ext |
| 9753 | cat >>conftest.$ac_ext <<_ACEOF |
| 9754 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9755 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9756 | int |
| 9757 | main () |
| 9758 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9759 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9760 | ; |
| 9761 | return 0; |
| 9762 | } |
| 9763 | _ACEOF |
| 9764 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9765 | if { (ac_try="$ac_link" |
| 9766 | case "(($ac_try" in |
| 9767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9768 | *) ac_try_echo=$ac_try;; |
| 9769 | esac |
| 9770 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9771 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9772 | ac_status=$? |
| 9773 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9774 | rm -f conftest.er1 |
| 9775 | cat conftest.err >&5 |
| 9776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9777 | (exit $ac_status); } && { |
| 9778 | test -z "$ac_c_werror_flag" || |
| 9779 | test ! -s conftest.err |
| 9780 | } && test -s conftest$ac_exeext && |
| 9781 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9782 | am_cv_val_LC_MESSAGES=yes |
| 9783 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9784 | echo "$as_me: failed program was:" >&5 |
| 9785 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9786 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9787 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9788 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9789 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9790 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9791 | conftest$ac_exeext conftest.$ac_ext |
| 9792 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9793 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 9794 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9795 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9796 | |
| 9797 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9798 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9799 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9800 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9801 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9802 | |
| 9803 | fi |
| 9804 | |
| 9805 | for ac_prog in bison |
| 9806 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9807 | # 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] | 9808 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9809 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 9810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9811 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 9812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9813 | else |
| 9814 | if test -n "$INTLBISON"; then |
| 9815 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 9816 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9818 | for as_dir in $PATH |
| 9819 | do |
| 9820 | IFS=$as_save_IFS |
| 9821 | test -z "$as_dir" && as_dir=. |
| 9822 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9823 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9824 | ac_cv_prog_INTLBISON="$ac_prog" |
| 9825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9826 | break 2 |
| 9827 | fi |
| 9828 | done |
| 9829 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9830 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9831 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9832 | fi |
| 9833 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9834 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9835 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9836 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 9837 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9838 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9839 | { echo "$as_me:$LINENO: result: no" >&5 |
| 9840 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9841 | fi |
| 9842 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9843 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9844 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9845 | done |
| 9846 | |
| 9847 | if test -z "$INTLBISON"; then |
| 9848 | ac_verc_fail=yes |
| 9849 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9850 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 9851 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9852 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 9853 | case $ac_prog_version in |
| 9854 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 9855 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 9856 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 9857 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 9858 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9859 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 9860 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9861 | fi |
| 9862 | if test $ac_verc_fail = yes; then |
| 9863 | INTLBISON=: |
| 9864 | fi |
| 9865 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9866 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9867 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9868 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9869 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9870 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9871 | |
| 9872 | |
| 9873 | |
| 9874 | |
| 9875 | |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9881 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 9882 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 9883 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9884 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9885 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9886 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9887 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9888 | fi |
| 9889 | |
| 9890 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 9891 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9892 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9893 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9894 | |
| 9895 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9896 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9897 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9898 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9899 | LIBINTL= |
| 9900 | LTLIBINTL= |
| 9901 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9902 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9903 | if test "$USE_NLS" = "yes"; then |
| 9904 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9906 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 9907 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9909 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9910 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9911 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9912 | else |
| 9913 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9914 | fi |
| 9915 | |
| 9916 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 9917 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9918 | |
| 9919 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 9920 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9921 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9922 | |
| 9923 | |
| 9924 | |
| 9925 | |
| 9926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9927 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 9928 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9929 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 9930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9931 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9932 | cat >conftest.$ac_ext <<_ACEOF |
| 9933 | /* confdefs.h. */ |
| 9934 | _ACEOF |
| 9935 | cat confdefs.h >>conftest.$ac_ext |
| 9936 | cat >>conftest.$ac_ext <<_ACEOF |
| 9937 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9938 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9939 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9940 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9941 | int |
| 9942 | main () |
| 9943 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9944 | bindtextdomain ("", ""); |
| 9945 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9946 | ; |
| 9947 | return 0; |
| 9948 | } |
| 9949 | _ACEOF |
| 9950 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9951 | if { (ac_try="$ac_link" |
| 9952 | case "(($ac_try" in |
| 9953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9954 | *) ac_try_echo=$ac_try;; |
| 9955 | esac |
| 9956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9957 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | ac_status=$? |
| 9959 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9960 | rm -f conftest.er1 |
| 9961 | cat conftest.err >&5 |
| 9962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9963 | (exit $ac_status); } && { |
| 9964 | test -z "$ac_c_werror_flag" || |
| 9965 | test ! -s conftest.err |
| 9966 | } && test -s conftest$ac_exeext && |
| 9967 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9968 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9969 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9970 | echo "$as_me: failed program was:" >&5 |
| 9971 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9972 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9973 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9974 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9975 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9977 | conftest$ac_exeext conftest.$ac_ext |
| 9978 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9979 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 9980 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9981 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9982 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9983 | |
| 9984 | |
| 9985 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9986 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9988 | acl_save_prefix="$prefix" |
| 9989 | prefix="$acl_final_prefix" |
| 9990 | acl_save_exec_prefix="$exec_prefix" |
| 9991 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9992 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9993 | eval additional_includedir=\"$includedir\" |
| 9994 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9996 | exec_prefix="$acl_save_exec_prefix" |
| 9997 | prefix="$acl_save_prefix" |
| 9998 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9999 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10000 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10001 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10002 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10003 | if test "X$withval" = "Xno"; then |
| 10004 | use_additional=no |
| 10005 | else |
| 10006 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10007 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10008 | acl_save_prefix="$prefix" |
| 10009 | prefix="$acl_final_prefix" |
| 10010 | acl_save_exec_prefix="$exec_prefix" |
| 10011 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10012 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10013 | eval additional_includedir=\"$includedir\" |
| 10014 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10015 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10016 | exec_prefix="$acl_save_exec_prefix" |
| 10017 | prefix="$acl_save_prefix" |
| 10018 | |
| 10019 | else |
| 10020 | additional_includedir="$withval/include" |
| 10021 | additional_libdir="$withval/lib" |
| 10022 | fi |
| 10023 | fi |
| 10024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10025 | fi |
| 10026 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10027 | LIBINTL= |
| 10028 | LTLIBINTL= |
| 10029 | INCINTL= |
| 10030 | rpathdirs= |
| 10031 | ltrpathdirs= |
| 10032 | names_already_handled= |
| 10033 | names_next_round='intl ' |
| 10034 | while test -n "$names_next_round"; do |
| 10035 | names_this_round="$names_next_round" |
| 10036 | names_next_round= |
| 10037 | for name in $names_this_round; do |
| 10038 | already_handled= |
| 10039 | for n in $names_already_handled; do |
| 10040 | if test "$n" = "$name"; then |
| 10041 | already_handled=yes |
| 10042 | break |
| 10043 | fi |
| 10044 | done |
| 10045 | if test -z "$already_handled"; then |
| 10046 | names_already_handled="$names_already_handled $name" |
| 10047 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10048 | eval value=\"\$HAVE_LIB$uppername\" |
| 10049 | if test -n "$value"; then |
| 10050 | if test "$value" = yes; then |
| 10051 | eval value=\"\$LIB$uppername\" |
| 10052 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10053 | eval value=\"\$LTLIB$uppername\" |
| 10054 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10055 | else |
| 10056 | : |
| 10057 | fi |
| 10058 | else |
| 10059 | found_dir= |
| 10060 | found_la= |
| 10061 | found_so= |
| 10062 | found_a= |
| 10063 | if test $use_additional = yes; then |
| 10064 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10065 | found_dir="$additional_libdir" |
| 10066 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10067 | if test -f "$additional_libdir/lib$name.la"; then |
| 10068 | found_la="$additional_libdir/lib$name.la" |
| 10069 | fi |
| 10070 | else |
| 10071 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10072 | found_dir="$additional_libdir" |
| 10073 | found_a="$additional_libdir/lib$name.$libext" |
| 10074 | if test -f "$additional_libdir/lib$name.la"; then |
| 10075 | found_la="$additional_libdir/lib$name.la" |
| 10076 | fi |
| 10077 | fi |
| 10078 | fi |
| 10079 | fi |
| 10080 | if test "X$found_dir" = "X"; then |
| 10081 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10082 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10083 | acl_save_prefix="$prefix" |
| 10084 | prefix="$acl_final_prefix" |
| 10085 | acl_save_exec_prefix="$exec_prefix" |
| 10086 | exec_prefix="$acl_final_exec_prefix" |
| 10087 | eval x=\"$x\" |
| 10088 | exec_prefix="$acl_save_exec_prefix" |
| 10089 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10090 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10091 | case "$x" in |
| 10092 | -L*) |
| 10093 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10094 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10095 | found_dir="$dir" |
| 10096 | found_so="$dir/lib$name.$shlibext" |
| 10097 | if test -f "$dir/lib$name.la"; then |
| 10098 | found_la="$dir/lib$name.la" |
| 10099 | fi |
| 10100 | else |
| 10101 | if test -f "$dir/lib$name.$libext"; then |
| 10102 | found_dir="$dir" |
| 10103 | found_a="$dir/lib$name.$libext" |
| 10104 | if test -f "$dir/lib$name.la"; then |
| 10105 | found_la="$dir/lib$name.la" |
| 10106 | fi |
| 10107 | fi |
| 10108 | fi |
| 10109 | ;; |
| 10110 | esac |
| 10111 | if test "X$found_dir" != "X"; then |
| 10112 | break |
| 10113 | fi |
| 10114 | done |
| 10115 | fi |
| 10116 | if test "X$found_dir" != "X"; then |
| 10117 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10118 | if test "X$found_so" != "X"; then |
| 10119 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10120 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10121 | else |
| 10122 | haveit= |
| 10123 | for x in $ltrpathdirs; do |
| 10124 | if test "X$x" = "X$found_dir"; then |
| 10125 | haveit=yes |
| 10126 | break |
| 10127 | fi |
| 10128 | done |
| 10129 | if test -z "$haveit"; then |
| 10130 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10131 | fi |
| 10132 | if test "$hardcode_direct" = yes; then |
| 10133 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10134 | else |
| 10135 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10136 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10137 | haveit= |
| 10138 | for x in $rpathdirs; do |
| 10139 | if test "X$x" = "X$found_dir"; then |
| 10140 | haveit=yes |
| 10141 | break |
| 10142 | fi |
| 10143 | done |
| 10144 | if test -z "$haveit"; then |
| 10145 | rpathdirs="$rpathdirs $found_dir" |
| 10146 | fi |
| 10147 | else |
| 10148 | haveit= |
| 10149 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10150 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10151 | acl_save_prefix="$prefix" |
| 10152 | prefix="$acl_final_prefix" |
| 10153 | acl_save_exec_prefix="$exec_prefix" |
| 10154 | exec_prefix="$acl_final_exec_prefix" |
| 10155 | eval x=\"$x\" |
| 10156 | exec_prefix="$acl_save_exec_prefix" |
| 10157 | prefix="$acl_save_prefix" |
| 10158 | |
| 10159 | if test "X$x" = "X-L$found_dir"; then |
| 10160 | haveit=yes |
| 10161 | break |
| 10162 | fi |
| 10163 | done |
| 10164 | if test -z "$haveit"; then |
| 10165 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10166 | fi |
| 10167 | if test "$hardcode_minus_L" != no; then |
| 10168 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10169 | else |
| 10170 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10171 | fi |
| 10172 | fi |
| 10173 | fi |
| 10174 | fi |
| 10175 | else |
| 10176 | if test "X$found_a" != "X"; then |
| 10177 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10178 | else |
| 10179 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10180 | fi |
| 10181 | fi |
| 10182 | additional_includedir= |
| 10183 | case "$found_dir" in |
| 10184 | */lib | */lib/) |
| 10185 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10186 | additional_includedir="$basedir/include" |
| 10187 | ;; |
| 10188 | esac |
| 10189 | if test "X$additional_includedir" != "X"; then |
| 10190 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10191 | haveit= |
| 10192 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10193 | if test -n "$GCC"; then |
| 10194 | case $host_os in |
| 10195 | linux*) haveit=yes;; |
| 10196 | esac |
| 10197 | fi |
| 10198 | fi |
| 10199 | if test -z "$haveit"; then |
| 10200 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10201 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10202 | acl_save_prefix="$prefix" |
| 10203 | prefix="$acl_final_prefix" |
| 10204 | acl_save_exec_prefix="$exec_prefix" |
| 10205 | exec_prefix="$acl_final_exec_prefix" |
| 10206 | eval x=\"$x\" |
| 10207 | exec_prefix="$acl_save_exec_prefix" |
| 10208 | prefix="$acl_save_prefix" |
| 10209 | |
| 10210 | if test "X$x" = "X-I$additional_includedir"; then |
| 10211 | haveit=yes |
| 10212 | break |
| 10213 | fi |
| 10214 | done |
| 10215 | if test -z "$haveit"; then |
| 10216 | if test -d "$additional_includedir"; then |
| 10217 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10218 | fi |
| 10219 | fi |
| 10220 | fi |
| 10221 | fi |
| 10222 | fi |
| 10223 | if test -n "$found_la"; then |
| 10224 | save_libdir="$libdir" |
| 10225 | case "$found_la" in |
| 10226 | */* | *\\*) . "$found_la" ;; |
| 10227 | *) . "./$found_la" ;; |
| 10228 | esac |
| 10229 | libdir="$save_libdir" |
| 10230 | for dep in $dependency_libs; do |
| 10231 | case "$dep" in |
| 10232 | -L*) |
| 10233 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10234 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10235 | haveit= |
| 10236 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10237 | if test -n "$GCC"; then |
| 10238 | case $host_os in |
| 10239 | linux*) haveit=yes;; |
| 10240 | esac |
| 10241 | fi |
| 10242 | fi |
| 10243 | if test -z "$haveit"; then |
| 10244 | haveit= |
| 10245 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10246 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10247 | acl_save_prefix="$prefix" |
| 10248 | prefix="$acl_final_prefix" |
| 10249 | acl_save_exec_prefix="$exec_prefix" |
| 10250 | exec_prefix="$acl_final_exec_prefix" |
| 10251 | eval x=\"$x\" |
| 10252 | exec_prefix="$acl_save_exec_prefix" |
| 10253 | prefix="$acl_save_prefix" |
| 10254 | |
| 10255 | if test "X$x" = "X-L$additional_libdir"; then |
| 10256 | haveit=yes |
| 10257 | break |
| 10258 | fi |
| 10259 | done |
| 10260 | if test -z "$haveit"; then |
| 10261 | if test -d "$additional_libdir"; then |
| 10262 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10263 | fi |
| 10264 | fi |
| 10265 | haveit= |
| 10266 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10267 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10268 | acl_save_prefix="$prefix" |
| 10269 | prefix="$acl_final_prefix" |
| 10270 | acl_save_exec_prefix="$exec_prefix" |
| 10271 | exec_prefix="$acl_final_exec_prefix" |
| 10272 | eval x=\"$x\" |
| 10273 | exec_prefix="$acl_save_exec_prefix" |
| 10274 | prefix="$acl_save_prefix" |
| 10275 | |
| 10276 | if test "X$x" = "X-L$additional_libdir"; then |
| 10277 | haveit=yes |
| 10278 | break |
| 10279 | fi |
| 10280 | done |
| 10281 | if test -z "$haveit"; then |
| 10282 | if test -d "$additional_libdir"; then |
| 10283 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10284 | fi |
| 10285 | fi |
| 10286 | fi |
| 10287 | fi |
| 10288 | ;; |
| 10289 | -R*) |
| 10290 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10291 | if test "$enable_rpath" != no; then |
| 10292 | haveit= |
| 10293 | for x in $rpathdirs; do |
| 10294 | if test "X$x" = "X$dir"; then |
| 10295 | haveit=yes |
| 10296 | break |
| 10297 | fi |
| 10298 | done |
| 10299 | if test -z "$haveit"; then |
| 10300 | rpathdirs="$rpathdirs $dir" |
| 10301 | fi |
| 10302 | haveit= |
| 10303 | for x in $ltrpathdirs; do |
| 10304 | if test "X$x" = "X$dir"; then |
| 10305 | haveit=yes |
| 10306 | break |
| 10307 | fi |
| 10308 | done |
| 10309 | if test -z "$haveit"; then |
| 10310 | ltrpathdirs="$ltrpathdirs $dir" |
| 10311 | fi |
| 10312 | fi |
| 10313 | ;; |
| 10314 | -l*) |
| 10315 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10316 | ;; |
| 10317 | *.la) |
| 10318 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10319 | ;; |
| 10320 | *) |
| 10321 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10322 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10323 | ;; |
| 10324 | esac |
| 10325 | done |
| 10326 | fi |
| 10327 | else |
| 10328 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10329 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10330 | fi |
| 10331 | fi |
| 10332 | fi |
| 10333 | done |
| 10334 | done |
| 10335 | if test "X$rpathdirs" != "X"; then |
| 10336 | if test -n "$hardcode_libdir_separator"; then |
| 10337 | alldirs= |
| 10338 | for found_dir in $rpathdirs; do |
| 10339 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10340 | done |
| 10341 | acl_save_libdir="$libdir" |
| 10342 | libdir="$alldirs" |
| 10343 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10344 | libdir="$acl_save_libdir" |
| 10345 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10346 | else |
| 10347 | for found_dir in $rpathdirs; do |
| 10348 | acl_save_libdir="$libdir" |
| 10349 | libdir="$found_dir" |
| 10350 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10351 | libdir="$acl_save_libdir" |
| 10352 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10353 | done |
| 10354 | fi |
| 10355 | fi |
| 10356 | if test "X$ltrpathdirs" != "X"; then |
| 10357 | for found_dir in $ltrpathdirs; do |
| 10358 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10359 | done |
| 10360 | fi |
| 10361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10362 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10363 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10364 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10366 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10367 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10368 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10369 | gt_save_LIBS="$LIBS" |
| 10370 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10371 | cat >conftest.$ac_ext <<_ACEOF |
| 10372 | /* confdefs.h. */ |
| 10373 | _ACEOF |
| 10374 | cat confdefs.h >>conftest.$ac_ext |
| 10375 | cat >>conftest.$ac_ext <<_ACEOF |
| 10376 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10377 | #include <libintl.h> |
| 10378 | extern int _nl_msg_cat_cntr; |
| 10379 | extern |
| 10380 | #ifdef __cplusplus |
| 10381 | "C" |
| 10382 | #endif |
| 10383 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10384 | int |
| 10385 | main () |
| 10386 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10387 | bindtextdomain ("", ""); |
| 10388 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10389 | ; |
| 10390 | return 0; |
| 10391 | } |
| 10392 | _ACEOF |
| 10393 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10394 | if { (ac_try="$ac_link" |
| 10395 | case "(($ac_try" in |
| 10396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10397 | *) ac_try_echo=$ac_try;; |
| 10398 | esac |
| 10399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10400 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10401 | ac_status=$? |
| 10402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10403 | rm -f conftest.er1 |
| 10404 | cat conftest.err >&5 |
| 10405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10406 | (exit $ac_status); } && { |
| 10407 | test -z "$ac_c_werror_flag" || |
| 10408 | test ! -s conftest.err |
| 10409 | } && test -s conftest$ac_exeext && |
| 10410 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10411 | gt_cv_func_gnugettext1_libintl=yes |
| 10412 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10413 | echo "$as_me: failed program was:" >&5 |
| 10414 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10415 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10416 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10418 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10419 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10420 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10421 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10422 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10423 | cat >conftest.$ac_ext <<_ACEOF |
| 10424 | /* confdefs.h. */ |
| 10425 | _ACEOF |
| 10426 | cat confdefs.h >>conftest.$ac_ext |
| 10427 | cat >>conftest.$ac_ext <<_ACEOF |
| 10428 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10429 | #include <libintl.h> |
| 10430 | extern int _nl_msg_cat_cntr; |
| 10431 | extern |
| 10432 | #ifdef __cplusplus |
| 10433 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10434 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10435 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10436 | int |
| 10437 | main () |
| 10438 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10439 | bindtextdomain ("", ""); |
| 10440 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10441 | ; |
| 10442 | return 0; |
| 10443 | } |
| 10444 | _ACEOF |
| 10445 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10446 | if { (ac_try="$ac_link" |
| 10447 | case "(($ac_try" in |
| 10448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10449 | *) ac_try_echo=$ac_try;; |
| 10450 | esac |
| 10451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10452 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10453 | ac_status=$? |
| 10454 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10455 | rm -f conftest.er1 |
| 10456 | cat conftest.err >&5 |
| 10457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10458 | (exit $ac_status); } && { |
| 10459 | test -z "$ac_c_werror_flag" || |
| 10460 | test ! -s conftest.err |
| 10461 | } && test -s conftest$ac_exeext && |
| 10462 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10463 | LIBINTL="$LIBINTL $LIBICONV" |
| 10464 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10465 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10466 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10467 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10468 | echo "$as_me: failed program was:" >&5 |
| 10469 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10470 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10471 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10472 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10473 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10474 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10475 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10476 | fi |
| 10477 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10478 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10479 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10480 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10481 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10482 | fi |
| 10483 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10484 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10485 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10486 | && test "$PACKAGE" != gettext-runtime \ |
| 10487 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10488 | gt_use_preinstalled_gnugettext=yes |
| 10489 | else |
| 10490 | LIBINTL= |
| 10491 | LTLIBINTL= |
| 10492 | INCINTL= |
| 10493 | fi |
| 10494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10495 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10496 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10497 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10498 | fi |
| 10499 | fi |
| 10500 | |
| 10501 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10502 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10503 | USE_INCLUDED_LIBINTL=yes |
| 10504 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10505 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10506 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10507 | fi |
| 10508 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10509 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10510 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10511 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10512 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10513 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10514 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10515 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10516 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10517 | |
| 10518 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10519 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10520 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10521 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10522 | else |
| 10523 | USE_NLS=no |
| 10524 | fi |
| 10525 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10526 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10527 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10528 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10529 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10530 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10531 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10532 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10533 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10534 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10535 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10536 | gt_source="external libintl" |
| 10537 | else |
| 10538 | gt_source="libc" |
| 10539 | fi |
| 10540 | else |
| 10541 | gt_source="included intl directory" |
| 10542 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10543 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10544 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10545 | fi |
| 10546 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10547 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10548 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10549 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10550 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10551 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10552 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10553 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10554 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10555 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10556 | for element in $INCINTL; do |
| 10557 | haveit= |
| 10558 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10559 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10560 | acl_save_prefix="$prefix" |
| 10561 | prefix="$acl_final_prefix" |
| 10562 | acl_save_exec_prefix="$exec_prefix" |
| 10563 | exec_prefix="$acl_final_exec_prefix" |
| 10564 | eval x=\"$x\" |
| 10565 | exec_prefix="$acl_save_exec_prefix" |
| 10566 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10567 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10568 | if test "X$x" = "X$element"; then |
| 10569 | haveit=yes |
| 10570 | break |
| 10571 | fi |
| 10572 | done |
| 10573 | if test -z "$haveit"; then |
| 10574 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10575 | fi |
| 10576 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10577 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10578 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10579 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10580 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10581 | cat >>confdefs.h <<\_ACEOF |
| 10582 | #define HAVE_GETTEXT 1 |
| 10583 | _ACEOF |
| 10584 | |
| 10585 | |
| 10586 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10587 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10588 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10589 | |
| 10590 | fi |
| 10591 | |
| 10592 | POSUB=po |
| 10593 | fi |
| 10594 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10595 | |
| 10596 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10597 | BUILD_INCLUDED_LIBINTL=yes |
| 10598 | fi |
| 10599 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10600 | |
| 10601 | |
| 10602 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10603 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10604 | nls_cv_header_intl= |
| 10605 | nls_cv_header_libgt= |
| 10606 | |
| 10607 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10608 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10609 | |
| 10610 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10611 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10612 | |
| 10613 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10614 | |
| 10615 | |
| 10616 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10617 | INTLOBJS="\$(GETTOBJS)" |
| 10618 | fi |
| 10619 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10620 | |
| 10621 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10622 | |
| 10623 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10624 | |
| 10625 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10626 | |
| 10627 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10633 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10634 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10635 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10636 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10638 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10639 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10640 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10641 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10642 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10643 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10644 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10645 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10646 | *@@@%%%=?*=@@@%%%*) |
| 10647 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10648 | *) |
| 10649 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10650 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10651 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10652 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10653 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10654 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10655 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10656 | SET_MAKE= |
| 10657 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10658 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10659 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10660 | SET_MAKE="MAKE=${MAKE-make}" |
| 10661 | fi |
| 10662 | |
| 10663 | # Extract the first word of "ln", so it can be a program name with args. |
| 10664 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10665 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10667 | if test "${ac_cv_path_LN+set}" = set; then |
| 10668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10669 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10670 | case $LN in |
| 10671 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10672 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10673 | ;; |
| 10674 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10676 | for as_dir in $PATH |
| 10677 | do |
| 10678 | IFS=$as_save_IFS |
| 10679 | test -z "$as_dir" && as_dir=. |
| 10680 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10681 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10682 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10683 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10684 | break 2 |
| 10685 | fi |
| 10686 | done |
| 10687 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10688 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10689 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10690 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10691 | ;; |
| 10692 | esac |
| 10693 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10694 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10695 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10696 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10697 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10698 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10699 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10700 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10701 | fi |
| 10702 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10703 | |
| 10704 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10705 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10706 | LN_S=$as_ln_s |
| 10707 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10708 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10709 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10710 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10711 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10712 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10713 | fi |
| 10714 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10715 | # Extract the first word of "mv", so it can be a program name with args. |
| 10716 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10717 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10719 | if test "${ac_cv_path_MV+set}" = set; then |
| 10720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10721 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10722 | case $MV in |
| 10723 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10724 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 10725 | ;; |
| 10726 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10728 | for as_dir in $PATH |
| 10729 | do |
| 10730 | IFS=$as_save_IFS |
| 10731 | test -z "$as_dir" && as_dir=. |
| 10732 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10734 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 10735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10736 | break 2 |
| 10737 | fi |
| 10738 | done |
| 10739 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10740 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10741 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10742 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 10743 | ;; |
| 10744 | esac |
| 10745 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10746 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10747 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10748 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 10749 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10750 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10751 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10752 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10753 | fi |
| 10754 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10755 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10756 | # Extract the first word of "cp", so it can be a program name with args. |
| 10757 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10758 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10760 | if test "${ac_cv_path_CP+set}" = set; then |
| 10761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10762 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | case $CP in |
| 10764 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10765 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 10766 | ;; |
| 10767 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10769 | for as_dir in $PATH |
| 10770 | do |
| 10771 | IFS=$as_save_IFS |
| 10772 | test -z "$as_dir" && as_dir=. |
| 10773 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10774 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10775 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 10776 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10777 | break 2 |
| 10778 | fi |
| 10779 | done |
| 10780 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10781 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10782 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10783 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 10784 | ;; |
| 10785 | esac |
| 10786 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10787 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10788 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10789 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 10790 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10791 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10792 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10793 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10794 | fi |
| 10795 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10796 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10797 | # Extract the first word of "rm", so it can be a program name with args. |
| 10798 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10801 | if test "${ac_cv_path_RM+set}" = set; then |
| 10802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10803 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10804 | case $RM in |
| 10805 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10806 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 10807 | ;; |
| 10808 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10810 | for as_dir in $PATH |
| 10811 | do |
| 10812 | IFS=$as_save_IFS |
| 10813 | test -z "$as_dir" && as_dir=. |
| 10814 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10816 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 10817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10818 | break 2 |
| 10819 | fi |
| 10820 | done |
| 10821 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10822 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10824 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 10825 | ;; |
| 10826 | esac |
| 10827 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10828 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10829 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10830 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 10831 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10832 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10833 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10834 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10835 | fi |
| 10836 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10837 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10838 | # Extract the first word of "chmod", so it can be a program name with args. |
| 10839 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10840 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10842 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 10843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10844 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10845 | case $CHMOD in |
| 10846 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10847 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 10848 | ;; |
| 10849 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10851 | for as_dir in $PATH |
| 10852 | do |
| 10853 | IFS=$as_save_IFS |
| 10854 | test -z "$as_dir" && as_dir=. |
| 10855 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10857 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 10858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10859 | break 2 |
| 10860 | fi |
| 10861 | done |
| 10862 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10863 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10864 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10865 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 10866 | ;; |
| 10867 | esac |
| 10868 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10869 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10870 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10871 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 10872 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10873 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10874 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10875 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10876 | fi |
| 10877 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10878 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10879 | for ac_prog in gawk mawk nawk awk |
| 10880 | do |
| 10881 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10882 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10883 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10884 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10885 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10887 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10888 | if test -n "$AWK"; then |
| 10889 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 10890 | else |
| 10891 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10892 | for as_dir in $PATH |
| 10893 | do |
| 10894 | IFS=$as_save_IFS |
| 10895 | test -z "$as_dir" && as_dir=. |
| 10896 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10897 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10898 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10899 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10900 | break 2 |
| 10901 | fi |
| 10902 | done |
| 10903 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10904 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10905 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10906 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10907 | fi |
| 10908 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10909 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10910 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 10911 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10912 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10913 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10914 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10915 | fi |
| 10916 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10917 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10918 | test -n "$AWK" && break |
| 10919 | done |
| 10920 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10921 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 10922 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 10923 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10924 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10925 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10926 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10927 | then ac_cv_path_EGREP="$GREP -E" |
| 10928 | else |
| 10929 | # Extract the first word of "egrep" to use in msg output |
| 10930 | if test -z "$EGREP"; then |
| 10931 | set dummy egrep; ac_prog_name=$2 |
| 10932 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 10933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10934 | else |
| 10935 | ac_path_EGREP_found=false |
| 10936 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 10937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10938 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10939 | do |
| 10940 | IFS=$as_save_IFS |
| 10941 | test -z "$as_dir" && as_dir=. |
| 10942 | for ac_prog in egrep; do |
| 10943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 10944 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10945 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10946 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 10947 | # Check for GNU $ac_path_EGREP |
| 10948 | case `"$ac_path_EGREP" --version 2>&1` in |
| 10949 | *GNU*) |
| 10950 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10951 | *) |
| 10952 | ac_count=0 |
| 10953 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 10954 | while : |
| 10955 | do |
| 10956 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10957 | mv "conftest.tmp" "conftest.in" |
| 10958 | cp "conftest.in" "conftest.nl" |
| 10959 | echo 'EGREP' >> "conftest.nl" |
| 10960 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10961 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10962 | ac_count=`expr $ac_count + 1` |
| 10963 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10964 | # Best one so far, save it but keep looking for a better one |
| 10965 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 10966 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10967 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10968 | # 10*(2^10) chars as input seems more than enough |
| 10969 | test $ac_count -gt 10 && break |
| 10970 | done |
| 10971 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10972 | esac |
| 10973 | |
| 10974 | |
| 10975 | $ac_path_EGREP_found && break 3 |
| 10976 | done |
| 10977 | done |
| 10978 | |
| 10979 | done |
| 10980 | IFS=$as_save_IFS |
| 10981 | |
| 10982 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 10983 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10984 | |
| 10985 | EGREP="$ac_cv_path_EGREP" |
| 10986 | if test -z "$EGREP"; then |
| 10987 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 10988 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 10989 | { (exit 1); exit 1; }; } |
| 10990 | fi |
| 10991 | |
| 10992 | else |
| 10993 | ac_cv_path_EGREP=$EGREP |
| 10994 | fi |
| 10995 | |
| 10996 | |
| 10997 | fi |
| 10998 | fi |
| 10999 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11000 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11001 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11002 | |
| 11003 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11004 | # Extract the first word of "sed", so it can be a program name with args. |
| 11005 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11006 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11008 | if test "${ac_cv_path_SED+set}" = set; then |
| 11009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11010 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11011 | case $SED in |
| 11012 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11013 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11014 | ;; |
| 11015 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11017 | for as_dir in $PATH |
| 11018 | do |
| 11019 | IFS=$as_save_IFS |
| 11020 | test -z "$as_dir" && as_dir=. |
| 11021 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11022 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11023 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11025 | break 2 |
| 11026 | fi |
| 11027 | done |
| 11028 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11029 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11030 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11031 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11032 | ;; |
| 11033 | esac |
| 11034 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11035 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11036 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11037 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11038 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11039 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11040 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11041 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11042 | fi |
| 11043 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11044 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11045 | # Extract the first word of "perl", so it can be a program name with args. |
| 11046 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11047 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11049 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11051 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11052 | case $PERL in |
| 11053 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11054 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11055 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11056 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11058 | for as_dir in $PATH |
| 11059 | do |
| 11060 | IFS=$as_save_IFS |
| 11061 | test -z "$as_dir" && as_dir=. |
| 11062 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11063 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11064 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11066 | break 2 |
| 11067 | fi |
| 11068 | done |
| 11069 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11070 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11071 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11072 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11073 | ;; |
| 11074 | esac |
| 11075 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11076 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11077 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11078 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11079 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11080 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11081 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11082 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11083 | fi |
| 11084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11085 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11086 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11087 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11088 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11090 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11092 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11093 | case $LDCONFIG in |
| 11094 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11095 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11096 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11097 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11099 | for as_dir in $PATH |
| 11100 | do |
| 11101 | IFS=$as_save_IFS |
| 11102 | test -z "$as_dir" && as_dir=. |
| 11103 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11104 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11105 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11107 | break 2 |
| 11108 | fi |
| 11109 | done |
| 11110 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11111 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11112 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11113 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11114 | ;; |
| 11115 | esac |
| 11116 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11117 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11118 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11119 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11120 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11121 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11122 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11123 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11124 | fi |
| 11125 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11127 | if test -n "$ac_tool_prefix"; then |
| 11128 | # 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] | 11129 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11130 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11131 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11132 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11134 | else |
| 11135 | if test -n "$AR"; then |
| 11136 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11137 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11139 | for as_dir in $PATH |
| 11140 | do |
| 11141 | IFS=$as_save_IFS |
| 11142 | test -z "$as_dir" && as_dir=. |
| 11143 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11144 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11145 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11146 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11147 | break 2 |
| 11148 | fi |
| 11149 | done |
| 11150 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11151 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11152 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11153 | fi |
| 11154 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11155 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11156 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11157 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11158 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11159 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11160 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11161 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11162 | fi |
| 11163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11164 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11165 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11166 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11167 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11168 | # Extract the first word of "ar", so it can be a program name with args. |
| 11169 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11170 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11172 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11174 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11175 | if test -n "$ac_ct_AR"; then |
| 11176 | 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] | 11177 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11179 | for as_dir in $PATH |
| 11180 | do |
| 11181 | IFS=$as_save_IFS |
| 11182 | test -z "$as_dir" && as_dir=. |
| 11183 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11185 | ac_cv_prog_ac_ct_AR="ar" |
| 11186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11187 | break 2 |
| 11188 | fi |
| 11189 | done |
| 11190 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11191 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11192 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11193 | fi |
| 11194 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11195 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11196 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11197 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11198 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11199 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11200 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11201 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11202 | fi |
| 11203 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11204 | if test "x$ac_ct_AR" = x; then |
| 11205 | AR="ar" |
| 11206 | else |
| 11207 | case $cross_compiling:$ac_tool_warned in |
| 11208 | yes:) |
| 11209 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11210 | whose name does not start with the host triplet. If you think this |
| 11211 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11212 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11213 | whose name does not start with the host triplet. If you think this |
| 11214 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11215 | ac_tool_warned=yes ;; |
| 11216 | esac |
| 11217 | AR=$ac_ct_AR |
| 11218 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11219 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11220 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11221 | fi |
| 11222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11223 | if test -n "$ac_tool_prefix"; then |
| 11224 | # 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] | 11225 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11226 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11228 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11230 | else |
| 11231 | if test -n "$RANLIB"; then |
| 11232 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11233 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11235 | for as_dir in $PATH |
| 11236 | do |
| 11237 | IFS=$as_save_IFS |
| 11238 | test -z "$as_dir" && as_dir=. |
| 11239 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11240 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11241 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11243 | break 2 |
| 11244 | fi |
| 11245 | done |
| 11246 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11247 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11248 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11249 | fi |
| 11250 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11251 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11252 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11253 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11254 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11255 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11256 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11257 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11258 | fi |
| 11259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11260 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11261 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11262 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11263 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11264 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11265 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11266 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11268 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11270 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11271 | if test -n "$ac_ct_RANLIB"; then |
| 11272 | 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] | 11273 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11275 | for as_dir in $PATH |
| 11276 | do |
| 11277 | IFS=$as_save_IFS |
| 11278 | test -z "$as_dir" && as_dir=. |
| 11279 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11280 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11281 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11283 | break 2 |
| 11284 | fi |
| 11285 | done |
| 11286 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11287 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11288 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11289 | fi |
| 11290 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11291 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11292 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11293 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11294 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11295 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11296 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11297 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11298 | fi |
| 11299 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11300 | if test "x$ac_ct_RANLIB" = x; then |
| 11301 | RANLIB=":" |
| 11302 | else |
| 11303 | case $cross_compiling:$ac_tool_warned in |
| 11304 | yes:) |
| 11305 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11306 | whose name does not start with the host triplet. If you think this |
| 11307 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11308 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11309 | whose name does not start with the host triplet. If you think this |
| 11310 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11311 | ac_tool_warned=yes ;; |
| 11312 | esac |
| 11313 | RANLIB=$ac_ct_RANLIB |
| 11314 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11315 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11316 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11317 | fi |
| 11318 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11319 | if test -n "$ac_tool_prefix"; then |
| 11320 | # 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] | 11321 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11322 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11324 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11326 | else |
| 11327 | if test -n "$STRIP"; then |
| 11328 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11329 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11331 | for as_dir in $PATH |
| 11332 | do |
| 11333 | IFS=$as_save_IFS |
| 11334 | test -z "$as_dir" && as_dir=. |
| 11335 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11336 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11337 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11339 | break 2 |
| 11340 | fi |
| 11341 | done |
| 11342 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11343 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11344 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11345 | fi |
| 11346 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11347 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11348 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11349 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11350 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11351 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11352 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11353 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11354 | fi |
| 11355 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11357 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11358 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11359 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11360 | # Extract the first word of "strip", so it can be a program name with args. |
| 11361 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11364 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11366 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11367 | if test -n "$ac_ct_STRIP"; then |
| 11368 | 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] | 11369 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11371 | for as_dir in $PATH |
| 11372 | do |
| 11373 | IFS=$as_save_IFS |
| 11374 | test -z "$as_dir" && as_dir=. |
| 11375 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11376 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11377 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11378 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11379 | break 2 |
| 11380 | fi |
| 11381 | done |
| 11382 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11383 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11384 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11385 | fi |
| 11386 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11387 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11388 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11389 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11390 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11391 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11392 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11393 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11394 | fi |
| 11395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11396 | if test "x$ac_ct_STRIP" = x; then |
| 11397 | STRIP=":" |
| 11398 | else |
| 11399 | case $cross_compiling:$ac_tool_warned in |
| 11400 | yes:) |
| 11401 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11402 | whose name does not start with the host triplet. If you think this |
| 11403 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11404 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11405 | whose name does not start with the host triplet. If you think this |
| 11406 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11407 | ac_tool_warned=yes ;; |
| 11408 | esac |
| 11409 | STRIP=$ac_ct_STRIP |
| 11410 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11411 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11412 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11413 | fi |
| 11414 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 11415 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 11416 | set dummy makeinfo; ac_word=$2 |
| 11417 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11419 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
| 11420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11421 | else |
| 11422 | if test -n "$MAKEINFO"; then |
| 11423 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 11424 | else |
| 11425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11426 | for as_dir in $PATH |
| 11427 | do |
| 11428 | IFS=$as_save_IFS |
| 11429 | test -z "$as_dir" && as_dir=. |
| 11430 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11432 | ac_cv_prog_MAKEINFO="makeinfo" |
| 11433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11434 | break 2 |
| 11435 | fi |
| 11436 | done |
| 11437 | done |
| 11438 | IFS=$as_save_IFS |
| 11439 | |
| 11440 | fi |
| 11441 | fi |
| 11442 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 11443 | if test -n "$MAKEINFO"; then |
| 11444 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 11445 | echo "${ECHO_T}$MAKEINFO" >&6; } |
| 11446 | else |
| 11447 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11448 | echo "${ECHO_T}no" >&6; } |
| 11449 | fi |
| 11450 | |
| 11451 | |
| 11452 | if test "_$MAKEINFO" = "_"; then |
| 11453 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 11454 | else |
| 11455 | case "$MAKEINFO" in |
| 11456 | */missing.*) |
| 11457 | { echo "$as_me:$LINENO: WARNING: |
| 11458 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
| 11459 | echo "$as_me: WARNING: |
| 11460 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 11461 | ;; |
| 11462 | *) |
| 11463 | ;; |
| 11464 | esac |
| 11465 | fi |
| 11466 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11467 | # Find a good install program. We prefer a C program (faster), |
| 11468 | # so one script is as good as another. But avoid the broken or |
| 11469 | # incompatible versions: |
| 11470 | # SysV /etc/install, /usr/sbin/install |
| 11471 | # SunOS /usr/etc/install |
| 11472 | # IRIX /sbin/install |
| 11473 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11474 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11475 | # 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] | 11476 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11477 | # 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] | 11478 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11479 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11480 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11481 | 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] | 11482 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11483 | if test "${ac_cv_path_install+set}" = set; then |
| 11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11485 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11487 | for as_dir in $PATH |
| 11488 | do |
| 11489 | IFS=$as_save_IFS |
| 11490 | test -z "$as_dir" && as_dir=. |
| 11491 | # Account for people who put trailing slashes in PATH elements. |
| 11492 | case $as_dir/ in |
| 11493 | ./ | .// | /cC/* | \ |
| 11494 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11495 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11496 | /usr/ucb/* ) ;; |
| 11497 | *) |
| 11498 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11499 | # Don't use installbsd from OSF since it installs stuff as root |
| 11500 | # by default. |
| 11501 | for ac_prog in ginstall scoinst install; do |
| 11502 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11503 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11504 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11505 | 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] | 11506 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11507 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11508 | elif test $ac_prog = install && |
| 11509 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11510 | # program-specific install script used by HP pwplus--don't use. |
| 11511 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11512 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11513 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11514 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11515 | fi |
| 11516 | fi |
| 11517 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11518 | done |
| 11519 | ;; |
| 11520 | esac |
| 11521 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11522 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11524 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11525 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11526 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11527 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11528 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11529 | # As a last resort, use the slow shell script. Don't cache a |
| 11530 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11531 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11532 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11533 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11534 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11535 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11536 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11537 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11538 | |
| 11539 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11540 | # It thinks the first close brace ends the variable substitution. |
| 11541 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11542 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11543 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11544 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11545 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11546 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11547 | # See if we need a separate native compiler. |
| 11548 | if test $cross_compiling = no; then |
| 11549 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11550 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11551 | else |
| 11552 | for ac_prog in gcc cc |
| 11553 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11554 | # 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] | 11555 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11556 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11558 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11560 | else |
| 11561 | if test -n "$BUILD_CC"; then |
| 11562 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11563 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11565 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11566 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11567 | IFS=$as_save_IFS |
| 11568 | test -z "$as_dir" && as_dir=. |
| 11569 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11570 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11571 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11572 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11573 | break 2 |
| 11574 | fi |
| 11575 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11576 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11577 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11578 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11579 | fi |
| 11580 | fi |
| 11581 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11582 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11583 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11584 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11585 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11586 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11587 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11588 | fi |
| 11589 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11590 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11591 | test -n "$BUILD_CC" && break |
| 11592 | done |
| 11593 | |
| 11594 | fi |
| 11595 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 11596 | |
| 11597 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11598 | |
| 11599 | |
| 11600 | |
| 11601 | |
| 11602 | |
| 11603 | |
| 11604 | |
| 11605 | |
| 11606 | |
| 11607 | |
| 11608 | |
| 11609 | |
| 11610 | |
| 11611 | |
| 11612 | |
| 11613 | |
| 11614 | |
| 11615 | |
| 11616 | |
| 11617 | |
| 11618 | |
| 11619 | |
| 11620 | |
| 11621 | |
| 11622 | |
| 11623 | |
| 11624 | |
| 11625 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11626 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11627 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 11628 | |
| 11629 | |
Theodore Ts'o | 3d05802 | 2008-07-12 22:06:30 -0400 | [diff] [blame] | 11630 | |
Theodore Ts'o | 6ec9ef1 | 2008-08-22 12:15:56 -0400 | [diff] [blame] | 11631 | |
| 11632 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11633 | do |
| 11634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11635 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11636 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11640 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11641 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11643 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11644 | else |
| 11645 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11646 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11647 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11648 | cat >conftest.$ac_ext <<_ACEOF |
| 11649 | /* confdefs.h. */ |
| 11650 | _ACEOF |
| 11651 | cat confdefs.h >>conftest.$ac_ext |
| 11652 | cat >>conftest.$ac_ext <<_ACEOF |
| 11653 | /* end confdefs.h. */ |
| 11654 | $ac_includes_default |
| 11655 | #include <$ac_header> |
| 11656 | _ACEOF |
| 11657 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11658 | if { (ac_try="$ac_compile" |
| 11659 | case "(($ac_try" in |
| 11660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11661 | *) ac_try_echo=$ac_try;; |
| 11662 | esac |
| 11663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11664 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11665 | ac_status=$? |
| 11666 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11667 | rm -f conftest.er1 |
| 11668 | cat conftest.err >&5 |
| 11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11670 | (exit $ac_status); } && { |
| 11671 | test -z "$ac_c_werror_flag" || |
| 11672 | test ! -s conftest.err |
| 11673 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11674 | ac_header_compiler=yes |
| 11675 | else |
| 11676 | echo "$as_me: failed program was:" >&5 |
| 11677 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11678 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11679 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11680 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11681 | |
| 11682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11683 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11684 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11685 | |
| 11686 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11687 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11688 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11689 | cat >conftest.$ac_ext <<_ACEOF |
| 11690 | /* confdefs.h. */ |
| 11691 | _ACEOF |
| 11692 | cat confdefs.h >>conftest.$ac_ext |
| 11693 | cat >>conftest.$ac_ext <<_ACEOF |
| 11694 | /* end confdefs.h. */ |
| 11695 | #include <$ac_header> |
| 11696 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11697 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11698 | case "(($ac_try" in |
| 11699 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11700 | *) ac_try_echo=$ac_try;; |
| 11701 | esac |
| 11702 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11703 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11704 | ac_status=$? |
| 11705 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11706 | rm -f conftest.er1 |
| 11707 | cat conftest.err >&5 |
| 11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11709 | (exit $ac_status); } >/dev/null && { |
| 11710 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11711 | test ! -s conftest.err |
| 11712 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11713 | ac_header_preproc=yes |
| 11714 | else |
| 11715 | echo "$as_me: failed program was:" >&5 |
| 11716 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11717 | |
| 11718 | ac_header_preproc=no |
| 11719 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11720 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11721 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11722 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 11723 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11724 | |
| 11725 | # So? What about this header? |
| 11726 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 11727 | yes:no: ) |
| 11728 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 11729 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 11730 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 11731 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 11732 | ac_header_preproc=yes |
| 11733 | ;; |
| 11734 | no:yes:* ) |
| 11735 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 11736 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 11737 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 11738 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 11739 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 11740 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 11741 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 11742 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 11743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 11744 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 11745 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 11746 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11747 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11748 | ;; |
| 11749 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11750 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11752 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11754 | else |
| 11755 | eval "$as_ac_Header=\$ac_header_preproc" |
| 11756 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11757 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11758 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11759 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11760 | |
| 11761 | fi |
| 11762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11763 | cat >>confdefs.h <<_ACEOF |
| 11764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11765 | _ACEOF |
| 11766 | |
| 11767 | fi |
| 11768 | |
| 11769 | done |
| 11770 | |
| 11771 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11772 | |
| 11773 | for ac_header in sys/disk.h sys/mount.h |
| 11774 | do |
| 11775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11776 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11778 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11780 | else |
| 11781 | cat >conftest.$ac_ext <<_ACEOF |
| 11782 | /* confdefs.h. */ |
| 11783 | _ACEOF |
| 11784 | cat confdefs.h >>conftest.$ac_ext |
| 11785 | cat >>conftest.$ac_ext <<_ACEOF |
| 11786 | /* end confdefs.h. */ |
| 11787 | |
| 11788 | #if HAVE_SYS_QUEUE_H |
| 11789 | #include <sys/queue.h> |
| 11790 | #endif |
| 11791 | |
| 11792 | |
| 11793 | #include <$ac_header> |
| 11794 | _ACEOF |
| 11795 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11796 | if { (ac_try="$ac_compile" |
| 11797 | case "(($ac_try" in |
| 11798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11799 | *) ac_try_echo=$ac_try;; |
| 11800 | esac |
| 11801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11802 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11803 | ac_status=$? |
| 11804 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11805 | rm -f conftest.er1 |
| 11806 | cat conftest.err >&5 |
| 11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11808 | (exit $ac_status); } && { |
| 11809 | test -z "$ac_c_werror_flag" || |
| 11810 | test ! -s conftest.err |
| 11811 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11812 | eval "$as_ac_Header=yes" |
| 11813 | else |
| 11814 | echo "$as_me: failed program was:" >&5 |
| 11815 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11816 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11817 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11818 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11819 | |
| 11820 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11821 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11822 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11823 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11824 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11825 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11826 | cat >>confdefs.h <<_ACEOF |
| 11827 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11828 | _ACEOF |
| 11829 | |
| 11830 | fi |
| 11831 | |
| 11832 | done |
| 11833 | |
| 11834 | |
| 11835 | for ac_header in net/if.h |
| 11836 | do |
| 11837 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11838 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11839 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11840 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11842 | else |
| 11843 | cat >conftest.$ac_ext <<_ACEOF |
| 11844 | /* confdefs.h. */ |
| 11845 | _ACEOF |
| 11846 | cat confdefs.h >>conftest.$ac_ext |
| 11847 | cat >>conftest.$ac_ext <<_ACEOF |
| 11848 | /* end confdefs.h. */ |
| 11849 | |
| 11850 | #if HAVE_SYS_TYPES_H |
| 11851 | #include <sys/types.h> |
| 11852 | #endif |
| 11853 | #if HAVE_SYS_SOCKET |
| 11854 | #include <sys/socket.h> |
| 11855 | #endif |
| 11856 | |
| 11857 | |
| 11858 | #include <$ac_header> |
| 11859 | _ACEOF |
| 11860 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11861 | if { (ac_try="$ac_compile" |
| 11862 | case "(($ac_try" in |
| 11863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11864 | *) ac_try_echo=$ac_try;; |
| 11865 | esac |
| 11866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11867 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11868 | ac_status=$? |
| 11869 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11870 | rm -f conftest.er1 |
| 11871 | cat conftest.err >&5 |
| 11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11873 | (exit $ac_status); } && { |
| 11874 | test -z "$ac_c_werror_flag" || |
| 11875 | test ! -s conftest.err |
| 11876 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11877 | eval "$as_ac_Header=yes" |
| 11878 | else |
| 11879 | echo "$as_me: failed program was:" >&5 |
| 11880 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11881 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11882 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11883 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11884 | |
| 11885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11886 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11887 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11888 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11889 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 11890 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 11891 | cat >>confdefs.h <<_ACEOF |
| 11892 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 11893 | _ACEOF |
| 11894 | |
| 11895 | fi |
| 11896 | |
| 11897 | done |
| 11898 | |
| 11899 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11900 | for ac_func in vprintf |
| 11901 | do |
| 11902 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11903 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11904 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 11905 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11907 | else |
| 11908 | cat >conftest.$ac_ext <<_ACEOF |
| 11909 | /* confdefs.h. */ |
| 11910 | _ACEOF |
| 11911 | cat confdefs.h >>conftest.$ac_ext |
| 11912 | cat >>conftest.$ac_ext <<_ACEOF |
| 11913 | /* end confdefs.h. */ |
| 11914 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 11915 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 11916 | #define $ac_func innocuous_$ac_func |
| 11917 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11918 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11919 | which can conflict with char $ac_func (); below. |
| 11920 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 11921 | <limits.h> exists even on freestanding compilers. */ |
| 11922 | |
| 11923 | #ifdef __STDC__ |
| 11924 | # include <limits.h> |
| 11925 | #else |
| 11926 | # include <assert.h> |
| 11927 | #endif |
| 11928 | |
| 11929 | #undef $ac_func |
| 11930 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11931 | /* Override any GCC internal prototype to avoid an error. |
| 11932 | Use char because int might match the return type of a GCC |
| 11933 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11934 | #ifdef __cplusplus |
| 11935 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11936 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11937 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11938 | /* The GNU C library defines this for functions which it implements |
| 11939 | to always fail with ENOSYS. Some functions are actually named |
| 11940 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11941 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11942 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11943 | #endif |
| 11944 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11945 | int |
| 11946 | main () |
| 11947 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11948 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11949 | ; |
| 11950 | return 0; |
| 11951 | } |
| 11952 | _ACEOF |
| 11953 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11954 | if { (ac_try="$ac_link" |
| 11955 | case "(($ac_try" in |
| 11956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11957 | *) ac_try_echo=$ac_try;; |
| 11958 | esac |
| 11959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11960 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11961 | ac_status=$? |
| 11962 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11963 | rm -f conftest.er1 |
| 11964 | cat conftest.err >&5 |
| 11965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11966 | (exit $ac_status); } && { |
| 11967 | test -z "$ac_c_werror_flag" || |
| 11968 | test ! -s conftest.err |
| 11969 | } && test -s conftest$ac_exeext && |
| 11970 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11971 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11972 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11973 | echo "$as_me: failed program was:" >&5 |
| 11974 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11976 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11978 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11980 | conftest$ac_exeext conftest.$ac_ext |
| 11981 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11982 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 11983 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11984 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11985 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11986 | cat >>confdefs.h <<_ACEOF |
| 11987 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11988 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11989 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11990 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 11991 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11992 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 11993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11994 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11995 | cat >conftest.$ac_ext <<_ACEOF |
| 11996 | /* confdefs.h. */ |
| 11997 | _ACEOF |
| 11998 | cat confdefs.h >>conftest.$ac_ext |
| 11999 | cat >>conftest.$ac_ext <<_ACEOF |
| 12000 | /* end confdefs.h. */ |
| 12001 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12002 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12003 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12004 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12005 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12006 | which can conflict with char _doprnt (); below. |
| 12007 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12008 | <limits.h> exists even on freestanding compilers. */ |
| 12009 | |
| 12010 | #ifdef __STDC__ |
| 12011 | # include <limits.h> |
| 12012 | #else |
| 12013 | # include <assert.h> |
| 12014 | #endif |
| 12015 | |
| 12016 | #undef _doprnt |
| 12017 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12018 | /* Override any GCC internal prototype to avoid an error. |
| 12019 | Use char because int might match the return type of a GCC |
| 12020 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12021 | #ifdef __cplusplus |
| 12022 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12023 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12024 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12025 | /* The GNU C library defines this for functions which it implements |
| 12026 | to always fail with ENOSYS. Some functions are actually named |
| 12027 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12028 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12029 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12030 | #endif |
| 12031 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12032 | int |
| 12033 | main () |
| 12034 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12036 | ; |
| 12037 | return 0; |
| 12038 | } |
| 12039 | _ACEOF |
| 12040 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12041 | if { (ac_try="$ac_link" |
| 12042 | case "(($ac_try" in |
| 12043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12044 | *) ac_try_echo=$ac_try;; |
| 12045 | esac |
| 12046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12047 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12048 | ac_status=$? |
| 12049 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12050 | rm -f conftest.er1 |
| 12051 | cat conftest.err >&5 |
| 12052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12053 | (exit $ac_status); } && { |
| 12054 | test -z "$ac_c_werror_flag" || |
| 12055 | test ! -s conftest.err |
| 12056 | } && test -s conftest$ac_exeext && |
| 12057 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12058 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12059 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12060 | echo "$as_me: failed program was:" >&5 |
| 12061 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12062 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12063 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12064 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12065 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12066 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12067 | conftest$ac_exeext conftest.$ac_ext |
| 12068 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12069 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12070 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12071 | if test $ac_cv_func__doprnt = yes; then |
| 12072 | |
| 12073 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12074 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12075 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12076 | |
| 12077 | fi |
| 12078 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12079 | fi |
| 12080 | done |
| 12081 | |
| 12082 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12083 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12084 | echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12085 | if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12087 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12088 | cat >conftest.$ac_ext <<_ACEOF |
| 12089 | /* confdefs.h. */ |
| 12090 | _ACEOF |
| 12091 | cat confdefs.h >>conftest.$ac_ext |
| 12092 | cat >>conftest.$ac_ext <<_ACEOF |
| 12093 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12094 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12095 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12096 | int |
| 12097 | main () |
| 12098 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12099 | static struct dirent ac_aggr; |
| 12100 | if (ac_aggr.d_reclen) |
| 12101 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12102 | ; |
| 12103 | return 0; |
| 12104 | } |
| 12105 | _ACEOF |
| 12106 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12107 | if { (ac_try="$ac_compile" |
| 12108 | case "(($ac_try" in |
| 12109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12110 | *) ac_try_echo=$ac_try;; |
| 12111 | esac |
| 12112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12113 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12114 | ac_status=$? |
| 12115 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12116 | rm -f conftest.er1 |
| 12117 | cat conftest.err >&5 |
| 12118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12119 | (exit $ac_status); } && { |
| 12120 | test -z "$ac_c_werror_flag" || |
| 12121 | test ! -s conftest.err |
| 12122 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12123 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12124 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12125 | echo "$as_me: failed program was:" >&5 |
| 12126 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12127 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12128 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12129 | /* confdefs.h. */ |
| 12130 | _ACEOF |
| 12131 | cat confdefs.h >>conftest.$ac_ext |
| 12132 | cat >>conftest.$ac_ext <<_ACEOF |
| 12133 | /* end confdefs.h. */ |
| 12134 | #include <dirent.h> |
| 12135 | |
| 12136 | int |
| 12137 | main () |
| 12138 | { |
| 12139 | static struct dirent ac_aggr; |
| 12140 | if (sizeof ac_aggr.d_reclen) |
| 12141 | return 0; |
| 12142 | ; |
| 12143 | return 0; |
| 12144 | } |
| 12145 | _ACEOF |
| 12146 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12147 | if { (ac_try="$ac_compile" |
| 12148 | case "(($ac_try" in |
| 12149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12150 | *) ac_try_echo=$ac_try;; |
| 12151 | esac |
| 12152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12153 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12154 | ac_status=$? |
| 12155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12156 | rm -f conftest.er1 |
| 12157 | cat conftest.err >&5 |
| 12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12159 | (exit $ac_status); } && { |
| 12160 | test -z "$ac_c_werror_flag" || |
| 12161 | test ! -s conftest.err |
| 12162 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12163 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12164 | else |
| 12165 | echo "$as_me: failed program was:" >&5 |
| 12166 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12167 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12168 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12169 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12170 | |
| 12171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12172 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12173 | |
| 12174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12175 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12176 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12177 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12178 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12179 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12180 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12181 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12182 | |
| 12183 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12185 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12186 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12187 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12188 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12189 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12190 | cat >conftest.$ac_ext <<_ACEOF |
| 12191 | /* confdefs.h. */ |
| 12192 | _ACEOF |
| 12193 | cat confdefs.h >>conftest.$ac_ext |
| 12194 | cat >>conftest.$ac_ext <<_ACEOF |
| 12195 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12196 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12197 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12198 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12199 | int |
| 12200 | main () |
| 12201 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12202 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12203 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12204 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12205 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12206 | ; |
| 12207 | return 0; |
| 12208 | } |
| 12209 | _ACEOF |
| 12210 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12211 | if { (ac_try="$ac_compile" |
| 12212 | case "(($ac_try" in |
| 12213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12214 | *) ac_try_echo=$ac_try;; |
| 12215 | esac |
| 12216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12217 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12218 | ac_status=$? |
| 12219 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12220 | rm -f conftest.er1 |
| 12221 | cat conftest.err >&5 |
| 12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12223 | (exit $ac_status); } && { |
| 12224 | test -z "$ac_c_werror_flag" || |
| 12225 | test ! -s conftest.err |
| 12226 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12227 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12228 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12229 | echo "$as_me: failed program was:" >&5 |
| 12230 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12231 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12232 | ac_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12233 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12234 | |
| 12235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12236 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12237 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12238 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12239 | if test $ac_cv_type_ssize_t = yes; then |
| 12240 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12241 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12242 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12243 | |
| 12244 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12245 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12246 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12247 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12248 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12250 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | cat >conftest.$ac_ext <<_ACEOF |
| 12252 | /* confdefs.h. */ |
| 12253 | _ACEOF |
| 12254 | cat confdefs.h >>conftest.$ac_ext |
| 12255 | cat >>conftest.$ac_ext <<_ACEOF |
| 12256 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12257 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12258 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12259 | int |
| 12260 | main () |
| 12261 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12262 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12263 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12264 | #endif |
| 12265 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12266 | ; |
| 12267 | return 0; |
| 12268 | } |
| 12269 | _ACEOF |
| 12270 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12271 | if { (ac_try="$ac_compile" |
| 12272 | case "(($ac_try" in |
| 12273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12274 | *) ac_try_echo=$ac_try;; |
| 12275 | esac |
| 12276 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12277 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12278 | ac_status=$? |
| 12279 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12280 | rm -f conftest.er1 |
| 12281 | cat conftest.err >&5 |
| 12282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12283 | (exit $ac_status); } && { |
| 12284 | test -z "$ac_c_werror_flag" || |
| 12285 | test ! -s conftest.err |
| 12286 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12287 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12288 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12289 | echo "$as_me: failed program was:" >&5 |
| 12290 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12291 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12292 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12293 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12294 | |
| 12295 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12296 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12297 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12298 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12299 | if test $ac_cv_have_decl_llseek = yes; then |
| 12300 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12301 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12302 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12303 | |
| 12304 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12305 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12306 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12307 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12308 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12310 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12311 | cat >conftest.$ac_ext <<_ACEOF |
| 12312 | /* confdefs.h. */ |
| 12313 | _ACEOF |
| 12314 | cat confdefs.h >>conftest.$ac_ext |
| 12315 | cat >>conftest.$ac_ext <<_ACEOF |
| 12316 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12317 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12318 | #define _LARGEFILE64_SOURCE |
| 12319 | #include <unistd.h> |
| 12320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12321 | int |
| 12322 | main () |
| 12323 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12324 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12325 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12326 | #endif |
| 12327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12328 | ; |
| 12329 | return 0; |
| 12330 | } |
| 12331 | _ACEOF |
| 12332 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12333 | if { (ac_try="$ac_compile" |
| 12334 | case "(($ac_try" in |
| 12335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12336 | *) ac_try_echo=$ac_try;; |
| 12337 | esac |
| 12338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12339 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12340 | ac_status=$? |
| 12341 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12342 | rm -f conftest.er1 |
| 12343 | cat conftest.err >&5 |
| 12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12345 | (exit $ac_status); } && { |
| 12346 | test -z "$ac_c_werror_flag" || |
| 12347 | test ! -s conftest.err |
| 12348 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12349 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12350 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12351 | echo "$as_me: failed program was:" >&5 |
| 12352 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12353 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12354 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12355 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12356 | |
| 12357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12358 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12359 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12360 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12361 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12362 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12363 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12364 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12365 | |
| 12366 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12367 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12368 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12369 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12370 | if test "${ac_cv_type_short+set}" = set; then |
| 12371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12372 | else |
| 12373 | cat >conftest.$ac_ext <<_ACEOF |
| 12374 | /* confdefs.h. */ |
| 12375 | _ACEOF |
| 12376 | cat confdefs.h >>conftest.$ac_ext |
| 12377 | cat >>conftest.$ac_ext <<_ACEOF |
| 12378 | /* end confdefs.h. */ |
| 12379 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12380 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12381 | int |
| 12382 | main () |
| 12383 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12384 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12385 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12386 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12387 | return 0; |
| 12388 | ; |
| 12389 | return 0; |
| 12390 | } |
| 12391 | _ACEOF |
| 12392 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12393 | if { (ac_try="$ac_compile" |
| 12394 | case "(($ac_try" in |
| 12395 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12396 | *) ac_try_echo=$ac_try;; |
| 12397 | esac |
| 12398 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12399 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12400 | ac_status=$? |
| 12401 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12402 | rm -f conftest.er1 |
| 12403 | cat conftest.err >&5 |
| 12404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12405 | (exit $ac_status); } && { |
| 12406 | test -z "$ac_c_werror_flag" || |
| 12407 | test ! -s conftest.err |
| 12408 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12409 | ac_cv_type_short=yes |
| 12410 | else |
| 12411 | echo "$as_me: failed program was:" >&5 |
| 12412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12413 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12414 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12415 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12416 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12418 | fi |
| 12419 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12420 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12421 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12422 | # The cast to long int works around a bug in the HP C Compiler |
| 12423 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12424 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12425 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12426 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12427 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12428 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12430 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12431 | if test "$cross_compiling" = yes; then |
| 12432 | # Depending upon the size, compute the lo and hi bounds. |
| 12433 | cat >conftest.$ac_ext <<_ACEOF |
| 12434 | /* confdefs.h. */ |
| 12435 | _ACEOF |
| 12436 | cat confdefs.h >>conftest.$ac_ext |
| 12437 | cat >>conftest.$ac_ext <<_ACEOF |
| 12438 | /* end confdefs.h. */ |
| 12439 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12440 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12441 | int |
| 12442 | main () |
| 12443 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12444 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12445 | test_array [0] = 0 |
| 12446 | |
| 12447 | ; |
| 12448 | return 0; |
| 12449 | } |
| 12450 | _ACEOF |
| 12451 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12452 | if { (ac_try="$ac_compile" |
| 12453 | case "(($ac_try" in |
| 12454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12455 | *) ac_try_echo=$ac_try;; |
| 12456 | esac |
| 12457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12458 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | ac_status=$? |
| 12460 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12461 | rm -f conftest.er1 |
| 12462 | cat conftest.err >&5 |
| 12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12464 | (exit $ac_status); } && { |
| 12465 | test -z "$ac_c_werror_flag" || |
| 12466 | test ! -s conftest.err |
| 12467 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12468 | ac_lo=0 ac_mid=0 |
| 12469 | while :; do |
| 12470 | cat >conftest.$ac_ext <<_ACEOF |
| 12471 | /* confdefs.h. */ |
| 12472 | _ACEOF |
| 12473 | cat confdefs.h >>conftest.$ac_ext |
| 12474 | cat >>conftest.$ac_ext <<_ACEOF |
| 12475 | /* end confdefs.h. */ |
| 12476 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12477 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12478 | int |
| 12479 | main () |
| 12480 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12481 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12482 | test_array [0] = 0 |
| 12483 | |
| 12484 | ; |
| 12485 | return 0; |
| 12486 | } |
| 12487 | _ACEOF |
| 12488 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12489 | if { (ac_try="$ac_compile" |
| 12490 | case "(($ac_try" in |
| 12491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12492 | *) ac_try_echo=$ac_try;; |
| 12493 | esac |
| 12494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12495 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12496 | ac_status=$? |
| 12497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12498 | rm -f conftest.er1 |
| 12499 | cat conftest.err >&5 |
| 12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12501 | (exit $ac_status); } && { |
| 12502 | test -z "$ac_c_werror_flag" || |
| 12503 | test ! -s conftest.err |
| 12504 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12505 | ac_hi=$ac_mid; break |
| 12506 | else |
| 12507 | echo "$as_me: failed program was:" >&5 |
| 12508 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12509 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12510 | ac_lo=`expr $ac_mid + 1` |
| 12511 | if test $ac_lo -le $ac_mid; then |
| 12512 | ac_lo= ac_hi= |
| 12513 | break |
| 12514 | fi |
| 12515 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12516 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12517 | |
| 12518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12519 | done |
| 12520 | else |
| 12521 | echo "$as_me: failed program was:" >&5 |
| 12522 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12524 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12525 | /* confdefs.h. */ |
| 12526 | _ACEOF |
| 12527 | cat confdefs.h >>conftest.$ac_ext |
| 12528 | cat >>conftest.$ac_ext <<_ACEOF |
| 12529 | /* end confdefs.h. */ |
| 12530 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12531 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12532 | int |
| 12533 | main () |
| 12534 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12535 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12536 | test_array [0] = 0 |
| 12537 | |
| 12538 | ; |
| 12539 | return 0; |
| 12540 | } |
| 12541 | _ACEOF |
| 12542 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12543 | if { (ac_try="$ac_compile" |
| 12544 | case "(($ac_try" in |
| 12545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12546 | *) ac_try_echo=$ac_try;; |
| 12547 | esac |
| 12548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12549 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12550 | ac_status=$? |
| 12551 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12552 | rm -f conftest.er1 |
| 12553 | cat conftest.err >&5 |
| 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12555 | (exit $ac_status); } && { |
| 12556 | test -z "$ac_c_werror_flag" || |
| 12557 | test ! -s conftest.err |
| 12558 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | ac_hi=-1 ac_mid=-1 |
| 12560 | while :; do |
| 12561 | cat >conftest.$ac_ext <<_ACEOF |
| 12562 | /* confdefs.h. */ |
| 12563 | _ACEOF |
| 12564 | cat confdefs.h >>conftest.$ac_ext |
| 12565 | cat >>conftest.$ac_ext <<_ACEOF |
| 12566 | /* end confdefs.h. */ |
| 12567 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12568 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12569 | int |
| 12570 | main () |
| 12571 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12572 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12573 | test_array [0] = 0 |
| 12574 | |
| 12575 | ; |
| 12576 | return 0; |
| 12577 | } |
| 12578 | _ACEOF |
| 12579 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12580 | if { (ac_try="$ac_compile" |
| 12581 | case "(($ac_try" in |
| 12582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12583 | *) ac_try_echo=$ac_try;; |
| 12584 | esac |
| 12585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12586 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12587 | ac_status=$? |
| 12588 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12589 | rm -f conftest.er1 |
| 12590 | cat conftest.err >&5 |
| 12591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12592 | (exit $ac_status); } && { |
| 12593 | test -z "$ac_c_werror_flag" || |
| 12594 | test ! -s conftest.err |
| 12595 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12596 | ac_lo=$ac_mid; break |
| 12597 | else |
| 12598 | echo "$as_me: failed program was:" >&5 |
| 12599 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12600 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12601 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12602 | if test $ac_mid -le $ac_hi; then |
| 12603 | ac_lo= ac_hi= |
| 12604 | break |
| 12605 | fi |
| 12606 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12607 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12608 | |
| 12609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12610 | done |
| 12611 | else |
| 12612 | echo "$as_me: failed program was:" >&5 |
| 12613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12615 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12616 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12617 | |
| 12618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12619 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12620 | |
| 12621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12622 | # Binary search between lo and hi bounds. |
| 12623 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12624 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12625 | cat >conftest.$ac_ext <<_ACEOF |
| 12626 | /* confdefs.h. */ |
| 12627 | _ACEOF |
| 12628 | cat confdefs.h >>conftest.$ac_ext |
| 12629 | cat >>conftest.$ac_ext <<_ACEOF |
| 12630 | /* end confdefs.h. */ |
| 12631 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12632 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12633 | int |
| 12634 | main () |
| 12635 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12636 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12637 | test_array [0] = 0 |
| 12638 | |
| 12639 | ; |
| 12640 | return 0; |
| 12641 | } |
| 12642 | _ACEOF |
| 12643 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12644 | if { (ac_try="$ac_compile" |
| 12645 | case "(($ac_try" in |
| 12646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12647 | *) ac_try_echo=$ac_try;; |
| 12648 | esac |
| 12649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12650 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12651 | ac_status=$? |
| 12652 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12653 | rm -f conftest.er1 |
| 12654 | cat conftest.err >&5 |
| 12655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12656 | (exit $ac_status); } && { |
| 12657 | test -z "$ac_c_werror_flag" || |
| 12658 | test ! -s conftest.err |
| 12659 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12660 | ac_hi=$ac_mid |
| 12661 | else |
| 12662 | echo "$as_me: failed program was:" >&5 |
| 12663 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12664 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12665 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12666 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12667 | |
| 12668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12669 | done |
| 12670 | case $ac_lo in |
| 12671 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12672 | '') if test "$ac_cv_type_short" = yes; then |
| 12673 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12674 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12675 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12676 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12677 | { (exit 77); exit 77; }; } |
| 12678 | else |
| 12679 | ac_cv_sizeof_short=0 |
| 12680 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12681 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12682 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12683 | cat >conftest.$ac_ext <<_ACEOF |
| 12684 | /* confdefs.h. */ |
| 12685 | _ACEOF |
| 12686 | cat confdefs.h >>conftest.$ac_ext |
| 12687 | cat >>conftest.$ac_ext <<_ACEOF |
| 12688 | /* end confdefs.h. */ |
| 12689 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12690 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12691 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12692 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12693 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12694 | #include <stdlib.h> |
| 12695 | int |
| 12696 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12697 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12698 | |
| 12699 | FILE *f = fopen ("conftest.val", "w"); |
| 12700 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12701 | return 1; |
| 12702 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12703 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12704 | long int i = longval (); |
| 12705 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12706 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12707 | fprintf (f, "%ld\n", i); |
| 12708 | } |
| 12709 | else |
| 12710 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12711 | unsigned long int i = ulongval (); |
| 12712 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12713 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12714 | fprintf (f, "%lu\n", i); |
| 12715 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12716 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12717 | |
| 12718 | ; |
| 12719 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12720 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12721 | _ACEOF |
| 12722 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12723 | if { (ac_try="$ac_link" |
| 12724 | case "(($ac_try" in |
| 12725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12726 | *) ac_try_echo=$ac_try;; |
| 12727 | esac |
| 12728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12729 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12730 | ac_status=$? |
| 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12733 | { (case "(($ac_try" in |
| 12734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12735 | *) ac_try_echo=$ac_try;; |
| 12736 | esac |
| 12737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12738 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12739 | ac_status=$? |
| 12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12741 | (exit $ac_status); }; }; then |
| 12742 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12743 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12744 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12745 | echo "$as_me: failed program was:" >&5 |
| 12746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12747 | |
| 12748 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12749 | if test "$ac_cv_type_short" = yes; then |
| 12750 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12751 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12752 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12753 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12754 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12755 | else |
| 12756 | ac_cv_sizeof_short=0 |
| 12757 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12758 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12759 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12760 | fi |
| 12761 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12762 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12763 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 12764 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12765 | |
| 12766 | |
| 12767 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12768 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12769 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12770 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12771 | |
| 12772 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12773 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 12774 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12775 | if test "${ac_cv_type_int+set}" = set; then |
| 12776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12777 | else |
| 12778 | cat >conftest.$ac_ext <<_ACEOF |
| 12779 | /* confdefs.h. */ |
| 12780 | _ACEOF |
| 12781 | cat confdefs.h >>conftest.$ac_ext |
| 12782 | cat >>conftest.$ac_ext <<_ACEOF |
| 12783 | /* end confdefs.h. */ |
| 12784 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12785 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12786 | int |
| 12787 | main () |
| 12788 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12789 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12790 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12791 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12792 | return 0; |
| 12793 | ; |
| 12794 | return 0; |
| 12795 | } |
| 12796 | _ACEOF |
| 12797 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12798 | if { (ac_try="$ac_compile" |
| 12799 | case "(($ac_try" in |
| 12800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12801 | *) ac_try_echo=$ac_try;; |
| 12802 | esac |
| 12803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12804 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12805 | ac_status=$? |
| 12806 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12807 | rm -f conftest.er1 |
| 12808 | cat conftest.err >&5 |
| 12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12810 | (exit $ac_status); } && { |
| 12811 | test -z "$ac_c_werror_flag" || |
| 12812 | test ! -s conftest.err |
| 12813 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12814 | ac_cv_type_int=yes |
| 12815 | else |
| 12816 | echo "$as_me: failed program was:" >&5 |
| 12817 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12818 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12819 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12820 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12821 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12823 | fi |
| 12824 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 12825 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 12826 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12827 | # The cast to long int works around a bug in the HP C Compiler |
| 12828 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12829 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12830 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12831 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 12832 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12833 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 12834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12835 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12836 | if test "$cross_compiling" = yes; then |
| 12837 | # Depending upon the size, compute the lo and hi bounds. |
| 12838 | cat >conftest.$ac_ext <<_ACEOF |
| 12839 | /* confdefs.h. */ |
| 12840 | _ACEOF |
| 12841 | cat confdefs.h >>conftest.$ac_ext |
| 12842 | cat >>conftest.$ac_ext <<_ACEOF |
| 12843 | /* end confdefs.h. */ |
| 12844 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12845 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12846 | int |
| 12847 | main () |
| 12848 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12849 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12850 | test_array [0] = 0 |
| 12851 | |
| 12852 | ; |
| 12853 | return 0; |
| 12854 | } |
| 12855 | _ACEOF |
| 12856 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12857 | if { (ac_try="$ac_compile" |
| 12858 | case "(($ac_try" in |
| 12859 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12860 | *) ac_try_echo=$ac_try;; |
| 12861 | esac |
| 12862 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12863 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12864 | ac_status=$? |
| 12865 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12866 | rm -f conftest.er1 |
| 12867 | cat conftest.err >&5 |
| 12868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12869 | (exit $ac_status); } && { |
| 12870 | test -z "$ac_c_werror_flag" || |
| 12871 | test ! -s conftest.err |
| 12872 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12873 | ac_lo=0 ac_mid=0 |
| 12874 | while :; do |
| 12875 | cat >conftest.$ac_ext <<_ACEOF |
| 12876 | /* confdefs.h. */ |
| 12877 | _ACEOF |
| 12878 | cat confdefs.h >>conftest.$ac_ext |
| 12879 | cat >>conftest.$ac_ext <<_ACEOF |
| 12880 | /* end confdefs.h. */ |
| 12881 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12882 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12883 | int |
| 12884 | main () |
| 12885 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12886 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12887 | test_array [0] = 0 |
| 12888 | |
| 12889 | ; |
| 12890 | return 0; |
| 12891 | } |
| 12892 | _ACEOF |
| 12893 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12894 | if { (ac_try="$ac_compile" |
| 12895 | case "(($ac_try" in |
| 12896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12897 | *) ac_try_echo=$ac_try;; |
| 12898 | esac |
| 12899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12900 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12901 | ac_status=$? |
| 12902 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12903 | rm -f conftest.er1 |
| 12904 | cat conftest.err >&5 |
| 12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12906 | (exit $ac_status); } && { |
| 12907 | test -z "$ac_c_werror_flag" || |
| 12908 | test ! -s conftest.err |
| 12909 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12910 | ac_hi=$ac_mid; break |
| 12911 | else |
| 12912 | echo "$as_me: failed program was:" >&5 |
| 12913 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12914 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12915 | ac_lo=`expr $ac_mid + 1` |
| 12916 | if test $ac_lo -le $ac_mid; then |
| 12917 | ac_lo= ac_hi= |
| 12918 | break |
| 12919 | fi |
| 12920 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12921 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12922 | |
| 12923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12924 | done |
| 12925 | else |
| 12926 | echo "$as_me: failed program was:" >&5 |
| 12927 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12928 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12929 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12930 | /* confdefs.h. */ |
| 12931 | _ACEOF |
| 12932 | cat confdefs.h >>conftest.$ac_ext |
| 12933 | cat >>conftest.$ac_ext <<_ACEOF |
| 12934 | /* end confdefs.h. */ |
| 12935 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12936 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12937 | int |
| 12938 | main () |
| 12939 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12940 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12941 | test_array [0] = 0 |
| 12942 | |
| 12943 | ; |
| 12944 | return 0; |
| 12945 | } |
| 12946 | _ACEOF |
| 12947 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12948 | if { (ac_try="$ac_compile" |
| 12949 | case "(($ac_try" in |
| 12950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12951 | *) ac_try_echo=$ac_try;; |
| 12952 | esac |
| 12953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12954 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12955 | ac_status=$? |
| 12956 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12957 | rm -f conftest.er1 |
| 12958 | cat conftest.err >&5 |
| 12959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12960 | (exit $ac_status); } && { |
| 12961 | test -z "$ac_c_werror_flag" || |
| 12962 | test ! -s conftest.err |
| 12963 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12964 | ac_hi=-1 ac_mid=-1 |
| 12965 | while :; do |
| 12966 | cat >conftest.$ac_ext <<_ACEOF |
| 12967 | /* confdefs.h. */ |
| 12968 | _ACEOF |
| 12969 | cat confdefs.h >>conftest.$ac_ext |
| 12970 | cat >>conftest.$ac_ext <<_ACEOF |
| 12971 | /* end confdefs.h. */ |
| 12972 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12973 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12974 | int |
| 12975 | main () |
| 12976 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12977 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12978 | test_array [0] = 0 |
| 12979 | |
| 12980 | ; |
| 12981 | return 0; |
| 12982 | } |
| 12983 | _ACEOF |
| 12984 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12985 | if { (ac_try="$ac_compile" |
| 12986 | case "(($ac_try" in |
| 12987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12988 | *) ac_try_echo=$ac_try;; |
| 12989 | esac |
| 12990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12991 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12992 | ac_status=$? |
| 12993 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12994 | rm -f conftest.er1 |
| 12995 | cat conftest.err >&5 |
| 12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12997 | (exit $ac_status); } && { |
| 12998 | test -z "$ac_c_werror_flag" || |
| 12999 | test ! -s conftest.err |
| 13000 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13001 | ac_lo=$ac_mid; break |
| 13002 | else |
| 13003 | echo "$as_me: failed program was:" >&5 |
| 13004 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13006 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13007 | if test $ac_mid -le $ac_hi; then |
| 13008 | ac_lo= ac_hi= |
| 13009 | break |
| 13010 | fi |
| 13011 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13012 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13013 | |
| 13014 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13015 | done |
| 13016 | else |
| 13017 | echo "$as_me: failed program was:" >&5 |
| 13018 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13019 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13020 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13021 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13022 | |
| 13023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13025 | |
| 13026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13027 | # Binary search between lo and hi bounds. |
| 13028 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13029 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13030 | cat >conftest.$ac_ext <<_ACEOF |
| 13031 | /* confdefs.h. */ |
| 13032 | _ACEOF |
| 13033 | cat confdefs.h >>conftest.$ac_ext |
| 13034 | cat >>conftest.$ac_ext <<_ACEOF |
| 13035 | /* end confdefs.h. */ |
| 13036 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13037 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13038 | int |
| 13039 | main () |
| 13040 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13041 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13042 | test_array [0] = 0 |
| 13043 | |
| 13044 | ; |
| 13045 | return 0; |
| 13046 | } |
| 13047 | _ACEOF |
| 13048 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13049 | if { (ac_try="$ac_compile" |
| 13050 | case "(($ac_try" in |
| 13051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13052 | *) ac_try_echo=$ac_try;; |
| 13053 | esac |
| 13054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13055 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13056 | ac_status=$? |
| 13057 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13058 | rm -f conftest.er1 |
| 13059 | cat conftest.err >&5 |
| 13060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13061 | (exit $ac_status); } && { |
| 13062 | test -z "$ac_c_werror_flag" || |
| 13063 | test ! -s conftest.err |
| 13064 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13065 | ac_hi=$ac_mid |
| 13066 | else |
| 13067 | echo "$as_me: failed program was:" >&5 |
| 13068 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13069 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13070 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13071 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13072 | |
| 13073 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13074 | done |
| 13075 | case $ac_lo in |
| 13076 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13077 | '') if test "$ac_cv_type_int" = yes; then |
| 13078 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13079 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13080 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13081 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13082 | { (exit 77); exit 77; }; } |
| 13083 | else |
| 13084 | ac_cv_sizeof_int=0 |
| 13085 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13086 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13087 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13088 | cat >conftest.$ac_ext <<_ACEOF |
| 13089 | /* confdefs.h. */ |
| 13090 | _ACEOF |
| 13091 | cat confdefs.h >>conftest.$ac_ext |
| 13092 | cat >>conftest.$ac_ext <<_ACEOF |
| 13093 | /* end confdefs.h. */ |
| 13094 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13095 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13096 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13097 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13098 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13099 | #include <stdlib.h> |
| 13100 | int |
| 13101 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13102 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13103 | |
| 13104 | FILE *f = fopen ("conftest.val", "w"); |
| 13105 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13106 | return 1; |
| 13107 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13108 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13109 | long int i = longval (); |
| 13110 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13111 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13112 | fprintf (f, "%ld\n", i); |
| 13113 | } |
| 13114 | else |
| 13115 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13116 | unsigned long int i = ulongval (); |
| 13117 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13118 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13119 | fprintf (f, "%lu\n", i); |
| 13120 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13121 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13122 | |
| 13123 | ; |
| 13124 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13125 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13126 | _ACEOF |
| 13127 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13128 | if { (ac_try="$ac_link" |
| 13129 | case "(($ac_try" in |
| 13130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13131 | *) ac_try_echo=$ac_try;; |
| 13132 | esac |
| 13133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13134 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13135 | ac_status=$? |
| 13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13137 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13138 | { (case "(($ac_try" in |
| 13139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13140 | *) ac_try_echo=$ac_try;; |
| 13141 | esac |
| 13142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13143 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13144 | ac_status=$? |
| 13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13146 | (exit $ac_status); }; }; then |
| 13147 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13148 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13149 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13150 | echo "$as_me: failed program was:" >&5 |
| 13151 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13152 | |
| 13153 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13154 | if test "$ac_cv_type_int" = yes; then |
| 13155 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13156 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13157 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13158 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13159 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13160 | else |
| 13161 | ac_cv_sizeof_int=0 |
| 13162 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13163 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13164 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13165 | fi |
| 13166 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13167 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13168 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13169 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13170 | |
| 13171 | |
| 13172 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13173 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13174 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13175 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13176 | |
| 13177 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13178 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13179 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13180 | if test "${ac_cv_type_long+set}" = set; then |
| 13181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13182 | else |
| 13183 | cat >conftest.$ac_ext <<_ACEOF |
| 13184 | /* confdefs.h. */ |
| 13185 | _ACEOF |
| 13186 | cat confdefs.h >>conftest.$ac_ext |
| 13187 | cat >>conftest.$ac_ext <<_ACEOF |
| 13188 | /* end confdefs.h. */ |
| 13189 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13190 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13191 | int |
| 13192 | main () |
| 13193 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13194 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13195 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13196 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13197 | return 0; |
| 13198 | ; |
| 13199 | return 0; |
| 13200 | } |
| 13201 | _ACEOF |
| 13202 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13203 | if { (ac_try="$ac_compile" |
| 13204 | case "(($ac_try" in |
| 13205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13206 | *) ac_try_echo=$ac_try;; |
| 13207 | esac |
| 13208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13209 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13210 | ac_status=$? |
| 13211 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13212 | rm -f conftest.er1 |
| 13213 | cat conftest.err >&5 |
| 13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13215 | (exit $ac_status); } && { |
| 13216 | test -z "$ac_c_werror_flag" || |
| 13217 | test ! -s conftest.err |
| 13218 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13219 | ac_cv_type_long=yes |
| 13220 | else |
| 13221 | echo "$as_me: failed program was:" >&5 |
| 13222 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13223 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13224 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13225 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13227 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13228 | fi |
| 13229 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13230 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13231 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13232 | # The cast to long int works around a bug in the HP C Compiler |
| 13233 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13234 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13235 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13236 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13237 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13238 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13240 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13241 | if test "$cross_compiling" = yes; then |
| 13242 | # Depending upon the size, compute the lo and hi bounds. |
| 13243 | cat >conftest.$ac_ext <<_ACEOF |
| 13244 | /* confdefs.h. */ |
| 13245 | _ACEOF |
| 13246 | cat confdefs.h >>conftest.$ac_ext |
| 13247 | cat >>conftest.$ac_ext <<_ACEOF |
| 13248 | /* end confdefs.h. */ |
| 13249 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13250 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13251 | int |
| 13252 | main () |
| 13253 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13254 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13255 | test_array [0] = 0 |
| 13256 | |
| 13257 | ; |
| 13258 | return 0; |
| 13259 | } |
| 13260 | _ACEOF |
| 13261 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13262 | if { (ac_try="$ac_compile" |
| 13263 | case "(($ac_try" in |
| 13264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13265 | *) ac_try_echo=$ac_try;; |
| 13266 | esac |
| 13267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13268 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13269 | ac_status=$? |
| 13270 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13271 | rm -f conftest.er1 |
| 13272 | cat conftest.err >&5 |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13274 | (exit $ac_status); } && { |
| 13275 | test -z "$ac_c_werror_flag" || |
| 13276 | test ! -s conftest.err |
| 13277 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13278 | ac_lo=0 ac_mid=0 |
| 13279 | while :; do |
| 13280 | cat >conftest.$ac_ext <<_ACEOF |
| 13281 | /* confdefs.h. */ |
| 13282 | _ACEOF |
| 13283 | cat confdefs.h >>conftest.$ac_ext |
| 13284 | cat >>conftest.$ac_ext <<_ACEOF |
| 13285 | /* end confdefs.h. */ |
| 13286 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13287 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13288 | int |
| 13289 | main () |
| 13290 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13291 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13292 | test_array [0] = 0 |
| 13293 | |
| 13294 | ; |
| 13295 | return 0; |
| 13296 | } |
| 13297 | _ACEOF |
| 13298 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13299 | if { (ac_try="$ac_compile" |
| 13300 | case "(($ac_try" in |
| 13301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13302 | *) ac_try_echo=$ac_try;; |
| 13303 | esac |
| 13304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13305 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13306 | ac_status=$? |
| 13307 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13308 | rm -f conftest.er1 |
| 13309 | cat conftest.err >&5 |
| 13310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13311 | (exit $ac_status); } && { |
| 13312 | test -z "$ac_c_werror_flag" || |
| 13313 | test ! -s conftest.err |
| 13314 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13315 | ac_hi=$ac_mid; break |
| 13316 | else |
| 13317 | echo "$as_me: failed program was:" >&5 |
| 13318 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13319 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13320 | ac_lo=`expr $ac_mid + 1` |
| 13321 | if test $ac_lo -le $ac_mid; then |
| 13322 | ac_lo= ac_hi= |
| 13323 | break |
| 13324 | fi |
| 13325 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13326 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13327 | |
| 13328 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13329 | done |
| 13330 | else |
| 13331 | echo "$as_me: failed program was:" >&5 |
| 13332 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13333 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13334 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13335 | /* confdefs.h. */ |
| 13336 | _ACEOF |
| 13337 | cat confdefs.h >>conftest.$ac_ext |
| 13338 | cat >>conftest.$ac_ext <<_ACEOF |
| 13339 | /* end confdefs.h. */ |
| 13340 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13341 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13342 | int |
| 13343 | main () |
| 13344 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13345 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13346 | test_array [0] = 0 |
| 13347 | |
| 13348 | ; |
| 13349 | return 0; |
| 13350 | } |
| 13351 | _ACEOF |
| 13352 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13353 | if { (ac_try="$ac_compile" |
| 13354 | case "(($ac_try" in |
| 13355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13356 | *) ac_try_echo=$ac_try;; |
| 13357 | esac |
| 13358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13359 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13360 | ac_status=$? |
| 13361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13362 | rm -f conftest.er1 |
| 13363 | cat conftest.err >&5 |
| 13364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13365 | (exit $ac_status); } && { |
| 13366 | test -z "$ac_c_werror_flag" || |
| 13367 | test ! -s conftest.err |
| 13368 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13369 | ac_hi=-1 ac_mid=-1 |
| 13370 | while :; do |
| 13371 | cat >conftest.$ac_ext <<_ACEOF |
| 13372 | /* confdefs.h. */ |
| 13373 | _ACEOF |
| 13374 | cat confdefs.h >>conftest.$ac_ext |
| 13375 | cat >>conftest.$ac_ext <<_ACEOF |
| 13376 | /* end confdefs.h. */ |
| 13377 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13378 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13379 | int |
| 13380 | main () |
| 13381 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13382 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13383 | test_array [0] = 0 |
| 13384 | |
| 13385 | ; |
| 13386 | return 0; |
| 13387 | } |
| 13388 | _ACEOF |
| 13389 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13390 | if { (ac_try="$ac_compile" |
| 13391 | case "(($ac_try" in |
| 13392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13393 | *) ac_try_echo=$ac_try;; |
| 13394 | esac |
| 13395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13396 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13397 | ac_status=$? |
| 13398 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13399 | rm -f conftest.er1 |
| 13400 | cat conftest.err >&5 |
| 13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13402 | (exit $ac_status); } && { |
| 13403 | test -z "$ac_c_werror_flag" || |
| 13404 | test ! -s conftest.err |
| 13405 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13406 | ac_lo=$ac_mid; break |
| 13407 | else |
| 13408 | echo "$as_me: failed program was:" >&5 |
| 13409 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13410 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13411 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13412 | if test $ac_mid -le $ac_hi; then |
| 13413 | ac_lo= ac_hi= |
| 13414 | break |
| 13415 | fi |
| 13416 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13417 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13418 | |
| 13419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13420 | done |
| 13421 | else |
| 13422 | echo "$as_me: failed program was:" >&5 |
| 13423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13425 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13427 | |
| 13428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13429 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13430 | |
| 13431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13432 | # Binary search between lo and hi bounds. |
| 13433 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13434 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13435 | cat >conftest.$ac_ext <<_ACEOF |
| 13436 | /* confdefs.h. */ |
| 13437 | _ACEOF |
| 13438 | cat confdefs.h >>conftest.$ac_ext |
| 13439 | cat >>conftest.$ac_ext <<_ACEOF |
| 13440 | /* end confdefs.h. */ |
| 13441 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13442 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13443 | int |
| 13444 | main () |
| 13445 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13446 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13447 | test_array [0] = 0 |
| 13448 | |
| 13449 | ; |
| 13450 | return 0; |
| 13451 | } |
| 13452 | _ACEOF |
| 13453 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13454 | if { (ac_try="$ac_compile" |
| 13455 | case "(($ac_try" in |
| 13456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13457 | *) ac_try_echo=$ac_try;; |
| 13458 | esac |
| 13459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13460 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13461 | ac_status=$? |
| 13462 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13463 | rm -f conftest.er1 |
| 13464 | cat conftest.err >&5 |
| 13465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13466 | (exit $ac_status); } && { |
| 13467 | test -z "$ac_c_werror_flag" || |
| 13468 | test ! -s conftest.err |
| 13469 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13470 | ac_hi=$ac_mid |
| 13471 | else |
| 13472 | echo "$as_me: failed program was:" >&5 |
| 13473 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13474 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13475 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13476 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13477 | |
| 13478 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13479 | done |
| 13480 | case $ac_lo in |
| 13481 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13482 | '') if test "$ac_cv_type_long" = yes; then |
| 13483 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13484 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13485 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13486 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13487 | { (exit 77); exit 77; }; } |
| 13488 | else |
| 13489 | ac_cv_sizeof_long=0 |
| 13490 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13491 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13492 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13493 | cat >conftest.$ac_ext <<_ACEOF |
| 13494 | /* confdefs.h. */ |
| 13495 | _ACEOF |
| 13496 | cat confdefs.h >>conftest.$ac_ext |
| 13497 | cat >>conftest.$ac_ext <<_ACEOF |
| 13498 | /* end confdefs.h. */ |
| 13499 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13500 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13501 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13502 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13503 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13504 | #include <stdlib.h> |
| 13505 | int |
| 13506 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13507 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13508 | |
| 13509 | FILE *f = fopen ("conftest.val", "w"); |
| 13510 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13511 | return 1; |
| 13512 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13513 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13514 | long int i = longval (); |
| 13515 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13516 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13517 | fprintf (f, "%ld\n", i); |
| 13518 | } |
| 13519 | else |
| 13520 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13521 | unsigned long int i = ulongval (); |
| 13522 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13523 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13524 | fprintf (f, "%lu\n", i); |
| 13525 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13526 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13527 | |
| 13528 | ; |
| 13529 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13530 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13531 | _ACEOF |
| 13532 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13533 | if { (ac_try="$ac_link" |
| 13534 | case "(($ac_try" in |
| 13535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13536 | *) ac_try_echo=$ac_try;; |
| 13537 | esac |
| 13538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13539 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13540 | ac_status=$? |
| 13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13543 | { (case "(($ac_try" in |
| 13544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13545 | *) ac_try_echo=$ac_try;; |
| 13546 | esac |
| 13547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13548 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13549 | ac_status=$? |
| 13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13551 | (exit $ac_status); }; }; then |
| 13552 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13553 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13554 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13555 | echo "$as_me: failed program was:" >&5 |
| 13556 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13557 | |
| 13558 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13559 | if test "$ac_cv_type_long" = yes; then |
| 13560 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13561 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13562 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13563 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13564 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13565 | else |
| 13566 | ac_cv_sizeof_long=0 |
| 13567 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13568 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13569 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13570 | fi |
| 13571 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13572 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13573 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13574 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13575 | |
| 13576 | |
| 13577 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13578 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13579 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13580 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13581 | |
| 13582 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13583 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13584 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13585 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13587 | else |
| 13588 | cat >conftest.$ac_ext <<_ACEOF |
| 13589 | /* confdefs.h. */ |
| 13590 | _ACEOF |
| 13591 | cat confdefs.h >>conftest.$ac_ext |
| 13592 | cat >>conftest.$ac_ext <<_ACEOF |
| 13593 | /* end confdefs.h. */ |
| 13594 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13595 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13596 | int |
| 13597 | main () |
| 13598 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13599 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13600 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13601 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13602 | return 0; |
| 13603 | ; |
| 13604 | return 0; |
| 13605 | } |
| 13606 | _ACEOF |
| 13607 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13608 | if { (ac_try="$ac_compile" |
| 13609 | case "(($ac_try" in |
| 13610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13611 | *) ac_try_echo=$ac_try;; |
| 13612 | esac |
| 13613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13614 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13615 | ac_status=$? |
| 13616 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13617 | rm -f conftest.er1 |
| 13618 | cat conftest.err >&5 |
| 13619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13620 | (exit $ac_status); } && { |
| 13621 | test -z "$ac_c_werror_flag" || |
| 13622 | test ! -s conftest.err |
| 13623 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13624 | ac_cv_type_long_long=yes |
| 13625 | else |
| 13626 | echo "$as_me: failed program was:" >&5 |
| 13627 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13628 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13629 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13630 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13633 | fi |
| 13634 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13635 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13636 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13637 | # The cast to long int works around a bug in the HP C Compiler |
| 13638 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13639 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13640 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13641 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13642 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13643 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13645 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13646 | if test "$cross_compiling" = yes; then |
| 13647 | # Depending upon the size, compute the lo and hi bounds. |
| 13648 | cat >conftest.$ac_ext <<_ACEOF |
| 13649 | /* confdefs.h. */ |
| 13650 | _ACEOF |
| 13651 | cat confdefs.h >>conftest.$ac_ext |
| 13652 | cat >>conftest.$ac_ext <<_ACEOF |
| 13653 | /* end confdefs.h. */ |
| 13654 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13655 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13656 | int |
| 13657 | main () |
| 13658 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13659 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13660 | test_array [0] = 0 |
| 13661 | |
| 13662 | ; |
| 13663 | return 0; |
| 13664 | } |
| 13665 | _ACEOF |
| 13666 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13667 | if { (ac_try="$ac_compile" |
| 13668 | case "(($ac_try" in |
| 13669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13670 | *) ac_try_echo=$ac_try;; |
| 13671 | esac |
| 13672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13673 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13674 | ac_status=$? |
| 13675 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13676 | rm -f conftest.er1 |
| 13677 | cat conftest.err >&5 |
| 13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13679 | (exit $ac_status); } && { |
| 13680 | test -z "$ac_c_werror_flag" || |
| 13681 | test ! -s conftest.err |
| 13682 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13683 | ac_lo=0 ac_mid=0 |
| 13684 | while :; do |
| 13685 | cat >conftest.$ac_ext <<_ACEOF |
| 13686 | /* confdefs.h. */ |
| 13687 | _ACEOF |
| 13688 | cat confdefs.h >>conftest.$ac_ext |
| 13689 | cat >>conftest.$ac_ext <<_ACEOF |
| 13690 | /* end confdefs.h. */ |
| 13691 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13692 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13693 | int |
| 13694 | main () |
| 13695 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13696 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13697 | test_array [0] = 0 |
| 13698 | |
| 13699 | ; |
| 13700 | return 0; |
| 13701 | } |
| 13702 | _ACEOF |
| 13703 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13704 | if { (ac_try="$ac_compile" |
| 13705 | case "(($ac_try" in |
| 13706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13707 | *) ac_try_echo=$ac_try;; |
| 13708 | esac |
| 13709 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13710 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13711 | ac_status=$? |
| 13712 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13713 | rm -f conftest.er1 |
| 13714 | cat conftest.err >&5 |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13716 | (exit $ac_status); } && { |
| 13717 | test -z "$ac_c_werror_flag" || |
| 13718 | test ! -s conftest.err |
| 13719 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13720 | ac_hi=$ac_mid; break |
| 13721 | else |
| 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13724 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13725 | ac_lo=`expr $ac_mid + 1` |
| 13726 | if test $ac_lo -le $ac_mid; then |
| 13727 | ac_lo= ac_hi= |
| 13728 | break |
| 13729 | fi |
| 13730 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13731 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13732 | |
| 13733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13734 | done |
| 13735 | else |
| 13736 | echo "$as_me: failed program was:" >&5 |
| 13737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13738 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13739 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13740 | /* confdefs.h. */ |
| 13741 | _ACEOF |
| 13742 | cat confdefs.h >>conftest.$ac_ext |
| 13743 | cat >>conftest.$ac_ext <<_ACEOF |
| 13744 | /* end confdefs.h. */ |
| 13745 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13746 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13747 | int |
| 13748 | main () |
| 13749 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13750 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13751 | test_array [0] = 0 |
| 13752 | |
| 13753 | ; |
| 13754 | return 0; |
| 13755 | } |
| 13756 | _ACEOF |
| 13757 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13758 | if { (ac_try="$ac_compile" |
| 13759 | case "(($ac_try" in |
| 13760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13761 | *) ac_try_echo=$ac_try;; |
| 13762 | esac |
| 13763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13764 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13765 | ac_status=$? |
| 13766 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13767 | rm -f conftest.er1 |
| 13768 | cat conftest.err >&5 |
| 13769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13770 | (exit $ac_status); } && { |
| 13771 | test -z "$ac_c_werror_flag" || |
| 13772 | test ! -s conftest.err |
| 13773 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13774 | ac_hi=-1 ac_mid=-1 |
| 13775 | while :; do |
| 13776 | cat >conftest.$ac_ext <<_ACEOF |
| 13777 | /* confdefs.h. */ |
| 13778 | _ACEOF |
| 13779 | cat confdefs.h >>conftest.$ac_ext |
| 13780 | cat >>conftest.$ac_ext <<_ACEOF |
| 13781 | /* end confdefs.h. */ |
| 13782 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13783 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13784 | int |
| 13785 | main () |
| 13786 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13787 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13788 | test_array [0] = 0 |
| 13789 | |
| 13790 | ; |
| 13791 | return 0; |
| 13792 | } |
| 13793 | _ACEOF |
| 13794 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13795 | if { (ac_try="$ac_compile" |
| 13796 | case "(($ac_try" in |
| 13797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13798 | *) ac_try_echo=$ac_try;; |
| 13799 | esac |
| 13800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13801 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13802 | ac_status=$? |
| 13803 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13804 | rm -f conftest.er1 |
| 13805 | cat conftest.err >&5 |
| 13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13807 | (exit $ac_status); } && { |
| 13808 | test -z "$ac_c_werror_flag" || |
| 13809 | test ! -s conftest.err |
| 13810 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13811 | ac_lo=$ac_mid; break |
| 13812 | else |
| 13813 | echo "$as_me: failed program was:" >&5 |
| 13814 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13815 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13816 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13817 | if test $ac_mid -le $ac_hi; then |
| 13818 | ac_lo= ac_hi= |
| 13819 | break |
| 13820 | fi |
| 13821 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13822 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13823 | |
| 13824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13825 | done |
| 13826 | else |
| 13827 | echo "$as_me: failed program was:" >&5 |
| 13828 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13829 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13830 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13831 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13832 | |
| 13833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13834 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13835 | |
| 13836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13837 | # Binary search between lo and hi bounds. |
| 13838 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13839 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13840 | cat >conftest.$ac_ext <<_ACEOF |
| 13841 | /* confdefs.h. */ |
| 13842 | _ACEOF |
| 13843 | cat confdefs.h >>conftest.$ac_ext |
| 13844 | cat >>conftest.$ac_ext <<_ACEOF |
| 13845 | /* end confdefs.h. */ |
| 13846 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13847 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13848 | int |
| 13849 | main () |
| 13850 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13851 | static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)]; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13852 | test_array [0] = 0 |
| 13853 | |
| 13854 | ; |
| 13855 | return 0; |
| 13856 | } |
| 13857 | _ACEOF |
| 13858 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13859 | if { (ac_try="$ac_compile" |
| 13860 | case "(($ac_try" in |
| 13861 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13862 | *) ac_try_echo=$ac_try;; |
| 13863 | esac |
| 13864 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13865 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13866 | ac_status=$? |
| 13867 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13868 | rm -f conftest.er1 |
| 13869 | cat conftest.err >&5 |
| 13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13871 | (exit $ac_status); } && { |
| 13872 | test -z "$ac_c_werror_flag" || |
| 13873 | test ! -s conftest.err |
| 13874 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13875 | ac_hi=$ac_mid |
| 13876 | else |
| 13877 | echo "$as_me: failed program was:" >&5 |
| 13878 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13879 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13880 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13881 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13882 | |
| 13883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13884 | done |
| 13885 | case $ac_lo in |
| 13886 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13887 | '') if test "$ac_cv_type_long_long" = yes; then |
| 13888 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13889 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13890 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13891 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13892 | { (exit 77); exit 77; }; } |
| 13893 | else |
| 13894 | ac_cv_sizeof_long_long=0 |
| 13895 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13896 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13897 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13898 | cat >conftest.$ac_ext <<_ACEOF |
| 13899 | /* confdefs.h. */ |
| 13900 | _ACEOF |
| 13901 | cat confdefs.h >>conftest.$ac_ext |
| 13902 | cat >>conftest.$ac_ext <<_ACEOF |
| 13903 | /* end confdefs.h. */ |
| 13904 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13905 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13906 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13907 | static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13908 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13909 | #include <stdlib.h> |
| 13910 | int |
| 13911 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13912 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13913 | |
| 13914 | FILE *f = fopen ("conftest.val", "w"); |
| 13915 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13916 | return 1; |
| 13917 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13918 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13919 | long int i = longval (); |
| 13920 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13921 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13922 | fprintf (f, "%ld\n", i); |
| 13923 | } |
| 13924 | else |
| 13925 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13926 | unsigned long int i = ulongval (); |
| 13927 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13928 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13929 | fprintf (f, "%lu\n", i); |
| 13930 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13931 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13932 | |
| 13933 | ; |
| 13934 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13935 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13936 | _ACEOF |
| 13937 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13938 | if { (ac_try="$ac_link" |
| 13939 | case "(($ac_try" in |
| 13940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13941 | *) ac_try_echo=$ac_try;; |
| 13942 | esac |
| 13943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13944 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13945 | ac_status=$? |
| 13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13948 | { (case "(($ac_try" in |
| 13949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13950 | *) ac_try_echo=$ac_try;; |
| 13951 | esac |
| 13952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13953 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13954 | ac_status=$? |
| 13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13956 | (exit $ac_status); }; }; then |
| 13957 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13958 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13959 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13960 | echo "$as_me: failed program was:" >&5 |
| 13961 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13962 | |
| 13963 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13964 | if test "$ac_cv_type_long_long" = yes; then |
| 13965 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13966 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13967 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13968 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13969 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13970 | else |
| 13971 | ac_cv_sizeof_long_long=0 |
| 13972 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13973 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13974 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13975 | fi |
| 13976 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13977 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13978 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 13979 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13980 | |
| 13981 | |
| 13982 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13983 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13984 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13985 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13986 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13987 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13988 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 13989 | SIZEOF_INT=$ac_cv_sizeof_int |
| 13990 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 13991 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 13992 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13993 | |
| 13994 | |
| 13995 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13996 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 13997 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 13999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14000 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14001 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14002 | cat >conftest.$ac_ext <<_ACEOF |
| 14003 | /* confdefs.h. */ |
| 14004 | _ACEOF |
| 14005 | cat confdefs.h >>conftest.$ac_ext |
| 14006 | cat >>conftest.$ac_ext <<_ACEOF |
| 14007 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14008 | #include <sys/types.h> |
| 14009 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14010 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14011 | int |
| 14012 | main () |
| 14013 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14014 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14015 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14016 | bogus endian macros |
| 14017 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14018 | |
| 14019 | ; |
| 14020 | return 0; |
| 14021 | } |
| 14022 | _ACEOF |
| 14023 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14024 | if { (ac_try="$ac_compile" |
| 14025 | case "(($ac_try" in |
| 14026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14027 | *) ac_try_echo=$ac_try;; |
| 14028 | esac |
| 14029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14030 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14031 | ac_status=$? |
| 14032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14033 | rm -f conftest.er1 |
| 14034 | cat conftest.err >&5 |
| 14035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14036 | (exit $ac_status); } && { |
| 14037 | test -z "$ac_c_werror_flag" || |
| 14038 | test ! -s conftest.err |
| 14039 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14040 | # 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] | 14041 | cat >conftest.$ac_ext <<_ACEOF |
| 14042 | /* confdefs.h. */ |
| 14043 | _ACEOF |
| 14044 | cat confdefs.h >>conftest.$ac_ext |
| 14045 | cat >>conftest.$ac_ext <<_ACEOF |
| 14046 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14047 | #include <sys/types.h> |
| 14048 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14049 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14050 | int |
| 14051 | main () |
| 14052 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14053 | #if BYTE_ORDER != BIG_ENDIAN |
| 14054 | not big endian |
| 14055 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14056 | |
| 14057 | ; |
| 14058 | return 0; |
| 14059 | } |
| 14060 | _ACEOF |
| 14061 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14062 | if { (ac_try="$ac_compile" |
| 14063 | case "(($ac_try" in |
| 14064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14065 | *) ac_try_echo=$ac_try;; |
| 14066 | esac |
| 14067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14068 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14069 | ac_status=$? |
| 14070 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14071 | rm -f conftest.er1 |
| 14072 | cat conftest.err >&5 |
| 14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14074 | (exit $ac_status); } && { |
| 14075 | test -z "$ac_c_werror_flag" || |
| 14076 | test ! -s conftest.err |
| 14077 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14078 | ac_cv_c_bigendian=yes |
| 14079 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14080 | echo "$as_me: failed program was:" >&5 |
| 14081 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14082 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14083 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14084 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14085 | |
| 14086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14087 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14088 | echo "$as_me: failed program was:" >&5 |
| 14089 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14090 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14091 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14092 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14093 | # try to guess the endianness by grepping values into an object file |
| 14094 | ac_cv_c_bigendian=unknown |
| 14095 | cat >conftest.$ac_ext <<_ACEOF |
| 14096 | /* confdefs.h. */ |
| 14097 | _ACEOF |
| 14098 | cat confdefs.h >>conftest.$ac_ext |
| 14099 | cat >>conftest.$ac_ext <<_ACEOF |
| 14100 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14101 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14102 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14103 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14104 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14105 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14106 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14107 | int |
| 14108 | main () |
| 14109 | { |
| 14110 | _ascii (); _ebcdic (); |
| 14111 | ; |
| 14112 | return 0; |
| 14113 | } |
| 14114 | _ACEOF |
| 14115 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14116 | if { (ac_try="$ac_compile" |
| 14117 | case "(($ac_try" in |
| 14118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14119 | *) ac_try_echo=$ac_try;; |
| 14120 | esac |
| 14121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14122 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14123 | ac_status=$? |
| 14124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14125 | rm -f conftest.er1 |
| 14126 | cat conftest.err >&5 |
| 14127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14128 | (exit $ac_status); } && { |
| 14129 | test -z "$ac_c_werror_flag" || |
| 14130 | test ! -s conftest.err |
| 14131 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14132 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14133 | ac_cv_c_bigendian=yes |
| 14134 | fi |
| 14135 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14136 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14137 | ac_cv_c_bigendian=no |
| 14138 | else |
| 14139 | # finding both strings is unlikely to happen, but who knows? |
| 14140 | ac_cv_c_bigendian=unknown |
| 14141 | fi |
| 14142 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14143 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14144 | echo "$as_me: failed program was:" >&5 |
| 14145 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14146 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14148 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14149 | |
| 14150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14151 | else |
| 14152 | cat >conftest.$ac_ext <<_ACEOF |
| 14153 | /* confdefs.h. */ |
| 14154 | _ACEOF |
| 14155 | cat confdefs.h >>conftest.$ac_ext |
| 14156 | cat >>conftest.$ac_ext <<_ACEOF |
| 14157 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14158 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14159 | int |
| 14160 | main () |
| 14161 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14162 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14163 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14164 | union |
| 14165 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14166 | long int l; |
| 14167 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14168 | } u; |
| 14169 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14170 | return u.c[sizeof (long int) - 1] == 1; |
| 14171 | |
| 14172 | ; |
| 14173 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14174 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14175 | _ACEOF |
| 14176 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14177 | if { (ac_try="$ac_link" |
| 14178 | case "(($ac_try" in |
| 14179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14180 | *) ac_try_echo=$ac_try;; |
| 14181 | esac |
| 14182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14183 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14184 | ac_status=$? |
| 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14187 | { (case "(($ac_try" in |
| 14188 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14189 | *) ac_try_echo=$ac_try;; |
| 14190 | esac |
| 14191 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14192 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14193 | ac_status=$? |
| 14194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14195 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14196 | ac_cv_c_bigendian=no |
| 14197 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14198 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14199 | echo "$as_me: failed program was:" >&5 |
| 14200 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14202 | ( exit $ac_status ) |
| 14203 | ac_cv_c_bigendian=yes |
| 14204 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14205 | rm -f core *.core core.conftest.* 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] | 14206 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14207 | |
| 14208 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14209 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14210 | |
| 14211 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14212 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14213 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14214 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14215 | case $ac_cv_c_bigendian in |
| 14216 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14217 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14218 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14219 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14220 | _ACEOF |
| 14221 | ;; |
| 14222 | no) |
| 14223 | ;; |
| 14224 | *) |
| 14225 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14226 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14227 | echo "$as_me: error: unknown endianness |
| 14228 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14229 | { (exit 1); exit 1; }; } ;; |
| 14230 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14231 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14232 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 14233 | ASM_TYPES_HEADER=./asm_types.h |
| 14234 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 14235 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 14236 | > public_config.h |
| 14237 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 14238 | uniq tmp_config.$$ >> public_config.h |
| 14239 | else |
| 14240 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 14241 | fi |
| 14242 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 14243 | uniq tmp_config.$$ >> public_config.h |
| 14244 | else |
| 14245 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 14246 | fi |
| 14247 | rm -f tmp_config.$$ |
| 14248 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 14249 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14250 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14251 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14252 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14253 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14254 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14255 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14259 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14260 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14261 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14262 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14263 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14264 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14265 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14266 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14267 | cat >conftest.$ac_ext <<_ACEOF |
| 14268 | /* confdefs.h. */ |
| 14269 | _ACEOF |
| 14270 | cat confdefs.h >>conftest.$ac_ext |
| 14271 | cat >>conftest.$ac_ext <<_ACEOF |
| 14272 | /* end confdefs.h. */ |
| 14273 | $ac_includes_default |
| 14274 | #include <$ac_header> |
| 14275 | _ACEOF |
| 14276 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14277 | if { (ac_try="$ac_compile" |
| 14278 | case "(($ac_try" in |
| 14279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14280 | *) ac_try_echo=$ac_try;; |
| 14281 | esac |
| 14282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14283 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14284 | ac_status=$? |
| 14285 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14286 | rm -f conftest.er1 |
| 14287 | cat conftest.err >&5 |
| 14288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14289 | (exit $ac_status); } && { |
| 14290 | test -z "$ac_c_werror_flag" || |
| 14291 | test ! -s conftest.err |
| 14292 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14293 | ac_header_compiler=yes |
| 14294 | else |
| 14295 | echo "$as_me: failed program was:" >&5 |
| 14296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14297 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14298 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14299 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14300 | |
| 14301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14302 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14303 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14304 | |
| 14305 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14306 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14307 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14308 | cat >conftest.$ac_ext <<_ACEOF |
| 14309 | /* confdefs.h. */ |
| 14310 | _ACEOF |
| 14311 | cat confdefs.h >>conftest.$ac_ext |
| 14312 | cat >>conftest.$ac_ext <<_ACEOF |
| 14313 | /* end confdefs.h. */ |
| 14314 | #include <$ac_header> |
| 14315 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14316 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14317 | case "(($ac_try" in |
| 14318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14319 | *) ac_try_echo=$ac_try;; |
| 14320 | esac |
| 14321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14322 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14323 | ac_status=$? |
| 14324 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14325 | rm -f conftest.er1 |
| 14326 | cat conftest.err >&5 |
| 14327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14328 | (exit $ac_status); } >/dev/null && { |
| 14329 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14330 | test ! -s conftest.err |
| 14331 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14332 | ac_header_preproc=yes |
| 14333 | else |
| 14334 | echo "$as_me: failed program was:" >&5 |
| 14335 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14336 | |
| 14337 | ac_header_preproc=no |
| 14338 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14339 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14340 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14341 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14342 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14343 | |
| 14344 | # So? What about this header? |
| 14345 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14346 | yes:no: ) |
| 14347 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14348 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14349 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14350 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14351 | ac_header_preproc=yes |
| 14352 | ;; |
| 14353 | no:yes:* ) |
| 14354 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14355 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14356 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14357 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14358 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14359 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14360 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14361 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14362 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14363 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14364 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14365 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14366 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14367 | ;; |
| 14368 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14371 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14373 | else |
| 14374 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14375 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14376 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14377 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14378 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14379 | |
| 14380 | fi |
| 14381 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14382 | cat >>confdefs.h <<_ACEOF |
| 14383 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14384 | _ACEOF |
| 14385 | |
| 14386 | fi |
| 14387 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14388 | done |
| 14389 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14390 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14391 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14392 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14394 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14395 | cat >conftest.$ac_ext <<_ACEOF |
| 14396 | /* confdefs.h. */ |
| 14397 | _ACEOF |
| 14398 | cat confdefs.h >>conftest.$ac_ext |
| 14399 | cat >>conftest.$ac_ext <<_ACEOF |
| 14400 | /* end confdefs.h. */ |
| 14401 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14402 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14403 | int |
| 14404 | main () |
| 14405 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14406 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14407 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14408 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14409 | return 0; |
| 14410 | ; |
| 14411 | return 0; |
| 14412 | } |
| 14413 | _ACEOF |
| 14414 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14415 | if { (ac_try="$ac_compile" |
| 14416 | case "(($ac_try" in |
| 14417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14418 | *) ac_try_echo=$ac_try;; |
| 14419 | esac |
| 14420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14421 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | ac_status=$? |
| 14423 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14424 | rm -f conftest.er1 |
| 14425 | cat conftest.err >&5 |
| 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14427 | (exit $ac_status); } && { |
| 14428 | test -z "$ac_c_werror_flag" || |
| 14429 | test ! -s conftest.err |
| 14430 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14431 | ac_cv_type_intptr_t=yes |
| 14432 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14433 | echo "$as_me: failed program was:" >&5 |
| 14434 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14435 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14436 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14437 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14438 | |
| 14439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14440 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14441 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14442 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14443 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14444 | |
| 14445 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14446 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14447 | _ACEOF |
| 14448 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14449 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14450 | fi |
| 14451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14452 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14453 | echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14454 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14456 | else |
| 14457 | cat >conftest.$ac_ext <<_ACEOF |
| 14458 | /* confdefs.h. */ |
| 14459 | _ACEOF |
| 14460 | cat confdefs.h >>conftest.$ac_ext |
| 14461 | cat >>conftest.$ac_ext <<_ACEOF |
| 14462 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14463 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14464 | int |
| 14465 | main () |
| 14466 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14467 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14468 | ; |
| 14469 | return 0; |
| 14470 | } |
| 14471 | _ACEOF |
| 14472 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14473 | if { (ac_try="$ac_compile" |
| 14474 | case "(($ac_try" in |
| 14475 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14476 | *) ac_try_echo=$ac_try;; |
| 14477 | esac |
| 14478 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14479 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | ac_status=$? |
| 14481 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14482 | rm -f conftest.er1 |
| 14483 | cat conftest.err >&5 |
| 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14485 | (exit $ac_status); } && { |
| 14486 | test -z "$ac_c_werror_flag" || |
| 14487 | test ! -s conftest.err |
| 14488 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14489 | e2fsprogs_cv_struct_st_flags=yes |
| 14490 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14491 | echo "$as_me: failed program was:" >&5 |
| 14492 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14493 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14494 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14495 | fi |
| 14496 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14497 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14498 | fi |
| 14499 | |
| 14500 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14501 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14502 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14503 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14504 | echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14505 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14507 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14508 | cat >conftest.$ac_ext <<_ACEOF |
| 14509 | /* confdefs.h. */ |
| 14510 | _ACEOF |
| 14511 | cat confdefs.h >>conftest.$ac_ext |
| 14512 | cat >>conftest.$ac_ext <<_ACEOF |
| 14513 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14514 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14515 | int |
| 14516 | main () |
| 14517 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14518 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14519 | ; |
| 14520 | return 0; |
| 14521 | } |
| 14522 | _ACEOF |
| 14523 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14524 | if { (ac_try="$ac_compile" |
| 14525 | case "(($ac_try" in |
| 14526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14527 | *) ac_try_echo=$ac_try;; |
| 14528 | esac |
| 14529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14530 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14531 | ac_status=$? |
| 14532 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14533 | rm -f conftest.er1 |
| 14534 | cat conftest.err >&5 |
| 14535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14536 | (exit $ac_status); } && { |
| 14537 | test -z "$ac_c_werror_flag" || |
| 14538 | test ! -s conftest.err |
| 14539 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14540 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14542 | echo "$as_me: failed program was:" >&5 |
| 14543 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14544 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14545 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14546 | fi |
| 14547 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14549 | fi |
| 14550 | |
| 14551 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14552 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14553 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14554 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14555 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14556 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14557 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14558 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14559 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14560 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14561 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14562 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14564 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14565 | cat >conftest.$ac_ext <<_ACEOF |
| 14566 | /* confdefs.h. */ |
| 14567 | _ACEOF |
| 14568 | cat confdefs.h >>conftest.$ac_ext |
| 14569 | cat >>conftest.$ac_ext <<_ACEOF |
| 14570 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14571 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14572 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14573 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14574 | int |
| 14575 | main () |
| 14576 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14577 | static struct sockaddr ac_aggr; |
| 14578 | if (ac_aggr.sa_len) |
| 14579 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14580 | ; |
| 14581 | return 0; |
| 14582 | } |
| 14583 | _ACEOF |
| 14584 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14585 | if { (ac_try="$ac_compile" |
| 14586 | case "(($ac_try" in |
| 14587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14588 | *) ac_try_echo=$ac_try;; |
| 14589 | esac |
| 14590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14591 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14592 | ac_status=$? |
| 14593 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14594 | rm -f conftest.er1 |
| 14595 | cat conftest.err >&5 |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14597 | (exit $ac_status); } && { |
| 14598 | test -z "$ac_c_werror_flag" || |
| 14599 | test ! -s conftest.err |
| 14600 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14601 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14602 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14603 | echo "$as_me: failed program was:" >&5 |
| 14604 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14606 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14607 | /* confdefs.h. */ |
| 14608 | _ACEOF |
| 14609 | cat confdefs.h >>conftest.$ac_ext |
| 14610 | cat >>conftest.$ac_ext <<_ACEOF |
| 14611 | /* end confdefs.h. */ |
| 14612 | #include <sys/types.h> |
| 14613 | #include <sys/socket.h> |
| 14614 | |
| 14615 | int |
| 14616 | main () |
| 14617 | { |
| 14618 | static struct sockaddr ac_aggr; |
| 14619 | if (sizeof ac_aggr.sa_len) |
| 14620 | return 0; |
| 14621 | ; |
| 14622 | return 0; |
| 14623 | } |
| 14624 | _ACEOF |
| 14625 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14626 | if { (ac_try="$ac_compile" |
| 14627 | case "(($ac_try" in |
| 14628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14629 | *) ac_try_echo=$ac_try;; |
| 14630 | esac |
| 14631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14632 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14633 | ac_status=$? |
| 14634 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14635 | rm -f conftest.er1 |
| 14636 | cat conftest.err >&5 |
| 14637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14638 | (exit $ac_status); } && { |
| 14639 | test -z "$ac_c_werror_flag" || |
| 14640 | test ! -s conftest.err |
| 14641 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14642 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14643 | else |
| 14644 | echo "$as_me: failed program was:" >&5 |
| 14645 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14646 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14647 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14648 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14649 | |
| 14650 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14651 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14652 | |
| 14653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14655 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14656 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14657 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14658 | |
| 14659 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14660 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14661 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14662 | |
| 14663 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14664 | |
| 14665 | |
| 14666 | |
| 14667 | |
| 14668 | |
| 14669 | |
| 14670 | |
| 14671 | |
| 14672 | |
| 14673 | |
| 14674 | |
| 14675 | |
| 14676 | |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | |
| 14681 | |
| 14682 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14683 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14684 | |
| 14685 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14686 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14687 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14688 | |
| 14689 | |
| 14690 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14691 | |
| 14692 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14693 | |
Theodore Ts'o | c13ab4f | 2008-07-13 16:17:57 -0400 | [diff] [blame] | 14694 | |
| 14695 | |
| 14696 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14697 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14699 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14701 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14703 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14704 | cat >conftest.$ac_ext <<_ACEOF |
| 14705 | /* confdefs.h. */ |
| 14706 | _ACEOF |
| 14707 | cat confdefs.h >>conftest.$ac_ext |
| 14708 | cat >>conftest.$ac_ext <<_ACEOF |
| 14709 | /* end confdefs.h. */ |
| 14710 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14711 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14712 | #define $ac_func innocuous_$ac_func |
| 14713 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14714 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14715 | which can conflict with char $ac_func (); below. |
| 14716 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14717 | <limits.h> exists even on freestanding compilers. */ |
| 14718 | |
| 14719 | #ifdef __STDC__ |
| 14720 | # include <limits.h> |
| 14721 | #else |
| 14722 | # include <assert.h> |
| 14723 | #endif |
| 14724 | |
| 14725 | #undef $ac_func |
| 14726 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14727 | /* Override any GCC internal prototype to avoid an error. |
| 14728 | Use char because int might match the return type of a GCC |
| 14729 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14730 | #ifdef __cplusplus |
| 14731 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14732 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14733 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14734 | /* The GNU C library defines this for functions which it implements |
| 14735 | to always fail with ENOSYS. Some functions are actually named |
| 14736 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14737 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14738 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14739 | #endif |
| 14740 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14741 | int |
| 14742 | main () |
| 14743 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14744 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14745 | ; |
| 14746 | return 0; |
| 14747 | } |
| 14748 | _ACEOF |
| 14749 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14750 | if { (ac_try="$ac_link" |
| 14751 | case "(($ac_try" in |
| 14752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14753 | *) ac_try_echo=$ac_try;; |
| 14754 | esac |
| 14755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14756 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14757 | ac_status=$? |
| 14758 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14759 | rm -f conftest.er1 |
| 14760 | cat conftest.err >&5 |
| 14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14762 | (exit $ac_status); } && { |
| 14763 | test -z "$ac_c_werror_flag" || |
| 14764 | test ! -s conftest.err |
| 14765 | } && test -s conftest$ac_exeext && |
| 14766 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14767 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14768 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14769 | echo "$as_me: failed program was:" >&5 |
| 14770 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 14771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14772 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14773 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14774 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14775 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14776 | conftest$ac_exeext conftest.$ac_ext |
| 14777 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14778 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 14779 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14780 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14781 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14782 | cat >>confdefs.h <<_ACEOF |
| 14783 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14784 | _ACEOF |
| 14785 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14786 | fi |
| 14787 | done |
| 14788 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14789 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14790 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 14791 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14792 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 14793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14794 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14795 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14796 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | cat >conftest.$ac_ext <<_ACEOF |
| 14798 | /* confdefs.h. */ |
| 14799 | _ACEOF |
| 14800 | cat confdefs.h >>conftest.$ac_ext |
| 14801 | cat >>conftest.$ac_ext <<_ACEOF |
| 14802 | /* end confdefs.h. */ |
| 14803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14804 | /* Override any GCC internal prototype to avoid an error. |
| 14805 | Use char because int might match the return type of a GCC |
| 14806 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14807 | #ifdef __cplusplus |
| 14808 | extern "C" |
| 14809 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14810 | char socket (); |
| 14811 | int |
| 14812 | main () |
| 14813 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14814 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14815 | ; |
| 14816 | return 0; |
| 14817 | } |
| 14818 | _ACEOF |
| 14819 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14820 | if { (ac_try="$ac_link" |
| 14821 | case "(($ac_try" in |
| 14822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14823 | *) ac_try_echo=$ac_try;; |
| 14824 | esac |
| 14825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14826 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14827 | ac_status=$? |
| 14828 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14829 | rm -f conftest.er1 |
| 14830 | cat conftest.err >&5 |
| 14831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14832 | (exit $ac_status); } && { |
| 14833 | test -z "$ac_c_werror_flag" || |
| 14834 | test ! -s conftest.err |
| 14835 | } && test -s conftest$ac_exeext && |
| 14836 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14837 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14838 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14839 | echo "$as_me: failed program was:" >&5 |
| 14840 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14841 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14842 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14843 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14844 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14845 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14846 | conftest$ac_exeext conftest.$ac_ext |
| 14847 | LIBS=$ac_check_lib_save_LIBS |
| 14848 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14849 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 14850 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14851 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14852 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14853 | fi |
| 14854 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14855 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14856 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14857 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 14858 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14859 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 14860 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14861 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14862 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14863 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14864 | cat >conftest.$ac_ext <<_ACEOF |
| 14865 | /* confdefs.h. */ |
| 14866 | _ACEOF |
| 14867 | cat confdefs.h >>conftest.$ac_ext |
| 14868 | cat >>conftest.$ac_ext <<_ACEOF |
| 14869 | /* end confdefs.h. */ |
| 14870 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14871 | /* Override any GCC internal prototype to avoid an error. |
| 14872 | Use char because int might match the return type of a GCC |
| 14873 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14874 | #ifdef __cplusplus |
| 14875 | extern "C" |
| 14876 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14877 | char dlopen (); |
| 14878 | int |
| 14879 | main () |
| 14880 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14881 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14882 | ; |
| 14883 | return 0; |
| 14884 | } |
| 14885 | _ACEOF |
| 14886 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14887 | if { (ac_try="$ac_link" |
| 14888 | case "(($ac_try" in |
| 14889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14890 | *) ac_try_echo=$ac_try;; |
| 14891 | esac |
| 14892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14893 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14894 | ac_status=$? |
| 14895 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14896 | rm -f conftest.er1 |
| 14897 | cat conftest.err >&5 |
| 14898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14899 | (exit $ac_status); } && { |
| 14900 | test -z "$ac_c_werror_flag" || |
| 14901 | test ! -s conftest.err |
| 14902 | } && test -s conftest$ac_exeext && |
| 14903 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14904 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14905 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14906 | echo "$as_me: failed program was:" >&5 |
| 14907 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14908 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14909 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14910 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14911 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14912 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14913 | conftest$ac_exeext conftest.$ac_ext |
| 14914 | LIBS=$ac_check_lib_save_LIBS |
| 14915 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14916 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 14917 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14918 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14919 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14920 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14921 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14922 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14923 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 14924 | fi |
| 14925 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14926 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14927 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 14928 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14929 | if test "${ac_cv_have_optreset+set}" = set; then |
| 14930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14931 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14932 | cat >conftest.$ac_ext <<_ACEOF |
| 14933 | /* confdefs.h. */ |
| 14934 | _ACEOF |
| 14935 | cat confdefs.h >>conftest.$ac_ext |
| 14936 | cat >>conftest.$ac_ext <<_ACEOF |
| 14937 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14938 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14939 | |
| 14940 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14941 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14942 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14943 | ac_cv_have_optreset=yes |
| 14944 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14945 | ac_cv_have_optreset=no |
| 14946 | fi |
| 14947 | rm -f conftest* |
| 14948 | |
| 14949 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14950 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 14951 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14952 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14953 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14954 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14955 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14956 | |
| 14957 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14958 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 14959 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 14960 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14961 | UNI_DIFF_OPTS=-u |
| 14962 | else |
| 14963 | UNI_DIFF_OPTS=-c |
| 14964 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14965 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 14966 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 14967 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14968 | case "$host_os" in |
| 14969 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14970 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14971 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14972 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14973 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 14974 | ;; |
| 14975 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14976 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14977 | CYGWIN_CMT="#" |
| 14978 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14979 | case "$host_os" in |
| 14980 | linux*) |
| 14981 | LINUX_CMT= |
| 14982 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14983 | cygwin) |
| 14984 | CYGWIN_CMT= |
| 14985 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 14986 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 14987 | esac |
| 14988 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14989 | |
| 14990 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14991 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14992 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 14993 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 14994 | root_prefix=""; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 14995 | { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
| 14996 | echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14997 | fi |
| 14998 | ;; |
| 14999 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15000 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15001 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15002 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15003 | prefix="/usr"; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15004 | { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
| 15005 | echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15006 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15007 | { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
| 15008 | echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15009 | mandir=/usr/share/man |
| 15010 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15011 | fi |
| 15012 | ;; |
| 15013 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15014 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15015 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15016 | root_prefix="$ac_default_prefix" |
| 15017 | else |
| 15018 | root_prefix="$prefix" |
| 15019 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15020 | root_bindir=$bindir |
| 15021 | root_sbindir=$sbindir |
| 15022 | root_libdir=$libdir |
| 15023 | root_sysconfdir=$sysconfdir |
| 15024 | else |
| 15025 | root_bindir='${root_prefix}/bin' |
| 15026 | root_sbindir='${root_prefix}/sbin' |
| 15027 | root_libdir='${root_prefix}/lib' |
| 15028 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15029 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15030 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15031 | root_bindir=$bindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15032 | { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
| 15033 | echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15034 | fi |
| 15035 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15036 | root_sbindir=$sbindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15037 | { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
| 15038 | echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15039 | fi |
| 15040 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15041 | root_libdir=$libdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15042 | { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
| 15043 | echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15044 | fi |
| 15045 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15046 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15047 | { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
| 15048 | echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15049 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15050 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15051 | |
| 15052 | |
| 15053 | |
| 15054 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15055 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15056 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15057 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15059 | else |
| 15060 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15061 | cat >conftest.$ac_ext <<_ACEOF |
| 15062 | /* confdefs.h. */ |
| 15063 | _ACEOF |
| 15064 | cat confdefs.h >>conftest.$ac_ext |
| 15065 | cat >>conftest.$ac_ext <<_ACEOF |
| 15066 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15067 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15068 | int |
| 15069 | main () |
| 15070 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15071 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15072 | ; |
| 15073 | return 0; |
| 15074 | } |
| 15075 | _ACEOF |
| 15076 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15077 | if { (ac_try="$ac_link" |
| 15078 | case "(($ac_try" in |
| 15079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15080 | *) ac_try_echo=$ac_try;; |
| 15081 | esac |
| 15082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15083 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15084 | ac_status=$? |
| 15085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15086 | rm -f conftest.er1 |
| 15087 | cat conftest.err >&5 |
| 15088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15089 | (exit $ac_status); } && { |
| 15090 | test -z "$ac_c_werror_flag" || |
| 15091 | test ! -s conftest.err |
| 15092 | } && test -s conftest$ac_exeext && |
| 15093 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15094 | ac_cv_e2fsprogs_use_static=yes |
| 15095 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15096 | echo "$as_me: failed program was:" >&5 |
| 15097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15098 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15099 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15100 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15101 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15102 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15103 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15104 | LDFLAGS=$SAVE_LDFLAGS |
| 15105 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15106 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15107 | case "$host_os" in |
| 15108 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15109 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15110 | ;; |
| 15111 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15112 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15113 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15114 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15115 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15116 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15117 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15118 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15119 | case "$host_os" in |
| 15120 | darwin*) |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15121 | { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
| 15122 | echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15123 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15124 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15125 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15126 | |
| 15127 | ;; |
| 15128 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15129 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15130 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15131 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15132 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15133 | if test "$cross_compiling" = yes ; then |
| 15134 | DO_TEST_SUITE= |
| 15135 | else |
| 15136 | DO_TEST_SUITE=check |
| 15137 | fi |
| 15138 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15139 | INTL_FLAGS= |
| 15140 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15141 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15142 | fi |
| 15143 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15144 | if test $cross_compiling = no; then |
| 15145 | BUILD_CFLAGS="$CFLAGS" |
| 15146 | BUILD_LDFLAGS="$LDFLAGS" |
| 15147 | else |
| 15148 | BUILD_CFLAGS= |
| 15149 | BUILD_LDFLAGS= |
| 15150 | fi |
| 15151 | |
| 15152 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15153 | test -d lib || mkdir lib |
| 15154 | test -d include || mkdir include |
| 15155 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15156 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15157 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15158 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15159 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15160 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15161 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15162 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15163 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15164 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 15165 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15166 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15167 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15168 | if test -d `dirname ${srcdir}/$i` ; then |
| 15169 | outlist="$outlist $i" |
| 15170 | fi |
| 15171 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15172 | ac_config_files="$ac_config_files $outlist" |
| 15173 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15174 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15175 | # This file is a shell script that caches the results of configure |
| 15176 | # 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] | 15177 | # scripts and configure runs, see configure's option --config-cache. |
| 15178 | # It is not useful on other systems. If it contains results you don't |
| 15179 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15180 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15181 | # config.status only pays attention to the cache file if you give it |
| 15182 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15183 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15184 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15185 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15186 | # following values. |
| 15187 | |
| 15188 | _ACEOF |
| 15189 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15190 | # The following way of writing the cache mishandles newlines in values, |
| 15191 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15192 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15193 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15194 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15195 | ( |
| 15196 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15197 | eval ac_val=\$$ac_var |
| 15198 | case $ac_val in #( |
| 15199 | *${as_nl}*) |
| 15200 | case $ac_var in #( |
| 15201 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15202 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15203 | esac |
| 15204 | case $ac_var in #( |
| 15205 | _ | IFS | as_nl) ;; #( |
| 15206 | *) $as_unset $ac_var ;; |
| 15207 | esac ;; |
| 15208 | esac |
| 15209 | done |
| 15210 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15211 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15212 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15213 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15214 | # `set' does not quote correctly, so add quotes (double-quote |
| 15215 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15216 | sed -n \ |
| 15217 | "s/'/'\\\\''/g; |
| 15218 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15219 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15220 | *) |
| 15221 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15222 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15223 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15224 | esac | |
| 15225 | sort |
| 15226 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15227 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15228 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15229 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15230 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15231 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15232 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15233 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15234 | :end' >>confcache |
| 15235 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15236 | if test -w "$cache_file"; then |
| 15237 | test "x$cache_file" != "x/dev/null" && |
| 15238 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15239 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15240 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15241 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15242 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15243 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15244 | fi |
| 15245 | fi |
| 15246 | rm -f confcache |
| 15247 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15248 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15249 | # Let make expand exec_prefix. |
| 15250 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15251 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15252 | # Transform confdefs.h into DEFS. |
| 15253 | # Protect against shell expansion while executing Makefile rules. |
| 15254 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15255 | # |
| 15256 | # If the first sed substitution is executed (which looks for macros that |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15257 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15258 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15259 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15260 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15261 | :clear |
| 15262 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15263 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15264 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15265 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15266 | b any |
| 15267 | :quote |
| 15268 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15269 | s/\[/\\&/g |
| 15270 | s/\]/\\&/g |
| 15271 | s/\$/$$/g |
| 15272 | H |
| 15273 | :any |
| 15274 | ${ |
| 15275 | g |
| 15276 | s/^\n// |
| 15277 | s/\n/ /g |
| 15278 | p |
| 15279 | } |
| 15280 | ' |
| 15281 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15282 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15283 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15284 | ac_libobjs= |
| 15285 | ac_ltlibobjs= |
| 15286 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15287 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15288 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15289 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15290 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15291 | # will be set to the directory where LIBOBJS objects are built. |
| 15292 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15293 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15294 | done |
| 15295 | LIBOBJS=$ac_libobjs |
| 15296 | |
| 15297 | LTLIBOBJS=$ac_ltlibobjs |
| 15298 | |
| 15299 | |
| 15300 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15301 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15302 | ac_clean_files_save=$ac_clean_files |
| 15303 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15304 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15305 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15306 | cat >$CONFIG_STATUS <<_ACEOF |
| 15307 | #! $SHELL |
| 15308 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15309 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15310 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15311 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15313 | debug=false |
| 15314 | ac_cs_recheck=false |
| 15315 | ac_cs_silent=false |
| 15316 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15317 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15318 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15319 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15320 | ## --------------------- ## |
| 15321 | ## M4sh Initialization. ## |
| 15322 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15323 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15324 | # Be more Bourne compatible |
| 15325 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15326 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15327 | emulate sh |
| 15328 | NULLCMD=: |
| 15329 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15330 | # is contrary to our usage. Disable this feature. |
| 15331 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15332 | setopt NO_GLOB_SUBST |
| 15333 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15334 | case `(set -o) 2>/dev/null` in |
| 15335 | *posix*) set -o posix ;; |
| 15336 | esac |
| 15337 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15338 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15339 | |
| 15340 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15341 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15343 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15344 | # Avoid depending upon Character Ranges. |
| 15345 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15346 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15347 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15348 | as_cr_digits='0123456789' |
| 15349 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15350 | |
| 15351 | # The user is always right. |
| 15352 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15353 | echo "#! /bin/sh" >conf$$.sh |
| 15354 | echo "exit 0" >>conf$$.sh |
| 15355 | chmod +x conf$$.sh |
| 15356 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15357 | PATH_SEPARATOR=';' |
| 15358 | else |
| 15359 | PATH_SEPARATOR=: |
| 15360 | fi |
| 15361 | rm -f conf$$.sh |
| 15362 | fi |
| 15363 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15364 | # Support unset when possible. |
| 15365 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15366 | as_unset=unset |
| 15367 | else |
| 15368 | as_unset=false |
| 15369 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15370 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15371 | |
| 15372 | # IFS |
| 15373 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15374 | # there to prevent editors from complaining about space-tab. |
| 15375 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15376 | # splitting by setting IFS to empty value.) |
| 15377 | as_nl=' |
| 15378 | ' |
| 15379 | IFS=" "" $as_nl" |
| 15380 | |
| 15381 | # Find who we are. Look in the path if we contain no directory separator. |
| 15382 | case $0 in |
| 15383 | *[\\/]* ) as_myself=$0 ;; |
| 15384 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15385 | for as_dir in $PATH |
| 15386 | do |
| 15387 | IFS=$as_save_IFS |
| 15388 | test -z "$as_dir" && as_dir=. |
| 15389 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15390 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15391 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15392 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15393 | ;; |
| 15394 | esac |
| 15395 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15396 | # in which case we are not to be found in the path. |
| 15397 | if test "x$as_myself" = x; then |
| 15398 | as_myself=$0 |
| 15399 | fi |
| 15400 | if test ! -f "$as_myself"; then |
| 15401 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15402 | { (exit 1); exit 1; } |
| 15403 | fi |
| 15404 | |
| 15405 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15406 | for as_var in ENV MAIL MAILPATH |
| 15407 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15408 | done |
| 15409 | PS1='$ ' |
| 15410 | PS2='> ' |
| 15411 | PS4='+ ' |
| 15412 | |
| 15413 | # NLS nuisances. |
| 15414 | for as_var in \ |
| 15415 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15416 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15417 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15418 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15419 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15420 | eval $as_var=C; export $as_var |
| 15421 | else |
| 15422 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15423 | fi |
| 15424 | done |
| 15425 | |
| 15426 | # Required to use basename. |
| 15427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15429 | as_expr=expr |
| 15430 | else |
| 15431 | as_expr=false |
| 15432 | fi |
| 15433 | |
| 15434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15435 | as_basename=basename |
| 15436 | else |
| 15437 | as_basename=false |
| 15438 | fi |
| 15439 | |
| 15440 | |
| 15441 | # Name of the executable. |
| 15442 | as_me=`$as_basename -- "$0" || |
| 15443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15444 | X"$0" : 'X\(//\)$' \| \ |
| 15445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 15446 | echo X/"$0" | |
| 15447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15448 | s//\1/ |
| 15449 | q |
| 15450 | } |
| 15451 | /^X\/\(\/\/\)$/{ |
| 15452 | s//\1/ |
| 15453 | q |
| 15454 | } |
| 15455 | /^X\/\(\/\).*/{ |
| 15456 | s//\1/ |
| 15457 | q |
| 15458 | } |
| 15459 | s/.*/./; q'` |
| 15460 | |
| 15461 | # CDPATH. |
| 15462 | $as_unset CDPATH |
| 15463 | |
| 15464 | |
| 15465 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15466 | as_lineno_1=$LINENO |
| 15467 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15468 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15469 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15470 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15471 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15472 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15473 | # line-number line after each line using $LINENO; the second 'sed' |
| 15474 | # does the real work. The second script uses 'N' to pair each |
| 15475 | # line-number line with the line containing $LINENO, and appends |
| 15476 | # trailing '-' during substitution so that $LINENO is not a special |
| 15477 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15478 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15479 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 15480 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 15481 | sed -n ' |
| 15482 | p |
| 15483 | /[$]LINENO/= |
| 15484 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15485 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15486 | s/[$]LINENO.*/&-/ |
| 15487 | t lineno |
| 15488 | b |
| 15489 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15490 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15491 | :loop |
| 15492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15493 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15494 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15495 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15496 | chmod +x "$as_me.lineno" || |
| 15497 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15498 | { (exit 1); exit 1; }; } |
| 15499 | |
| 15500 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 15501 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15502 | # original and so on. Autoconf is especially sensitive to this). |
| 15503 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15504 | # Exit status is that of the last command. |
| 15505 | exit |
| 15506 | } |
| 15507 | |
| 15508 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15509 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15510 | as_dirname=dirname |
| 15511 | else |
| 15512 | as_dirname=false |
| 15513 | fi |
| 15514 | |
| 15515 | ECHO_C= ECHO_N= ECHO_T= |
| 15516 | case `echo -n x` in |
| 15517 | -n*) |
| 15518 | case `echo 'x\c'` in |
| 15519 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 15520 | *) ECHO_C='\c';; |
| 15521 | esac;; |
| 15522 | *) |
| 15523 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15524 | esac |
| 15525 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15526 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15527 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15528 | as_expr=expr |
| 15529 | else |
| 15530 | as_expr=false |
| 15531 | fi |
| 15532 | |
| 15533 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15534 | if test -d conf$$.dir; then |
| 15535 | rm -f conf$$.dir/conf$$.file |
| 15536 | else |
| 15537 | rm -f conf$$.dir |
| 15538 | mkdir conf$$.dir |
| 15539 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15540 | echo >conf$$.file |
| 15541 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15542 | as_ln_s='ln -s' |
| 15543 | # ... but there are two gotchas: |
| 15544 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15545 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15546 | # In both cases, we have to default to `cp -p'. |
| 15547 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15548 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15549 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15550 | as_ln_s=ln |
| 15551 | else |
| 15552 | as_ln_s='cp -p' |
| 15553 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15554 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15555 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15556 | |
| 15557 | if mkdir -p . 2>/dev/null; then |
| 15558 | as_mkdir_p=: |
| 15559 | else |
| 15560 | test -d ./-p && rmdir ./-p |
| 15561 | as_mkdir_p=false |
| 15562 | fi |
| 15563 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15564 | if test -x / >/dev/null 2>&1; then |
| 15565 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15566 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15567 | if ls -dL / >/dev/null 2>&1; then |
| 15568 | as_ls_L_option=L |
| 15569 | else |
| 15570 | as_ls_L_option= |
| 15571 | fi |
| 15572 | as_test_x=' |
| 15573 | eval sh -c '\'' |
| 15574 | if test -d "$1"; then |
| 15575 | test -d "$1/."; |
| 15576 | else |
| 15577 | case $1 in |
| 15578 | -*)set "./$1";; |
| 15579 | esac; |
| 15580 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 15581 | ???[sx]*):;;*)false;;esac;fi |
| 15582 | '\'' sh |
| 15583 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15584 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15585 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15586 | |
| 15587 | # Sed expression to map a string onto a valid CPP name. |
| 15588 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15589 | |
| 15590 | # Sed expression to map a string onto a valid variable name. |
| 15591 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15592 | |
| 15593 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15594 | exec 6>&1 |
| 15595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15596 | # Save the log message, to keep $[0] and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15597 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15598 | # values after options handling. |
| 15599 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15600 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15601 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15602 | |
| 15603 | CONFIG_FILES = $CONFIG_FILES |
| 15604 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15605 | CONFIG_LINKS = $CONFIG_LINKS |
| 15606 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15607 | $ $0 $@ |
| 15608 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15609 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15610 | " |
| 15611 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15612 | _ACEOF |
| 15613 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15614 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15615 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15616 | config_files="$ac_config_files" |
| 15617 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15619 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15620 | |
| 15621 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15622 | ac_cs_usage="\ |
| 15623 | \`$as_me' instantiates files from templates according to the |
| 15624 | current configuration. |
| 15625 | |
| 15626 | Usage: $0 [OPTIONS] [FILE]... |
| 15627 | |
| 15628 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15629 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15630 | -q, --quiet do not print progress messages |
| 15631 | -d, --debug don't remove temporary files |
| 15632 | --recheck update $as_me by reconfiguring in the same conditions |
| 15633 | --file=FILE[:TEMPLATE] |
| 15634 | instantiate the configuration file FILE |
| 15635 | |
| 15636 | Configuration files: |
| 15637 | $config_files |
| 15638 | |
| 15639 | Configuration commands: |
| 15640 | $config_commands |
| 15641 | |
| 15642 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15644 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15645 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15646 | ac_cs_version="\\ |
| 15647 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15648 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15649 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15650 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15651 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15652 | This config.status script is free software; the Free Software Foundation |
| 15653 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15654 | |
| 15655 | ac_pwd='$ac_pwd' |
| 15656 | srcdir='$srcdir' |
| 15657 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15658 | _ACEOF |
| 15659 | |
| 15660 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15661 | # If no file are specified by the user, then we need to provide default |
| 15662 | # value. By we need to know if files were specified by the user. |
| 15663 | ac_need_defaults=: |
| 15664 | while test $# != 0 |
| 15665 | do |
| 15666 | case $1 in |
| 15667 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15668 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15669 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15670 | ac_shift=: |
| 15671 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15672 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15673 | ac_option=$1 |
| 15674 | ac_optarg=$2 |
| 15675 | ac_shift=shift |
| 15676 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15677 | esac |
| 15678 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15679 | case $ac_option in |
| 15680 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15681 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15682 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15683 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 15684 | echo "$ac_cs_version"; exit ;; |
| 15685 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15686 | debug=: ;; |
| 15687 | --file | --fil | --fi | --f ) |
| 15688 | $ac_shift |
| 15689 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 15690 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15691 | --he | --h | --help | --hel | -h ) |
| 15692 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15694 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15695 | ac_cs_silent=: ;; |
| 15696 | |
| 15697 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15698 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 15699 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15700 | { (exit 1); exit 1; }; } ;; |
| 15701 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15702 | *) ac_config_targets="$ac_config_targets $1" |
| 15703 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15704 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15705 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15706 | shift |
| 15707 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15708 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15709 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15710 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15711 | if $ac_cs_silent; then |
| 15712 | exec 6>/dev/null |
| 15713 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15714 | fi |
| 15715 | |
| 15716 | _ACEOF |
| 15717 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15718 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15719 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 15720 | CONFIG_SHELL=$SHELL |
| 15721 | export CONFIG_SHELL |
| 15722 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15723 | fi |
| 15724 | |
| 15725 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15726 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15727 | exec 5>>config.log |
| 15728 | { |
| 15729 | echo |
| 15730 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15731 | ## Running $as_me. ## |
| 15732 | _ASBOX |
| 15733 | echo "$ac_log" |
| 15734 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15735 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15736 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15737 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15738 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15739 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15740 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15741 | # 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] | 15742 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15743 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15744 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15745 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 15746 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15747 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 15748 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15749 | _ACEOF |
| 15750 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15751 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15752 | |
| 15753 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15754 | for ac_config_target in $ac_config_targets |
| 15755 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15756 | case $ac_config_target in |
| 15757 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 15758 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 15759 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15760 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 15761 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 15762 | { (exit 1); exit 1; }; };; |
| 15763 | esac |
| 15764 | done |
| 15765 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15766 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15767 | # If the user did not use the arguments to specify the items to instantiate, |
| 15768 | # then the envvar interface is used. Set only those that are not. |
| 15769 | # We use the long form for the default assignment because of an extremely |
| 15770 | # bizarre bug on SunOS 4.1.3. |
| 15771 | if $ac_need_defaults; then |
| 15772 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15773 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15774 | fi |
| 15775 | |
| 15776 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15777 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15778 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15779 | # Hook for its removal unless debugging. |
| 15780 | # Note that there is a small window in which the directory will not be cleaned: |
| 15781 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15782 | $debug || |
| 15783 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15784 | tmp= |
| 15785 | trap 'exit_status=$? |
| 15786 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15787 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15788 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 15789 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15790 | # Create a (secure) tmp directory for tmp files. |
| 15791 | |
| 15792 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15793 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15794 | test -n "$tmp" && test -d "$tmp" |
| 15795 | } || |
| 15796 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15797 | tmp=./conf$$-$RANDOM |
| 15798 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15799 | } || |
| 15800 | { |
| 15801 | echo "$me: cannot create a temporary directory in ." >&2 |
| 15802 | { (exit 1); exit 1; } |
| 15803 | } |
| 15804 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15805 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15806 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15807 | # |
| 15808 | |
| 15809 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 15810 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15811 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15812 | |
| 15813 | _ACEOF |
| 15814 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15815 | # Create sed commands to just substitute file output variables. |
| 15816 | |
| 15817 | # Remaining file output variables are in a fragment that also has non-file |
| 15818 | # output varibles. |
| 15819 | |
| 15820 | |
| 15821 | |
| 15822 | ac_delim='%!_!# ' |
| 15823 | for ac_last_try in false false false false false :; do |
| 15824 | cat >conf$$subs.sed <<_ACEOF |
| 15825 | SHELL!$SHELL$ac_delim |
| 15826 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 15827 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 15828 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 15829 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 15830 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 15831 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 15832 | exec_prefix!$exec_prefix$ac_delim |
| 15833 | prefix!$prefix$ac_delim |
| 15834 | program_transform_name!$program_transform_name$ac_delim |
| 15835 | bindir!$bindir$ac_delim |
| 15836 | sbindir!$sbindir$ac_delim |
| 15837 | libexecdir!$libexecdir$ac_delim |
| 15838 | datarootdir!$datarootdir$ac_delim |
| 15839 | datadir!$datadir$ac_delim |
| 15840 | sysconfdir!$sysconfdir$ac_delim |
| 15841 | sharedstatedir!$sharedstatedir$ac_delim |
| 15842 | localstatedir!$localstatedir$ac_delim |
| 15843 | includedir!$includedir$ac_delim |
| 15844 | oldincludedir!$oldincludedir$ac_delim |
| 15845 | docdir!$docdir$ac_delim |
| 15846 | infodir!$infodir$ac_delim |
| 15847 | htmldir!$htmldir$ac_delim |
| 15848 | dvidir!$dvidir$ac_delim |
| 15849 | pdfdir!$pdfdir$ac_delim |
| 15850 | psdir!$psdir$ac_delim |
| 15851 | libdir!$libdir$ac_delim |
| 15852 | localedir!$localedir$ac_delim |
| 15853 | mandir!$mandir$ac_delim |
| 15854 | DEFS!$DEFS$ac_delim |
| 15855 | ECHO_C!$ECHO_C$ac_delim |
| 15856 | ECHO_N!$ECHO_N$ac_delim |
| 15857 | ECHO_T!$ECHO_T$ac_delim |
| 15858 | LIBS!$LIBS$ac_delim |
| 15859 | build_alias!$build_alias$ac_delim |
| 15860 | host_alias!$host_alias$ac_delim |
| 15861 | target_alias!$target_alias$ac_delim |
| 15862 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 15863 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 15864 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 15865 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 15866 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15867 | build!$build$ac_delim |
| 15868 | build_cpu!$build_cpu$ac_delim |
| 15869 | build_vendor!$build_vendor$ac_delim |
| 15870 | build_os!$build_os$ac_delim |
| 15871 | host!$host$ac_delim |
| 15872 | host_cpu!$host_cpu$ac_delim |
| 15873 | host_vendor!$host_vendor$ac_delim |
| 15874 | host_os!$host_os$ac_delim |
| 15875 | CC!$CC$ac_delim |
| 15876 | CFLAGS!$CFLAGS$ac_delim |
| 15877 | LDFLAGS!$LDFLAGS$ac_delim |
| 15878 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 15879 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 15880 | EXEEXT!$EXEEXT$ac_delim |
| 15881 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15882 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15883 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15884 | GREP!$GREP$ac_delim |
| 15885 | EGREP!$EGREP$ac_delim |
| 15886 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 15887 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 15888 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 15889 | ELF_CMT!$ELF_CMT$ac_delim |
| 15890 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 15891 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 15892 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 15893 | LIB_EXT!$LIB_EXT$ac_delim |
| 15894 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 15895 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15896 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
| 15897 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15898 | _ACEOF |
| 15899 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15900 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15901 | break |
| 15902 | elif $ac_last_try; then |
| 15903 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 15904 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 15905 | { (exit 1); exit 1; }; } |
| 15906 | else |
| 15907 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15908 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15909 | done |
| 15910 | |
| 15911 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 15912 | if test -n "$ac_eof"; then |
| 15913 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 15914 | ac_eof=`expr $ac_eof + 1` |
| 15915 | fi |
| 15916 | |
| 15917 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15918 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 15919 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 15920 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 15921 | r $MCONFIG |
| 15922 | d |
| 15923 | } |
| 15924 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 15925 | r $MAKEFILE_ELF |
| 15926 | d |
| 15927 | } |
| 15928 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 15929 | r $MAKEFILE_BSDLIB |
| 15930 | d |
| 15931 | } |
| 15932 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 15933 | r $MAKEFILE_PROFILE |
| 15934 | d |
| 15935 | } |
| 15936 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 15937 | r $MAKEFILE_CHECKER |
| 15938 | d |
| 15939 | } |
| 15940 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 15941 | r $MAKEFILE_LIBRARY |
| 15942 | d |
| 15943 | } |
| 15944 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 15945 | r $ASM_TYPES_HEADER |
| 15946 | d |
| 15947 | } |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15948 | /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ |
| 15949 | r $PUBLIC_CONFIG_HEADER |
| 15950 | d |
| 15951 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15952 | _ACEOF |
| 15953 | sed ' |
| 15954 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 15955 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 15956 | :n |
| 15957 | t n |
| 15958 | s/'"$ac_delim"'$/,g/; t |
| 15959 | s/$/\\/; p |
| 15960 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 15961 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 15962 | rm -f conf$$subs.sed |
| 15963 | cat >>$CONFIG_STATUS <<_ACEOF |
| 15964 | CEOF$ac_eof |
| 15965 | _ACEOF |
| 15966 | |
| 15967 | |
| 15968 | ac_delim='%!_!# ' |
| 15969 | for ac_last_try in false false false false false :; do |
| 15970 | cat >conf$$subs.sed <<_ACEOF |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 15971 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 15972 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15973 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 15974 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 15975 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 15976 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15977 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 15978 | PACKAGE!$PACKAGE$ac_delim |
| 15979 | VERSION!$VERSION$ac_delim |
| 15980 | SET_MAKE!$SET_MAKE$ac_delim |
| 15981 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 15982 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 15983 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 15984 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 15985 | USE_NLS!$USE_NLS$ac_delim |
| 15986 | MSGFMT!$MSGFMT$ac_delim |
| 15987 | GMSGFMT!$GMSGFMT$ac_delim |
| 15988 | XGETTEXT!$XGETTEXT$ac_delim |
| 15989 | MSGMERGE!$MSGMERGE$ac_delim |
| 15990 | RANLIB!$RANLIB$ac_delim |
| 15991 | ALLOCA!$ALLOCA$ac_delim |
| 15992 | GLIBC21!$GLIBC21$ac_delim |
| 15993 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 15994 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 15995 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 15996 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 15997 | LIBICONV!$LIBICONV$ac_delim |
| 15998 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 15999 | INTLBISON!$INTLBISON$ac_delim |
| 16000 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16001 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16002 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16003 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16004 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16005 | GENCAT!$GENCAT$ac_delim |
| 16006 | INTLOBJS!$INTLOBJS$ac_delim |
| 16007 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16008 | INTLLIBS!$INTLLIBS$ac_delim |
| 16009 | LIBINTL!$LIBINTL$ac_delim |
| 16010 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16011 | POSUB!$POSUB$ac_delim |
| 16012 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16013 | LN!$LN$ac_delim |
| 16014 | LN_S!$LN_S$ac_delim |
| 16015 | MV!$MV$ac_delim |
| 16016 | CP!$CP$ac_delim |
| 16017 | RM!$RM$ac_delim |
| 16018 | CHMOD!$CHMOD$ac_delim |
| 16019 | AWK!$AWK$ac_delim |
| 16020 | SED!$SED$ac_delim |
| 16021 | PERL!$PERL$ac_delim |
| 16022 | LDCONFIG!$LDCONFIG$ac_delim |
| 16023 | AR!$AR$ac_delim |
| 16024 | STRIP!$STRIP$ac_delim |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 16025 | MAKEINFO!$MAKEINFO$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16026 | BUILD_CC!$BUILD_CC$ac_delim |
| 16027 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16028 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16029 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16030 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16031 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16032 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
| 16033 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16034 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16035 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16036 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16037 | root_prefix!$root_prefix$ac_delim |
| 16038 | root_bindir!$root_bindir$ac_delim |
| 16039 | root_sbindir!$root_sbindir$ac_delim |
| 16040 | root_libdir!$root_libdir$ac_delim |
| 16041 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16042 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16043 | SS_DIR!$SS_DIR$ac_delim |
| 16044 | ET_DIR!$ET_DIR$ac_delim |
| 16045 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16046 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16047 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16048 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16049 | LIBOBJS!$LIBOBJS$ac_delim |
| 16050 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16051 | _ACEOF |
| 16052 | |
Theodore Ts'o | 7515a74 | 2008-08-26 23:56:00 -0400 | [diff] [blame] | 16053 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16054 | break |
| 16055 | elif $ac_last_try; then |
| 16056 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16057 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16058 | { (exit 1); exit 1; }; } |
| 16059 | else |
| 16060 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16061 | fi |
| 16062 | done |
| 16063 | |
| 16064 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16065 | if test -n "$ac_eof"; then |
| 16066 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16067 | ac_eof=`expr $ac_eof + 1` |
| 16068 | fi |
| 16069 | |
| 16070 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16071 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16072 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16073 | _ACEOF |
| 16074 | sed ' |
| 16075 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16076 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16077 | :n |
| 16078 | t n |
| 16079 | s/'"$ac_delim"'$/,g/; t |
| 16080 | s/$/\\/; p |
| 16081 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16082 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16083 | rm -f conf$$subs.sed |
| 16084 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16085 | :end |
| 16086 | s/|#_!!_#|//g |
| 16087 | CEOF$ac_eof |
| 16088 | _ACEOF |
| 16089 | |
| 16090 | |
| 16091 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16092 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16093 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16094 | # (actually we leave an empty line to preserve line numbers). |
| 16095 | if test "x$srcdir" = x.; then |
| 16096 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16097 | s/:*\$(srcdir):*/:/ |
| 16098 | s/:*\${srcdir}:*/:/ |
| 16099 | s/:*@srcdir@:*/:/ |
| 16100 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16101 | s/:*$// |
| 16102 | s/^[^=]*=[ ]*$// |
| 16103 | }' |
| 16104 | fi |
| 16105 | |
| 16106 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16107 | fi # test -n "$CONFIG_FILES" |
| 16108 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16109 | |
| 16110 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16111 | do |
| 16112 | case $ac_tag in |
| 16113 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16114 | esac |
| 16115 | case $ac_mode$ac_tag in |
| 16116 | :[FHL]*:*);; |
| 16117 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16118 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16119 | { (exit 1); exit 1; }; };; |
| 16120 | :[FH]-) ac_tag=-:-;; |
| 16121 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16122 | esac |
| 16123 | ac_save_IFS=$IFS |
| 16124 | IFS=: |
| 16125 | set x $ac_tag |
| 16126 | IFS=$ac_save_IFS |
| 16127 | shift |
| 16128 | ac_file=$1 |
| 16129 | shift |
| 16130 | |
| 16131 | case $ac_mode in |
| 16132 | :L) ac_source=$1;; |
| 16133 | :[FH]) |
| 16134 | ac_file_inputs= |
| 16135 | for ac_f |
| 16136 | do |
| 16137 | case $ac_f in |
| 16138 | -) ac_f="$tmp/stdin";; |
| 16139 | *) # Look for the file first in the build tree, then in the source tree |
| 16140 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16141 | # because $ac_f cannot contain `:'. |
| 16142 | test -f "$ac_f" || |
| 16143 | case $ac_f in |
| 16144 | [\\/$]*) false;; |
| 16145 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16146 | esac || |
| 16147 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16148 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16149 | { (exit 1); exit 1; }; };; |
| 16150 | esac |
| 16151 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16152 | done |
| 16153 | |
| 16154 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16155 | # use $as_me), people would be surprised to read: |
| 16156 | # /* config.h. Generated by config.status. */ |
| 16157 | configure_input="Generated from "`IFS=: |
| 16158 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16159 | if test x"$ac_file" != x-; then |
| 16160 | configure_input="$ac_file. $configure_input" |
| 16161 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16162 | echo "$as_me: creating $ac_file" >&6;} |
| 16163 | fi |
| 16164 | |
| 16165 | case $ac_tag in |
| 16166 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16167 | esac |
| 16168 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16169 | esac |
| 16170 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16171 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16172 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16173 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16174 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16175 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16176 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16178 | s//\1/ |
| 16179 | q |
| 16180 | } |
| 16181 | /^X\(\/\/\)[^/].*/{ |
| 16182 | s//\1/ |
| 16183 | q |
| 16184 | } |
| 16185 | /^X\(\/\/\)$/{ |
| 16186 | s//\1/ |
| 16187 | q |
| 16188 | } |
| 16189 | /^X\(\/\).*/{ |
| 16190 | s//\1/ |
| 16191 | q |
| 16192 | } |
| 16193 | s/.*/./; q'` |
| 16194 | { as_dir="$ac_dir" |
| 16195 | case $as_dir in #( |
| 16196 | -*) as_dir=./$as_dir;; |
| 16197 | esac |
| 16198 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16199 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16200 | while :; do |
| 16201 | case $as_dir in #( |
| 16202 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16203 | *) as_qdir=$as_dir;; |
| 16204 | esac |
| 16205 | as_dirs="'$as_qdir' $as_dirs" |
| 16206 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16207 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16208 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16209 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16210 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16211 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16212 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16213 | s//\1/ |
| 16214 | q |
| 16215 | } |
| 16216 | /^X\(\/\/\)[^/].*/{ |
| 16217 | s//\1/ |
| 16218 | q |
| 16219 | } |
| 16220 | /^X\(\/\/\)$/{ |
| 16221 | s//\1/ |
| 16222 | q |
| 16223 | } |
| 16224 | /^X\(\/\).*/{ |
| 16225 | s//\1/ |
| 16226 | q |
| 16227 | } |
| 16228 | s/.*/./; q'` |
| 16229 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16230 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16231 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16232 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16233 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16234 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16235 | ac_builddir=. |
| 16236 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16237 | case "$ac_dir" in |
| 16238 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16239 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16240 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16241 | # A ".." for each directory in $ac_dir_suffix. |
| 16242 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16243 | case $ac_top_builddir_sub in |
| 16244 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16245 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16246 | esac ;; |
| 16247 | esac |
| 16248 | ac_abs_top_builddir=$ac_pwd |
| 16249 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16250 | # for backward compatibility: |
| 16251 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16252 | |
| 16253 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16254 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16255 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16256 | ac_top_srcdir=$ac_top_builddir_sub |
| 16257 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16258 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16259 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16260 | ac_top_srcdir=$srcdir |
| 16261 | ac_abs_top_srcdir=$srcdir ;; |
| 16262 | *) # Relative name. |
| 16263 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16264 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16265 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16266 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16267 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16268 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16269 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16270 | case $ac_mode in |
| 16271 | :F) |
| 16272 | # |
| 16273 | # CONFIG_FILE |
| 16274 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16275 | |
| 16276 | case $INSTALL in |
| 16277 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16278 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16279 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16280 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16281 | |
| 16282 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16283 | # If the template does not know about datarootdir, expand it. |
| 16284 | # FIXME: This hack should be removed a few years after 2.60. |
| 16285 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16286 | |
| 16287 | case `sed -n '/datarootdir/ { |
| 16288 | p |
| 16289 | q |
| 16290 | } |
| 16291 | /@datadir@/p |
| 16292 | /@docdir@/p |
| 16293 | /@infodir@/p |
| 16294 | /@localedir@/p |
| 16295 | /@mandir@/p |
| 16296 | ' $ac_file_inputs` in |
| 16297 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16298 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16299 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16300 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16301 | _ACEOF |
| 16302 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16303 | ac_datarootdir_hack=' |
| 16304 | s&@datadir@&$datadir&g |
| 16305 | s&@docdir@&$docdir&g |
| 16306 | s&@infodir@&$infodir&g |
| 16307 | s&@localedir@&$localedir&g |
| 16308 | s&@mandir@&$mandir&g |
| 16309 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16310 | esac |
| 16311 | _ACEOF |
| 16312 | |
| 16313 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16314 | # Shell code in configure.ac might set extrasub. |
| 16315 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16316 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16317 | sed "$ac_vpsub |
| 16318 | $extrasub |
| 16319 | _ACEOF |
| 16320 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16321 | :t |
| 16322 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16323 | s&@configure_input@&$configure_input&;t t |
| 16324 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16325 | s&@srcdir@&$ac_srcdir&;t t |
| 16326 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16327 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16328 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16329 | s&@builddir@&$ac_builddir&;t t |
| 16330 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16331 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16332 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16333 | $ac_datarootdir_hack |
| 16334 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16335 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16336 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16337 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16338 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16339 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16340 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16341 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16342 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16343 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16344 | rm -f "$tmp/stdin" |
| 16345 | case $ac_file in |
| 16346 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16347 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16348 | esac |
| 16349 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16350 | |
| 16351 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16352 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16353 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16354 | ;; |
| 16355 | esac |
| 16356 | |
| 16357 | |
| 16358 | case $ac_file$ac_mode in |
| 16359 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16360 | for ac_file in $CONFIG_FILES; do |
| 16361 | # Support "outfile[:infile[:infile...]]" |
| 16362 | case "$ac_file" in |
| 16363 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16364 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16365 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16366 | case "$ac_file" in */Makefile.in) |
| 16367 | # Adjust a relative srcdir. |
| 16368 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16369 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16370 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16371 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16372 | # In autoconf-2.50 it is called $srcdir. |
| 16373 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16374 | case "$ac_given_srcdir" in |
| 16375 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16376 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16377 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16378 | esac |
| 16379 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16380 | rm -f "$ac_dir/POTFILES" |
| 16381 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16382 | 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] | 16383 | POMAKEFILEDEPS="POTFILES.in" |
| 16384 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16385 | # on $ac_dir but don't depend on user-specified configuration |
| 16386 | # parameters. |
| 16387 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16388 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16389 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16390 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16391 | fi |
| 16392 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16393 | # Hide the ALL_LINGUAS assigment from automake. |
| 16394 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16395 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16396 | else |
| 16397 | # The set of available languages was given in configure.in. |
| 16398 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16399 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16400 | # Compute POFILES |
| 16401 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16402 | # Compute UPDATEPOFILES |
| 16403 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16404 | # Compute DUMMYPOFILES |
| 16405 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16406 | # Compute GMOFILES |
| 16407 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16408 | case "$ac_given_srcdir" in |
| 16409 | .) srcdirpre= ;; |
| 16410 | *) srcdirpre='$(srcdir)/' ;; |
| 16411 | esac |
| 16412 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16413 | UPDATEPOFILES= |
| 16414 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16415 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16416 | for lang in $ALL_LINGUAS; do |
| 16417 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16418 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 16419 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16420 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16421 | done |
| 16422 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 16423 | # environment variable. |
| 16424 | INST_LINGUAS= |
| 16425 | if test -n "$ALL_LINGUAS"; then |
| 16426 | for presentlang in $ALL_LINGUAS; do |
| 16427 | useit=no |
| 16428 | if test "%UNSET%" != "$LINGUAS"; then |
| 16429 | desiredlanguages="$LINGUAS" |
| 16430 | else |
| 16431 | desiredlanguages="$ALL_LINGUAS" |
| 16432 | fi |
| 16433 | for desiredlang in $desiredlanguages; do |
| 16434 | # Use the presentlang catalog if desiredlang is |
| 16435 | # a. equal to presentlang, or |
| 16436 | # b. a variant of presentlang (because in this case, |
| 16437 | # presentlang can be used as a fallback for messages |
| 16438 | # which are not translated in the desiredlang catalog). |
| 16439 | case "$desiredlang" in |
| 16440 | "$presentlang"*) useit=yes;; |
| 16441 | esac |
| 16442 | done |
| 16443 | if test $useit = yes; then |
| 16444 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 16445 | fi |
| 16446 | done |
| 16447 | fi |
| 16448 | CATALOGS= |
| 16449 | if test -n "$INST_LINGUAS"; then |
| 16450 | for lang in $INST_LINGUAS; do |
| 16451 | CATALOGS="$CATALOGS $lang.gmo" |
| 16452 | done |
| 16453 | fi |
| 16454 | 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] | 16455 | 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] | 16456 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 16457 | if test -f "$f"; then |
| 16458 | case "$f" in |
| 16459 | *.orig | *.bak | *~) ;; |
| 16460 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 16461 | esac |
| 16462 | fi |
| 16463 | done |
| 16464 | fi |
| 16465 | ;; |
| 16466 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16467 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16468 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16469 | esac |
| 16470 | done # for ac_tag |
| 16471 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16472 | |
| 16473 | { (exit 0); exit 0; } |
| 16474 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16475 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16476 | ac_clean_files=$ac_clean_files_save |
| 16477 | |
| 16478 | |
| 16479 | # configure is writing to config.log, and then calls config.status. |
| 16480 | # config.status does its own redirection, appending to config.log. |
| 16481 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16482 | # by configure, so config.status won't be able to write to it; its |
| 16483 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16484 | # effectively closing config.log, so it can be properly (re)opened and |
| 16485 | # appended to by config.status. When coming back to configure, we |
| 16486 | # need to make the FD available again. |
| 16487 | if test "$no_create" != yes; then |
| 16488 | ac_cs_success=: |
| 16489 | ac_config_status_args= |
| 16490 | test "$silent" = yes && |
| 16491 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16492 | exec 5>/dev/null |
| 16493 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16494 | exec 5>>config.log |
| 16495 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16496 | # would make configure fail if this is the last instruction. |
| 16497 | $ac_cs_success || { (exit 1); exit 1; } |
| 16498 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16499 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 16500 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |
| 16501 | |