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 | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 687 | LDFLAG_DYNAMIC |
| 688 | PRIVATE_LIBS_CMT |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 689 | TEST_IO_CMT |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 690 | PKG_CONFIG |
| 691 | LIBBLKID |
| 692 | DEPLIBBLKID |
| 693 | STATIC_LIBBLKID |
| 694 | DEPSTATIC_LIBBLKID |
| 695 | PROFILED_LIBBLKID |
| 696 | DEPPROFILED_LIBBLKID |
| 697 | BLKID_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 698 | DEBUGFS_CMT |
| 699 | IMAGER_CMT |
| 700 | RESIZER_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 701 | FSCK_PROG |
| 702 | FSCK_MAN |
| 703 | E2INITRD_PROG |
| 704 | E2INITRD_MAN |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 705 | UUIDD_CMT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 706 | GETTEXT_PACKAGE |
| 707 | PACKAGE |
| 708 | VERSION |
| 709 | SET_MAKE |
| 710 | INSTALL_PROGRAM |
| 711 | INSTALL_SCRIPT |
| 712 | INSTALL_DATA |
| 713 | MKINSTALLDIRS |
| 714 | USE_NLS |
| 715 | MSGFMT |
| 716 | GMSGFMT |
| 717 | XGETTEXT |
| 718 | MSGMERGE |
| 719 | RANLIB |
| 720 | ALLOCA |
| 721 | GLIBC21 |
| 722 | HAVE_POSIX_PRINTF |
| 723 | HAVE_ASPRINTF |
| 724 | HAVE_SNPRINTF |
| 725 | HAVE_WPRINTF |
| 726 | LIBICONV |
| 727 | LTLIBICONV |
| 728 | INTLBISON |
| 729 | BUILD_INCLUDED_LIBINTL |
| 730 | USE_INCLUDED_LIBINTL |
| 731 | CATOBJEXT |
| 732 | DATADIRNAME |
| 733 | INSTOBJEXT |
| 734 | GENCAT |
| 735 | INTLOBJS |
| 736 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 737 | INTLLIBS |
| 738 | LIBINTL |
| 739 | LTLIBINTL |
| 740 | POSUB |
| 741 | BINARY_TYPE |
| 742 | LN |
| 743 | LN_S |
| 744 | MV |
| 745 | CP |
| 746 | RM |
| 747 | CHMOD |
| 748 | AWK |
| 749 | SED |
| 750 | PERL |
| 751 | LDCONFIG |
| 752 | AR |
| 753 | STRIP |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 754 | MAKEINFO |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 755 | BUILD_CC |
| 756 | SIZEOF_SHORT |
| 757 | SIZEOF_INT |
| 758 | SIZEOF_LONG |
| 759 | SIZEOF_LONG_LONG |
| 760 | SOCKET_LIB |
| 761 | DLOPEN_LIB |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 762 | SEM_INIT_LIB |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 763 | UNI_DIFF_OPTS |
| 764 | LINUX_CMT |
| 765 | CYGWIN_CMT |
| 766 | UNIX_CMT |
| 767 | root_prefix |
| 768 | root_bindir |
| 769 | root_sbindir |
| 770 | root_libdir |
| 771 | root_sysconfdir |
| 772 | LDFLAG_STATIC |
| 773 | SS_DIR |
| 774 | ET_DIR |
| 775 | DO_TEST_SUITE |
| 776 | INTL_FLAGS |
| 777 | BUILD_CFLAGS |
| 778 | BUILD_LDFLAGS |
| 779 | LIBOBJS |
| 780 | LTLIBOBJS' |
| 781 | ac_subst_files='MCONFIG |
| 782 | MAKEFILE_ELF |
| 783 | MAKEFILE_BSDLIB |
| 784 | MAKEFILE_PROFILE |
| 785 | MAKEFILE_CHECKER |
| 786 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 787 | ASM_TYPES_HEADER |
| 788 | PUBLIC_CONFIG_HEADER' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 789 | ac_precious_vars='build_alias |
| 790 | host_alias |
| 791 | target_alias |
| 792 | CC |
| 793 | CFLAGS |
| 794 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 795 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 796 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 797 | CPP |
| 798 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 799 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 800 | |
| 801 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 802 | ac_init_help= |
| 803 | ac_init_version=false |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 804 | # The variables have the same names as the options, with |
| 805 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 806 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 807 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 808 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 809 | no_recursion= |
| 810 | prefix=NONE |
| 811 | program_prefix=NONE |
| 812 | program_suffix=NONE |
| 813 | program_transform_name=s,x,x, |
| 814 | silent= |
| 815 | site= |
| 816 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 817 | verbose= |
| 818 | x_includes=NONE |
| 819 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 820 | |
| 821 | # Installation directory options. |
| 822 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 823 | # and all the variables that are supposed to be based on exec_prefix |
| 824 | # by default will actually change. |
| 825 | # 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] | 826 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 827 | bindir='${exec_prefix}/bin' |
| 828 | sbindir='${exec_prefix}/sbin' |
| 829 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 830 | datarootdir='${prefix}/share' |
| 831 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 832 | sysconfdir='${prefix}/etc' |
| 833 | sharedstatedir='${prefix}/com' |
| 834 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 835 | includedir='${prefix}/include' |
| 836 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 837 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 838 | infodir='${datarootdir}/info' |
| 839 | htmldir='${docdir}' |
| 840 | dvidir='${docdir}' |
| 841 | pdfdir='${docdir}' |
| 842 | psdir='${docdir}' |
| 843 | libdir='${exec_prefix}/lib' |
| 844 | localedir='${datarootdir}/locale' |
| 845 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 846 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 847 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 848 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 849 | for ac_option |
| 850 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 851 | # If the previous option needs an argument, assign it. |
| 852 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 853 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 854 | ac_prev= |
| 855 | continue |
| 856 | fi |
| 857 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 858 | case $ac_option in |
| 859 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 860 | *) ac_optarg=yes ;; |
| 861 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 862 | |
| 863 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 864 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 865 | case $ac_dashdash$ac_option in |
| 866 | --) |
| 867 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 868 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 869 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 870 | ac_prev=bindir ;; |
| 871 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 872 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 873 | |
| 874 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 875 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 876 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 877 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 878 | |
| 879 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 880 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 881 | ac_prev=cache_file ;; |
| 882 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 883 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 884 | cache_file=$ac_optarg ;; |
| 885 | |
| 886 | --config-cache | -C) |
| 887 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 888 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 889 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 890 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 891 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 892 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 893 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 894 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 895 | | --dataroo | --dataro | --datar) |
| 896 | ac_prev=datarootdir ;; |
| 897 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 898 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 899 | datarootdir=$ac_optarg ;; |
| 900 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 901 | -disable-* | --disable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 902 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 903 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 904 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 905 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 906 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 907 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 908 | eval enable_$ac_feature=no ;; |
| 909 | |
| 910 | -docdir | --docdir | --docdi | --doc | --do) |
| 911 | ac_prev=docdir ;; |
| 912 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 913 | docdir=$ac_optarg ;; |
| 914 | |
| 915 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 916 | ac_prev=dvidir ;; |
| 917 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 918 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | |
| 920 | -enable-* | --enable-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 921 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 922 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 923 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 924 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 925 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 926 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 927 | eval enable_$ac_feature=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 928 | |
| 929 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 930 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 931 | | --exec | --exe | --ex) |
| 932 | ac_prev=exec_prefix ;; |
| 933 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 934 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 935 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 936 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 937 | |
| 938 | -gas | --gas | --ga | --g) |
| 939 | # Obsolete; use --with-gas. |
| 940 | with_gas=yes ;; |
| 941 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 942 | -help | --help | --hel | --he | -h) |
| 943 | ac_init_help=long ;; |
| 944 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 945 | ac_init_help=recursive ;; |
| 946 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 947 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 948 | |
| 949 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 950 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 951 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 952 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 953 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 954 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 955 | ac_prev=htmldir ;; |
| 956 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 957 | | --ht=*) |
| 958 | htmldir=$ac_optarg ;; |
| 959 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 960 | -includedir | --includedir | --includedi | --included | --include \ |
| 961 | | --includ | --inclu | --incl | --inc) |
| 962 | ac_prev=includedir ;; |
| 963 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 964 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 965 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 966 | |
| 967 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 968 | ac_prev=infodir ;; |
| 969 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 970 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 971 | |
| 972 | -libdir | --libdir | --libdi | --libd) |
| 973 | ac_prev=libdir ;; |
| 974 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 975 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 976 | |
| 977 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 978 | | --libexe | --libex | --libe) |
| 979 | ac_prev=libexecdir ;; |
| 980 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 981 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 982 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 983 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 984 | -localedir | --localedir | --localedi | --localed | --locale) |
| 985 | ac_prev=localedir ;; |
| 986 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 987 | localedir=$ac_optarg ;; |
| 988 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 989 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 990 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 991 | ac_prev=localstatedir ;; |
| 992 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 993 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 994 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 995 | |
| 996 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 997 | ac_prev=mandir ;; |
| 998 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 999 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1000 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1001 | -nfp | --nfp | --nf) |
| 1002 | # Obsolete; use --without-fp. |
| 1003 | with_fp=no ;; |
| 1004 | |
| 1005 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1006 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1007 | no_create=yes ;; |
| 1008 | |
| 1009 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1010 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1011 | no_recursion=yes ;; |
| 1012 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1013 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1014 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1015 | | --oldin | --oldi | --old | --ol | --o) |
| 1016 | ac_prev=oldincludedir ;; |
| 1017 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1018 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1019 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1020 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1021 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1022 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1023 | ac_prev=prefix ;; |
| 1024 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1025 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1026 | |
| 1027 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1028 | | --program-pre | --program-pr | --program-p) |
| 1029 | ac_prev=program_prefix ;; |
| 1030 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1031 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1032 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1033 | |
| 1034 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1035 | | --program-suf | --program-su | --program-s) |
| 1036 | ac_prev=program_suffix ;; |
| 1037 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1038 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1039 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1040 | |
| 1041 | -program-transform-name | --program-transform-name \ |
| 1042 | | --program-transform-nam | --program-transform-na \ |
| 1043 | | --program-transform-n | --program-transform- \ |
| 1044 | | --program-transform | --program-transfor \ |
| 1045 | | --program-transfo | --program-transf \ |
| 1046 | | --program-trans | --program-tran \ |
| 1047 | | --progr-tra | --program-tr | --program-t) |
| 1048 | ac_prev=program_transform_name ;; |
| 1049 | -program-transform-name=* | --program-transform-name=* \ |
| 1050 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1051 | | --program-transform-n=* | --program-transform-=* \ |
| 1052 | | --program-transform=* | --program-transfor=* \ |
| 1053 | | --program-transfo=* | --program-transf=* \ |
| 1054 | | --program-trans=* | --program-tran=* \ |
| 1055 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1056 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1057 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1058 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1059 | ac_prev=pdfdir ;; |
| 1060 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1061 | pdfdir=$ac_optarg ;; |
| 1062 | |
| 1063 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1064 | ac_prev=psdir ;; |
| 1065 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1066 | psdir=$ac_optarg ;; |
| 1067 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1068 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1069 | | -silent | --silent | --silen | --sile | --sil) |
| 1070 | silent=yes ;; |
| 1071 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1072 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1073 | ac_prev=sbindir ;; |
| 1074 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1075 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1076 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1077 | |
| 1078 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1079 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1080 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1081 | | --sha | --sh) |
| 1082 | ac_prev=sharedstatedir ;; |
| 1083 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1084 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1085 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1086 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1088 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1089 | -site | --site | --sit) |
| 1090 | ac_prev=site ;; |
| 1091 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1092 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1093 | |
| 1094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1095 | ac_prev=srcdir ;; |
| 1096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1097 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1098 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1099 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1100 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1101 | ac_prev=sysconfdir ;; |
| 1102 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1103 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1104 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1105 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1106 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1107 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1108 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1109 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1110 | |
| 1111 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1112 | verbose=yes ;; |
| 1113 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1114 | -version | --version | --versio | --versi | --vers | -V) |
| 1115 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1116 | |
| 1117 | -with-* | --with-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1118 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1119 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1120 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1121 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1122 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1123 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1124 | eval with_$ac_package=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1125 | |
| 1126 | -without-* | --without-*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1127 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1128 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1129 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1130 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 1131 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1132 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1133 | eval with_$ac_package=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1134 | |
| 1135 | --x) |
| 1136 | # Obsolete; use --with-x. |
| 1137 | with_x=yes ;; |
| 1138 | |
| 1139 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1140 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1141 | ac_prev=x_includes ;; |
| 1142 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1143 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1144 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1145 | |
| 1146 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1147 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1148 | ac_prev=x_libraries ;; |
| 1149 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1150 | | --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] | 1151 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1152 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1153 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 1154 | Try \`$0 --help' for more information." >&2 |
| 1155 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1156 | ;; |
| 1157 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1158 | *=*) |
| 1159 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1160 | # Reject names that are not valid shell variable names. |
| 1161 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 1162 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 1163 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1164 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1165 | export $ac_envvar ;; |
| 1166 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1167 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1168 | # FIXME: should be removed in autoconf 3.0. |
| 1169 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1170 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1171 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1172 | : ${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] | 1173 | ;; |
| 1174 | |
| 1175 | esac |
| 1176 | done |
| 1177 | |
| 1178 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1179 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1180 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 1181 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1182 | fi |
| 1183 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1184 | # Be sure to have absolute directory names. |
| 1185 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1186 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1187 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1188 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1189 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1190 | eval ac_val=\$$ac_var |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1191 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1192 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1193 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1194 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1195 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 1196 | { (exit 1); exit 1; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1197 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1198 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1199 | # There might be people who depend on the old broken behavior: `$host' |
| 1200 | # used to hold the argument of --host etc. |
| 1201 | # FIXME: To remove some day. |
| 1202 | build=$build_alias |
| 1203 | host=$host_alias |
| 1204 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1205 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1206 | # FIXME: To remove some day. |
| 1207 | if test "x$host_alias" != x; then |
| 1208 | if test "x$build_alias" = x; then |
| 1209 | cross_compiling=maybe |
| 1210 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1211 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1212 | elif test "x$build_alias" != "x$host_alias"; then |
| 1213 | cross_compiling=yes |
| 1214 | fi |
| 1215 | fi |
| 1216 | |
| 1217 | ac_tool_prefix= |
| 1218 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1219 | |
| 1220 | test "$silent" = yes && exec 6>/dev/null |
| 1221 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1222 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1223 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1224 | ac_ls_di=`ls -di .` && |
| 1225 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1226 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
| 1227 | { (exit 1); exit 1; }; } |
| 1228 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1229 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
| 1230 | { (exit 1); exit 1; }; } |
| 1231 | |
| 1232 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1233 | # Find the source files, if location was not specified. |
| 1234 | if test -z "$srcdir"; then |
| 1235 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1236 | # Try the directory containing this script, then the parent directory. |
| 1237 | ac_confdir=`$as_dirname -- "$0" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1238 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1239 | X"$0" : 'X\(//\)[^/]' \| \ |
| 1240 | X"$0" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1241 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1242 | echo X"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1243 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1244 | s//\1/ |
| 1245 | q |
| 1246 | } |
| 1247 | /^X\(\/\/\)[^/].*/{ |
| 1248 | s//\1/ |
| 1249 | q |
| 1250 | } |
| 1251 | /^X\(\/\/\)$/{ |
| 1252 | s//\1/ |
| 1253 | q |
| 1254 | } |
| 1255 | /^X\(\/\).*/{ |
| 1256 | s//\1/ |
| 1257 | q |
| 1258 | } |
| 1259 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1260 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1262 | srcdir=.. |
| 1263 | fi |
| 1264 | else |
| 1265 | ac_srcdir_defaulted=no |
| 1266 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1267 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1268 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1269 | { 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] | 1270 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1271 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1272 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1273 | ac_abs_confdir=`( |
| 1274 | 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] | 1275 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1276 | pwd)` |
| 1277 | # When building in place, set srcdir=. |
| 1278 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1279 | srcdir=. |
| 1280 | fi |
| 1281 | # Remove unnecessary trailing slashes from srcdir. |
| 1282 | # Double slashes in file names in object file debugging info |
| 1283 | # mess up M-x gdb in Emacs. |
| 1284 | case $srcdir in |
| 1285 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1286 | esac |
| 1287 | for ac_var in $ac_precious_vars; do |
| 1288 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1289 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1290 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1291 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1292 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1293 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1294 | # |
| 1295 | # Report the --help message. |
| 1296 | # |
| 1297 | if test "$ac_init_help" = "long"; then |
| 1298 | # Omit some internal or obsolete options to make the list less imposing. |
| 1299 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1300 | cat <<_ACEOF |
| 1301 | \`configure' configures this package to adapt to many kinds of systems. |
| 1302 | |
| 1303 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1304 | |
| 1305 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1306 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1307 | |
| 1308 | Defaults for the options are specified in brackets. |
| 1309 | |
| 1310 | Configuration: |
| 1311 | -h, --help display this help and exit |
| 1312 | --help=short display options specific to this package |
| 1313 | --help=recursive display the short help of all the included packages |
| 1314 | -V, --version display version information and exit |
| 1315 | -q, --quiet, --silent do not print \`checking...' messages |
| 1316 | --cache-file=FILE cache test results in FILE [disabled] |
| 1317 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1318 | -n, --no-create do not create output files |
| 1319 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1321 | Installation directories: |
| 1322 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1323 | [$ac_default_prefix] |
| 1324 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1325 | [PREFIX] |
| 1326 | |
| 1327 | By default, \`make install' will install all the files in |
| 1328 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1329 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1330 | for instance \`--prefix=\$HOME'. |
| 1331 | |
| 1332 | For better control, use the options below. |
| 1333 | |
| 1334 | Fine tuning of the installation directories: |
| 1335 | --bindir=DIR user executables [EPREFIX/bin] |
| 1336 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1337 | --libexecdir=DIR program executables [EPREFIX/libexec] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1338 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1339 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1340 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1341 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1342 | --includedir=DIR C header files [PREFIX/include] |
| 1343 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1344 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1345 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1346 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1347 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1348 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1349 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1350 | --htmldir=DIR html documentation [DOCDIR] |
| 1351 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1352 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1353 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1354 | _ACEOF |
| 1355 | |
| 1356 | cat <<\_ACEOF |
| 1357 | |
| 1358 | System types: |
| 1359 | --build=BUILD configure for building on BUILD [guessed] |
| 1360 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1361 | _ACEOF |
| 1362 | fi |
| 1363 | |
| 1364 | if test -n "$ac_init_help"; then |
| 1365 | |
| 1366 | cat <<\_ACEOF |
| 1367 | |
| 1368 | Optional Features: |
| 1369 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1370 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1371 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1372 | --enable-compression enable EXPERIMENTAL compression support |
| 1373 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1374 | --enable-elf-shlibs select ELF shared libraries |
| 1375 | --enable-bsd-shlibs select BSD shared libraries |
| 1376 | --enable-profile build profiling libraries |
| 1377 | --enable-checker build checker libraries |
| 1378 | --enable-jbd-debug enable journal debugging |
| 1379 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1380 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1381 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1382 | --disable-debugfs disable support of debugfs program |
| 1383 | --disable-imager disable support of e2image program |
| 1384 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1385 | --enable-fsck build fsck wrapper program |
| 1386 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1387 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1388 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1389 | --disable-nls do not use Native Language Support |
| 1390 | --disable-rpath do not hardcode runtime library paths |
| 1391 | |
| 1392 | Optional Packages: |
| 1393 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1394 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1395 | --with-diet-libc use diet libc |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1396 | --with-cc=COMPILER select compiler to use |
| 1397 | --with-linker=LINKER select linker to use |
| 1398 | --with-ccopts=CCOPTS select compiler command line options |
| 1399 | --with-ldopts=LDOPTS select linker command line options |
| 1400 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1401 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1402 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1403 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1404 | --with-included-gettext use the GNU gettext library included here |
| 1405 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1406 | --without-libintl-prefix don't search for libintl in includedir and libdir |
| 1407 | |
| 1408 | Some influential environment variables: |
| 1409 | CC C compiler command |
| 1410 | CFLAGS C compiler flags |
| 1411 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1412 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1413 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1414 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
| 1415 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1416 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1417 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1418 | |
| 1419 | Use these variables to override the choices made by `configure' or to help |
| 1420 | it to find libraries and programs with nonstandard names/locations. |
| 1421 | |
| 1422 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1423 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1424 | fi |
| 1425 | |
| 1426 | if test "$ac_init_help" = "recursive"; then |
| 1427 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1428 | 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] | 1429 | test -d "$ac_dir" || continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1430 | ac_builddir=. |
| 1431 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1432 | case "$ac_dir" in |
| 1433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1434 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1435 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1436 | # A ".." for each directory in $ac_dir_suffix. |
| 1437 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 1438 | case $ac_top_builddir_sub in |
| 1439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1441 | esac ;; |
| 1442 | esac |
| 1443 | ac_abs_top_builddir=$ac_pwd |
| 1444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1445 | # for backward compatibility: |
| 1446 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1447 | |
| 1448 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1449 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1450 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1451 | ac_top_srcdir=$ac_top_builddir_sub |
| 1452 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1453 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1454 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1455 | ac_top_srcdir=$srcdir |
| 1456 | ac_abs_top_srcdir=$srcdir ;; |
| 1457 | *) # Relative name. |
| 1458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1459 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1461 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1463 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1464 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1465 | # Check for guested configure. |
| 1466 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1467 | echo && |
| 1468 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1469 | elif test -f "$ac_srcdir/configure"; then |
| 1470 | echo && |
| 1471 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1472 | else |
| 1473 | 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] | 1474 | fi || ac_status=$? |
| 1475 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1476 | done |
| 1477 | fi |
| 1478 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1479 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1480 | if $ac_init_version; then |
| 1481 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1482 | configure |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1483 | generated by GNU Autoconf 2.61 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1484 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1485 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 1486 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1487 | This configure script is free software; the Free Software Foundation |
| 1488 | gives unlimited permission to copy, distribute and modify it. |
| 1489 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1490 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1491 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1492 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1493 | This file contains any messages produced by compilers while |
| 1494 | running configure, to aid debugging if configure makes a mistake. |
| 1495 | |
| 1496 | It was created by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1497 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1498 | |
| 1499 | $ $0 $@ |
| 1500 | |
| 1501 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1502 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1503 | { |
| 1504 | cat <<_ASUNAME |
| 1505 | ## --------- ## |
| 1506 | ## Platform. ## |
| 1507 | ## --------- ## |
| 1508 | |
| 1509 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1510 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1511 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1512 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1513 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1514 | |
| 1515 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1516 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1517 | |
| 1518 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1519 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1520 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1521 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1522 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1523 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1524 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1525 | |
| 1526 | _ASUNAME |
| 1527 | |
| 1528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1529 | for as_dir in $PATH |
| 1530 | do |
| 1531 | IFS=$as_save_IFS |
| 1532 | test -z "$as_dir" && as_dir=. |
| 1533 | echo "PATH: $as_dir" |
| 1534 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1535 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1536 | |
| 1537 | } >&5 |
| 1538 | |
| 1539 | cat >&5 <<_ACEOF |
| 1540 | |
| 1541 | |
| 1542 | ## ----------- ## |
| 1543 | ## Core tests. ## |
| 1544 | ## ----------- ## |
| 1545 | |
| 1546 | _ACEOF |
| 1547 | |
| 1548 | |
| 1549 | # Keep a trace of the command line. |
| 1550 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1551 | # Strip out --silent because we don't want to record it for future runs. |
| 1552 | # Also quote any args containing shell meta-characters. |
| 1553 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1554 | ac_configure_args= |
| 1555 | ac_configure_args0= |
| 1556 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1557 | ac_must_keep_next=false |
| 1558 | for ac_pass in 1 2 |
| 1559 | do |
| 1560 | for ac_arg |
| 1561 | do |
| 1562 | case $ac_arg in |
| 1563 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1564 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1565 | | -silent | --silent | --silen | --sile | --sil) |
| 1566 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1567 | *\'*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1569 | esac |
| 1570 | case $ac_pass in |
| 1571 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1572 | 2) |
| 1573 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1574 | if test $ac_must_keep_next = true; then |
| 1575 | ac_must_keep_next=false # Got value, back to normal. |
| 1576 | else |
| 1577 | case $ac_arg in |
| 1578 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1579 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1580 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1581 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1582 | case "$ac_configure_args0 " in |
| 1583 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1584 | esac |
| 1585 | ;; |
| 1586 | -* ) ac_must_keep_next=true ;; |
| 1587 | esac |
| 1588 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1589 | ac_configure_args="$ac_configure_args '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1590 | ;; |
| 1591 | esac |
| 1592 | done |
| 1593 | done |
| 1594 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1595 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1596 | |
| 1597 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1598 | # config.log. We remove comments because anyway the quotes in there |
| 1599 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1600 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1601 | # 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] | 1602 | trap 'exit_status=$? |
| 1603 | # Save into config.log some information that might help in debugging. |
| 1604 | { |
| 1605 | echo |
| 1606 | |
| 1607 | cat <<\_ASBOX |
| 1608 | ## ---------------- ## |
| 1609 | ## Cache variables. ## |
| 1610 | ## ---------------- ## |
| 1611 | _ASBOX |
| 1612 | echo |
| 1613 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1614 | ( |
| 1615 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1616 | eval ac_val=\$$ac_var |
| 1617 | case $ac_val in #( |
| 1618 | *${as_nl}*) |
| 1619 | case $ac_var in #( |
| 1620 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 1621 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 1622 | esac |
| 1623 | case $ac_var in #( |
| 1624 | _ | IFS | as_nl) ;; #( |
| 1625 | *) $as_unset $ac_var ;; |
| 1626 | esac ;; |
| 1627 | esac |
| 1628 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1629 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1630 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1631 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1632 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1633 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1634 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1635 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1636 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1637 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1638 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1639 | esac | |
| 1640 | sort |
| 1641 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1642 | echo |
| 1643 | |
| 1644 | cat <<\_ASBOX |
| 1645 | ## ----------------- ## |
| 1646 | ## Output variables. ## |
| 1647 | ## ----------------- ## |
| 1648 | _ASBOX |
| 1649 | echo |
| 1650 | for ac_var in $ac_subst_vars |
| 1651 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1652 | eval ac_val=\$$ac_var |
| 1653 | case $ac_val in |
| 1654 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1655 | esac |
| 1656 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1657 | done | sort |
| 1658 | echo |
| 1659 | |
| 1660 | if test -n "$ac_subst_files"; then |
| 1661 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1662 | ## ------------------- ## |
| 1663 | ## File substitutions. ## |
| 1664 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1665 | _ASBOX |
| 1666 | echo |
| 1667 | for ac_var in $ac_subst_files |
| 1668 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1669 | eval ac_val=\$$ac_var |
| 1670 | case $ac_val in |
| 1671 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1672 | esac |
| 1673 | echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1674 | done | sort |
| 1675 | echo |
| 1676 | fi |
| 1677 | |
| 1678 | if test -s confdefs.h; then |
| 1679 | cat <<\_ASBOX |
| 1680 | ## ----------- ## |
| 1681 | ## confdefs.h. ## |
| 1682 | ## ----------- ## |
| 1683 | _ASBOX |
| 1684 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1685 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1686 | echo |
| 1687 | fi |
| 1688 | test "$ac_signal" != 0 && |
| 1689 | echo "$as_me: caught signal $ac_signal" |
| 1690 | echo "$as_me: exit $exit_status" |
| 1691 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1692 | rm -f core *.core core.conftest.* && |
| 1693 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1694 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1695 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1696 | for ac_signal in 1 2 13 15; do |
| 1697 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1698 | done |
| 1699 | ac_signal=0 |
| 1700 | |
| 1701 | # 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] | 1702 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1703 | |
| 1704 | # Predefined preprocessor variables. |
| 1705 | |
| 1706 | cat >>confdefs.h <<_ACEOF |
| 1707 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1708 | _ACEOF |
| 1709 | |
| 1710 | |
| 1711 | cat >>confdefs.h <<_ACEOF |
| 1712 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1713 | _ACEOF |
| 1714 | |
| 1715 | |
| 1716 | cat >>confdefs.h <<_ACEOF |
| 1717 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1718 | _ACEOF |
| 1719 | |
| 1720 | |
| 1721 | cat >>confdefs.h <<_ACEOF |
| 1722 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1723 | _ACEOF |
| 1724 | |
| 1725 | |
| 1726 | cat >>confdefs.h <<_ACEOF |
| 1727 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1728 | _ACEOF |
| 1729 | |
| 1730 | |
| 1731 | # 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] | 1732 | # Prefer explicitly selected file to automatically selected ones. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1733 | if test -n "$CONFIG_SITE"; then |
| 1734 | set x "$CONFIG_SITE" |
| 1735 | elif test "x$prefix" != xNONE; then |
| 1736 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
| 1737 | else |
| 1738 | set x "$ac_default_prefix/share/config.site" \ |
| 1739 | "$ac_default_prefix/etc/config.site" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1740 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1741 | shift |
| 1742 | for ac_site_file |
| 1743 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1744 | if test -r "$ac_site_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1745 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1746 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1747 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1748 | . "$ac_site_file" |
| 1749 | fi |
| 1750 | done |
| 1751 | |
| 1752 | if test -r "$cache_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1753 | # Some versions of bash will fail to source /dev/null (special |
| 1754 | # files actually), so we avoid doing that. |
| 1755 | if test -f "$cache_file"; then |
| 1756 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1757 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1758 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1759 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1760 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1761 | esac |
| 1762 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1763 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1764 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1765 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1766 | >$cache_file |
| 1767 | fi |
| 1768 | |
| 1769 | # Check that the precious variables saved in the cache have kept the same |
| 1770 | # value. |
| 1771 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1772 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1773 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1774 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1775 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1776 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1777 | case $ac_old_set,$ac_new_set in |
| 1778 | set,) |
| 1779 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1780 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1781 | ac_cache_corrupted=: ;; |
| 1782 | ,set) |
| 1783 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1784 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1785 | ac_cache_corrupted=: ;; |
| 1786 | ,);; |
| 1787 | *) |
| 1788 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1789 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1790 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1791 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1792 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1793 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1794 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1795 | ac_cache_corrupted=: |
| 1796 | fi;; |
| 1797 | esac |
| 1798 | # Pass precious variables to config.status. |
| 1799 | if test "$ac_new_set" = set; then |
| 1800 | case $ac_new_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1801 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1802 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1803 | esac |
| 1804 | case " $ac_configure_args " in |
| 1805 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1806 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1807 | esac |
| 1808 | fi |
| 1809 | done |
| 1810 | if $ac_cache_corrupted; then |
| 1811 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1812 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1813 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1814 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1815 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1816 | fi |
| 1817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1818 | |
| 1819 | |
| 1820 | |
| 1821 | |
| 1822 | |
| 1823 | |
| 1824 | |
| 1825 | |
| 1826 | |
| 1827 | |
| 1828 | |
| 1829 | |
| 1830 | |
| 1831 | |
| 1832 | |
| 1833 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1834 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1835 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1836 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1837 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1838 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1839 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1840 | |
| 1841 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1842 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1843 | for ac_dir in config "$srcdir"/config; do |
| 1844 | if test -f "$ac_dir/install-sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1845 | ac_aux_dir=$ac_dir |
| 1846 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1847 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1848 | elif test -f "$ac_dir/install.sh"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1849 | ac_aux_dir=$ac_dir |
| 1850 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1851 | break |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1852 | elif test -f "$ac_dir/shtool"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1853 | ac_aux_dir=$ac_dir |
| 1854 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1855 | break |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1856 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1857 | done |
| 1858 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1859 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 |
| 1860 | 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] | 1861 | { (exit 1); exit 1; }; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1862 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1863 | |
| 1864 | # These three variables are undocumented and unsupported, |
| 1865 | # and are intended to be withdrawn in a future Autoconf release. |
| 1866 | # They can cause serious problems if a builder's source tree is in a directory |
| 1867 | # whose full name contains unusual characters. |
| 1868 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1869 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1870 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1871 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1872 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1873 | MCONFIG=./MCONFIG |
| 1874 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1875 | BINARY_TYPE=bin |
| 1876 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 1877 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 1878 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 1879 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 1880 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1881 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 1882 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 1883 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 1884 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 1885 | E2FSPROGS_YEAR=$YEAR |
| 1886 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1887 | E2FSPROGS_YEAR=19$YEAR |
| 1888 | else |
| 1889 | E2FSPROGS_YEAR=20$YEAR |
| 1890 | fi |
| 1891 | |
| 1892 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1893 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 1894 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 1895 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 1896 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 1897 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 1898 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 1899 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 1900 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 1901 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 1902 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 1903 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 1904 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1905 | *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5 |
| 1906 | echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1907 | esac |
| 1908 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1909 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 1910 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1911 | |
| 1912 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 1913 | |
| 1914 | case $E2FSPROGS_VERSION in |
| 1915 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 1916 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1917 | ;; |
| 1918 | *) |
| 1919 | E2FSPROGS_PKGVER="$base_ver" |
| 1920 | ;; |
| 1921 | esac |
| 1922 | |
| 1923 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 1924 | { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
| 1925 | echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
| 1926 | { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
| 1927 | echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1928 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1929 | |
| 1930 | |
| 1931 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 1932 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1933 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1934 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 1935 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
| 1936 | 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] | 1937 | { (exit 1); exit 1; }; } |
| 1938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1939 | { echo "$as_me:$LINENO: checking build system type" >&5 |
| 1940 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1941 | if test "${ac_cv_build+set}" = set; then |
| 1942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1943 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1944 | ac_build_alias=$build_alias |
| 1945 | test "x$ac_build_alias" = x && |
| 1946 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 1947 | test "x$ac_build_alias" = x && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1948 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1949 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1950 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1951 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 1952 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
| 1953 | 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] | 1954 | { (exit 1); exit 1; }; } |
| 1955 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1956 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1957 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1958 | echo "${ECHO_T}$ac_cv_build" >&6; } |
| 1959 | case $ac_cv_build in |
| 1960 | *-*-*) ;; |
| 1961 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
| 1962 | echo "$as_me: error: invalid value of canonical build" >&2;} |
| 1963 | { (exit 1); exit 1; }; };; |
| 1964 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1965 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1966 | ac_save_IFS=$IFS; IFS='-' |
| 1967 | set x $ac_cv_build |
| 1968 | shift |
| 1969 | build_cpu=$1 |
| 1970 | build_vendor=$2 |
| 1971 | shift; shift |
| 1972 | # Remember, the first character of IFS is used to create $*, |
| 1973 | # except with old shells: |
| 1974 | build_os=$* |
| 1975 | IFS=$ac_save_IFS |
| 1976 | 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] | 1977 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1978 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1979 | { echo "$as_me:$LINENO: checking host system type" >&5 |
| 1980 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1981 | if test "${ac_cv_host+set}" = set; then |
| 1982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1983 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1984 | if test "x$host_alias" = x; then |
| 1985 | ac_cv_host=$ac_cv_build |
| 1986 | else |
| 1987 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 1988 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
| 1989 | 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] | 1990 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1991 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1992 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1993 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1994 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1995 | echo "${ECHO_T}$ac_cv_host" >&6; } |
| 1996 | case $ac_cv_host in |
| 1997 | *-*-*) ;; |
| 1998 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
| 1999 | echo "$as_me: error: invalid value of canonical host" >&2;} |
| 2000 | { (exit 1); exit 1; }; };; |
| 2001 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2002 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2003 | ac_save_IFS=$IFS; IFS='-' |
| 2004 | set x $ac_cv_host |
| 2005 | shift |
| 2006 | host_cpu=$1 |
| 2007 | host_vendor=$2 |
| 2008 | shift; shift |
| 2009 | # Remember, the first character of IFS is used to create $*, |
| 2010 | # except with old shells: |
| 2011 | host_os=$* |
| 2012 | IFS=$ac_save_IFS |
| 2013 | 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] | 2014 | |
| 2015 | |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2016 | WITH_DIET_LIBC= |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2017 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2018 | # Check whether --with-diet-libc was given. |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 2019 | if test "${with_diet_libc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2020 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 2021 | WITH_DIET_LIBC=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2022 | { echo "$as_me:$LINENO: result: CC=$CC" >&5 |
| 2023 | echo "${ECHO_T}CC=$CC" >&6; } |
| 2024 | fi |
| 2025 | |
| 2026 | # Check whether --with-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2027 | if test "${with_cc+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2028 | withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5 |
| 2029 | echo "${ECHO_T}CC=$withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2030 | CC=$withval |
| 2031 | else |
| 2032 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2033 | { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5 |
| 2034 | echo "${ECHO_T}CC defaults to $CC" >&6; } |
| 2035 | fi |
| 2036 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2037 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2038 | ac_ext=c |
| 2039 | ac_cpp='$CPP $CPPFLAGS' |
| 2040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2043 | if test -n "$ac_tool_prefix"; then |
| 2044 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2045 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2048 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2050 | else |
| 2051 | if test -n "$CC"; then |
| 2052 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2053 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2055 | for as_dir in $PATH |
| 2056 | do |
| 2057 | IFS=$as_save_IFS |
| 2058 | test -z "$as_dir" && as_dir=. |
| 2059 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2060 | 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] | 2061 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2063 | break 2 |
| 2064 | fi |
| 2065 | done |
| 2066 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2067 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2068 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2069 | fi |
| 2070 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2071 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2072 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2073 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2074 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2075 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2076 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2077 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2078 | fi |
| 2079 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2080 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2081 | fi |
| 2082 | if test -z "$ac_cv_prog_CC"; then |
| 2083 | ac_ct_CC=$CC |
| 2084 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2085 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2088 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2090 | else |
| 2091 | if test -n "$ac_ct_CC"; then |
| 2092 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2093 | else |
| 2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2095 | for as_dir in $PATH |
| 2096 | do |
| 2097 | IFS=$as_save_IFS |
| 2098 | test -z "$as_dir" && as_dir=. |
| 2099 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2100 | 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] | 2101 | ac_cv_prog_ac_ct_CC="gcc" |
| 2102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2103 | break 2 |
| 2104 | fi |
| 2105 | done |
| 2106 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2107 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2108 | |
| 2109 | fi |
| 2110 | fi |
| 2111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2112 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2113 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2114 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2115 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2117 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2118 | fi |
| 2119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2120 | if test "x$ac_ct_CC" = x; then |
| 2121 | CC="" |
| 2122 | else |
| 2123 | case $cross_compiling:$ac_tool_warned in |
| 2124 | yes:) |
| 2125 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2126 | whose name does not start with the host triplet. If you think this |
| 2127 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2128 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2129 | whose name does not start with the host triplet. If you think this |
| 2130 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2131 | ac_tool_warned=yes ;; |
| 2132 | esac |
| 2133 | CC=$ac_ct_CC |
| 2134 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2135 | else |
| 2136 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2137 | fi |
| 2138 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2139 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2140 | if test -n "$ac_tool_prefix"; then |
| 2141 | # 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] | 2142 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2143 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2145 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2147 | else |
| 2148 | if test -n "$CC"; then |
| 2149 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2150 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2152 | for as_dir in $PATH |
| 2153 | do |
| 2154 | IFS=$as_save_IFS |
| 2155 | test -z "$as_dir" && as_dir=. |
| 2156 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2157 | 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] | 2158 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2160 | break 2 |
| 2161 | fi |
| 2162 | done |
| 2163 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2164 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2165 | |
| 2166 | fi |
| 2167 | fi |
| 2168 | CC=$ac_cv_prog_CC |
| 2169 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2170 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2171 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2172 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2173 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2174 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2175 | fi |
| 2176 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2178 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2179 | fi |
| 2180 | if test -z "$CC"; then |
| 2181 | # Extract the first word of "cc", so it can be a program name with args. |
| 2182 | set dummy cc; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2183 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2184 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2185 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2187 | else |
| 2188 | if test -n "$CC"; then |
| 2189 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2190 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2191 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2193 | for as_dir in $PATH |
| 2194 | do |
| 2195 | IFS=$as_save_IFS |
| 2196 | test -z "$as_dir" && as_dir=. |
| 2197 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2198 | 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] | 2199 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2200 | ac_prog_rejected=yes |
| 2201 | continue |
| 2202 | fi |
| 2203 | ac_cv_prog_CC="cc" |
| 2204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2205 | break 2 |
| 2206 | fi |
| 2207 | done |
| 2208 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2209 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2210 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2211 | if test $ac_prog_rejected = yes; then |
| 2212 | # We found a bogon in the path, so make sure we never use it. |
| 2213 | set dummy $ac_cv_prog_CC |
| 2214 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2215 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2216 | # We chose a different compiler from the bogus one. |
| 2217 | # However, it has the same basename, so the bogon will be chosen |
| 2218 | # first if we set CC to just the basename; use the full file name. |
| 2219 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2220 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2221 | fi |
| 2222 | fi |
| 2223 | fi |
| 2224 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2225 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2226 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2227 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2228 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2229 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2230 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2231 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2232 | fi |
| 2233 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2234 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2235 | fi |
| 2236 | if test -z "$CC"; then |
| 2237 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2238 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2239 | do |
| 2240 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2241 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2242 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2243 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2244 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2245 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2246 | else |
| 2247 | if test -n "$CC"; then |
| 2248 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2249 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2250 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2251 | for as_dir in $PATH |
| 2252 | do |
| 2253 | IFS=$as_save_IFS |
| 2254 | test -z "$as_dir" && as_dir=. |
| 2255 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2256 | 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] | 2257 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2258 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2259 | break 2 |
| 2260 | fi |
| 2261 | done |
| 2262 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2263 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2264 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2265 | fi |
| 2266 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2267 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2268 | if test -n "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2269 | { echo "$as_me:$LINENO: result: $CC" >&5 |
| 2270 | echo "${ECHO_T}$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2271 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2272 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2273 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2274 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2275 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2276 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2277 | test -n "$CC" && break |
| 2278 | done |
| 2279 | fi |
| 2280 | if test -z "$CC"; then |
| 2281 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2282 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2283 | do |
| 2284 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2285 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2288 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2290 | else |
| 2291 | if test -n "$ac_ct_CC"; then |
| 2292 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2293 | else |
| 2294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2295 | for as_dir in $PATH |
| 2296 | do |
| 2297 | IFS=$as_save_IFS |
| 2298 | test -z "$as_dir" && as_dir=. |
| 2299 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2300 | 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] | 2301 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2303 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2304 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2305 | done |
| 2306 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2307 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2308 | |
| 2309 | fi |
| 2310 | fi |
| 2311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2312 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2313 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2314 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2315 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2316 | { echo "$as_me:$LINENO: result: no" >&5 |
| 2317 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2318 | fi |
| 2319 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2320 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2321 | test -n "$ac_ct_CC" && break |
| 2322 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2324 | if test "x$ac_ct_CC" = x; then |
| 2325 | CC="" |
| 2326 | else |
| 2327 | case $cross_compiling:$ac_tool_warned in |
| 2328 | yes:) |
| 2329 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 2330 | whose name does not start with the host triplet. If you think this |
| 2331 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 2332 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 2333 | whose name does not start with the host triplet. If you think this |
| 2334 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 2335 | ac_tool_warned=yes ;; |
| 2336 | esac |
| 2337 | CC=$ac_ct_CC |
| 2338 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2339 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2340 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2341 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2342 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2343 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2344 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2345 | See \`config.log' for more details." >&5 |
| 2346 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2347 | See \`config.log' for more details." >&2;} |
| 2348 | { (exit 1); exit 1; }; } |
| 2349 | |
| 2350 | # Provide some information about the compiler. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2351 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2352 | ac_compiler=`set X $ac_compile; echo $2` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2353 | { (ac_try="$ac_compiler --version >&5" |
| 2354 | case "(($ac_try" in |
| 2355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2356 | *) ac_try_echo=$ac_try;; |
| 2357 | esac |
| 2358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2359 | (eval "$ac_compiler --version >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2360 | ac_status=$? |
| 2361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2362 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2363 | { (ac_try="$ac_compiler -v >&5" |
| 2364 | case "(($ac_try" in |
| 2365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2366 | *) ac_try_echo=$ac_try;; |
| 2367 | esac |
| 2368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2369 | (eval "$ac_compiler -v >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2370 | ac_status=$? |
| 2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2372 | (exit $ac_status); } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2373 | { (ac_try="$ac_compiler -V >&5" |
| 2374 | case "(($ac_try" in |
| 2375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2376 | *) ac_try_echo=$ac_try;; |
| 2377 | esac |
| 2378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2379 | (eval "$ac_compiler -V >&5") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2380 | ac_status=$? |
| 2381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2382 | (exit $ac_status); } |
| 2383 | |
| 2384 | cat >conftest.$ac_ext <<_ACEOF |
| 2385 | /* confdefs.h. */ |
| 2386 | _ACEOF |
| 2387 | cat confdefs.h >>conftest.$ac_ext |
| 2388 | cat >>conftest.$ac_ext <<_ACEOF |
| 2389 | /* end confdefs.h. */ |
| 2390 | |
| 2391 | int |
| 2392 | main () |
| 2393 | { |
| 2394 | |
| 2395 | ; |
| 2396 | return 0; |
| 2397 | } |
| 2398 | _ACEOF |
| 2399 | ac_clean_files_save=$ac_clean_files |
| 2400 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2401 | # Try to create an executable without -o first, disregard a.out. |
| 2402 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2403 | # of exeext. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2404 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 2405 | 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] | 2406 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2407 | # |
| 2408 | # List of possible output files, starting from the most likely. |
| 2409 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
| 2410 | # only as a last resort. b.out is created by i960 compilers. |
| 2411 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
| 2412 | # |
| 2413 | # The IRIX 6 linker writes into existing files which may not be |
| 2414 | # executable, retaining their permissions. Remove them first so a |
| 2415 | # subsequent execution test works. |
| 2416 | ac_rmfiles= |
| 2417 | for ac_file in $ac_files |
| 2418 | do |
| 2419 | case $ac_file in |
| 2420 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
| 2421 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2422 | esac |
| 2423 | done |
| 2424 | rm -f $ac_rmfiles |
| 2425 | |
| 2426 | if { (ac_try="$ac_link_default" |
| 2427 | case "(($ac_try" in |
| 2428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2429 | *) ac_try_echo=$ac_try;; |
| 2430 | esac |
| 2431 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2432 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2433 | ac_status=$? |
| 2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2435 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2436 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 2437 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 2438 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2439 | # so that the user can short-circuit this test for compilers unknown to |
| 2440 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2441 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2442 | do |
| 2443 | test -f "$ac_file" || continue |
| 2444 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2445 | *.$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] | 2446 | ;; |
| 2447 | [ab].out ) |
| 2448 | # We found the default executable, but exeext='' is most |
| 2449 | # certainly right. |
| 2450 | break;; |
| 2451 | *.* ) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2452 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 2453 | then :; else |
| 2454 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2455 | fi |
| 2456 | # We set ac_cv_exeext here because the later test for it is not |
| 2457 | # safe: cross compilers may not add the suffix if given an `-o' |
| 2458 | # argument, so we may need to know it at that point already. |
| 2459 | # Even if this section looks crufty: it has the advantage of |
| 2460 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2461 | break;; |
| 2462 | * ) |
| 2463 | break;; |
| 2464 | esac |
| 2465 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2466 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2467 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2468 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2469 | ac_file='' |
| 2470 | fi |
| 2471 | |
| 2472 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2473 | echo "${ECHO_T}$ac_file" >&6; } |
| 2474 | if test -z "$ac_file"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2475 | echo "$as_me: failed program was:" >&5 |
| 2476 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2477 | |
| 2478 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2479 | See \`config.log' for more details." >&5 |
| 2480 | echo "$as_me: error: C compiler cannot create executables |
| 2481 | See \`config.log' for more details." >&2;} |
| 2482 | { (exit 77); exit 77; }; } |
| 2483 | fi |
| 2484 | |
| 2485 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2486 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2487 | # 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] | 2488 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2489 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2490 | 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] | 2491 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2492 | # If not cross compiling, check that we can run a simple program. |
| 2493 | if test "$cross_compiling" != yes; then |
| 2494 | if { ac_try='./$ac_file' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2495 | { (case "(($ac_try" in |
| 2496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2497 | *) ac_try_echo=$ac_try;; |
| 2498 | esac |
| 2499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2500 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2501 | ac_status=$? |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); }; }; then |
| 2504 | cross_compiling=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2505 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2506 | if test "$cross_compiling" = maybe; then |
| 2507 | cross_compiling=yes |
| 2508 | else |
| 2509 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2510 | If you meant to cross compile, use \`--host'. |
| 2511 | See \`config.log' for more details." >&5 |
| 2512 | echo "$as_me: error: cannot run C compiled programs. |
| 2513 | If you meant to cross compile, use \`--host'. |
| 2514 | See \`config.log' for more details." >&2;} |
| 2515 | { (exit 1); exit 1; }; } |
| 2516 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2517 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2518 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2519 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 2520 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2522 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2523 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2524 | # 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] | 2525 | # the compiler is broken, or we cross compile. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2526 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2527 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
| 2528 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2529 | echo "${ECHO_T}$cross_compiling" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2530 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2531 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2532 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
| 2533 | if { (ac_try="$ac_link" |
| 2534 | case "(($ac_try" in |
| 2535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2536 | *) ac_try_echo=$ac_try;; |
| 2537 | esac |
| 2538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2539 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2540 | ac_status=$? |
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2542 | (exit $ac_status); }; then |
| 2543 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2544 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2545 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2546 | # `rm'. |
| 2547 | for ac_file in conftest.exe conftest conftest.*; do |
| 2548 | test -f "$ac_file" || continue |
| 2549 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2550 | *.$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] | 2551 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2552 | break;; |
| 2553 | * ) break;; |
| 2554 | esac |
| 2555 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2556 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2557 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2558 | See \`config.log' for more details." >&5 |
| 2559 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2560 | See \`config.log' for more details." >&2;} |
| 2561 | { (exit 1); exit 1; }; } |
| 2562 | fi |
| 2563 | |
| 2564 | rm -f conftest$ac_cv_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2565 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2566 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2567 | |
| 2568 | rm -f conftest.$ac_ext |
| 2569 | EXEEXT=$ac_cv_exeext |
| 2570 | ac_exeext=$EXEEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2571 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2572 | 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] | 2573 | if test "${ac_cv_objext+set}" = set; then |
| 2574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2575 | else |
| 2576 | cat >conftest.$ac_ext <<_ACEOF |
| 2577 | /* confdefs.h. */ |
| 2578 | _ACEOF |
| 2579 | cat confdefs.h >>conftest.$ac_ext |
| 2580 | cat >>conftest.$ac_ext <<_ACEOF |
| 2581 | /* end confdefs.h. */ |
| 2582 | |
| 2583 | int |
| 2584 | main () |
| 2585 | { |
| 2586 | |
| 2587 | ; |
| 2588 | return 0; |
| 2589 | } |
| 2590 | _ACEOF |
| 2591 | rm -f conftest.o conftest.obj |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2592 | if { (ac_try="$ac_compile" |
| 2593 | case "(($ac_try" in |
| 2594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2595 | *) ac_try_echo=$ac_try;; |
| 2596 | esac |
| 2597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2598 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2599 | ac_status=$? |
| 2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2601 | (exit $ac_status); }; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2602 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 2603 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2604 | case $ac_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2606 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2607 | break;; |
| 2608 | esac |
| 2609 | done |
| 2610 | else |
| 2611 | echo "$as_me: failed program was:" >&5 |
| 2612 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2613 | |
| 2614 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2615 | See \`config.log' for more details." >&5 |
| 2616 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2617 | See \`config.log' for more details." >&2;} |
| 2618 | { (exit 1); exit 1; }; } |
| 2619 | fi |
| 2620 | |
| 2621 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2622 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2623 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2624 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2625 | OBJEXT=$ac_cv_objext |
| 2626 | ac_objext=$OBJEXT |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2627 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2628 | 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] | 2629 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2631 | else |
| 2632 | cat >conftest.$ac_ext <<_ACEOF |
| 2633 | /* confdefs.h. */ |
| 2634 | _ACEOF |
| 2635 | cat confdefs.h >>conftest.$ac_ext |
| 2636 | cat >>conftest.$ac_ext <<_ACEOF |
| 2637 | /* end confdefs.h. */ |
| 2638 | |
| 2639 | int |
| 2640 | main () |
| 2641 | { |
| 2642 | #ifndef __GNUC__ |
| 2643 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2644 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2645 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2646 | ; |
| 2647 | return 0; |
| 2648 | } |
| 2649 | _ACEOF |
| 2650 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2651 | if { (ac_try="$ac_compile" |
| 2652 | case "(($ac_try" in |
| 2653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2654 | *) ac_try_echo=$ac_try;; |
| 2655 | esac |
| 2656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2657 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2658 | ac_status=$? |
| 2659 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2660 | rm -f conftest.er1 |
| 2661 | cat conftest.err >&5 |
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2663 | (exit $ac_status); } && { |
| 2664 | test -z "$ac_c_werror_flag" || |
| 2665 | test ! -s conftest.err |
| 2666 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2667 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2668 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2669 | echo "$as_me: failed program was:" >&5 |
| 2670 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2671 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2672 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2673 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2674 | |
| 2675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2676 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2677 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2678 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2679 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2680 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2681 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2682 | ac_test_CFLAGS=${CFLAGS+set} |
| 2683 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2684 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2685 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2686 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2688 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2689 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 2690 | ac_c_werror_flag=yes |
| 2691 | ac_cv_prog_cc_g=no |
| 2692 | CFLAGS="-g" |
| 2693 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2694 | /* confdefs.h. */ |
| 2695 | _ACEOF |
| 2696 | cat confdefs.h >>conftest.$ac_ext |
| 2697 | cat >>conftest.$ac_ext <<_ACEOF |
| 2698 | /* end confdefs.h. */ |
| 2699 | |
| 2700 | int |
| 2701 | main () |
| 2702 | { |
| 2703 | |
| 2704 | ; |
| 2705 | return 0; |
| 2706 | } |
| 2707 | _ACEOF |
| 2708 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2709 | if { (ac_try="$ac_compile" |
| 2710 | case "(($ac_try" in |
| 2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2712 | *) ac_try_echo=$ac_try;; |
| 2713 | esac |
| 2714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2715 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2716 | ac_status=$? |
| 2717 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2718 | rm -f conftest.er1 |
| 2719 | cat conftest.err >&5 |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2721 | (exit $ac_status); } && { |
| 2722 | test -z "$ac_c_werror_flag" || |
| 2723 | test ! -s conftest.err |
| 2724 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2725 | ac_cv_prog_cc_g=yes |
| 2726 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2727 | echo "$as_me: failed program was:" >&5 |
| 2728 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2730 | CFLAGS="" |
| 2731 | cat >conftest.$ac_ext <<_ACEOF |
| 2732 | /* confdefs.h. */ |
| 2733 | _ACEOF |
| 2734 | cat confdefs.h >>conftest.$ac_ext |
| 2735 | cat >>conftest.$ac_ext <<_ACEOF |
| 2736 | /* end confdefs.h. */ |
| 2737 | |
| 2738 | int |
| 2739 | main () |
| 2740 | { |
| 2741 | |
| 2742 | ; |
| 2743 | return 0; |
| 2744 | } |
| 2745 | _ACEOF |
| 2746 | rm -f conftest.$ac_objext |
| 2747 | if { (ac_try="$ac_compile" |
| 2748 | case "(($ac_try" in |
| 2749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2750 | *) ac_try_echo=$ac_try;; |
| 2751 | esac |
| 2752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2753 | (eval "$ac_compile") 2>conftest.er1 |
| 2754 | ac_status=$? |
| 2755 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2756 | rm -f conftest.er1 |
| 2757 | cat conftest.err >&5 |
| 2758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2759 | (exit $ac_status); } && { |
| 2760 | test -z "$ac_c_werror_flag" || |
| 2761 | test ! -s conftest.err |
| 2762 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2763 | : |
| 2764 | else |
| 2765 | echo "$as_me: failed program was:" >&5 |
| 2766 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2767 | |
| 2768 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2769 | CFLAGS="-g" |
| 2770 | cat >conftest.$ac_ext <<_ACEOF |
| 2771 | /* confdefs.h. */ |
| 2772 | _ACEOF |
| 2773 | cat confdefs.h >>conftest.$ac_ext |
| 2774 | cat >>conftest.$ac_ext <<_ACEOF |
| 2775 | /* end confdefs.h. */ |
| 2776 | |
| 2777 | int |
| 2778 | main () |
| 2779 | { |
| 2780 | |
| 2781 | ; |
| 2782 | return 0; |
| 2783 | } |
| 2784 | _ACEOF |
| 2785 | rm -f conftest.$ac_objext |
| 2786 | if { (ac_try="$ac_compile" |
| 2787 | case "(($ac_try" in |
| 2788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2789 | *) ac_try_echo=$ac_try;; |
| 2790 | esac |
| 2791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2792 | (eval "$ac_compile") 2>conftest.er1 |
| 2793 | ac_status=$? |
| 2794 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2795 | rm -f conftest.er1 |
| 2796 | cat conftest.err >&5 |
| 2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2798 | (exit $ac_status); } && { |
| 2799 | test -z "$ac_c_werror_flag" || |
| 2800 | test ! -s conftest.err |
| 2801 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2802 | ac_cv_prog_cc_g=yes |
| 2803 | else |
| 2804 | echo "$as_me: failed program was:" >&5 |
| 2805 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2806 | |
| 2807 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2809 | |
| 2810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2812 | |
| 2813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2814 | fi |
| 2815 | |
| 2816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2817 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 2818 | fi |
| 2819 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2820 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2821 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2822 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2823 | elif test $ac_cv_prog_cc_g = yes; then |
| 2824 | if test "$GCC" = yes; then |
| 2825 | CFLAGS="-g -O2" |
| 2826 | else |
| 2827 | CFLAGS="-g" |
| 2828 | fi |
| 2829 | else |
| 2830 | if test "$GCC" = yes; then |
| 2831 | CFLAGS="-O2" |
| 2832 | else |
| 2833 | CFLAGS= |
| 2834 | fi |
| 2835 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2836 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
| 2837 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
| 2838 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2840 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2841 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2842 | ac_save_CC=$CC |
| 2843 | cat >conftest.$ac_ext <<_ACEOF |
| 2844 | /* confdefs.h. */ |
| 2845 | _ACEOF |
| 2846 | cat confdefs.h >>conftest.$ac_ext |
| 2847 | cat >>conftest.$ac_ext <<_ACEOF |
| 2848 | /* end confdefs.h. */ |
| 2849 | #include <stdarg.h> |
| 2850 | #include <stdio.h> |
| 2851 | #include <sys/types.h> |
| 2852 | #include <sys/stat.h> |
| 2853 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2854 | struct buf { int x; }; |
| 2855 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2856 | static char *e (p, i) |
| 2857 | char **p; |
| 2858 | int i; |
| 2859 | { |
| 2860 | return p[i]; |
| 2861 | } |
| 2862 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2863 | { |
| 2864 | char *s; |
| 2865 | va_list v; |
| 2866 | va_start (v,p); |
| 2867 | s = g (p, va_arg (v,int)); |
| 2868 | va_end (v); |
| 2869 | return s; |
| 2870 | } |
| 2871 | |
| 2872 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2873 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 2874 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2875 | 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] | 2876 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 2877 | 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] | 2878 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2879 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 2880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2881 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2882 | inside strings and character constants. */ |
| 2883 | #define FOO(x) 'x' |
| 2884 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 2885 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2886 | int test (int i, double x); |
| 2887 | struct s1 {int (*f) (int a);}; |
| 2888 | struct s2 {int (*f) (double a);}; |
| 2889 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2890 | int argc; |
| 2891 | char **argv; |
| 2892 | int |
| 2893 | main () |
| 2894 | { |
| 2895 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2896 | ; |
| 2897 | return 0; |
| 2898 | } |
| 2899 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2900 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 2901 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2902 | do |
| 2903 | CC="$ac_save_CC $ac_arg" |
| 2904 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2905 | if { (ac_try="$ac_compile" |
| 2906 | case "(($ac_try" in |
| 2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2908 | *) ac_try_echo=$ac_try;; |
| 2909 | esac |
| 2910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 2911 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2912 | ac_status=$? |
| 2913 | grep -v '^ *+' conftest.er1 >conftest.err |
| 2914 | rm -f conftest.er1 |
| 2915 | cat conftest.err >&5 |
| 2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2917 | (exit $ac_status); } && { |
| 2918 | test -z "$ac_c_werror_flag" || |
| 2919 | test ! -s conftest.err |
| 2920 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2921 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2922 | else |
| 2923 | echo "$as_me: failed program was:" >&5 |
| 2924 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2925 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2926 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2927 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2928 | |
| 2929 | rm -f core conftest.err conftest.$ac_objext |
| 2930 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2931 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2932 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2933 | CC=$ac_save_CC |
| 2934 | |
| 2935 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2936 | # AC_CACHE_VAL |
| 2937 | case "x$ac_cv_prog_cc_c89" in |
| 2938 | x) |
| 2939 | { echo "$as_me:$LINENO: result: none needed" >&5 |
| 2940 | echo "${ECHO_T}none needed" >&6; } ;; |
| 2941 | xno) |
| 2942 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
| 2943 | echo "${ECHO_T}unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2944 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2945 | CC="$CC $ac_cv_prog_cc_c89" |
| 2946 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
| 2947 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2948 | esac |
| 2949 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2950 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2951 | ac_ext=c |
| 2952 | ac_cpp='$CPP $CPPFLAGS' |
| 2953 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2954 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2955 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2956 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2957 | ac_ext=c |
| 2958 | ac_cpp='$CPP $CPPFLAGS' |
| 2959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2962 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2963 | 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] | 2964 | # On Suns, sometimes $CPP names a directory. |
| 2965 | if test -n "$CPP" && test -d "$CPP"; then |
| 2966 | CPP= |
| 2967 | fi |
| 2968 | if test -z "$CPP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2969 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2971 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2972 | # Double quotes because CPP needs to be expanded |
| 2973 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2974 | do |
| 2975 | ac_preproc_ok=false |
| 2976 | for ac_c_preproc_warn_flag in '' yes |
| 2977 | do |
| 2978 | # Use a header file that comes with gcc, so configuring glibc |
| 2979 | # with a fresh cross-compiler works. |
| 2980 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2981 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 2982 | # 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] | 2983 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2984 | cat >conftest.$ac_ext <<_ACEOF |
| 2985 | /* confdefs.h. */ |
| 2986 | _ACEOF |
| 2987 | cat confdefs.h >>conftest.$ac_ext |
| 2988 | cat >>conftest.$ac_ext <<_ACEOF |
| 2989 | /* end confdefs.h. */ |
| 2990 | #ifdef __STDC__ |
| 2991 | # include <limits.h> |
| 2992 | #else |
| 2993 | # include <assert.h> |
| 2994 | #endif |
| 2995 | Syntax error |
| 2996 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2997 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 2998 | case "(($ac_try" in |
| 2999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3000 | *) ac_try_echo=$ac_try;; |
| 3001 | esac |
| 3002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3004 | ac_status=$? |
| 3005 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3006 | rm -f conftest.er1 |
| 3007 | cat conftest.err >&5 |
| 3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3009 | (exit $ac_status); } >/dev/null && { |
| 3010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3011 | test ! -s conftest.err |
| 3012 | }; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3013 | : |
| 3014 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3015 | echo "$as_me: failed program was:" >&5 |
| 3016 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3017 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3018 | # Broken: fails on valid input. |
| 3019 | continue |
| 3020 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3022 | rm -f conftest.err conftest.$ac_ext |
| 3023 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3024 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3025 | # can be detected and how. |
| 3026 | cat >conftest.$ac_ext <<_ACEOF |
| 3027 | /* confdefs.h. */ |
| 3028 | _ACEOF |
| 3029 | cat confdefs.h >>conftest.$ac_ext |
| 3030 | cat >>conftest.$ac_ext <<_ACEOF |
| 3031 | /* end confdefs.h. */ |
| 3032 | #include <ac_nonexistent.h> |
| 3033 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3034 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3035 | case "(($ac_try" in |
| 3036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3037 | *) ac_try_echo=$ac_try;; |
| 3038 | esac |
| 3039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3041 | ac_status=$? |
| 3042 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3043 | rm -f conftest.er1 |
| 3044 | cat conftest.err >&5 |
| 3045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3046 | (exit $ac_status); } >/dev/null && { |
| 3047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3048 | test ! -s conftest.err |
| 3049 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3050 | # Broken: success on invalid input. |
| 3051 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3052 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3053 | echo "$as_me: failed program was:" >&5 |
| 3054 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3055 | |
| 3056 | # Passes both tests. |
| 3057 | ac_preproc_ok=: |
| 3058 | break |
| 3059 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3060 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3061 | rm -f conftest.err conftest.$ac_ext |
| 3062 | |
| 3063 | done |
| 3064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3065 | rm -f conftest.err conftest.$ac_ext |
| 3066 | if $ac_preproc_ok; then |
| 3067 | break |
| 3068 | fi |
| 3069 | |
| 3070 | done |
| 3071 | ac_cv_prog_CPP=$CPP |
| 3072 | |
| 3073 | fi |
| 3074 | CPP=$ac_cv_prog_CPP |
| 3075 | else |
| 3076 | ac_cv_prog_CPP=$CPP |
| 3077 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3078 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
| 3079 | echo "${ECHO_T}$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3080 | ac_preproc_ok=false |
| 3081 | for ac_c_preproc_warn_flag in '' yes |
| 3082 | do |
| 3083 | # Use a header file that comes with gcc, so configuring glibc |
| 3084 | # with a fresh cross-compiler works. |
| 3085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3086 | # <limits.h> exists even on freestanding compilers. |
| 3087 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3088 | # not just through cpp. "Syntax error" is here to catch this case. |
| 3089 | cat >conftest.$ac_ext <<_ACEOF |
| 3090 | /* confdefs.h. */ |
| 3091 | _ACEOF |
| 3092 | cat confdefs.h >>conftest.$ac_ext |
| 3093 | cat >>conftest.$ac_ext <<_ACEOF |
| 3094 | /* end confdefs.h. */ |
| 3095 | #ifdef __STDC__ |
| 3096 | # include <limits.h> |
| 3097 | #else |
| 3098 | # include <assert.h> |
| 3099 | #endif |
| 3100 | Syntax error |
| 3101 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3102 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3103 | case "(($ac_try" in |
| 3104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3105 | *) ac_try_echo=$ac_try;; |
| 3106 | esac |
| 3107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3108 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3109 | ac_status=$? |
| 3110 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3111 | rm -f conftest.er1 |
| 3112 | cat conftest.err >&5 |
| 3113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3114 | (exit $ac_status); } >/dev/null && { |
| 3115 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3116 | test ! -s conftest.err |
| 3117 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3118 | : |
| 3119 | else |
| 3120 | echo "$as_me: failed program was:" >&5 |
| 3121 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3122 | |
| 3123 | # Broken: fails on valid input. |
| 3124 | continue |
| 3125 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3126 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3127 | rm -f conftest.err conftest.$ac_ext |
| 3128 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3129 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3130 | # can be detected and how. |
| 3131 | cat >conftest.$ac_ext <<_ACEOF |
| 3132 | /* confdefs.h. */ |
| 3133 | _ACEOF |
| 3134 | cat confdefs.h >>conftest.$ac_ext |
| 3135 | cat >>conftest.$ac_ext <<_ACEOF |
| 3136 | /* end confdefs.h. */ |
| 3137 | #include <ac_nonexistent.h> |
| 3138 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3139 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3140 | case "(($ac_try" in |
| 3141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3142 | *) ac_try_echo=$ac_try;; |
| 3143 | esac |
| 3144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3145 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3146 | ac_status=$? |
| 3147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3148 | rm -f conftest.er1 |
| 3149 | cat conftest.err >&5 |
| 3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3151 | (exit $ac_status); } >/dev/null && { |
| 3152 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3153 | test ! -s conftest.err |
| 3154 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3155 | # Broken: success on invalid input. |
| 3156 | continue |
| 3157 | else |
| 3158 | echo "$as_me: failed program was:" >&5 |
| 3159 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3160 | |
| 3161 | # Passes both tests. |
| 3162 | ac_preproc_ok=: |
| 3163 | break |
| 3164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3165 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3166 | rm -f conftest.err conftest.$ac_ext |
| 3167 | |
| 3168 | done |
| 3169 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3170 | rm -f conftest.err conftest.$ac_ext |
| 3171 | if $ac_preproc_ok; then |
| 3172 | : |
| 3173 | else |
| 3174 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 3175 | See \`config.log' for more details." >&5 |
| 3176 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 3177 | See \`config.log' for more details." >&2;} |
| 3178 | { (exit 1); exit 1; }; } |
| 3179 | fi |
| 3180 | |
| 3181 | ac_ext=c |
| 3182 | ac_cpp='$CPP $CPPFLAGS' |
| 3183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3186 | |
| 3187 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3188 | # Check whether --with-linker was given. |
| 3189 | if test "${with_linker+set}" = set; then |
| 3190 | withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5 |
| 3191 | echo "${ECHO_T}LD=$withval" >&6; } |
| 3192 | LD=$withval |
| 3193 | else |
| 3194 | if test -z "$LD" ; then LD=$CC; fi |
| 3195 | { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5 |
| 3196 | echo "${ECHO_T}LD defaults to $LD" >&6; } |
| 3197 | fi |
| 3198 | export LD |
| 3199 | |
| 3200 | |
| 3201 | # Check whether --with-ccopts was given. |
| 3202 | if test "${with_ccopts+set}" = set; then |
| 3203 | withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5 |
| 3204 | echo "${ECHO_T}CCOPTS is $withval" >&6; } |
| 3205 | CFLAGS=$withval |
| 3206 | fi |
| 3207 | |
| 3208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3209 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
| 3210 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
| 3211 | if test "${ac_cv_path_GREP+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3213 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3214 | # Extract the first word of "grep ggrep" to use in msg output |
| 3215 | if test -z "$GREP"; then |
| 3216 | set dummy grep ggrep; ac_prog_name=$2 |
| 3217 | if test "${ac_cv_path_GREP+set}" = set; then |
| 3218 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3219 | else |
| 3220 | ac_path_GREP_found=false |
| 3221 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3223 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3224 | do |
| 3225 | IFS=$as_save_IFS |
| 3226 | test -z "$as_dir" && as_dir=. |
| 3227 | for ac_prog in grep ggrep; do |
| 3228 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3229 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3230 | { 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] | 3231 | # Check for GNU ac_path_GREP and select it if it is found. |
| 3232 | # Check for GNU $ac_path_GREP |
| 3233 | case `"$ac_path_GREP" --version 2>&1` in |
| 3234 | *GNU*) |
| 3235 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 3236 | *) |
| 3237 | ac_count=0 |
| 3238 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3239 | while : |
| 3240 | do |
| 3241 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3242 | mv "conftest.tmp" "conftest.in" |
| 3243 | cp "conftest.in" "conftest.nl" |
| 3244 | echo 'GREP' >> "conftest.nl" |
| 3245 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3246 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3247 | ac_count=`expr $ac_count + 1` |
| 3248 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 3249 | # Best one so far, save it but keep looking for a better one |
| 3250 | ac_cv_path_GREP="$ac_path_GREP" |
| 3251 | ac_path_GREP_max=$ac_count |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3252 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3253 | # 10*(2^10) chars as input seems more than enough |
| 3254 | test $ac_count -gt 10 && break |
| 3255 | done |
| 3256 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3257 | esac |
| 3258 | |
| 3259 | |
| 3260 | $ac_path_GREP_found && break 3 |
| 3261 | done |
| 3262 | done |
| 3263 | |
| 3264 | done |
| 3265 | IFS=$as_save_IFS |
| 3266 | |
| 3267 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3268 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3269 | |
| 3270 | GREP="$ac_cv_path_GREP" |
| 3271 | if test -z "$GREP"; then |
| 3272 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3273 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3274 | { (exit 1); exit 1; }; } |
| 3275 | fi |
| 3276 | |
| 3277 | else |
| 3278 | ac_cv_path_GREP=$GREP |
| 3279 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3280 | |
| 3281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3282 | fi |
| 3283 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
| 3284 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
| 3285 | GREP="$ac_cv_path_GREP" |
| 3286 | |
| 3287 | |
| 3288 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 3289 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 3290 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3292 | else |
| 3293 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 3294 | then ac_cv_path_EGREP="$GREP -E" |
| 3295 | else |
| 3296 | # Extract the first word of "egrep" to use in msg output |
| 3297 | if test -z "$EGREP"; then |
| 3298 | set dummy egrep; ac_prog_name=$2 |
| 3299 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3301 | else |
| 3302 | ac_path_EGREP_found=false |
| 3303 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 3304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3305 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 3306 | do |
| 3307 | IFS=$as_save_IFS |
| 3308 | test -z "$as_dir" && as_dir=. |
| 3309 | for ac_prog in egrep; do |
| 3310 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3311 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3312 | { 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] | 3313 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 3314 | # Check for GNU $ac_path_EGREP |
| 3315 | case `"$ac_path_EGREP" --version 2>&1` in |
| 3316 | *GNU*) |
| 3317 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 3318 | *) |
| 3319 | ac_count=0 |
| 3320 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 3321 | while : |
| 3322 | do |
| 3323 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 3324 | mv "conftest.tmp" "conftest.in" |
| 3325 | cp "conftest.in" "conftest.nl" |
| 3326 | echo 'EGREP' >> "conftest.nl" |
| 3327 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 3328 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 3329 | ac_count=`expr $ac_count + 1` |
| 3330 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 3331 | # Best one so far, save it but keep looking for a better one |
| 3332 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 3333 | ac_path_EGREP_max=$ac_count |
| 3334 | fi |
| 3335 | # 10*(2^10) chars as input seems more than enough |
| 3336 | test $ac_count -gt 10 && break |
| 3337 | done |
| 3338 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 3339 | esac |
| 3340 | |
| 3341 | |
| 3342 | $ac_path_EGREP_found && break 3 |
| 3343 | done |
| 3344 | done |
| 3345 | |
| 3346 | done |
| 3347 | IFS=$as_save_IFS |
| 3348 | |
| 3349 | |
| 3350 | fi |
| 3351 | |
| 3352 | EGREP="$ac_cv_path_EGREP" |
| 3353 | if test -z "$EGREP"; then |
| 3354 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 3355 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 3356 | { (exit 1); exit 1; }; } |
| 3357 | fi |
| 3358 | |
| 3359 | else |
| 3360 | ac_cv_path_EGREP=$EGREP |
| 3361 | fi |
| 3362 | |
| 3363 | |
| 3364 | fi |
| 3365 | fi |
| 3366 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 3367 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 3368 | EGREP="$ac_cv_path_EGREP" |
| 3369 | |
| 3370 | |
| 3371 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3372 | 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] | 3373 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3375 | else |
| 3376 | cat >conftest.$ac_ext <<_ACEOF |
| 3377 | /* confdefs.h. */ |
| 3378 | _ACEOF |
| 3379 | cat confdefs.h >>conftest.$ac_ext |
| 3380 | cat >>conftest.$ac_ext <<_ACEOF |
| 3381 | /* end confdefs.h. */ |
| 3382 | #include <stdlib.h> |
| 3383 | #include <stdarg.h> |
| 3384 | #include <string.h> |
| 3385 | #include <float.h> |
| 3386 | |
| 3387 | int |
| 3388 | main () |
| 3389 | { |
| 3390 | |
| 3391 | ; |
| 3392 | return 0; |
| 3393 | } |
| 3394 | _ACEOF |
| 3395 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3396 | if { (ac_try="$ac_compile" |
| 3397 | case "(($ac_try" in |
| 3398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3399 | *) ac_try_echo=$ac_try;; |
| 3400 | esac |
| 3401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3402 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3403 | ac_status=$? |
| 3404 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3405 | rm -f conftest.er1 |
| 3406 | cat conftest.err >&5 |
| 3407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3408 | (exit $ac_status); } && { |
| 3409 | test -z "$ac_c_werror_flag" || |
| 3410 | test ! -s conftest.err |
| 3411 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3412 | ac_cv_header_stdc=yes |
| 3413 | else |
| 3414 | echo "$as_me: failed program was:" >&5 |
| 3415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3416 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3417 | ac_cv_header_stdc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3418 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3419 | |
| 3420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3421 | |
| 3422 | if test $ac_cv_header_stdc = yes; then |
| 3423 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 3424 | cat >conftest.$ac_ext <<_ACEOF |
| 3425 | /* confdefs.h. */ |
| 3426 | _ACEOF |
| 3427 | cat confdefs.h >>conftest.$ac_ext |
| 3428 | cat >>conftest.$ac_ext <<_ACEOF |
| 3429 | /* end confdefs.h. */ |
| 3430 | #include <string.h> |
| 3431 | |
| 3432 | _ACEOF |
| 3433 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3434 | $EGREP "memchr" >/dev/null 2>&1; then |
| 3435 | : |
| 3436 | else |
| 3437 | ac_cv_header_stdc=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3438 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3439 | rm -f conftest* |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3440 | |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3441 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3442 | |
| 3443 | if test $ac_cv_header_stdc = yes; then |
| 3444 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 3445 | cat >conftest.$ac_ext <<_ACEOF |
| 3446 | /* confdefs.h. */ |
| 3447 | _ACEOF |
| 3448 | cat confdefs.h >>conftest.$ac_ext |
| 3449 | cat >>conftest.$ac_ext <<_ACEOF |
| 3450 | /* end confdefs.h. */ |
| 3451 | #include <stdlib.h> |
| 3452 | |
| 3453 | _ACEOF |
| 3454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3455 | $EGREP "free" >/dev/null 2>&1; then |
| 3456 | : |
| 3457 | else |
| 3458 | ac_cv_header_stdc=no |
| 3459 | fi |
| 3460 | rm -f conftest* |
| 3461 | |
| 3462 | fi |
| 3463 | |
| 3464 | if test $ac_cv_header_stdc = yes; then |
| 3465 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 3466 | if test "$cross_compiling" = yes; then |
| 3467 | : |
| 3468 | else |
| 3469 | cat >conftest.$ac_ext <<_ACEOF |
| 3470 | /* confdefs.h. */ |
| 3471 | _ACEOF |
| 3472 | cat confdefs.h >>conftest.$ac_ext |
| 3473 | cat >>conftest.$ac_ext <<_ACEOF |
| 3474 | /* end confdefs.h. */ |
| 3475 | #include <ctype.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3476 | #include <stdlib.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3477 | #if ((' ' & 0x0FF) == 0x020) |
| 3478 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3479 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3480 | #else |
| 3481 | # define ISLOWER(c) \ |
| 3482 | (('a' <= (c) && (c) <= 'i') \ |
| 3483 | || ('j' <= (c) && (c) <= 'r') \ |
| 3484 | || ('s' <= (c) && (c) <= 'z')) |
| 3485 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3486 | #endif |
| 3487 | |
| 3488 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3489 | int |
| 3490 | main () |
| 3491 | { |
| 3492 | int i; |
| 3493 | for (i = 0; i < 256; i++) |
| 3494 | if (XOR (islower (i), ISLOWER (i)) |
| 3495 | || toupper (i) != TOUPPER (i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3496 | return 2; |
| 3497 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3498 | } |
| 3499 | _ACEOF |
| 3500 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3501 | if { (ac_try="$ac_link" |
| 3502 | case "(($ac_try" in |
| 3503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3504 | *) ac_try_echo=$ac_try;; |
| 3505 | esac |
| 3506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3507 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3508 | ac_status=$? |
| 3509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3510 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3511 | { (case "(($ac_try" in |
| 3512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3513 | *) ac_try_echo=$ac_try;; |
| 3514 | esac |
| 3515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3516 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3517 | ac_status=$? |
| 3518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3519 | (exit $ac_status); }; }; then |
| 3520 | : |
| 3521 | else |
| 3522 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3523 | echo "$as_me: failed program was:" >&5 |
| 3524 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3525 | |
| 3526 | ( exit $ac_status ) |
| 3527 | ac_cv_header_stdc=no |
| 3528 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3530 | fi |
| 3531 | |
| 3532 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3533 | fi |
| 3534 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3535 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3536 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | if test $ac_cv_header_stdc = yes; then |
| 3538 | |
| 3539 | cat >>confdefs.h <<\_ACEOF |
| 3540 | #define STDC_HEADERS 1 |
| 3541 | _ACEOF |
| 3542 | |
| 3543 | fi |
| 3544 | |
| 3545 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 3546 | |
| 3547 | |
| 3548 | |
| 3549 | |
| 3550 | |
| 3551 | |
| 3552 | |
| 3553 | |
| 3554 | |
| 3555 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 3556 | inttypes.h stdint.h unistd.h |
| 3557 | do |
| 3558 | 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] | 3559 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3560 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 3561 | 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] | 3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3563 | else |
| 3564 | cat >conftest.$ac_ext <<_ACEOF |
| 3565 | /* confdefs.h. */ |
| 3566 | _ACEOF |
| 3567 | cat confdefs.h >>conftest.$ac_ext |
| 3568 | cat >>conftest.$ac_ext <<_ACEOF |
| 3569 | /* end confdefs.h. */ |
| 3570 | $ac_includes_default |
| 3571 | |
| 3572 | #include <$ac_header> |
| 3573 | _ACEOF |
| 3574 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3575 | if { (ac_try="$ac_compile" |
| 3576 | case "(($ac_try" in |
| 3577 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3578 | *) ac_try_echo=$ac_try;; |
| 3579 | esac |
| 3580 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3581 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3582 | ac_status=$? |
| 3583 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3584 | rm -f conftest.er1 |
| 3585 | cat conftest.err >&5 |
| 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3587 | (exit $ac_status); } && { |
| 3588 | test -z "$ac_c_werror_flag" || |
| 3589 | test ! -s conftest.err |
| 3590 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3591 | eval "$as_ac_Header=yes" |
| 3592 | else |
| 3593 | echo "$as_me: failed program was:" >&5 |
| 3594 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3595 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3596 | eval "$as_ac_Header=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3597 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3598 | |
| 3599 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3600 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3601 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 3602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 3603 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3605 | cat >>confdefs.h <<_ACEOF |
| 3606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3607 | _ACEOF |
| 3608 | |
| 3609 | fi |
| 3610 | |
| 3611 | done |
| 3612 | |
| 3613 | |
| 3614 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3615 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3616 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3617 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3619 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3620 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3621 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3622 | else |
| 3623 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3624 | { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5 |
| 3625 | echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3626 | cat >conftest.$ac_ext <<_ACEOF |
| 3627 | /* confdefs.h. */ |
| 3628 | _ACEOF |
| 3629 | cat confdefs.h >>conftest.$ac_ext |
| 3630 | cat >>conftest.$ac_ext <<_ACEOF |
| 3631 | /* end confdefs.h. */ |
| 3632 | $ac_includes_default |
| 3633 | #include <linux/fs.h> |
| 3634 | _ACEOF |
| 3635 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3636 | if { (ac_try="$ac_compile" |
| 3637 | case "(($ac_try" in |
| 3638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3639 | *) ac_try_echo=$ac_try;; |
| 3640 | esac |
| 3641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3642 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3643 | ac_status=$? |
| 3644 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3645 | rm -f conftest.er1 |
| 3646 | cat conftest.err >&5 |
| 3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3648 | (exit $ac_status); } && { |
| 3649 | test -z "$ac_c_werror_flag" || |
| 3650 | test ! -s conftest.err |
| 3651 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3652 | ac_header_compiler=yes |
| 3653 | else |
| 3654 | echo "$as_me: failed program was:" >&5 |
| 3655 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3656 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3657 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3658 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3659 | |
| 3660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3661 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3662 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3663 | |
| 3664 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3665 | { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5 |
| 3666 | echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3667 | cat >conftest.$ac_ext <<_ACEOF |
| 3668 | /* confdefs.h. */ |
| 3669 | _ACEOF |
| 3670 | cat confdefs.h >>conftest.$ac_ext |
| 3671 | cat >>conftest.$ac_ext <<_ACEOF |
| 3672 | /* end confdefs.h. */ |
| 3673 | #include <linux/fs.h> |
| 3674 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3675 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 3676 | case "(($ac_try" in |
| 3677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3678 | *) ac_try_echo=$ac_try;; |
| 3679 | esac |
| 3680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 3681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3682 | ac_status=$? |
| 3683 | grep -v '^ *+' conftest.er1 >conftest.err |
| 3684 | rm -f conftest.er1 |
| 3685 | cat conftest.err >&5 |
| 3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3687 | (exit $ac_status); } >/dev/null && { |
| 3688 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 3689 | test ! -s conftest.err |
| 3690 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3691 | ac_header_preproc=yes |
| 3692 | else |
| 3693 | echo "$as_me: failed program was:" >&5 |
| 3694 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3695 | |
| 3696 | ac_header_preproc=no |
| 3697 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3698 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3699 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3700 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3701 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3702 | |
| 3703 | # So? What about this header? |
| 3704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 3705 | yes:no: ) |
| 3706 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3707 | echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3708 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5 |
| 3709 | echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;} |
| 3710 | ac_header_preproc=yes |
| 3711 | ;; |
| 3712 | no:yes:* ) |
| 3713 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5 |
| 3714 | echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;} |
| 3715 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5 |
| 3716 | echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;} |
| 3717 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5 |
| 3718 | echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;} |
| 3719 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5 |
| 3720 | echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;} |
| 3721 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5 |
| 3722 | echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;} |
| 3723 | { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5 |
| 3724 | 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] | 3725 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3726 | ;; |
| 3727 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3728 | { echo "$as_me:$LINENO: checking for linux/fs.h" >&5 |
| 3729 | echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3730 | if test "${ac_cv_header_linux_fs_h+set}" = set; then |
| 3731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3732 | else |
| 3733 | ac_cv_header_linux_fs_h=$ac_header_preproc |
| 3734 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3735 | { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5 |
| 3736 | echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3737 | |
| 3738 | fi |
| 3739 | if test $ac_cv_header_linux_fs_h = yes; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3740 | linux_headers=yes |
| 3741 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3742 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3743 | fi |
| 3744 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3745 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3746 | if test "$linux_headers" != yes; then |
| 3747 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 3748 | fi |
| 3749 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3750 | { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5 |
| 3751 | echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3752 | if test "$GCC" = yes |
| 3753 | then |
| 3754 | case "$host_cpu" in |
| 3755 | alpha) addcflags="-mieee" ;; |
| 3756 | esac |
| 3757 | fi |
| 3758 | if test "x$addcflags" != x |
| 3759 | then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3760 | { echo "$as_me:$LINENO: result: $addcflags" >&5 |
| 3761 | echo "${ECHO_T}$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3762 | CFLAGS="$addcflags $CFLAGS" |
| 3763 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3764 | { echo "$as_me:$LINENO: result: (none)" >&5 |
| 3765 | echo "${ECHO_T}(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 3766 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3767 | LIB_EXT=.a |
| 3768 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 3769 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3770 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3771 | # Check whether --with-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3772 | if test "${with_ldopts+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3773 | withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5 |
| 3774 | echo "${ECHO_T}LDFLAGS is $withval" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3775 | LDFLAGS=$withval |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3776 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3777 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3778 | |
| 3779 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3780 | if test "${with_root_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3781 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 3782 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 3783 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3784 | fi |
| 3785 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3786 | if test "${enable_maintainer_mode+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3787 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3788 | then |
| 3789 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3790 | { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5 |
| 3791 | echo "${ECHO_T}Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3792 | else |
| 3793 | MAINTAINER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3794 | { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5 |
| 3795 | echo "${ECHO_T}Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3796 | fi |
| 3797 | |
| 3798 | else |
| 3799 | MAINTAINER_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3800 | { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5 |
| 3801 | echo "${ECHO_T}Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3802 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3803 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 3804 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3805 | |
| 3806 | # Check whether --enable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3807 | if test "${enable_compression+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3808 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3809 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3810 | { echo "$as_me:$LINENO: result: Disabling compression support" >&5 |
| 3811 | echo "${ECHO_T}Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3812 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3813 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3814 | #define ENABLE_COMPRESSION 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3815 | _ACEOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3816 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3817 | { echo "$as_me:$LINENO: result: Enabling compression support" >&5 |
| 3818 | echo "${ECHO_T}Enabling compression support" >&6; } |
| 3819 | { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5 |
| 3820 | echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3821 | fi |
| 3822 | |
| 3823 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3824 | { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5 |
| 3825 | echo "${ECHO_T}Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 3826 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3827 | fi |
| 3828 | |
| 3829 | # Check whether --enable-htree was given. |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3830 | if test "${enable_htree+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3831 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3832 | then |
| 3833 | HTREE_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3834 | { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5 |
| 3835 | echo "${ECHO_T}Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3836 | else |
| 3837 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3838 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3839 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3840 | _ACEOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3841 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3842 | { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5 |
| 3843 | echo "${ECHO_T}Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3844 | fi |
| 3845 | |
| 3846 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3847 | HTREE_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3848 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3849 | #define ENABLE_HTREE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3850 | _ACEOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 3851 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3852 | { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5 |
| 3853 | echo "${ECHO_T}Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3854 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3855 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 3856 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3857 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3858 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 3859 | LDFLAG_DYNAMIC= |
| 3860 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3861 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3862 | if test "${enable_elf_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3863 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3864 | then |
| 3865 | ELF_CMT=# |
| 3866 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3867 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5 |
| 3868 | echo "${ECHO_T}Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3869 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3870 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3871 | ELF_CMT= |
| 3872 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 3873 | case "$host_os" in |
| 3874 | solaris2.*) |
| 3875 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 3876 | ;; |
| 3877 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 3878 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3879 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 3880 | PRIVATE_LIBS_CMT=# |
| 3881 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3882 | { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5 |
| 3883 | echo "${ECHO_T}Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3884 | fi |
| 3885 | |
| 3886 | else |
| 3887 | MAKEFILE_ELF=/dev/null |
| 3888 | ELF_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3889 | { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5 |
| 3890 | echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3891 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3892 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3893 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3894 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3895 | |
| 3896 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 3897 | if test "${enable_bsd_shlibs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3898 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3899 | then |
| 3900 | BSDLIB_CMT=# |
| 3901 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3902 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5 |
| 3903 | echo "${ECHO_T}Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3904 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 3905 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3906 | BSDLIB_CMT= |
| 3907 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 3908 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3909 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 3910 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 3911 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 3912 | LIB_EXT=.dylib |
| 3913 | ;; |
| 3914 | esac |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3915 | { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5 |
| 3916 | echo "${ECHO_T}Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3917 | fi |
| 3918 | |
| 3919 | else |
| 3920 | MAKEFILE_BSDLIB=/dev/null |
| 3921 | BSDLIB_CMT=# |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3922 | { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5 |
| 3923 | echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3925 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3926 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3927 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3928 | |
| 3929 | # Check whether --enable-profile was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3930 | if test "${enable_profile+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3931 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3932 | then |
| 3933 | PROFILE_CMT=# |
| 3934 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3935 | { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5 |
| 3936 | echo "${ECHO_T}Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3937 | else |
| 3938 | PROFILE_CMT= |
| 3939 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 3940 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3941 | { echo "$as_me:$LINENO: result: Building profiling libraries" >&5 |
| 3942 | echo "${ECHO_T}Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3943 | fi |
| 3944 | |
| 3945 | else |
| 3946 | PROFILE_CMT=# |
| 3947 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3948 | { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5 |
| 3949 | echo "${ECHO_T}Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3950 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3951 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3952 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3953 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3954 | |
| 3955 | # Check whether --enable-checker was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3956 | if test "${enable_checker+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3957 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3958 | then |
| 3959 | CHECKER_CMT=# |
| 3960 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3961 | { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5 |
| 3962 | echo "${ECHO_T}Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3963 | else |
| 3964 | CHECKER_CMT= |
| 3965 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3966 | { echo "$as_me:$LINENO: result: Building checker libraries" >&5 |
| 3967 | echo "${ECHO_T}Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3968 | fi |
| 3969 | |
| 3970 | else |
| 3971 | CHECKER_CMT=# |
| 3972 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3973 | { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5 |
| 3974 | echo "${ECHO_T}Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3975 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3976 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 3981 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3982 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 3983 | |
| 3984 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3985 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 3986 | if test "${enable_jbd_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3987 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3988 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3989 | { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5 |
| 3990 | echo "${ECHO_T}Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [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 | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 3993 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3994 | _ACEOF |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 3995 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 3996 | { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5 |
| 3997 | echo "${ECHO_T}Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [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 journal debugging by default" >&5 |
| 4002 | echo "${ECHO_T}Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4003 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4004 | fi |
| 4005 | |
| 4006 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4007 | if test "${enable_blkid_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4008 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4009 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4010 | { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5 |
| 4011 | echo "${ECHO_T}Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [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 | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4014 | #define CONFIG_BLKID_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4015 | _ACEOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4016 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4017 | { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5 |
| 4018 | echo "${ECHO_T}Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [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 blkid debugging by default" >&5 |
| 4023 | echo "${ECHO_T}Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4024 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4025 | fi |
| 4026 | |
| 4027 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4028 | if test "${enable_testio_debug+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4029 | enableval=$enable_testio_debug; if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4030 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4031 | { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5 |
| 4032 | echo "${ECHO_T}Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4033 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4034 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4035 | TEST_IO_CMT= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4036 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4037 | #define CONFIG_TESTIO_DEBUG 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4038 | _ACEOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4039 | |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4040 | { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5 |
| 4041 | echo "${ECHO_T}Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4042 | fi |
| 4043 | |
| 4044 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4045 | { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5 |
| 4046 | echo "${ECHO_T}Enabling testio debugging by default" >&6; } |
| 4047 | cat >>confdefs.h <<\_ACEOF |
| 4048 | #define CONFIG_TESTIO_DEBUG 1 |
| 4049 | _ACEOF |
| 4050 | |
| 4051 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4052 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4053 | fi |
| 4054 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4055 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4056 | |
| 4057 | |
| 4058 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4059 | if test -n "$ac_tool_prefix"; then |
| 4060 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4061 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 4062 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4063 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4064 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
| 4065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4066 | else |
| 4067 | case $PKG_CONFIG in |
| 4068 | [\\/]* | ?:[\\/]*) |
| 4069 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4070 | ;; |
| 4071 | *) |
| 4072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4073 | for as_dir in $PATH |
| 4074 | do |
| 4075 | IFS=$as_save_IFS |
| 4076 | test -z "$as_dir" && as_dir=. |
| 4077 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4079 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4080 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4081 | break 2 |
| 4082 | fi |
| 4083 | done |
| 4084 | done |
| 4085 | IFS=$as_save_IFS |
| 4086 | |
| 4087 | ;; |
| 4088 | esac |
| 4089 | fi |
| 4090 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4091 | if test -n "$PKG_CONFIG"; then |
| 4092 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
| 4093 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
| 4094 | else |
| 4095 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4096 | echo "${ECHO_T}no" >&6; } |
| 4097 | fi |
| 4098 | |
| 4099 | |
| 4100 | fi |
| 4101 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4102 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4103 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4104 | set dummy pkg-config; ac_word=$2 |
| 4105 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 4107 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
| 4108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4109 | else |
| 4110 | case $ac_pt_PKG_CONFIG in |
| 4111 | [\\/]* | ?:[\\/]*) |
| 4112 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4113 | ;; |
| 4114 | *) |
| 4115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4116 | for as_dir in $PATH |
| 4117 | do |
| 4118 | IFS=$as_save_IFS |
| 4119 | test -z "$as_dir" && as_dir=. |
| 4120 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4122 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 4123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4124 | break 2 |
| 4125 | fi |
| 4126 | done |
| 4127 | done |
| 4128 | IFS=$as_save_IFS |
| 4129 | |
| 4130 | ;; |
| 4131 | esac |
| 4132 | fi |
| 4133 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4134 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 4135 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
| 4136 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
| 4137 | else |
| 4138 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4139 | echo "${ECHO_T}no" >&6; } |
| 4140 | fi |
| 4141 | |
| 4142 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4143 | PKG_CONFIG="" |
| 4144 | else |
| 4145 | case $cross_compiling:$ac_tool_warned in |
| 4146 | yes:) |
| 4147 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 4148 | whose name does not start with the host triplet. If you think this |
| 4149 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 4150 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 4151 | whose name does not start with the host triplet. If you think this |
| 4152 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 4153 | ac_tool_warned=yes ;; |
| 4154 | esac |
| 4155 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4156 | fi |
| 4157 | else |
| 4158 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4159 | fi |
| 4160 | |
| 4161 | fi |
| 4162 | if test -n "$PKG_CONFIG"; then |
| 4163 | _pkg_min_version=0.9.0 |
| 4164 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 4165 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
| 4166 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 4167 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4168 | echo "${ECHO_T}yes" >&6; } |
| 4169 | else |
| 4170 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4171 | echo "${ECHO_T}no" >&6; } |
| 4172 | PKG_CONFIG="" |
| 4173 | fi |
| 4174 | |
| 4175 | fi |
| 4176 | LIBBLKID= |
| 4177 | DEPLIBBLKID= |
| 4178 | STATIC_LIBBLKID= |
| 4179 | DEPSTATIC_LIBBLKID= |
| 4180 | PROFILED_LIBBLKID= |
| 4181 | DEPPROFILED_LIBBLKID= |
| 4182 | BLKID_CMT= |
| 4183 | # Check whether --enable-libblkid was given. |
| 4184 | if test "${enable_libblkid+set}" = set; then |
| 4185 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 4186 | then |
| 4187 | if test -z "$PKG_CONFIG"; then |
| 4188 | { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5 |
| 4189 | echo "$as_me: error: pkg-config not installed; please install it." >&2;} |
| 4190 | { (exit 1); exit 1; }; } |
| 4191 | fi |
| 4192 | |
| 4193 | { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5 |
| 4194 | echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; } |
| 4195 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then |
| 4196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4197 | else |
| 4198 | ac_check_lib_save_LIBS=$LIBS |
| 4199 | LIBS="-lblkid $LIBBLKID $LIBS" |
| 4200 | cat >conftest.$ac_ext <<_ACEOF |
| 4201 | /* confdefs.h. */ |
| 4202 | _ACEOF |
| 4203 | cat confdefs.h >>conftest.$ac_ext |
| 4204 | cat >>conftest.$ac_ext <<_ACEOF |
| 4205 | /* end confdefs.h. */ |
| 4206 | |
| 4207 | /* Override any GCC internal prototype to avoid an error. |
| 4208 | Use char because int might match the return type of a GCC |
| 4209 | builtin and then its argument prototype would still apply. */ |
| 4210 | #ifdef __cplusplus |
| 4211 | extern "C" |
| 4212 | #endif |
| 4213 | char blkid_get_cache (); |
| 4214 | int |
| 4215 | main () |
| 4216 | { |
| 4217 | return blkid_get_cache (); |
| 4218 | ; |
| 4219 | return 0; |
| 4220 | } |
| 4221 | _ACEOF |
| 4222 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4223 | if { (ac_try="$ac_link" |
| 4224 | case "(($ac_try" in |
| 4225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4226 | *) ac_try_echo=$ac_try;; |
| 4227 | esac |
| 4228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4229 | (eval "$ac_link") 2>conftest.er1 |
| 4230 | ac_status=$? |
| 4231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4232 | rm -f conftest.er1 |
| 4233 | cat conftest.err >&5 |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); } && { |
| 4236 | test -z "$ac_c_werror_flag" || |
| 4237 | test ! -s conftest.err |
| 4238 | } && test -s conftest$ac_exeext && |
| 4239 | $as_test_x conftest$ac_exeext; then |
| 4240 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 4241 | else |
| 4242 | echo "$as_me: failed program was:" >&5 |
| 4243 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4244 | |
| 4245 | ac_cv_lib_blkid_blkid_get_cache=no |
| 4246 | fi |
| 4247 | |
| 4248 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 4249 | conftest$ac_exeext conftest.$ac_ext |
| 4250 | LIBS=$ac_check_lib_save_LIBS |
| 4251 | fi |
| 4252 | { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
| 4253 | echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
| 4254 | if test $ac_cv_lib_blkid_blkid_get_cache = yes; then |
| 4255 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 4256 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 4257 | else |
| 4258 | { { echo "$as_me:$LINENO: error: external blkid library not found" >&5 |
| 4259 | echo "$as_me: error: external blkid library not found" >&2;} |
| 4260 | { (exit 1); exit 1; }; } |
| 4261 | fi |
| 4262 | |
| 4263 | BLKID_CMT=# |
| 4264 | { echo "$as_me:$LINENO: result: Disabling private blkid library" >&5 |
| 4265 | echo "${ECHO_T}Disabling private blkid library" >&6; } |
| 4266 | else |
| 4267 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4268 | DEPLIBBLKID=$LIBBLKID |
| 4269 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4270 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4271 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4272 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4273 | cat >>confdefs.h <<\_ACEOF |
| 4274 | #define CONFIG_BUILD_FINDFS 1 |
| 4275 | _ACEOF |
| 4276 | |
| 4277 | { echo "$as_me:$LINENO: result: Enabling private blkid library" >&5 |
| 4278 | echo "${ECHO_T}Enabling private blkid library" >&6; } |
| 4279 | fi |
| 4280 | |
| 4281 | else |
| 4282 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 4283 | DEPLIBBLKID=$LIBBLKID |
| 4284 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 4285 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 4286 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 4287 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
| 4288 | cat >>confdefs.h <<\_ACEOF |
| 4289 | #define CONFIG_BUILD_FINDFS 1 |
| 4290 | _ACEOF |
| 4291 | |
| 4292 | { echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5 |
| 4293 | echo "${ECHO_T}Enabling private blkid library by default" >&6; } |
| 4294 | |
| 4295 | fi |
| 4296 | |
| 4297 | |
| 4298 | |
| 4299 | |
| 4300 | |
| 4301 | |
| 4302 | |
| 4303 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4304 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4305 | if test "${enable_debugfs+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4306 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4307 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4308 | { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5 |
| 4309 | echo "${ECHO_T}Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4310 | DEBUGFS_CMT="#" |
| 4311 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4312 | DEBUGFS_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4313 | { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5 |
| 4314 | echo "${ECHO_T}Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4315 | fi |
| 4316 | |
| 4317 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4318 | { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5 |
| 4319 | echo "${ECHO_T}Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4320 | DEBUGFS_CMT= |
| 4321 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4322 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4324 | |
| 4325 | # Check whether --enable-imager was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4326 | if test "${enable_imager+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4327 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4328 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4329 | { echo "$as_me:$LINENO: result: Disabling e2image support" >&5 |
| 4330 | echo "${ECHO_T}Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4331 | IMAGER_CMT="#" |
| 4332 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4333 | IMAGER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4334 | { echo "$as_me:$LINENO: result: Enabling e2image support" >&5 |
| 4335 | echo "${ECHO_T}Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4336 | fi |
| 4337 | |
| 4338 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4339 | { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5 |
| 4340 | echo "${ECHO_T}Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4341 | IMAGER_CMT= |
| 4342 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4343 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4344 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4345 | |
| 4346 | # Check whether --enable-resizer was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4347 | if test "${enable_resizer+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4348 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4349 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4350 | { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5 |
| 4351 | echo "${ECHO_T}Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4352 | RESIZER_CMT="#" |
| 4353 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4354 | RESIZER_CMT= |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4355 | { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5 |
| 4356 | echo "${ECHO_T}Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4357 | fi |
| 4358 | |
| 4359 | else |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4360 | { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5 |
| 4361 | echo "${ECHO_T}Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4362 | RESIZER_CMT= |
| 4363 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4364 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4365 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4366 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4367 | # Check whether --enable-fsck was given. |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4368 | if test "${enable_fsck+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4369 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4370 | then |
| 4371 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4372 | { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5 |
| 4373 | echo "${ECHO_T}Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4374 | else |
| 4375 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4376 | { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5 |
| 4377 | echo "${ECHO_T}Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4378 | fi |
| 4379 | |
| 4380 | else |
| 4381 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 4382 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4383 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4384 | { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5 |
| 4385 | echo "${ECHO_T}Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4386 | ;; |
| 4387 | *) |
| 4388 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4389 | { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5 |
| 4390 | echo "${ECHO_T}Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4391 | esac |
| 4392 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4393 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4394 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4395 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4396 | |
| 4397 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4398 | if test "${enable_e2initrd_helper+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4399 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4400 | then |
| 4401 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4402 | { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5 |
| 4403 | echo "${ECHO_T}Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4404 | else |
| 4405 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4406 | { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5 |
| 4407 | echo "${ECHO_T}Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4408 | fi |
| 4409 | |
| 4410 | else |
| 4411 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4412 | { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5 |
| 4413 | echo "${ECHO_T}Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4414 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4415 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 4416 | |
| 4417 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4418 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4419 | # Check whether --enable-tls was given. |
| 4420 | if test "${enable_tls+set}" = set; then |
| 4421 | enableval=$enable_tls; if test "$enableval" = "no" |
| 4422 | then |
| 4423 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4424 | { echo "$as_me:$LINENO: result: Disabling thread local support" >&5 |
| 4425 | echo "${ECHO_T}Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4426 | else |
| 4427 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4428 | { echo "$as_me:$LINENO: result: Enabling thread local support" >&5 |
| 4429 | echo "${ECHO_T}Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4430 | fi |
| 4431 | |
| 4432 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4433 | if test -n "$WITH_DIET_LIBC" |
| 4434 | then |
| 4435 | try_tls="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4436 | { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5 |
| 4437 | 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] | 4438 | else |
| 4439 | try_tls="yes" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4440 | { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5 |
| 4441 | echo "${ECHO_T}Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 4442 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 4443 | |
| 4444 | fi |
| 4445 | |
| 4446 | if test "$try_tls" = "yes" |
| 4447 | then |
| 4448 | |
| 4449 | { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5 |
| 4450 | echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; } |
| 4451 | if test "${ac_cv_tls+set}" = set; then |
| 4452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4453 | else |
| 4454 | |
| 4455 | ax_tls_keywords="__thread __declspec(thread) none" |
| 4456 | for ax_tls_keyword in $ax_tls_keywords; do |
| 4457 | case $ax_tls_keyword in |
| 4458 | none) ac_cv_tls=none ; break ;; |
| 4459 | *) |
| 4460 | cat >conftest.$ac_ext <<_ACEOF |
| 4461 | /* confdefs.h. */ |
| 4462 | _ACEOF |
| 4463 | cat confdefs.h >>conftest.$ac_ext |
| 4464 | cat >>conftest.$ac_ext <<_ACEOF |
| 4465 | /* end confdefs.h. */ |
| 4466 | #include <stdlib.h> |
| 4467 | static void |
| 4468 | foo(void) { |
| 4469 | static $ax_tls_keyword int bar; |
| 4470 | exit(1); |
| 4471 | } |
| 4472 | int |
| 4473 | main () |
| 4474 | { |
| 4475 | |
| 4476 | ; |
| 4477 | return 0; |
| 4478 | } |
| 4479 | _ACEOF |
| 4480 | rm -f conftest.$ac_objext |
| 4481 | if { (ac_try="$ac_compile" |
| 4482 | case "(($ac_try" in |
| 4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4484 | *) ac_try_echo=$ac_try;; |
| 4485 | esac |
| 4486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 4487 | (eval "$ac_compile") 2>conftest.er1 |
| 4488 | ac_status=$? |
| 4489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4490 | rm -f conftest.er1 |
| 4491 | cat conftest.err >&5 |
| 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4493 | (exit $ac_status); } && { |
| 4494 | test -z "$ac_c_werror_flag" || |
| 4495 | test ! -s conftest.err |
| 4496 | } && test -s conftest.$ac_objext; then |
| 4497 | ac_cv_tls=$ax_tls_keyword ; break |
| 4498 | else |
| 4499 | echo "$as_me: failed program was:" >&5 |
| 4500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4501 | |
| 4502 | ac_cv_tls=none |
| 4503 | |
| 4504 | fi |
| 4505 | |
| 4506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4507 | esac |
| 4508 | done |
| 4509 | |
| 4510 | fi |
| 4511 | |
| 4512 | |
| 4513 | if test "$ac_cv_tls" != "none"; then |
| 4514 | |
| 4515 | cat >>confdefs.h <<_ACEOF |
| 4516 | #define TLS $ac_cv_tls |
| 4517 | _ACEOF |
| 4518 | |
| 4519 | fi |
| 4520 | { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5 |
| 4521 | echo "${ECHO_T}$ac_cv_tls" >&6; } |
| 4522 | |
| 4523 | fi |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4524 | # Check whether --enable-uuidd was given. |
| 4525 | if test "${enable_uuidd+set}" = set; then |
| 4526 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 4527 | then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4528 | { echo "$as_me:$LINENO: result: Not building uuidd" >&5 |
| 4529 | echo "${ECHO_T}Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4530 | UUIDD_CMT="#" |
| 4531 | else |
| 4532 | cat >>confdefs.h <<\_ACEOF |
| 4533 | #define USE_UUIDD 1 |
| 4534 | _ACEOF |
| 4535 | |
| 4536 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4537 | { echo "$as_me:$LINENO: result: Building uuidd" >&5 |
| 4538 | echo "${ECHO_T}Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4539 | fi |
| 4540 | |
| 4541 | else |
| 4542 | cat >>confdefs.h <<\_ACEOF |
| 4543 | #define USE_UUIDD 1 |
| 4544 | _ACEOF |
| 4545 | |
| 4546 | UUIDD_CMT="" |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 4547 | { echo "$as_me:$LINENO: result: Building uuidd by default" >&5 |
| 4548 | echo "${ECHO_T}Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 4549 | |
| 4550 | fi |
| 4551 | |
| 4552 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4553 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 4554 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4555 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4556 | PACKAGE=e2fsprogs |
| 4557 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4558 | VERSION=0.14.1 |
| 4559 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4560 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4561 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4562 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4563 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4564 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4565 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4566 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4567 | |
| 4568 | |
| 4569 | |
| 4570 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4571 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4572 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 4573 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4574 | 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] | 4575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4576 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4577 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4578 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4579 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4580 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4581 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4582 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4583 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4584 | *@@@%%%=?*=@@@%%%*) |
| 4585 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4586 | *) |
| 4587 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4588 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4589 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4590 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4591 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4592 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 4593 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4594 | SET_MAKE= |
| 4595 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4596 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4597 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4598 | SET_MAKE="MAKE=${MAKE-make}" |
| 4599 | fi |
| 4600 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4601 | # Find a good install program. We prefer a C program (faster), |
| 4602 | # so one script is as good as another. But avoid the broken or |
| 4603 | # incompatible versions: |
| 4604 | # SysV /etc/install, /usr/sbin/install |
| 4605 | # SunOS /usr/etc/install |
| 4606 | # IRIX /sbin/install |
| 4607 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4608 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4609 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4610 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4611 | # 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] | 4612 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4613 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4614 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4615 | 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] | 4616 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4617 | if test "${ac_cv_path_install+set}" = set; then |
| 4618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4619 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4621 | for as_dir in $PATH |
| 4622 | do |
| 4623 | IFS=$as_save_IFS |
| 4624 | test -z "$as_dir" && as_dir=. |
| 4625 | # Account for people who put trailing slashes in PATH elements. |
| 4626 | case $as_dir/ in |
| 4627 | ./ | .// | /cC/* | \ |
| 4628 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4629 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 4630 | /usr/ucb/* ) ;; |
| 4631 | *) |
| 4632 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4633 | # Don't use installbsd from OSF since it installs stuff as root |
| 4634 | # by default. |
| 4635 | for ac_prog in ginstall scoinst install; do |
| 4636 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4637 | 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] | 4638 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4639 | 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] | 4640 | # AIX install. It has an incompatible calling convention. |
| 4641 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4642 | elif test $ac_prog = install && |
| 4643 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4644 | # program-specific install script used by HP pwplus--don't use. |
| 4645 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4646 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4647 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4648 | break 3 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4649 | fi |
| 4650 | fi |
| 4651 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4652 | done |
| 4653 | ;; |
| 4654 | esac |
| 4655 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4656 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4657 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4658 | |
| 4659 | fi |
| 4660 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4661 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4662 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4663 | # As a last resort, use the slow shell script. Don't cache a |
| 4664 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4665 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4666 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4667 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4668 | fi |
| 4669 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4670 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4671 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4672 | |
| 4673 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4674 | # It thinks the first close brace ends the variable substitution. |
| 4675 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4676 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4677 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4678 | |
| 4679 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4680 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4681 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4682 | MKINSTALLDIRS= |
| 4683 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4684 | case "$ac_aux_dir" in |
| 4685 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 4686 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 4687 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4688 | fi |
| 4689 | if test -z "$MKINSTALLDIRS"; then |
| 4690 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 4691 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4692 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4693 | |
| 4694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4695 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 4696 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 4697 | # Check whether --enable-nls was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4698 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4699 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4700 | else |
| 4701 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4702 | fi |
| 4703 | |
| 4704 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 4705 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4706 | |
| 4707 | |
| 4708 | |
| 4709 | |
| 4710 | |
| 4711 | |
| 4712 | # Prepare PATH_SEPARATOR. |
| 4713 | # The user is always right. |
| 4714 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4715 | echo "#! /bin/sh" >conf$$.sh |
| 4716 | echo "exit 0" >>conf$$.sh |
| 4717 | chmod +x conf$$.sh |
| 4718 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4719 | PATH_SEPARATOR=';' |
| 4720 | else |
| 4721 | PATH_SEPARATOR=: |
| 4722 | fi |
| 4723 | rm -f conf$$.sh |
| 4724 | fi |
| 4725 | |
| 4726 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4727 | # as systems may use methods other than mode bits to determine executability. |
| 4728 | cat >conf$$.file <<_ASEOF |
| 4729 | #! /bin/sh |
| 4730 | exit 0 |
| 4731 | _ASEOF |
| 4732 | chmod +x conf$$.file |
| 4733 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4734 | ac_executable_p="test -x" |
| 4735 | else |
| 4736 | ac_executable_p="test -f" |
| 4737 | fi |
| 4738 | rm -f conf$$.file |
| 4739 | |
| 4740 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 4741 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4742 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4744 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
| 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4746 | else |
| 4747 | case "$MSGFMT" in |
| 4748 | [\\/]* | ?:[\\/]*) |
| 4749 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 4750 | ;; |
| 4751 | *) |
| 4752 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4753 | for ac_dir in $PATH; do |
| 4754 | IFS="$ac_save_IFS" |
| 4755 | test -z "$ac_dir" && ac_dir=. |
| 4756 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4757 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4758 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 4759 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4760 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 4761 | break 2 |
| 4762 | fi |
| 4763 | fi |
| 4764 | done |
| 4765 | done |
| 4766 | IFS="$ac_save_IFS" |
| 4767 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 4768 | ;; |
| 4769 | esac |
| 4770 | fi |
| 4771 | MSGFMT="$ac_cv_path_MSGFMT" |
| 4772 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4773 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
| 4774 | echo "${ECHO_T}$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4775 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4776 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4777 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4778 | fi |
| 4779 | |
| 4780 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 4781 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4782 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4784 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
| 4785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4786 | else |
| 4787 | case $GMSGFMT in |
| 4788 | [\\/]* | ?:[\\/]*) |
| 4789 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 4790 | ;; |
| 4791 | *) |
| 4792 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4793 | for as_dir in $PATH |
| 4794 | do |
| 4795 | IFS=$as_save_IFS |
| 4796 | test -z "$as_dir" && as_dir=. |
| 4797 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 4798 | 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] | 4799 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
| 4800 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4801 | break 2 |
| 4802 | fi |
| 4803 | done |
| 4804 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4805 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4806 | |
| 4807 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 4808 | ;; |
| 4809 | esac |
| 4810 | fi |
| 4811 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4812 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4813 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
| 4814 | echo "${ECHO_T}$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4815 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4816 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4817 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4818 | fi |
| 4819 | |
| 4820 | |
| 4821 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4822 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4823 | # Prepare PATH_SEPARATOR. |
| 4824 | # The user is always right. |
| 4825 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4826 | echo "#! /bin/sh" >conf$$.sh |
| 4827 | echo "exit 0" >>conf$$.sh |
| 4828 | chmod +x conf$$.sh |
| 4829 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4830 | PATH_SEPARATOR=';' |
| 4831 | else |
| 4832 | PATH_SEPARATOR=: |
| 4833 | fi |
| 4834 | rm -f conf$$.sh |
| 4835 | fi |
| 4836 | |
| 4837 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4838 | # as systems may use methods other than mode bits to determine executability. |
| 4839 | cat >conf$$.file <<_ASEOF |
| 4840 | #! /bin/sh |
| 4841 | exit 0 |
| 4842 | _ASEOF |
| 4843 | chmod +x conf$$.file |
| 4844 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4845 | ac_executable_p="test -x" |
| 4846 | else |
| 4847 | ac_executable_p="test -f" |
| 4848 | fi |
| 4849 | rm -f conf$$.file |
| 4850 | |
| 4851 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 4852 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4853 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4855 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
| 4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4857 | else |
| 4858 | case "$XGETTEXT" in |
| 4859 | [\\/]* | ?:[\\/]*) |
| 4860 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 4861 | ;; |
| 4862 | *) |
| 4863 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4864 | for ac_dir in $PATH; do |
| 4865 | IFS="$ac_save_IFS" |
| 4866 | test -z "$ac_dir" && ac_dir=. |
| 4867 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4868 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4869 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4870 | (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 |
| 4871 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 4872 | break 2 |
| 4873 | fi |
| 4874 | fi |
| 4875 | done |
| 4876 | done |
| 4877 | IFS="$ac_save_IFS" |
| 4878 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 4879 | ;; |
| 4880 | esac |
| 4881 | fi |
| 4882 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 4883 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4884 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
| 4885 | echo "${ECHO_T}$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4886 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4887 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4888 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4889 | fi |
| 4890 | |
| 4891 | rm -f messages.po |
| 4892 | |
| 4893 | |
| 4894 | # Prepare PATH_SEPARATOR. |
| 4895 | # The user is always right. |
| 4896 | if test "${PATH_SEPARATOR+set}" != set; then |
| 4897 | echo "#! /bin/sh" >conf$$.sh |
| 4898 | echo "exit 0" >>conf$$.sh |
| 4899 | chmod +x conf$$.sh |
| 4900 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 4901 | PATH_SEPARATOR=';' |
| 4902 | else |
| 4903 | PATH_SEPARATOR=: |
| 4904 | fi |
| 4905 | rm -f conf$$.sh |
| 4906 | fi |
| 4907 | |
| 4908 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 4909 | # as systems may use methods other than mode bits to determine executability. |
| 4910 | cat >conf$$.file <<_ASEOF |
| 4911 | #! /bin/sh |
| 4912 | exit 0 |
| 4913 | _ASEOF |
| 4914 | chmod +x conf$$.file |
| 4915 | if test -x conf$$.file >/dev/null 2>&1; then |
| 4916 | ac_executable_p="test -x" |
| 4917 | else |
| 4918 | ac_executable_p="test -f" |
| 4919 | fi |
| 4920 | rm -f conf$$.file |
| 4921 | |
| 4922 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 4923 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4924 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4926 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
| 4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4928 | else |
| 4929 | case "$MSGMERGE" in |
| 4930 | [\\/]* | ?:[\\/]*) |
| 4931 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 4932 | ;; |
| 4933 | *) |
| 4934 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 4935 | for ac_dir in $PATH; do |
| 4936 | IFS="$ac_save_IFS" |
| 4937 | test -z "$ac_dir" && ac_dir=. |
| 4938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4939 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 4940 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 4941 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 4942 | break 2 |
| 4943 | fi |
| 4944 | fi |
| 4945 | done |
| 4946 | done |
| 4947 | IFS="$ac_save_IFS" |
| 4948 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 4949 | ;; |
| 4950 | esac |
| 4951 | fi |
| 4952 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 4953 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4954 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
| 4955 | echo "${ECHO_T}$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4956 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4957 | { echo "$as_me:$LINENO: result: no" >&5 |
| 4958 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4959 | fi |
| 4960 | |
| 4961 | |
| 4962 | if test "$GMSGFMT" != ":"; then |
| 4963 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 4964 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 4965 | : ; |
| 4966 | else |
| 4967 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4968 | { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
| 4969 | 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] | 4970 | GMSGFMT=":" |
| 4971 | fi |
| 4972 | fi |
| 4973 | |
| 4974 | if test "$XGETTEXT" != ":"; then |
| 4975 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 4976 | (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 |
| 4977 | : ; |
| 4978 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4979 | { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
| 4980 | 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] | 4981 | XGETTEXT=":" |
| 4982 | fi |
| 4983 | rm -f messages.po |
| 4984 | fi |
| 4985 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4986 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4987 | |
| 4988 | |
| 4989 | if test -n "$ac_tool_prefix"; then |
| 4990 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 4991 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4992 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4994 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 4995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4996 | else |
| 4997 | if test -n "$RANLIB"; then |
| 4998 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4999 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5001 | for as_dir in $PATH |
| 5002 | do |
| 5003 | IFS=$as_save_IFS |
| 5004 | test -z "$as_dir" && as_dir=. |
| 5005 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5006 | 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] | 5007 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5009 | break 2 |
| 5010 | fi |
| 5011 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5012 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5013 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5014 | |
| 5015 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5016 | fi |
| 5017 | RANLIB=$ac_cv_prog_RANLIB |
| 5018 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5019 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 5020 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5021 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5022 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5023 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5024 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5025 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5026 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5027 | fi |
| 5028 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5029 | ac_ct_RANLIB=$RANLIB |
| 5030 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5031 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 5033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5034 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 5035 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5036 | else |
| 5037 | if test -n "$ac_ct_RANLIB"; then |
| 5038 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5039 | else |
| 5040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5041 | for as_dir in $PATH |
| 5042 | do |
| 5043 | IFS=$as_save_IFS |
| 5044 | test -z "$as_dir" && as_dir=. |
| 5045 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5046 | 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] | 5047 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5049 | break 2 |
| 5050 | fi |
| 5051 | done |
| 5052 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5053 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5054 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5055 | fi |
| 5056 | fi |
| 5057 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5058 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5059 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 5060 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5061 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5062 | { echo "$as_me:$LINENO: result: no" >&5 |
| 5063 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5064 | fi |
| 5065 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5066 | if test "x$ac_ct_RANLIB" = x; then |
| 5067 | RANLIB=":" |
| 5068 | else |
| 5069 | case $cross_compiling:$ac_tool_warned in |
| 5070 | yes:) |
| 5071 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 5072 | whose name does not start with the host triplet. If you think this |
| 5073 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 5074 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 5075 | whose name does not start with the host triplet. If you think this |
| 5076 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 5077 | ac_tool_warned=yes ;; |
| 5078 | esac |
| 5079 | RANLIB=$ac_ct_RANLIB |
| 5080 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5081 | else |
| 5082 | RANLIB="$ac_cv_prog_RANLIB" |
| 5083 | fi |
| 5084 | |
| 5085 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5086 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
| 5087 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5088 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
| 5089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5090 | else |
| 5091 | ac_check_lib_save_LIBS=$LIBS |
| 5092 | LIBS="-lcposix $LIBS" |
| 5093 | cat >conftest.$ac_ext <<_ACEOF |
| 5094 | /* confdefs.h. */ |
| 5095 | _ACEOF |
| 5096 | cat confdefs.h >>conftest.$ac_ext |
| 5097 | cat >>conftest.$ac_ext <<_ACEOF |
| 5098 | /* end confdefs.h. */ |
| 5099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5100 | /* Override any GCC internal prototype to avoid an error. |
| 5101 | Use char because int might match the return type of a GCC |
| 5102 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5103 | #ifdef __cplusplus |
| 5104 | extern "C" |
| 5105 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5106 | char strerror (); |
| 5107 | int |
| 5108 | main () |
| 5109 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5110 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5111 | ; |
| 5112 | return 0; |
| 5113 | } |
| 5114 | _ACEOF |
| 5115 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5116 | if { (ac_try="$ac_link" |
| 5117 | case "(($ac_try" in |
| 5118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5119 | *) ac_try_echo=$ac_try;; |
| 5120 | esac |
| 5121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5122 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5123 | ac_status=$? |
| 5124 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5125 | rm -f conftest.er1 |
| 5126 | cat conftest.err >&5 |
| 5127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5128 | (exit $ac_status); } && { |
| 5129 | test -z "$ac_c_werror_flag" || |
| 5130 | test ! -s conftest.err |
| 5131 | } && test -s conftest$ac_exeext && |
| 5132 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5133 | ac_cv_lib_cposix_strerror=yes |
| 5134 | else |
| 5135 | echo "$as_me: failed program was:" >&5 |
| 5136 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5138 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5139 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5140 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5141 | 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] | 5142 | conftest$ac_exeext conftest.$ac_ext |
| 5143 | LIBS=$ac_check_lib_save_LIBS |
| 5144 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5145 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
| 5146 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5147 | if test $ac_cv_lib_cposix_strerror = yes; then |
| 5148 | LIBS="$LIBS -lcposix" |
| 5149 | fi |
| 5150 | |
| 5151 | |
| 5152 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5153 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 5154 | 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] | 5155 | if test "${ac_cv_c_const+set}" = set; then |
| 5156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5157 | else |
| 5158 | cat >conftest.$ac_ext <<_ACEOF |
| 5159 | /* confdefs.h. */ |
| 5160 | _ACEOF |
| 5161 | cat confdefs.h >>conftest.$ac_ext |
| 5162 | cat >>conftest.$ac_ext <<_ACEOF |
| 5163 | /* end confdefs.h. */ |
| 5164 | |
| 5165 | int |
| 5166 | main () |
| 5167 | { |
| 5168 | /* FIXME: Include the comments suggested by Paul. */ |
| 5169 | #ifndef __cplusplus |
| 5170 | /* Ultrix mips cc rejects this. */ |
| 5171 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5172 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5173 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5174 | char const *const *pcpcc; |
| 5175 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5176 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5177 | struct point {int x, y;}; |
| 5178 | static struct point const zero = {0,0}; |
| 5179 | /* AIX XL C 1.02.0.0 rejects this. |
| 5180 | It does not let you subtract one const X* pointer from another in |
| 5181 | an arm of an if-expression whose if-part is not a constant |
| 5182 | expression */ |
| 5183 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5184 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5185 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5186 | ++pcpcc; |
| 5187 | ppc = (char**) pcpcc; |
| 5188 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5189 | { /* SCO 3.2v4 cc rejects this. */ |
| 5190 | char *t; |
| 5191 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5192 | |
| 5193 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5194 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5195 | } |
| 5196 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5197 | int x[] = {25, 17}; |
| 5198 | const int *foo = &x[0]; |
| 5199 | ++foo; |
| 5200 | } |
| 5201 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5202 | typedef const int *iptr; |
| 5203 | iptr p = 0; |
| 5204 | ++p; |
| 5205 | } |
| 5206 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5207 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5208 | struct s { int j; const int *ap[3]; }; |
| 5209 | struct s *b; b->j = 5; |
| 5210 | } |
| 5211 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5212 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5213 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5214 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5215 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5216 | #endif |
| 5217 | |
| 5218 | ; |
| 5219 | return 0; |
| 5220 | } |
| 5221 | _ACEOF |
| 5222 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5223 | if { (ac_try="$ac_compile" |
| 5224 | case "(($ac_try" in |
| 5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5226 | *) ac_try_echo=$ac_try;; |
| 5227 | esac |
| 5228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5229 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5230 | ac_status=$? |
| 5231 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5232 | rm -f conftest.er1 |
| 5233 | cat conftest.err >&5 |
| 5234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5235 | (exit $ac_status); } && { |
| 5236 | test -z "$ac_c_werror_flag" || |
| 5237 | test ! -s conftest.err |
| 5238 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5239 | ac_cv_c_const=yes |
| 5240 | else |
| 5241 | echo "$as_me: failed program was:" >&5 |
| 5242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5243 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5244 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5245 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5246 | |
| 5247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5248 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5249 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 5250 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5251 | if test $ac_cv_c_const = no; then |
| 5252 | |
| 5253 | cat >>confdefs.h <<\_ACEOF |
| 5254 | #define const |
| 5255 | _ACEOF |
| 5256 | |
| 5257 | fi |
| 5258 | |
| 5259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5260 | { echo "$as_me:$LINENO: checking for signed" >&5 |
| 5261 | echo $ECHO_N "checking for signed... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5262 | if test "${bh_cv_c_signed+set}" = set; then |
| 5263 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5264 | else |
| 5265 | cat >conftest.$ac_ext <<_ACEOF |
| 5266 | /* confdefs.h. */ |
| 5267 | _ACEOF |
| 5268 | cat confdefs.h >>conftest.$ac_ext |
| 5269 | cat >>conftest.$ac_ext <<_ACEOF |
| 5270 | /* end confdefs.h. */ |
| 5271 | |
| 5272 | int |
| 5273 | main () |
| 5274 | { |
| 5275 | signed char x; |
| 5276 | ; |
| 5277 | return 0; |
| 5278 | } |
| 5279 | _ACEOF |
| 5280 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5281 | if { (ac_try="$ac_compile" |
| 5282 | case "(($ac_try" in |
| 5283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5284 | *) ac_try_echo=$ac_try;; |
| 5285 | esac |
| 5286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5287 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5288 | ac_status=$? |
| 5289 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5290 | rm -f conftest.er1 |
| 5291 | cat conftest.err >&5 |
| 5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5293 | (exit $ac_status); } && { |
| 5294 | test -z "$ac_c_werror_flag" || |
| 5295 | test ! -s conftest.err |
| 5296 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5297 | bh_cv_c_signed=yes |
| 5298 | else |
| 5299 | echo "$as_me: failed program was:" >&5 |
| 5300 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5302 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5304 | |
| 5305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5306 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5307 | { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5 |
| 5308 | echo "${ECHO_T}$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5309 | if test $bh_cv_c_signed = no; then |
| 5310 | |
| 5311 | cat >>confdefs.h <<\_ACEOF |
| 5312 | #define signed |
| 5313 | _ACEOF |
| 5314 | |
| 5315 | fi |
| 5316 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5317 | { echo "$as_me:$LINENO: checking for inline" >&5 |
| 5318 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5319 | if test "${ac_cv_c_inline+set}" = set; then |
| 5320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5321 | else |
| 5322 | ac_cv_c_inline=no |
| 5323 | for ac_kw in inline __inline__ __inline; do |
| 5324 | cat >conftest.$ac_ext <<_ACEOF |
| 5325 | /* confdefs.h. */ |
| 5326 | _ACEOF |
| 5327 | cat confdefs.h >>conftest.$ac_ext |
| 5328 | cat >>conftest.$ac_ext <<_ACEOF |
| 5329 | /* end confdefs.h. */ |
| 5330 | #ifndef __cplusplus |
| 5331 | typedef int foo_t; |
| 5332 | static $ac_kw foo_t static_foo () {return 0; } |
| 5333 | $ac_kw foo_t foo () {return 0; } |
| 5334 | #endif |
| 5335 | |
| 5336 | _ACEOF |
| 5337 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5338 | if { (ac_try="$ac_compile" |
| 5339 | case "(($ac_try" in |
| 5340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5341 | *) ac_try_echo=$ac_try;; |
| 5342 | esac |
| 5343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5344 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5345 | ac_status=$? |
| 5346 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5347 | rm -f conftest.er1 |
| 5348 | cat conftest.err >&5 |
| 5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5350 | (exit $ac_status); } && { |
| 5351 | test -z "$ac_c_werror_flag" || |
| 5352 | test ! -s conftest.err |
| 5353 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5354 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5355 | else |
| 5356 | echo "$as_me: failed program was:" >&5 |
| 5357 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5358 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5359 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5360 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5361 | |
| 5362 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5363 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5364 | done |
| 5365 | |
| 5366 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5367 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
| 5368 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5369 | |
| 5370 | |
| 5371 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5372 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5373 | *) |
| 5374 | case $ac_cv_c_inline in |
| 5375 | no) ac_val=;; |
| 5376 | *) ac_val=$ac_cv_c_inline;; |
| 5377 | esac |
| 5378 | cat >>confdefs.h <<_ACEOF |
| 5379 | #ifndef __cplusplus |
| 5380 | #define inline $ac_val |
| 5381 | #endif |
| 5382 | _ACEOF |
| 5383 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5384 | esac |
| 5385 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5386 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5387 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5388 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5390 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5391 | cat >conftest.$ac_ext <<_ACEOF |
| 5392 | /* confdefs.h. */ |
| 5393 | _ACEOF |
| 5394 | cat confdefs.h >>conftest.$ac_ext |
| 5395 | cat >>conftest.$ac_ext <<_ACEOF |
| 5396 | /* end confdefs.h. */ |
| 5397 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5398 | typedef off_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5399 | int |
| 5400 | main () |
| 5401 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5402 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5403 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5404 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5405 | return 0; |
| 5406 | ; |
| 5407 | return 0; |
| 5408 | } |
| 5409 | _ACEOF |
| 5410 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5411 | if { (ac_try="$ac_compile" |
| 5412 | case "(($ac_try" in |
| 5413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5414 | *) ac_try_echo=$ac_try;; |
| 5415 | esac |
| 5416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5417 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5418 | ac_status=$? |
| 5419 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5420 | rm -f conftest.er1 |
| 5421 | cat conftest.err >&5 |
| 5422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5423 | (exit $ac_status); } && { |
| 5424 | test -z "$ac_c_werror_flag" || |
| 5425 | test ! -s conftest.err |
| 5426 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5427 | ac_cv_type_off_t=yes |
| 5428 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5429 | echo "$as_me: failed program was:" >&5 |
| 5430 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5431 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5432 | ac_cv_type_off_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5433 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5434 | |
| 5435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5436 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5437 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5438 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5439 | if test $ac_cv_type_off_t = yes; then |
| 5440 | : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5441 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5442 | |
| 5443 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5444 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5445 | _ACEOF |
| 5446 | |
| 5447 | fi |
| 5448 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5449 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5450 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5451 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5453 | else |
| 5454 | cat >conftest.$ac_ext <<_ACEOF |
| 5455 | /* confdefs.h. */ |
| 5456 | _ACEOF |
| 5457 | cat confdefs.h >>conftest.$ac_ext |
| 5458 | cat >>conftest.$ac_ext <<_ACEOF |
| 5459 | /* end confdefs.h. */ |
| 5460 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5461 | typedef size_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5462 | int |
| 5463 | main () |
| 5464 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5465 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5466 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5467 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5468 | return 0; |
| 5469 | ; |
| 5470 | return 0; |
| 5471 | } |
| 5472 | _ACEOF |
| 5473 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5474 | if { (ac_try="$ac_compile" |
| 5475 | case "(($ac_try" in |
| 5476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5477 | *) ac_try_echo=$ac_try;; |
| 5478 | esac |
| 5479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5480 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5481 | ac_status=$? |
| 5482 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5483 | rm -f conftest.er1 |
| 5484 | cat conftest.err >&5 |
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5486 | (exit $ac_status); } && { |
| 5487 | test -z "$ac_c_werror_flag" || |
| 5488 | test ! -s conftest.err |
| 5489 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5490 | ac_cv_type_size_t=yes |
| 5491 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5492 | echo "$as_me: failed program was:" >&5 |
| 5493 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5494 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5495 | ac_cv_type_size_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5496 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5497 | |
| 5498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5499 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5500 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5501 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5502 | if test $ac_cv_type_size_t = yes; then |
| 5503 | : |
| 5504 | else |
| 5505 | |
| 5506 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5507 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5508 | _ACEOF |
| 5509 | |
| 5510 | fi |
| 5511 | |
| 5512 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5513 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 5514 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5515 | if test "${ac_cv_type_long_long+set}" = set; then |
| 5516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5517 | else |
| 5518 | cat >conftest.$ac_ext <<_ACEOF |
| 5519 | /* confdefs.h. */ |
| 5520 | _ACEOF |
| 5521 | cat confdefs.h >>conftest.$ac_ext |
| 5522 | cat >>conftest.$ac_ext <<_ACEOF |
| 5523 | /* end confdefs.h. */ |
| 5524 | long long ll = 1LL; int i = 63; |
| 5525 | int |
| 5526 | main () |
| 5527 | { |
| 5528 | long long llmax = (long long) -1; |
| 5529 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 5530 | ; |
| 5531 | return 0; |
| 5532 | } |
| 5533 | _ACEOF |
| 5534 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5535 | if { (ac_try="$ac_link" |
| 5536 | case "(($ac_try" in |
| 5537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5538 | *) ac_try_echo=$ac_try;; |
| 5539 | esac |
| 5540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5541 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5542 | ac_status=$? |
| 5543 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5544 | rm -f conftest.er1 |
| 5545 | cat conftest.err >&5 |
| 5546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5547 | (exit $ac_status); } && { |
| 5548 | test -z "$ac_c_werror_flag" || |
| 5549 | test ! -s conftest.err |
| 5550 | } && test -s conftest$ac_exeext && |
| 5551 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5552 | ac_cv_type_long_long=yes |
| 5553 | else |
| 5554 | echo "$as_me: failed program was:" >&5 |
| 5555 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5556 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5557 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5558 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5559 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5560 | 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] | 5561 | conftest$ac_exeext conftest.$ac_ext |
| 5562 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5563 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 5564 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5565 | if test $ac_cv_type_long_long = yes; then |
| 5566 | |
| 5567 | cat >>confdefs.h <<\_ACEOF |
| 5568 | #define HAVE_LONG_LONG 1 |
| 5569 | _ACEOF |
| 5570 | |
| 5571 | fi |
| 5572 | |
| 5573 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5574 | { echo "$as_me:$LINENO: checking for long double" >&5 |
| 5575 | echo $ECHO_N "checking for long double... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5576 | if test "${gt_cv_c_long_double+set}" = set; then |
| 5577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5578 | else |
| 5579 | if test "$GCC" = yes; then |
| 5580 | gt_cv_c_long_double=yes |
| 5581 | else |
| 5582 | cat >conftest.$ac_ext <<_ACEOF |
| 5583 | /* confdefs.h. */ |
| 5584 | _ACEOF |
| 5585 | cat confdefs.h >>conftest.$ac_ext |
| 5586 | cat >>conftest.$ac_ext <<_ACEOF |
| 5587 | /* end confdefs.h. */ |
| 5588 | |
| 5589 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 5590 | long double foo = 0.0; |
| 5591 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 5592 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 5593 | |
| 5594 | int |
| 5595 | main () |
| 5596 | { |
| 5597 | |
| 5598 | ; |
| 5599 | return 0; |
| 5600 | } |
| 5601 | _ACEOF |
| 5602 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5603 | if { (ac_try="$ac_compile" |
| 5604 | case "(($ac_try" in |
| 5605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5606 | *) ac_try_echo=$ac_try;; |
| 5607 | esac |
| 5608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5609 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5610 | ac_status=$? |
| 5611 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5612 | rm -f conftest.er1 |
| 5613 | cat conftest.err >&5 |
| 5614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5615 | (exit $ac_status); } && { |
| 5616 | test -z "$ac_c_werror_flag" || |
| 5617 | test ! -s conftest.err |
| 5618 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5619 | gt_cv_c_long_double=yes |
| 5620 | else |
| 5621 | echo "$as_me: failed program was:" >&5 |
| 5622 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5623 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5624 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5625 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5626 | |
| 5627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5628 | fi |
| 5629 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5630 | { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5 |
| 5631 | echo "${ECHO_T}$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5632 | if test $gt_cv_c_long_double = yes; then |
| 5633 | |
| 5634 | cat >>confdefs.h <<\_ACEOF |
| 5635 | #define HAVE_LONG_DOUBLE 1 |
| 5636 | _ACEOF |
| 5637 | |
| 5638 | fi |
| 5639 | |
| 5640 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5641 | { echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 5642 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5643 | if test "${gt_cv_c_wchar_t+set}" = set; then |
| 5644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5645 | else |
| 5646 | cat >conftest.$ac_ext <<_ACEOF |
| 5647 | /* confdefs.h. */ |
| 5648 | _ACEOF |
| 5649 | cat confdefs.h >>conftest.$ac_ext |
| 5650 | cat >>conftest.$ac_ext <<_ACEOF |
| 5651 | /* end confdefs.h. */ |
| 5652 | #include <stddef.h> |
| 5653 | wchar_t foo = (wchar_t)'\0'; |
| 5654 | int |
| 5655 | main () |
| 5656 | { |
| 5657 | |
| 5658 | ; |
| 5659 | return 0; |
| 5660 | } |
| 5661 | _ACEOF |
| 5662 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5663 | if { (ac_try="$ac_compile" |
| 5664 | case "(($ac_try" in |
| 5665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5666 | *) ac_try_echo=$ac_try;; |
| 5667 | esac |
| 5668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5669 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5670 | ac_status=$? |
| 5671 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5672 | rm -f conftest.er1 |
| 5673 | cat conftest.err >&5 |
| 5674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5675 | (exit $ac_status); } && { |
| 5676 | test -z "$ac_c_werror_flag" || |
| 5677 | test ! -s conftest.err |
| 5678 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5679 | gt_cv_c_wchar_t=yes |
| 5680 | else |
| 5681 | echo "$as_me: failed program was:" >&5 |
| 5682 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5683 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5684 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5685 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5686 | |
| 5687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5688 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5689 | { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5 |
| 5690 | echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5691 | if test $gt_cv_c_wchar_t = yes; then |
| 5692 | |
| 5693 | cat >>confdefs.h <<\_ACEOF |
| 5694 | #define HAVE_WCHAR_T 1 |
| 5695 | _ACEOF |
| 5696 | |
| 5697 | fi |
| 5698 | |
| 5699 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5700 | { echo "$as_me:$LINENO: checking for wint_t" >&5 |
| 5701 | echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5702 | if test "${gt_cv_c_wint_t+set}" = set; then |
| 5703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5704 | else |
| 5705 | cat >conftest.$ac_ext <<_ACEOF |
| 5706 | /* confdefs.h. */ |
| 5707 | _ACEOF |
| 5708 | cat confdefs.h >>conftest.$ac_ext |
| 5709 | cat >>conftest.$ac_ext <<_ACEOF |
| 5710 | /* end confdefs.h. */ |
| 5711 | #include <wchar.h> |
| 5712 | wint_t foo = (wchar_t)'\0'; |
| 5713 | int |
| 5714 | main () |
| 5715 | { |
| 5716 | |
| 5717 | ; |
| 5718 | return 0; |
| 5719 | } |
| 5720 | _ACEOF |
| 5721 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5722 | if { (ac_try="$ac_compile" |
| 5723 | case "(($ac_try" in |
| 5724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5725 | *) ac_try_echo=$ac_try;; |
| 5726 | esac |
| 5727 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5728 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5729 | ac_status=$? |
| 5730 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5731 | rm -f conftest.er1 |
| 5732 | cat conftest.err >&5 |
| 5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5734 | (exit $ac_status); } && { |
| 5735 | test -z "$ac_c_werror_flag" || |
| 5736 | test ! -s conftest.err |
| 5737 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5738 | gt_cv_c_wint_t=yes |
| 5739 | else |
| 5740 | echo "$as_me: failed program was:" >&5 |
| 5741 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5742 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5743 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5744 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5745 | |
| 5746 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5747 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5748 | { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5 |
| 5749 | echo "${ECHO_T}$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5750 | if test $gt_cv_c_wint_t = yes; then |
| 5751 | |
| 5752 | cat >>confdefs.h <<\_ACEOF |
| 5753 | #define HAVE_WINT_T 1 |
| 5754 | _ACEOF |
| 5755 | |
| 5756 | fi |
| 5757 | |
| 5758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5759 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 5760 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5761 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then |
| 5762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5763 | else |
| 5764 | cat >conftest.$ac_ext <<_ACEOF |
| 5765 | /* confdefs.h. */ |
| 5766 | _ACEOF |
| 5767 | cat confdefs.h >>conftest.$ac_ext |
| 5768 | cat >>conftest.$ac_ext <<_ACEOF |
| 5769 | /* end confdefs.h. */ |
| 5770 | #include <sys/types.h> |
| 5771 | #include <inttypes.h> |
| 5772 | int |
| 5773 | main () |
| 5774 | { |
| 5775 | uintmax_t i = (uintmax_t) -1; |
| 5776 | ; |
| 5777 | return 0; |
| 5778 | } |
| 5779 | _ACEOF |
| 5780 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5781 | if { (ac_try="$ac_compile" |
| 5782 | case "(($ac_try" in |
| 5783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5784 | *) ac_try_echo=$ac_try;; |
| 5785 | esac |
| 5786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5787 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5788 | ac_status=$? |
| 5789 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5790 | rm -f conftest.er1 |
| 5791 | cat conftest.err >&5 |
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5793 | (exit $ac_status); } && { |
| 5794 | test -z "$ac_c_werror_flag" || |
| 5795 | test ! -s conftest.err |
| 5796 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5797 | jm_ac_cv_header_inttypes_h=yes |
| 5798 | else |
| 5799 | echo "$as_me: failed program was:" >&5 |
| 5800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5802 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5804 | |
| 5805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5806 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5807 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5 |
| 5808 | echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5809 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 5810 | |
| 5811 | cat >>confdefs.h <<_ACEOF |
| 5812 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 5813 | _ACEOF |
| 5814 | |
| 5815 | fi |
| 5816 | |
| 5817 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5818 | { echo "$as_me:$LINENO: checking for stdint.h" >&5 |
| 5819 | echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5820 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then |
| 5821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5822 | else |
| 5823 | cat >conftest.$ac_ext <<_ACEOF |
| 5824 | /* confdefs.h. */ |
| 5825 | _ACEOF |
| 5826 | cat confdefs.h >>conftest.$ac_ext |
| 5827 | cat >>conftest.$ac_ext <<_ACEOF |
| 5828 | /* end confdefs.h. */ |
| 5829 | #include <sys/types.h> |
| 5830 | #include <stdint.h> |
| 5831 | int |
| 5832 | main () |
| 5833 | { |
| 5834 | uintmax_t i = (uintmax_t) -1; |
| 5835 | ; |
| 5836 | return 0; |
| 5837 | } |
| 5838 | _ACEOF |
| 5839 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5840 | if { (ac_try="$ac_compile" |
| 5841 | case "(($ac_try" in |
| 5842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5843 | *) ac_try_echo=$ac_try;; |
| 5844 | esac |
| 5845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5846 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5847 | ac_status=$? |
| 5848 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5849 | rm -f conftest.er1 |
| 5850 | cat conftest.err >&5 |
| 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5852 | (exit $ac_status); } && { |
| 5853 | test -z "$ac_c_werror_flag" || |
| 5854 | test ! -s conftest.err |
| 5855 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5856 | jm_ac_cv_header_stdint_h=yes |
| 5857 | else |
| 5858 | echo "$as_me: failed program was:" >&5 |
| 5859 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5860 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5861 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5862 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5863 | |
| 5864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5865 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5866 | { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5 |
| 5867 | echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5868 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 5869 | |
| 5870 | cat >>confdefs.h <<_ACEOF |
| 5871 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 5872 | _ACEOF |
| 5873 | |
| 5874 | fi |
| 5875 | |
| 5876 | |
| 5877 | |
| 5878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5879 | { echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5880 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5881 | if test "${gt_cv_c_intmax_t+set}" = set; then |
| 5882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5883 | else |
| 5884 | cat >conftest.$ac_ext <<_ACEOF |
| 5885 | /* confdefs.h. */ |
| 5886 | _ACEOF |
| 5887 | cat confdefs.h >>conftest.$ac_ext |
| 5888 | cat >>conftest.$ac_ext <<_ACEOF |
| 5889 | /* end confdefs.h. */ |
| 5890 | |
| 5891 | #include <stddef.h> |
| 5892 | #include <stdlib.h> |
| 5893 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 5894 | #include <stdint.h> |
| 5895 | #endif |
| 5896 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 5897 | #include <inttypes.h> |
| 5898 | #endif |
| 5899 | |
| 5900 | int |
| 5901 | main () |
| 5902 | { |
| 5903 | intmax_t x = -1; |
| 5904 | ; |
| 5905 | return 0; |
| 5906 | } |
| 5907 | _ACEOF |
| 5908 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5909 | if { (ac_try="$ac_compile" |
| 5910 | case "(($ac_try" in |
| 5911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5912 | *) ac_try_echo=$ac_try;; |
| 5913 | esac |
| 5914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 5915 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5916 | ac_status=$? |
| 5917 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5918 | rm -f conftest.er1 |
| 5919 | cat conftest.err >&5 |
| 5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5921 | (exit $ac_status); } && { |
| 5922 | test -z "$ac_c_werror_flag" || |
| 5923 | test ! -s conftest.err |
| 5924 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5925 | gt_cv_c_intmax_t=yes |
| 5926 | else |
| 5927 | echo "$as_me: failed program was:" >&5 |
| 5928 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5930 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5931 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5932 | |
| 5933 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5934 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5935 | { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5 |
| 5936 | echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5937 | if test $gt_cv_c_intmax_t = yes; then |
| 5938 | |
| 5939 | cat >>confdefs.h <<\_ACEOF |
| 5940 | #define HAVE_INTMAX_T 1 |
| 5941 | _ACEOF |
| 5942 | |
| 5943 | fi |
| 5944 | |
| 5945 | |
| 5946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5947 | { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5 |
| 5948 | 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] | 5949 | if test "${gt_cv_func_printf_posix+set}" = set; then |
| 5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5951 | else |
| 5952 | |
| 5953 | if test "$cross_compiling" = yes; then |
| 5954 | |
| 5955 | cat >conftest.$ac_ext <<_ACEOF |
| 5956 | /* confdefs.h. */ |
| 5957 | _ACEOF |
| 5958 | cat confdefs.h >>conftest.$ac_ext |
| 5959 | cat >>conftest.$ac_ext <<_ACEOF |
| 5960 | /* end confdefs.h. */ |
| 5961 | |
| 5962 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 5963 | notposix |
| 5964 | #endif |
| 5965 | |
| 5966 | _ACEOF |
| 5967 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5968 | $EGREP "notposix" >/dev/null 2>&1; then |
| 5969 | gt_cv_func_printf_posix="guessing no" |
| 5970 | else |
| 5971 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5972 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5973 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5974 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5975 | |
| 5976 | else |
| 5977 | cat >conftest.$ac_ext <<_ACEOF |
| 5978 | /* confdefs.h. */ |
| 5979 | _ACEOF |
| 5980 | cat confdefs.h >>conftest.$ac_ext |
| 5981 | cat >>conftest.$ac_ext <<_ACEOF |
| 5982 | /* end confdefs.h. */ |
| 5983 | |
| 5984 | #include <stdio.h> |
| 5985 | #include <string.h> |
| 5986 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 5987 | dollar expansion (possibly an autoconf bug). */ |
| 5988 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 5989 | static char buf[100]; |
| 5990 | int main () |
| 5991 | { |
| 5992 | sprintf (buf, format, 33, 55); |
| 5993 | return (strcmp (buf, "55 33") != 0); |
| 5994 | } |
| 5995 | _ACEOF |
| 5996 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5997 | if { (ac_try="$ac_link" |
| 5998 | case "(($ac_try" in |
| 5999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6000 | *) ac_try_echo=$ac_try;; |
| 6001 | esac |
| 6002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6003 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6004 | ac_status=$? |
| 6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6007 | { (case "(($ac_try" in |
| 6008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6009 | *) ac_try_echo=$ac_try;; |
| 6010 | esac |
| 6011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6012 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6013 | ac_status=$? |
| 6014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6015 | (exit $ac_status); }; }; then |
| 6016 | gt_cv_func_printf_posix=yes |
| 6017 | else |
| 6018 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6019 | echo "$as_me: failed program was:" >&5 |
| 6020 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6021 | |
| 6022 | ( exit $ac_status ) |
| 6023 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6024 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6025 | 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] | 6026 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6027 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6028 | |
| 6029 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6030 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6031 | { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5 |
| 6032 | echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6033 | case $gt_cv_func_printf_posix in |
| 6034 | *yes) |
| 6035 | |
| 6036 | cat >>confdefs.h <<\_ACEOF |
| 6037 | #define HAVE_POSIX_PRINTF 1 |
| 6038 | _ACEOF |
| 6039 | |
| 6040 | ;; |
| 6041 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6042 | |
| 6043 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6044 | # for constant arguments. Useless! |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6045 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
| 6046 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6047 | if test "${ac_cv_working_alloca_h+set}" = set; then |
| 6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6049 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6050 | cat >conftest.$ac_ext <<_ACEOF |
| 6051 | /* confdefs.h. */ |
| 6052 | _ACEOF |
| 6053 | cat confdefs.h >>conftest.$ac_ext |
| 6054 | cat >>conftest.$ac_ext <<_ACEOF |
| 6055 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6056 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6057 | int |
| 6058 | main () |
| 6059 | { |
| 6060 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6061 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6062 | ; |
| 6063 | return 0; |
| 6064 | } |
| 6065 | _ACEOF |
| 6066 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6067 | if { (ac_try="$ac_link" |
| 6068 | case "(($ac_try" in |
| 6069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6070 | *) ac_try_echo=$ac_try;; |
| 6071 | esac |
| 6072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6073 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6074 | ac_status=$? |
| 6075 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6076 | rm -f conftest.er1 |
| 6077 | cat conftest.err >&5 |
| 6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6079 | (exit $ac_status); } && { |
| 6080 | test -z "$ac_c_werror_flag" || |
| 6081 | test ! -s conftest.err |
| 6082 | } && test -s conftest$ac_exeext && |
| 6083 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6084 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6085 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6086 | echo "$as_me: failed program was:" >&5 |
| 6087 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6088 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6089 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6090 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6091 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6092 | 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] | 6093 | conftest$ac_exeext conftest.$ac_ext |
| 6094 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6095 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
| 6096 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6097 | if test $ac_cv_working_alloca_h = yes; then |
| 6098 | |
| 6099 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6100 | #define HAVE_ALLOCA_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6101 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6102 | |
| 6103 | fi |
| 6104 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6105 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
| 6106 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6107 | if test "${ac_cv_func_alloca_works+set}" = set; then |
| 6108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6109 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6110 | cat >conftest.$ac_ext <<_ACEOF |
| 6111 | /* confdefs.h. */ |
| 6112 | _ACEOF |
| 6113 | cat confdefs.h >>conftest.$ac_ext |
| 6114 | cat >>conftest.$ac_ext <<_ACEOF |
| 6115 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6116 | #ifdef __GNUC__ |
| 6117 | # define alloca __builtin_alloca |
| 6118 | #else |
| 6119 | # ifdef _MSC_VER |
| 6120 | # include <malloc.h> |
| 6121 | # define alloca _alloca |
| 6122 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6123 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6124 | # include <alloca.h> |
| 6125 | # else |
| 6126 | # ifdef _AIX |
| 6127 | #pragma alloca |
| 6128 | # else |
| 6129 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6130 | char *alloca (); |
| 6131 | # endif |
| 6132 | # endif |
| 6133 | # endif |
| 6134 | # endif |
| 6135 | #endif |
| 6136 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6137 | int |
| 6138 | main () |
| 6139 | { |
| 6140 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6141 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6142 | ; |
| 6143 | return 0; |
| 6144 | } |
| 6145 | _ACEOF |
| 6146 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6147 | if { (ac_try="$ac_link" |
| 6148 | case "(($ac_try" in |
| 6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6150 | *) ac_try_echo=$ac_try;; |
| 6151 | esac |
| 6152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6153 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6154 | ac_status=$? |
| 6155 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6156 | rm -f conftest.er1 |
| 6157 | cat conftest.err >&5 |
| 6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6159 | (exit $ac_status); } && { |
| 6160 | test -z "$ac_c_werror_flag" || |
| 6161 | test ! -s conftest.err |
| 6162 | } && test -s conftest$ac_exeext && |
| 6163 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6164 | ac_cv_func_alloca_works=yes |
| 6165 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6166 | echo "$as_me: failed program was:" >&5 |
| 6167 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6168 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6169 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6170 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6171 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6172 | 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] | 6173 | conftest$ac_exeext conftest.$ac_ext |
| 6174 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6175 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
| 6176 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6177 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6178 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6179 | |
| 6180 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6181 | #define HAVE_ALLOCA 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6182 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6183 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6184 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6185 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6186 | # that cause trouble. Some versions do not even contain alloca or |
| 6187 | # contain a buggy version. If you still want to use their alloca, |
| 6188 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6189 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6190 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6191 | |
| 6192 | cat >>confdefs.h <<\_ACEOF |
| 6193 | #define C_ALLOCA 1 |
| 6194 | _ACEOF |
| 6195 | |
| 6196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6197 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 6198 | 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] | 6199 | if test "${ac_cv_os_cray+set}" = set; then |
| 6200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6201 | else |
| 6202 | cat >conftest.$ac_ext <<_ACEOF |
| 6203 | /* confdefs.h. */ |
| 6204 | _ACEOF |
| 6205 | cat confdefs.h >>conftest.$ac_ext |
| 6206 | cat >>conftest.$ac_ext <<_ACEOF |
| 6207 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6208 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6209 | webecray |
| 6210 | #else |
| 6211 | wenotbecray |
| 6212 | #endif |
| 6213 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6214 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6216 | $EGREP "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6217 | ac_cv_os_cray=yes |
| 6218 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6219 | ac_cv_os_cray=no |
| 6220 | fi |
| 6221 | rm -f conftest* |
| 6222 | |
| 6223 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6224 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
| 6225 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6226 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6227 | for ac_func in _getb67 GETB67 getb67; do |
| 6228 | 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] | 6229 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6230 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6231 | 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] | 6232 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6233 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6234 | cat >conftest.$ac_ext <<_ACEOF |
| 6235 | /* confdefs.h. */ |
| 6236 | _ACEOF |
| 6237 | cat confdefs.h >>conftest.$ac_ext |
| 6238 | cat >>conftest.$ac_ext <<_ACEOF |
| 6239 | /* end confdefs.h. */ |
| 6240 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6241 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6242 | #define $ac_func innocuous_$ac_func |
| 6243 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6244 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6245 | which can conflict with char $ac_func (); below. |
| 6246 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6247 | <limits.h> exists even on freestanding compilers. */ |
| 6248 | |
| 6249 | #ifdef __STDC__ |
| 6250 | # include <limits.h> |
| 6251 | #else |
| 6252 | # include <assert.h> |
| 6253 | #endif |
| 6254 | |
| 6255 | #undef $ac_func |
| 6256 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6257 | /* Override any GCC internal prototype to avoid an error. |
| 6258 | Use char because int might match the return type of a GCC |
| 6259 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6260 | #ifdef __cplusplus |
| 6261 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6262 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6263 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6264 | /* The GNU C library defines this for functions which it implements |
| 6265 | to always fail with ENOSYS. Some functions are actually named |
| 6266 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6267 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6268 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6269 | #endif |
| 6270 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6271 | int |
| 6272 | main () |
| 6273 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6274 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6275 | ; |
| 6276 | return 0; |
| 6277 | } |
| 6278 | _ACEOF |
| 6279 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6280 | if { (ac_try="$ac_link" |
| 6281 | case "(($ac_try" in |
| 6282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6283 | *) ac_try_echo=$ac_try;; |
| 6284 | esac |
| 6285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6286 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6287 | ac_status=$? |
| 6288 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6289 | rm -f conftest.er1 |
| 6290 | cat conftest.err >&5 |
| 6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6292 | (exit $ac_status); } && { |
| 6293 | test -z "$ac_c_werror_flag" || |
| 6294 | test ! -s conftest.err |
| 6295 | } && test -s conftest$ac_exeext && |
| 6296 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6297 | eval "$as_ac_var=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6298 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6299 | echo "$as_me: failed program was:" >&5 |
| 6300 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6302 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6303 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6304 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6305 | 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] | 6306 | conftest$ac_exeext conftest.$ac_ext |
| 6307 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6308 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6310 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6311 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6312 | |
| 6313 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6314 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6315 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6316 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6317 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6318 | fi |
| 6319 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6320 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6321 | fi |
| 6322 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6323 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
| 6324 | 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] | 6325 | if test "${ac_cv_c_stack_direction+set}" = set; then |
| 6326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6327 | else |
| 6328 | if test "$cross_compiling" = yes; then |
| 6329 | ac_cv_c_stack_direction=0 |
| 6330 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6331 | cat >conftest.$ac_ext <<_ACEOF |
| 6332 | /* confdefs.h. */ |
| 6333 | _ACEOF |
| 6334 | cat confdefs.h >>conftest.$ac_ext |
| 6335 | cat >>conftest.$ac_ext <<_ACEOF |
| 6336 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6337 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6338 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6339 | find_stack_direction () |
| 6340 | { |
| 6341 | static char *addr = 0; |
| 6342 | auto char dummy; |
| 6343 | if (addr == 0) |
| 6344 | { |
| 6345 | addr = &dummy; |
| 6346 | return find_stack_direction (); |
| 6347 | } |
| 6348 | else |
| 6349 | return (&dummy > addr) ? 1 : -1; |
| 6350 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6351 | |
| 6352 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6353 | main () |
| 6354 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6355 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6356 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6357 | _ACEOF |
| 6358 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6359 | if { (ac_try="$ac_link" |
| 6360 | case "(($ac_try" in |
| 6361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6362 | *) ac_try_echo=$ac_try;; |
| 6363 | esac |
| 6364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6365 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6369 | { (case "(($ac_try" in |
| 6370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6371 | *) ac_try_echo=$ac_try;; |
| 6372 | esac |
| 6373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6374 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6375 | ac_status=$? |
| 6376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6377 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6378 | ac_cv_c_stack_direction=1 |
| 6379 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6380 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6381 | echo "$as_me: failed program was:" >&5 |
| 6382 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6383 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | ( exit $ac_status ) |
| 6385 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6386 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6387 | 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] | 6388 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6389 | |
| 6390 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6391 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6392 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
| 6393 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6394 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6395 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6396 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6397 | _ACEOF |
| 6398 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6399 | |
| 6400 | fi |
| 6401 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6402 | |
| 6403 | |
| 6404 | for ac_header in stdlib.h unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6405 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6406 | 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] | 6407 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 6408 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6410 | 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] | 6411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6412 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6413 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6414 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6415 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6416 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6417 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6418 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 6419 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6420 | cat >conftest.$ac_ext <<_ACEOF |
| 6421 | /* confdefs.h. */ |
| 6422 | _ACEOF |
| 6423 | cat confdefs.h >>conftest.$ac_ext |
| 6424 | cat >>conftest.$ac_ext <<_ACEOF |
| 6425 | /* end confdefs.h. */ |
| 6426 | $ac_includes_default |
| 6427 | #include <$ac_header> |
| 6428 | _ACEOF |
| 6429 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6430 | if { (ac_try="$ac_compile" |
| 6431 | case "(($ac_try" in |
| 6432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6433 | *) ac_try_echo=$ac_try;; |
| 6434 | esac |
| 6435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6436 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6437 | ac_status=$? |
| 6438 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6439 | rm -f conftest.er1 |
| 6440 | cat conftest.err >&5 |
| 6441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6442 | (exit $ac_status); } && { |
| 6443 | test -z "$ac_c_werror_flag" || |
| 6444 | test ! -s conftest.err |
| 6445 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6446 | ac_header_compiler=yes |
| 6447 | else |
| 6448 | echo "$as_me: failed program was:" >&5 |
| 6449 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6451 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6452 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6453 | |
| 6454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6455 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 6456 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6457 | |
| 6458 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6459 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 6460 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6461 | cat >conftest.$ac_ext <<_ACEOF |
| 6462 | /* confdefs.h. */ |
| 6463 | _ACEOF |
| 6464 | cat confdefs.h >>conftest.$ac_ext |
| 6465 | cat >>conftest.$ac_ext <<_ACEOF |
| 6466 | /* end confdefs.h. */ |
| 6467 | #include <$ac_header> |
| 6468 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6469 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 6470 | case "(($ac_try" in |
| 6471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6472 | *) ac_try_echo=$ac_try;; |
| 6473 | esac |
| 6474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6475 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6476 | ac_status=$? |
| 6477 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6478 | rm -f conftest.er1 |
| 6479 | cat conftest.err >&5 |
| 6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6481 | (exit $ac_status); } >/dev/null && { |
| 6482 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 6483 | test ! -s conftest.err |
| 6484 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6485 | ac_header_preproc=yes |
| 6486 | else |
| 6487 | echo "$as_me: failed program was:" >&5 |
| 6488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6489 | |
| 6490 | ac_header_preproc=no |
| 6491 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6492 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6493 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6494 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 6495 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6496 | |
| 6497 | # So? What about this header? |
| 6498 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 6499 | yes:no: ) |
| 6500 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 6501 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 6502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 6503 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 6504 | ac_header_preproc=yes |
| 6505 | ;; |
| 6506 | no:yes:* ) |
| 6507 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 6508 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 6509 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 6510 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 6511 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 6512 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 6513 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 6514 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 6516 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 6518 | 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] | 6519 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6520 | ;; |
| 6521 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6522 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 6523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 6524 | 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] | 6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6526 | else |
| 6527 | eval "$as_ac_Header=\$ac_header_preproc" |
| 6528 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6529 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 6530 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6531 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | |
| 6533 | fi |
| 6534 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 6535 | cat >>confdefs.h <<_ACEOF |
| 6536 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6537 | _ACEOF |
| 6538 | |
| 6539 | fi |
| 6540 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6541 | done |
| 6542 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6543 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6544 | for ac_func in getpagesize |
| 6545 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6546 | 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] | 6547 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 6548 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 6549 | 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] | 6550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [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. */ |
| 6558 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 6559 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 6560 | #define $ac_func innocuous_$ac_func |
| 6561 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6562 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6563 | which can conflict with char $ac_func (); below. |
| 6564 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 6565 | <limits.h> exists even on freestanding compilers. */ |
| 6566 | |
| 6567 | #ifdef __STDC__ |
| 6568 | # include <limits.h> |
| 6569 | #else |
| 6570 | # include <assert.h> |
| 6571 | #endif |
| 6572 | |
| 6573 | #undef $ac_func |
| 6574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6575 | /* Override any GCC internal prototype to avoid an error. |
| 6576 | Use char because int might match the return type of a GCC |
| 6577 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6578 | #ifdef __cplusplus |
| 6579 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6580 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6581 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6582 | /* The GNU C library defines this for functions which it implements |
| 6583 | to always fail with ENOSYS. Some functions are actually named |
| 6584 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6585 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6586 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6587 | #endif |
| 6588 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | int |
| 6590 | main () |
| 6591 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6592 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6593 | ; |
| 6594 | return 0; |
| 6595 | } |
| 6596 | _ACEOF |
| 6597 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6598 | if { (ac_try="$ac_link" |
| 6599 | case "(($ac_try" in |
| 6600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6601 | *) ac_try_echo=$ac_try;; |
| 6602 | esac |
| 6603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6604 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6605 | ac_status=$? |
| 6606 | grep -v '^ *+' conftest.er1 >conftest.err |
| 6607 | rm -f conftest.er1 |
| 6608 | cat conftest.err >&5 |
| 6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6610 | (exit $ac_status); } && { |
| 6611 | test -z "$ac_c_werror_flag" || |
| 6612 | test ! -s conftest.err |
| 6613 | } && test -s conftest$ac_exeext && |
| 6614 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6615 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6616 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6617 | echo "$as_me: failed program was:" >&5 |
| 6618 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6619 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6620 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6621 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6622 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6623 | 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] | 6624 | conftest$ac_exeext conftest.$ac_ext |
| 6625 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6626 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 6627 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 6628 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6629 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 6630 | cat >>confdefs.h <<_ACEOF |
| 6631 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 6632 | _ACEOF |
| 6633 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6634 | fi |
| 6635 | done |
| 6636 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6637 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
| 6638 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6639 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
| 6640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6641 | else |
| 6642 | if test "$cross_compiling" = yes; then |
| 6643 | ac_cv_func_mmap_fixed_mapped=no |
| 6644 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6645 | cat >conftest.$ac_ext <<_ACEOF |
| 6646 | /* confdefs.h. */ |
| 6647 | _ACEOF |
| 6648 | cat confdefs.h >>conftest.$ac_ext |
| 6649 | cat >>conftest.$ac_ext <<_ACEOF |
| 6650 | /* end confdefs.h. */ |
| 6651 | $ac_includes_default |
| 6652 | /* malloc might have been renamed as rpl_malloc. */ |
| 6653 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6654 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6655 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 6656 | Here is a matrix of mmap possibilities: |
| 6657 | mmap private not fixed |
| 6658 | mmap private fixed at somewhere currently unmapped |
| 6659 | mmap private fixed at somewhere already mapped |
| 6660 | mmap shared not fixed |
| 6661 | mmap shared fixed at somewhere currently unmapped |
| 6662 | mmap shared fixed at somewhere already mapped |
| 6663 | For private mappings, we should verify that changes cannot be read() |
| 6664 | back from the file, nor mmap's back from the file at a different |
| 6665 | address. (There have been systems where private was not correctly |
| 6666 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6667 | 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] | 6668 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 6669 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6670 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6671 | |
| 6672 | Grep wants private fixed already mapped. |
| 6673 | The main things grep needs to know about mmap are: |
| 6674 | * does it exist and is it safe to write into the mmap'd area |
| 6675 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6676 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6677 | #include <fcntl.h> |
| 6678 | #include <sys/mman.h> |
| 6679 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6680 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6681 | char *malloc (); |
| 6682 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6683 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6684 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6685 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6686 | /* 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] | 6687 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6688 | # define HAVE_SYS_PARAM_H 1 |
| 6689 | # endif |
| 6690 | |
| 6691 | # ifdef _SC_PAGESIZE |
| 6692 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 6693 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6694 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6695 | # include <sys/param.h> |
| 6696 | # ifdef EXEC_PAGESIZE |
| 6697 | # define getpagesize() EXEC_PAGESIZE |
| 6698 | # else /* no EXEC_PAGESIZE */ |
| 6699 | # ifdef NBPG |
| 6700 | # define getpagesize() NBPG * CLSIZE |
| 6701 | # ifndef CLSIZE |
| 6702 | # define CLSIZE 1 |
| 6703 | # endif /* no CLSIZE */ |
| 6704 | # else /* no NBPG */ |
| 6705 | # ifdef NBPC |
| 6706 | # define getpagesize() NBPC |
| 6707 | # else /* no NBPC */ |
| 6708 | # ifdef PAGESIZE |
| 6709 | # define getpagesize() PAGESIZE |
| 6710 | # endif /* PAGESIZE */ |
| 6711 | # endif /* no NBPC */ |
| 6712 | # endif /* no NBPG */ |
| 6713 | # endif /* no EXEC_PAGESIZE */ |
| 6714 | # else /* no HAVE_SYS_PARAM_H */ |
| 6715 | # define getpagesize() 8192 /* punt totally */ |
| 6716 | # endif /* no HAVE_SYS_PARAM_H */ |
| 6717 | # endif /* no _SC_PAGESIZE */ |
| 6718 | |
| 6719 | #endif /* no HAVE_GETPAGESIZE */ |
| 6720 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6721 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6722 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6723 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6724 | char *data, *data2, *data3; |
| 6725 | int i, pagesize; |
| 6726 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6728 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6729 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6730 | /* First, make a file with some known garbage in it. */ |
| 6731 | data = (char *) malloc (pagesize); |
| 6732 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6733 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6734 | for (i = 0; i < pagesize; ++i) |
| 6735 | *(data + i) = rand (); |
| 6736 | umask (0); |
| 6737 | fd = creat ("conftest.mmap", 0600); |
| 6738 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6739 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6740 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6741 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6742 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6743 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6744 | /* Next, try to mmap the file at a fixed address which already has |
| 6745 | something else allocated at it. If we can, also make sure that |
| 6746 | we see the same garbage. */ |
| 6747 | fd = open ("conftest.mmap", O_RDWR); |
| 6748 | if (fd < 0) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6749 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | data2 = (char *) malloc (2 * pagesize); |
| 6751 | if (!data2) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6752 | return 1; |
| 6753 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6754 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 6755 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6756 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6757 | for (i = 0; i < pagesize; ++i) |
| 6758 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6759 | return 1; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6760 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6761 | /* Finally, make sure that changes to the mapped area do not |
| 6762 | percolate back to the file as seen by read(). (This is a bug on |
| 6763 | some variants of i386 svr4.0.) */ |
| 6764 | for (i = 0; i < pagesize; ++i) |
| 6765 | *(data2 + i) = *(data2 + i) + 1; |
| 6766 | data3 = (char *) malloc (pagesize); |
| 6767 | if (!data3) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6768 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6769 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6770 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6771 | for (i = 0; i < pagesize; ++i) |
| 6772 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6773 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6774 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6775 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6776 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6777 | _ACEOF |
| 6778 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6779 | if { (ac_try="$ac_link" |
| 6780 | case "(($ac_try" in |
| 6781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6782 | *) ac_try_echo=$ac_try;; |
| 6783 | esac |
| 6784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6785 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6789 | { (case "(($ac_try" in |
| 6790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6791 | *) ac_try_echo=$ac_try;; |
| 6792 | esac |
| 6793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6794 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6795 | ac_status=$? |
| 6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6797 | (exit $ac_status); }; }; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6798 | ac_cv_func_mmap_fixed_mapped=yes |
| 6799 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6800 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6801 | echo "$as_me: failed program was:" >&5 |
| 6802 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6803 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6804 | ( exit $ac_status ) |
| 6805 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6806 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6807 | 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] | 6808 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6809 | |
| 6810 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6812 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 6813 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6814 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6815 | |
| 6816 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6817 | #define HAVE_MMAP 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6818 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6819 | |
| 6820 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | rm -f conftest.mmap |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6822 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6824 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 6825 | 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] | 6826 | if test "${ac_cv_gnu_library_2_1+set}" = set; then |
| 6827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6828 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6829 | cat >conftest.$ac_ext <<_ACEOF |
| 6830 | /* confdefs.h. */ |
| 6831 | _ACEOF |
| 6832 | cat confdefs.h >>conftest.$ac_ext |
| 6833 | cat >>conftest.$ac_ext <<_ACEOF |
| 6834 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6835 | |
| 6836 | #include <features.h> |
| 6837 | #ifdef __GNU_LIBRARY__ |
| 6838 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 6839 | Lucky GNU user |
| 6840 | #endif |
| 6841 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6842 | |
| 6843 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6845 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6846 | ac_cv_gnu_library_2_1=yes |
| 6847 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6848 | ac_cv_gnu_library_2_1=no |
| 6849 | fi |
| 6850 | rm -f conftest* |
| 6851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6852 | |
| 6853 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6854 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6855 | { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5 |
| 6856 | echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6857 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6858 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6859 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6860 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6861 | |
| 6862 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6863 | { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5 |
| 6864 | 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] | 6865 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then |
| 6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6867 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6868 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6869 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6871 | # Guess based on the CPU. |
| 6872 | case "$host_cpu" in |
| 6873 | alpha* | i3456786 | m68k | s390*) |
| 6874 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 6875 | *) |
| 6876 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 6877 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6878 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6879 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6880 | cat >conftest.$ac_ext <<_ACEOF |
| 6881 | /* confdefs.h. */ |
| 6882 | _ACEOF |
| 6883 | cat confdefs.h >>conftest.$ac_ext |
| 6884 | cat >>conftest.$ac_ext <<_ACEOF |
| 6885 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6886 | |
| 6887 | #include <stdlib.h> |
| 6888 | #include <signal.h> |
| 6889 | |
| 6890 | static void |
| 6891 | #ifdef __cplusplus |
| 6892 | sigfpe_handler (int sig) |
| 6893 | #else |
| 6894 | sigfpe_handler (sig) int sig; |
| 6895 | #endif |
| 6896 | { |
| 6897 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 6898 | exit (sig != SIGFPE); |
| 6899 | } |
| 6900 | |
| 6901 | int x = 1; |
| 6902 | int y = 0; |
| 6903 | int z; |
| 6904 | int nan; |
| 6905 | |
| 6906 | int main () |
| 6907 | { |
| 6908 | signal (SIGFPE, sigfpe_handler); |
| 6909 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 6910 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 6911 | signal (SIGTRAP, sigfpe_handler); |
| 6912 | #endif |
| 6913 | /* Linux/SPARC yields signal SIGILL. */ |
| 6914 | #if defined (__sparc__) && defined (__linux__) |
| 6915 | signal (SIGILL, sigfpe_handler); |
| 6916 | #endif |
| 6917 | |
| 6918 | z = x / y; |
| 6919 | nan = y / y; |
| 6920 | exit (1); |
| 6921 | } |
| 6922 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6923 | _ACEOF |
| 6924 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6925 | if { (ac_try="$ac_link" |
| 6926 | case "(($ac_try" in |
| 6927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6928 | *) ac_try_echo=$ac_try;; |
| 6929 | esac |
| 6930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6931 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6932 | ac_status=$? |
| 6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6934 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6935 | { (case "(($ac_try" in |
| 6936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6937 | *) ac_try_echo=$ac_try;; |
| 6938 | esac |
| 6939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 6940 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6941 | ac_status=$? |
| 6942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6943 | (exit $ac_status); }; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6944 | gt_cv_int_divbyzero_sigfpe=yes |
| 6945 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6946 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6947 | echo "$as_me: failed program was:" >&5 |
| 6948 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 6949 | |
| 6950 | ( exit $ac_status ) |
| 6951 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6952 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6953 | 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] | 6954 | fi |
| 6955 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6956 | |
| 6957 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6959 | { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
| 6960 | echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6961 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 6962 | *yes) value=1;; |
| 6963 | *) value=0;; |
| 6964 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6965 | |
| 6966 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6967 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6968 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6969 | |
| 6970 | |
| 6971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6972 | { echo "$as_me:$LINENO: checking for unsigned long long" >&5 |
| 6973 | echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then |
| 6975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6976 | else |
| 6977 | cat >conftest.$ac_ext <<_ACEOF |
| 6978 | /* confdefs.h. */ |
| 6979 | _ACEOF |
| 6980 | cat confdefs.h >>conftest.$ac_ext |
| 6981 | cat >>conftest.$ac_ext <<_ACEOF |
| 6982 | /* end confdefs.h. */ |
| 6983 | unsigned long long ull = 1ULL; int i = 63; |
| 6984 | int |
| 6985 | main () |
| 6986 | { |
| 6987 | unsigned long long ullmax = (unsigned long long) -1; |
| 6988 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 6989 | ; |
| 6990 | return 0; |
| 6991 | } |
| 6992 | _ACEOF |
| 6993 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6994 | if { (ac_try="$ac_link" |
| 6995 | case "(($ac_try" in |
| 6996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6997 | *) ac_try_echo=$ac_try;; |
| 6998 | esac |
| 6999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7000 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7001 | ac_status=$? |
| 7002 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7003 | rm -f conftest.er1 |
| 7004 | cat conftest.err >&5 |
| 7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7006 | (exit $ac_status); } && { |
| 7007 | test -z "$ac_c_werror_flag" || |
| 7008 | test ! -s conftest.err |
| 7009 | } && test -s conftest$ac_exeext && |
| 7010 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7011 | ac_cv_type_unsigned_long_long=yes |
| 7012 | else |
| 7013 | echo "$as_me: failed program was:" >&5 |
| 7014 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7015 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7016 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7017 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7018 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7019 | 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] | 7020 | conftest$ac_exeext conftest.$ac_ext |
| 7021 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7022 | { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5 |
| 7023 | echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7024 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7025 | |
| 7026 | cat >>confdefs.h <<\_ACEOF |
| 7027 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 7028 | _ACEOF |
| 7029 | |
| 7030 | fi |
| 7031 | |
| 7032 | |
| 7033 | |
| 7034 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7035 | 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] | 7036 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7037 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7038 | && ac_type='unsigned long long' \ |
| 7039 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7040 | |
| 7041 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7042 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7043 | _ACEOF |
| 7044 | |
| 7045 | else |
| 7046 | |
| 7047 | cat >>confdefs.h <<\_ACEOF |
| 7048 | #define HAVE_UINTMAX_T 1 |
| 7049 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7050 | |
| 7051 | fi |
| 7052 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7054 | { echo "$as_me:$LINENO: checking for inttypes.h" >&5 |
| 7055 | echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7056 | if test "${gt_cv_header_inttypes_h+set}" = set; then |
| 7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7058 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7059 | |
| 7060 | cat >conftest.$ac_ext <<_ACEOF |
| 7061 | /* confdefs.h. */ |
| 7062 | _ACEOF |
| 7063 | cat confdefs.h >>conftest.$ac_ext |
| 7064 | cat >>conftest.$ac_ext <<_ACEOF |
| 7065 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7066 | #include <sys/types.h> |
| 7067 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7068 | int |
| 7069 | main () |
| 7070 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7071 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7072 | ; |
| 7073 | return 0; |
| 7074 | } |
| 7075 | _ACEOF |
| 7076 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7077 | if { (ac_try="$ac_compile" |
| 7078 | case "(($ac_try" in |
| 7079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7080 | *) ac_try_echo=$ac_try;; |
| 7081 | esac |
| 7082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7083 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7084 | ac_status=$? |
| 7085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7086 | rm -f conftest.er1 |
| 7087 | cat conftest.err >&5 |
| 7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7089 | (exit $ac_status); } && { |
| 7090 | test -z "$ac_c_werror_flag" || |
| 7091 | test ! -s conftest.err |
| 7092 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7093 | gt_cv_header_inttypes_h=yes |
| 7094 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7095 | echo "$as_me: failed program was:" >&5 |
| 7096 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7098 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7100 | |
| 7101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7102 | |
| 7103 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7104 | { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5 |
| 7105 | echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7106 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7107 | |
| 7108 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7109 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7110 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7111 | |
| 7112 | fi |
| 7113 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7114 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7115 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7116 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7117 | { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 7118 | 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] | 7119 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then |
| 7120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7121 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7122 | |
| 7123 | cat >conftest.$ac_ext <<_ACEOF |
| 7124 | /* confdefs.h. */ |
| 7125 | _ACEOF |
| 7126 | cat confdefs.h >>conftest.$ac_ext |
| 7127 | cat >>conftest.$ac_ext <<_ACEOF |
| 7128 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7129 | #include <inttypes.h> |
| 7130 | #ifdef PRId32 |
| 7131 | char *p = PRId32; |
| 7132 | #endif |
| 7133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | int |
| 7135 | main () |
| 7136 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7137 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7138 | ; |
| 7139 | return 0; |
| 7140 | } |
| 7141 | _ACEOF |
| 7142 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7143 | if { (ac_try="$ac_compile" |
| 7144 | case "(($ac_try" in |
| 7145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7146 | *) ac_try_echo=$ac_try;; |
| 7147 | esac |
| 7148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7149 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7150 | ac_status=$? |
| 7151 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7152 | rm -f conftest.er1 |
| 7153 | cat conftest.err >&5 |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7155 | (exit $ac_status); } && { |
| 7156 | test -z "$ac_c_werror_flag" || |
| 7157 | test ! -s conftest.err |
| 7158 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7159 | gt_cv_inttypes_pri_broken=no |
| 7160 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7161 | echo "$as_me: failed program was:" >&5 |
| 7162 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7163 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7164 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7165 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7166 | |
| 7167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7168 | |
| 7169 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7170 | { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5 |
| 7171 | echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7172 | fi |
| 7173 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7174 | |
| 7175 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7176 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7177 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7178 | |
| 7179 | fi |
| 7180 | |
| 7181 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7182 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7183 | for ac_header in stdint.h |
| 7184 | do |
| 7185 | 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] | 7186 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 7187 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7189 | 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] | 7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7191 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7192 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7193 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7194 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7195 | else |
| 7196 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7197 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 7198 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7199 | cat >conftest.$ac_ext <<_ACEOF |
| 7200 | /* confdefs.h. */ |
| 7201 | _ACEOF |
| 7202 | cat confdefs.h >>conftest.$ac_ext |
| 7203 | cat >>conftest.$ac_ext <<_ACEOF |
| 7204 | /* end confdefs.h. */ |
| 7205 | $ac_includes_default |
| 7206 | #include <$ac_header> |
| 7207 | _ACEOF |
| 7208 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7209 | if { (ac_try="$ac_compile" |
| 7210 | case "(($ac_try" in |
| 7211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7212 | *) ac_try_echo=$ac_try;; |
| 7213 | esac |
| 7214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7215 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7216 | ac_status=$? |
| 7217 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7218 | rm -f conftest.er1 |
| 7219 | cat conftest.err >&5 |
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7221 | (exit $ac_status); } && { |
| 7222 | test -z "$ac_c_werror_flag" || |
| 7223 | test ! -s conftest.err |
| 7224 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7225 | ac_header_compiler=yes |
| 7226 | else |
| 7227 | echo "$as_me: failed program was:" >&5 |
| 7228 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7229 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7230 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7231 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7232 | |
| 7233 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7234 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 7235 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7236 | |
| 7237 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7238 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 7239 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7240 | cat >conftest.$ac_ext <<_ACEOF |
| 7241 | /* confdefs.h. */ |
| 7242 | _ACEOF |
| 7243 | cat confdefs.h >>conftest.$ac_ext |
| 7244 | cat >>conftest.$ac_ext <<_ACEOF |
| 7245 | /* end confdefs.h. */ |
| 7246 | #include <$ac_header> |
| 7247 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7248 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 7249 | case "(($ac_try" in |
| 7250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7251 | *) ac_try_echo=$ac_try;; |
| 7252 | esac |
| 7253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7254 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7255 | ac_status=$? |
| 7256 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7257 | rm -f conftest.er1 |
| 7258 | cat conftest.err >&5 |
| 7259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7260 | (exit $ac_status); } >/dev/null && { |
| 7261 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 7262 | test ! -s conftest.err |
| 7263 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7264 | ac_header_preproc=yes |
| 7265 | else |
| 7266 | echo "$as_me: failed program was:" >&5 |
| 7267 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7268 | |
| 7269 | ac_header_preproc=no |
| 7270 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7271 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7272 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7273 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 7274 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7275 | |
| 7276 | # So? What about this header? |
| 7277 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 7278 | yes:no: ) |
| 7279 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 7280 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 7281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 7282 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 7283 | ac_header_preproc=yes |
| 7284 | ;; |
| 7285 | no:yes:* ) |
| 7286 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 7287 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 7288 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 7289 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 7290 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 7291 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 7292 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 7293 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 7294 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 7295 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 7296 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 7297 | 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] | 7298 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7299 | ;; |
| 7300 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7301 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 7302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 7303 | 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] | 7304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7305 | else |
| 7306 | eval "$as_ac_Header=\$ac_header_preproc" |
| 7307 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7308 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 7309 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 7310 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7311 | |
| 7312 | fi |
| 7313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 7314 | cat >>confdefs.h <<_ACEOF |
| 7315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7316 | _ACEOF |
| 7317 | |
| 7318 | fi |
| 7319 | |
| 7320 | done |
| 7321 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7322 | { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5 |
| 7323 | echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7324 | result= |
| 7325 | cat >conftest.$ac_ext <<_ACEOF |
| 7326 | /* confdefs.h. */ |
| 7327 | _ACEOF |
| 7328 | cat confdefs.h >>conftest.$ac_ext |
| 7329 | cat >>conftest.$ac_ext <<_ACEOF |
| 7330 | /* end confdefs.h. */ |
| 7331 | |
| 7332 | #include <limits.h> |
| 7333 | #if HAVE_STDINT_H |
| 7334 | #include <stdint.h> |
| 7335 | #endif |
| 7336 | #ifdef SIZE_MAX |
| 7337 | Found it |
| 7338 | #endif |
| 7339 | |
| 7340 | _ACEOF |
| 7341 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7342 | $EGREP "Found it" >/dev/null 2>&1; then |
| 7343 | result=yes |
| 7344 | fi |
| 7345 | rm -f conftest* |
| 7346 | |
| 7347 | if test -z "$result"; then |
| 7348 | if test "$cross_compiling" = yes; then |
| 7349 | # Depending upon the size, compute the lo and hi bounds. |
| 7350 | cat >conftest.$ac_ext <<_ACEOF |
| 7351 | /* confdefs.h. */ |
| 7352 | _ACEOF |
| 7353 | cat confdefs.h >>conftest.$ac_ext |
| 7354 | cat >>conftest.$ac_ext <<_ACEOF |
| 7355 | /* end confdefs.h. */ |
| 7356 | #include <stddef.h> |
| 7357 | int |
| 7358 | main () |
| 7359 | { |
| 7360 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)]; |
| 7361 | test_array [0] = 0 |
| 7362 | |
| 7363 | ; |
| 7364 | return 0; |
| 7365 | } |
| 7366 | _ACEOF |
| 7367 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7368 | if { (ac_try="$ac_compile" |
| 7369 | case "(($ac_try" in |
| 7370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7371 | *) ac_try_echo=$ac_try;; |
| 7372 | esac |
| 7373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7374 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7375 | ac_status=$? |
| 7376 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7377 | rm -f conftest.er1 |
| 7378 | cat conftest.err >&5 |
| 7379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7380 | (exit $ac_status); } && { |
| 7381 | test -z "$ac_c_werror_flag" || |
| 7382 | test ! -s conftest.err |
| 7383 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7384 | ac_lo=0 ac_mid=0 |
| 7385 | while :; do |
| 7386 | cat >conftest.$ac_ext <<_ACEOF |
| 7387 | /* confdefs.h. */ |
| 7388 | _ACEOF |
| 7389 | cat confdefs.h >>conftest.$ac_ext |
| 7390 | cat >>conftest.$ac_ext <<_ACEOF |
| 7391 | /* end confdefs.h. */ |
| 7392 | #include <stddef.h> |
| 7393 | int |
| 7394 | main () |
| 7395 | { |
| 7396 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7397 | test_array [0] = 0 |
| 7398 | |
| 7399 | ; |
| 7400 | return 0; |
| 7401 | } |
| 7402 | _ACEOF |
| 7403 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7404 | if { (ac_try="$ac_compile" |
| 7405 | case "(($ac_try" in |
| 7406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7407 | *) ac_try_echo=$ac_try;; |
| 7408 | esac |
| 7409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7410 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7411 | ac_status=$? |
| 7412 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7413 | rm -f conftest.er1 |
| 7414 | cat conftest.err >&5 |
| 7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7416 | (exit $ac_status); } && { |
| 7417 | test -z "$ac_c_werror_flag" || |
| 7418 | test ! -s conftest.err |
| 7419 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7420 | ac_hi=$ac_mid; break |
| 7421 | else |
| 7422 | echo "$as_me: failed program was:" >&5 |
| 7423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7425 | ac_lo=`expr $ac_mid + 1` |
| 7426 | if test $ac_lo -le $ac_mid; then |
| 7427 | ac_lo= ac_hi= |
| 7428 | break |
| 7429 | fi |
| 7430 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7431 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7432 | |
| 7433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7434 | done |
| 7435 | else |
| 7436 | echo "$as_me: failed program was:" >&5 |
| 7437 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7438 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7439 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7440 | /* confdefs.h. */ |
| 7441 | _ACEOF |
| 7442 | cat confdefs.h >>conftest.$ac_ext |
| 7443 | cat >>conftest.$ac_ext <<_ACEOF |
| 7444 | /* end confdefs.h. */ |
| 7445 | #include <stddef.h> |
| 7446 | int |
| 7447 | main () |
| 7448 | { |
| 7449 | static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)]; |
| 7450 | test_array [0] = 0 |
| 7451 | |
| 7452 | ; |
| 7453 | return 0; |
| 7454 | } |
| 7455 | _ACEOF |
| 7456 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7457 | if { (ac_try="$ac_compile" |
| 7458 | case "(($ac_try" in |
| 7459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7460 | *) ac_try_echo=$ac_try;; |
| 7461 | esac |
| 7462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7463 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7464 | ac_status=$? |
| 7465 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7466 | rm -f conftest.er1 |
| 7467 | cat conftest.err >&5 |
| 7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7469 | (exit $ac_status); } && { |
| 7470 | test -z "$ac_c_werror_flag" || |
| 7471 | test ! -s conftest.err |
| 7472 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | ac_hi=-1 ac_mid=-1 |
| 7474 | while :; do |
| 7475 | cat >conftest.$ac_ext <<_ACEOF |
| 7476 | /* confdefs.h. */ |
| 7477 | _ACEOF |
| 7478 | cat confdefs.h >>conftest.$ac_ext |
| 7479 | cat >>conftest.$ac_ext <<_ACEOF |
| 7480 | /* end confdefs.h. */ |
| 7481 | #include <stddef.h> |
| 7482 | int |
| 7483 | main () |
| 7484 | { |
| 7485 | static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)]; |
| 7486 | test_array [0] = 0 |
| 7487 | |
| 7488 | ; |
| 7489 | return 0; |
| 7490 | } |
| 7491 | _ACEOF |
| 7492 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7493 | if { (ac_try="$ac_compile" |
| 7494 | case "(($ac_try" in |
| 7495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7496 | *) ac_try_echo=$ac_try;; |
| 7497 | esac |
| 7498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7499 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7500 | ac_status=$? |
| 7501 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7502 | rm -f conftest.er1 |
| 7503 | cat conftest.err >&5 |
| 7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7505 | (exit $ac_status); } && { |
| 7506 | test -z "$ac_c_werror_flag" || |
| 7507 | test ! -s conftest.err |
| 7508 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7509 | ac_lo=$ac_mid; break |
| 7510 | else |
| 7511 | echo "$as_me: failed program was:" >&5 |
| 7512 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7513 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7514 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7515 | if test $ac_mid -le $ac_hi; then |
| 7516 | ac_lo= ac_hi= |
| 7517 | break |
| 7518 | fi |
| 7519 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7520 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7521 | |
| 7522 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7523 | done |
| 7524 | else |
| 7525 | echo "$as_me: failed program was:" >&5 |
| 7526 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7527 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7528 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7529 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7530 | |
| 7531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7533 | |
| 7534 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7535 | # Binary search between lo and hi bounds. |
| 7536 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7537 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7538 | cat >conftest.$ac_ext <<_ACEOF |
| 7539 | /* confdefs.h. */ |
| 7540 | _ACEOF |
| 7541 | cat confdefs.h >>conftest.$ac_ext |
| 7542 | cat >>conftest.$ac_ext <<_ACEOF |
| 7543 | /* end confdefs.h. */ |
| 7544 | #include <stddef.h> |
| 7545 | int |
| 7546 | main () |
| 7547 | { |
| 7548 | static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)]; |
| 7549 | test_array [0] = 0 |
| 7550 | |
| 7551 | ; |
| 7552 | return 0; |
| 7553 | } |
| 7554 | _ACEOF |
| 7555 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7556 | if { (ac_try="$ac_compile" |
| 7557 | case "(($ac_try" in |
| 7558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7559 | *) ac_try_echo=$ac_try;; |
| 7560 | esac |
| 7561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7562 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7563 | ac_status=$? |
| 7564 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7565 | rm -f conftest.er1 |
| 7566 | cat conftest.err >&5 |
| 7567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7568 | (exit $ac_status); } && { |
| 7569 | test -z "$ac_c_werror_flag" || |
| 7570 | test ! -s conftest.err |
| 7571 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7572 | ac_hi=$ac_mid |
| 7573 | else |
| 7574 | echo "$as_me: failed program was:" >&5 |
| 7575 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7576 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7577 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7578 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7579 | |
| 7580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7581 | done |
| 7582 | case $ac_lo in |
| 7583 | ?*) res_hi=$ac_lo;; |
| 7584 | '') result=? ;; |
| 7585 | esac |
| 7586 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7587 | cat >conftest.$ac_ext <<_ACEOF |
| 7588 | /* confdefs.h. */ |
| 7589 | _ACEOF |
| 7590 | cat confdefs.h >>conftest.$ac_ext |
| 7591 | cat >>conftest.$ac_ext <<_ACEOF |
| 7592 | /* end confdefs.h. */ |
| 7593 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7594 | static long int longval () { return ~(size_t)0 / 10; } |
| 7595 | static unsigned long int ulongval () { return ~(size_t)0 / 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7596 | #include <stdio.h> |
| 7597 | #include <stdlib.h> |
| 7598 | int |
| 7599 | main () |
| 7600 | { |
| 7601 | |
| 7602 | FILE *f = fopen ("conftest.val", "w"); |
| 7603 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7604 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7605 | if ((~(size_t)0 / 10) < 0) |
| 7606 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7607 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7608 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7609 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7610 | fprintf (f, "%ld\n", i); |
| 7611 | } |
| 7612 | else |
| 7613 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7614 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7615 | if (i != (~(size_t)0 / 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7616 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7617 | fprintf (f, "%lu\n", i); |
| 7618 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7619 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7620 | |
| 7621 | ; |
| 7622 | return 0; |
| 7623 | } |
| 7624 | _ACEOF |
| 7625 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7626 | if { (ac_try="$ac_link" |
| 7627 | case "(($ac_try" in |
| 7628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7629 | *) ac_try_echo=$ac_try;; |
| 7630 | esac |
| 7631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7632 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7633 | ac_status=$? |
| 7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7635 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7636 | { (case "(($ac_try" in |
| 7637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7638 | *) ac_try_echo=$ac_try;; |
| 7639 | esac |
| 7640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7641 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7642 | ac_status=$? |
| 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7644 | (exit $ac_status); }; }; then |
| 7645 | res_hi=`cat conftest.val` |
| 7646 | else |
| 7647 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7648 | echo "$as_me: failed program was:" >&5 |
| 7649 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7650 | |
| 7651 | ( exit $ac_status ) |
| 7652 | result=? |
| 7653 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7654 | 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] | 7655 | fi |
| 7656 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7657 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7658 | if test "$cross_compiling" = yes; then |
| 7659 | # Depending upon the size, compute the lo and hi bounds. |
| 7660 | cat >conftest.$ac_ext <<_ACEOF |
| 7661 | /* confdefs.h. */ |
| 7662 | _ACEOF |
| 7663 | cat confdefs.h >>conftest.$ac_ext |
| 7664 | cat >>conftest.$ac_ext <<_ACEOF |
| 7665 | /* end confdefs.h. */ |
| 7666 | #include <stddef.h> |
| 7667 | int |
| 7668 | main () |
| 7669 | { |
| 7670 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)]; |
| 7671 | test_array [0] = 0 |
| 7672 | |
| 7673 | ; |
| 7674 | return 0; |
| 7675 | } |
| 7676 | _ACEOF |
| 7677 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7678 | if { (ac_try="$ac_compile" |
| 7679 | case "(($ac_try" in |
| 7680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7681 | *) ac_try_echo=$ac_try;; |
| 7682 | esac |
| 7683 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7684 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7685 | ac_status=$? |
| 7686 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7687 | rm -f conftest.er1 |
| 7688 | cat conftest.err >&5 |
| 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7690 | (exit $ac_status); } && { |
| 7691 | test -z "$ac_c_werror_flag" || |
| 7692 | test ! -s conftest.err |
| 7693 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7694 | ac_lo=0 ac_mid=0 |
| 7695 | while :; do |
| 7696 | cat >conftest.$ac_ext <<_ACEOF |
| 7697 | /* confdefs.h. */ |
| 7698 | _ACEOF |
| 7699 | cat confdefs.h >>conftest.$ac_ext |
| 7700 | cat >>conftest.$ac_ext <<_ACEOF |
| 7701 | /* end confdefs.h. */ |
| 7702 | #include <stddef.h> |
| 7703 | int |
| 7704 | main () |
| 7705 | { |
| 7706 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7707 | test_array [0] = 0 |
| 7708 | |
| 7709 | ; |
| 7710 | return 0; |
| 7711 | } |
| 7712 | _ACEOF |
| 7713 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7714 | if { (ac_try="$ac_compile" |
| 7715 | case "(($ac_try" in |
| 7716 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7717 | *) ac_try_echo=$ac_try;; |
| 7718 | esac |
| 7719 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7720 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7721 | ac_status=$? |
| 7722 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7723 | rm -f conftest.er1 |
| 7724 | cat conftest.err >&5 |
| 7725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7726 | (exit $ac_status); } && { |
| 7727 | test -z "$ac_c_werror_flag" || |
| 7728 | test ! -s conftest.err |
| 7729 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7730 | ac_hi=$ac_mid; break |
| 7731 | else |
| 7732 | echo "$as_me: failed program was:" >&5 |
| 7733 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7734 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7735 | ac_lo=`expr $ac_mid + 1` |
| 7736 | if test $ac_lo -le $ac_mid; then |
| 7737 | ac_lo= ac_hi= |
| 7738 | break |
| 7739 | fi |
| 7740 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7741 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7742 | |
| 7743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | done |
| 7745 | else |
| 7746 | echo "$as_me: failed program was:" >&5 |
| 7747 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7748 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7749 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7750 | /* confdefs.h. */ |
| 7751 | _ACEOF |
| 7752 | cat confdefs.h >>conftest.$ac_ext |
| 7753 | cat >>conftest.$ac_ext <<_ACEOF |
| 7754 | /* end confdefs.h. */ |
| 7755 | #include <stddef.h> |
| 7756 | int |
| 7757 | main () |
| 7758 | { |
| 7759 | static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)]; |
| 7760 | test_array [0] = 0 |
| 7761 | |
| 7762 | ; |
| 7763 | return 0; |
| 7764 | } |
| 7765 | _ACEOF |
| 7766 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7767 | if { (ac_try="$ac_compile" |
| 7768 | case "(($ac_try" in |
| 7769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7770 | *) ac_try_echo=$ac_try;; |
| 7771 | esac |
| 7772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7773 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7774 | ac_status=$? |
| 7775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7776 | rm -f conftest.er1 |
| 7777 | cat conftest.err >&5 |
| 7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7779 | (exit $ac_status); } && { |
| 7780 | test -z "$ac_c_werror_flag" || |
| 7781 | test ! -s conftest.err |
| 7782 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7783 | ac_hi=-1 ac_mid=-1 |
| 7784 | while :; do |
| 7785 | cat >conftest.$ac_ext <<_ACEOF |
| 7786 | /* confdefs.h. */ |
| 7787 | _ACEOF |
| 7788 | cat confdefs.h >>conftest.$ac_ext |
| 7789 | cat >>conftest.$ac_ext <<_ACEOF |
| 7790 | /* end confdefs.h. */ |
| 7791 | #include <stddef.h> |
| 7792 | int |
| 7793 | main () |
| 7794 | { |
| 7795 | static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)]; |
| 7796 | test_array [0] = 0 |
| 7797 | |
| 7798 | ; |
| 7799 | return 0; |
| 7800 | } |
| 7801 | _ACEOF |
| 7802 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7803 | if { (ac_try="$ac_compile" |
| 7804 | case "(($ac_try" in |
| 7805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7806 | *) ac_try_echo=$ac_try;; |
| 7807 | esac |
| 7808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7809 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7810 | ac_status=$? |
| 7811 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7812 | rm -f conftest.er1 |
| 7813 | cat conftest.err >&5 |
| 7814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7815 | (exit $ac_status); } && { |
| 7816 | test -z "$ac_c_werror_flag" || |
| 7817 | test ! -s conftest.err |
| 7818 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7819 | ac_lo=$ac_mid; break |
| 7820 | else |
| 7821 | echo "$as_me: failed program was:" >&5 |
| 7822 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7823 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7824 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7825 | if test $ac_mid -le $ac_hi; then |
| 7826 | ac_lo= ac_hi= |
| 7827 | break |
| 7828 | fi |
| 7829 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7830 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7831 | |
| 7832 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7833 | done |
| 7834 | else |
| 7835 | echo "$as_me: failed program was:" >&5 |
| 7836 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7837 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7838 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7839 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7840 | |
| 7841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7842 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7843 | |
| 7844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7845 | # Binary search between lo and hi bounds. |
| 7846 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7847 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7848 | cat >conftest.$ac_ext <<_ACEOF |
| 7849 | /* confdefs.h. */ |
| 7850 | _ACEOF |
| 7851 | cat confdefs.h >>conftest.$ac_ext |
| 7852 | cat >>conftest.$ac_ext <<_ACEOF |
| 7853 | /* end confdefs.h. */ |
| 7854 | #include <stddef.h> |
| 7855 | int |
| 7856 | main () |
| 7857 | { |
| 7858 | static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)]; |
| 7859 | test_array [0] = 0 |
| 7860 | |
| 7861 | ; |
| 7862 | return 0; |
| 7863 | } |
| 7864 | _ACEOF |
| 7865 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7866 | if { (ac_try="$ac_compile" |
| 7867 | case "(($ac_try" in |
| 7868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7869 | *) ac_try_echo=$ac_try;; |
| 7870 | esac |
| 7871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7872 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7873 | ac_status=$? |
| 7874 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7875 | rm -f conftest.er1 |
| 7876 | cat conftest.err >&5 |
| 7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7878 | (exit $ac_status); } && { |
| 7879 | test -z "$ac_c_werror_flag" || |
| 7880 | test ! -s conftest.err |
| 7881 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7882 | ac_hi=$ac_mid |
| 7883 | else |
| 7884 | echo "$as_me: failed program was:" >&5 |
| 7885 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7886 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7887 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7888 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7889 | |
| 7890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7891 | done |
| 7892 | case $ac_lo in |
| 7893 | ?*) res_lo=$ac_lo;; |
| 7894 | '') result=? ;; |
| 7895 | esac |
| 7896 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7897 | cat >conftest.$ac_ext <<_ACEOF |
| 7898 | /* confdefs.h. */ |
| 7899 | _ACEOF |
| 7900 | cat confdefs.h >>conftest.$ac_ext |
| 7901 | cat >>conftest.$ac_ext <<_ACEOF |
| 7902 | /* end confdefs.h. */ |
| 7903 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7904 | static long int longval () { return ~(size_t)0 % 10; } |
| 7905 | static unsigned long int ulongval () { return ~(size_t)0 % 10; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7906 | #include <stdio.h> |
| 7907 | #include <stdlib.h> |
| 7908 | int |
| 7909 | main () |
| 7910 | { |
| 7911 | |
| 7912 | FILE *f = fopen ("conftest.val", "w"); |
| 7913 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7914 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7915 | if ((~(size_t)0 % 10) < 0) |
| 7916 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7917 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7918 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7919 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7920 | fprintf (f, "%ld\n", i); |
| 7921 | } |
| 7922 | else |
| 7923 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7924 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7925 | if (i != (~(size_t)0 % 10)) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7926 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7927 | fprintf (f, "%lu\n", i); |
| 7928 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7929 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7930 | |
| 7931 | ; |
| 7932 | return 0; |
| 7933 | } |
| 7934 | _ACEOF |
| 7935 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7936 | if { (ac_try="$ac_link" |
| 7937 | case "(($ac_try" in |
| 7938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7939 | *) ac_try_echo=$ac_try;; |
| 7940 | esac |
| 7941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7942 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7943 | ac_status=$? |
| 7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7946 | { (case "(($ac_try" in |
| 7947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7948 | *) ac_try_echo=$ac_try;; |
| 7949 | esac |
| 7950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7951 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7952 | ac_status=$? |
| 7953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7954 | (exit $ac_status); }; }; then |
| 7955 | res_lo=`cat conftest.val` |
| 7956 | else |
| 7957 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7958 | echo "$as_me: failed program was:" >&5 |
| 7959 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 7960 | |
| 7961 | ( exit $ac_status ) |
| 7962 | result=? |
| 7963 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7964 | 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] | 7965 | fi |
| 7966 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7967 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7968 | if test "$cross_compiling" = yes; then |
| 7969 | # Depending upon the size, compute the lo and hi bounds. |
| 7970 | cat >conftest.$ac_ext <<_ACEOF |
| 7971 | /* confdefs.h. */ |
| 7972 | _ACEOF |
| 7973 | cat confdefs.h >>conftest.$ac_ext |
| 7974 | cat >>conftest.$ac_ext <<_ACEOF |
| 7975 | /* end confdefs.h. */ |
| 7976 | #include <stddef.h> |
| 7977 | int |
| 7978 | main () |
| 7979 | { |
| 7980 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)]; |
| 7981 | test_array [0] = 0 |
| 7982 | |
| 7983 | ; |
| 7984 | return 0; |
| 7985 | } |
| 7986 | _ACEOF |
| 7987 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7988 | if { (ac_try="$ac_compile" |
| 7989 | case "(($ac_try" in |
| 7990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7991 | *) ac_try_echo=$ac_try;; |
| 7992 | esac |
| 7993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 7994 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7995 | ac_status=$? |
| 7996 | grep -v '^ *+' conftest.er1 >conftest.err |
| 7997 | rm -f conftest.er1 |
| 7998 | cat conftest.err >&5 |
| 7999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8000 | (exit $ac_status); } && { |
| 8001 | test -z "$ac_c_werror_flag" || |
| 8002 | test ! -s conftest.err |
| 8003 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8004 | ac_lo=0 ac_mid=0 |
| 8005 | while :; do |
| 8006 | cat >conftest.$ac_ext <<_ACEOF |
| 8007 | /* confdefs.h. */ |
| 8008 | _ACEOF |
| 8009 | cat confdefs.h >>conftest.$ac_ext |
| 8010 | cat >>conftest.$ac_ext <<_ACEOF |
| 8011 | /* end confdefs.h. */ |
| 8012 | #include <stddef.h> |
| 8013 | int |
| 8014 | main () |
| 8015 | { |
| 8016 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8017 | test_array [0] = 0 |
| 8018 | |
| 8019 | ; |
| 8020 | return 0; |
| 8021 | } |
| 8022 | _ACEOF |
| 8023 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8024 | if { (ac_try="$ac_compile" |
| 8025 | case "(($ac_try" in |
| 8026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8027 | *) ac_try_echo=$ac_try;; |
| 8028 | esac |
| 8029 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8030 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8031 | ac_status=$? |
| 8032 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8033 | rm -f conftest.er1 |
| 8034 | cat conftest.err >&5 |
| 8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8036 | (exit $ac_status); } && { |
| 8037 | test -z "$ac_c_werror_flag" || |
| 8038 | test ! -s conftest.err |
| 8039 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8040 | ac_hi=$ac_mid; break |
| 8041 | else |
| 8042 | echo "$as_me: failed program was:" >&5 |
| 8043 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8044 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8045 | ac_lo=`expr $ac_mid + 1` |
| 8046 | if test $ac_lo -le $ac_mid; then |
| 8047 | ac_lo= ac_hi= |
| 8048 | break |
| 8049 | fi |
| 8050 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8051 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8052 | |
| 8053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8054 | done |
| 8055 | else |
| 8056 | echo "$as_me: failed program was:" >&5 |
| 8057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8058 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8059 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8060 | /* confdefs.h. */ |
| 8061 | _ACEOF |
| 8062 | cat confdefs.h >>conftest.$ac_ext |
| 8063 | cat >>conftest.$ac_ext <<_ACEOF |
| 8064 | /* end confdefs.h. */ |
| 8065 | #include <stddef.h> |
| 8066 | int |
| 8067 | main () |
| 8068 | { |
| 8069 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)]; |
| 8070 | test_array [0] = 0 |
| 8071 | |
| 8072 | ; |
| 8073 | return 0; |
| 8074 | } |
| 8075 | _ACEOF |
| 8076 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8077 | if { (ac_try="$ac_compile" |
| 8078 | case "(($ac_try" in |
| 8079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8080 | *) ac_try_echo=$ac_try;; |
| 8081 | esac |
| 8082 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8083 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8084 | ac_status=$? |
| 8085 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8086 | rm -f conftest.er1 |
| 8087 | cat conftest.err >&5 |
| 8088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8089 | (exit $ac_status); } && { |
| 8090 | test -z "$ac_c_werror_flag" || |
| 8091 | test ! -s conftest.err |
| 8092 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8093 | ac_hi=-1 ac_mid=-1 |
| 8094 | while :; do |
| 8095 | cat >conftest.$ac_ext <<_ACEOF |
| 8096 | /* confdefs.h. */ |
| 8097 | _ACEOF |
| 8098 | cat confdefs.h >>conftest.$ac_ext |
| 8099 | cat >>conftest.$ac_ext <<_ACEOF |
| 8100 | /* end confdefs.h. */ |
| 8101 | #include <stddef.h> |
| 8102 | int |
| 8103 | main () |
| 8104 | { |
| 8105 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)]; |
| 8106 | test_array [0] = 0 |
| 8107 | |
| 8108 | ; |
| 8109 | return 0; |
| 8110 | } |
| 8111 | _ACEOF |
| 8112 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8113 | if { (ac_try="$ac_compile" |
| 8114 | case "(($ac_try" in |
| 8115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8116 | *) ac_try_echo=$ac_try;; |
| 8117 | esac |
| 8118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8119 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8120 | ac_status=$? |
| 8121 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8122 | rm -f conftest.er1 |
| 8123 | cat conftest.err >&5 |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8125 | (exit $ac_status); } && { |
| 8126 | test -z "$ac_c_werror_flag" || |
| 8127 | test ! -s conftest.err |
| 8128 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8129 | ac_lo=$ac_mid; break |
| 8130 | else |
| 8131 | echo "$as_me: failed program was:" >&5 |
| 8132 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8133 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8134 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8135 | if test $ac_mid -le $ac_hi; then |
| 8136 | ac_lo= ac_hi= |
| 8137 | break |
| 8138 | fi |
| 8139 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8140 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8141 | |
| 8142 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8143 | done |
| 8144 | else |
| 8145 | echo "$as_me: failed program was:" >&5 |
| 8146 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8147 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8148 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8149 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8150 | |
| 8151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8152 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8153 | |
| 8154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8155 | # Binary search between lo and hi bounds. |
| 8156 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8157 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8158 | cat >conftest.$ac_ext <<_ACEOF |
| 8159 | /* confdefs.h. */ |
| 8160 | _ACEOF |
| 8161 | cat confdefs.h >>conftest.$ac_ext |
| 8162 | cat >>conftest.$ac_ext <<_ACEOF |
| 8163 | /* end confdefs.h. */ |
| 8164 | #include <stddef.h> |
| 8165 | int |
| 8166 | main () |
| 8167 | { |
| 8168 | static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)]; |
| 8169 | test_array [0] = 0 |
| 8170 | |
| 8171 | ; |
| 8172 | return 0; |
| 8173 | } |
| 8174 | _ACEOF |
| 8175 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8176 | if { (ac_try="$ac_compile" |
| 8177 | case "(($ac_try" in |
| 8178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8179 | *) ac_try_echo=$ac_try;; |
| 8180 | esac |
| 8181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8182 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8183 | ac_status=$? |
| 8184 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8185 | rm -f conftest.er1 |
| 8186 | cat conftest.err >&5 |
| 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8188 | (exit $ac_status); } && { |
| 8189 | test -z "$ac_c_werror_flag" || |
| 8190 | test ! -s conftest.err |
| 8191 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8192 | ac_hi=$ac_mid |
| 8193 | else |
| 8194 | echo "$as_me: failed program was:" >&5 |
| 8195 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8196 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8197 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8198 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8199 | |
| 8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8201 | done |
| 8202 | case $ac_lo in |
| 8203 | ?*) fits_in_uint=$ac_lo;; |
| 8204 | '') result=? ;; |
| 8205 | esac |
| 8206 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8207 | cat >conftest.$ac_ext <<_ACEOF |
| 8208 | /* confdefs.h. */ |
| 8209 | _ACEOF |
| 8210 | cat confdefs.h >>conftest.$ac_ext |
| 8211 | cat >>conftest.$ac_ext <<_ACEOF |
| 8212 | /* end confdefs.h. */ |
| 8213 | #include <stddef.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8214 | static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); } |
| 8215 | 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] | 8216 | #include <stdio.h> |
| 8217 | #include <stdlib.h> |
| 8218 | int |
| 8219 | main () |
| 8220 | { |
| 8221 | |
| 8222 | FILE *f = fopen ("conftest.val", "w"); |
| 8223 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8224 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8225 | if ((sizeof (size_t) <= sizeof (unsigned int)) < 0) |
| 8226 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8227 | long int i = longval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8228 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8229 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8230 | fprintf (f, "%ld\n", i); |
| 8231 | } |
| 8232 | else |
| 8233 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8234 | unsigned long int i = ulongval (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8235 | if (i != (sizeof (size_t) <= sizeof (unsigned int))) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8236 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8237 | fprintf (f, "%lu\n", i); |
| 8238 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8239 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8240 | |
| 8241 | ; |
| 8242 | return 0; |
| 8243 | } |
| 8244 | _ACEOF |
| 8245 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8246 | if { (ac_try="$ac_link" |
| 8247 | case "(($ac_try" in |
| 8248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8249 | *) ac_try_echo=$ac_try;; |
| 8250 | esac |
| 8251 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8252 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8253 | ac_status=$? |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8256 | { (case "(($ac_try" in |
| 8257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8258 | *) ac_try_echo=$ac_try;; |
| 8259 | esac |
| 8260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8261 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8262 | ac_status=$? |
| 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); }; }; then |
| 8265 | fits_in_uint=`cat conftest.val` |
| 8266 | else |
| 8267 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8268 | echo "$as_me: failed program was:" >&5 |
| 8269 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8270 | |
| 8271 | ( exit $ac_status ) |
| 8272 | result=? |
| 8273 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8274 | 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] | 8275 | fi |
| 8276 | rm -f conftest.val |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8277 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8278 | if test "$fits_in_uint" = 1; then |
| 8279 | cat >conftest.$ac_ext <<_ACEOF |
| 8280 | /* confdefs.h. */ |
| 8281 | _ACEOF |
| 8282 | cat confdefs.h >>conftest.$ac_ext |
| 8283 | cat >>conftest.$ac_ext <<_ACEOF |
| 8284 | /* end confdefs.h. */ |
| 8285 | #include <stddef.h> |
| 8286 | extern size_t foo; |
| 8287 | extern unsigned long foo; |
| 8288 | |
| 8289 | int |
| 8290 | main () |
| 8291 | { |
| 8292 | |
| 8293 | ; |
| 8294 | return 0; |
| 8295 | } |
| 8296 | _ACEOF |
| 8297 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8298 | if { (ac_try="$ac_compile" |
| 8299 | case "(($ac_try" in |
| 8300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8301 | *) ac_try_echo=$ac_try;; |
| 8302 | esac |
| 8303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8304 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8305 | ac_status=$? |
| 8306 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8307 | rm -f conftest.er1 |
| 8308 | cat conftest.err >&5 |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8310 | (exit $ac_status); } && { |
| 8311 | test -z "$ac_c_werror_flag" || |
| 8312 | test ! -s conftest.err |
| 8313 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8314 | fits_in_uint=0 |
| 8315 | else |
| 8316 | echo "$as_me: failed program was:" >&5 |
| 8317 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8318 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8319 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8320 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8321 | |
| 8322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8323 | fi |
| 8324 | if test -z "$result"; then |
| 8325 | if test "$fits_in_uint" = 1; then |
| 8326 | result="$res_hi$res_lo"U |
| 8327 | else |
| 8328 | result="$res_hi$res_lo"UL |
| 8329 | fi |
| 8330 | else |
| 8331 | result='~(size_t)0' |
| 8332 | fi |
| 8333 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8334 | { echo "$as_me:$LINENO: result: $result" >&5 |
| 8335 | echo "${ECHO_T}$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8336 | if test "$result" != yes; then |
| 8337 | |
| 8338 | cat >>confdefs.h <<_ACEOF |
| 8339 | #define SIZE_MAX $result |
| 8340 | _ACEOF |
| 8341 | |
| 8342 | fi |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | |
| 8347 | for ac_header in stdint.h |
| 8348 | do |
| 8349 | 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] | 8350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 8351 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8352 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8353 | 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] | 8354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8355 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8356 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8357 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8358 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8359 | else |
| 8360 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8361 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 8362 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8363 | cat >conftest.$ac_ext <<_ACEOF |
| 8364 | /* confdefs.h. */ |
| 8365 | _ACEOF |
| 8366 | cat confdefs.h >>conftest.$ac_ext |
| 8367 | cat >>conftest.$ac_ext <<_ACEOF |
| 8368 | /* end confdefs.h. */ |
| 8369 | $ac_includes_default |
| 8370 | #include <$ac_header> |
| 8371 | _ACEOF |
| 8372 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8373 | if { (ac_try="$ac_compile" |
| 8374 | case "(($ac_try" in |
| 8375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8376 | *) ac_try_echo=$ac_try;; |
| 8377 | esac |
| 8378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8379 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8380 | ac_status=$? |
| 8381 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8382 | rm -f conftest.er1 |
| 8383 | cat conftest.err >&5 |
| 8384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8385 | (exit $ac_status); } && { |
| 8386 | test -z "$ac_c_werror_flag" || |
| 8387 | test ! -s conftest.err |
| 8388 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8389 | ac_header_compiler=yes |
| 8390 | else |
| 8391 | echo "$as_me: failed program was:" >&5 |
| 8392 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8394 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8395 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8396 | |
| 8397 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8398 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 8399 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8400 | |
| 8401 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8402 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 8403 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8404 | cat >conftest.$ac_ext <<_ACEOF |
| 8405 | /* confdefs.h. */ |
| 8406 | _ACEOF |
| 8407 | cat confdefs.h >>conftest.$ac_ext |
| 8408 | cat >>conftest.$ac_ext <<_ACEOF |
| 8409 | /* end confdefs.h. */ |
| 8410 | #include <$ac_header> |
| 8411 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8412 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 8413 | case "(($ac_try" in |
| 8414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 8415 | *) ac_try_echo=$ac_try;; |
| 8416 | esac |
| 8417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 8418 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8419 | ac_status=$? |
| 8420 | grep -v '^ *+' conftest.er1 >conftest.err |
| 8421 | rm -f conftest.er1 |
| 8422 | cat conftest.err >&5 |
| 8423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8424 | (exit $ac_status); } >/dev/null && { |
| 8425 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 8426 | test ! -s conftest.err |
| 8427 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8428 | ac_header_preproc=yes |
| 8429 | else |
| 8430 | echo "$as_me: failed program was:" >&5 |
| 8431 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 8432 | |
| 8433 | ac_header_preproc=no |
| 8434 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8435 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8436 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8437 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 8438 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8439 | |
| 8440 | # So? What about this header? |
| 8441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 8442 | yes:no: ) |
| 8443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 8444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 8445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 8446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 8447 | ac_header_preproc=yes |
| 8448 | ;; |
| 8449 | no:yes:* ) |
| 8450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 8451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 8453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 8454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 8455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 8456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 8457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 8458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 8459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 8460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 8461 | 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] | 8462 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8463 | ;; |
| 8464 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8465 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 8466 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 8467 | 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] | 8468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8469 | else |
| 8470 | eval "$as_ac_Header=\$ac_header_preproc" |
| 8471 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8472 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 8473 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 8474 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8475 | |
| 8476 | fi |
| 8477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 8478 | cat >>confdefs.h <<_ACEOF |
| 8479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8480 | _ACEOF |
| 8481 | |
| 8482 | fi |
| 8483 | |
| 8484 | done |
| 8485 | |
| 8486 | |
| 8487 | |
| 8488 | if test "X$prefix" = "XNONE"; then |
| 8489 | acl_final_prefix="$ac_default_prefix" |
| 8490 | else |
| 8491 | acl_final_prefix="$prefix" |
| 8492 | fi |
| 8493 | if test "X$exec_prefix" = "XNONE"; then |
| 8494 | acl_final_exec_prefix='${prefix}' |
| 8495 | else |
| 8496 | acl_final_exec_prefix="$exec_prefix" |
| 8497 | fi |
| 8498 | acl_save_prefix="$prefix" |
| 8499 | prefix="$acl_final_prefix" |
| 8500 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 8501 | prefix="$acl_save_prefix" |
| 8502 | |
| 8503 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8504 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8505 | if test "${with_gnu_ld+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8506 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8507 | else |
| 8508 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8509 | fi |
| 8510 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8511 | # Prepare PATH_SEPARATOR. |
| 8512 | # The user is always right. |
| 8513 | if test "${PATH_SEPARATOR+set}" != set; then |
| 8514 | echo "#! /bin/sh" >conf$$.sh |
| 8515 | echo "exit 0" >>conf$$.sh |
| 8516 | chmod +x conf$$.sh |
| 8517 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 8518 | PATH_SEPARATOR=';' |
| 8519 | else |
| 8520 | PATH_SEPARATOR=: |
| 8521 | fi |
| 8522 | rm -f conf$$.sh |
| 8523 | fi |
| 8524 | ac_prog=ld |
| 8525 | if test "$GCC" = yes; then |
| 8526 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8527 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 8528 | 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] | 8529 | case $host in |
| 8530 | *-*-mingw*) |
| 8531 | # gcc leaves a trailing carriage return which upsets mingw |
| 8532 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 8533 | *) |
| 8534 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 8535 | esac |
| 8536 | case $ac_prog in |
| 8537 | # Accept absolute paths. |
| 8538 | [\\/]* | [A-Za-z]:[\\/]*) |
| 8539 | re_direlt='/[^/][^/]*/\.\./' |
| 8540 | # Canonicalize the path of ld |
| 8541 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 8542 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 8543 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 8544 | done |
| 8545 | test -z "$LD" && LD="$ac_prog" |
| 8546 | ;; |
| 8547 | "") |
| 8548 | # If it fails, then pretend we aren't using GCC. |
| 8549 | ac_prog=ld |
| 8550 | ;; |
| 8551 | *) |
| 8552 | # If it is relative, then search for the first ld in PATH. |
| 8553 | with_gnu_ld=unknown |
| 8554 | ;; |
| 8555 | esac |
| 8556 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8557 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 8558 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8559 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8560 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 8561 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8562 | fi |
| 8563 | if test "${acl_cv_path_LD+set}" = set; then |
| 8564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8565 | else |
| 8566 | if test -z "$LD"; then |
| 8567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 8568 | for ac_dir in $PATH; do |
| 8569 | test -z "$ac_dir" && ac_dir=. |
| 8570 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 8571 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 8572 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 8573 | # but apparently some GNU ld's only accept -v. |
| 8574 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 8575 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 8576 | *GNU* | *'with BFD'*) |
| 8577 | test "$with_gnu_ld" != no && break ;; |
| 8578 | *) |
| 8579 | test "$with_gnu_ld" != yes && break ;; |
| 8580 | esac |
| 8581 | fi |
| 8582 | done |
| 8583 | IFS="$ac_save_ifs" |
| 8584 | else |
| 8585 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 8586 | fi |
| 8587 | fi |
| 8588 | |
| 8589 | LD="$acl_cv_path_LD" |
| 8590 | if test -n "$LD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8591 | { echo "$as_me:$LINENO: result: $LD" >&5 |
| 8592 | echo "${ECHO_T}$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8593 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8594 | { echo "$as_me:$LINENO: result: no" >&5 |
| 8595 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8596 | fi |
| 8597 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 8598 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 8599 | { (exit 1); exit 1; }; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8600 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 8601 | 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] | 8602 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
| 8603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8604 | else |
| 8605 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 8606 | case `$LD -v 2>&1 </dev/null` in |
| 8607 | *GNU* | *'with BFD'*) |
| 8608 | acl_cv_prog_gnu_ld=yes ;; |
| 8609 | *) |
| 8610 | acl_cv_prog_gnu_ld=no ;; |
| 8611 | esac |
| 8612 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8613 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
| 8614 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8615 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 8616 | |
| 8617 | |
| 8618 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8619 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
| 8620 | 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] | 8621 | if test "${acl_cv_rpath+set}" = set; then |
| 8622 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8623 | else |
| 8624 | |
| 8625 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 8626 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 8627 | . ./conftest.sh |
| 8628 | rm -f ./conftest.sh |
| 8629 | acl_cv_rpath=done |
| 8630 | |
| 8631 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8632 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
| 8633 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8634 | wl="$acl_cv_wl" |
| 8635 | libext="$acl_cv_libext" |
| 8636 | shlibext="$acl_cv_shlibext" |
| 8637 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 8638 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 8639 | hardcode_direct="$acl_cv_hardcode_direct" |
| 8640 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8641 | # Check whether --enable-rpath was given. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8642 | if test "${enable_rpath+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8643 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8644 | else |
| 8645 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8646 | fi |
| 8647 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8648 | |
| 8649 | |
| 8650 | |
| 8651 | |
| 8652 | |
| 8653 | |
| 8654 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8655 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8656 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8657 | acl_save_prefix="$prefix" |
| 8658 | prefix="$acl_final_prefix" |
| 8659 | acl_save_exec_prefix="$exec_prefix" |
| 8660 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8661 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8662 | eval additional_includedir=\"$includedir\" |
| 8663 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8664 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8665 | exec_prefix="$acl_save_exec_prefix" |
| 8666 | prefix="$acl_save_prefix" |
| 8667 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8668 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8669 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8670 | if test "${with_libiconv_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8671 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8672 | if test "X$withval" = "Xno"; then |
| 8673 | use_additional=no |
| 8674 | else |
| 8675 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8676 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8677 | acl_save_prefix="$prefix" |
| 8678 | prefix="$acl_final_prefix" |
| 8679 | acl_save_exec_prefix="$exec_prefix" |
| 8680 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8681 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8682 | eval additional_includedir=\"$includedir\" |
| 8683 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8684 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8685 | exec_prefix="$acl_save_exec_prefix" |
| 8686 | prefix="$acl_save_prefix" |
| 8687 | |
| 8688 | else |
| 8689 | additional_includedir="$withval/include" |
| 8690 | additional_libdir="$withval/lib" |
| 8691 | fi |
| 8692 | fi |
| 8693 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8694 | fi |
| 8695 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8696 | LIBICONV= |
| 8697 | LTLIBICONV= |
| 8698 | INCICONV= |
| 8699 | rpathdirs= |
| 8700 | ltrpathdirs= |
| 8701 | names_already_handled= |
| 8702 | names_next_round='iconv ' |
| 8703 | while test -n "$names_next_round"; do |
| 8704 | names_this_round="$names_next_round" |
| 8705 | names_next_round= |
| 8706 | for name in $names_this_round; do |
| 8707 | already_handled= |
| 8708 | for n in $names_already_handled; do |
| 8709 | if test "$n" = "$name"; then |
| 8710 | already_handled=yes |
| 8711 | break |
| 8712 | fi |
| 8713 | done |
| 8714 | if test -z "$already_handled"; then |
| 8715 | names_already_handled="$names_already_handled $name" |
| 8716 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8717 | eval value=\"\$HAVE_LIB$uppername\" |
| 8718 | if test -n "$value"; then |
| 8719 | if test "$value" = yes; then |
| 8720 | eval value=\"\$LIB$uppername\" |
| 8721 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 8722 | eval value=\"\$LTLIB$uppername\" |
| 8723 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 8724 | else |
| 8725 | : |
| 8726 | fi |
| 8727 | else |
| 8728 | found_dir= |
| 8729 | found_la= |
| 8730 | found_so= |
| 8731 | found_a= |
| 8732 | if test $use_additional = yes; then |
| 8733 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8734 | found_dir="$additional_libdir" |
| 8735 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8736 | if test -f "$additional_libdir/lib$name.la"; then |
| 8737 | found_la="$additional_libdir/lib$name.la" |
| 8738 | fi |
| 8739 | else |
| 8740 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8741 | found_dir="$additional_libdir" |
| 8742 | found_a="$additional_libdir/lib$name.$libext" |
| 8743 | if test -f "$additional_libdir/lib$name.la"; then |
| 8744 | found_la="$additional_libdir/lib$name.la" |
| 8745 | fi |
| 8746 | fi |
| 8747 | fi |
| 8748 | fi |
| 8749 | if test "X$found_dir" = "X"; then |
| 8750 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8751 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8752 | acl_save_prefix="$prefix" |
| 8753 | prefix="$acl_final_prefix" |
| 8754 | acl_save_exec_prefix="$exec_prefix" |
| 8755 | exec_prefix="$acl_final_exec_prefix" |
| 8756 | eval x=\"$x\" |
| 8757 | exec_prefix="$acl_save_exec_prefix" |
| 8758 | prefix="$acl_save_prefix" |
| 8759 | |
| 8760 | case "$x" in |
| 8761 | -L*) |
| 8762 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8763 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8764 | found_dir="$dir" |
| 8765 | found_so="$dir/lib$name.$shlibext" |
| 8766 | if test -f "$dir/lib$name.la"; then |
| 8767 | found_la="$dir/lib$name.la" |
| 8768 | fi |
| 8769 | else |
| 8770 | if test -f "$dir/lib$name.$libext"; then |
| 8771 | found_dir="$dir" |
| 8772 | found_a="$dir/lib$name.$libext" |
| 8773 | if test -f "$dir/lib$name.la"; then |
| 8774 | found_la="$dir/lib$name.la" |
| 8775 | fi |
| 8776 | fi |
| 8777 | fi |
| 8778 | ;; |
| 8779 | esac |
| 8780 | if test "X$found_dir" != "X"; then |
| 8781 | break |
| 8782 | fi |
| 8783 | done |
| 8784 | fi |
| 8785 | if test "X$found_dir" != "X"; then |
| 8786 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 8787 | if test "X$found_so" != "X"; then |
| 8788 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8789 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8790 | else |
| 8791 | haveit= |
| 8792 | for x in $ltrpathdirs; do |
| 8793 | if test "X$x" = "X$found_dir"; then |
| 8794 | haveit=yes |
| 8795 | break |
| 8796 | fi |
| 8797 | done |
| 8798 | if test -z "$haveit"; then |
| 8799 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8800 | fi |
| 8801 | if test "$hardcode_direct" = yes; then |
| 8802 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8803 | else |
| 8804 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8805 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8806 | haveit= |
| 8807 | for x in $rpathdirs; do |
| 8808 | if test "X$x" = "X$found_dir"; then |
| 8809 | haveit=yes |
| 8810 | break |
| 8811 | fi |
| 8812 | done |
| 8813 | if test -z "$haveit"; then |
| 8814 | rpathdirs="$rpathdirs $found_dir" |
| 8815 | fi |
| 8816 | else |
| 8817 | haveit= |
| 8818 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8819 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8820 | acl_save_prefix="$prefix" |
| 8821 | prefix="$acl_final_prefix" |
| 8822 | acl_save_exec_prefix="$exec_prefix" |
| 8823 | exec_prefix="$acl_final_exec_prefix" |
| 8824 | eval x=\"$x\" |
| 8825 | exec_prefix="$acl_save_exec_prefix" |
| 8826 | prefix="$acl_save_prefix" |
| 8827 | |
| 8828 | if test "X$x" = "X-L$found_dir"; then |
| 8829 | haveit=yes |
| 8830 | break |
| 8831 | fi |
| 8832 | done |
| 8833 | if test -z "$haveit"; then |
| 8834 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 8835 | fi |
| 8836 | if test "$hardcode_minus_L" != no; then |
| 8837 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 8838 | else |
| 8839 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8840 | fi |
| 8841 | fi |
| 8842 | fi |
| 8843 | fi |
| 8844 | else |
| 8845 | if test "X$found_a" != "X"; then |
| 8846 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 8847 | else |
| 8848 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 8849 | fi |
| 8850 | fi |
| 8851 | additional_includedir= |
| 8852 | case "$found_dir" in |
| 8853 | */lib | */lib/) |
| 8854 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8855 | additional_includedir="$basedir/include" |
| 8856 | ;; |
| 8857 | esac |
| 8858 | if test "X$additional_includedir" != "X"; then |
| 8859 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8860 | haveit= |
| 8861 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8862 | if test -n "$GCC"; then |
| 8863 | case $host_os in |
| 8864 | linux*) haveit=yes;; |
| 8865 | esac |
| 8866 | fi |
| 8867 | fi |
| 8868 | if test -z "$haveit"; then |
| 8869 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8870 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8871 | acl_save_prefix="$prefix" |
| 8872 | prefix="$acl_final_prefix" |
| 8873 | acl_save_exec_prefix="$exec_prefix" |
| 8874 | exec_prefix="$acl_final_exec_prefix" |
| 8875 | eval x=\"$x\" |
| 8876 | exec_prefix="$acl_save_exec_prefix" |
| 8877 | prefix="$acl_save_prefix" |
| 8878 | |
| 8879 | if test "X$x" = "X-I$additional_includedir"; then |
| 8880 | haveit=yes |
| 8881 | break |
| 8882 | fi |
| 8883 | done |
| 8884 | if test -z "$haveit"; then |
| 8885 | if test -d "$additional_includedir"; then |
| 8886 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 8887 | fi |
| 8888 | fi |
| 8889 | fi |
| 8890 | fi |
| 8891 | fi |
| 8892 | if test -n "$found_la"; then |
| 8893 | save_libdir="$libdir" |
| 8894 | case "$found_la" in |
| 8895 | */* | *\\*) . "$found_la" ;; |
| 8896 | *) . "./$found_la" ;; |
| 8897 | esac |
| 8898 | libdir="$save_libdir" |
| 8899 | for dep in $dependency_libs; do |
| 8900 | case "$dep" in |
| 8901 | -L*) |
| 8902 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 8903 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 8904 | haveit= |
| 8905 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 8906 | if test -n "$GCC"; then |
| 8907 | case $host_os in |
| 8908 | linux*) haveit=yes;; |
| 8909 | esac |
| 8910 | fi |
| 8911 | fi |
| 8912 | if test -z "$haveit"; then |
| 8913 | haveit= |
| 8914 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8915 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8916 | acl_save_prefix="$prefix" |
| 8917 | prefix="$acl_final_prefix" |
| 8918 | acl_save_exec_prefix="$exec_prefix" |
| 8919 | exec_prefix="$acl_final_exec_prefix" |
| 8920 | eval x=\"$x\" |
| 8921 | exec_prefix="$acl_save_exec_prefix" |
| 8922 | prefix="$acl_save_prefix" |
| 8923 | |
| 8924 | if test "X$x" = "X-L$additional_libdir"; then |
| 8925 | haveit=yes |
| 8926 | break |
| 8927 | fi |
| 8928 | done |
| 8929 | if test -z "$haveit"; then |
| 8930 | if test -d "$additional_libdir"; then |
| 8931 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8932 | fi |
| 8933 | fi |
| 8934 | haveit= |
| 8935 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8936 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8937 | acl_save_prefix="$prefix" |
| 8938 | prefix="$acl_final_prefix" |
| 8939 | acl_save_exec_prefix="$exec_prefix" |
| 8940 | exec_prefix="$acl_final_exec_prefix" |
| 8941 | eval x=\"$x\" |
| 8942 | exec_prefix="$acl_save_exec_prefix" |
| 8943 | prefix="$acl_save_prefix" |
| 8944 | |
| 8945 | if test "X$x" = "X-L$additional_libdir"; then |
| 8946 | haveit=yes |
| 8947 | break |
| 8948 | fi |
| 8949 | done |
| 8950 | if test -z "$haveit"; then |
| 8951 | if test -d "$additional_libdir"; then |
| 8952 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8953 | fi |
| 8954 | fi |
| 8955 | fi |
| 8956 | fi |
| 8957 | ;; |
| 8958 | -R*) |
| 8959 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8960 | if test "$enable_rpath" != no; then |
| 8961 | haveit= |
| 8962 | for x in $rpathdirs; do |
| 8963 | if test "X$x" = "X$dir"; then |
| 8964 | haveit=yes |
| 8965 | break |
| 8966 | fi |
| 8967 | done |
| 8968 | if test -z "$haveit"; then |
| 8969 | rpathdirs="$rpathdirs $dir" |
| 8970 | fi |
| 8971 | haveit= |
| 8972 | for x in $ltrpathdirs; do |
| 8973 | if test "X$x" = "X$dir"; then |
| 8974 | haveit=yes |
| 8975 | break |
| 8976 | fi |
| 8977 | done |
| 8978 | if test -z "$haveit"; then |
| 8979 | ltrpathdirs="$ltrpathdirs $dir" |
| 8980 | fi |
| 8981 | fi |
| 8982 | ;; |
| 8983 | -l*) |
| 8984 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8985 | ;; |
| 8986 | *.la) |
| 8987 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8988 | ;; |
| 8989 | *) |
| 8990 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8991 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8992 | ;; |
| 8993 | esac |
| 8994 | done |
| 8995 | fi |
| 8996 | else |
| 8997 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8998 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8999 | fi |
| 9000 | fi |
| 9001 | fi |
| 9002 | done |
| 9003 | done |
| 9004 | if test "X$rpathdirs" != "X"; then |
| 9005 | if test -n "$hardcode_libdir_separator"; then |
| 9006 | alldirs= |
| 9007 | for found_dir in $rpathdirs; do |
| 9008 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9009 | done |
| 9010 | acl_save_libdir="$libdir" |
| 9011 | libdir="$alldirs" |
| 9012 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9013 | libdir="$acl_save_libdir" |
| 9014 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9015 | else |
| 9016 | for found_dir in $rpathdirs; do |
| 9017 | acl_save_libdir="$libdir" |
| 9018 | libdir="$found_dir" |
| 9019 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9020 | libdir="$acl_save_libdir" |
| 9021 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 9022 | done |
| 9023 | fi |
| 9024 | fi |
| 9025 | if test "X$ltrpathdirs" != "X"; then |
| 9026 | for found_dir in $ltrpathdirs; do |
| 9027 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 9028 | done |
| 9029 | fi |
| 9030 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9031 | |
| 9032 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9033 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9034 | |
| 9035 | |
| 9036 | |
| 9037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9038 | { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5 |
| 9039 | echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9040 | if test "${ac_cv_type_ptrdiff_t+set}" = set; then |
| 9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9042 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9043 | cat >conftest.$ac_ext <<_ACEOF |
| 9044 | /* confdefs.h. */ |
| 9045 | _ACEOF |
| 9046 | cat confdefs.h >>conftest.$ac_ext |
| 9047 | cat >>conftest.$ac_ext <<_ACEOF |
| 9048 | /* end confdefs.h. */ |
| 9049 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9050 | typedef ptrdiff_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9051 | int |
| 9052 | main () |
| 9053 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9054 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9055 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9056 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9057 | return 0; |
| 9058 | ; |
| 9059 | return 0; |
| 9060 | } |
| 9061 | _ACEOF |
| 9062 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9063 | if { (ac_try="$ac_compile" |
| 9064 | case "(($ac_try" in |
| 9065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9066 | *) ac_try_echo=$ac_try;; |
| 9067 | esac |
| 9068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9069 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9070 | ac_status=$? |
| 9071 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9072 | rm -f conftest.er1 |
| 9073 | cat conftest.err >&5 |
| 9074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9075 | (exit $ac_status); } && { |
| 9076 | test -z "$ac_c_werror_flag" || |
| 9077 | test ! -s conftest.err |
| 9078 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9079 | ac_cv_type_ptrdiff_t=yes |
| 9080 | else |
| 9081 | echo "$as_me: failed program was:" >&5 |
| 9082 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9084 | ac_cv_type_ptrdiff_t=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9085 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9086 | |
| 9087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9088 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9089 | { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5 |
| 9090 | echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9091 | if test $ac_cv_type_ptrdiff_t = yes; then |
| 9092 | : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9093 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9094 | |
| 9095 | cat >>confdefs.h <<\_ACEOF |
| 9096 | #define ptrdiff_t long |
| 9097 | _ACEOF |
| 9098 | |
| 9099 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9100 | fi |
| 9101 | |
| 9102 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9103 | |
| 9104 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9105 | |
| 9106 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9107 | |
| 9108 | |
| 9109 | |
| 9110 | |
| 9111 | |
| 9112 | 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] | 9113 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9114 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9115 | 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] | 9116 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 9117 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9118 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9119 | 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] | 9120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9121 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9122 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9123 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9124 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9125 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9126 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9127 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 9128 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9129 | cat >conftest.$ac_ext <<_ACEOF |
| 9130 | /* confdefs.h. */ |
| 9131 | _ACEOF |
| 9132 | cat confdefs.h >>conftest.$ac_ext |
| 9133 | cat >>conftest.$ac_ext <<_ACEOF |
| 9134 | /* end confdefs.h. */ |
| 9135 | $ac_includes_default |
| 9136 | #include <$ac_header> |
| 9137 | _ACEOF |
| 9138 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9139 | if { (ac_try="$ac_compile" |
| 9140 | case "(($ac_try" in |
| 9141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9142 | *) ac_try_echo=$ac_try;; |
| 9143 | esac |
| 9144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9145 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9146 | ac_status=$? |
| 9147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9148 | rm -f conftest.er1 |
| 9149 | cat conftest.err >&5 |
| 9150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9151 | (exit $ac_status); } && { |
| 9152 | test -z "$ac_c_werror_flag" || |
| 9153 | test ! -s conftest.err |
| 9154 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9155 | ac_header_compiler=yes |
| 9156 | else |
| 9157 | echo "$as_me: failed program was:" >&5 |
| 9158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9159 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9160 | ac_header_compiler=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9161 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9162 | |
| 9163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9164 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9165 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9166 | |
| 9167 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9168 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 9169 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9170 | cat >conftest.$ac_ext <<_ACEOF |
| 9171 | /* confdefs.h. */ |
| 9172 | _ACEOF |
| 9173 | cat confdefs.h >>conftest.$ac_ext |
| 9174 | cat >>conftest.$ac_ext <<_ACEOF |
| 9175 | /* end confdefs.h. */ |
| 9176 | #include <$ac_header> |
| 9177 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9178 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 9179 | case "(($ac_try" in |
| 9180 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9181 | *) ac_try_echo=$ac_try;; |
| 9182 | esac |
| 9183 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9184 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9185 | ac_status=$? |
| 9186 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9187 | rm -f conftest.er1 |
| 9188 | cat conftest.err >&5 |
| 9189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9190 | (exit $ac_status); } >/dev/null && { |
| 9191 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 9192 | test ! -s conftest.err |
| 9193 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9194 | ac_header_preproc=yes |
| 9195 | else |
| 9196 | echo "$as_me: failed program was:" >&5 |
| 9197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9198 | |
| 9199 | ac_header_preproc=no |
| 9200 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9201 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9202 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9203 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9204 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9205 | |
| 9206 | # So? What about this header? |
| 9207 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 9208 | yes:no: ) |
| 9209 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9210 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 9212 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 9213 | ac_header_preproc=yes |
| 9214 | ;; |
| 9215 | no:yes:* ) |
| 9216 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 9217 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 9218 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 9219 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 9220 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 9221 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 9222 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 9223 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 9224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 9225 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 9226 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 9227 | 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] | 9228 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9229 | ;; |
| 9230 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9231 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 9232 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 9233 | 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] | 9234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9235 | else |
| 9236 | eval "$as_ac_Header=\$ac_header_preproc" |
| 9237 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9238 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 9239 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9240 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9241 | |
| 9242 | fi |
| 9243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 9244 | cat >>confdefs.h <<_ACEOF |
| 9245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 9246 | _ACEOF |
| 9247 | |
| 9248 | fi |
| 9249 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9250 | done |
| 9251 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9252 | |
| 9253 | |
| 9254 | |
| 9255 | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 | |
| 9263 | |
| 9264 | |
| 9265 | |
| 9266 | |
| 9267 | |
| 9268 | |
| 9269 | |
| 9270 | |
| 9271 | |
| 9272 | |
| 9273 | |
| 9274 | |
| 9275 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
| 9276 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 9277 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 9278 | __fsetlocking |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9279 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9280 | 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] | 9281 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 9282 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 9283 | 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] | 9284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9285 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9286 | cat >conftest.$ac_ext <<_ACEOF |
| 9287 | /* confdefs.h. */ |
| 9288 | _ACEOF |
| 9289 | cat confdefs.h >>conftest.$ac_ext |
| 9290 | cat >>conftest.$ac_ext <<_ACEOF |
| 9291 | /* end confdefs.h. */ |
| 9292 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 9293 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 9294 | #define $ac_func innocuous_$ac_func |
| 9295 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9296 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9297 | which can conflict with char $ac_func (); below. |
| 9298 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 9299 | <limits.h> exists even on freestanding compilers. */ |
| 9300 | |
| 9301 | #ifdef __STDC__ |
| 9302 | # include <limits.h> |
| 9303 | #else |
| 9304 | # include <assert.h> |
| 9305 | #endif |
| 9306 | |
| 9307 | #undef $ac_func |
| 9308 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9309 | /* Override any GCC internal prototype to avoid an error. |
| 9310 | Use char because int might match the return type of a GCC |
| 9311 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9312 | #ifdef __cplusplus |
| 9313 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9314 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9315 | char $ac_func (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9316 | /* The GNU C library defines this for functions which it implements |
| 9317 | to always fail with ENOSYS. Some functions are actually named |
| 9318 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9319 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9320 | choke me |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9321 | #endif |
| 9322 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9323 | int |
| 9324 | main () |
| 9325 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9326 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9327 | ; |
| 9328 | return 0; |
| 9329 | } |
| 9330 | _ACEOF |
| 9331 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9332 | if { (ac_try="$ac_link" |
| 9333 | case "(($ac_try" in |
| 9334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9335 | *) ac_try_echo=$ac_try;; |
| 9336 | esac |
| 9337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9338 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9339 | ac_status=$? |
| 9340 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9341 | rm -f conftest.er1 |
| 9342 | cat conftest.err >&5 |
| 9343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9344 | (exit $ac_status); } && { |
| 9345 | test -z "$ac_c_werror_flag" || |
| 9346 | test ! -s conftest.err |
| 9347 | } && test -s conftest$ac_exeext && |
| 9348 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9349 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9350 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9351 | echo "$as_me: failed program was:" >&5 |
| 9352 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9353 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9354 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9355 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9356 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9357 | 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] | 9358 | conftest$ac_exeext conftest.$ac_ext |
| 9359 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9360 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 9361 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 9362 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9363 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 9364 | cat >>confdefs.h <<_ACEOF |
| 9365 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 9366 | _ACEOF |
| 9367 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9368 | fi |
| 9369 | done |
| 9370 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9372 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9373 | { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5 |
| 9374 | echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9375 | if test "${ac_cv_have_decl__snprintf+set}" = set; then |
| 9376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9377 | else |
| 9378 | cat >conftest.$ac_ext <<_ACEOF |
| 9379 | /* confdefs.h. */ |
| 9380 | _ACEOF |
| 9381 | cat confdefs.h >>conftest.$ac_ext |
| 9382 | cat >>conftest.$ac_ext <<_ACEOF |
| 9383 | /* end confdefs.h. */ |
| 9384 | #include <stdio.h> |
| 9385 | int |
| 9386 | main () |
| 9387 | { |
| 9388 | |
| 9389 | #ifndef _snprintf |
| 9390 | char *p = (char *) _snprintf; |
| 9391 | #endif |
| 9392 | |
| 9393 | ; |
| 9394 | return 0; |
| 9395 | } |
| 9396 | _ACEOF |
| 9397 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9398 | if { (ac_try="$ac_compile" |
| 9399 | case "(($ac_try" in |
| 9400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9401 | *) ac_try_echo=$ac_try;; |
| 9402 | esac |
| 9403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9404 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9405 | ac_status=$? |
| 9406 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9407 | rm -f conftest.er1 |
| 9408 | cat conftest.err >&5 |
| 9409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9410 | (exit $ac_status); } && { |
| 9411 | test -z "$ac_c_werror_flag" || |
| 9412 | test ! -s conftest.err |
| 9413 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9414 | ac_cv_have_decl__snprintf=yes |
| 9415 | else |
| 9416 | echo "$as_me: failed program was:" >&5 |
| 9417 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9419 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9420 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9421 | |
| 9422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9423 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9424 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5 |
| 9425 | echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9426 | if test $ac_cv_have_decl__snprintf = yes; then |
| 9427 | gt_value=1 |
| 9428 | else |
| 9429 | gt_value=0 |
| 9430 | fi |
| 9431 | |
| 9432 | cat >>confdefs.h <<_ACEOF |
| 9433 | #define HAVE_DECL__SNPRINTF $gt_value |
| 9434 | _ACEOF |
| 9435 | |
| 9436 | |
| 9437 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9438 | { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5 |
| 9439 | echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9440 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then |
| 9441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9442 | else |
| 9443 | cat >conftest.$ac_ext <<_ACEOF |
| 9444 | /* confdefs.h. */ |
| 9445 | _ACEOF |
| 9446 | cat confdefs.h >>conftest.$ac_ext |
| 9447 | cat >>conftest.$ac_ext <<_ACEOF |
| 9448 | /* end confdefs.h. */ |
| 9449 | #include <stdio.h> |
| 9450 | int |
| 9451 | main () |
| 9452 | { |
| 9453 | |
| 9454 | #ifndef _snwprintf |
| 9455 | char *p = (char *) _snwprintf; |
| 9456 | #endif |
| 9457 | |
| 9458 | ; |
| 9459 | return 0; |
| 9460 | } |
| 9461 | _ACEOF |
| 9462 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9463 | if { (ac_try="$ac_compile" |
| 9464 | case "(($ac_try" in |
| 9465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9466 | *) ac_try_echo=$ac_try;; |
| 9467 | esac |
| 9468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9469 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9470 | ac_status=$? |
| 9471 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9472 | rm -f conftest.er1 |
| 9473 | cat conftest.err >&5 |
| 9474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9475 | (exit $ac_status); } && { |
| 9476 | test -z "$ac_c_werror_flag" || |
| 9477 | test ! -s conftest.err |
| 9478 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9479 | ac_cv_have_decl__snwprintf=yes |
| 9480 | else |
| 9481 | echo "$as_me: failed program was:" >&5 |
| 9482 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9483 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9484 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9485 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9486 | |
| 9487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9489 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5 |
| 9490 | echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9491 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 9492 | gt_value=1 |
| 9493 | else |
| 9494 | gt_value=0 |
| 9495 | fi |
| 9496 | |
| 9497 | cat >>confdefs.h <<_ACEOF |
| 9498 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 9499 | _ACEOF |
| 9500 | |
| 9501 | |
| 9502 | |
| 9503 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9504 | { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5 |
| 9505 | 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] | 9506 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then |
| 9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9508 | else |
| 9509 | cat >conftest.$ac_ext <<_ACEOF |
| 9510 | /* confdefs.h. */ |
| 9511 | _ACEOF |
| 9512 | cat confdefs.h >>conftest.$ac_ext |
| 9513 | cat >>conftest.$ac_ext <<_ACEOF |
| 9514 | /* end confdefs.h. */ |
| 9515 | #include <stdio.h> |
| 9516 | int |
| 9517 | main () |
| 9518 | { |
| 9519 | |
| 9520 | #ifndef feof_unlocked |
| 9521 | char *p = (char *) feof_unlocked; |
| 9522 | #endif |
| 9523 | |
| 9524 | ; |
| 9525 | return 0; |
| 9526 | } |
| 9527 | _ACEOF |
| 9528 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9529 | if { (ac_try="$ac_compile" |
| 9530 | case "(($ac_try" in |
| 9531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9532 | *) ac_try_echo=$ac_try;; |
| 9533 | esac |
| 9534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9535 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9536 | ac_status=$? |
| 9537 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9538 | rm -f conftest.er1 |
| 9539 | cat conftest.err >&5 |
| 9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9541 | (exit $ac_status); } && { |
| 9542 | test -z "$ac_c_werror_flag" || |
| 9543 | test ! -s conftest.err |
| 9544 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9545 | ac_cv_have_decl_feof_unlocked=yes |
| 9546 | else |
| 9547 | echo "$as_me: failed program was:" >&5 |
| 9548 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9549 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9550 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9551 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9552 | |
| 9553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9554 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9555 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5 |
| 9556 | echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9557 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 9558 | gt_value=1 |
| 9559 | else |
| 9560 | gt_value=0 |
| 9561 | fi |
| 9562 | |
| 9563 | cat >>confdefs.h <<_ACEOF |
| 9564 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 9565 | _ACEOF |
| 9566 | |
| 9567 | |
| 9568 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9569 | { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5 |
| 9570 | 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] | 9571 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then |
| 9572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9573 | else |
| 9574 | cat >conftest.$ac_ext <<_ACEOF |
| 9575 | /* confdefs.h. */ |
| 9576 | _ACEOF |
| 9577 | cat confdefs.h >>conftest.$ac_ext |
| 9578 | cat >>conftest.$ac_ext <<_ACEOF |
| 9579 | /* end confdefs.h. */ |
| 9580 | #include <stdio.h> |
| 9581 | int |
| 9582 | main () |
| 9583 | { |
| 9584 | |
| 9585 | #ifndef fgets_unlocked |
| 9586 | char *p = (char *) fgets_unlocked; |
| 9587 | #endif |
| 9588 | |
| 9589 | ; |
| 9590 | return 0; |
| 9591 | } |
| 9592 | _ACEOF |
| 9593 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9594 | if { (ac_try="$ac_compile" |
| 9595 | case "(($ac_try" in |
| 9596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9597 | *) ac_try_echo=$ac_try;; |
| 9598 | esac |
| 9599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9600 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9601 | ac_status=$? |
| 9602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9603 | rm -f conftest.er1 |
| 9604 | cat conftest.err >&5 |
| 9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9606 | (exit $ac_status); } && { |
| 9607 | test -z "$ac_c_werror_flag" || |
| 9608 | test ! -s conftest.err |
| 9609 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9610 | ac_cv_have_decl_fgets_unlocked=yes |
| 9611 | else |
| 9612 | echo "$as_me: failed program was:" >&5 |
| 9613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9614 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9615 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9616 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9617 | |
| 9618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9619 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9620 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
| 9621 | echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9622 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 9623 | gt_value=1 |
| 9624 | else |
| 9625 | gt_value=0 |
| 9626 | fi |
| 9627 | |
| 9628 | cat >>confdefs.h <<_ACEOF |
| 9629 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 9630 | _ACEOF |
| 9631 | |
| 9632 | |
| 9633 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9634 | { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5 |
| 9635 | 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] | 9636 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then |
| 9637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9638 | else |
| 9639 | cat >conftest.$ac_ext <<_ACEOF |
| 9640 | /* confdefs.h. */ |
| 9641 | _ACEOF |
| 9642 | cat confdefs.h >>conftest.$ac_ext |
| 9643 | cat >>conftest.$ac_ext <<_ACEOF |
| 9644 | /* end confdefs.h. */ |
| 9645 | #include <stdio.h> |
| 9646 | int |
| 9647 | main () |
| 9648 | { |
| 9649 | |
| 9650 | #ifndef getc_unlocked |
| 9651 | char *p = (char *) getc_unlocked; |
| 9652 | #endif |
| 9653 | |
| 9654 | ; |
| 9655 | return 0; |
| 9656 | } |
| 9657 | _ACEOF |
| 9658 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9659 | if { (ac_try="$ac_compile" |
| 9660 | case "(($ac_try" in |
| 9661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9662 | *) ac_try_echo=$ac_try;; |
| 9663 | esac |
| 9664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9665 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | ac_status=$? |
| 9667 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9668 | rm -f conftest.er1 |
| 9669 | cat conftest.err >&5 |
| 9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9671 | (exit $ac_status); } && { |
| 9672 | test -z "$ac_c_werror_flag" || |
| 9673 | test ! -s conftest.err |
| 9674 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9675 | ac_cv_have_decl_getc_unlocked=yes |
| 9676 | else |
| 9677 | echo "$as_me: failed program was:" >&5 |
| 9678 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9679 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9680 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9681 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9682 | |
| 9683 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9684 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9685 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5 |
| 9686 | echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9687 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 9688 | gt_value=1 |
| 9689 | else |
| 9690 | gt_value=0 |
| 9691 | fi |
| 9692 | |
| 9693 | cat >>confdefs.h <<_ACEOF |
| 9694 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 9695 | _ACEOF |
| 9696 | |
| 9697 | |
| 9698 | |
| 9699 | case $gt_cv_func_printf_posix in |
| 9700 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 9701 | *) HAVE_POSIX_PRINTF=0 ;; |
| 9702 | esac |
| 9703 | |
| 9704 | if test "$ac_cv_func_asprintf" = yes; then |
| 9705 | HAVE_ASPRINTF=1 |
| 9706 | else |
| 9707 | HAVE_ASPRINTF=0 |
| 9708 | fi |
| 9709 | |
| 9710 | if test "$ac_cv_func_snprintf" = yes; then |
| 9711 | HAVE_SNPRINTF=1 |
| 9712 | else |
| 9713 | HAVE_SNPRINTF=0 |
| 9714 | fi |
| 9715 | |
| 9716 | if test "$ac_cv_func_wprintf" = yes; then |
| 9717 | HAVE_WPRINTF=1 |
| 9718 | else |
| 9719 | HAVE_WPRINTF=0 |
| 9720 | fi |
| 9721 | |
| 9722 | |
| 9723 | |
| 9724 | |
| 9725 | |
| 9726 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9727 | |
| 9728 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9729 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9730 | for element in $INCICONV; do |
| 9731 | haveit= |
| 9732 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9733 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9734 | acl_save_prefix="$prefix" |
| 9735 | prefix="$acl_final_prefix" |
| 9736 | acl_save_exec_prefix="$exec_prefix" |
| 9737 | exec_prefix="$acl_final_exec_prefix" |
| 9738 | eval x=\"$x\" |
| 9739 | exec_prefix="$acl_save_exec_prefix" |
| 9740 | prefix="$acl_save_prefix" |
| 9741 | |
| 9742 | if test "X$x" = "X$element"; then |
| 9743 | haveit=yes |
| 9744 | break |
| 9745 | fi |
| 9746 | done |
| 9747 | if test -z "$haveit"; then |
| 9748 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9749 | fi |
| 9750 | done |
| 9751 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9753 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
| 9754 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9755 | if test "${am_cv_func_iconv+set}" = set; then |
| 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9757 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9758 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9759 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 9760 | am_cv_lib_iconv=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9761 | cat >conftest.$ac_ext <<_ACEOF |
| 9762 | /* confdefs.h. */ |
| 9763 | _ACEOF |
| 9764 | cat confdefs.h >>conftest.$ac_ext |
| 9765 | cat >>conftest.$ac_ext <<_ACEOF |
| 9766 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9767 | #include <stdlib.h> |
| 9768 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9769 | int |
| 9770 | main () |
| 9771 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9772 | iconv_t cd = iconv_open("",""); |
| 9773 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9774 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9775 | ; |
| 9776 | return 0; |
| 9777 | } |
| 9778 | _ACEOF |
| 9779 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9780 | if { (ac_try="$ac_link" |
| 9781 | case "(($ac_try" in |
| 9782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9783 | *) ac_try_echo=$ac_try;; |
| 9784 | esac |
| 9785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9786 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9787 | ac_status=$? |
| 9788 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9789 | rm -f conftest.er1 |
| 9790 | cat conftest.err >&5 |
| 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9792 | (exit $ac_status); } && { |
| 9793 | test -z "$ac_c_werror_flag" || |
| 9794 | test ! -s conftest.err |
| 9795 | } && test -s conftest$ac_exeext && |
| 9796 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9797 | am_cv_func_iconv=yes |
| 9798 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9799 | echo "$as_me: failed program was:" >&5 |
| 9800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9802 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9803 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9804 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9805 | 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] | 9806 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9807 | if test "$am_cv_func_iconv" != yes; then |
| 9808 | am_save_LIBS="$LIBS" |
| 9809 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9810 | cat >conftest.$ac_ext <<_ACEOF |
| 9811 | /* confdefs.h. */ |
| 9812 | _ACEOF |
| 9813 | cat confdefs.h >>conftest.$ac_ext |
| 9814 | cat >>conftest.$ac_ext <<_ACEOF |
| 9815 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9816 | #include <stdlib.h> |
| 9817 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9818 | int |
| 9819 | main () |
| 9820 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9821 | iconv_t cd = iconv_open("",""); |
| 9822 | iconv(cd,NULL,NULL,NULL,NULL); |
| 9823 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9824 | ; |
| 9825 | return 0; |
| 9826 | } |
| 9827 | _ACEOF |
| 9828 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9829 | if { (ac_try="$ac_link" |
| 9830 | case "(($ac_try" in |
| 9831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9832 | *) ac_try_echo=$ac_try;; |
| 9833 | esac |
| 9834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9835 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9836 | ac_status=$? |
| 9837 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9838 | rm -f conftest.er1 |
| 9839 | cat conftest.err >&5 |
| 9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9841 | (exit $ac_status); } && { |
| 9842 | test -z "$ac_c_werror_flag" || |
| 9843 | test ! -s conftest.err |
| 9844 | } && test -s conftest$ac_exeext && |
| 9845 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9846 | am_cv_lib_iconv=yes |
| 9847 | am_cv_func_iconv=yes |
| 9848 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9849 | echo "$as_me: failed program was:" >&5 |
| 9850 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9851 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9852 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9853 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9854 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9855 | 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] | 9856 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9857 | LIBS="$am_save_LIBS" |
| 9858 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 9859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9860 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9861 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
| 9862 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9863 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9864 | |
| 9865 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9866 | #define HAVE_ICONV 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9867 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9868 | |
| 9869 | fi |
| 9870 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9871 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
| 9872 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
| 9873 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
| 9874 | echo "${ECHO_T}$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9875 | else |
| 9876 | CPPFLAGS="$am_save_CPPFLAGS" |
| 9877 | LIBICONV= |
| 9878 | LTLIBICONV= |
| 9879 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9880 | |
| 9881 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9882 | |
| 9883 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9884 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
| 9885 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9886 | if test "${am_cv_proto_iconv+set}" = set; then |
| 9887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9888 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9889 | |
| 9890 | cat >conftest.$ac_ext <<_ACEOF |
| 9891 | /* confdefs.h. */ |
| 9892 | _ACEOF |
| 9893 | cat confdefs.h >>conftest.$ac_ext |
| 9894 | cat >>conftest.$ac_ext <<_ACEOF |
| 9895 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9896 | |
| 9897 | #include <stdlib.h> |
| 9898 | #include <iconv.h> |
| 9899 | extern |
| 9900 | #ifdef __cplusplus |
| 9901 | "C" |
| 9902 | #endif |
| 9903 | #if defined(__STDC__) || defined(__cplusplus) |
| 9904 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 9905 | #else |
| 9906 | size_t iconv(); |
| 9907 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9908 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9909 | int |
| 9910 | main () |
| 9911 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9912 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9913 | ; |
| 9914 | return 0; |
| 9915 | } |
| 9916 | _ACEOF |
| 9917 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9918 | if { (ac_try="$ac_compile" |
| 9919 | case "(($ac_try" in |
| 9920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9921 | *) ac_try_echo=$ac_try;; |
| 9922 | esac |
| 9923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9924 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9925 | ac_status=$? |
| 9926 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9927 | rm -f conftest.er1 |
| 9928 | cat conftest.err >&5 |
| 9929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9930 | (exit $ac_status); } && { |
| 9931 | test -z "$ac_c_werror_flag" || |
| 9932 | test ! -s conftest.err |
| 9933 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9934 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9935 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9936 | echo "$as_me: failed program was:" >&5 |
| 9937 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 9938 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9939 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9940 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9941 | |
| 9942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9943 | 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] | 9944 | fi |
| 9945 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9946 | 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] | 9947 | { echo "$as_me:$LINENO: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9948 | }$am_cv_proto_iconv" >&5 |
| 9949 | echo "${ECHO_T}${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9950 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9951 | |
| 9952 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9953 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9954 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9955 | |
| 9956 | fi |
| 9957 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9958 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9959 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
| 9960 | 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] | 9961 | if test "${am_cv_langinfo_codeset+set}" = set; then |
| 9962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9963 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9964 | cat >conftest.$ac_ext <<_ACEOF |
| 9965 | /* confdefs.h. */ |
| 9966 | _ACEOF |
| 9967 | cat confdefs.h >>conftest.$ac_ext |
| 9968 | cat >>conftest.$ac_ext <<_ACEOF |
| 9969 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9970 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9971 | int |
| 9972 | main () |
| 9973 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9974 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9975 | ; |
| 9976 | return 0; |
| 9977 | } |
| 9978 | _ACEOF |
| 9979 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9980 | if { (ac_try="$ac_link" |
| 9981 | case "(($ac_try" in |
| 9982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 9983 | *) ac_try_echo=$ac_try;; |
| 9984 | esac |
| 9985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 9986 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9987 | ac_status=$? |
| 9988 | grep -v '^ *+' conftest.er1 >conftest.err |
| 9989 | rm -f conftest.er1 |
| 9990 | cat conftest.err >&5 |
| 9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9992 | (exit $ac_status); } && { |
| 9993 | test -z "$ac_c_werror_flag" || |
| 9994 | test ! -s conftest.err |
| 9995 | } && test -s conftest$ac_exeext && |
| 9996 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9997 | am_cv_langinfo_codeset=yes |
| 9998 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9999 | echo "$as_me: failed program was:" >&5 |
| 10000 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10001 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10002 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10003 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10004 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10005 | 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] | 10006 | conftest$ac_exeext conftest.$ac_ext |
| 10007 | |
| 10008 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10009 | { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5 |
| 10010 | echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10011 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10012 | |
| 10013 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10014 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10015 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10016 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10017 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10018 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10019 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10021 | { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
| 10022 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10023 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then |
| 10024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10025 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10026 | cat >conftest.$ac_ext <<_ACEOF |
| 10027 | /* confdefs.h. */ |
| 10028 | _ACEOF |
| 10029 | cat confdefs.h >>conftest.$ac_ext |
| 10030 | cat >>conftest.$ac_ext <<_ACEOF |
| 10031 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10032 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10033 | int |
| 10034 | main () |
| 10035 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10036 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10037 | ; |
| 10038 | return 0; |
| 10039 | } |
| 10040 | _ACEOF |
| 10041 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10042 | if { (ac_try="$ac_link" |
| 10043 | case "(($ac_try" in |
| 10044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10045 | *) ac_try_echo=$ac_try;; |
| 10046 | esac |
| 10047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10048 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10049 | ac_status=$? |
| 10050 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10051 | rm -f conftest.er1 |
| 10052 | cat conftest.err >&5 |
| 10053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10054 | (exit $ac_status); } && { |
| 10055 | test -z "$ac_c_werror_flag" || |
| 10056 | test ! -s conftest.err |
| 10057 | } && test -s conftest$ac_exeext && |
| 10058 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10059 | am_cv_val_LC_MESSAGES=yes |
| 10060 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10061 | echo "$as_me: failed program was:" >&5 |
| 10062 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 10063 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10064 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10065 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10066 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10067 | 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] | 10068 | conftest$ac_exeext conftest.$ac_ext |
| 10069 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10070 | { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
| 10071 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10072 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10073 | |
| 10074 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10075 | #define HAVE_LC_MESSAGES 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10076 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10077 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10078 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10079 | |
| 10080 | fi |
| 10081 | |
| 10082 | for ac_prog in bison |
| 10083 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10084 | # 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] | 10085 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10088 | if test "${ac_cv_prog_INTLBISON+set}" = set; then |
| 10089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10090 | else |
| 10091 | if test -n "$INTLBISON"; then |
| 10092 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 10093 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10095 | for as_dir in $PATH |
| 10096 | do |
| 10097 | IFS=$as_save_IFS |
| 10098 | test -z "$as_dir" && as_dir=. |
| 10099 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10100 | 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] | 10101 | ac_cv_prog_INTLBISON="$ac_prog" |
| 10102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10103 | break 2 |
| 10104 | fi |
| 10105 | done |
| 10106 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10107 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10108 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10109 | fi |
| 10110 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10111 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10112 | if test -n "$INTLBISON"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10113 | { echo "$as_me:$LINENO: result: $INTLBISON" >&5 |
| 10114 | echo "${ECHO_T}$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10115 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10116 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10117 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10118 | fi |
| 10119 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10120 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10121 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10122 | done |
| 10123 | |
| 10124 | if test -z "$INTLBISON"; then |
| 10125 | ac_verc_fail=yes |
| 10126 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10127 | { echo "$as_me:$LINENO: checking version of bison" >&5 |
| 10128 | echo $ECHO_N "checking version of bison... $ECHO_C" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10129 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 10130 | case $ac_prog_version in |
| 10131 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 10132 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 10133 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 10134 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 10135 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10136 | { echo "$as_me:$LINENO: result: $ac_prog_version" >&5 |
| 10137 | echo "${ECHO_T}$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10138 | fi |
| 10139 | if test $ac_verc_fail = yes; then |
| 10140 | INTLBISON=: |
| 10141 | fi |
| 10142 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10143 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10144 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10145 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10146 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10147 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10148 | |
| 10149 | |
| 10150 | |
| 10151 | |
| 10152 | |
| 10153 | |
| 10154 | |
| 10155 | |
| 10156 | |
| 10157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10158 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
| 10159 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
| 10160 | # Check whether --enable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10161 | if test "${enable_nls+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10162 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10163 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10164 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10165 | fi |
| 10166 | |
| 10167 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10168 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10169 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10170 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10171 | |
| 10172 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10173 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10174 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10175 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10176 | LIBINTL= |
| 10177 | LTLIBINTL= |
| 10178 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10179 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10180 | if test "$USE_NLS" = "yes"; then |
| 10181 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10182 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10183 | { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
| 10184 | 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] | 10185 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10186 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10187 | if test "${with_included_gettext+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10188 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10189 | else |
| 10190 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10191 | fi |
| 10192 | |
| 10193 | { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 |
| 10194 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10195 | |
| 10196 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 10197 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10198 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10199 | |
| 10200 | |
| 10201 | |
| 10202 | |
| 10203 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10204 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
| 10205 | 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] | 10206 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then |
| 10207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10208 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10209 | cat >conftest.$ac_ext <<_ACEOF |
| 10210 | /* confdefs.h. */ |
| 10211 | _ACEOF |
| 10212 | cat confdefs.h >>conftest.$ac_ext |
| 10213 | cat >>conftest.$ac_ext <<_ACEOF |
| 10214 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10215 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10216 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10217 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10218 | int |
| 10219 | main () |
| 10220 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10221 | bindtextdomain ("", ""); |
| 10222 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10223 | ; |
| 10224 | return 0; |
| 10225 | } |
| 10226 | _ACEOF |
| 10227 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10228 | if { (ac_try="$ac_link" |
| 10229 | case "(($ac_try" in |
| 10230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10231 | *) ac_try_echo=$ac_try;; |
| 10232 | esac |
| 10233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10234 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10235 | ac_status=$? |
| 10236 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10237 | rm -f conftest.er1 |
| 10238 | cat conftest.err >&5 |
| 10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10240 | (exit $ac_status); } && { |
| 10241 | test -z "$ac_c_werror_flag" || |
| 10242 | test ! -s conftest.err |
| 10243 | } && test -s conftest$ac_exeext && |
| 10244 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10245 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10246 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | echo "$as_me: failed program was:" >&5 |
| 10248 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10249 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10250 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10251 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10252 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10253 | 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] | 10254 | conftest$ac_exeext conftest.$ac_ext |
| 10255 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10256 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5 |
| 10257 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10258 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10259 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10260 | |
| 10261 | |
| 10262 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10263 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10264 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10265 | acl_save_prefix="$prefix" |
| 10266 | prefix="$acl_final_prefix" |
| 10267 | acl_save_exec_prefix="$exec_prefix" |
| 10268 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10269 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10270 | eval additional_includedir=\"$includedir\" |
| 10271 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10272 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10273 | exec_prefix="$acl_save_exec_prefix" |
| 10274 | prefix="$acl_save_prefix" |
| 10275 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10276 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10277 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10278 | if test "${with_libintl_prefix+set}" = set; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10279 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10280 | if test "X$withval" = "Xno"; then |
| 10281 | use_additional=no |
| 10282 | else |
| 10283 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10284 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10285 | acl_save_prefix="$prefix" |
| 10286 | prefix="$acl_final_prefix" |
| 10287 | acl_save_exec_prefix="$exec_prefix" |
| 10288 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10289 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10290 | eval additional_includedir=\"$includedir\" |
| 10291 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10292 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10293 | exec_prefix="$acl_save_exec_prefix" |
| 10294 | prefix="$acl_save_prefix" |
| 10295 | |
| 10296 | else |
| 10297 | additional_includedir="$withval/include" |
| 10298 | additional_libdir="$withval/lib" |
| 10299 | fi |
| 10300 | fi |
| 10301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10302 | fi |
| 10303 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10304 | LIBINTL= |
| 10305 | LTLIBINTL= |
| 10306 | INCINTL= |
| 10307 | rpathdirs= |
| 10308 | ltrpathdirs= |
| 10309 | names_already_handled= |
| 10310 | names_next_round='intl ' |
| 10311 | while test -n "$names_next_round"; do |
| 10312 | names_this_round="$names_next_round" |
| 10313 | names_next_round= |
| 10314 | for name in $names_this_round; do |
| 10315 | already_handled= |
| 10316 | for n in $names_already_handled; do |
| 10317 | if test "$n" = "$name"; then |
| 10318 | already_handled=yes |
| 10319 | break |
| 10320 | fi |
| 10321 | done |
| 10322 | if test -z "$already_handled"; then |
| 10323 | names_already_handled="$names_already_handled $name" |
| 10324 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 10325 | eval value=\"\$HAVE_LIB$uppername\" |
| 10326 | if test -n "$value"; then |
| 10327 | if test "$value" = yes; then |
| 10328 | eval value=\"\$LIB$uppername\" |
| 10329 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 10330 | eval value=\"\$LTLIB$uppername\" |
| 10331 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 10332 | else |
| 10333 | : |
| 10334 | fi |
| 10335 | else |
| 10336 | found_dir= |
| 10337 | found_la= |
| 10338 | found_so= |
| 10339 | found_a= |
| 10340 | if test $use_additional = yes; then |
| 10341 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 10342 | found_dir="$additional_libdir" |
| 10343 | found_so="$additional_libdir/lib$name.$shlibext" |
| 10344 | if test -f "$additional_libdir/lib$name.la"; then |
| 10345 | found_la="$additional_libdir/lib$name.la" |
| 10346 | fi |
| 10347 | else |
| 10348 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 10349 | found_dir="$additional_libdir" |
| 10350 | found_a="$additional_libdir/lib$name.$libext" |
| 10351 | if test -f "$additional_libdir/lib$name.la"; then |
| 10352 | found_la="$additional_libdir/lib$name.la" |
| 10353 | fi |
| 10354 | fi |
| 10355 | fi |
| 10356 | fi |
| 10357 | if test "X$found_dir" = "X"; then |
| 10358 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10359 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10360 | acl_save_prefix="$prefix" |
| 10361 | prefix="$acl_final_prefix" |
| 10362 | acl_save_exec_prefix="$exec_prefix" |
| 10363 | exec_prefix="$acl_final_exec_prefix" |
| 10364 | eval x=\"$x\" |
| 10365 | exec_prefix="$acl_save_exec_prefix" |
| 10366 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10367 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10368 | case "$x" in |
| 10369 | -L*) |
| 10370 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 10371 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 10372 | found_dir="$dir" |
| 10373 | found_so="$dir/lib$name.$shlibext" |
| 10374 | if test -f "$dir/lib$name.la"; then |
| 10375 | found_la="$dir/lib$name.la" |
| 10376 | fi |
| 10377 | else |
| 10378 | if test -f "$dir/lib$name.$libext"; then |
| 10379 | found_dir="$dir" |
| 10380 | found_a="$dir/lib$name.$libext" |
| 10381 | if test -f "$dir/lib$name.la"; then |
| 10382 | found_la="$dir/lib$name.la" |
| 10383 | fi |
| 10384 | fi |
| 10385 | fi |
| 10386 | ;; |
| 10387 | esac |
| 10388 | if test "X$found_dir" != "X"; then |
| 10389 | break |
| 10390 | fi |
| 10391 | done |
| 10392 | fi |
| 10393 | if test "X$found_dir" != "X"; then |
| 10394 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 10395 | if test "X$found_so" != "X"; then |
| 10396 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 10397 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10398 | else |
| 10399 | haveit= |
| 10400 | for x in $ltrpathdirs; do |
| 10401 | if test "X$x" = "X$found_dir"; then |
| 10402 | haveit=yes |
| 10403 | break |
| 10404 | fi |
| 10405 | done |
| 10406 | if test -z "$haveit"; then |
| 10407 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 10408 | fi |
| 10409 | if test "$hardcode_direct" = yes; then |
| 10410 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10411 | else |
| 10412 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 10413 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10414 | haveit= |
| 10415 | for x in $rpathdirs; do |
| 10416 | if test "X$x" = "X$found_dir"; then |
| 10417 | haveit=yes |
| 10418 | break |
| 10419 | fi |
| 10420 | done |
| 10421 | if test -z "$haveit"; then |
| 10422 | rpathdirs="$rpathdirs $found_dir" |
| 10423 | fi |
| 10424 | else |
| 10425 | haveit= |
| 10426 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10427 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10428 | acl_save_prefix="$prefix" |
| 10429 | prefix="$acl_final_prefix" |
| 10430 | acl_save_exec_prefix="$exec_prefix" |
| 10431 | exec_prefix="$acl_final_exec_prefix" |
| 10432 | eval x=\"$x\" |
| 10433 | exec_prefix="$acl_save_exec_prefix" |
| 10434 | prefix="$acl_save_prefix" |
| 10435 | |
| 10436 | if test "X$x" = "X-L$found_dir"; then |
| 10437 | haveit=yes |
| 10438 | break |
| 10439 | fi |
| 10440 | done |
| 10441 | if test -z "$haveit"; then |
| 10442 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 10443 | fi |
| 10444 | if test "$hardcode_minus_L" != no; then |
| 10445 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 10446 | else |
| 10447 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10448 | fi |
| 10449 | fi |
| 10450 | fi |
| 10451 | fi |
| 10452 | else |
| 10453 | if test "X$found_a" != "X"; then |
| 10454 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 10455 | else |
| 10456 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 10457 | fi |
| 10458 | fi |
| 10459 | additional_includedir= |
| 10460 | case "$found_dir" in |
| 10461 | */lib | */lib/) |
| 10462 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 10463 | additional_includedir="$basedir/include" |
| 10464 | ;; |
| 10465 | esac |
| 10466 | if test "X$additional_includedir" != "X"; then |
| 10467 | if test "X$additional_includedir" != "X/usr/include"; then |
| 10468 | haveit= |
| 10469 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 10470 | if test -n "$GCC"; then |
| 10471 | case $host_os in |
| 10472 | linux*) haveit=yes;; |
| 10473 | esac |
| 10474 | fi |
| 10475 | fi |
| 10476 | if test -z "$haveit"; then |
| 10477 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10478 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10479 | acl_save_prefix="$prefix" |
| 10480 | prefix="$acl_final_prefix" |
| 10481 | acl_save_exec_prefix="$exec_prefix" |
| 10482 | exec_prefix="$acl_final_exec_prefix" |
| 10483 | eval x=\"$x\" |
| 10484 | exec_prefix="$acl_save_exec_prefix" |
| 10485 | prefix="$acl_save_prefix" |
| 10486 | |
| 10487 | if test "X$x" = "X-I$additional_includedir"; then |
| 10488 | haveit=yes |
| 10489 | break |
| 10490 | fi |
| 10491 | done |
| 10492 | if test -z "$haveit"; then |
| 10493 | if test -d "$additional_includedir"; then |
| 10494 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 10495 | fi |
| 10496 | fi |
| 10497 | fi |
| 10498 | fi |
| 10499 | fi |
| 10500 | if test -n "$found_la"; then |
| 10501 | save_libdir="$libdir" |
| 10502 | case "$found_la" in |
| 10503 | */* | *\\*) . "$found_la" ;; |
| 10504 | *) . "./$found_la" ;; |
| 10505 | esac |
| 10506 | libdir="$save_libdir" |
| 10507 | for dep in $dependency_libs; do |
| 10508 | case "$dep" in |
| 10509 | -L*) |
| 10510 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 10511 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 10512 | haveit= |
| 10513 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 10514 | if test -n "$GCC"; then |
| 10515 | case $host_os in |
| 10516 | linux*) haveit=yes;; |
| 10517 | esac |
| 10518 | fi |
| 10519 | fi |
| 10520 | if test -z "$haveit"; then |
| 10521 | haveit= |
| 10522 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10523 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10524 | acl_save_prefix="$prefix" |
| 10525 | prefix="$acl_final_prefix" |
| 10526 | acl_save_exec_prefix="$exec_prefix" |
| 10527 | exec_prefix="$acl_final_exec_prefix" |
| 10528 | eval x=\"$x\" |
| 10529 | exec_prefix="$acl_save_exec_prefix" |
| 10530 | prefix="$acl_save_prefix" |
| 10531 | |
| 10532 | if test "X$x" = "X-L$additional_libdir"; then |
| 10533 | haveit=yes |
| 10534 | break |
| 10535 | fi |
| 10536 | done |
| 10537 | if test -z "$haveit"; then |
| 10538 | if test -d "$additional_libdir"; then |
| 10539 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 10540 | fi |
| 10541 | fi |
| 10542 | haveit= |
| 10543 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10544 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10545 | acl_save_prefix="$prefix" |
| 10546 | prefix="$acl_final_prefix" |
| 10547 | acl_save_exec_prefix="$exec_prefix" |
| 10548 | exec_prefix="$acl_final_exec_prefix" |
| 10549 | eval x=\"$x\" |
| 10550 | exec_prefix="$acl_save_exec_prefix" |
| 10551 | prefix="$acl_save_prefix" |
| 10552 | |
| 10553 | if test "X$x" = "X-L$additional_libdir"; then |
| 10554 | haveit=yes |
| 10555 | break |
| 10556 | fi |
| 10557 | done |
| 10558 | if test -z "$haveit"; then |
| 10559 | if test -d "$additional_libdir"; then |
| 10560 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 10561 | fi |
| 10562 | fi |
| 10563 | fi |
| 10564 | fi |
| 10565 | ;; |
| 10566 | -R*) |
| 10567 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 10568 | if test "$enable_rpath" != no; then |
| 10569 | haveit= |
| 10570 | for x in $rpathdirs; do |
| 10571 | if test "X$x" = "X$dir"; then |
| 10572 | haveit=yes |
| 10573 | break |
| 10574 | fi |
| 10575 | done |
| 10576 | if test -z "$haveit"; then |
| 10577 | rpathdirs="$rpathdirs $dir" |
| 10578 | fi |
| 10579 | haveit= |
| 10580 | for x in $ltrpathdirs; do |
| 10581 | if test "X$x" = "X$dir"; then |
| 10582 | haveit=yes |
| 10583 | break |
| 10584 | fi |
| 10585 | done |
| 10586 | if test -z "$haveit"; then |
| 10587 | ltrpathdirs="$ltrpathdirs $dir" |
| 10588 | fi |
| 10589 | fi |
| 10590 | ;; |
| 10591 | -l*) |
| 10592 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 10593 | ;; |
| 10594 | *.la) |
| 10595 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 10596 | ;; |
| 10597 | *) |
| 10598 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 10599 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 10600 | ;; |
| 10601 | esac |
| 10602 | done |
| 10603 | fi |
| 10604 | else |
| 10605 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 10606 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 10607 | fi |
| 10608 | fi |
| 10609 | fi |
| 10610 | done |
| 10611 | done |
| 10612 | if test "X$rpathdirs" != "X"; then |
| 10613 | if test -n "$hardcode_libdir_separator"; then |
| 10614 | alldirs= |
| 10615 | for found_dir in $rpathdirs; do |
| 10616 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 10617 | done |
| 10618 | acl_save_libdir="$libdir" |
| 10619 | libdir="$alldirs" |
| 10620 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10621 | libdir="$acl_save_libdir" |
| 10622 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10623 | else |
| 10624 | for found_dir in $rpathdirs; do |
| 10625 | acl_save_libdir="$libdir" |
| 10626 | libdir="$found_dir" |
| 10627 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 10628 | libdir="$acl_save_libdir" |
| 10629 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 10630 | done |
| 10631 | fi |
| 10632 | fi |
| 10633 | if test "X$ltrpathdirs" != "X"; then |
| 10634 | for found_dir in $ltrpathdirs; do |
| 10635 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 10636 | done |
| 10637 | fi |
| 10638 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10639 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
| 10640 | 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] | 10641 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then |
| 10642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10643 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10644 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 10645 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 10646 | gt_save_LIBS="$LIBS" |
| 10647 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10648 | cat >conftest.$ac_ext <<_ACEOF |
| 10649 | /* confdefs.h. */ |
| 10650 | _ACEOF |
| 10651 | cat confdefs.h >>conftest.$ac_ext |
| 10652 | cat >>conftest.$ac_ext <<_ACEOF |
| 10653 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10654 | #include <libintl.h> |
| 10655 | extern int _nl_msg_cat_cntr; |
| 10656 | extern |
| 10657 | #ifdef __cplusplus |
| 10658 | "C" |
| 10659 | #endif |
| 10660 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10661 | int |
| 10662 | main () |
| 10663 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10664 | bindtextdomain ("", ""); |
| 10665 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10666 | ; |
| 10667 | return 0; |
| 10668 | } |
| 10669 | _ACEOF |
| 10670 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10671 | if { (ac_try="$ac_link" |
| 10672 | case "(($ac_try" in |
| 10673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10674 | *) ac_try_echo=$ac_try;; |
| 10675 | esac |
| 10676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10677 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10678 | ac_status=$? |
| 10679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10680 | rm -f conftest.er1 |
| 10681 | cat conftest.err >&5 |
| 10682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10683 | (exit $ac_status); } && { |
| 10684 | test -z "$ac_c_werror_flag" || |
| 10685 | test ! -s conftest.err |
| 10686 | } && test -s conftest$ac_exeext && |
| 10687 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10688 | gt_cv_func_gnugettext1_libintl=yes |
| 10689 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10690 | echo "$as_me: failed program was:" >&5 |
| 10691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10692 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10693 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10694 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10695 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10696 | 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] | 10697 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 10698 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 10699 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10700 | cat >conftest.$ac_ext <<_ACEOF |
| 10701 | /* confdefs.h. */ |
| 10702 | _ACEOF |
| 10703 | cat confdefs.h >>conftest.$ac_ext |
| 10704 | cat >>conftest.$ac_ext <<_ACEOF |
| 10705 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10706 | #include <libintl.h> |
| 10707 | extern int _nl_msg_cat_cntr; |
| 10708 | extern |
| 10709 | #ifdef __cplusplus |
| 10710 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10711 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10712 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10713 | int |
| 10714 | main () |
| 10715 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10716 | bindtextdomain ("", ""); |
| 10717 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10718 | ; |
| 10719 | return 0; |
| 10720 | } |
| 10721 | _ACEOF |
| 10722 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10723 | if { (ac_try="$ac_link" |
| 10724 | case "(($ac_try" in |
| 10725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 10726 | *) ac_try_echo=$ac_try;; |
| 10727 | esac |
| 10728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 10729 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10730 | ac_status=$? |
| 10731 | grep -v '^ *+' conftest.er1 >conftest.err |
| 10732 | rm -f conftest.er1 |
| 10733 | cat conftest.err >&5 |
| 10734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10735 | (exit $ac_status); } && { |
| 10736 | test -z "$ac_c_werror_flag" || |
| 10737 | test ! -s conftest.err |
| 10738 | } && test -s conftest$ac_exeext && |
| 10739 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10740 | LIBINTL="$LIBINTL $LIBICONV" |
| 10741 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 10742 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10743 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10744 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10745 | echo "$as_me: failed program was:" >&5 |
| 10746 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 10747 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10748 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10749 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10750 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10751 | 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] | 10752 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10753 | fi |
| 10754 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 10755 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10756 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10757 | { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5 |
| 10758 | echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10759 | fi |
| 10760 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10761 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 10762 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | && test "$PACKAGE" != gettext-runtime \ |
| 10764 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10765 | gt_use_preinstalled_gnugettext=yes |
| 10766 | else |
| 10767 | LIBINTL= |
| 10768 | LTLIBINTL= |
| 10769 | INCINTL= |
| 10770 | fi |
| 10771 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10772 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10773 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 10774 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10775 | fi |
| 10776 | fi |
| 10777 | |
| 10778 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10779 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10780 | USE_INCLUDED_LIBINTL=yes |
| 10781 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 10782 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 10783 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10784 | fi |
| 10785 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10786 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10787 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 10788 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10789 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10790 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10791 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10792 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 10793 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10794 | |
| 10795 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10796 | #define ENABLE_NLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10797 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10798 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10799 | else |
| 10800 | USE_NLS=no |
| 10801 | fi |
| 10802 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10803 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10804 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
| 10805 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
| 10806 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
| 10807 | echo "${ECHO_T}$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10808 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10809 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
| 10810 | 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] | 10811 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10812 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 10813 | gt_source="external libintl" |
| 10814 | else |
| 10815 | gt_source="libc" |
| 10816 | fi |
| 10817 | else |
| 10818 | gt_source="included intl directory" |
| 10819 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10820 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
| 10821 | echo "${ECHO_T}$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10822 | fi |
| 10823 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10824 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10825 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10826 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 10827 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10828 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
| 10829 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
| 10830 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
| 10831 | echo "${ECHO_T}$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10832 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10833 | for element in $INCINTL; do |
| 10834 | haveit= |
| 10835 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10836 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10837 | acl_save_prefix="$prefix" |
| 10838 | prefix="$acl_final_prefix" |
| 10839 | acl_save_exec_prefix="$exec_prefix" |
| 10840 | exec_prefix="$acl_final_exec_prefix" |
| 10841 | eval x=\"$x\" |
| 10842 | exec_prefix="$acl_save_exec_prefix" |
| 10843 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10844 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10845 | if test "X$x" = "X$element"; then |
| 10846 | haveit=yes |
| 10847 | break |
| 10848 | fi |
| 10849 | done |
| 10850 | if test -z "$haveit"; then |
| 10851 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 10852 | fi |
| 10853 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10854 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10855 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 10856 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10857 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10858 | cat >>confdefs.h <<\_ACEOF |
| 10859 | #define HAVE_GETTEXT 1 |
| 10860 | _ACEOF |
| 10861 | |
| 10862 | |
| 10863 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10864 | #define HAVE_DCGETTEXT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10865 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10866 | |
| 10867 | fi |
| 10868 | |
| 10869 | POSUB=po |
| 10870 | fi |
| 10871 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10872 | |
| 10873 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10874 | BUILD_INCLUDED_LIBINTL=yes |
| 10875 | fi |
| 10876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10877 | |
| 10878 | |
| 10879 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10880 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10881 | nls_cv_header_intl= |
| 10882 | nls_cv_header_libgt= |
| 10883 | |
| 10884 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10885 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10886 | |
| 10887 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10888 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10889 | |
| 10890 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10891 | |
| 10892 | |
| 10893 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 10894 | INTLOBJS="\$(GETTOBJS)" |
| 10895 | fi |
| 10896 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10897 | |
| 10898 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10899 | |
| 10900 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 10901 | |
| 10902 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10903 | |
| 10904 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10905 | |
| 10906 | |
| 10907 | |
| 10908 | |
| 10909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10910 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 10911 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
| 10912 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 10913 | 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] | 10914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10915 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10916 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10917 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10918 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10919 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10920 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10921 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10922 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 10923 | *@@@%%%=?*=@@@%%%*) |
| 10924 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 10925 | *) |
| 10926 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 10927 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10928 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10929 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 10931 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10932 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10933 | SET_MAKE= |
| 10934 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10935 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10936 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10937 | SET_MAKE="MAKE=${MAKE-make}" |
| 10938 | fi |
| 10939 | |
| 10940 | # Extract the first word of "ln", so it can be a program name with args. |
| 10941 | set dummy ln; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10944 | if test "${ac_cv_path_LN+set}" = set; then |
| 10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10946 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10947 | case $LN in |
| 10948 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10949 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 10950 | ;; |
| 10951 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10953 | for as_dir in $PATH |
| 10954 | do |
| 10955 | IFS=$as_save_IFS |
| 10956 | test -z "$as_dir" && as_dir=. |
| 10957 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10958 | 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] | 10959 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
| 10960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 10961 | break 2 |
| 10962 | fi |
| 10963 | done |
| 10964 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10965 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10966 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10967 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 10968 | ;; |
| 10969 | esac |
| 10970 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10971 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10972 | if test -n "$LN"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10973 | { echo "$as_me:$LINENO: result: $LN" >&5 |
| 10974 | echo "${ECHO_T}$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10975 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10976 | { echo "$as_me:$LINENO: result: no" >&5 |
| 10977 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10978 | fi |
| 10979 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10980 | |
| 10981 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 10982 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10983 | LN_S=$as_ln_s |
| 10984 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10985 | { echo "$as_me:$LINENO: result: yes" >&5 |
| 10986 | echo "${ECHO_T}yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10987 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10988 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 10989 | echo "${ECHO_T}no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10990 | fi |
| 10991 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10992 | # Extract the first word of "mv", so it can be a program name with args. |
| 10993 | set dummy mv; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10994 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 10995 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10996 | if test "${ac_cv_path_MV+set}" = set; then |
| 10997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10998 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10999 | case $MV in |
| 11000 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11001 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 11002 | ;; |
| 11003 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11005 | for as_dir in $PATH |
| 11006 | do |
| 11007 | IFS=$as_save_IFS |
| 11008 | test -z "$as_dir" && as_dir=. |
| 11009 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11010 | 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] | 11011 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
| 11012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11013 | break 2 |
| 11014 | fi |
| 11015 | done |
| 11016 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11017 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11018 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11019 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 11020 | ;; |
| 11021 | esac |
| 11022 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11023 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11024 | if test -n "$MV"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11025 | { echo "$as_me:$LINENO: result: $MV" >&5 |
| 11026 | echo "${ECHO_T}$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11027 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11028 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11029 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11030 | fi |
| 11031 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11032 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11033 | # Extract the first word of "cp", so it can be a program name with args. |
| 11034 | set dummy cp; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11035 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11037 | if test "${ac_cv_path_CP+set}" = set; then |
| 11038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11039 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11040 | case $CP in |
| 11041 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11042 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 11043 | ;; |
| 11044 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11046 | for as_dir in $PATH |
| 11047 | do |
| 11048 | IFS=$as_save_IFS |
| 11049 | test -z "$as_dir" && as_dir=. |
| 11050 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11051 | 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] | 11052 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
| 11053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11054 | break 2 |
| 11055 | fi |
| 11056 | done |
| 11057 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11058 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11059 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11060 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 11061 | ;; |
| 11062 | esac |
| 11063 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11064 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11065 | if test -n "$CP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11066 | { echo "$as_me:$LINENO: result: $CP" >&5 |
| 11067 | echo "${ECHO_T}$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11068 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11069 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11070 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11071 | fi |
| 11072 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11073 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11074 | # Extract the first word of "rm", so it can be a program name with args. |
| 11075 | set dummy rm; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11076 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11078 | if test "${ac_cv_path_RM+set}" = set; then |
| 11079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11080 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11081 | case $RM in |
| 11082 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11083 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 11084 | ;; |
| 11085 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11087 | for as_dir in $PATH |
| 11088 | do |
| 11089 | IFS=$as_save_IFS |
| 11090 | test -z "$as_dir" && as_dir=. |
| 11091 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11092 | 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] | 11093 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
| 11094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11095 | break 2 |
| 11096 | fi |
| 11097 | done |
| 11098 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11099 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11100 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11101 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 11102 | ;; |
| 11103 | esac |
| 11104 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11105 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11106 | if test -n "$RM"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11107 | { echo "$as_me:$LINENO: result: $RM" >&5 |
| 11108 | echo "${ECHO_T}$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11109 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11110 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11111 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11112 | fi |
| 11113 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11114 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11115 | # Extract the first word of "chmod", so it can be a program name with args. |
| 11116 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11117 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11119 | if test "${ac_cv_path_CHMOD+set}" = set; then |
| 11120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11121 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11122 | case $CHMOD in |
| 11123 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11124 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 11125 | ;; |
| 11126 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11128 | for as_dir in $PATH |
| 11129 | do |
| 11130 | IFS=$as_save_IFS |
| 11131 | test -z "$as_dir" && as_dir=. |
| 11132 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11133 | 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] | 11134 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
| 11135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11136 | break 2 |
| 11137 | fi |
| 11138 | done |
| 11139 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11140 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11141 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11142 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 11143 | ;; |
| 11144 | esac |
| 11145 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11146 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11147 | if test -n "$CHMOD"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11148 | { echo "$as_me:$LINENO: result: $CHMOD" >&5 |
| 11149 | echo "${ECHO_T}$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11150 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11151 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11152 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11153 | fi |
| 11154 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11155 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11156 | for ac_prog in gawk mawk nawk awk |
| 11157 | do |
| 11158 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11159 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11160 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11162 | if test "${ac_cv_prog_AWK+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11163 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11164 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11165 | if test -n "$AWK"; then |
| 11166 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 11167 | else |
| 11168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11169 | for as_dir in $PATH |
| 11170 | do |
| 11171 | IFS=$as_save_IFS |
| 11172 | test -z "$as_dir" && as_dir=. |
| 11173 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11174 | 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] | 11175 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11177 | break 2 |
| 11178 | fi |
| 11179 | done |
| 11180 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11181 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11182 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11183 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11184 | fi |
| 11185 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11186 | if test -n "$AWK"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11187 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
| 11188 | echo "${ECHO_T}$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11189 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11190 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11191 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11192 | fi |
| 11193 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11194 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11195 | test -n "$AWK" && break |
| 11196 | done |
| 11197 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11198 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
| 11199 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
| 11200 | if test "${ac_cv_path_EGREP+set}" = set; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11202 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11203 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 11204 | then ac_cv_path_EGREP="$GREP -E" |
| 11205 | else |
| 11206 | # Extract the first word of "egrep" to use in msg output |
| 11207 | if test -z "$EGREP"; then |
| 11208 | set dummy egrep; ac_prog_name=$2 |
| 11209 | if test "${ac_cv_path_EGREP+set}" = set; then |
| 11210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11211 | else |
| 11212 | ac_path_EGREP_found=false |
| 11213 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 11214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11215 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 11216 | do |
| 11217 | IFS=$as_save_IFS |
| 11218 | test -z "$as_dir" && as_dir=. |
| 11219 | for ac_prog in egrep; do |
| 11220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11221 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11222 | { 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] | 11223 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 11224 | # Check for GNU $ac_path_EGREP |
| 11225 | case `"$ac_path_EGREP" --version 2>&1` in |
| 11226 | *GNU*) |
| 11227 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 11228 | *) |
| 11229 | ac_count=0 |
| 11230 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
| 11231 | while : |
| 11232 | do |
| 11233 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 11234 | mv "conftest.tmp" "conftest.in" |
| 11235 | cp "conftest.in" "conftest.nl" |
| 11236 | echo 'EGREP' >> "conftest.nl" |
| 11237 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 11238 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 11239 | ac_count=`expr $ac_count + 1` |
| 11240 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 11241 | # Best one so far, save it but keep looking for a better one |
| 11242 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 11243 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11244 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11245 | # 10*(2^10) chars as input seems more than enough |
| 11246 | test $ac_count -gt 10 && break |
| 11247 | done |
| 11248 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 11249 | esac |
| 11250 | |
| 11251 | |
| 11252 | $ac_path_EGREP_found && break 3 |
| 11253 | done |
| 11254 | done |
| 11255 | |
| 11256 | done |
| 11257 | IFS=$as_save_IFS |
| 11258 | |
| 11259 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11260 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11261 | |
| 11262 | EGREP="$ac_cv_path_EGREP" |
| 11263 | if test -z "$EGREP"; then |
| 11264 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
| 11265 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
| 11266 | { (exit 1); exit 1; }; } |
| 11267 | fi |
| 11268 | |
| 11269 | else |
| 11270 | ac_cv_path_EGREP=$EGREP |
| 11271 | fi |
| 11272 | |
| 11273 | |
| 11274 | fi |
| 11275 | fi |
| 11276 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
| 11277 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
| 11278 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 11279 | |
| 11280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11281 | # Extract the first word of "sed", so it can be a program name with args. |
| 11282 | set dummy sed; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11283 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11284 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11285 | if test "${ac_cv_path_SED+set}" = set; then |
| 11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11287 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11288 | case $SED in |
| 11289 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11290 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 11291 | ;; |
| 11292 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11294 | for as_dir in $PATH |
| 11295 | do |
| 11296 | IFS=$as_save_IFS |
| 11297 | test -z "$as_dir" && as_dir=. |
| 11298 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11299 | 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] | 11300 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
| 11301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11302 | break 2 |
| 11303 | fi |
| 11304 | done |
| 11305 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11306 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11307 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11308 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 11309 | ;; |
| 11310 | esac |
| 11311 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11312 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11313 | if test -n "$SED"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11314 | { echo "$as_me:$LINENO: result: $SED" >&5 |
| 11315 | echo "${ECHO_T}$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11316 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11317 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11318 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11319 | fi |
| 11320 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11321 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11322 | # Extract the first word of "perl", so it can be a program name with args. |
| 11323 | set dummy perl; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11326 | if test "${ac_cv_path_PERL+set}" = set; then |
| 11327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11328 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11329 | case $PERL in |
| 11330 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11331 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 11332 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11333 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11335 | for as_dir in $PATH |
| 11336 | do |
| 11337 | IFS=$as_save_IFS |
| 11338 | test -z "$as_dir" && as_dir=. |
| 11339 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11340 | 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] | 11341 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 11342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11343 | break 2 |
| 11344 | fi |
| 11345 | done |
| 11346 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11347 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11348 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11349 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 11350 | ;; |
| 11351 | esac |
| 11352 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11353 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11354 | if test -n "$PERL"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11355 | { echo "$as_me:$LINENO: result: $PERL" >&5 |
| 11356 | echo "${ECHO_T}$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11357 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11358 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11359 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 11360 | fi |
| 11361 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11363 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 11364 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11365 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11367 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
| 11368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11369 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11370 | case $LDCONFIG in |
| 11371 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11372 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 11373 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11374 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11376 | for as_dir in $PATH |
| 11377 | do |
| 11378 | IFS=$as_save_IFS |
| 11379 | test -z "$as_dir" && as_dir=. |
| 11380 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11381 | 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] | 11382 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 11383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11384 | break 2 |
| 11385 | fi |
| 11386 | done |
| 11387 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11388 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11389 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11390 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 11391 | ;; |
| 11392 | esac |
| 11393 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11394 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11395 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11396 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
| 11397 | echo "${ECHO_T}$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11398 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11399 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11400 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 11401 | fi |
| 11402 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11403 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | if test -n "$ac_tool_prefix"; then |
| 11405 | # 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] | 11406 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11407 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11408 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11409 | if test "${ac_cv_prog_AR+set}" = set; then |
| 11410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11411 | else |
| 11412 | if test -n "$AR"; then |
| 11413 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11414 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11415 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11416 | for as_dir in $PATH |
| 11417 | do |
| 11418 | IFS=$as_save_IFS |
| 11419 | test -z "$as_dir" && as_dir=. |
| 11420 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11421 | 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] | 11422 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 11423 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11424 | break 2 |
| 11425 | fi |
| 11426 | done |
| 11427 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11428 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11429 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11430 | fi |
| 11431 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11432 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11433 | if test -n "$AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11434 | { echo "$as_me:$LINENO: result: $AR" >&5 |
| 11435 | echo "${ECHO_T}$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11436 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11437 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11438 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11439 | fi |
| 11440 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11441 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11442 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11443 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11444 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11445 | # Extract the first word of "ar", so it can be a program name with args. |
| 11446 | set dummy ar; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11447 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11449 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
| 11450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11451 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11452 | if test -n "$ac_ct_AR"; then |
| 11453 | 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] | 11454 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11456 | for as_dir in $PATH |
| 11457 | do |
| 11458 | IFS=$as_save_IFS |
| 11459 | test -z "$as_dir" && as_dir=. |
| 11460 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11461 | 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] | 11462 | ac_cv_prog_ac_ct_AR="ar" |
| 11463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11464 | break 2 |
| 11465 | fi |
| 11466 | done |
| 11467 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11468 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11469 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11470 | fi |
| 11471 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11472 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11473 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11474 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
| 11475 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11476 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11477 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11478 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11479 | fi |
| 11480 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11481 | if test "x$ac_ct_AR" = x; then |
| 11482 | AR="ar" |
| 11483 | else |
| 11484 | case $cross_compiling:$ac_tool_warned in |
| 11485 | yes:) |
| 11486 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11487 | whose name does not start with the host triplet. If you think this |
| 11488 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11489 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11490 | whose name does not start with the host triplet. If you think this |
| 11491 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11492 | ac_tool_warned=yes ;; |
| 11493 | esac |
| 11494 | AR=$ac_ct_AR |
| 11495 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11496 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11497 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11498 | fi |
| 11499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11500 | if test -n "$ac_tool_prefix"; then |
| 11501 | # 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] | 11502 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11503 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11505 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 11506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11507 | else |
| 11508 | if test -n "$RANLIB"; then |
| 11509 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11510 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11512 | for as_dir in $PATH |
| 11513 | do |
| 11514 | IFS=$as_save_IFS |
| 11515 | test -z "$as_dir" && as_dir=. |
| 11516 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11517 | 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] | 11518 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11520 | break 2 |
| 11521 | fi |
| 11522 | done |
| 11523 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11524 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11525 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11526 | fi |
| 11527 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11528 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11529 | if test -n "$RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11530 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 11531 | echo "${ECHO_T}$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11532 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11533 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11534 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11535 | fi |
| 11536 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11537 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11538 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11539 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11540 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11541 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 11542 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11543 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11545 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 11546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11547 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11548 | if test -n "$ac_ct_RANLIB"; then |
| 11549 | 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] | 11550 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11552 | for as_dir in $PATH |
| 11553 | do |
| 11554 | IFS=$as_save_IFS |
| 11555 | test -z "$as_dir" && as_dir=. |
| 11556 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11557 | 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] | 11558 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11560 | break 2 |
| 11561 | fi |
| 11562 | done |
| 11563 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11564 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11565 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11566 | fi |
| 11567 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11568 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11569 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11570 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 11571 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11572 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11573 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11574 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11575 | fi |
| 11576 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11577 | if test "x$ac_ct_RANLIB" = x; then |
| 11578 | RANLIB=":" |
| 11579 | else |
| 11580 | case $cross_compiling:$ac_tool_warned in |
| 11581 | yes:) |
| 11582 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11583 | whose name does not start with the host triplet. If you think this |
| 11584 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11585 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11586 | whose name does not start with the host triplet. If you think this |
| 11587 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11588 | ac_tool_warned=yes ;; |
| 11589 | esac |
| 11590 | RANLIB=$ac_ct_RANLIB |
| 11591 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11592 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11593 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11594 | fi |
| 11595 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11596 | if test -n "$ac_tool_prefix"; then |
| 11597 | # 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] | 11598 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11599 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11600 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11601 | if test "${ac_cv_prog_STRIP+set}" = set; then |
| 11602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11603 | else |
| 11604 | if test -n "$STRIP"; then |
| 11605 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11606 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11608 | for as_dir in $PATH |
| 11609 | do |
| 11610 | IFS=$as_save_IFS |
| 11611 | test -z "$as_dir" && as_dir=. |
| 11612 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11613 | 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] | 11614 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11615 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11616 | break 2 |
| 11617 | fi |
| 11618 | done |
| 11619 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11620 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11621 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11622 | fi |
| 11623 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11624 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11625 | if test -n "$STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11626 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
| 11627 | echo "${ECHO_T}$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11628 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11629 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11630 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11631 | fi |
| 11632 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11633 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11634 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11635 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11636 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11637 | # Extract the first word of "strip", so it can be a program name with args. |
| 11638 | set dummy strip; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11639 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11641 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
| 11642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11643 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11644 | if test -n "$ac_ct_STRIP"; then |
| 11645 | 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] | 11646 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11648 | for as_dir in $PATH |
| 11649 | do |
| 11650 | IFS=$as_save_IFS |
| 11651 | test -z "$as_dir" && as_dir=. |
| 11652 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11653 | 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] | 11654 | ac_cv_prog_ac_ct_STRIP="strip" |
| 11655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11656 | break 2 |
| 11657 | fi |
| 11658 | done |
| 11659 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11660 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11661 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11662 | fi |
| 11663 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11664 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11665 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11666 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
| 11667 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11668 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11669 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11670 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11671 | fi |
| 11672 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11673 | if test "x$ac_ct_STRIP" = x; then |
| 11674 | STRIP=":" |
| 11675 | else |
| 11676 | case $cross_compiling:$ac_tool_warned in |
| 11677 | yes:) |
| 11678 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
| 11679 | whose name does not start with the host triplet. If you think this |
| 11680 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
| 11681 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
| 11682 | whose name does not start with the host triplet. If you think this |
| 11683 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
| 11684 | ac_tool_warned=yes ;; |
| 11685 | esac |
| 11686 | STRIP=$ac_ct_STRIP |
| 11687 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11688 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11689 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11690 | fi |
| 11691 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 11692 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 11693 | set dummy makeinfo; ac_word=$2 |
| 11694 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
| 11696 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
| 11697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11698 | else |
| 11699 | if test -n "$MAKEINFO"; then |
| 11700 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 11701 | else |
| 11702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11703 | for as_dir in $PATH |
| 11704 | do |
| 11705 | IFS=$as_save_IFS |
| 11706 | test -z "$as_dir" && as_dir=. |
| 11707 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 11708 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 11709 | ac_cv_prog_MAKEINFO="makeinfo" |
| 11710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11711 | break 2 |
| 11712 | fi |
| 11713 | done |
| 11714 | done |
| 11715 | IFS=$as_save_IFS |
| 11716 | |
| 11717 | fi |
| 11718 | fi |
| 11719 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 11720 | if test -n "$MAKEINFO"; then |
| 11721 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
| 11722 | echo "${ECHO_T}$MAKEINFO" >&6; } |
| 11723 | else |
| 11724 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11725 | echo "${ECHO_T}no" >&6; } |
| 11726 | fi |
| 11727 | |
| 11728 | |
| 11729 | if test "_$MAKEINFO" = "_"; then |
| 11730 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 11731 | else |
| 11732 | case "$MAKEINFO" in |
| 11733 | */missing.*) |
| 11734 | { echo "$as_me:$LINENO: WARNING: |
| 11735 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
| 11736 | echo "$as_me: WARNING: |
| 11737 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 11738 | ;; |
| 11739 | *) |
| 11740 | ;; |
| 11741 | esac |
| 11742 | fi |
| 11743 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11744 | # Find a good install program. We prefer a C program (faster), |
| 11745 | # so one script is as good as another. But avoid the broken or |
| 11746 | # incompatible versions: |
| 11747 | # SysV /etc/install, /usr/sbin/install |
| 11748 | # SunOS /usr/etc/install |
| 11749 | # IRIX /sbin/install |
| 11750 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11751 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11752 | # 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] | 11753 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 11754 | # 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] | 11755 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11756 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11757 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 11758 | 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] | 11759 | if test -z "$INSTALL"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11760 | if test "${ac_cv_path_install+set}" = set; then |
| 11761 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11762 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11764 | for as_dir in $PATH |
| 11765 | do |
| 11766 | IFS=$as_save_IFS |
| 11767 | test -z "$as_dir" && as_dir=. |
| 11768 | # Account for people who put trailing slashes in PATH elements. |
| 11769 | case $as_dir/ in |
| 11770 | ./ | .// | /cC/* | \ |
| 11771 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 11772 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
| 11773 | /usr/ucb/* ) ;; |
| 11774 | *) |
| 11775 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 11776 | # Don't use installbsd from OSF since it installs stuff as root |
| 11777 | # by default. |
| 11778 | for ac_prog in ginstall scoinst install; do |
| 11779 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11780 | 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] | 11781 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11782 | 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] | 11783 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11784 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11785 | elif test $ac_prog = install && |
| 11786 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 11787 | # program-specific install script used by HP pwplus--don't use. |
| 11788 | : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11789 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11790 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 11791 | break 3 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11792 | fi |
| 11793 | fi |
| 11794 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11795 | done |
| 11796 | ;; |
| 11797 | esac |
| 11798 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11799 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11800 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11801 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11802 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11803 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11804 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11805 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11806 | # As a last resort, use the slow shell script. Don't cache a |
| 11807 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11808 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11809 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11810 | INSTALL=$ac_install_sh |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11811 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11812 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11813 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 11814 | echo "${ECHO_T}$INSTALL" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11815 | |
| 11816 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 11817 | # It thinks the first close brace ends the variable substitution. |
| 11818 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 11819 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11820 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 11821 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11822 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 11823 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11824 | # See if we need a separate native compiler. |
| 11825 | if test $cross_compiling = no; then |
| 11826 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11827 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11828 | else |
| 11829 | for ac_prog in gcc cc |
| 11830 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11831 | # 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] | 11832 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11833 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 11834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11835 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then |
| 11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 11837 | else |
| 11838 | if test -n "$BUILD_CC"; then |
| 11839 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 11840 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11842 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11843 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11844 | IFS=$as_save_IFS |
| 11845 | test -z "$as_dir" && as_dir=. |
| 11846 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11847 | 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] | 11848 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 11849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 11850 | break 2 |
| 11851 | fi |
| 11852 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11853 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11854 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11855 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11856 | fi |
| 11857 | fi |
| 11858 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 11859 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11860 | { echo "$as_me:$LINENO: result: $BUILD_CC" >&5 |
| 11861 | echo "${ECHO_T}$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11862 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11863 | { echo "$as_me:$LINENO: result: no" >&5 |
| 11864 | echo "${ECHO_T}no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11865 | fi |
| 11866 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11867 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11868 | test -n "$BUILD_CC" && break |
| 11869 | done |
| 11870 | |
| 11871 | fi |
| 11872 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 11873 | |
| 11874 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | |
| 11892 | |
| 11893 | |
| 11894 | |
| 11895 | |
| 11896 | |
| 11897 | |
| 11898 | |
| 11899 | |
| 11900 | |
| 11901 | |
| 11902 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 11903 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 11904 | |
Christophe GRENIER | e7cc6f7 | 2008-02-16 12:10:56 +0100 | [diff] [blame] | 11905 | |
| 11906 | |
Theodore Ts'o | 3d05802 | 2008-07-12 22:06:30 -0400 | [diff] [blame] | 11907 | |
Theodore Ts'o | 6ec9ef1 | 2008-08-22 12:15:56 -0400 | [diff] [blame] | 11908 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11909 | |
| 11910 | for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.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] | 11911 | do |
| 11912 | 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] | 11913 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 11914 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 11915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 11916 | 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] | 11917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11918 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11919 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 11920 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 11921 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11922 | else |
| 11923 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11924 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 11925 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11926 | cat >conftest.$ac_ext <<_ACEOF |
| 11927 | /* confdefs.h. */ |
| 11928 | _ACEOF |
| 11929 | cat confdefs.h >>conftest.$ac_ext |
| 11930 | cat >>conftest.$ac_ext <<_ACEOF |
| 11931 | /* end confdefs.h. */ |
| 11932 | $ac_includes_default |
| 11933 | #include <$ac_header> |
| 11934 | _ACEOF |
| 11935 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11936 | if { (ac_try="$ac_compile" |
| 11937 | case "(($ac_try" in |
| 11938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11939 | *) ac_try_echo=$ac_try;; |
| 11940 | esac |
| 11941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11942 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11943 | ac_status=$? |
| 11944 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11945 | rm -f conftest.er1 |
| 11946 | cat conftest.err >&5 |
| 11947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11948 | (exit $ac_status); } && { |
| 11949 | test -z "$ac_c_werror_flag" || |
| 11950 | test ! -s conftest.err |
| 11951 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11952 | ac_header_compiler=yes |
| 11953 | else |
| 11954 | echo "$as_me: failed program was:" >&5 |
| 11955 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11956 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11957 | ac_header_compiler=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11958 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11959 | |
| 11960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11961 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 11962 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11963 | |
| 11964 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11965 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 11966 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11967 | cat >conftest.$ac_ext <<_ACEOF |
| 11968 | /* confdefs.h. */ |
| 11969 | _ACEOF |
| 11970 | cat confdefs.h >>conftest.$ac_ext |
| 11971 | cat >>conftest.$ac_ext <<_ACEOF |
| 11972 | /* end confdefs.h. */ |
| 11973 | #include <$ac_header> |
| 11974 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11975 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 11976 | case "(($ac_try" in |
| 11977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 11978 | *) ac_try_echo=$ac_try;; |
| 11979 | esac |
| 11980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 11981 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11982 | ac_status=$? |
| 11983 | grep -v '^ *+' conftest.er1 >conftest.err |
| 11984 | rm -f conftest.er1 |
| 11985 | cat conftest.err >&5 |
| 11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11987 | (exit $ac_status); } >/dev/null && { |
| 11988 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 11989 | test ! -s conftest.err |
| 11990 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11991 | ac_header_preproc=yes |
| 11992 | else |
| 11993 | echo "$as_me: failed program was:" >&5 |
| 11994 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 11995 | |
| 11996 | ac_header_preproc=no |
| 11997 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11998 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11999 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12000 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 12001 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12002 | |
| 12003 | # So? What about this header? |
| 12004 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 12005 | yes:no: ) |
| 12006 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 12007 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 12008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 12009 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 12010 | ac_header_preproc=yes |
| 12011 | ;; |
| 12012 | no:yes:* ) |
| 12013 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 12014 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 12015 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 12016 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 12017 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 12018 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 12019 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 12020 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 12021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 12022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 12023 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 12024 | 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] | 12025 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12026 | ;; |
| 12027 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12028 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12030 | 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] | 12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12032 | else |
| 12033 | eval "$as_ac_Header=\$ac_header_preproc" |
| 12034 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12036 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12037 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12038 | |
| 12039 | fi |
| 12040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12041 | cat >>confdefs.h <<_ACEOF |
| 12042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12043 | _ACEOF |
| 12044 | |
| 12045 | fi |
| 12046 | |
| 12047 | done |
| 12048 | |
| 12049 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12050 | |
| 12051 | for ac_header in sys/disk.h sys/mount.h |
| 12052 | do |
| 12053 | 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] | 12054 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12056 | 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] | 12057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12058 | else |
| 12059 | cat >conftest.$ac_ext <<_ACEOF |
| 12060 | /* confdefs.h. */ |
| 12061 | _ACEOF |
| 12062 | cat confdefs.h >>conftest.$ac_ext |
| 12063 | cat >>conftest.$ac_ext <<_ACEOF |
| 12064 | /* end confdefs.h. */ |
| 12065 | |
| 12066 | #if HAVE_SYS_QUEUE_H |
| 12067 | #include <sys/queue.h> |
| 12068 | #endif |
| 12069 | |
| 12070 | |
| 12071 | #include <$ac_header> |
| 12072 | _ACEOF |
| 12073 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12074 | if { (ac_try="$ac_compile" |
| 12075 | case "(($ac_try" in |
| 12076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12077 | *) ac_try_echo=$ac_try;; |
| 12078 | esac |
| 12079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12080 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12081 | ac_status=$? |
| 12082 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12083 | rm -f conftest.er1 |
| 12084 | cat conftest.err >&5 |
| 12085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12086 | (exit $ac_status); } && { |
| 12087 | test -z "$ac_c_werror_flag" || |
| 12088 | test ! -s conftest.err |
| 12089 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12090 | eval "$as_ac_Header=yes" |
| 12091 | else |
| 12092 | echo "$as_me: failed program was:" >&5 |
| 12093 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12094 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12095 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12096 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12097 | |
| 12098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12099 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12100 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12101 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12102 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12103 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12104 | cat >>confdefs.h <<_ACEOF |
| 12105 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12106 | _ACEOF |
| 12107 | |
| 12108 | fi |
| 12109 | |
| 12110 | done |
| 12111 | |
| 12112 | |
| 12113 | for ac_header in net/if.h |
| 12114 | do |
| 12115 | 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] | 12116 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 12117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 12118 | 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] | 12119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12120 | else |
| 12121 | cat >conftest.$ac_ext <<_ACEOF |
| 12122 | /* confdefs.h. */ |
| 12123 | _ACEOF |
| 12124 | cat confdefs.h >>conftest.$ac_ext |
| 12125 | cat >>conftest.$ac_ext <<_ACEOF |
| 12126 | /* end confdefs.h. */ |
| 12127 | |
| 12128 | #if HAVE_SYS_TYPES_H |
| 12129 | #include <sys/types.h> |
| 12130 | #endif |
| 12131 | #if HAVE_SYS_SOCKET |
| 12132 | #include <sys/socket.h> |
| 12133 | #endif |
| 12134 | |
| 12135 | |
| 12136 | #include <$ac_header> |
| 12137 | _ACEOF |
| 12138 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12139 | if { (ac_try="$ac_compile" |
| 12140 | case "(($ac_try" in |
| 12141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12142 | *) ac_try_echo=$ac_try;; |
| 12143 | esac |
| 12144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12145 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12146 | ac_status=$? |
| 12147 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12148 | rm -f conftest.er1 |
| 12149 | cat conftest.err >&5 |
| 12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12151 | (exit $ac_status); } && { |
| 12152 | test -z "$ac_c_werror_flag" || |
| 12153 | test ! -s conftest.err |
| 12154 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12155 | eval "$as_ac_Header=yes" |
| 12156 | else |
| 12157 | echo "$as_me: failed program was:" >&5 |
| 12158 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12159 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12160 | eval "$as_ac_Header=no" |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12161 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12162 | |
| 12163 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12164 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12165 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 12166 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12167 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 12168 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 12169 | cat >>confdefs.h <<_ACEOF |
| 12170 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12171 | _ACEOF |
| 12172 | |
| 12173 | fi |
| 12174 | |
| 12175 | done |
| 12176 | |
| 12177 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12178 | for ac_func in vprintf |
| 12179 | do |
| 12180 | 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] | 12181 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 12183 | 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] | 12184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12185 | else |
| 12186 | cat >conftest.$ac_ext <<_ACEOF |
| 12187 | /* confdefs.h. */ |
| 12188 | _ACEOF |
| 12189 | cat confdefs.h >>conftest.$ac_ext |
| 12190 | cat >>conftest.$ac_ext <<_ACEOF |
| 12191 | /* end confdefs.h. */ |
| 12192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 12193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12194 | #define $ac_func innocuous_$ac_func |
| 12195 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12196 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12197 | which can conflict with char $ac_func (); below. |
| 12198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12199 | <limits.h> exists even on freestanding compilers. */ |
| 12200 | |
| 12201 | #ifdef __STDC__ |
| 12202 | # include <limits.h> |
| 12203 | #else |
| 12204 | # include <assert.h> |
| 12205 | #endif |
| 12206 | |
| 12207 | #undef $ac_func |
| 12208 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12209 | /* Override any GCC internal prototype to avoid an error. |
| 12210 | Use char because int might match the return type of a GCC |
| 12211 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12212 | #ifdef __cplusplus |
| 12213 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12214 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12215 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12216 | /* The GNU C library defines this for functions which it implements |
| 12217 | to always fail with ENOSYS. Some functions are actually named |
| 12218 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12220 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12221 | #endif |
| 12222 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12223 | int |
| 12224 | main () |
| 12225 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12226 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12227 | ; |
| 12228 | return 0; |
| 12229 | } |
| 12230 | _ACEOF |
| 12231 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12232 | if { (ac_try="$ac_link" |
| 12233 | case "(($ac_try" in |
| 12234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12235 | *) ac_try_echo=$ac_try;; |
| 12236 | esac |
| 12237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12238 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | ac_status=$? |
| 12240 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12241 | rm -f conftest.er1 |
| 12242 | cat conftest.err >&5 |
| 12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12244 | (exit $ac_status); } && { |
| 12245 | test -z "$ac_c_werror_flag" || |
| 12246 | test ! -s conftest.err |
| 12247 | } && test -s conftest$ac_exeext && |
| 12248 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12249 | eval "$as_ac_var=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12250 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12251 | echo "$as_me: failed program was:" >&5 |
| 12252 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12253 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12254 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12255 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12256 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12257 | 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] | 12258 | conftest$ac_exeext conftest.$ac_ext |
| 12259 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12260 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 12261 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 12262 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12263 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12264 | cat >>confdefs.h <<_ACEOF |
| 12265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12266 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12267 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12268 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
| 12269 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12270 | if test "${ac_cv_func__doprnt+set}" = set; then |
| 12271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12272 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12273 | cat >conftest.$ac_ext <<_ACEOF |
| 12274 | /* confdefs.h. */ |
| 12275 | _ACEOF |
| 12276 | cat confdefs.h >>conftest.$ac_ext |
| 12277 | cat >>conftest.$ac_ext <<_ACEOF |
| 12278 | /* end confdefs.h. */ |
| 12279 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
| 12280 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 12281 | #define _doprnt innocuous__doprnt |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12282 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12283 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12284 | which can conflict with char _doprnt (); below. |
| 12285 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12286 | <limits.h> exists even on freestanding compilers. */ |
| 12287 | |
| 12288 | #ifdef __STDC__ |
| 12289 | # include <limits.h> |
| 12290 | #else |
| 12291 | # include <assert.h> |
| 12292 | #endif |
| 12293 | |
| 12294 | #undef _doprnt |
| 12295 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12296 | /* Override any GCC internal prototype to avoid an error. |
| 12297 | Use char because int might match the return type of a GCC |
| 12298 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12299 | #ifdef __cplusplus |
| 12300 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12301 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12302 | char _doprnt (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12303 | /* The GNU C library defines this for functions which it implements |
| 12304 | to always fail with ENOSYS. Some functions are actually named |
| 12305 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12306 | #if defined __stub__doprnt || defined __stub____doprnt |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12307 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12308 | #endif |
| 12309 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12310 | int |
| 12311 | main () |
| 12312 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12313 | return _doprnt (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12314 | ; |
| 12315 | return 0; |
| 12316 | } |
| 12317 | _ACEOF |
| 12318 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12319 | if { (ac_try="$ac_link" |
| 12320 | case "(($ac_try" in |
| 12321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12322 | *) ac_try_echo=$ac_try;; |
| 12323 | esac |
| 12324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12325 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12326 | ac_status=$? |
| 12327 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12328 | rm -f conftest.er1 |
| 12329 | cat conftest.err >&5 |
| 12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12331 | (exit $ac_status); } && { |
| 12332 | test -z "$ac_c_werror_flag" || |
| 12333 | test ! -s conftest.err |
| 12334 | } && test -s conftest$ac_exeext && |
| 12335 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12336 | ac_cv_func__doprnt=yes |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12337 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12338 | echo "$as_me: failed program was:" >&5 |
| 12339 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 12340 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12341 | ac_cv_func__doprnt=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12342 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12343 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12344 | 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] | 12345 | conftest$ac_exeext conftest.$ac_ext |
| 12346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12347 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
| 12348 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12349 | if test $ac_cv_func__doprnt = yes; then |
| 12350 | |
| 12351 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12352 | #define HAVE_DOPRNT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12353 | _ACEOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12354 | |
| 12355 | fi |
| 12356 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12357 | fi |
| 12358 | done |
| 12359 | |
| 12360 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12361 | { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5 |
| 12362 | 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] | 12363 | 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] | 12364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 12365 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12366 | cat >conftest.$ac_ext <<_ACEOF |
| 12367 | /* confdefs.h. */ |
| 12368 | _ACEOF |
| 12369 | cat confdefs.h >>conftest.$ac_ext |
| 12370 | cat >>conftest.$ac_ext <<_ACEOF |
| 12371 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12372 | #include <dirent.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12373 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12374 | int |
| 12375 | main () |
| 12376 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12377 | static struct dirent ac_aggr; |
| 12378 | if (ac_aggr.d_reclen) |
| 12379 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12380 | ; |
| 12381 | return 0; |
| 12382 | } |
| 12383 | _ACEOF |
| 12384 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12385 | if { (ac_try="$ac_compile" |
| 12386 | case "(($ac_try" in |
| 12387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12388 | *) ac_try_echo=$ac_try;; |
| 12389 | esac |
| 12390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12391 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12392 | ac_status=$? |
| 12393 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12394 | rm -f conftest.er1 |
| 12395 | cat conftest.err >&5 |
| 12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12397 | (exit $ac_status); } && { |
| 12398 | test -z "$ac_c_werror_flag" || |
| 12399 | test ! -s conftest.err |
| 12400 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12401 | ac_cv_member_struct_dirent_d_reclen=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12402 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12403 | echo "$as_me: failed program was:" >&5 |
| 12404 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12405 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12406 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12407 | /* confdefs.h. */ |
| 12408 | _ACEOF |
| 12409 | cat confdefs.h >>conftest.$ac_ext |
| 12410 | cat >>conftest.$ac_ext <<_ACEOF |
| 12411 | /* end confdefs.h. */ |
| 12412 | #include <dirent.h> |
| 12413 | |
| 12414 | int |
| 12415 | main () |
| 12416 | { |
| 12417 | static struct dirent ac_aggr; |
| 12418 | if (sizeof ac_aggr.d_reclen) |
| 12419 | return 0; |
| 12420 | ; |
| 12421 | return 0; |
| 12422 | } |
| 12423 | _ACEOF |
| 12424 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12425 | if { (ac_try="$ac_compile" |
| 12426 | case "(($ac_try" in |
| 12427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12428 | *) ac_try_echo=$ac_try;; |
| 12429 | esac |
| 12430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12431 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12432 | ac_status=$? |
| 12433 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12434 | rm -f conftest.er1 |
| 12435 | cat conftest.err >&5 |
| 12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12437 | (exit $ac_status); } && { |
| 12438 | test -z "$ac_c_werror_flag" || |
| 12439 | test ! -s conftest.err |
| 12440 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12441 | ac_cv_member_struct_dirent_d_reclen=yes |
| 12442 | else |
| 12443 | echo "$as_me: failed program was:" >&5 |
| 12444 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12445 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12446 | ac_cv_member_struct_dirent_d_reclen=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12447 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12448 | |
| 12449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12450 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12451 | |
| 12452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12453 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12454 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5 |
| 12455 | echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12456 | if test $ac_cv_member_struct_dirent_d_reclen = yes; then |
| 12457 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12458 | #define HAVE_RECLEN_DIRENT 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12459 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12460 | |
| 12461 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12462 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12463 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
| 12464 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12465 | if test "${ac_cv_type_ssize_t+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12467 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12468 | cat >conftest.$ac_ext <<_ACEOF |
| 12469 | /* confdefs.h. */ |
| 12470 | _ACEOF |
| 12471 | cat confdefs.h >>conftest.$ac_ext |
| 12472 | cat >>conftest.$ac_ext <<_ACEOF |
| 12473 | /* end confdefs.h. */ |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12474 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12476 | typedef ssize_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | int |
| 12478 | main () |
| 12479 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12480 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12481 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12482 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12483 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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 | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12505 | ac_cv_type_ssize_t=yes |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12506 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 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_cv_type_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12511 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12512 | |
| 12513 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12514 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12515 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
| 12516 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12517 | if test $ac_cv_type_ssize_t = yes; then |
| 12518 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12519 | #define HAVE_TYPE_SSIZE_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12520 | _ACEOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12521 | |
| 12522 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12524 | { echo "$as_me:$LINENO: checking whether llseek is declared" >&5 |
| 12525 | echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12526 | if test "${ac_cv_have_decl_llseek+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 12528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12529 | cat >conftest.$ac_ext <<_ACEOF |
| 12530 | /* confdefs.h. */ |
| 12531 | _ACEOF |
| 12532 | cat confdefs.h >>conftest.$ac_ext |
| 12533 | cat >>conftest.$ac_ext <<_ACEOF |
| 12534 | /* end confdefs.h. */ |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12535 | #include <unistd.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12537 | int |
| 12538 | main () |
| 12539 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12540 | #ifndef llseek |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12541 | (void) llseek; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12542 | #endif |
| 12543 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12544 | ; |
| 12545 | return 0; |
| 12546 | } |
| 12547 | _ACEOF |
| 12548 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12549 | if { (ac_try="$ac_compile" |
| 12550 | case "(($ac_try" in |
| 12551 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12552 | *) ac_try_echo=$ac_try;; |
| 12553 | esac |
| 12554 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12555 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12556 | ac_status=$? |
| 12557 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12558 | rm -f conftest.er1 |
| 12559 | cat conftest.err >&5 |
| 12560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12561 | (exit $ac_status); } && { |
| 12562 | test -z "$ac_c_werror_flag" || |
| 12563 | test ! -s conftest.err |
| 12564 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12565 | ac_cv_have_decl_llseek=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12566 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12567 | echo "$as_me: failed program was:" >&5 |
| 12568 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12569 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12570 | ac_cv_have_decl_llseek=no |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12571 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12572 | |
| 12573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12574 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12575 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5 |
| 12576 | echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12577 | if test $ac_cv_have_decl_llseek = yes; then |
| 12578 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12579 | #define HAVE_LLSEEK_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12580 | _ACEOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 12581 | |
| 12582 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12583 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12584 | { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5 |
| 12585 | echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12586 | if test "${ac_cv_have_decl_lseek64+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12587 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12588 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12589 | cat >conftest.$ac_ext <<_ACEOF |
| 12590 | /* confdefs.h. */ |
| 12591 | _ACEOF |
| 12592 | cat confdefs.h >>conftest.$ac_ext |
| 12593 | cat >>conftest.$ac_ext <<_ACEOF |
| 12594 | /* end confdefs.h. */ |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12595 | #define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12596 | #define _LARGEFILE64_SOURCE |
| 12597 | #include <unistd.h> |
| 12598 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12599 | int |
| 12600 | main () |
| 12601 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12602 | #ifndef lseek64 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12603 | (void) lseek64; |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12604 | #endif |
| 12605 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12606 | ; |
| 12607 | return 0; |
| 12608 | } |
| 12609 | _ACEOF |
| 12610 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12611 | if { (ac_try="$ac_compile" |
| 12612 | case "(($ac_try" in |
| 12613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12614 | *) ac_try_echo=$ac_try;; |
| 12615 | esac |
| 12616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12617 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12618 | ac_status=$? |
| 12619 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12620 | rm -f conftest.er1 |
| 12621 | cat conftest.err >&5 |
| 12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12623 | (exit $ac_status); } && { |
| 12624 | test -z "$ac_c_werror_flag" || |
| 12625 | test ! -s conftest.err |
| 12626 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12627 | ac_cv_have_decl_lseek64=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12628 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12629 | echo "$as_me: failed program was:" >&5 |
| 12630 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12631 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12632 | ac_cv_have_decl_lseek64=no |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12633 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12634 | |
| 12635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12636 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12637 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5 |
| 12638 | echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12639 | if test $ac_cv_have_decl_lseek64 = yes; then |
| 12640 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12641 | #define HAVE_LSEEK64_PROTOTYPE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12642 | _ACEOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 12643 | |
| 12644 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 12645 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12646 | { echo "$as_me:$LINENO: checking for short" >&5 |
| 12647 | echo $ECHO_N "checking for short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12648 | if test "${ac_cv_type_short+set}" = set; then |
| 12649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12650 | else |
| 12651 | cat >conftest.$ac_ext <<_ACEOF |
| 12652 | /* confdefs.h. */ |
| 12653 | _ACEOF |
| 12654 | cat confdefs.h >>conftest.$ac_ext |
| 12655 | cat >>conftest.$ac_ext <<_ACEOF |
| 12656 | /* end confdefs.h. */ |
| 12657 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12658 | typedef short ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12659 | int |
| 12660 | main () |
| 12661 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12662 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12663 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12664 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12665 | return 0; |
| 12666 | ; |
| 12667 | return 0; |
| 12668 | } |
| 12669 | _ACEOF |
| 12670 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12671 | if { (ac_try="$ac_compile" |
| 12672 | case "(($ac_try" in |
| 12673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12674 | *) ac_try_echo=$ac_try;; |
| 12675 | esac |
| 12676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12677 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12678 | ac_status=$? |
| 12679 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12680 | rm -f conftest.er1 |
| 12681 | cat conftest.err >&5 |
| 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12683 | (exit $ac_status); } && { |
| 12684 | test -z "$ac_c_werror_flag" || |
| 12685 | test ! -s conftest.err |
| 12686 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12687 | ac_cv_type_short=yes |
| 12688 | else |
| 12689 | echo "$as_me: failed program was:" >&5 |
| 12690 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12691 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12692 | ac_cv_type_short=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12693 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12694 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12696 | fi |
| 12697 | { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 12698 | echo "${ECHO_T}$ac_cv_type_short" >&6; } |
| 12699 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12700 | # The cast to long int works around a bug in the HP C Compiler |
| 12701 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 12702 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 12703 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12704 | { echo "$as_me:$LINENO: checking size of short" >&5 |
| 12705 | echo $ECHO_N "checking size of short... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12706 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 12707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12708 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12709 | if test "$cross_compiling" = yes; then |
| 12710 | # Depending upon the size, compute the lo and hi bounds. |
| 12711 | cat >conftest.$ac_ext <<_ACEOF |
| 12712 | /* confdefs.h. */ |
| 12713 | _ACEOF |
| 12714 | cat confdefs.h >>conftest.$ac_ext |
| 12715 | cat >>conftest.$ac_ext <<_ACEOF |
| 12716 | /* end confdefs.h. */ |
| 12717 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12718 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12719 | int |
| 12720 | main () |
| 12721 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12722 | 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] | 12723 | test_array [0] = 0 |
| 12724 | |
| 12725 | ; |
| 12726 | return 0; |
| 12727 | } |
| 12728 | _ACEOF |
| 12729 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12730 | if { (ac_try="$ac_compile" |
| 12731 | case "(($ac_try" in |
| 12732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12733 | *) ac_try_echo=$ac_try;; |
| 12734 | esac |
| 12735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12736 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12737 | ac_status=$? |
| 12738 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12739 | rm -f conftest.er1 |
| 12740 | cat conftest.err >&5 |
| 12741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12742 | (exit $ac_status); } && { |
| 12743 | test -z "$ac_c_werror_flag" || |
| 12744 | test ! -s conftest.err |
| 12745 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12746 | ac_lo=0 ac_mid=0 |
| 12747 | while :; do |
| 12748 | cat >conftest.$ac_ext <<_ACEOF |
| 12749 | /* confdefs.h. */ |
| 12750 | _ACEOF |
| 12751 | cat confdefs.h >>conftest.$ac_ext |
| 12752 | cat >>conftest.$ac_ext <<_ACEOF |
| 12753 | /* end confdefs.h. */ |
| 12754 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12755 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12756 | int |
| 12757 | main () |
| 12758 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12759 | 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] | 12760 | test_array [0] = 0 |
| 12761 | |
| 12762 | ; |
| 12763 | return 0; |
| 12764 | } |
| 12765 | _ACEOF |
| 12766 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12767 | if { (ac_try="$ac_compile" |
| 12768 | case "(($ac_try" in |
| 12769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12770 | *) ac_try_echo=$ac_try;; |
| 12771 | esac |
| 12772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12773 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12774 | ac_status=$? |
| 12775 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12776 | rm -f conftest.er1 |
| 12777 | cat conftest.err >&5 |
| 12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12779 | (exit $ac_status); } && { |
| 12780 | test -z "$ac_c_werror_flag" || |
| 12781 | test ! -s conftest.err |
| 12782 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12783 | ac_hi=$ac_mid; break |
| 12784 | else |
| 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12787 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12788 | ac_lo=`expr $ac_mid + 1` |
| 12789 | if test $ac_lo -le $ac_mid; then |
| 12790 | ac_lo= ac_hi= |
| 12791 | break |
| 12792 | fi |
| 12793 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12794 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12795 | |
| 12796 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12797 | done |
| 12798 | else |
| 12799 | echo "$as_me: failed program was:" >&5 |
| 12800 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12801 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12802 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12803 | /* confdefs.h. */ |
| 12804 | _ACEOF |
| 12805 | cat confdefs.h >>conftest.$ac_ext |
| 12806 | cat >>conftest.$ac_ext <<_ACEOF |
| 12807 | /* end confdefs.h. */ |
| 12808 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12809 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12810 | int |
| 12811 | main () |
| 12812 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12813 | 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] | 12814 | test_array [0] = 0 |
| 12815 | |
| 12816 | ; |
| 12817 | return 0; |
| 12818 | } |
| 12819 | _ACEOF |
| 12820 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12821 | if { (ac_try="$ac_compile" |
| 12822 | case "(($ac_try" in |
| 12823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12824 | *) ac_try_echo=$ac_try;; |
| 12825 | esac |
| 12826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12827 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12828 | ac_status=$? |
| 12829 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12830 | rm -f conftest.er1 |
| 12831 | cat conftest.err >&5 |
| 12832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12833 | (exit $ac_status); } && { |
| 12834 | test -z "$ac_c_werror_flag" || |
| 12835 | test ! -s conftest.err |
| 12836 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12837 | ac_hi=-1 ac_mid=-1 |
| 12838 | while :; do |
| 12839 | cat >conftest.$ac_ext <<_ACEOF |
| 12840 | /* confdefs.h. */ |
| 12841 | _ACEOF |
| 12842 | cat confdefs.h >>conftest.$ac_ext |
| 12843 | cat >>conftest.$ac_ext <<_ACEOF |
| 12844 | /* end confdefs.h. */ |
| 12845 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12846 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12847 | int |
| 12848 | main () |
| 12849 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12850 | 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] | 12851 | test_array [0] = 0 |
| 12852 | |
| 12853 | ; |
| 12854 | return 0; |
| 12855 | } |
| 12856 | _ACEOF |
| 12857 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12858 | if { (ac_try="$ac_compile" |
| 12859 | case "(($ac_try" in |
| 12860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12861 | *) ac_try_echo=$ac_try;; |
| 12862 | esac |
| 12863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12864 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12865 | ac_status=$? |
| 12866 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12867 | rm -f conftest.er1 |
| 12868 | cat conftest.err >&5 |
| 12869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12870 | (exit $ac_status); } && { |
| 12871 | test -z "$ac_c_werror_flag" || |
| 12872 | test ! -s conftest.err |
| 12873 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12874 | ac_lo=$ac_mid; break |
| 12875 | else |
| 12876 | echo "$as_me: failed program was:" >&5 |
| 12877 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12878 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12879 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 12880 | if test $ac_mid -le $ac_hi; then |
| 12881 | ac_lo= ac_hi= |
| 12882 | break |
| 12883 | fi |
| 12884 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12885 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12886 | |
| 12887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12888 | done |
| 12889 | else |
| 12890 | echo "$as_me: failed program was:" >&5 |
| 12891 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12892 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12893 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12894 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12895 | |
| 12896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12897 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12898 | |
| 12899 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12900 | # Binary search between lo and hi bounds. |
| 12901 | while test "x$ac_lo" != "x$ac_hi"; do |
| 12902 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 12903 | cat >conftest.$ac_ext <<_ACEOF |
| 12904 | /* confdefs.h. */ |
| 12905 | _ACEOF |
| 12906 | cat confdefs.h >>conftest.$ac_ext |
| 12907 | cat >>conftest.$ac_ext <<_ACEOF |
| 12908 | /* end confdefs.h. */ |
| 12909 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12910 | typedef short ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12911 | int |
| 12912 | main () |
| 12913 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12914 | 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] | 12915 | test_array [0] = 0 |
| 12916 | |
| 12917 | ; |
| 12918 | return 0; |
| 12919 | } |
| 12920 | _ACEOF |
| 12921 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12922 | if { (ac_try="$ac_compile" |
| 12923 | case "(($ac_try" in |
| 12924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12925 | *) ac_try_echo=$ac_try;; |
| 12926 | esac |
| 12927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 12928 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12929 | ac_status=$? |
| 12930 | grep -v '^ *+' conftest.er1 >conftest.err |
| 12931 | rm -f conftest.er1 |
| 12932 | cat conftest.err >&5 |
| 12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12934 | (exit $ac_status); } && { |
| 12935 | test -z "$ac_c_werror_flag" || |
| 12936 | test ! -s conftest.err |
| 12937 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12938 | ac_hi=$ac_mid |
| 12939 | else |
| 12940 | echo "$as_me: failed program was:" >&5 |
| 12941 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 12942 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12943 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12944 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12945 | |
| 12946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12947 | done |
| 12948 | case $ac_lo in |
| 12949 | ?*) ac_cv_sizeof_short=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12950 | '') if test "$ac_cv_type_short" = yes; then |
| 12951 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12952 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12953 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12954 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12955 | { (exit 77); exit 77; }; } |
| 12956 | else |
| 12957 | ac_cv_sizeof_short=0 |
| 12958 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12959 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12960 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12961 | cat >conftest.$ac_ext <<_ACEOF |
| 12962 | /* confdefs.h. */ |
| 12963 | _ACEOF |
| 12964 | cat confdefs.h >>conftest.$ac_ext |
| 12965 | cat >>conftest.$ac_ext <<_ACEOF |
| 12966 | /* end confdefs.h. */ |
| 12967 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 12968 | typedef short ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12969 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 12970 | 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] | 12971 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12972 | #include <stdlib.h> |
| 12973 | int |
| 12974 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12975 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12976 | |
| 12977 | FILE *f = fopen ("conftest.val", "w"); |
| 12978 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12979 | return 1; |
| 12980 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12981 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12982 | long int i = longval (); |
| 12983 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12984 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12985 | fprintf (f, "%ld\n", i); |
| 12986 | } |
| 12987 | else |
| 12988 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12989 | unsigned long int i = ulongval (); |
| 12990 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 12991 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12992 | fprintf (f, "%lu\n", i); |
| 12993 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12994 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12995 | |
| 12996 | ; |
| 12997 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12998 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12999 | _ACEOF |
| 13000 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13001 | if { (ac_try="$ac_link" |
| 13002 | case "(($ac_try" in |
| 13003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13004 | *) ac_try_echo=$ac_try;; |
| 13005 | esac |
| 13006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13007 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13008 | ac_status=$? |
| 13009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13011 | { (case "(($ac_try" in |
| 13012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13013 | *) ac_try_echo=$ac_try;; |
| 13014 | esac |
| 13015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13016 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13017 | ac_status=$? |
| 13018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13019 | (exit $ac_status); }; }; then |
| 13020 | ac_cv_sizeof_short=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13021 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13022 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13023 | echo "$as_me: failed program was:" >&5 |
| 13024 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13025 | |
| 13026 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13027 | if test "$ac_cv_type_short" = yes; then |
| 13028 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13029 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13030 | echo "$as_me: error: cannot compute sizeof (short) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13031 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13032 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13033 | else |
| 13034 | ac_cv_sizeof_short=0 |
| 13035 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13036 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13037 | 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] | 13038 | fi |
| 13039 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13040 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13041 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 13042 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13043 | |
| 13044 | |
| 13045 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13046 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13047 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13048 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13049 | |
| 13050 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13051 | { echo "$as_me:$LINENO: checking for int" >&5 |
| 13052 | echo $ECHO_N "checking for int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13053 | if test "${ac_cv_type_int+set}" = set; then |
| 13054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13055 | else |
| 13056 | cat >conftest.$ac_ext <<_ACEOF |
| 13057 | /* confdefs.h. */ |
| 13058 | _ACEOF |
| 13059 | cat confdefs.h >>conftest.$ac_ext |
| 13060 | cat >>conftest.$ac_ext <<_ACEOF |
| 13061 | /* end confdefs.h. */ |
| 13062 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13063 | typedef int ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13064 | int |
| 13065 | main () |
| 13066 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13067 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13068 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13069 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13070 | return 0; |
| 13071 | ; |
| 13072 | return 0; |
| 13073 | } |
| 13074 | _ACEOF |
| 13075 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13076 | if { (ac_try="$ac_compile" |
| 13077 | case "(($ac_try" in |
| 13078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13079 | *) ac_try_echo=$ac_try;; |
| 13080 | esac |
| 13081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13082 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13083 | ac_status=$? |
| 13084 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13085 | rm -f conftest.er1 |
| 13086 | cat conftest.err >&5 |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13088 | (exit $ac_status); } && { |
| 13089 | test -z "$ac_c_werror_flag" || |
| 13090 | test ! -s conftest.err |
| 13091 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13092 | ac_cv_type_int=yes |
| 13093 | else |
| 13094 | echo "$as_me: failed program was:" >&5 |
| 13095 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13096 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13097 | ac_cv_type_int=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13098 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13099 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13100 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13101 | fi |
| 13102 | { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 13103 | echo "${ECHO_T}$ac_cv_type_int" >&6; } |
| 13104 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13105 | # The cast to long int works around a bug in the HP C Compiler |
| 13106 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13107 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13108 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13109 | { echo "$as_me:$LINENO: checking size of int" >&5 |
| 13110 | echo $ECHO_N "checking size of int... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13111 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 13112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13113 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13114 | if test "$cross_compiling" = yes; then |
| 13115 | # Depending upon the size, compute the lo and hi bounds. |
| 13116 | cat >conftest.$ac_ext <<_ACEOF |
| 13117 | /* confdefs.h. */ |
| 13118 | _ACEOF |
| 13119 | cat confdefs.h >>conftest.$ac_ext |
| 13120 | cat >>conftest.$ac_ext <<_ACEOF |
| 13121 | /* end confdefs.h. */ |
| 13122 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13123 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13124 | int |
| 13125 | main () |
| 13126 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13127 | 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] | 13128 | test_array [0] = 0 |
| 13129 | |
| 13130 | ; |
| 13131 | return 0; |
| 13132 | } |
| 13133 | _ACEOF |
| 13134 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13135 | if { (ac_try="$ac_compile" |
| 13136 | case "(($ac_try" in |
| 13137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13138 | *) ac_try_echo=$ac_try;; |
| 13139 | esac |
| 13140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13141 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13142 | ac_status=$? |
| 13143 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13144 | rm -f conftest.er1 |
| 13145 | cat conftest.err >&5 |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13147 | (exit $ac_status); } && { |
| 13148 | test -z "$ac_c_werror_flag" || |
| 13149 | test ! -s conftest.err |
| 13150 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13151 | ac_lo=0 ac_mid=0 |
| 13152 | while :; do |
| 13153 | cat >conftest.$ac_ext <<_ACEOF |
| 13154 | /* confdefs.h. */ |
| 13155 | _ACEOF |
| 13156 | cat confdefs.h >>conftest.$ac_ext |
| 13157 | cat >>conftest.$ac_ext <<_ACEOF |
| 13158 | /* end confdefs.h. */ |
| 13159 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13160 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13161 | int |
| 13162 | main () |
| 13163 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13164 | 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] | 13165 | test_array [0] = 0 |
| 13166 | |
| 13167 | ; |
| 13168 | return 0; |
| 13169 | } |
| 13170 | _ACEOF |
| 13171 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13172 | if { (ac_try="$ac_compile" |
| 13173 | case "(($ac_try" in |
| 13174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13175 | *) ac_try_echo=$ac_try;; |
| 13176 | esac |
| 13177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13178 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13179 | ac_status=$? |
| 13180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13181 | rm -f conftest.er1 |
| 13182 | cat conftest.err >&5 |
| 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13184 | (exit $ac_status); } && { |
| 13185 | test -z "$ac_c_werror_flag" || |
| 13186 | test ! -s conftest.err |
| 13187 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13188 | ac_hi=$ac_mid; break |
| 13189 | else |
| 13190 | echo "$as_me: failed program was:" >&5 |
| 13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13192 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13193 | ac_lo=`expr $ac_mid + 1` |
| 13194 | if test $ac_lo -le $ac_mid; then |
| 13195 | ac_lo= ac_hi= |
| 13196 | break |
| 13197 | fi |
| 13198 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13199 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13200 | |
| 13201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13202 | done |
| 13203 | else |
| 13204 | echo "$as_me: failed program was:" >&5 |
| 13205 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13207 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13208 | /* confdefs.h. */ |
| 13209 | _ACEOF |
| 13210 | cat confdefs.h >>conftest.$ac_ext |
| 13211 | cat >>conftest.$ac_ext <<_ACEOF |
| 13212 | /* end confdefs.h. */ |
| 13213 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13214 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13215 | int |
| 13216 | main () |
| 13217 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13218 | 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] | 13219 | test_array [0] = 0 |
| 13220 | |
| 13221 | ; |
| 13222 | return 0; |
| 13223 | } |
| 13224 | _ACEOF |
| 13225 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13226 | if { (ac_try="$ac_compile" |
| 13227 | case "(($ac_try" in |
| 13228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13229 | *) ac_try_echo=$ac_try;; |
| 13230 | esac |
| 13231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13232 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13233 | ac_status=$? |
| 13234 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13235 | rm -f conftest.er1 |
| 13236 | cat conftest.err >&5 |
| 13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13238 | (exit $ac_status); } && { |
| 13239 | test -z "$ac_c_werror_flag" || |
| 13240 | test ! -s conftest.err |
| 13241 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13242 | ac_hi=-1 ac_mid=-1 |
| 13243 | while :; do |
| 13244 | cat >conftest.$ac_ext <<_ACEOF |
| 13245 | /* confdefs.h. */ |
| 13246 | _ACEOF |
| 13247 | cat confdefs.h >>conftest.$ac_ext |
| 13248 | cat >>conftest.$ac_ext <<_ACEOF |
| 13249 | /* end confdefs.h. */ |
| 13250 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13251 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13252 | int |
| 13253 | main () |
| 13254 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13255 | 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] | 13256 | test_array [0] = 0 |
| 13257 | |
| 13258 | ; |
| 13259 | return 0; |
| 13260 | } |
| 13261 | _ACEOF |
| 13262 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13263 | if { (ac_try="$ac_compile" |
| 13264 | case "(($ac_try" in |
| 13265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13266 | *) ac_try_echo=$ac_try;; |
| 13267 | esac |
| 13268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13269 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13270 | ac_status=$? |
| 13271 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13272 | rm -f conftest.er1 |
| 13273 | cat conftest.err >&5 |
| 13274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13275 | (exit $ac_status); } && { |
| 13276 | test -z "$ac_c_werror_flag" || |
| 13277 | test ! -s conftest.err |
| 13278 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13279 | ac_lo=$ac_mid; break |
| 13280 | else |
| 13281 | echo "$as_me: failed program was:" >&5 |
| 13282 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13283 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13284 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13285 | if test $ac_mid -le $ac_hi; then |
| 13286 | ac_lo= ac_hi= |
| 13287 | break |
| 13288 | fi |
| 13289 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13290 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13291 | |
| 13292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13293 | done |
| 13294 | else |
| 13295 | echo "$as_me: failed program was:" >&5 |
| 13296 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13297 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13298 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13299 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13300 | |
| 13301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13302 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13303 | |
| 13304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13305 | # Binary search between lo and hi bounds. |
| 13306 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13307 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13308 | cat >conftest.$ac_ext <<_ACEOF |
| 13309 | /* confdefs.h. */ |
| 13310 | _ACEOF |
| 13311 | cat confdefs.h >>conftest.$ac_ext |
| 13312 | cat >>conftest.$ac_ext <<_ACEOF |
| 13313 | /* end confdefs.h. */ |
| 13314 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13315 | typedef int ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13316 | int |
| 13317 | main () |
| 13318 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13319 | 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] | 13320 | test_array [0] = 0 |
| 13321 | |
| 13322 | ; |
| 13323 | return 0; |
| 13324 | } |
| 13325 | _ACEOF |
| 13326 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13327 | if { (ac_try="$ac_compile" |
| 13328 | case "(($ac_try" in |
| 13329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13330 | *) ac_try_echo=$ac_try;; |
| 13331 | esac |
| 13332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13333 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13334 | ac_status=$? |
| 13335 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13336 | rm -f conftest.er1 |
| 13337 | cat conftest.err >&5 |
| 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13339 | (exit $ac_status); } && { |
| 13340 | test -z "$ac_c_werror_flag" || |
| 13341 | test ! -s conftest.err |
| 13342 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13343 | ac_hi=$ac_mid |
| 13344 | else |
| 13345 | echo "$as_me: failed program was:" >&5 |
| 13346 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13347 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13348 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13349 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13350 | |
| 13351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13352 | done |
| 13353 | case $ac_lo in |
| 13354 | ?*) ac_cv_sizeof_int=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13355 | '') if test "$ac_cv_type_int" = yes; then |
| 13356 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13357 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13358 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13359 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13360 | { (exit 77); exit 77; }; } |
| 13361 | else |
| 13362 | ac_cv_sizeof_int=0 |
| 13363 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13364 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13365 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13366 | cat >conftest.$ac_ext <<_ACEOF |
| 13367 | /* confdefs.h. */ |
| 13368 | _ACEOF |
| 13369 | cat confdefs.h >>conftest.$ac_ext |
| 13370 | cat >>conftest.$ac_ext <<_ACEOF |
| 13371 | /* end confdefs.h. */ |
| 13372 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13373 | typedef int ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13374 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13375 | 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] | 13376 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13377 | #include <stdlib.h> |
| 13378 | int |
| 13379 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13380 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13381 | |
| 13382 | FILE *f = fopen ("conftest.val", "w"); |
| 13383 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13384 | return 1; |
| 13385 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13386 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13387 | long int i = longval (); |
| 13388 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13389 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13390 | fprintf (f, "%ld\n", i); |
| 13391 | } |
| 13392 | else |
| 13393 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13394 | unsigned long int i = ulongval (); |
| 13395 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13396 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13397 | fprintf (f, "%lu\n", i); |
| 13398 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13399 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13400 | |
| 13401 | ; |
| 13402 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13403 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13404 | _ACEOF |
| 13405 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13406 | if { (ac_try="$ac_link" |
| 13407 | case "(($ac_try" in |
| 13408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13409 | *) ac_try_echo=$ac_try;; |
| 13410 | esac |
| 13411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13412 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13413 | ac_status=$? |
| 13414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13416 | { (case "(($ac_try" in |
| 13417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13418 | *) ac_try_echo=$ac_try;; |
| 13419 | esac |
| 13420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13421 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13422 | ac_status=$? |
| 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13424 | (exit $ac_status); }; }; then |
| 13425 | ac_cv_sizeof_int=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13426 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13427 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13428 | echo "$as_me: failed program was:" >&5 |
| 13429 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13430 | |
| 13431 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13432 | if test "$ac_cv_type_int" = yes; then |
| 13433 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13434 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13435 | echo "$as_me: error: cannot compute sizeof (int) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13436 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13437 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13438 | else |
| 13439 | ac_cv_sizeof_int=0 |
| 13440 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13441 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13442 | 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] | 13443 | fi |
| 13444 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13446 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 13447 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13448 | |
| 13449 | |
| 13450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13451 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13452 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13453 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13454 | |
| 13455 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13456 | { echo "$as_me:$LINENO: checking for long" >&5 |
| 13457 | echo $ECHO_N "checking for long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13458 | if test "${ac_cv_type_long+set}" = set; then |
| 13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13460 | else |
| 13461 | cat >conftest.$ac_ext <<_ACEOF |
| 13462 | /* confdefs.h. */ |
| 13463 | _ACEOF |
| 13464 | cat confdefs.h >>conftest.$ac_ext |
| 13465 | cat >>conftest.$ac_ext <<_ACEOF |
| 13466 | /* end confdefs.h. */ |
| 13467 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13468 | typedef long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13469 | int |
| 13470 | main () |
| 13471 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13472 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13473 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13474 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13475 | return 0; |
| 13476 | ; |
| 13477 | return 0; |
| 13478 | } |
| 13479 | _ACEOF |
| 13480 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13481 | if { (ac_try="$ac_compile" |
| 13482 | case "(($ac_try" in |
| 13483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13484 | *) ac_try_echo=$ac_try;; |
| 13485 | esac |
| 13486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13487 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13488 | ac_status=$? |
| 13489 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13490 | rm -f conftest.er1 |
| 13491 | cat conftest.err >&5 |
| 13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13493 | (exit $ac_status); } && { |
| 13494 | test -z "$ac_c_werror_flag" || |
| 13495 | test ! -s conftest.err |
| 13496 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13497 | ac_cv_type_long=yes |
| 13498 | else |
| 13499 | echo "$as_me: failed program was:" >&5 |
| 13500 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13501 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13502 | ac_cv_type_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13503 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13504 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13506 | fi |
| 13507 | { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 13508 | echo "${ECHO_T}$ac_cv_type_long" >&6; } |
| 13509 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13510 | # The cast to long int works around a bug in the HP C Compiler |
| 13511 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13512 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13513 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13514 | { echo "$as_me:$LINENO: checking size of long" >&5 |
| 13515 | echo $ECHO_N "checking size of long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13516 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 13517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13518 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13519 | if test "$cross_compiling" = yes; then |
| 13520 | # Depending upon the size, compute the lo and hi bounds. |
| 13521 | cat >conftest.$ac_ext <<_ACEOF |
| 13522 | /* confdefs.h. */ |
| 13523 | _ACEOF |
| 13524 | cat confdefs.h >>conftest.$ac_ext |
| 13525 | cat >>conftest.$ac_ext <<_ACEOF |
| 13526 | /* end confdefs.h. */ |
| 13527 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13528 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13529 | int |
| 13530 | main () |
| 13531 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13532 | 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] | 13533 | test_array [0] = 0 |
| 13534 | |
| 13535 | ; |
| 13536 | return 0; |
| 13537 | } |
| 13538 | _ACEOF |
| 13539 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13540 | if { (ac_try="$ac_compile" |
| 13541 | case "(($ac_try" in |
| 13542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13543 | *) ac_try_echo=$ac_try;; |
| 13544 | esac |
| 13545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13546 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13547 | ac_status=$? |
| 13548 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13549 | rm -f conftest.er1 |
| 13550 | cat conftest.err >&5 |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13552 | (exit $ac_status); } && { |
| 13553 | test -z "$ac_c_werror_flag" || |
| 13554 | test ! -s conftest.err |
| 13555 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13556 | ac_lo=0 ac_mid=0 |
| 13557 | while :; do |
| 13558 | cat >conftest.$ac_ext <<_ACEOF |
| 13559 | /* confdefs.h. */ |
| 13560 | _ACEOF |
| 13561 | cat confdefs.h >>conftest.$ac_ext |
| 13562 | cat >>conftest.$ac_ext <<_ACEOF |
| 13563 | /* end confdefs.h. */ |
| 13564 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13565 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13566 | int |
| 13567 | main () |
| 13568 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13569 | 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] | 13570 | test_array [0] = 0 |
| 13571 | |
| 13572 | ; |
| 13573 | return 0; |
| 13574 | } |
| 13575 | _ACEOF |
| 13576 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13577 | if { (ac_try="$ac_compile" |
| 13578 | case "(($ac_try" in |
| 13579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13580 | *) ac_try_echo=$ac_try;; |
| 13581 | esac |
| 13582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13583 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13584 | ac_status=$? |
| 13585 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13586 | rm -f conftest.er1 |
| 13587 | cat conftest.err >&5 |
| 13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13589 | (exit $ac_status); } && { |
| 13590 | test -z "$ac_c_werror_flag" || |
| 13591 | test ! -s conftest.err |
| 13592 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13593 | ac_hi=$ac_mid; break |
| 13594 | else |
| 13595 | echo "$as_me: failed program was:" >&5 |
| 13596 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13597 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13598 | ac_lo=`expr $ac_mid + 1` |
| 13599 | if test $ac_lo -le $ac_mid; then |
| 13600 | ac_lo= ac_hi= |
| 13601 | break |
| 13602 | fi |
| 13603 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13604 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13605 | |
| 13606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13607 | done |
| 13608 | else |
| 13609 | echo "$as_me: failed program was:" >&5 |
| 13610 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13611 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13612 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13613 | /* confdefs.h. */ |
| 13614 | _ACEOF |
| 13615 | cat confdefs.h >>conftest.$ac_ext |
| 13616 | cat >>conftest.$ac_ext <<_ACEOF |
| 13617 | /* end confdefs.h. */ |
| 13618 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13619 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13620 | int |
| 13621 | main () |
| 13622 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13623 | 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] | 13624 | test_array [0] = 0 |
| 13625 | |
| 13626 | ; |
| 13627 | return 0; |
| 13628 | } |
| 13629 | _ACEOF |
| 13630 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13631 | if { (ac_try="$ac_compile" |
| 13632 | case "(($ac_try" in |
| 13633 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13634 | *) ac_try_echo=$ac_try;; |
| 13635 | esac |
| 13636 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13637 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13638 | ac_status=$? |
| 13639 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13640 | rm -f conftest.er1 |
| 13641 | cat conftest.err >&5 |
| 13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13643 | (exit $ac_status); } && { |
| 13644 | test -z "$ac_c_werror_flag" || |
| 13645 | test ! -s conftest.err |
| 13646 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13647 | ac_hi=-1 ac_mid=-1 |
| 13648 | while :; do |
| 13649 | cat >conftest.$ac_ext <<_ACEOF |
| 13650 | /* confdefs.h. */ |
| 13651 | _ACEOF |
| 13652 | cat confdefs.h >>conftest.$ac_ext |
| 13653 | cat >>conftest.$ac_ext <<_ACEOF |
| 13654 | /* end confdefs.h. */ |
| 13655 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13656 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13657 | int |
| 13658 | main () |
| 13659 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13660 | 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] | 13661 | test_array [0] = 0 |
| 13662 | |
| 13663 | ; |
| 13664 | return 0; |
| 13665 | } |
| 13666 | _ACEOF |
| 13667 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13668 | if { (ac_try="$ac_compile" |
| 13669 | case "(($ac_try" in |
| 13670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13671 | *) ac_try_echo=$ac_try;; |
| 13672 | esac |
| 13673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13674 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13675 | ac_status=$? |
| 13676 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13677 | rm -f conftest.er1 |
| 13678 | cat conftest.err >&5 |
| 13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13680 | (exit $ac_status); } && { |
| 13681 | test -z "$ac_c_werror_flag" || |
| 13682 | test ! -s conftest.err |
| 13683 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13684 | ac_lo=$ac_mid; break |
| 13685 | else |
| 13686 | echo "$as_me: failed program was:" >&5 |
| 13687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13688 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13689 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 13690 | if test $ac_mid -le $ac_hi; then |
| 13691 | ac_lo= ac_hi= |
| 13692 | break |
| 13693 | fi |
| 13694 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13695 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13696 | |
| 13697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13698 | done |
| 13699 | else |
| 13700 | echo "$as_me: failed program was:" >&5 |
| 13701 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13702 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13703 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13704 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13705 | |
| 13706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13707 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13708 | |
| 13709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13710 | # Binary search between lo and hi bounds. |
| 13711 | while test "x$ac_lo" != "x$ac_hi"; do |
| 13712 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 13713 | cat >conftest.$ac_ext <<_ACEOF |
| 13714 | /* confdefs.h. */ |
| 13715 | _ACEOF |
| 13716 | cat confdefs.h >>conftest.$ac_ext |
| 13717 | cat >>conftest.$ac_ext <<_ACEOF |
| 13718 | /* end confdefs.h. */ |
| 13719 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13720 | typedef long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13721 | int |
| 13722 | main () |
| 13723 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13724 | 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] | 13725 | test_array [0] = 0 |
| 13726 | |
| 13727 | ; |
| 13728 | return 0; |
| 13729 | } |
| 13730 | _ACEOF |
| 13731 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13732 | if { (ac_try="$ac_compile" |
| 13733 | case "(($ac_try" in |
| 13734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13735 | *) ac_try_echo=$ac_try;; |
| 13736 | esac |
| 13737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13738 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13739 | ac_status=$? |
| 13740 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13741 | rm -f conftest.er1 |
| 13742 | cat conftest.err >&5 |
| 13743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13744 | (exit $ac_status); } && { |
| 13745 | test -z "$ac_c_werror_flag" || |
| 13746 | test ! -s conftest.err |
| 13747 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13748 | ac_hi=$ac_mid |
| 13749 | else |
| 13750 | echo "$as_me: failed program was:" >&5 |
| 13751 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13752 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13753 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13754 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13755 | |
| 13756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13757 | done |
| 13758 | case $ac_lo in |
| 13759 | ?*) ac_cv_sizeof_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13760 | '') if test "$ac_cv_type_long" = yes; then |
| 13761 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13762 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13763 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13764 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13765 | { (exit 77); exit 77; }; } |
| 13766 | else |
| 13767 | ac_cv_sizeof_long=0 |
| 13768 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13769 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13770 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13771 | cat >conftest.$ac_ext <<_ACEOF |
| 13772 | /* confdefs.h. */ |
| 13773 | _ACEOF |
| 13774 | cat confdefs.h >>conftest.$ac_ext |
| 13775 | cat >>conftest.$ac_ext <<_ACEOF |
| 13776 | /* end confdefs.h. */ |
| 13777 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13778 | typedef long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13779 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 13780 | 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] | 13781 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13782 | #include <stdlib.h> |
| 13783 | int |
| 13784 | main () |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13785 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13786 | |
| 13787 | FILE *f = fopen ("conftest.val", "w"); |
| 13788 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13789 | return 1; |
| 13790 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13791 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13792 | long int i = longval (); |
| 13793 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13794 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13795 | fprintf (f, "%ld\n", i); |
| 13796 | } |
| 13797 | else |
| 13798 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13799 | unsigned long int i = ulongval (); |
| 13800 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 13801 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13802 | fprintf (f, "%lu\n", i); |
| 13803 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13804 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13805 | |
| 13806 | ; |
| 13807 | return 0; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13808 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13809 | _ACEOF |
| 13810 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13811 | if { (ac_try="$ac_link" |
| 13812 | case "(($ac_try" in |
| 13813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13814 | *) ac_try_echo=$ac_try;; |
| 13815 | esac |
| 13816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13817 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13818 | ac_status=$? |
| 13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13821 | { (case "(($ac_try" in |
| 13822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13823 | *) ac_try_echo=$ac_try;; |
| 13824 | esac |
| 13825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13826 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13827 | ac_status=$? |
| 13828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13829 | (exit $ac_status); }; }; then |
| 13830 | ac_cv_sizeof_long=`cat conftest.val` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13831 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13832 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13833 | echo "$as_me: failed program was:" >&5 |
| 13834 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13835 | |
| 13836 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13837 | if test "$ac_cv_type_long" = yes; then |
| 13838 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13839 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13840 | echo "$as_me: error: cannot compute sizeof (long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13841 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13842 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13843 | else |
| 13844 | ac_cv_sizeof_long=0 |
| 13845 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13846 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13847 | 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] | 13848 | fi |
| 13849 | rm -f conftest.val |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13850 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13851 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 13852 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13853 | |
| 13854 | |
| 13855 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13856 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13857 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13858 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 13859 | |
| 13860 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13861 | { echo "$as_me:$LINENO: checking for long long" >&5 |
| 13862 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13863 | if test "${ac_cv_type_long_long+set}" = set; then |
| 13864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13865 | else |
| 13866 | cat >conftest.$ac_ext <<_ACEOF |
| 13867 | /* confdefs.h. */ |
| 13868 | _ACEOF |
| 13869 | cat confdefs.h >>conftest.$ac_ext |
| 13870 | cat >>conftest.$ac_ext <<_ACEOF |
| 13871 | /* end confdefs.h. */ |
| 13872 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13873 | typedef long long ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13874 | int |
| 13875 | main () |
| 13876 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13877 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13878 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13879 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13880 | return 0; |
| 13881 | ; |
| 13882 | return 0; |
| 13883 | } |
| 13884 | _ACEOF |
| 13885 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13886 | if { (ac_try="$ac_compile" |
| 13887 | case "(($ac_try" in |
| 13888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13889 | *) ac_try_echo=$ac_try;; |
| 13890 | esac |
| 13891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13892 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13893 | ac_status=$? |
| 13894 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13895 | rm -f conftest.er1 |
| 13896 | cat conftest.err >&5 |
| 13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13898 | (exit $ac_status); } && { |
| 13899 | test -z "$ac_c_werror_flag" || |
| 13900 | test ! -s conftest.err |
| 13901 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13902 | ac_cv_type_long_long=yes |
| 13903 | else |
| 13904 | echo "$as_me: failed program was:" >&5 |
| 13905 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 13906 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13907 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13908 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13909 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13910 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 13911 | fi |
| 13912 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 13913 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } |
| 13914 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13915 | # The cast to long int works around a bug in the HP C Compiler |
| 13916 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 13917 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 13918 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13919 | { echo "$as_me:$LINENO: checking size of long long" >&5 |
| 13920 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13921 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 13922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13923 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13924 | if test "$cross_compiling" = yes; then |
| 13925 | # Depending upon the size, compute the lo and hi bounds. |
| 13926 | cat >conftest.$ac_ext <<_ACEOF |
| 13927 | /* confdefs.h. */ |
| 13928 | _ACEOF |
| 13929 | cat confdefs.h >>conftest.$ac_ext |
| 13930 | cat >>conftest.$ac_ext <<_ACEOF |
| 13931 | /* end confdefs.h. */ |
| 13932 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13933 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13934 | int |
| 13935 | main () |
| 13936 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13937 | 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] | 13938 | test_array [0] = 0 |
| 13939 | |
| 13940 | ; |
| 13941 | return 0; |
| 13942 | } |
| 13943 | _ACEOF |
| 13944 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13945 | if { (ac_try="$ac_compile" |
| 13946 | case "(($ac_try" in |
| 13947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13948 | *) ac_try_echo=$ac_try;; |
| 13949 | esac |
| 13950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13951 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13952 | ac_status=$? |
| 13953 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13954 | rm -f conftest.er1 |
| 13955 | cat conftest.err >&5 |
| 13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13957 | (exit $ac_status); } && { |
| 13958 | test -z "$ac_c_werror_flag" || |
| 13959 | test ! -s conftest.err |
| 13960 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13961 | ac_lo=0 ac_mid=0 |
| 13962 | while :; do |
| 13963 | cat >conftest.$ac_ext <<_ACEOF |
| 13964 | /* confdefs.h. */ |
| 13965 | _ACEOF |
| 13966 | cat confdefs.h >>conftest.$ac_ext |
| 13967 | cat >>conftest.$ac_ext <<_ACEOF |
| 13968 | /* end confdefs.h. */ |
| 13969 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13970 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13971 | int |
| 13972 | main () |
| 13973 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13974 | 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] | 13975 | test_array [0] = 0 |
| 13976 | |
| 13977 | ; |
| 13978 | return 0; |
| 13979 | } |
| 13980 | _ACEOF |
| 13981 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 13982 | if { (ac_try="$ac_compile" |
| 13983 | case "(($ac_try" in |
| 13984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 13985 | *) ac_try_echo=$ac_try;; |
| 13986 | esac |
| 13987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 13988 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13989 | ac_status=$? |
| 13990 | grep -v '^ *+' conftest.er1 >conftest.err |
| 13991 | rm -f conftest.er1 |
| 13992 | cat conftest.err >&5 |
| 13993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 13994 | (exit $ac_status); } && { |
| 13995 | test -z "$ac_c_werror_flag" || |
| 13996 | test ! -s conftest.err |
| 13997 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 13998 | ac_hi=$ac_mid; break |
| 13999 | else |
| 14000 | echo "$as_me: failed program was:" >&5 |
| 14001 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14002 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14003 | ac_lo=`expr $ac_mid + 1` |
| 14004 | if test $ac_lo -le $ac_mid; then |
| 14005 | ac_lo= ac_hi= |
| 14006 | break |
| 14007 | fi |
| 14008 | ac_mid=`expr 2 '*' $ac_mid + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14009 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14010 | |
| 14011 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14012 | done |
| 14013 | else |
| 14014 | echo "$as_me: failed program was:" >&5 |
| 14015 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14016 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14017 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14018 | /* confdefs.h. */ |
| 14019 | _ACEOF |
| 14020 | cat confdefs.h >>conftest.$ac_ext |
| 14021 | cat >>conftest.$ac_ext <<_ACEOF |
| 14022 | /* end confdefs.h. */ |
| 14023 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14024 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14025 | int |
| 14026 | main () |
| 14027 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14028 | 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] | 14029 | test_array [0] = 0 |
| 14030 | |
| 14031 | ; |
| 14032 | return 0; |
| 14033 | } |
| 14034 | _ACEOF |
| 14035 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14036 | if { (ac_try="$ac_compile" |
| 14037 | case "(($ac_try" in |
| 14038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14039 | *) ac_try_echo=$ac_try;; |
| 14040 | esac |
| 14041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14042 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14043 | ac_status=$? |
| 14044 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14045 | rm -f conftest.er1 |
| 14046 | cat conftest.err >&5 |
| 14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14048 | (exit $ac_status); } && { |
| 14049 | test -z "$ac_c_werror_flag" || |
| 14050 | test ! -s conftest.err |
| 14051 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14052 | ac_hi=-1 ac_mid=-1 |
| 14053 | while :; do |
| 14054 | cat >conftest.$ac_ext <<_ACEOF |
| 14055 | /* confdefs.h. */ |
| 14056 | _ACEOF |
| 14057 | cat confdefs.h >>conftest.$ac_ext |
| 14058 | cat >>conftest.$ac_ext <<_ACEOF |
| 14059 | /* end confdefs.h. */ |
| 14060 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14061 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14062 | int |
| 14063 | main () |
| 14064 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14065 | 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] | 14066 | test_array [0] = 0 |
| 14067 | |
| 14068 | ; |
| 14069 | return 0; |
| 14070 | } |
| 14071 | _ACEOF |
| 14072 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14073 | if { (ac_try="$ac_compile" |
| 14074 | case "(($ac_try" in |
| 14075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14076 | *) ac_try_echo=$ac_try;; |
| 14077 | esac |
| 14078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14079 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14080 | ac_status=$? |
| 14081 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14082 | rm -f conftest.er1 |
| 14083 | cat conftest.err >&5 |
| 14084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14085 | (exit $ac_status); } && { |
| 14086 | test -z "$ac_c_werror_flag" || |
| 14087 | test ! -s conftest.err |
| 14088 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14089 | ac_lo=$ac_mid; break |
| 14090 | else |
| 14091 | echo "$as_me: failed program was:" >&5 |
| 14092 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14093 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14094 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14095 | if test $ac_mid -le $ac_hi; then |
| 14096 | ac_lo= ac_hi= |
| 14097 | break |
| 14098 | fi |
| 14099 | ac_mid=`expr 2 '*' $ac_mid` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14100 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14101 | |
| 14102 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14103 | done |
| 14104 | else |
| 14105 | echo "$as_me: failed program was:" >&5 |
| 14106 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14107 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14108 | ac_lo= ac_hi= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14109 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14110 | |
| 14111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14112 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14113 | |
| 14114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14115 | # Binary search between lo and hi bounds. |
| 14116 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14117 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14118 | cat >conftest.$ac_ext <<_ACEOF |
| 14119 | /* confdefs.h. */ |
| 14120 | _ACEOF |
| 14121 | cat confdefs.h >>conftest.$ac_ext |
| 14122 | cat >>conftest.$ac_ext <<_ACEOF |
| 14123 | /* end confdefs.h. */ |
| 14124 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14125 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14126 | int |
| 14127 | main () |
| 14128 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14129 | 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] | 14130 | test_array [0] = 0 |
| 14131 | |
| 14132 | ; |
| 14133 | return 0; |
| 14134 | } |
| 14135 | _ACEOF |
| 14136 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14137 | if { (ac_try="$ac_compile" |
| 14138 | case "(($ac_try" in |
| 14139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14140 | *) ac_try_echo=$ac_try;; |
| 14141 | esac |
| 14142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14143 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14144 | ac_status=$? |
| 14145 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14146 | rm -f conftest.er1 |
| 14147 | cat conftest.err >&5 |
| 14148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14149 | (exit $ac_status); } && { |
| 14150 | test -z "$ac_c_werror_flag" || |
| 14151 | test ! -s conftest.err |
| 14152 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14153 | ac_hi=$ac_mid |
| 14154 | else |
| 14155 | echo "$as_me: failed program was:" >&5 |
| 14156 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14157 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14158 | ac_lo=`expr '(' $ac_mid ')' + 1` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14159 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14160 | |
| 14161 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14162 | done |
| 14163 | case $ac_lo in |
| 14164 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14165 | '') if test "$ac_cv_type_long_long" = yes; then |
| 14166 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14167 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14168 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14169 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14170 | { (exit 77); exit 77; }; } |
| 14171 | else |
| 14172 | ac_cv_sizeof_long_long=0 |
| 14173 | fi ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14174 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14175 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14176 | cat >conftest.$ac_ext <<_ACEOF |
| 14177 | /* confdefs.h. */ |
| 14178 | _ACEOF |
| 14179 | cat confdefs.h >>conftest.$ac_ext |
| 14180 | cat >>conftest.$ac_ext <<_ACEOF |
| 14181 | /* end confdefs.h. */ |
| 14182 | $ac_includes_default |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14183 | typedef long long ac__type_sizeof_; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14184 | static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); } |
| 14185 | 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] | 14186 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14187 | #include <stdlib.h> |
| 14188 | int |
| 14189 | main () |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14190 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14191 | |
| 14192 | FILE *f = fopen ("conftest.val", "w"); |
| 14193 | if (! f) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14194 | return 1; |
| 14195 | if (((long int) (sizeof (ac__type_sizeof_))) < 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14196 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14197 | long int i = longval (); |
| 14198 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14199 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14200 | fprintf (f, "%ld\n", i); |
| 14201 | } |
| 14202 | else |
| 14203 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14204 | unsigned long int i = ulongval (); |
| 14205 | if (i != ((long int) (sizeof (ac__type_sizeof_)))) |
| 14206 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14207 | fprintf (f, "%lu\n", i); |
| 14208 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14209 | return ferror (f) || fclose (f) != 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14210 | |
| 14211 | ; |
| 14212 | return 0; |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14213 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14214 | _ACEOF |
| 14215 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14216 | if { (ac_try="$ac_link" |
| 14217 | case "(($ac_try" in |
| 14218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14219 | *) ac_try_echo=$ac_try;; |
| 14220 | esac |
| 14221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14222 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14223 | ac_status=$? |
| 14224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14226 | { (case "(($ac_try" in |
| 14227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14228 | *) ac_try_echo=$ac_try;; |
| 14229 | esac |
| 14230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14231 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14232 | ac_status=$? |
| 14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14234 | (exit $ac_status); }; }; then |
| 14235 | ac_cv_sizeof_long_long=`cat conftest.val` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14236 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14237 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14238 | echo "$as_me: failed program was:" >&5 |
| 14239 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14240 | |
| 14241 | ( exit $ac_status ) |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14242 | if test "$ac_cv_type_long_long" = yes; then |
| 14243 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14244 | See \`config.log' for more details." >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14245 | echo "$as_me: error: cannot compute sizeof (long long) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14246 | See \`config.log' for more details." >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14247 | { (exit 77); exit 77; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14248 | else |
| 14249 | ac_cv_sizeof_long_long=0 |
| 14250 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14251 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14252 | 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] | 14253 | fi |
| 14254 | rm -f conftest.val |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14255 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14256 | { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 14257 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14258 | |
| 14259 | |
| 14260 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14261 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14262 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14263 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14264 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14265 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14266 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 14267 | SIZEOF_INT=$ac_cv_sizeof_int |
| 14268 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 14269 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 14270 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14271 | |
| 14272 | |
| 14273 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14274 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 14275 | 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] | 14276 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 14277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14278 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14279 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 14280 | cat >conftest.$ac_ext <<_ACEOF |
| 14281 | /* confdefs.h. */ |
| 14282 | _ACEOF |
| 14283 | cat confdefs.h >>conftest.$ac_ext |
| 14284 | cat >>conftest.$ac_ext <<_ACEOF |
| 14285 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14286 | #include <sys/types.h> |
| 14287 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14288 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14289 | int |
| 14290 | main () |
| 14291 | { |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14292 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
| 14293 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14294 | bogus endian macros |
| 14295 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14296 | |
| 14297 | ; |
| 14298 | return 0; |
| 14299 | } |
| 14300 | _ACEOF |
| 14301 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14302 | if { (ac_try="$ac_compile" |
| 14303 | case "(($ac_try" in |
| 14304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14305 | *) ac_try_echo=$ac_try;; |
| 14306 | esac |
| 14307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14308 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14309 | ac_status=$? |
| 14310 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14311 | rm -f conftest.er1 |
| 14312 | cat conftest.err >&5 |
| 14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14314 | (exit $ac_status); } && { |
| 14315 | test -z "$ac_c_werror_flag" || |
| 14316 | test ! -s conftest.err |
| 14317 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14318 | # 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] | 14319 | cat >conftest.$ac_ext <<_ACEOF |
| 14320 | /* confdefs.h. */ |
| 14321 | _ACEOF |
| 14322 | cat confdefs.h >>conftest.$ac_ext |
| 14323 | cat >>conftest.$ac_ext <<_ACEOF |
| 14324 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14325 | #include <sys/types.h> |
| 14326 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14327 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14328 | int |
| 14329 | main () |
| 14330 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14331 | #if BYTE_ORDER != BIG_ENDIAN |
| 14332 | not big endian |
| 14333 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14334 | |
| 14335 | ; |
| 14336 | return 0; |
| 14337 | } |
| 14338 | _ACEOF |
| 14339 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14340 | if { (ac_try="$ac_compile" |
| 14341 | case "(($ac_try" in |
| 14342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14343 | *) ac_try_echo=$ac_try;; |
| 14344 | esac |
| 14345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14346 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14347 | ac_status=$? |
| 14348 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14349 | rm -f conftest.er1 |
| 14350 | cat conftest.err >&5 |
| 14351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14352 | (exit $ac_status); } && { |
| 14353 | test -z "$ac_c_werror_flag" || |
| 14354 | test ! -s conftest.err |
| 14355 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14356 | ac_cv_c_bigendian=yes |
| 14357 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14358 | echo "$as_me: failed program was:" >&5 |
| 14359 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14360 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14361 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14362 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14363 | |
| 14364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14365 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14366 | echo "$as_me: failed program was:" >&5 |
| 14367 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14368 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14369 | # It does not; compile a test program. |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14370 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14371 | # try to guess the endianness by grepping values into an object file |
| 14372 | ac_cv_c_bigendian=unknown |
| 14373 | cat >conftest.$ac_ext <<_ACEOF |
| 14374 | /* confdefs.h. */ |
| 14375 | _ACEOF |
| 14376 | cat confdefs.h >>conftest.$ac_ext |
| 14377 | cat >>conftest.$ac_ext <<_ACEOF |
| 14378 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14379 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14380 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14381 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14382 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14383 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14384 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 14385 | int |
| 14386 | main () |
| 14387 | { |
| 14388 | _ascii (); _ebcdic (); |
| 14389 | ; |
| 14390 | return 0; |
| 14391 | } |
| 14392 | _ACEOF |
| 14393 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14394 | if { (ac_try="$ac_compile" |
| 14395 | case "(($ac_try" in |
| 14396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14397 | *) ac_try_echo=$ac_try;; |
| 14398 | esac |
| 14399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14400 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14401 | ac_status=$? |
| 14402 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14403 | rm -f conftest.er1 |
| 14404 | cat conftest.err >&5 |
| 14405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14406 | (exit $ac_status); } && { |
| 14407 | test -z "$ac_c_werror_flag" || |
| 14408 | test ! -s conftest.err |
| 14409 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14410 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 14411 | ac_cv_c_bigendian=yes |
| 14412 | fi |
| 14413 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14414 | if test "$ac_cv_c_bigendian" = unknown; then |
| 14415 | ac_cv_c_bigendian=no |
| 14416 | else |
| 14417 | # finding both strings is unlikely to happen, but who knows? |
| 14418 | ac_cv_c_bigendian=unknown |
| 14419 | fi |
| 14420 | fi |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14421 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14422 | echo "$as_me: failed program was:" >&5 |
| 14423 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14424 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14425 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14426 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14427 | |
| 14428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14429 | else |
| 14430 | cat >conftest.$ac_ext <<_ACEOF |
| 14431 | /* confdefs.h. */ |
| 14432 | _ACEOF |
| 14433 | cat confdefs.h >>conftest.$ac_ext |
| 14434 | cat >>conftest.$ac_ext <<_ACEOF |
| 14435 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14436 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14437 | int |
| 14438 | main () |
| 14439 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14440 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14441 | /* Are we little or big endian? From Harbison&Steele. */ |
| 14442 | union |
| 14443 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14444 | long int l; |
| 14445 | char c[sizeof (long int)]; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14446 | } u; |
| 14447 | u.l = 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14448 | return u.c[sizeof (long int) - 1] == 1; |
| 14449 | |
| 14450 | ; |
| 14451 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14452 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14453 | _ACEOF |
| 14454 | rm -f conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14455 | if { (ac_try="$ac_link" |
| 14456 | case "(($ac_try" in |
| 14457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14458 | *) ac_try_echo=$ac_try;; |
| 14459 | esac |
| 14460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14461 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14462 | ac_status=$? |
| 14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14464 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14465 | { (case "(($ac_try" in |
| 14466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14467 | *) ac_try_echo=$ac_try;; |
| 14468 | esac |
| 14469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14470 | (eval "$ac_try") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14471 | ac_status=$? |
| 14472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14473 | (exit $ac_status); }; }; then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14474 | ac_cv_c_bigendian=no |
| 14475 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14476 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14477 | echo "$as_me: failed program was:" >&5 |
| 14478 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 14479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14480 | ( exit $ac_status ) |
| 14481 | ac_cv_c_bigendian=yes |
| 14482 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14483 | 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] | 14484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14485 | |
| 14486 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14487 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14488 | |
| 14489 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14490 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14491 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 14492 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14493 | case $ac_cv_c_bigendian in |
| 14494 | yes) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 14495 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14496 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14497 | #define WORDS_BIGENDIAN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14498 | _ACEOF |
| 14499 | ;; |
| 14500 | no) |
| 14501 | ;; |
| 14502 | *) |
| 14503 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 14504 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 14505 | echo "$as_me: error: unknown endianness |
| 14506 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 14507 | { (exit 1); exit 1; }; } ;; |
| 14508 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14509 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14510 | 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] | 14511 | ASM_TYPES_HEADER=./asm_types.h |
| 14512 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 14513 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 14514 | > public_config.h |
| 14515 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 14516 | uniq tmp_config.$$ >> public_config.h |
| 14517 | else |
| 14518 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 14519 | fi |
| 14520 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 14521 | uniq tmp_config.$$ >> public_config.h |
| 14522 | else |
| 14523 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 14524 | fi |
| 14525 | rm -f tmp_config.$$ |
| 14526 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 14527 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 14528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14529 | for ac_header in inttypes.h |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14530 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14531 | 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] | 14532 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
| 14533 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14535 | 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] | 14536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14538 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14539 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14540 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14541 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14542 | # Is the header compilable? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14543 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 14544 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14545 | cat >conftest.$ac_ext <<_ACEOF |
| 14546 | /* confdefs.h. */ |
| 14547 | _ACEOF |
| 14548 | cat confdefs.h >>conftest.$ac_ext |
| 14549 | cat >>conftest.$ac_ext <<_ACEOF |
| 14550 | /* end confdefs.h. */ |
| 14551 | $ac_includes_default |
| 14552 | #include <$ac_header> |
| 14553 | _ACEOF |
| 14554 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14555 | if { (ac_try="$ac_compile" |
| 14556 | case "(($ac_try" in |
| 14557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14558 | *) ac_try_echo=$ac_try;; |
| 14559 | esac |
| 14560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14561 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14562 | ac_status=$? |
| 14563 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14564 | rm -f conftest.er1 |
| 14565 | cat conftest.err >&5 |
| 14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14567 | (exit $ac_status); } && { |
| 14568 | test -z "$ac_c_werror_flag" || |
| 14569 | test ! -s conftest.err |
| 14570 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14571 | ac_header_compiler=yes |
| 14572 | else |
| 14573 | echo "$as_me: failed program was:" >&5 |
| 14574 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14575 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14576 | ac_header_compiler=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14577 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14578 | |
| 14579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14580 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14581 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14582 | |
| 14583 | # Is the header present? |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14584 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 14585 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14586 | cat >conftest.$ac_ext <<_ACEOF |
| 14587 | /* confdefs.h. */ |
| 14588 | _ACEOF |
| 14589 | cat confdefs.h >>conftest.$ac_ext |
| 14590 | cat >>conftest.$ac_ext <<_ACEOF |
| 14591 | /* end confdefs.h. */ |
| 14592 | #include <$ac_header> |
| 14593 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14594 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
| 14595 | case "(($ac_try" in |
| 14596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14597 | *) ac_try_echo=$ac_try;; |
| 14598 | esac |
| 14599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14600 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14601 | ac_status=$? |
| 14602 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14603 | rm -f conftest.er1 |
| 14604 | cat conftest.err >&5 |
| 14605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14606 | (exit $ac_status); } >/dev/null && { |
| 14607 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 14608 | test ! -s conftest.err |
| 14609 | }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14610 | ac_header_preproc=yes |
| 14611 | else |
| 14612 | echo "$as_me: failed program was:" >&5 |
| 14613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14614 | |
| 14615 | ac_header_preproc=no |
| 14616 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14617 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14618 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14619 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14620 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14621 | |
| 14622 | # So? What about this header? |
| 14623 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
| 14624 | yes:no: ) |
| 14625 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14626 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14627 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
| 14628 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
| 14629 | ac_header_preproc=yes |
| 14630 | ;; |
| 14631 | no:yes:* ) |
| 14632 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 14633 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 14634 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 14635 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 14636 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
| 14637 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
| 14638 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
| 14639 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
| 14640 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 14641 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 14642 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
| 14643 | 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] | 14644 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14645 | ;; |
| 14646 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14647 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 14648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
| 14649 | 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] | 14650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14651 | else |
| 14652 | eval "$as_ac_Header=\$ac_header_preproc" |
| 14653 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14654 | ac_res=`eval echo '${'$as_ac_Header'}'` |
| 14655 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 14656 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14657 | |
| 14658 | fi |
| 14659 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 14660 | cat >>confdefs.h <<_ACEOF |
| 14661 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 14662 | _ACEOF |
| 14663 | |
| 14664 | fi |
| 14665 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14666 | done |
| 14667 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14668 | { echo "$as_me:$LINENO: checking for intptr_t" >&5 |
| 14669 | echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14670 | if test "${ac_cv_type_intptr_t+set}" = set; then |
| 14671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14672 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14673 | cat >conftest.$ac_ext <<_ACEOF |
| 14674 | /* confdefs.h. */ |
| 14675 | _ACEOF |
| 14676 | cat confdefs.h >>conftest.$ac_ext |
| 14677 | cat >>conftest.$ac_ext <<_ACEOF |
| 14678 | /* end confdefs.h. */ |
| 14679 | $ac_includes_default |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14680 | typedef intptr_t ac__type_new_; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14681 | int |
| 14682 | main () |
| 14683 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14684 | if ((ac__type_new_ *) 0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14685 | return 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14686 | if (sizeof (ac__type_new_)) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14687 | return 0; |
| 14688 | ; |
| 14689 | return 0; |
| 14690 | } |
| 14691 | _ACEOF |
| 14692 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14693 | if { (ac_try="$ac_compile" |
| 14694 | case "(($ac_try" in |
| 14695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14696 | *) ac_try_echo=$ac_try;; |
| 14697 | esac |
| 14698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14699 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14700 | ac_status=$? |
| 14701 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14702 | rm -f conftest.er1 |
| 14703 | cat conftest.err >&5 |
| 14704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14705 | (exit $ac_status); } && { |
| 14706 | test -z "$ac_c_werror_flag" || |
| 14707 | test ! -s conftest.err |
| 14708 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14709 | ac_cv_type_intptr_t=yes |
| 14710 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14711 | echo "$as_me: failed program was:" >&5 |
| 14712 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14713 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14714 | ac_cv_type_intptr_t=no |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14715 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14716 | |
| 14717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 14718 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14719 | { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5 |
| 14720 | echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14721 | if test $ac_cv_type_intptr_t = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14722 | |
| 14723 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14724 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14725 | _ACEOF |
| 14726 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 14727 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14728 | fi |
| 14729 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14730 | { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5 |
| 14731 | 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] | 14732 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then |
| 14733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14734 | else |
| 14735 | cat >conftest.$ac_ext <<_ACEOF |
| 14736 | /* confdefs.h. */ |
| 14737 | _ACEOF |
| 14738 | cat confdefs.h >>conftest.$ac_ext |
| 14739 | cat >>conftest.$ac_ext <<_ACEOF |
| 14740 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14741 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14742 | int |
| 14743 | main () |
| 14744 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14745 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14746 | ; |
| 14747 | return 0; |
| 14748 | } |
| 14749 | _ACEOF |
| 14750 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14751 | if { (ac_try="$ac_compile" |
| 14752 | case "(($ac_try" in |
| 14753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14754 | *) ac_try_echo=$ac_try;; |
| 14755 | esac |
| 14756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14757 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14758 | ac_status=$? |
| 14759 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14760 | rm -f conftest.er1 |
| 14761 | cat conftest.err >&5 |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14763 | (exit $ac_status); } && { |
| 14764 | test -z "$ac_c_werror_flag" || |
| 14765 | test ! -s conftest.err |
| 14766 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14767 | e2fsprogs_cv_struct_st_flags=yes |
| 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 |
| 14771 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14772 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14773 | fi |
| 14774 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14776 | fi |
| 14777 | |
| 14778 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5 |
| 14779 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14780 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14781 | { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5 |
| 14782 | 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] | 14783 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then |
| 14784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14785 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14786 | cat >conftest.$ac_ext <<_ACEOF |
| 14787 | /* confdefs.h. */ |
| 14788 | _ACEOF |
| 14789 | cat confdefs.h >>conftest.$ac_ext |
| 14790 | cat >>conftest.$ac_ext <<_ACEOF |
| 14791 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14792 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14793 | int |
| 14794 | main () |
| 14795 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14796 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14797 | ; |
| 14798 | return 0; |
| 14799 | } |
| 14800 | _ACEOF |
| 14801 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14802 | if { (ac_try="$ac_compile" |
| 14803 | case "(($ac_try" in |
| 14804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14805 | *) ac_try_echo=$ac_try;; |
| 14806 | esac |
| 14807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14808 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14809 | ac_status=$? |
| 14810 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14811 | rm -f conftest.er1 |
| 14812 | cat conftest.err >&5 |
| 14813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14814 | (exit $ac_status); } && { |
| 14815 | test -z "$ac_c_werror_flag" || |
| 14816 | test ! -s conftest.err |
| 14817 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14818 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 14819 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14820 | echo "$as_me: failed program was:" >&5 |
| 14821 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14822 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14823 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14824 | fi |
| 14825 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 14827 | fi |
| 14828 | |
| 14829 | { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
| 14830 | echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14831 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14832 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14833 | #define HAVE_STAT_FLAGS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14834 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14835 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 14836 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14837 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14838 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
| 14839 | 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] | 14840 | 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] | 14841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14842 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14843 | cat >conftest.$ac_ext <<_ACEOF |
| 14844 | /* confdefs.h. */ |
| 14845 | _ACEOF |
| 14846 | cat confdefs.h >>conftest.$ac_ext |
| 14847 | cat >>conftest.$ac_ext <<_ACEOF |
| 14848 | /* end confdefs.h. */ |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14849 | #include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14850 | #include <sys/socket.h> |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14851 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14852 | int |
| 14853 | main () |
| 14854 | { |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14855 | static struct sockaddr ac_aggr; |
| 14856 | if (ac_aggr.sa_len) |
| 14857 | return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14858 | ; |
| 14859 | return 0; |
| 14860 | } |
| 14861 | _ACEOF |
| 14862 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14863 | if { (ac_try="$ac_compile" |
| 14864 | case "(($ac_try" in |
| 14865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14866 | *) ac_try_echo=$ac_try;; |
| 14867 | esac |
| 14868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14869 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14870 | ac_status=$? |
| 14871 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14872 | rm -f conftest.er1 |
| 14873 | cat conftest.err >&5 |
| 14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14875 | (exit $ac_status); } && { |
| 14876 | test -z "$ac_c_werror_flag" || |
| 14877 | test ! -s conftest.err |
| 14878 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14879 | ac_cv_member_struct_sockaddr_sa_len=yes |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14880 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14881 | echo "$as_me: failed program was:" >&5 |
| 14882 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14883 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14884 | cat >conftest.$ac_ext <<_ACEOF |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14885 | /* confdefs.h. */ |
| 14886 | _ACEOF |
| 14887 | cat confdefs.h >>conftest.$ac_ext |
| 14888 | cat >>conftest.$ac_ext <<_ACEOF |
| 14889 | /* end confdefs.h. */ |
| 14890 | #include <sys/types.h> |
| 14891 | #include <sys/socket.h> |
| 14892 | |
| 14893 | int |
| 14894 | main () |
| 14895 | { |
| 14896 | static struct sockaddr ac_aggr; |
| 14897 | if (sizeof ac_aggr.sa_len) |
| 14898 | return 0; |
| 14899 | ; |
| 14900 | return 0; |
| 14901 | } |
| 14902 | _ACEOF |
| 14903 | rm -f conftest.$ac_objext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14904 | if { (ac_try="$ac_compile" |
| 14905 | case "(($ac_try" in |
| 14906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 14907 | *) ac_try_echo=$ac_try;; |
| 14908 | esac |
| 14909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 14910 | (eval "$ac_compile") 2>conftest.er1 |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14911 | ac_status=$? |
| 14912 | grep -v '^ *+' conftest.er1 >conftest.err |
| 14913 | rm -f conftest.er1 |
| 14914 | cat conftest.err >&5 |
| 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 14916 | (exit $ac_status); } && { |
| 14917 | test -z "$ac_c_werror_flag" || |
| 14918 | test ! -s conftest.err |
| 14919 | } && test -s conftest.$ac_objext; then |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14920 | ac_cv_member_struct_sockaddr_sa_len=yes |
| 14921 | else |
| 14922 | echo "$as_me: failed program was:" >&5 |
| 14923 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 14924 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14925 | ac_cv_member_struct_sockaddr_sa_len=no |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14926 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14927 | |
| 14928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14929 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14930 | |
| 14931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14932 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 14933 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
| 14934 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14935 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14936 | |
| 14937 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14938 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14939 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 14940 | |
| 14941 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14942 | |
| 14943 | |
| 14944 | |
| 14945 | |
| 14946 | |
| 14947 | |
| 14948 | |
| 14949 | |
| 14950 | |
| 14951 | |
| 14952 | |
| 14953 | |
| 14954 | |
| 14955 | |
| 14956 | |
| 14957 | |
| 14958 | |
| 14959 | |
| 14960 | |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 14961 | |
Theodore Ts'o | 762c7c6 | 2005-04-06 14:44:16 -0400 | [diff] [blame] | 14962 | |
| 14963 | |
Andreas Dilger | 9b7d811 | 2005-07-09 22:06:59 -0500 | [diff] [blame] | 14964 | |
Theodore Ts'o | ae2868a | 2006-10-22 00:18:49 -0400 | [diff] [blame] | 14965 | |
Theodore Ts'o | 106ad96 | 2007-04-04 21:26:37 -0400 | [diff] [blame] | 14966 | |
| 14967 | |
| 14968 | |
Theodore Ts'o | 740837d | 2007-12-16 17:21:38 -0500 | [diff] [blame] | 14969 | |
| 14970 | |
Theodore Ts'o | 261cd39 | 2008-01-21 13:45:00 -0500 | [diff] [blame] | 14971 | |
Theodore Ts'o | c13ab4f | 2008-07-13 16:17:57 -0400 | [diff] [blame] | 14972 | |
| 14973 | |
Theodore Ts'o | 1207e36 | 2009-04-15 13:05:09 -0400 | [diff] [blame] | 14974 | |
| 14975 | |
| 14976 | 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 getdtablesize getrlimit |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14977 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14978 | 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] | 14979 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14980 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
| 14981 | 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] | 14982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14983 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14984 | cat >conftest.$ac_ext <<_ACEOF |
| 14985 | /* confdefs.h. */ |
| 14986 | _ACEOF |
| 14987 | cat confdefs.h >>conftest.$ac_ext |
| 14988 | cat >>conftest.$ac_ext <<_ACEOF |
| 14989 | /* end confdefs.h. */ |
| 14990 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
| 14991 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 14992 | #define $ac_func innocuous_$ac_func |
| 14993 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 14994 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 14995 | which can conflict with char $ac_func (); below. |
| 14996 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 14997 | <limits.h> exists even on freestanding compilers. */ |
| 14998 | |
| 14999 | #ifdef __STDC__ |
| 15000 | # include <limits.h> |
| 15001 | #else |
| 15002 | # include <assert.h> |
| 15003 | #endif |
| 15004 | |
| 15005 | #undef $ac_func |
| 15006 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15007 | /* Override any GCC internal prototype to avoid an error. |
| 15008 | Use char because int might match the return type of a GCC |
| 15009 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15010 | #ifdef __cplusplus |
| 15011 | extern "C" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15012 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15013 | char $ac_func (); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15014 | /* The GNU C library defines this for functions which it implements |
| 15015 | to always fail with ENOSYS. Some functions are actually named |
| 15016 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15017 | #if defined __stub_$ac_func || defined __stub___$ac_func |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15018 | choke me |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15019 | #endif |
| 15020 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15021 | int |
| 15022 | main () |
| 15023 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15024 | return $ac_func (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15025 | ; |
| 15026 | return 0; |
| 15027 | } |
| 15028 | _ACEOF |
| 15029 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15030 | if { (ac_try="$ac_link" |
| 15031 | case "(($ac_try" in |
| 15032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15033 | *) ac_try_echo=$ac_try;; |
| 15034 | esac |
| 15035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15036 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15037 | ac_status=$? |
| 15038 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15039 | rm -f conftest.er1 |
| 15040 | cat conftest.err >&5 |
| 15041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15042 | (exit $ac_status); } && { |
| 15043 | test -z "$ac_c_werror_flag" || |
| 15044 | test ! -s conftest.err |
| 15045 | } && test -s conftest$ac_exeext && |
| 15046 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15047 | eval "$as_ac_var=yes" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15048 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15049 | echo "$as_me: failed program was:" >&5 |
| 15050 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15051 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15052 | eval "$as_ac_var=no" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15053 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15054 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15055 | 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] | 15056 | conftest$ac_exeext conftest.$ac_ext |
| 15057 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15058 | ac_res=`eval echo '${'$as_ac_var'}'` |
| 15059 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
| 15060 | echo "${ECHO_T}$ac_res" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15061 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15062 | cat >>confdefs.h <<_ACEOF |
| 15063 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15064 | _ACEOF |
| 15065 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15066 | fi |
| 15067 | done |
| 15068 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15069 | SOCKET_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15070 | { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 15071 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15072 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 15073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15074 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15075 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15076 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15077 | cat >conftest.$ac_ext <<_ACEOF |
| 15078 | /* confdefs.h. */ |
| 15079 | _ACEOF |
| 15080 | cat confdefs.h >>conftest.$ac_ext |
| 15081 | cat >>conftest.$ac_ext <<_ACEOF |
| 15082 | /* end confdefs.h. */ |
| 15083 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15084 | /* Override any GCC internal prototype to avoid an error. |
| 15085 | Use char because int might match the return type of a GCC |
| 15086 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15087 | #ifdef __cplusplus |
| 15088 | extern "C" |
| 15089 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15090 | char socket (); |
| 15091 | int |
| 15092 | main () |
| 15093 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15094 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15095 | ; |
| 15096 | return 0; |
| 15097 | } |
| 15098 | _ACEOF |
| 15099 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15100 | if { (ac_try="$ac_link" |
| 15101 | case "(($ac_try" in |
| 15102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15103 | *) ac_try_echo=$ac_try;; |
| 15104 | esac |
| 15105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15106 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15107 | ac_status=$? |
| 15108 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15109 | rm -f conftest.er1 |
| 15110 | cat conftest.err >&5 |
| 15111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15112 | (exit $ac_status); } && { |
| 15113 | test -z "$ac_c_werror_flag" || |
| 15114 | test ! -s conftest.err |
| 15115 | } && test -s conftest$ac_exeext && |
| 15116 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15117 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15118 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15119 | echo "$as_me: failed program was:" >&5 |
| 15120 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15121 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15122 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15123 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15124 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15125 | 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] | 15126 | conftest$ac_exeext conftest.$ac_ext |
| 15127 | LIBS=$ac_check_lib_save_LIBS |
| 15128 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15129 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 15130 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15131 | if test $ac_cv_lib_socket_socket = yes; then |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15132 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15133 | fi |
| 15134 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15135 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15136 | DLOPEN_LIB='' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15137 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 15138 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15139 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 15140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15141 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15142 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15143 | LIBS="-ldl $LIBS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15144 | cat >conftest.$ac_ext <<_ACEOF |
| 15145 | /* confdefs.h. */ |
| 15146 | _ACEOF |
| 15147 | cat confdefs.h >>conftest.$ac_ext |
| 15148 | cat >>conftest.$ac_ext <<_ACEOF |
| 15149 | /* end confdefs.h. */ |
| 15150 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15151 | /* Override any GCC internal prototype to avoid an error. |
| 15152 | Use char because int might match the return type of a GCC |
| 15153 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15154 | #ifdef __cplusplus |
| 15155 | extern "C" |
| 15156 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15157 | char dlopen (); |
| 15158 | int |
| 15159 | main () |
| 15160 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15161 | return dlopen (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15162 | ; |
| 15163 | return 0; |
| 15164 | } |
| 15165 | _ACEOF |
| 15166 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15167 | if { (ac_try="$ac_link" |
| 15168 | case "(($ac_try" in |
| 15169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15170 | *) ac_try_echo=$ac_try;; |
| 15171 | esac |
| 15172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15173 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15174 | ac_status=$? |
| 15175 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15176 | rm -f conftest.er1 |
| 15177 | cat conftest.err >&5 |
| 15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15179 | (exit $ac_status); } && { |
| 15180 | test -z "$ac_c_werror_flag" || |
| 15181 | test ! -s conftest.err |
| 15182 | } && test -s conftest$ac_exeext && |
| 15183 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15184 | ac_cv_lib_dl_dlopen=yes |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15185 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15186 | echo "$as_me: failed program was:" >&5 |
| 15187 | sed 's/^/| /' conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15188 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15189 | ac_cv_lib_dl_dlopen=no |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15190 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15191 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15192 | 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] | 15193 | conftest$ac_exeext conftest.$ac_ext |
| 15194 | LIBS=$ac_check_lib_save_LIBS |
| 15195 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15196 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 15197 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15198 | if test $ac_cv_lib_dl_dlopen = yes; then |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15199 | DLOPEN_LIB=-ldl |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15200 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15201 | #define HAVE_DLOPEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15202 | _ACEOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15203 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 15204 | fi |
| 15205 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15206 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15207 | { echo "$as_me:$LINENO: checking for optreset" >&5 |
| 15208 | echo $ECHO_N "checking for optreset... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15209 | if test "${ac_cv_have_optreset+set}" = set; then |
| 15210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15211 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15212 | cat >conftest.$ac_ext <<_ACEOF |
| 15213 | /* confdefs.h. */ |
| 15214 | _ACEOF |
| 15215 | cat confdefs.h >>conftest.$ac_ext |
| 15216 | cat >>conftest.$ac_ext <<_ACEOF |
| 15217 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15218 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15219 | |
| 15220 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15222 | $EGREP "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15223 | ac_cv_have_optreset=yes |
| 15224 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15225 | ac_cv_have_optreset=no |
| 15226 | fi |
| 15227 | rm -f conftest* |
| 15228 | |
| 15229 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15230 | { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5 |
| 15231 | echo "${ECHO_T}$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15232 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15233 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15234 | #define HAVE_OPTRESET 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15235 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15236 | |
| 15237 | fi |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 15238 | SEM_INIT_LIB='' |
| 15239 | { echo "$as_me:$LINENO: checking for sem_init" >&5 |
| 15240 | echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; } |
| 15241 | if test "${ac_cv_func_sem_init+set}" = set; then |
| 15242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15243 | else |
| 15244 | cat >conftest.$ac_ext <<_ACEOF |
| 15245 | /* confdefs.h. */ |
| 15246 | _ACEOF |
| 15247 | cat confdefs.h >>conftest.$ac_ext |
| 15248 | cat >>conftest.$ac_ext <<_ACEOF |
| 15249 | /* end confdefs.h. */ |
| 15250 | /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init. |
| 15251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 15252 | #define sem_init innocuous_sem_init |
| 15253 | |
| 15254 | /* System header to define __stub macros and hopefully few prototypes, |
| 15255 | which can conflict with char sem_init (); below. |
| 15256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 15257 | <limits.h> exists even on freestanding compilers. */ |
| 15258 | |
| 15259 | #ifdef __STDC__ |
| 15260 | # include <limits.h> |
| 15261 | #else |
| 15262 | # include <assert.h> |
| 15263 | #endif |
| 15264 | |
| 15265 | #undef sem_init |
| 15266 | |
| 15267 | /* Override any GCC internal prototype to avoid an error. |
| 15268 | Use char because int might match the return type of a GCC |
| 15269 | builtin and then its argument prototype would still apply. */ |
| 15270 | #ifdef __cplusplus |
| 15271 | extern "C" |
| 15272 | #endif |
| 15273 | char sem_init (); |
| 15274 | /* The GNU C library defines this for functions which it implements |
| 15275 | to always fail with ENOSYS. Some functions are actually named |
| 15276 | something starting with __ and the normal name is an alias. */ |
| 15277 | #if defined __stub_sem_init || defined __stub___sem_init |
| 15278 | choke me |
| 15279 | #endif |
| 15280 | |
| 15281 | int |
| 15282 | main () |
| 15283 | { |
| 15284 | return sem_init (); |
| 15285 | ; |
| 15286 | return 0; |
| 15287 | } |
| 15288 | _ACEOF |
| 15289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15290 | if { (ac_try="$ac_link" |
| 15291 | case "(($ac_try" in |
| 15292 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15293 | *) ac_try_echo=$ac_try;; |
| 15294 | esac |
| 15295 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15296 | (eval "$ac_link") 2>conftest.er1 |
| 15297 | ac_status=$? |
| 15298 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15299 | rm -f conftest.er1 |
| 15300 | cat conftest.err >&5 |
| 15301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15302 | (exit $ac_status); } && { |
| 15303 | test -z "$ac_c_werror_flag" || |
| 15304 | test ! -s conftest.err |
| 15305 | } && test -s conftest$ac_exeext && |
| 15306 | $as_test_x conftest$ac_exeext; then |
| 15307 | ac_cv_func_sem_init=yes |
| 15308 | else |
| 15309 | echo "$as_me: failed program was:" >&5 |
| 15310 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15311 | |
| 15312 | ac_cv_func_sem_init=no |
| 15313 | fi |
| 15314 | |
| 15315 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15316 | conftest$ac_exeext conftest.$ac_ext |
| 15317 | fi |
| 15318 | { echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5 |
| 15319 | echo "${ECHO_T}$ac_cv_func_sem_init" >&6; } |
| 15320 | if test $ac_cv_func_sem_init = yes; then |
| 15321 | : |
| 15322 | else |
| 15323 | { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5 |
| 15324 | echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; } |
| 15325 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then |
| 15326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15327 | else |
| 15328 | ac_check_lib_save_LIBS=$LIBS |
| 15329 | LIBS="-lpthread $LIBS" |
| 15330 | cat >conftest.$ac_ext <<_ACEOF |
| 15331 | /* confdefs.h. */ |
| 15332 | _ACEOF |
| 15333 | cat confdefs.h >>conftest.$ac_ext |
| 15334 | cat >>conftest.$ac_ext <<_ACEOF |
| 15335 | /* end confdefs.h. */ |
| 15336 | |
| 15337 | /* Override any GCC internal prototype to avoid an error. |
| 15338 | Use char because int might match the return type of a GCC |
| 15339 | builtin and then its argument prototype would still apply. */ |
| 15340 | #ifdef __cplusplus |
| 15341 | extern "C" |
| 15342 | #endif |
| 15343 | char sem_init (); |
| 15344 | int |
| 15345 | main () |
| 15346 | { |
| 15347 | return sem_init (); |
| 15348 | ; |
| 15349 | return 0; |
| 15350 | } |
| 15351 | _ACEOF |
| 15352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15353 | if { (ac_try="$ac_link" |
| 15354 | case "(($ac_try" in |
| 15355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15356 | *) ac_try_echo=$ac_try;; |
| 15357 | esac |
| 15358 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15359 | (eval "$ac_link") 2>conftest.er1 |
| 15360 | ac_status=$? |
| 15361 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15362 | rm -f conftest.er1 |
| 15363 | cat conftest.err >&5 |
| 15364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15365 | (exit $ac_status); } && { |
| 15366 | test -z "$ac_c_werror_flag" || |
| 15367 | test ! -s conftest.err |
| 15368 | } && test -s conftest$ac_exeext && |
| 15369 | $as_test_x conftest$ac_exeext; then |
| 15370 | ac_cv_lib_pthread_sem_init=yes |
| 15371 | else |
| 15372 | echo "$as_me: failed program was:" >&5 |
| 15373 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15374 | |
| 15375 | ac_cv_lib_pthread_sem_init=no |
| 15376 | fi |
| 15377 | |
| 15378 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15379 | conftest$ac_exeext conftest.$ac_ext |
| 15380 | LIBS=$ac_check_lib_save_LIBS |
| 15381 | fi |
| 15382 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5 |
| 15383 | echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; } |
| 15384 | if test $ac_cv_lib_pthread_sem_init = yes; then |
| 15385 | cat >>confdefs.h <<\_ACEOF |
| 15386 | #define HAVE_SEM_INIT 1 |
| 15387 | _ACEOF |
| 15388 | |
| 15389 | SEM_INIT_LIB=-lpthread |
| 15390 | else |
| 15391 | { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 15392 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; } |
| 15393 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 15394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15395 | else |
| 15396 | ac_check_lib_save_LIBS=$LIBS |
| 15397 | LIBS="-lrt $LIBS" |
| 15398 | cat >conftest.$ac_ext <<_ACEOF |
| 15399 | /* confdefs.h. */ |
| 15400 | _ACEOF |
| 15401 | cat confdefs.h >>conftest.$ac_ext |
| 15402 | cat >>conftest.$ac_ext <<_ACEOF |
| 15403 | /* end confdefs.h. */ |
| 15404 | |
| 15405 | /* Override any GCC internal prototype to avoid an error. |
| 15406 | Use char because int might match the return type of a GCC |
| 15407 | builtin and then its argument prototype would still apply. */ |
| 15408 | #ifdef __cplusplus |
| 15409 | extern "C" |
| 15410 | #endif |
| 15411 | char sem_init (); |
| 15412 | int |
| 15413 | main () |
| 15414 | { |
| 15415 | return sem_init (); |
| 15416 | ; |
| 15417 | return 0; |
| 15418 | } |
| 15419 | _ACEOF |
| 15420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15421 | if { (ac_try="$ac_link" |
| 15422 | case "(($ac_try" in |
| 15423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15424 | *) ac_try_echo=$ac_try;; |
| 15425 | esac |
| 15426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15427 | (eval "$ac_link") 2>conftest.er1 |
| 15428 | ac_status=$? |
| 15429 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15430 | rm -f conftest.er1 |
| 15431 | cat conftest.err >&5 |
| 15432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15433 | (exit $ac_status); } && { |
| 15434 | test -z "$ac_c_werror_flag" || |
| 15435 | test ! -s conftest.err |
| 15436 | } && test -s conftest$ac_exeext && |
| 15437 | $as_test_x conftest$ac_exeext; then |
| 15438 | ac_cv_lib_rt_sem_init=yes |
| 15439 | else |
| 15440 | echo "$as_me: failed program was:" >&5 |
| 15441 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15442 | |
| 15443 | ac_cv_lib_rt_sem_init=no |
| 15444 | fi |
| 15445 | |
| 15446 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15447 | conftest$ac_exeext conftest.$ac_ext |
| 15448 | LIBS=$ac_check_lib_save_LIBS |
| 15449 | fi |
| 15450 | { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 15451 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; } |
| 15452 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 15453 | cat >>confdefs.h <<\_ACEOF |
| 15454 | #define HAVE_SEM_INIT 1 |
| 15455 | _ACEOF |
| 15456 | |
| 15457 | SEM_INIT_LIB=-lrt |
| 15458 | else |
| 15459 | { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5 |
| 15460 | echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; } |
| 15461 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then |
| 15462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15463 | else |
| 15464 | ac_check_lib_save_LIBS=$LIBS |
| 15465 | LIBS="-lposix4 $LIBS" |
| 15466 | cat >conftest.$ac_ext <<_ACEOF |
| 15467 | /* confdefs.h. */ |
| 15468 | _ACEOF |
| 15469 | cat confdefs.h >>conftest.$ac_ext |
| 15470 | cat >>conftest.$ac_ext <<_ACEOF |
| 15471 | /* end confdefs.h. */ |
| 15472 | |
| 15473 | /* Override any GCC internal prototype to avoid an error. |
| 15474 | Use char because int might match the return type of a GCC |
| 15475 | builtin and then its argument prototype would still apply. */ |
| 15476 | #ifdef __cplusplus |
| 15477 | extern "C" |
| 15478 | #endif |
| 15479 | char sem_init (); |
| 15480 | int |
| 15481 | main () |
| 15482 | { |
| 15483 | return sem_init (); |
| 15484 | ; |
| 15485 | return 0; |
| 15486 | } |
| 15487 | _ACEOF |
| 15488 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15489 | if { (ac_try="$ac_link" |
| 15490 | case "(($ac_try" in |
| 15491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15492 | *) ac_try_echo=$ac_try;; |
| 15493 | esac |
| 15494 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15495 | (eval "$ac_link") 2>conftest.er1 |
| 15496 | ac_status=$? |
| 15497 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15498 | rm -f conftest.er1 |
| 15499 | cat conftest.err >&5 |
| 15500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15501 | (exit $ac_status); } && { |
| 15502 | test -z "$ac_c_werror_flag" || |
| 15503 | test ! -s conftest.err |
| 15504 | } && test -s conftest$ac_exeext && |
| 15505 | $as_test_x conftest$ac_exeext; then |
| 15506 | ac_cv_lib_posix4_sem_init=yes |
| 15507 | else |
| 15508 | echo "$as_me: failed program was:" >&5 |
| 15509 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15510 | |
| 15511 | ac_cv_lib_posix4_sem_init=no |
| 15512 | fi |
| 15513 | |
| 15514 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
| 15515 | conftest$ac_exeext conftest.$ac_ext |
| 15516 | LIBS=$ac_check_lib_save_LIBS |
| 15517 | fi |
| 15518 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5 |
| 15519 | echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; } |
| 15520 | if test $ac_cv_lib_posix4_sem_init = yes; then |
| 15521 | cat >>confdefs.h <<\_ACEOF |
| 15522 | #define HAVE_SEM_INIT 1 |
| 15523 | _ACEOF |
| 15524 | |
| 15525 | SEM_INIT_LIB=-lposix4 |
| 15526 | fi |
| 15527 | |
| 15528 | fi |
| 15529 | |
| 15530 | fi |
| 15531 | |
| 15532 | fi |
| 15533 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15534 | { echo "$as_me:$LINENO: checking for unified diff option" >&5 |
| 15535 | echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 15536 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15537 | UNI_DIFF_OPTS=-u |
| 15538 | else |
| 15539 | UNI_DIFF_OPTS=-c |
| 15540 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15541 | { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5 |
| 15542 | echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 15543 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15544 | case "$host_os" in |
| 15545 | linux*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15546 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15547 | #define HAVE_EXT2_IOCTLS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15548 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15549 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 15550 | ;; |
| 15551 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15552 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15553 | CYGWIN_CMT="#" |
| 15554 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15555 | case "$host_os" in |
| 15556 | linux*) |
| 15557 | LINUX_CMT= |
| 15558 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15559 | cygwin) |
| 15560 | CYGWIN_CMT= |
| 15561 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 15562 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 15563 | esac |
| 15564 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15565 | |
| 15566 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15567 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15568 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15569 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 15570 | root_prefix=""; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15571 | { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5 |
| 15572 | 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] | 15573 | fi |
| 15574 | ;; |
| 15575 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15576 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15577 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 15578 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15579 | prefix="/usr"; |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15580 | { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5 |
| 15581 | 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] | 15582 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15583 | { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5 |
| 15584 | echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 15585 | mandir=/usr/share/man |
| 15586 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15587 | fi |
| 15588 | ;; |
| 15589 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15590 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 15591 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15592 | root_prefix="$ac_default_prefix" |
| 15593 | else |
| 15594 | root_prefix="$prefix" |
| 15595 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 15596 | root_bindir=$bindir |
| 15597 | root_sbindir=$sbindir |
| 15598 | root_libdir=$libdir |
| 15599 | root_sysconfdir=$sysconfdir |
| 15600 | else |
| 15601 | root_bindir='${root_prefix}/bin' |
| 15602 | root_sbindir='${root_prefix}/sbin' |
| 15603 | root_libdir='${root_prefix}/lib' |
| 15604 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15605 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15606 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 15607 | root_bindir=$bindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15608 | { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5 |
| 15609 | echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15610 | fi |
| 15611 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 15612 | root_sbindir=$sbindir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15613 | { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5 |
| 15614 | echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15615 | fi |
| 15616 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 15617 | root_libdir=$libdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15618 | { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5 |
| 15619 | echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15620 | fi |
| 15621 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 15622 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15623 | { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
| 15624 | echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 15625 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 15626 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15627 | |
| 15628 | |
| 15629 | |
| 15630 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15631 | { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5 |
| 15632 | echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15633 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then |
| 15634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15635 | else |
| 15636 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15637 | cat >conftest.$ac_ext <<_ACEOF |
| 15638 | /* confdefs.h. */ |
| 15639 | _ACEOF |
| 15640 | cat confdefs.h >>conftest.$ac_ext |
| 15641 | cat >>conftest.$ac_ext <<_ACEOF |
| 15642 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15643 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15644 | int |
| 15645 | main () |
| 15646 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15647 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15648 | ; |
| 15649 | return 0; |
| 15650 | } |
| 15651 | _ACEOF |
| 15652 | rm -f conftest.$ac_objext conftest$ac_exeext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15653 | if { (ac_try="$ac_link" |
| 15654 | case "(($ac_try" in |
| 15655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15656 | *) ac_try_echo=$ac_try;; |
| 15657 | esac |
| 15658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
| 15659 | (eval "$ac_link") 2>conftest.er1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15660 | ac_status=$? |
| 15661 | grep -v '^ *+' conftest.er1 >conftest.err |
| 15662 | rm -f conftest.er1 |
| 15663 | cat conftest.err >&5 |
| 15664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15665 | (exit $ac_status); } && { |
| 15666 | test -z "$ac_c_werror_flag" || |
| 15667 | test ! -s conftest.err |
| 15668 | } && test -s conftest$ac_exeext && |
| 15669 | $as_test_x conftest$ac_exeext; then |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15670 | ac_cv_e2fsprogs_use_static=yes |
| 15671 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15672 | echo "$as_me: failed program was:" >&5 |
| 15673 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 15674 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15675 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15676 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15677 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15678 | 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] | 15679 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15680 | LDFLAGS=$SAVE_LDFLAGS |
| 15681 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15682 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15683 | case "$host_os" in |
| 15684 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15685 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15686 | ;; |
| 15687 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15688 | { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5 |
| 15689 | echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 15690 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15691 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15692 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 15693 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15694 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15695 | case "$host_os" in |
| 15696 | darwin*) |
Theodore Ts'o | 02d04db | 2008-08-22 10:52:42 -0400 | [diff] [blame] | 15697 | { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5 |
| 15698 | echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15699 | cat >>confdefs.h <<\_ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15700 | #define _INTL_REDIRECT_MACROS 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15701 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15702 | |
| 15703 | ;; |
| 15704 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15705 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 15706 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 15707 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15708 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15709 | if test "$cross_compiling" = yes ; then |
| 15710 | DO_TEST_SUITE= |
| 15711 | else |
| 15712 | DO_TEST_SUITE=check |
| 15713 | fi |
| 15714 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 15715 | INTL_FLAGS= |
| 15716 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 15717 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 15718 | fi |
| 15719 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 15720 | if test $cross_compiling = no; then |
| 15721 | BUILD_CFLAGS="$CFLAGS" |
| 15722 | BUILD_LDFLAGS="$LDFLAGS" |
| 15723 | else |
| 15724 | BUILD_CFLAGS= |
| 15725 | BUILD_LDFLAGS= |
| 15726 | fi |
| 15727 | |
| 15728 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15729 | test -d lib || mkdir lib |
| 15730 | test -d include || mkdir include |
| 15731 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 15732 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 15733 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 15734 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 15735 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 15736 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15737 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 15738 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 15739 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 15740 | 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] | 15741 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 15742 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 15743 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 15744 | if test -d `dirname ${srcdir}/$i` ; then |
| 15745 | outlist="$outlist $i" |
| 15746 | fi |
| 15747 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15748 | ac_config_files="$ac_config_files $outlist" |
| 15749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15750 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15751 | # This file is a shell script that caches the results of configure |
| 15752 | # 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] | 15753 | # scripts and configure runs, see configure's option --config-cache. |
| 15754 | # It is not useful on other systems. If it contains results you don't |
| 15755 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15756 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15757 | # config.status only pays attention to the cache file if you give it |
| 15758 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15759 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15760 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15761 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15762 | # following values. |
| 15763 | |
| 15764 | _ACEOF |
| 15765 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 15766 | # The following way of writing the cache mishandles newlines in values, |
| 15767 | # 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] | 15768 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15769 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15770 | # 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] | 15771 | ( |
| 15772 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15773 | eval ac_val=\$$ac_var |
| 15774 | case $ac_val in #( |
| 15775 | *${as_nl}*) |
| 15776 | case $ac_var in #( |
| 15777 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
| 15778 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
| 15779 | esac |
| 15780 | case $ac_var in #( |
| 15781 | _ | IFS | as_nl) ;; #( |
| 15782 | *) $as_unset $ac_var ;; |
| 15783 | esac ;; |
| 15784 | esac |
| 15785 | done |
| 15786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15787 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15788 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15789 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15790 | # `set' does not quote correctly, so add quotes (double-quote |
| 15791 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15792 | sed -n \ |
| 15793 | "s/'/'\\\\''/g; |
| 15794 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15795 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15796 | *) |
| 15797 | # `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] | 15798 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15799 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15800 | esac | |
| 15801 | sort |
| 15802 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15803 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15804 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15805 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15806 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15807 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15808 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15809 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15810 | :end' >>confcache |
| 15811 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15812 | if test -w "$cache_file"; then |
| 15813 | test "x$cache_file" != "x/dev/null" && |
| 15814 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
| 15815 | echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15816 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15817 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15818 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
| 15819 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15820 | fi |
| 15821 | fi |
| 15822 | rm -f confcache |
| 15823 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15825 | # Let make expand exec_prefix. |
| 15826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15827 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15828 | # Transform confdefs.h into DEFS. |
| 15829 | # Protect against shell expansion while executing Makefile rules. |
| 15830 | # Protect against Makefile macro expansion. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15831 | # |
| 15832 | # 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] | 15833 | # take arguments), then branch to the quote section. Otherwise, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15834 | # look for a macro that doesn't take arguments. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15835 | ac_script=' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15836 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15837 | :clear |
| 15838 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15839 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15840 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15841 | t quote |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15842 | b any |
| 15843 | :quote |
| 15844 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 15845 | s/\[/\\&/g |
| 15846 | s/\]/\\&/g |
| 15847 | s/\$/$$/g |
| 15848 | H |
| 15849 | :any |
| 15850 | ${ |
| 15851 | g |
| 15852 | s/^\n// |
| 15853 | s/\n/ /g |
| 15854 | p |
| 15855 | } |
| 15856 | ' |
| 15857 | DEFS=`sed -n "$ac_script" confdefs.h` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15858 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15859 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15860 | ac_libobjs= |
| 15861 | ac_ltlibobjs= |
| 15862 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15863 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15864 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 15865 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
| 15866 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15867 | # will be set to the directory where LIBOBJS objects are built. |
| 15868 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15869 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15870 | done |
| 15871 | LIBOBJS=$ac_libobjs |
| 15872 | |
| 15873 | LTLIBOBJS=$ac_ltlibobjs |
| 15874 | |
| 15875 | |
| 15876 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15877 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15878 | ac_clean_files_save=$ac_clean_files |
| 15879 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15880 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15881 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15882 | cat >$CONFIG_STATUS <<_ACEOF |
| 15883 | #! $SHELL |
| 15884 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15885 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15886 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15887 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 15888 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15889 | debug=false |
| 15890 | ac_cs_recheck=false |
| 15891 | ac_cs_silent=false |
| 15892 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15893 | _ACEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15894 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15895 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 15896 | ## --------------------- ## |
| 15897 | ## M4sh Initialization. ## |
| 15898 | ## --------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 15899 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15900 | # Be more Bourne compatible |
| 15901 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15902 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15903 | emulate sh |
| 15904 | NULLCMD=: |
| 15905 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 15906 | # is contrary to our usage. Disable this feature. |
| 15907 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15908 | setopt NO_GLOB_SUBST |
| 15909 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15910 | case `(set -o) 2>/dev/null` in |
| 15911 | *posix*) set -o posix ;; |
| 15912 | esac |
| 15913 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15914 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 15915 | |
| 15916 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15917 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 15918 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15919 | # PATH needs CR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15920 | # Avoid depending upon Character Ranges. |
| 15921 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15922 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15923 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15924 | as_cr_digits='0123456789' |
| 15925 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15926 | |
| 15927 | # The user is always right. |
| 15928 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15929 | echo "#! /bin/sh" >conf$$.sh |
| 15930 | echo "exit 0" >>conf$$.sh |
| 15931 | chmod +x conf$$.sh |
| 15932 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 15933 | PATH_SEPARATOR=';' |
| 15934 | else |
| 15935 | PATH_SEPARATOR=: |
| 15936 | fi |
| 15937 | rm -f conf$$.sh |
| 15938 | fi |
| 15939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15940 | # Support unset when possible. |
| 15941 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 15942 | as_unset=unset |
| 15943 | else |
| 15944 | as_unset=false |
| 15945 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15946 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15947 | |
| 15948 | # IFS |
| 15949 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15950 | # there to prevent editors from complaining about space-tab. |
| 15951 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15952 | # splitting by setting IFS to empty value.) |
| 15953 | as_nl=' |
| 15954 | ' |
| 15955 | IFS=" "" $as_nl" |
| 15956 | |
| 15957 | # Find who we are. Look in the path if we contain no directory separator. |
| 15958 | case $0 in |
| 15959 | *[\\/]* ) as_myself=$0 ;; |
| 15960 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15961 | for as_dir in $PATH |
| 15962 | do |
| 15963 | IFS=$as_save_IFS |
| 15964 | test -z "$as_dir" && as_dir=. |
| 15965 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15966 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15967 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15968 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15969 | ;; |
| 15970 | esac |
| 15971 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15972 | # in which case we are not to be found in the path. |
| 15973 | if test "x$as_myself" = x; then |
| 15974 | as_myself=$0 |
| 15975 | fi |
| 15976 | if test ! -f "$as_myself"; then |
| 15977 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15978 | { (exit 1); exit 1; } |
| 15979 | fi |
| 15980 | |
| 15981 | # Work around bugs in pre-3.0 UWIN ksh. |
| 15982 | for as_var in ENV MAIL MAILPATH |
| 15983 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15984 | done |
| 15985 | PS1='$ ' |
| 15986 | PS2='> ' |
| 15987 | PS4='+ ' |
| 15988 | |
| 15989 | # NLS nuisances. |
| 15990 | for as_var in \ |
| 15991 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 15992 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 15993 | LC_TELEPHONE LC_TIME |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 15994 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 15995 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 15996 | eval $as_var=C; export $as_var |
| 15997 | else |
| 15998 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
| 15999 | fi |
| 16000 | done |
| 16001 | |
| 16002 | # Required to use basename. |
| 16003 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16004 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 16005 | as_expr=expr |
| 16006 | else |
| 16007 | as_expr=false |
| 16008 | fi |
| 16009 | |
| 16010 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 16011 | as_basename=basename |
| 16012 | else |
| 16013 | as_basename=false |
| 16014 | fi |
| 16015 | |
| 16016 | |
| 16017 | # Name of the executable. |
| 16018 | as_me=`$as_basename -- "$0" || |
| 16019 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16020 | X"$0" : 'X\(//\)$' \| \ |
| 16021 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 16022 | echo X/"$0" | |
| 16023 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 16024 | s//\1/ |
| 16025 | q |
| 16026 | } |
| 16027 | /^X\/\(\/\/\)$/{ |
| 16028 | s//\1/ |
| 16029 | q |
| 16030 | } |
| 16031 | /^X\/\(\/\).*/{ |
| 16032 | s//\1/ |
| 16033 | q |
| 16034 | } |
| 16035 | s/.*/./; q'` |
| 16036 | |
| 16037 | # CDPATH. |
| 16038 | $as_unset CDPATH |
| 16039 | |
| 16040 | |
| 16041 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16042 | as_lineno_1=$LINENO |
| 16043 | as_lineno_2=$LINENO |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16044 | test "x$as_lineno_1" != "x$as_lineno_2" && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16045 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16046 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16047 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16048 | # uniformly replaced by the line number. The first 'sed' inserts a |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16049 | # line-number line after each line using $LINENO; the second 'sed' |
| 16050 | # does the real work. The second script uses 'N' to pair each |
| 16051 | # line-number line with the line containing $LINENO, and appends |
| 16052 | # trailing '-' during substitution so that $LINENO is not a special |
| 16053 | # case at line end. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16054 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16055 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
| 16056 | # E. McMahon (1931-1989) for sed's syntax. :-) |
| 16057 | sed -n ' |
| 16058 | p |
| 16059 | /[$]LINENO/= |
| 16060 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16061 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16062 | s/[$]LINENO.*/&-/ |
| 16063 | t lineno |
| 16064 | b |
| 16065 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16066 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16067 | :loop |
| 16068 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16069 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16070 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16071 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16072 | chmod +x "$as_me.lineno" || |
| 16073 | { 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] | 16074 | { (exit 1); exit 1; }; } |
| 16075 | |
| 16076 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16077 | # (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] | 16078 | # original and so on. Autoconf is especially sensitive to this). |
| 16079 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16080 | # Exit status is that of the last command. |
| 16081 | exit |
| 16082 | } |
| 16083 | |
| 16084 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16085 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 16086 | as_dirname=dirname |
| 16087 | else |
| 16088 | as_dirname=false |
| 16089 | fi |
| 16090 | |
| 16091 | ECHO_C= ECHO_N= ECHO_T= |
| 16092 | case `echo -n x` in |
| 16093 | -n*) |
| 16094 | case `echo 'x\c'` in |
| 16095 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 16096 | *) ECHO_C='\c';; |
| 16097 | esac;; |
| 16098 | *) |
| 16099 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16100 | esac |
| 16101 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16102 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 16103 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16104 | as_expr=expr |
| 16105 | else |
| 16106 | as_expr=false |
| 16107 | fi |
| 16108 | |
| 16109 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16110 | if test -d conf$$.dir; then |
| 16111 | rm -f conf$$.dir/conf$$.file |
| 16112 | else |
| 16113 | rm -f conf$$.dir |
| 16114 | mkdir conf$$.dir |
| 16115 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16116 | echo >conf$$.file |
| 16117 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16118 | as_ln_s='ln -s' |
| 16119 | # ... but there are two gotchas: |
| 16120 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 16121 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 16122 | # In both cases, we have to default to `cp -p'. |
| 16123 | 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] | 16124 | as_ln_s='cp -p' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16125 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16126 | as_ln_s=ln |
| 16127 | else |
| 16128 | as_ln_s='cp -p' |
| 16129 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16130 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 16131 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16132 | |
| 16133 | if mkdir -p . 2>/dev/null; then |
| 16134 | as_mkdir_p=: |
| 16135 | else |
| 16136 | test -d ./-p && rmdir ./-p |
| 16137 | as_mkdir_p=false |
| 16138 | fi |
| 16139 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16140 | if test -x / >/dev/null 2>&1; then |
| 16141 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16142 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16143 | if ls -dL / >/dev/null 2>&1; then |
| 16144 | as_ls_L_option=L |
| 16145 | else |
| 16146 | as_ls_L_option= |
| 16147 | fi |
| 16148 | as_test_x=' |
| 16149 | eval sh -c '\'' |
| 16150 | if test -d "$1"; then |
| 16151 | test -d "$1/."; |
| 16152 | else |
| 16153 | case $1 in |
| 16154 | -*)set "./$1";; |
| 16155 | esac; |
| 16156 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
| 16157 | ???[sx]*):;;*)false;;esac;fi |
| 16158 | '\'' sh |
| 16159 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16160 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16161 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16162 | |
| 16163 | # Sed expression to map a string onto a valid CPP name. |
| 16164 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 16165 | |
| 16166 | # Sed expression to map a string onto a valid variable name. |
| 16167 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 16168 | |
| 16169 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16170 | exec 6>&1 |
| 16171 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16172 | # 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] | 16173 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16174 | # values after options handling. |
| 16175 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16176 | This file was extended by $as_me, which was |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16177 | generated by GNU Autoconf 2.61. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16178 | |
| 16179 | CONFIG_FILES = $CONFIG_FILES |
| 16180 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16181 | CONFIG_LINKS = $CONFIG_LINKS |
| 16182 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16183 | $ $0 $@ |
| 16184 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16185 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 16186 | " |
| 16187 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16188 | _ACEOF |
| 16189 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16190 | cat >>$CONFIG_STATUS <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16191 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16192 | config_files="$ac_config_files" |
| 16193 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16194 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16195 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16196 | |
| 16197 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16198 | ac_cs_usage="\ |
| 16199 | \`$as_me' instantiates files from templates according to the |
| 16200 | current configuration. |
| 16201 | |
| 16202 | Usage: $0 [OPTIONS] [FILE]... |
| 16203 | |
| 16204 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16205 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16206 | -q, --quiet do not print progress messages |
| 16207 | -d, --debug don't remove temporary files |
| 16208 | --recheck update $as_me by reconfiguring in the same conditions |
| 16209 | --file=FILE[:TEMPLATE] |
| 16210 | instantiate the configuration file FILE |
| 16211 | |
| 16212 | Configuration files: |
| 16213 | $config_files |
| 16214 | |
| 16215 | Configuration commands: |
| 16216 | $config_commands |
| 16217 | |
| 16218 | Report bugs to <bug-autoconf@gnu.org>." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16219 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16220 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16221 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16222 | ac_cs_version="\\ |
| 16223 | config.status |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16224 | configured by $0, generated by GNU Autoconf 2.61, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16225 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16226 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16227 | Copyright (C) 2006 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16228 | This config.status script is free software; the Free Software Foundation |
| 16229 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16230 | |
| 16231 | ac_pwd='$ac_pwd' |
| 16232 | srcdir='$srcdir' |
| 16233 | INSTALL='$INSTALL' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16234 | _ACEOF |
| 16235 | |
| 16236 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16237 | # If no file are specified by the user, then we need to provide default |
| 16238 | # value. By we need to know if files were specified by the user. |
| 16239 | ac_need_defaults=: |
| 16240 | while test $# != 0 |
| 16241 | do |
| 16242 | case $1 in |
| 16243 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16244 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 16245 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16246 | ac_shift=: |
| 16247 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16248 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16249 | ac_option=$1 |
| 16250 | ac_optarg=$2 |
| 16251 | ac_shift=shift |
| 16252 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16253 | esac |
| 16254 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16255 | case $ac_option in |
| 16256 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16257 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16258 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16259 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 16260 | echo "$ac_cs_version"; exit ;; |
| 16261 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16262 | debug=: ;; |
| 16263 | --file | --fil | --fi | --f ) |
| 16264 | $ac_shift |
| 16265 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 16266 | ac_need_defaults=false;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16267 | --he | --h | --help | --hel | -h ) |
| 16268 | echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16269 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 16270 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 16271 | ac_cs_silent=: ;; |
| 16272 | |
| 16273 | # This is an error. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16274 | -*) { echo "$as_me: error: unrecognized option: $1 |
| 16275 | Try \`$0 --help' for more information." >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16276 | { (exit 1); exit 1; }; } ;; |
| 16277 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16278 | *) ac_config_targets="$ac_config_targets $1" |
| 16279 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16280 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16281 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16282 | shift |
| 16283 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16284 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16285 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 16286 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16287 | if $ac_cs_silent; then |
| 16288 | exec 6>/dev/null |
| 16289 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 16290 | fi |
| 16291 | |
| 16292 | _ACEOF |
| 16293 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16294 | if \$ac_cs_recheck; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16295 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 16296 | CONFIG_SHELL=$SHELL |
| 16297 | export CONFIG_SHELL |
| 16298 | 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] | 16299 | fi |
| 16300 | |
| 16301 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16302 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16303 | exec 5>>config.log |
| 16304 | { |
| 16305 | echo |
| 16306 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16307 | ## Running $as_me. ## |
| 16308 | _ASBOX |
| 16309 | echo "$ac_log" |
| 16310 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16311 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16312 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16313 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16314 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16315 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16316 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16317 | # 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] | 16318 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16319 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16320 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16321 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 16322 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16323 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16324 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16325 | _ACEOF |
| 16326 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16327 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16328 | |
| 16329 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16330 | for ac_config_target in $ac_config_targets |
| 16331 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16332 | case $ac_config_target in |
| 16333 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 16334 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 16335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16336 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16337 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16338 | { (exit 1); exit 1; }; };; |
| 16339 | esac |
| 16340 | done |
| 16341 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16342 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16343 | # If the user did not use the arguments to specify the items to instantiate, |
| 16344 | # then the envvar interface is used. Set only those that are not. |
| 16345 | # We use the long form for the default assignment because of an extremely |
| 16346 | # bizarre bug on SunOS 4.1.3. |
| 16347 | if $ac_need_defaults; then |
| 16348 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16349 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16350 | fi |
| 16351 | |
| 16352 | # 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] | 16353 | # 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] | 16354 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16355 | # Hook for its removal unless debugging. |
| 16356 | # Note that there is a small window in which the directory will not be cleaned: |
| 16357 | # 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] | 16358 | $debug || |
| 16359 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16360 | tmp= |
| 16361 | trap 'exit_status=$? |
| 16362 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16363 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16364 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16365 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16366 | # Create a (secure) tmp directory for tmp files. |
| 16367 | |
| 16368 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16369 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16370 | test -n "$tmp" && test -d "$tmp" |
| 16371 | } || |
| 16372 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16373 | tmp=./conf$$-$RANDOM |
| 16374 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16375 | } || |
| 16376 | { |
| 16377 | echo "$me: cannot create a temporary directory in ." >&2 |
| 16378 | { (exit 1); exit 1; } |
| 16379 | } |
| 16380 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16381 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16382 | # Set up the sed scripts for CONFIG_FILES section. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16383 | # |
| 16384 | |
| 16385 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16386 | # This happens for instance when ./config.status config.h |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16387 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16388 | |
| 16389 | _ACEOF |
| 16390 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16391 | # Create sed commands to just substitute file output variables. |
| 16392 | |
| 16393 | # Remaining file output variables are in a fragment that also has non-file |
| 16394 | # output varibles. |
| 16395 | |
| 16396 | |
| 16397 | |
| 16398 | ac_delim='%!_!# ' |
| 16399 | for ac_last_try in false false false false false :; do |
| 16400 | cat >conf$$subs.sed <<_ACEOF |
| 16401 | SHELL!$SHELL$ac_delim |
| 16402 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
| 16403 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
| 16404 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
| 16405 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
| 16406 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
| 16407 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
| 16408 | exec_prefix!$exec_prefix$ac_delim |
| 16409 | prefix!$prefix$ac_delim |
| 16410 | program_transform_name!$program_transform_name$ac_delim |
| 16411 | bindir!$bindir$ac_delim |
| 16412 | sbindir!$sbindir$ac_delim |
| 16413 | libexecdir!$libexecdir$ac_delim |
| 16414 | datarootdir!$datarootdir$ac_delim |
| 16415 | datadir!$datadir$ac_delim |
| 16416 | sysconfdir!$sysconfdir$ac_delim |
| 16417 | sharedstatedir!$sharedstatedir$ac_delim |
| 16418 | localstatedir!$localstatedir$ac_delim |
| 16419 | includedir!$includedir$ac_delim |
| 16420 | oldincludedir!$oldincludedir$ac_delim |
| 16421 | docdir!$docdir$ac_delim |
| 16422 | infodir!$infodir$ac_delim |
| 16423 | htmldir!$htmldir$ac_delim |
| 16424 | dvidir!$dvidir$ac_delim |
| 16425 | pdfdir!$pdfdir$ac_delim |
| 16426 | psdir!$psdir$ac_delim |
| 16427 | libdir!$libdir$ac_delim |
| 16428 | localedir!$localedir$ac_delim |
| 16429 | mandir!$mandir$ac_delim |
| 16430 | DEFS!$DEFS$ac_delim |
| 16431 | ECHO_C!$ECHO_C$ac_delim |
| 16432 | ECHO_N!$ECHO_N$ac_delim |
| 16433 | ECHO_T!$ECHO_T$ac_delim |
| 16434 | LIBS!$LIBS$ac_delim |
| 16435 | build_alias!$build_alias$ac_delim |
| 16436 | host_alias!$host_alias$ac_delim |
| 16437 | target_alias!$target_alias$ac_delim |
| 16438 | E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim |
| 16439 | E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim |
| 16440 | E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim |
| 16441 | E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 16442 | E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16443 | build!$build$ac_delim |
| 16444 | build_cpu!$build_cpu$ac_delim |
| 16445 | build_vendor!$build_vendor$ac_delim |
| 16446 | build_os!$build_os$ac_delim |
| 16447 | host!$host$ac_delim |
| 16448 | host_cpu!$host_cpu$ac_delim |
| 16449 | host_vendor!$host_vendor$ac_delim |
| 16450 | host_os!$host_os$ac_delim |
| 16451 | CC!$CC$ac_delim |
| 16452 | CFLAGS!$CFLAGS$ac_delim |
| 16453 | LDFLAGS!$LDFLAGS$ac_delim |
| 16454 | CPPFLAGS!$CPPFLAGS$ac_delim |
| 16455 | ac_ct_CC!$ac_ct_CC$ac_delim |
| 16456 | EXEEXT!$EXEEXT$ac_delim |
| 16457 | OBJEXT!$OBJEXT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16458 | CPP!$CPP$ac_delim |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 16459 | LD!$LD$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16460 | GREP!$GREP$ac_delim |
| 16461 | EGREP!$EGREP$ac_delim |
| 16462 | LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim |
| 16463 | MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim |
| 16464 | HTREE_CMT!$HTREE_CMT$ac_delim |
| 16465 | ELF_CMT!$ELF_CMT$ac_delim |
| 16466 | BSDLIB_CMT!$BSDLIB_CMT$ac_delim |
| 16467 | PROFILE_CMT!$PROFILE_CMT$ac_delim |
| 16468 | CHECKER_CMT!$CHECKER_CMT$ac_delim |
| 16469 | LIB_EXT!$LIB_EXT$ac_delim |
| 16470 | STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim |
| 16471 | PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 16472 | LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim |
| 16473 | PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16474 | _ACEOF |
| 16475 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16476 | 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] | 16477 | break |
| 16478 | elif $ac_last_try; then |
| 16479 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16480 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16481 | { (exit 1); exit 1; }; } |
| 16482 | else |
| 16483 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16484 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16485 | done |
| 16486 | |
| 16487 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16488 | if test -n "$ac_eof"; then |
| 16489 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16490 | ac_eof=`expr $ac_eof + 1` |
| 16491 | fi |
| 16492 | |
| 16493 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16494 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
| 16495 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16496 | /^[ ]*@MCONFIG@[ ]*$/{ |
| 16497 | r $MCONFIG |
| 16498 | d |
| 16499 | } |
| 16500 | /^[ ]*@MAKEFILE_ELF@[ ]*$/{ |
| 16501 | r $MAKEFILE_ELF |
| 16502 | d |
| 16503 | } |
| 16504 | /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{ |
| 16505 | r $MAKEFILE_BSDLIB |
| 16506 | d |
| 16507 | } |
| 16508 | /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{ |
| 16509 | r $MAKEFILE_PROFILE |
| 16510 | d |
| 16511 | } |
| 16512 | /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{ |
| 16513 | r $MAKEFILE_CHECKER |
| 16514 | d |
| 16515 | } |
| 16516 | /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{ |
| 16517 | r $MAKEFILE_LIBRARY |
| 16518 | d |
| 16519 | } |
| 16520 | /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{ |
| 16521 | r $ASM_TYPES_HEADER |
| 16522 | d |
| 16523 | } |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16524 | /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{ |
| 16525 | r $PUBLIC_CONFIG_HEADER |
| 16526 | d |
| 16527 | } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16528 | _ACEOF |
| 16529 | sed ' |
| 16530 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16531 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16532 | :n |
| 16533 | t n |
| 16534 | s/'"$ac_delim"'$/,g/; t |
| 16535 | s/$/\\/; p |
| 16536 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16537 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16538 | rm -f conf$$subs.sed |
| 16539 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16540 | CEOF$ac_eof |
| 16541 | _ACEOF |
| 16542 | |
| 16543 | |
| 16544 | ac_delim='%!_!# ' |
| 16545 | for ac_last_try in false false false false false :; do |
| 16546 | cat >conf$$subs.sed <<_ACEOF |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 16547 | TEST_IO_CMT!$TEST_IO_CMT$ac_delim |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 16548 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
| 16549 | LIBBLKID!$LIBBLKID$ac_delim |
| 16550 | DEPLIBBLKID!$DEPLIBBLKID$ac_delim |
| 16551 | STATIC_LIBBLKID!$STATIC_LIBBLKID$ac_delim |
| 16552 | DEPSTATIC_LIBBLKID!$DEPSTATIC_LIBBLKID$ac_delim |
| 16553 | PROFILED_LIBBLKID!$PROFILED_LIBBLKID$ac_delim |
| 16554 | DEPPROFILED_LIBBLKID!$DEPPROFILED_LIBBLKID$ac_delim |
| 16555 | BLKID_CMT!$BLKID_CMT$ac_delim |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 16556 | DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 16557 | IMAGER_CMT!$IMAGER_CMT$ac_delim |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 16558 | RESIZER_CMT!$RESIZER_CMT$ac_delim |
| 16559 | FSCK_PROG!$FSCK_PROG$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16560 | FSCK_MAN!$FSCK_MAN$ac_delim |
| 16561 | E2INITRD_PROG!$E2INITRD_PROG$ac_delim |
| 16562 | E2INITRD_MAN!$E2INITRD_MAN$ac_delim |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 16563 | UUIDD_CMT!$UUIDD_CMT$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16564 | GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim |
| 16565 | PACKAGE!$PACKAGE$ac_delim |
| 16566 | VERSION!$VERSION$ac_delim |
| 16567 | SET_MAKE!$SET_MAKE$ac_delim |
| 16568 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
| 16569 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
| 16570 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
| 16571 | MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim |
| 16572 | USE_NLS!$USE_NLS$ac_delim |
| 16573 | MSGFMT!$MSGFMT$ac_delim |
| 16574 | GMSGFMT!$GMSGFMT$ac_delim |
| 16575 | XGETTEXT!$XGETTEXT$ac_delim |
| 16576 | MSGMERGE!$MSGMERGE$ac_delim |
| 16577 | RANLIB!$RANLIB$ac_delim |
| 16578 | ALLOCA!$ALLOCA$ac_delim |
| 16579 | GLIBC21!$GLIBC21$ac_delim |
| 16580 | HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim |
| 16581 | HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim |
| 16582 | HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim |
| 16583 | HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim |
| 16584 | LIBICONV!$LIBICONV$ac_delim |
| 16585 | LTLIBICONV!$LTLIBICONV$ac_delim |
| 16586 | INTLBISON!$INTLBISON$ac_delim |
| 16587 | BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim |
| 16588 | USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim |
| 16589 | CATOBJEXT!$CATOBJEXT$ac_delim |
| 16590 | DATADIRNAME!$DATADIRNAME$ac_delim |
| 16591 | INSTOBJEXT!$INSTOBJEXT$ac_delim |
| 16592 | GENCAT!$GENCAT$ac_delim |
| 16593 | INTLOBJS!$INTLOBJS$ac_delim |
| 16594 | INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim |
| 16595 | INTLLIBS!$INTLLIBS$ac_delim |
| 16596 | LIBINTL!$LIBINTL$ac_delim |
| 16597 | LTLIBINTL!$LTLIBINTL$ac_delim |
| 16598 | POSUB!$POSUB$ac_delim |
| 16599 | BINARY_TYPE!$BINARY_TYPE$ac_delim |
| 16600 | LN!$LN$ac_delim |
| 16601 | LN_S!$LN_S$ac_delim |
| 16602 | MV!$MV$ac_delim |
| 16603 | CP!$CP$ac_delim |
| 16604 | RM!$RM$ac_delim |
| 16605 | CHMOD!$CHMOD$ac_delim |
| 16606 | AWK!$AWK$ac_delim |
| 16607 | SED!$SED$ac_delim |
| 16608 | PERL!$PERL$ac_delim |
| 16609 | LDCONFIG!$LDCONFIG$ac_delim |
| 16610 | AR!$AR$ac_delim |
| 16611 | STRIP!$STRIP$ac_delim |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 16612 | MAKEINFO!$MAKEINFO$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16613 | BUILD_CC!$BUILD_CC$ac_delim |
| 16614 | SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim |
| 16615 | SIZEOF_INT!$SIZEOF_INT$ac_delim |
| 16616 | SIZEOF_LONG!$SIZEOF_LONG$ac_delim |
| 16617 | SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim |
| 16618 | SOCKET_LIB!$SOCKET_LIB$ac_delim |
| 16619 | DLOPEN_LIB!$DLOPEN_LIB$ac_delim |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 16620 | SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16621 | UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim |
| 16622 | LINUX_CMT!$LINUX_CMT$ac_delim |
| 16623 | CYGWIN_CMT!$CYGWIN_CMT$ac_delim |
| 16624 | UNIX_CMT!$UNIX_CMT$ac_delim |
| 16625 | root_prefix!$root_prefix$ac_delim |
| 16626 | root_bindir!$root_bindir$ac_delim |
| 16627 | root_sbindir!$root_sbindir$ac_delim |
| 16628 | root_libdir!$root_libdir$ac_delim |
| 16629 | root_sysconfdir!$root_sysconfdir$ac_delim |
| 16630 | LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim |
| 16631 | SS_DIR!$SS_DIR$ac_delim |
| 16632 | ET_DIR!$ET_DIR$ac_delim |
| 16633 | DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim |
| 16634 | INTL_FLAGS!$INTL_FLAGS$ac_delim |
| 16635 | BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim |
| 16636 | BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim |
| 16637 | LIBOBJS!$LIBOBJS$ac_delim |
| 16638 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
| 16639 | _ACEOF |
| 16640 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 16641 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16642 | break |
| 16643 | elif $ac_last_try; then |
| 16644 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
| 16645 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
| 16646 | { (exit 1); exit 1; }; } |
| 16647 | else |
| 16648 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16649 | fi |
| 16650 | done |
| 16651 | |
| 16652 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
| 16653 | if test -n "$ac_eof"; then |
| 16654 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
| 16655 | ac_eof=`expr $ac_eof + 1` |
| 16656 | fi |
| 16657 | |
| 16658 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16659 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
| 16660 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
| 16661 | _ACEOF |
| 16662 | sed ' |
| 16663 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
| 16664 | s/^/s,@/; s/!/@,|#_!!_#|/ |
| 16665 | :n |
| 16666 | t n |
| 16667 | s/'"$ac_delim"'$/,g/; t |
| 16668 | s/$/\\/; p |
| 16669 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
| 16670 | ' >>$CONFIG_STATUS <conf$$subs.sed |
| 16671 | rm -f conf$$subs.sed |
| 16672 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16673 | :end |
| 16674 | s/|#_!!_#|//g |
| 16675 | CEOF$ac_eof |
| 16676 | _ACEOF |
| 16677 | |
| 16678 | |
| 16679 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16680 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16681 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16682 | # (actually we leave an empty line to preserve line numbers). |
| 16683 | if test "x$srcdir" = x.; then |
| 16684 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16685 | s/:*\$(srcdir):*/:/ |
| 16686 | s/:*\${srcdir}:*/:/ |
| 16687 | s/:*@srcdir@:*/:/ |
| 16688 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16689 | s/:*$// |
| 16690 | s/^[^=]*=[ ]*$// |
| 16691 | }' |
| 16692 | fi |
| 16693 | |
| 16694 | cat >>$CONFIG_STATUS <<\_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16695 | fi # test -n "$CONFIG_FILES" |
| 16696 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16697 | |
| 16698 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS |
| 16699 | do |
| 16700 | case $ac_tag in |
| 16701 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16702 | esac |
| 16703 | case $ac_mode$ac_tag in |
| 16704 | :[FHL]*:*);; |
| 16705 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
| 16706 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
| 16707 | { (exit 1); exit 1; }; };; |
| 16708 | :[FH]-) ac_tag=-:-;; |
| 16709 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16710 | esac |
| 16711 | ac_save_IFS=$IFS |
| 16712 | IFS=: |
| 16713 | set x $ac_tag |
| 16714 | IFS=$ac_save_IFS |
| 16715 | shift |
| 16716 | ac_file=$1 |
| 16717 | shift |
| 16718 | |
| 16719 | case $ac_mode in |
| 16720 | :L) ac_source=$1;; |
| 16721 | :[FH]) |
| 16722 | ac_file_inputs= |
| 16723 | for ac_f |
| 16724 | do |
| 16725 | case $ac_f in |
| 16726 | -) ac_f="$tmp/stdin";; |
| 16727 | *) # Look for the file first in the build tree, then in the source tree |
| 16728 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16729 | # because $ac_f cannot contain `:'. |
| 16730 | test -f "$ac_f" || |
| 16731 | case $ac_f in |
| 16732 | [\\/$]*) false;; |
| 16733 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16734 | esac || |
| 16735 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
| 16736 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
| 16737 | { (exit 1); exit 1; }; };; |
| 16738 | esac |
| 16739 | ac_file_inputs="$ac_file_inputs $ac_f" |
| 16740 | done |
| 16741 | |
| 16742 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16743 | # use $as_me), people would be surprised to read: |
| 16744 | # /* config.h. Generated by config.status. */ |
| 16745 | configure_input="Generated from "`IFS=: |
| 16746 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
| 16747 | if test x"$ac_file" != x-; then |
| 16748 | configure_input="$ac_file. $configure_input" |
| 16749 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16750 | echo "$as_me: creating $ac_file" >&6;} |
| 16751 | fi |
| 16752 | |
| 16753 | case $ac_tag in |
| 16754 | *:-:* | *:-) cat >"$tmp/stdin";; |
| 16755 | esac |
| 16756 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16757 | esac |
| 16758 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16759 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16760 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16761 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16762 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16763 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16764 | echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16765 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16766 | s//\1/ |
| 16767 | q |
| 16768 | } |
| 16769 | /^X\(\/\/\)[^/].*/{ |
| 16770 | s//\1/ |
| 16771 | q |
| 16772 | } |
| 16773 | /^X\(\/\/\)$/{ |
| 16774 | s//\1/ |
| 16775 | q |
| 16776 | } |
| 16777 | /^X\(\/\).*/{ |
| 16778 | s//\1/ |
| 16779 | q |
| 16780 | } |
| 16781 | s/.*/./; q'` |
| 16782 | { as_dir="$ac_dir" |
| 16783 | case $as_dir in #( |
| 16784 | -*) as_dir=./$as_dir;; |
| 16785 | esac |
| 16786 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16787 | as_dirs= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16788 | while :; do |
| 16789 | case $as_dir in #( |
| 16790 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
| 16791 | *) as_qdir=$as_dir;; |
| 16792 | esac |
| 16793 | as_dirs="'$as_qdir' $as_dirs" |
| 16794 | as_dir=`$as_dirname -- "$as_dir" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16795 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16796 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 16797 | X"$as_dir" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16798 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16799 | echo X"$as_dir" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16800 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16801 | s//\1/ |
| 16802 | q |
| 16803 | } |
| 16804 | /^X\(\/\/\)[^/].*/{ |
| 16805 | s//\1/ |
| 16806 | q |
| 16807 | } |
| 16808 | /^X\(\/\/\)$/{ |
| 16809 | s//\1/ |
| 16810 | q |
| 16811 | } |
| 16812 | /^X\(\/\).*/{ |
| 16813 | s//\1/ |
| 16814 | q |
| 16815 | } |
| 16816 | s/.*/./; q'` |
| 16817 | test -d "$as_dir" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16818 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16819 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 16820 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
| 16821 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16822 | { (exit 1); exit 1; }; }; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16823 | ac_builddir=. |
| 16824 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16825 | case "$ac_dir" in |
| 16826 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16827 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16828 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16829 | # A ".." for each directory in $ac_dir_suffix. |
| 16830 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
| 16831 | case $ac_top_builddir_sub in |
| 16832 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16833 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16834 | esac ;; |
| 16835 | esac |
| 16836 | ac_abs_top_builddir=$ac_pwd |
| 16837 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16838 | # for backward compatibility: |
| 16839 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16840 | |
| 16841 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16842 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16843 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16844 | ac_top_srcdir=$ac_top_builddir_sub |
| 16845 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16846 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16847 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16848 | ac_top_srcdir=$srcdir |
| 16849 | ac_abs_top_srcdir=$srcdir ;; |
| 16850 | *) # Relative name. |
| 16851 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16852 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16853 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16854 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16855 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16856 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16857 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16858 | case $ac_mode in |
| 16859 | :F) |
| 16860 | # |
| 16861 | # CONFIG_FILE |
| 16862 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16863 | |
| 16864 | case $INSTALL in |
| 16865 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16866 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16867 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16868 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16869 | |
| 16870 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16871 | # If the template does not know about datarootdir, expand it. |
| 16872 | # FIXME: This hack should be removed a few years after 2.60. |
| 16873 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 16874 | |
| 16875 | case `sed -n '/datarootdir/ { |
| 16876 | p |
| 16877 | q |
| 16878 | } |
| 16879 | /@datadir@/p |
| 16880 | /@docdir@/p |
| 16881 | /@infodir@/p |
| 16882 | /@localedir@/p |
| 16883 | /@mandir@/p |
| 16884 | ' $ac_file_inputs` in |
| 16885 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16886 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 16887 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16888 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 16889 | _ACEOF |
| 16890 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16891 | ac_datarootdir_hack=' |
| 16892 | s&@datadir@&$datadir&g |
| 16893 | s&@docdir@&$docdir&g |
| 16894 | s&@infodir@&$infodir&g |
| 16895 | s&@localedir@&$localedir&g |
| 16896 | s&@mandir@&$mandir&g |
| 16897 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 16898 | esac |
| 16899 | _ACEOF |
| 16900 | |
| 16901 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16902 | # Shell code in configure.ac might set extrasub. |
| 16903 | # FIXME: do we really want to maintain this feature? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16904 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16905 | sed "$ac_vpsub |
| 16906 | $extrasub |
| 16907 | _ACEOF |
| 16908 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16909 | :t |
| 16910 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16911 | s&@configure_input@&$configure_input&;t t |
| 16912 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 16913 | s&@srcdir@&$ac_srcdir&;t t |
| 16914 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16915 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16916 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16917 | s&@builddir@&$ac_builddir&;t t |
| 16918 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16919 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16920 | s&@INSTALL@&$ac_INSTALL&;t t |
| 16921 | $ac_datarootdir_hack |
| 16922 | " $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] | 16923 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16924 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16925 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16926 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 16927 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16928 | which seems to be undefined. Please make sure it is defined." >&5 |
| 16929 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 16930 | 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] | 16931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16932 | rm -f "$tmp/stdin" |
| 16933 | case $ac_file in |
| 16934 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
| 16935 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
| 16936 | esac |
| 16937 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16938 | |
| 16939 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 16940 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
| 16941 | echo "$as_me: executing $ac_file commands" >&6;} |
| 16942 | ;; |
| 16943 | esac |
| 16944 | |
| 16945 | |
| 16946 | case $ac_file$ac_mode in |
| 16947 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16948 | for ac_file in $CONFIG_FILES; do |
| 16949 | # Support "outfile[:infile[:infile...]]" |
| 16950 | case "$ac_file" in |
| 16951 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 16952 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16953 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 16954 | case "$ac_file" in */Makefile.in) |
| 16955 | # Adjust a relative srcdir. |
| 16956 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 16957 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 16958 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 16959 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 16960 | # In autoconf-2.50 it is called $srcdir. |
| 16961 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 16962 | case "$ac_given_srcdir" in |
| 16963 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 16964 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 16965 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 16966 | esac |
| 16967 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 16968 | rm -f "$ac_dir/POTFILES" |
| 16969 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 16970 | 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] | 16971 | POMAKEFILEDEPS="POTFILES.in" |
| 16972 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16973 | # on $ac_dir but don't depend on user-specified configuration |
| 16974 | # parameters. |
| 16975 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 16976 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16977 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16978 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 16979 | fi |
| 16980 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 16981 | # Hide the ALL_LINGUAS assigment from automake. |
| 16982 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16983 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 16984 | else |
| 16985 | # The set of available languages was given in configure.in. |
| 16986 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16987 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 16988 | # Compute POFILES |
| 16989 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 16990 | # Compute UPDATEPOFILES |
| 16991 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 16992 | # Compute DUMMYPOFILES |
| 16993 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 16994 | # Compute GMOFILES |
| 16995 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 16996 | case "$ac_given_srcdir" in |
| 16997 | .) srcdirpre= ;; |
| 16998 | *) srcdirpre='$(srcdir)/' ;; |
| 16999 | esac |
| 17000 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17001 | UPDATEPOFILES= |
| 17002 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17003 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17004 | for lang in $ALL_LINGUAS; do |
| 17005 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17006 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 17007 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17008 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 17009 | done |
| 17010 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 17011 | # environment variable. |
| 17012 | INST_LINGUAS= |
| 17013 | if test -n "$ALL_LINGUAS"; then |
| 17014 | for presentlang in $ALL_LINGUAS; do |
| 17015 | useit=no |
| 17016 | if test "%UNSET%" != "$LINGUAS"; then |
| 17017 | desiredlanguages="$LINGUAS" |
| 17018 | else |
| 17019 | desiredlanguages="$ALL_LINGUAS" |
| 17020 | fi |
| 17021 | for desiredlang in $desiredlanguages; do |
| 17022 | # Use the presentlang catalog if desiredlang is |
| 17023 | # a. equal to presentlang, or |
| 17024 | # b. a variant of presentlang (because in this case, |
| 17025 | # presentlang can be used as a fallback for messages |
| 17026 | # which are not translated in the desiredlang catalog). |
| 17027 | case "$desiredlang" in |
| 17028 | "$presentlang"*) useit=yes;; |
| 17029 | esac |
| 17030 | done |
| 17031 | if test $useit = yes; then |
| 17032 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 17033 | fi |
| 17034 | done |
| 17035 | fi |
| 17036 | CATALOGS= |
| 17037 | if test -n "$INST_LINGUAS"; then |
| 17038 | for lang in $INST_LINGUAS; do |
| 17039 | CATALOGS="$CATALOGS $lang.gmo" |
| 17040 | done |
| 17041 | fi |
| 17042 | 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] | 17043 | 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] | 17044 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 17045 | if test -f "$f"; then |
| 17046 | case "$f" in |
| 17047 | *.orig | *.bak | *~) ;; |
| 17048 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 17049 | esac |
| 17050 | fi |
| 17051 | done |
| 17052 | fi |
| 17053 | ;; |
| 17054 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17055 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17056 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 17057 | esac |
| 17058 | done # for ac_tag |
| 17059 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17060 | |
| 17061 | { (exit 0); exit 0; } |
| 17062 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17063 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 17064 | ac_clean_files=$ac_clean_files_save |
| 17065 | |
| 17066 | |
| 17067 | # configure is writing to config.log, and then calls config.status. |
| 17068 | # config.status does its own redirection, appending to config.log. |
| 17069 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17070 | # by configure, so config.status won't be able to write to it; its |
| 17071 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17072 | # effectively closing config.log, so it can be properly (re)opened and |
| 17073 | # appended to by config.status. When coming back to configure, we |
| 17074 | # need to make the FD available again. |
| 17075 | if test "$no_create" != yes; then |
| 17076 | ac_cs_success=: |
| 17077 | ac_config_status_args= |
| 17078 | test "$silent" = yes && |
| 17079 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17080 | exec 5>/dev/null |
| 17081 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17082 | exec 5>>config.log |
| 17083 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17084 | # would make configure fail if this is the last instruction. |
| 17085 | $ac_cs_success || { (exit 1); exit 1; } |
| 17086 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 17087 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 17088 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |